:root{--medai-side:#0b2f42;--medai-teal:#0f9f8f;--medai-ink:#102f43;--medai-muted:#587080}body.medai-clinical-layout #dash,body.medai-clinical-layout #dashboard{padding-left:268px;background:linear-gradient(135deg,#f5f9fc,#eef7f6)}.medai-clinical-side{position:fixed;inset:0 auto 0 0;z-index:10020;width:268px;display:flex;flex-direction:column;overflow:auto;padding:22px 14px 18px;background:var(--medai-side);color:#dff7f3;box-shadow:12px 0 34px rgba(11,47,66,.08)}.medai-side-brand{display:flex;align-items:center;gap:11px;margin:0 7px 24px;padding:0;border:0;background:transparent;color:#fff;text-align:left}.medai-side-brandmark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#14b8a6,#0f766e);box-shadow:0 8px 20px rgba(20,184,166,.25)}.medai-side-brandmark svg{width:23px}.medai-side-brand b,.medai-side-brand small{display:block}.medai-side-brand b{font-size:20px}.medai-side-brand small{margin-top:2px;color:#9bc8c4;font-size:10px}.medai-clinical-side nav{display:grid;gap:3px}.medai-side-label{display:block;margin:17px 10px 7px;color:#79aaa9;font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.medai-clinical-side nav button{width:100%;min-height:42px;display:flex;align-items:center;gap:11px;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:#bad5d5;font-size:12px;font-weight:650;text-align:left;transition:.18s}.medai-clinical-side nav button:hover{background:rgba(20,184,166,.14);color:#fff;transform:translateX(2px)}.medai-side-icon{width:31px;height:31px;display:grid;place-items:center;flex:0 0 31px;border-radius:9px;background:rgba(255,255,255,.07);color:#6ee7d7}.medai-side-icon svg{width:17px}.medai-side-trust{display:flex;gap:9px;margin-top:auto;padding:16px 9px 2px;border-top:1px solid rgba(255,255,255,.1);color:#82b5b3}.medai-side-trust>svg{width:17px}.medai-side-trust b,.medai-side-trust small{display:block}.medai-side-trust b{color:#bce7e2;font-size:10px}.medai-side-trust small{font-size:8px}.medai-side-close,.medai-clinical-menu{display:none}body.medai-clinical-layout .v83-wrap{max-width:1400px;margin:auto;padding:25px clamp(18px,3vw,42px) 56px}.medai-clinical-hero{position:relative;min-height:270px;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,44%);align-items:center;overflow:hidden;margin-bottom:22px;padding:34px 42px;border:1px solid #d8ebe8;border-radius:24px;background:linear-gradient(120deg,#fff,#f7fcfb 55%,#e5f7f4);box-shadow:0 18px 55px rgba(20,74,87,.09)}.medai-hero-copy{position:relative;z-index:3}.medai-hero-copy>span{display:block;margin-bottom:11px;color:#0f766e;font-size:10px;font-weight:850;letter-spacing:.15em}.medai-hero-copy h2{margin:0 0 13px;color:var(--medai-ink);font-size:clamp(31px,4vw,54px);line-height:.98;letter-spacing:-.055em}.medai-hero-copy p{max-width:560px;margin:0 0 23px;color:var(--medai-muted);font-size:14px;line-height:1.65}.medai-hero-copy .primary{min-height:46px;padding:0 22px;border-radius:13px}.medai-hero-art{position:relative;z-index:2;align-self:end}.medai-hero-art svg{display:block;width:100%;max-height:245px;filter:drop-shadow(0 14px 20px rgba(25,78,84,.12))}.medai-ekg{position:absolute;left:36%;right:2%;top:44%;height:2px;opacity:.12;background:linear-gradient(90deg,transparent,#0f766e 15%,#0f766e 28%,transparent 28%);animation:medai-ekg 4.8s linear infinite}@keyframes medai-ekg{0%{transform:translateX(-18%);opacity:.05}45%{opacity:.18}100%{transform:translateX(18%);opacity:.05}}body.medai-clinical-layout .v83-card{border-radius:18px!important;border-color:#dce9e8!important;background:#fff!important;box-shadow:0 8px 26px rgba(22,63,77,.055)}body.medai-clinical-layout .v83-card:hover{transform:translateY(-3px);border-color:#6fcfc1!important}body.medai-clinical-layout .v83-icon{width:46px!important;height:46px!important;display:grid!important;place-items:center;border-radius:14px!important;background:#e4f8f4!important;color:#0f766e!important}body.medai-clinical-layout .v83-icon svg{width:24px;height:24px}@media(max-width:900px){body.medai-clinical-layout #dash,body.medai-clinical-layout #dashboard{padding-left:228px}.medai-clinical-side{width:228px}.medai-clinical-hero{grid-template-columns:1fr 38%;padding:28px}}@media(max-width:760px){body.medai-clinical-layout #dash,body.medai-clinical-layout #dashboard{padding-left:0;padding-top:45px}.medai-clinical-side{width:min(300px,88vw);transform:translateX(-105%);transition:transform .22s}.medai-clinical-side.open{transform:translateX(0)}.medai-side-close{display:grid;place-items:center;position:absolute;right:10px;top:10px;width:32px;height:32px;border:0;border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:24px}.medai-clinical-menu{display:flex;align-items:center;gap:7px;position:fixed;inset:0 0 auto;z-index:10010;min-height:45px;padding:0 16px;border:0;border-bottom:1px solid #dce8e7;background:rgba(255,255,255,.94);color:#0f5f62;font-size:11px;font-weight:800}.medai-clinical-menu svg{width:17px}.medai-clinical-hero{min-height:320px;display:block;padding:25px 22px 0}.medai-hero-copy h2{font-size:33px}.medai-hero-art{width:75%;margin:-8px 0 0 auto}.medai-ekg{left:8%;top:67%}}@media(prefers-reduced-motion:reduce){.medai-ekg{animation:none}}.medai-landing-hero{position:relative;min-height:300px;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,46%);align-items:center;overflow:hidden;margin:10px auto 28px;padding:36px 46px;border:1px solid #d8ebe8;border-radius:26px;background:linear-gradient(120deg,#fff,#f5fcfa 58%,#e1f6f2);box-shadow:0 20px 60px rgba(20,74,87,.1);text-align:left}.medai-landing-copy{position:relative;z-index:2}.medai-landing-copy h1{max-width:560px;margin:12px 0;color:#102f43;font-size:clamp(38px,5vw,64px);line-height:.96;letter-spacing:-.06em}.medai-landing-copy .muted{max-width:500px;font-size:15px}.medai-landing-art{position:relative;z-index:2;align-self:end}.medai-landing-art svg{display:block;width:100%;max-height:270px;filter:drop-shadow(0 14px 22px rgba(25,78,84,.13))}.medai-landing-ekg{position:absolute;left:28%;right:1%;top:48%;height:2px;opacity:.13;background:linear-gradient(90deg,transparent,#0f766e 16%,#0f766e 30%,transparent 30%);animation:medai-ekg 4.8s linear infinite}#roleCards .role .icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#e4f8f4;color:#0f766e}#roleCards .role .icon svg{width:25px;height:25px}#roleCards .role:nth-child(2) .icon{background:#eaf2ff;color:#1769e0}header .logo{background:linear-gradient(145deg,#14b8a6,#0f766e)}@media(max-width:760px){.medai-landing-hero{display:block;min-height:470px;padding:28px 22px 0}.medai-landing-copy h1{font-size:41px}.medai-landing-art{width:88%;margin:-6px 0 0 auto}.medai-landing-ekg{left:7%;top:64%}}.medai-side-group{border-bottom:1px solid rgba(255,255,255,.055)}.medai-side-group summary{display:flex;align-items:center;justify-content:space-between;min-height:38px;margin-top:7px;padding:8px 10px;color:#79aaa9;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;list-style:none}.medai-side-group summary::-webkit-details-marker{display:none}.medai-side-chevron{font-size:18px;line-height:1;transition:transform .18s ease}.medai-side-group[open] .medai-side-chevron{transform:rotate(90deg);color:#6ee7d7}.medai-side-items{display:grid;gap:3px;padding-bottom:7px}.medai-essential{margin:0 0 20px}.medai-essential-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:10px}.medai-essential-heading span{color:#17384b;font-size:15px;font-weight:800}.medai-essential-heading small{color:#728492;font-size:10px}.medai-essential-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.medai-essential-grid button{min-height:82px;display:grid;grid-template-columns:42px minmax(0,1fr) 16px;align-items:center;gap:11px;padding:14px;border:1px solid #dbe9e7;border-radius:16px;background:#fff;color:#17384b;text-align:left;box-shadow:0 7px 22px rgba(22,63,77,.045);transition:.18s}.medai-essential-grid button:hover{transform:translateY(-2px);border-color:#70cfc1}.medai-essential-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e3f7f3;color:#0f8276}.medai-essential-icon svg{width:22px}.medai-essential-grid b,.medai-essential-grid small{display:block}.medai-essential-grid b{font-size:12px}.medai-essential-grid small{margin-top:4px;color:#728492;font-size:9px}.medai-essential-grid i{color:#87aaa7;font-size:22px;font-style:normal}.medai-home-simplified>.v83-grid,.medai-home-simplified>.v83-alert,.medai-home-simplified .v95-nav,.medai-home-simplified>.v96-grid{display:none!important}@media(max-width:760px){.medai-essential-heading{align-items:start;flex-direction:column;gap:3px}.medai-essential-grid{grid-template-columns:1fr}.medai-essential-grid button{min-height:68px}.medai-side-group summary{min-height:42px}}.medai-doctor-image{display:block;width:auto!important;max-width:100%;height:min(430px,34vw);max-height:none!important;margin:0 auto -18px;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(16,47,67,.18))}.medai-clinical-hero .medai-ekg,.medai-landing-hero .medai-landing-ekg{position:absolute;z-index:1;left:31%;right:auto;top:45%;width:66%;height:74px;overflow:visible;background:none;opacity:1;transform:none}.medai-ekg-track{fill:none;stroke:#0f9f8f;stroke-width:3;opacity:.12;vector-effect:non-scaling-stroke}.medai-ekg-pulse{fill:none;stroke:#16b8a5;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:150 950;stroke-dashoffset:1100;vector-effect:non-scaling-stroke;animation:medai-ekg-travel 3.1s linear infinite}@keyframes medai-ekg-travel{to{stroke-dashoffset:0}}@media(max-width:760px){.medai-doctor-image{height:330px;margin-bottom:-12px}.medai-clinical-hero .medai-ekg,.medai-landing-hero .medai-landing-ekg{left:5%;top:68%;width:92%;height:64px}}@media(prefers-reduced-motion:reduce){.medai-ekg-pulse{animation-duration:7s}}.medai-clinical-hero .medai-ekg,.medai-landing-hero .medai-landing-ekg{z-index:6!important;left:5%!important;top:56%!important;width:90%!important;height:92px!important;opacity:1!important;filter:drop-shadow(0 0 7px rgba(15,159,143,.35));pointer-events:none}.medai-ekg-track{stroke:#3eb8ab!important;stroke-width:3.5!important;opacity:.28!important}.medai-ekg-pulse{stroke:#ef4f5f!important;stroke-width:5!important;stroke-dasharray:190 900!important;animation:medai-ekg-travel-visible 2.6s linear infinite!important}@keyframes medai-ekg-travel-visible{from{stroke-dashoffset:1090}to{stroke-dashoffset:0}}@media(max-width:760px){.medai-clinical-hero .medai-ekg,.medai-landing-hero .medai-landing-ekg{left:2%!important;top:66%!important;width:96%!important;height:78px!important}}
/* Thera_MED premium learning hub — scoped only to Thera_MED */
.theramed-shell{--tm-bg:#06172d;--tm-panel:rgba(10,32,61,.78);--tm-line:rgba(71,169,255,.28);position:relative;min-height:calc(100vh - 45px);overflow:hidden;padding:24px clamp(16px,3vw,38px) 54px;background:radial-gradient(circle at 20% 15%,rgba(0,131,255,.18),transparent 34%),radial-gradient(circle at 83% 14%,rgba(0,224,255,.12),transparent 30%),linear-gradient(160deg,#041123 0%,#071c36 50%,#06152a 100%);color:#f5fbff}
.theramed-shell:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(68,155,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(68,155,255,.035) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 90%)}
.theramed-bg-orb{position:absolute;border-radius:50%;filter:blur(70px);opacity:.23;pointer-events:none}.theramed-bg-orb.orb-a{width:260px;height:260px;right:-70px;top:15%;background:#00a8ff}.theramed-bg-orb.orb-b{width:220px;height:220px;left:-80px;bottom:8%;background:#00e5c4}
.theramed-back{position:relative;z-index:3;min-height:42px;padding:0 15px;border:1px solid rgba(129,198,255,.2);border-radius:12px;background:rgba(255,255,255,.055);color:#b9dfff;font-weight:750;backdrop-filter:blur(10px)}
.theramed-hero{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 22px;padding:22px clamp(18px,3vw,34px);border:1px solid rgba(84,176,255,.22);border-radius:24px;background:linear-gradient(135deg,rgba(12,42,77,.92),rgba(7,24,47,.82));box-shadow:0 20px 55px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.05);backdrop-filter:blur(18px)}
.theramed-brand{display:flex;align-items:center;gap:17px;min-width:0}.theramed-brand img{width:78px;height:78px;border-radius:50%;object-fit:cover;border:2px solid rgba(101,192,255,.48);box-shadow:0 0 0 6px rgba(27,132,255,.08),0 0 30px rgba(0,137,255,.32)}.theramed-brand span{display:block;color:#7fc8ff;font-size:9px;font-weight:850;letter-spacing:.22em}.theramed-brand h1{margin:4px 0 3px;font-size:clamp(30px,5vw,54px);line-height:1;letter-spacing:-.045em;color:#fff}.theramed-brand h1 b{color:#49baff}.theramed-brand p{margin:0;color:#88a9c5;font-size:12px}
.theramed-pulse{display:flex;align-items:center;gap:6px}.theramed-pulse i{display:block;width:7px;height:7px;border-radius:50%;background:#52c8ff;box-shadow:0 0 14px rgba(82,200,255,.8);animation:theramedPulse 1.6s ease-in-out infinite}.theramed-pulse i:nth-child(2){animation-delay:.18s}.theramed-pulse i:nth-child(3){animation-delay:.36s}@keyframes theramedPulse{0%,100%{transform:scale(.75);opacity:.45}50%{transform:scale(1.25);opacity:1}}
.theramed-organizer{position:relative;z-index:2;min-height:500px;padding:34px 0 12px}
.theramed-core{position:absolute;left:50%;top:50%;z-index:4;width:154px;height:154px;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:translate(-50%,-50%);border:1px solid rgba(100,194,255,.45);border-radius:50%;background:radial-gradient(circle at 38% 30%,#134e84,#0b274d 57%,#07172c 100%);box-shadow:0 0 0 12px rgba(40,145,255,.045),0 0 0 24px rgba(40,145,255,.025),0 0 58px rgba(0,137,255,.28),inset 0 0 28px rgba(68,179,255,.15)}
.theramed-core span{color:#e8f6ff;font-size:16px;font-weight:800;letter-spacing:.1em}.theramed-core b{color:#54c5ff;font-size:30px;line-height:1}.theramed-core small{margin-top:9px;color:#6e9fc3;font-size:9px;font-weight:850;letter-spacing:.18em}
.theramed-lines span{position:absolute;left:50%;top:50%;z-index:1;height:1px;width:31%;transform-origin:left center;background:linear-gradient(90deg,rgba(78,185,255,.55),rgba(78,185,255,.04));box-shadow:0 0 8px rgba(78,185,255,.25)}.theramed-lines .l1{transform:rotate(-145deg)}.theramed-lines .l2{transform:rotate(-35deg)}.theramed-lines .l3{transform:rotate(145deg)}.theramed-lines .l4{transform:rotate(35deg)}
.theramed-subjects{position:relative;z-index:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:980px;margin:auto}
.theramed-subject{position:relative;min-height:185px;display:grid;grid-template-columns:56px minmax(0,1fr) 28px;align-items:end;gap:13px;padding:22px;border:1px solid rgba(107,178,231,.2);border-radius:22px;background:linear-gradient(145deg,rgba(16,46,83,.9),rgba(7,24,47,.88));color:#fff;text-align:left;overflow:hidden;box-shadow:0 15px 38px rgba(0,0,0,.2);transition:.2s ease;backdrop-filter:blur(14px)}
.theramed-subject:before{content:"";position:absolute;inset:auto -15% -45% auto;width:160px;height:160px;border-radius:50%;filter:blur(16px);opacity:.22}.theramed-subject:hover{transform:translateY(-4px);border-color:rgba(110,202,255,.55);box-shadow:0 22px 48px rgba(0,0,0,.28)}.theramed-subject strong{align-self:center;font-size:clamp(20px,2.5vw,30px);line-height:1.05;letter-spacing:-.025em}.theramed-index{position:absolute;right:18px;top:15px;color:rgba(170,213,244,.35);font-size:11px;font-weight:850;letter-spacing:.12em}.theramed-subject-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:17px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.07)}.theramed-subject-icon svg{width:27px;height:27px}.theramed-arrow{font-size:25px;color:#8dcfff;align-self:center}.theramed-path{margin-right:88px}.theramed-uash{margin-left:88px}.theramed-therapy{margin-right:88px;margin-top:78px}.theramed-emergency{margin-left:88px;margin-top:78px}.theramed-path:before{background:#ff3f67}.theramed-uash:before{background:#1ce3c2}.theramed-therapy:before{background:#2f88ff}.theramed-emergency:before{background:#ff8a33}.theramed-path .theramed-subject-icon{color:#ff718e}.theramed-uash .theramed-subject-icon{color:#42e8cb}.theramed-therapy .theramed-subject-icon{color:#63a9ff}.theramed-emergency .theramed-subject-icon{color:#ffad68}
@media(max-width:760px){.theramed-shell{padding:14px 14px 36px}.theramed-hero{padding:16px;border-radius:19px}.theramed-brand{gap:12px}.theramed-brand img{width:58px;height:58px}.theramed-brand h1{font-size:30px}.theramed-brand span{font-size:7px}.theramed-pulse{display:none}.theramed-organizer{min-height:auto;padding-top:96px}.theramed-core{top:0;width:112px;height:112px;transform:translate(-50%,0)}.theramed-core span{font-size:12px}.theramed-core b{font-size:23px}.theramed-lines{display:none}.theramed-subjects{grid-template-columns:1fr;gap:13px}.theramed-subject{min-height:116px;grid-template-columns:48px minmax(0,1fr) 24px;padding:17px;border-radius:18px}.theramed-subject strong{font-size:21px}.theramed-subject-icon{width:48px;height:48px;border-radius:14px}.theramed-path,.theramed-uash,.theramed-therapy,.theramed-emergency{margin:0}.theramed-back{min-height:38px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.theramed-pulse i{animation:none}}

/* Thera_MED motion layer */
.theramed-shell{animation:tmShellIn .65s cubic-bezier(.22,.8,.2,1) both}
@keyframes tmShellIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.theramed-brand img{animation:tmLogoBreath 4s ease-in-out infinite}
@keyframes tmLogoBreath{0%,100%{transform:scale(1);box-shadow:0 0 0 6px rgba(27,132,255,.08),0 0 30px rgba(0,137,255,.32)}50%{transform:scale(1.035);box-shadow:0 0 0 9px rgba(27,132,255,.07),0 0 42px rgba(0,177,255,.48)}}
.theramed-core{animation:tmCorePulse 3.2s ease-in-out infinite}
@keyframes tmCorePulse{0%,100%{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 0 12px rgba(40,145,255,.045),0 0 0 24px rgba(40,145,255,.025),0 0 58px rgba(0,137,255,.28),inset 0 0 28px rgba(68,179,255,.15)}50%{transform:translate(-50%,-50%) scale(1.045);box-shadow:0 0 0 18px rgba(40,145,255,.05),0 0 0 34px rgba(40,145,255,.02),0 0 78px rgba(0,174,255,.42),inset 0 0 38px rgba(68,179,255,.22)}}
.theramed-subject{animation:tmCardIn .55s cubic-bezier(.2,.75,.25,1) both,tmFloat 5.8s ease-in-out 1s infinite}
.theramed-subject:nth-child(1){animation-delay:.08s,1.2s}.theramed-subject:nth-child(2){animation-delay:.16s,1.6s}.theramed-subject:nth-child(3){animation-delay:.24s,2s}.theramed-subject:nth-child(4){animation-delay:.32s,2.4s}
@keyframes tmCardIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes tmFloat{0%,100%{translate:0 0}50%{translate:0 -6px}}
.theramed-subject:active{transform:scale(.985)!important}
.theramed-subject:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.13) 45%,transparent 70%);transform:translateX(-120%);transition:transform .65s ease}
.theramed-subject:hover:after,.theramed-subject:focus-visible:after{transform:translateX(120%)}
.theramed-lines span{overflow:visible}
.theramed-flow i{position:absolute;left:50%;top:50%;z-index:2;width:8px;height:8px;margin:-4px;border-radius:50%;background:#8fe5ff;box-shadow:0 0 12px #5fd8ff,0 0 24px rgba(95,216,255,.65);transform-origin:0 0;animation:tmFlow 2.8s linear infinite}
.theramed-flow .f1{--ang:-145deg;--dist:250px;animation-delay:0s}.theramed-flow .f2{--ang:-35deg;--dist:250px;animation-delay:.7s}.theramed-flow .f3{--ang:145deg;--dist:250px;animation-delay:1.4s}.theramed-flow .f4{--ang:35deg;--dist:250px;animation-delay:2.1s}
@keyframes tmFlow{0%{opacity:0;transform:rotate(var(--ang)) translateX(0) scale(.55)}15%{opacity:1}85%{opacity:1}100%{opacity:0;transform:rotate(var(--ang)) translateX(var(--dist)) scale(1)}}
.theramed-ecg{position:absolute;left:42%;right:4%;bottom:8px;width:54%;height:68px;opacity:.72;pointer-events:none;filter:drop-shadow(0 0 8px rgba(66,196,255,.25))}
.theramed-ecg-track,.theramed-ecg-run{fill:none;stroke-linecap:round;stroke-linejoin:round}.theramed-ecg-track{stroke:rgba(96,178,234,.18);stroke-width:3}.theramed-ecg-run{stroke:#59d7ff;stroke-width:4;stroke-dasharray:90 640;stroke-dashoffset:730;animation:tmEcg 2.4s linear infinite}
@keyframes tmEcg{to{stroke-dashoffset:0}}
.theramed-particles{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.theramed-particles:before,.theramed-particles:after{content:"";position:absolute;inset:-20%;background-image:radial-gradient(circle,rgba(130,213,255,.55) 0 1px,transparent 1.7px);background-size:44px 44px;opacity:.18;animation:tmParticles 18s linear infinite}
.theramed-particles:after{background-size:68px 68px;opacity:.1;animation-duration:28s;animation-direction:reverse}
@keyframes tmParticles{from{transform:translate3d(0,0,0)}to{transform:translate3d(44px,44px,0)}}
.theramed-bg-orb.orb-a{animation:tmOrbA 10s ease-in-out infinite alternate}.theramed-bg-orb.orb-b{animation:tmOrbB 12s ease-in-out infinite alternate}
@keyframes tmOrbA{to{transform:translate(-45px,55px) scale(1.15)}}@keyframes tmOrbB{to{transform:translate(52px,-40px) scale(.92)}}
.theramed-back{transition:transform .18s ease,border-color .18s ease,background .18s ease}.theramed-back:hover{transform:translateX(-3px);border-color:rgba(129,198,255,.45);background:rgba(255,255,255,.085)}
@media(max-width:760px){.theramed-core{animation-name:tmCorePulseMobile}.theramed-flow{display:none}.theramed-ecg{left:10%;right:auto;bottom:0;width:82%;height:54px}.theramed-subject{animation:tmCardIn .48s cubic-bezier(.2,.75,.25,1) both,tmFloatMobile 6.5s ease-in-out 1s infinite}.theramed-subject:nth-child(1){animation-delay:.06s,1.1s}.theramed-subject:nth-child(2){animation-delay:.12s,1.5s}.theramed-subject:nth-child(3){animation-delay:.18s,1.9s}.theramed-subject:nth-child(4){animation-delay:.24s,2.3s}}
@keyframes tmCorePulseMobile{0%,100%{transform:translate(-50%,0) scale(1)}50%{transform:translate(-50%,0) scale(1.04)}}@keyframes tmFloatMobile{0%,100%{translate:0 0}50%{translate:0 -3px}}
@media(prefers-reduced-motion:reduce){.theramed-shell,.theramed-brand img,.theramed-core,.theramed-subject,.theramed-flow i,.theramed-ecg-run,.theramed-particles:before,.theramed-particles:after,.theramed-bg-orb{animation:none!important}}
/* Thera_MED X — holographic / neural / ambient layer */
.theramed-shell{--tm-accent:#56c8ff;--tm-accent-rgb:86,200,255;transition:background .6s ease,box-shadow .45s ease}
.theramed-shell[data-theme="path"]{--tm-accent:#ff5f87;--tm-accent-rgb:255,95,135}
.theramed-shell[data-theme="uash"]{--tm-accent:#35e5c0;--tm-accent-rgb:53,229,192}
.theramed-shell[data-theme="therapy"]{--tm-accent:#5a9fff;--tm-accent-rgb:90,159,255}
.theramed-shell[data-theme="emergency"]{--tm-accent:#ff9a57;--tm-accent-rgb:255,154,87}
.theramed-shell:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 48%,rgba(var(--tm-accent-rgb),.10),transparent 34%);transition:background .5s ease}
.theramed-medical-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:.12}
.theramed-medical-bg span{position:absolute;color:#8dd9ff;font-size:clamp(18px,3vw,44px);font-weight:900;letter-spacing:.16em;filter:blur(.15px);animation:tmMedFloat 16s ease-in-out infinite}
.theramed-medical-bg span:nth-child(1){left:7%;top:18%;animation-delay:-2s}.theramed-medical-bg span:nth-child(2){right:8%;top:28%;animation-delay:-6s}.theramed-medical-bg span:nth-child(3){left:13%;bottom:16%;animation-delay:-8s}.theramed-medical-bg span:nth-child(4){right:12%;bottom:21%;animation-delay:-4s}.theramed-medical-bg span:nth-child(5){left:44%;top:11%;animation-delay:-10s}.theramed-medical-bg span:nth-child(6){right:39%;bottom:8%;animation-delay:-12s}
@keyframes tmMedFloat{0%,100%{transform:translate3d(0,0,0) rotate(-4deg);opacity:.45}50%{transform:translate3d(14px,-18px,0) rotate(5deg);opacity:.9}}
.theramed-orbit{position:absolute;left:50%;top:50%;z-index:0;border:1px solid rgba(var(--tm-accent-rgb),.16);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;transition:border-color .45s}
.theramed-orbit.orbit-a{width:270px;height:270px;animation:tmOrbitSpin 18s linear infinite}.theramed-orbit.orbit-b{width:360px;height:360px;border-style:dashed;animation:tmOrbitSpin 28s linear infinite reverse}
.theramed-orbit:before,.theramed-orbit:after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:var(--tm-accent);box-shadow:0 0 14px var(--tm-accent),0 0 28px rgba(var(--tm-accent-rgb),.5)}
.theramed-orbit:before{left:50%;top:-4px}.theramed-orbit:after{right:-4px;top:50%}
@keyframes tmOrbitSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.theramed-core{border-color:rgba(var(--tm-accent-rgb),.55);transition:border-color .45s,box-shadow .45s,background .45s}
.theramed-core:before,.theramed-core:after{content:"";position:absolute;inset:-14px;border:1px solid rgba(var(--tm-accent-rgb),.18);border-radius:50%;animation:tmCoreRing 3s ease-out infinite}
.theramed-core:after{inset:-28px;animation-delay:1.2s}
@keyframes tmCoreRing{0%{transform:scale(.9);opacity:.65}100%{transform:scale(1.18);opacity:0}}
.theramed-lines span{background:linear-gradient(90deg,rgba(var(--tm-accent-rgb),.7),rgba(var(--tm-accent-rgb),.04));box-shadow:0 0 10px rgba(var(--tm-accent-rgb),.35);transition:background .45s}
.theramed-flow i{background:var(--tm-accent);box-shadow:0 0 14px var(--tm-accent),0 0 28px rgba(var(--tm-accent-rgb),.65)}
.theramed-ecg-run{stroke:var(--tm-accent);filter:drop-shadow(0 0 6px rgba(var(--tm-accent-rgb),.55));transition:stroke .35s;animation-duration:2.3s}
.theramed-shell[data-theme="emergency"] .theramed-ecg-run{animation-duration:1.35s}.theramed-shell[data-theme="path"] .theramed-ecg-run{animation-duration:1.8s}
.theramed-subject{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transform-style:preserve-3d;will-change:transform,translate;transition:transform .18s ease,border-color .22s,box-shadow .22s,filter .22s}
.theramed-subject:hover{transform:perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1.015);filter:saturate(1.12)}
.theramed-subject>*{position:relative;z-index:2}.theramed-subject-icon,.theramed-subject strong,.theramed-arrow{transform:translateZ(22px)}
.theramed-subject:before{transition:opacity .4s,transform .4s}.theramed-subject:hover:before{opacity:.38;transform:scale(1.18)}
.theramed-subject:after{background:linear-gradient(115deg,transparent 18%,rgba(255,255,255,.18) 42%,transparent 66%);mix-blend-mode:screen}
.theramed-focus .theramed-organizer{filter:blur(1.2px) brightness(.62);transform:scale(.985);transition:filter .35s,transform .35s}
.theramed-stage{position:fixed;inset:0;z-index:10060;display:grid;place-items:center;pointer-events:none;opacity:0;transition:opacity .28s ease}
.theramed-stage.open{pointer-events:auto;opacity:1}.theramed-stage-backdrop{position:absolute;inset:0;background:rgba(1,9,22,.72);backdrop-filter:blur(14px)}
.theramed-stage-card{position:relative;width:min(760px,calc(100vw - 28px));min-height:430px;overflow:hidden;padding:32px;border:1px solid rgba(var(--tm-accent-rgb),.36);border-radius:30px;background:linear-gradient(145deg,rgba(15,45,82,.96),rgba(5,19,39,.98));box-shadow:0 35px 100px rgba(0,0,0,.55),0 0 60px rgba(var(--tm-accent-rgb),.18);transform:translateY(26px) scale(.92);opacity:.2;transition:transform .48s cubic-bezier(.18,.85,.25,1),opacity .36s}
.theramed-stage.open .theramed-stage-card{transform:none;opacity:1}.theramed-stage-card:before{content:"";position:absolute;width:340px;height:340px;right:-110px;top:-130px;border-radius:50%;background:radial-gradient(circle,rgba(var(--tm-accent-rgb),.34),transparent 68%);filter:blur(12px)}
.theramed-stage-kicker{position:relative;color:var(--tm-accent);font-size:10px;font-weight:900;letter-spacing:.2em}.theramed-stage-card h2{position:relative;margin:12px 0 10px;color:white;font-size:clamp(38px,7vw,72px);letter-spacing:-.055em;line-height:.95}
.theramed-stage-card p{position:relative;color:#9eb9cf;font-size:14px}.theramed-stage-close{position:absolute;right:18px;top:18px;z-index:4;width:42px;height:42px;border:1px solid rgba(255,255,255,.12);border-radius:50%;background:rgba(255,255,255,.06);color:#fff;font-size:26px}
.theramed-stage-grid{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:70px}.theramed-stage-grid div{padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.045);backdrop-filter:blur(10px)}
.theramed-stage-grid b,.theramed-stage-grid small{display:block}.theramed-stage-grid b{color:#fff;font-size:14px}.theramed-stage-grid small{margin-top:5px;color:#6f8fa8;font-size:10px}
@media(min-width:900px){.theramed-organizer{min-height:700px;padding:0}.theramed-subjects{position:absolute;inset:0;display:block;max-width:none}.theramed-subject{position:absolute;width:min(390px,38%);min-height:185px;margin:0!important}.theramed-path{left:2%;top:7%}.theramed-uash{right:2%;top:7%}.theramed-therapy{left:2%;bottom:7%}.theramed-emergency{right:2%;bottom:7%}.theramed-core{width:174px;height:174px}.theramed-orbit.orbit-a{width:315px;height:315px}.theramed-orbit.orbit-b{width:430px;height:430px}}
@media(max-width:760px){.theramed-medical-bg{opacity:.08}.theramed-orbit.orbit-a{width:160px;height:160px;top:56px}.theramed-orbit.orbit-b{width:205px;height:205px;top:56px}.theramed-core{top:0}.theramed-stage-card{min-height:390px;padding:26px 20px;border-radius:24px}.theramed-stage-card h2{font-size:42px}.theramed-stage-grid{grid-template-columns:1fr;margin-top:45px}.theramed-subject{transform:none!important}.theramed-subject:hover{transform:none!important}}
@media(prefers-reduced-motion:reduce){.theramed-medical-bg span,.theramed-orbit,.theramed-core:before,.theramed-core:after{animation:none!important}}
/* Thera_MED mobile text fix + Telegram CTA */
.theramed-telegram{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin-top:10px;padding:0 14px;border:1px solid rgba(90,190,255,.34);border-radius:12px;background:linear-gradient(135deg,rgba(27,92,164,.72),rgba(24,165,219,.58));color:#fff!important;font-size:12px;font-weight:850;text-decoration:none;box-shadow:0 8px 24px rgba(0,137,255,.18);backdrop-filter:blur(10px);transition:.18s}
.theramed-telegram:active{transform:scale(.98)}
@media(max-width:760px){
  .theramed-subjects{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:16px!important;max-width:100%!important}
  .theramed-subject{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;min-width:0!important;min-height:138px!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) 28px!important;align-items:center!important;gap:14px!important;padding:20px 18px!important;margin:0!important;overflow:hidden!important;transform:none!important}
  .theramed-subject strong{display:block!important;min-width:0!important;max-width:100%!important;font-size:20px!important;line-height:1.12!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:normal!important;overflow-wrap:anywhere!important;justify-self:start!important}
  .theramed-subject-icon{width:54px!important;height:54px!important}
  .theramed-arrow{justify-self:end!important;align-self:center!important}
  .theramed-index{left:auto!important;right:14px!important;top:10px!important}
  .theramed-organizer{padding-top:118px!important}
  .theramed-brand>div{min-width:0}.theramed-brand h1{white-space:nowrap}.theramed-telegram{min-height:36px;padding:0 12px;font-size:11px}
}

/* Thera_MED mobile: subject titles always one line */
@media(max-width:760px){
  .theramed-subject{grid-template-columns:48px minmax(0,1fr) 22px!important;gap:10px!important;padding:18px 14px!important}
  .theramed-subject-icon{width:46px!important;height:46px!important}
  .theramed-subject strong{font-size:clamp(15px,4.5vw,18px)!important;line-height:1!important;white-space:nowrap!important;overflow:visible!important;overflow-wrap:normal!important;word-break:keep-all!important;letter-spacing:-.03em!important}
  .theramed-arrow{font-size:20px!important}
}

/* FINAL Thera_MED mobile compact premium row */
@media(max-width:760px){
  .theramed-organizer{padding-top:118px!important}
  .theramed-subjects{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:14px!important;max-width:100%!important}
  .theramed-subject{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;min-width:0!important;min-height:108px!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) 20px!important;align-items:center!important;column-gap:10px!important;padding:17px 14px 15px!important;margin:0!important;overflow:hidden!important;transform:none!important;border-radius:18px!important}
  .theramed-subject-icon{width:44px!important;height:44px!important;border-radius:13px!important;justify-self:start!important}
  .theramed-subject-icon svg{width:23px!important;height:23px!important}
  .theramed-subject strong{display:block!important;min-width:0!important;max-width:100%!important;justify-self:start!important;align-self:center!important;margin:0!important;padding:0!important;font-size:clamp(14px,4.15vw,17px)!important;line-height:1!important;letter-spacing:-.035em!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;word-break:keep-all!important;overflow-wrap:normal!important}
  .theramed-arrow{font-size:18px!important;justify-self:end!important;align-self:center!important;transform:none!important}
  .theramed-index{position:absolute!important;top:8px!important;right:12px!important;left:auto!important;font-size:9px!important;letter-spacing:.1em!important;opacity:.7!important}
  .theramed-subject:after{opacity:.75}
}
@media(max-width:380px){
  .theramed-subject{grid-template-columns:40px minmax(0,1fr) 18px!important;column-gap:8px!important;padding-left:12px!important;padding-right:12px!important}
  .theramed-subject-icon{width:40px!important;height:40px!important}
  .theramed-subject strong{font-size:13.5px!important;letter-spacing:-.04em!important}
  .theramed-arrow{font-size:17px!important}
}
/* Thera_MED MOBILE PERFORMANCE MODE */
@media(max-width:760px){
  .theramed-particles,.theramed-medical-bg,.theramed-orbit,.theramed-flow,.theramed-bg-orb{display:none!important}
  .theramed-shell,.theramed-brand img,.theramed-core,.theramed-subject{animation:none!important}
  .theramed-hero,.theramed-subject,.theramed-stage-card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .theramed-subject{box-shadow:0 8px 20px rgba(0,0,0,.18)!important;will-change:auto!important}
  .theramed-subject:after{display:none!important}
  .theramed-core:before,.theramed-core:after{display:none!important}
  .theramed-ecg-run{animation-duration:3.4s!important}
  .theramed-shell:after{opacity:.45!important}
  .theramed-stage-backdrop{backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important}
  .theramed-stage-card{box-shadow:0 18px 50px rgba(0,0,0,.42)!important}
}
