:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color-scheme:dark;--bg:#0b1323;--panel:#142037;--card:#1a2840;--text:#eaf1ff;--muted:#a6b7d0;--line:#2b3d5b;--accent:#62b0ff;--accent-dark:#18395f;--soft:#142e4d;--good:#83d8b6;--warn:#edc67c;--bad:#ff9eac;--glass:rgba(21,34,56,.88);--shadow:0 16px 50px #0002}html[data-theme=light]{color-scheme:light;--bg:#eef4fc;--panel:#fff;--card:#f6f9ff;--text:#172b49;--muted:#526a8c;--line:#d8e3f2;--accent:#116be8;--accent-dark:#e1edff;--soft:#e8f1ff;--good:#177354;--warn:#865d19;--bad:#b72f49;--glass:rgba(255,255,255,.9);--shadow:0 16px 50px #184a8a0c}*{box-sizing:border-box}html{scroll-padding-top:135px}body{margin:0;background:radial-gradient(ellipse at 70% 0,#227ae319,transparent 55%),var(--bg);color:var(--text);font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:var(--accent)}button{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(26px,3.6vw,44px);line-height:1.14;letter-spacing:-1.3px;font-weight:750}h2{font-size:20px;line-height:1.3;letter-spacing:-.5px}h3{font-size:14px;font-weight:700}p{color:var(--muted)}.eyebrow{display:block;font-size:10px;letter-spacing:2px;font-weight:750;color:var(--accent);text-transform:uppercase}.muted{color:var(--muted)}.small{font-size:11px}.tiny{font-size:10px}.app-header{position:sticky;top:0;z-index:30;border-bottom:1px solid var(--line);background:var(--glass);backdrop-filter:blur(18px)}.header-inner{max-width:1480px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:17px 28px;gap:20px}.brand{display:flex;gap:10px;align-items:center;color:var(--text);text-decoration:none;font-size:21px;letter-spacing:-.7px;font-weight:800}.brand-mark{display:grid;place-items:center;width:34px;height:36px;border-radius:11px;background:linear-gradient(135deg,#86caff,#1274f4);box-shadow:0 4px 12px #0577fa33;transform:rotate(-7deg);color:#fff}.brand-mark svg{width:23px;height:23px}.brand em{color:var(--accent);font-style:normal}.header-actions{display:flex;gap:10px;align-items:center}.control{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:10px;padding:9px 12px;min-height:41px;font-size:12px}.theme-button{display:flex;gap:7px;align-items:center}.icon{display:inline-block;width:18px;height:18px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.demo-strip{font-size:11px;background:var(--soft);border-bottom:1px solid var(--line);padding:9px 28px;display:flex;justify-content:center;gap:12px;flex-wrap:wrap;color:var(--muted);text-align:center}.demo-strip strong{color:var(--accent);letter-spacing:1.2px;font-size:10px}.layout{max-width:1480px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);gap:30px;padding:30px 28px 70px}.sidebar{position:sticky;top:130px;align-self:start;min-width:0}.profile-label{padding:12px 13px;border-bottom:1px solid var(--line);margin-bottom:13px}.profile-label strong{display:block;font-size:13px}.profile-label span{font-size:10px;color:var(--muted)}.nav{display:flex;flex-direction:column;gap:6px}.nav button{display:flex;align-items:center;gap:11px;text-align:left;border:1px solid transparent;background:none;border-radius:11px;padding:12px;color:var(--muted);font-size:12px;font-weight:600;min-height:46px}.nav button:hover{background:var(--card)}.nav button.active{color:var(--accent);border-color:var(--line);background:var(--soft)}.sidebar-foot{margin-top:24px;padding:16px 12px;border-top:1px solid var(--line)}.sidebar-foot p{font-size:10px}.text-button{border:0;background:transparent;color:var(--accent);padding:7px 0;font-size:11px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;background:var(--accent);color:#fff;padding:12px 17px;min-height:45px;font-size:12px;font-weight:700;text-decoration:none;white-space:normal}.button.secondary{border-color:var(--line);background:var(--card);color:var(--text)}.button.ghost{border-color:var(--line);background:transparent;color:var(--accent)}.button.danger{background:#a83652;color:#fff}.button.small-button{font-size:11px;min-height:36px;padding:8px 12px}.full{width:100%}.page-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:4px 0 25px}.page-head h1{font-size:32px;margin:8px 0}.page-head p{max-width:680px;font-size:12px}.page-head-actions{display:flex;gap:9px;flex-wrap:wrap;flex-shrink:0}.panel{border:1px solid var(--line);background:var(--panel);border-radius:17px;padding:24px;box-shadow:var(--shadow);min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.pill{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);background:var(--soft);color:var(--accent);border-radius:30px;padding:5px 9px;font-size:10px;line-height:1.3}.pill.good{color:var(--good)}.pill.warn{color:var(--warn)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:22px}.stat{border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:18px 20px}.stat strong{display:block;font-size:27px;line-height:1.1;margin-bottom:7px;letter-spacing:-1px}.stat span{color:var(--muted);font-size:11px}.case-grid{display:grid;grid-template-columns:255px minmax(0,1fr);gap:20px;align-items:start}.cases-panel{padding:17px}.field-label{display:block;font-size:11px;font-weight:600;margin:0 0 7px}.input,textarea,select.input{width:100%;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:10px 12px;font-size:12px;min-height:42px}textarea{resize:vertical;line-height:1.6}.case-search{margin-bottom:10px}.case-filter{margin-bottom:15px}.case-list{display:flex;flex-direction:column;gap:8px}.case-item{border:1px solid var(--line);background:var(--card);border-radius:11px;padding:13px;text-align:left;width:100%}.case-item[aria-current=true]{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent);background:var(--soft)}.case-item strong{display:block;font-size:12px}.case-item p{font-size:11px;margin:4px 0 8px}.case-item small{font-size:9px;color:var(--muted)}.case-head{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:19px}.case-head h2{margin:4px 0}.case-head p{font-size:11px}.case-codes{font-family:ui-monospace,monospace;font-size:10px;letter-spacing:1px;color:var(--accent)}.viewer{position:relative;border-radius:11px;border:1px solid var(--line);overflow:hidden;background:#091222;aspect-ratio:16/9;display:grid;place-items:center;touch-action:manipulation}.viewer svg,.viewer img{width:100%;height:100%;object-fit:contain;display:block}.viewer.manual{cursor:crosshair}.viewer .pin{position:absolute;transform:translate(-50%,-50%);background:#83c6ff;color:#0d2443;width:25px;height:25px;border:2px solid white;border-radius:50%;font-size:10px;font-weight:800;display:grid;place-items:center;pointer-events:none}.viewer-caption{display:flex;justify-content:space-between;align-items:start;gap:15px;margin:9px 0 15px;font-size:10px;color:var(--muted)}.viewer-caption strong{color:var(--warn);font-weight:500}.upload-line{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.notice{padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--muted);font-size:11px;line-height:1.65}.notice.warning{background:color-mix(in srgb,var(--warn) 7%,var(--panel));color:var(--warn)}.notice.danger-notice{color:var(--bad)}.notice strong{display:block;color:var(--text);margin-bottom:3px}.findings{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.finding{border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--card)}.finding h3{font-size:12px;margin-bottom:7px}.finding p{font-size:11px}.finding .index{display:inline-grid;place-items:center;width:21px;height:21px;background:var(--accent-dark);color:var(--accent);border-radius:6px;margin-right:6px;font-size:10px}.note-block{margin-top:20px}.note-block textarea{min-height:100px}.note-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}.save-state{font-size:10px;color:var(--muted)}.review-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:17px}.review-actions p{font-size:10px;flex:1;min-width:200px}.empty{padding:35px 15px;text-align:center;color:var(--muted);font-size:12px}.empty .icon{width:30px;height:30px;display:block;margin:0 auto 10px}.plan-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.section-stack{display:flex;flex-direction:column;gap:20px}.checklist{display:flex;flex-direction:column;gap:12px}.check-row{display:flex;gap:11px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.check-row:last-child{border-bottom:0}input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px;flex-shrink:0;margin:2px 0 0}.progress-track{height:6px;background:var(--line);border-radius:10px;overflow:hidden;margin:10px 0}.progress-track span{display:block;height:100%;background:var(--accent);border-radius:10px}.progress-label{font-size:11px;color:var(--muted)}.question-list{display:flex;flex-direction:column;gap:10px;margin:15px 0}.question{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:11px 12px;background:var(--card);border-radius:9px;font-size:12px}.icon-button{border:1px solid var(--line);background:transparent;border-radius:8px;padding:7px;display:grid;place-items:center;min-width:35px;min-height:35px;color:var(--muted);flex-shrink:0}.question-form{display:flex;gap:9px}.question-form .input{min-width:0}.suggestions{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.suggestions button{border:1px solid var(--line);background:none;color:var(--muted);border-radius:20px;padding:7px 10px;font-size:10px;text-align:left}.teach-item{padding:15px 0;border-bottom:1px solid var(--line)}.teach-item:last-child{border:0}.teach-item h3{font-size:12px;font-weight:600;margin-bottom:9px}.choice-actions{display:flex;gap:7px}.choice-actions button{font-size:11px;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:7px 17px}.choice-actions button[aria-pressed=true]{color:var(--accent);background:var(--soft);border-color:var(--accent)}.teach-feedback{font-size:11px;margin-top:9px;color:var(--muted)}.appointment-date{font-size:25px;letter-spacing:-1px;margin:12px 0}.help-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px}.topic-list{display:flex;flex-direction:column;gap:9px}.topic-list button{width:100%;text-align:left;background:var(--card);border:1px solid var(--line);padding:12px;border-radius:10px;font-size:12px}.chat-log{height:340px;overflow-y:auto;display:flex;flex-direction:column;gap:15px;padding:7px 0 20px}.chat-message{max-width:93%;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:15px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.user{align-self:flex-end;background:var(--soft);border-color:var(--accent);max-width:80%}.chat-message .source{display:block;font-size:9px;color:var(--accent);margin-bottom:5px}.chat-form{display:flex;gap:10px}.chat-form textarea{min-height:74px}.chat-form .button{align-self:end}.chat-status{min-height:22px;font-size:10px;color:var(--muted);margin-top:8px}.product-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px}.feature-list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:12px}.feature-list li{display:flex;gap:10px;color:var(--muted);font-size:12px}.feature-list .icon{color:var(--accent)}.product-header{background:linear-gradient(120deg,var(--soft),var(--panel));padding:30px;margin-bottom:20px}.product-header h2{font-size:26px;margin:10px 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .button{margin-top:16px}.setting-row{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:13px 0;font-size:12px}.setting-row span{color:var(--muted)}.entry{max-width:1160px;margin:0 auto;padding:60px 28px 70px}.entry-hero{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:55px;margin-bottom:40px}.entry-hero h1{font-size:clamp(33px,4.5vw,57px);margin:16px 0 20px}.entry-hero p{max-width:550px;font-size:15px}.entry-art{position:relative;min-height:280px;background:linear-gradient(135deg,#2b82e72b,#1b376e24);border:1px solid var(--line);border-radius:28px;display:grid;place-items:center;overflow:hidden}.entry-art:before,.entry-art:after{content:'';position:absolute;width:300px;height:300px;border:1px solid #72b8ff33;border-radius:50%;transform:rotate(35deg) scaleY(.6)}.entry-art:after{transform:rotate(-35deg) scaleY(.6)}.entry-art svg{width:155px;height:190px;color:var(--accent);z-index:1;filter:drop-shadow(0 12px 20px #2882e52e)}.entry-art span{position:absolute;bottom:22px;left:25px;font-size:10px;color:var(--muted)}.profile-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-card{padding:26px}.profile-card h2{font-size:22px;margin:12px 0}.profile-card p{font-size:12px;min-height:45px;margin-bottom:20px}.profile-card .profile-icon{color:var(--accent);background:var(--soft);display:inline-grid;place-items:center;width:45px;height:45px;border-radius:13px}.profile-card .profile-icon .icon{width:23px;height:23px}.entry-foot{font-size:11px;color:var(--muted);text-align:center;max-width:750px;margin:25px auto}.storage-warning{max-width:1424px;margin:15px auto 0;padding:0 28px}.storage-warning .notice{display:flex;gap:15px;justify-content:space-between;align-items:center}.safety-footer{max-width:1480px;margin:auto;padding:22px 28px;border-top:1px solid var(--line);font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:25px}.safety-footer span{max-width:820px}.skip-link{position:fixed;left:12px;top:-60px;z-index:999;background:var(--accent);color:white;padding:10px 16px;border-radius:8px;text-decoration:none}.skip-link:focus{top:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,30px);opacity:0;pointer-events:none;background:var(--text);color:var(--bg);border-radius:11px;padding:12px 20px;z-index:200;box-shadow:var(--shadow);max-width:calc(100% - 32px);font-size:12px;transition:.2s;white-space:normal}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:17px;padding:27px;background:var(--panel);color:var(--text);width:min(440px,calc(100% - 32px));box-shadow:var(--shadow)}dialog::backdrop{background:#06102499;backdrop-filter:blur(4px)}dialog h2{margin-bottom:13px}dialog p{font-size:12px}dialog .dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.corrupt-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.error-text{color:var(--bad);font-size:11px;min-height:20px;margin-top:6px}.annotation-mode{color:var(--accent);font-size:11px;margin:8px 0}.wide-section{margin-top:20px}.divider{border:0;border-top:1px solid var(--line);margin:20px 0}.print-only{display:none}@media(max-width:1160px){.layout{grid-template-columns:185px minmax(0,1fr);gap:20px;padding-left:20px;padding-right:20px}.case-grid{grid-template-columns:210px minmax(0,1fr);gap:15px}.plan-layout{grid-template-columns:minmax(0,1fr) 270px}.panel{padding:20px}.cases-panel{padding:13px}.page-head{align-items:start}.page-head h1{font-size:29px}.help-layout{grid-template-columns:220px minmax(0,1fr)}}@media(max-width:940px){.layout{grid-template-columns:1fr;padding-top:18px}.sidebar{position:static}.profile-label{display:none}.nav{flex-direction:row;overflow-x:auto;padding-bottom:7px}.nav button{flex:0 0 auto;font-size:11px;padding:10px}.sidebar-foot{display:none}.case-grid{grid-template-columns:225px minmax(0,1fr)}.plan-layout{grid-template-columns:minmax(0,1fr) 280px}.page-head h1{font-size:30px}.entry-hero{gap:28px}.entry-art{min-height:260px}}@media(max-width:700px){.header-inner{padding:12px 16px;gap:10px}.brand{font-size:19px}.header-actions{gap:6px}.control{padding:8px;font-size:11px}.theme-button span{display:none}.demo-strip{font-size:10px;padding:8px 16px;gap:5px}.demo-strip strong{font-size:9px}.layout{padding:14px 16px 40px;gap:13px}.nav{gap:3px}.nav button{padding:8px 9px;gap:6px;font-size:10px;min-height:42px}.nav .icon{width:16px;height:16px}.page-head{display:block;margin:0 0 18px}.page-head h1{font-size:29px}.page-head-actions{margin-top:14px}.stats{gap:9px;margin-bottom:16px}.stat{padding:13px 11px}.stat strong{font-size:24px}.stat span{font-size:9px}.case-grid,.plan-layout,.help-layout,.settings-grid,.product-cards{grid-template-columns:1fr}.case-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px;overflow-y:auto}.case-item{padding:10px}.case-item p{font-size:10px}.cases-panel{padding:14px}.case-search,.case-filter{display:inline-block;vertical-align:top}.case-search{width:calc(59% - 7px);margin-right:7px}.case-filter{width:41%}.panel{padding:18px;border-radius:14px}.case-head{gap:10px}.case-head h2{font-size:18px}.case-head .pill{font-size:9px;max-width:125px}.findings{gap:8px}.finding{padding:12px}.finding p{font-size:10px}.viewer-caption{display:block}.viewer-caption strong{display:block;margin-bottom:4px}.button{min-height:44px;font-size:11px;padding:11px 14px}.review-actions{display:block}.review-actions p{margin-top:10px}.entry{padding:30px 16px 45px}.entry-hero{grid-template-columns:1fr;gap:25px;margin-bottom:26px}.entry-hero h1{font-size:40px;letter-spacing:-1.4px}.entry-hero p{font-size:13px}.entry-art{min-height:200px}.entry-art svg{width:120px;height:150px}.entry-art span{bottom:14px}.profile-cards{grid-template-columns:1fr;gap:14px}.profile-card{padding:22px}.profile-card p{min-height:0}.safety-footer{padding:20px 16px;display:block}.safety-footer span{display:block}.safety-footer a{display:inline-block;margin-top:10px}.storage-warning{padding:0 16px}.storage-warning .notice{display:block}.storage-warning .button{margin-top:10px}.question-form{flex-wrap:wrap}.question-form .button{width:100%}.chat-log{height:310px}.chat-form{flex-wrap:wrap}.chat-form .button{width:100%}.topic-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.topic-list button{font-size:10px;padding:10px}.product-header{padding:22px}.product-header h2{font-size:23px}.case-head .button{padding:8px 10px}.appointment-date{font-size:23px}.header-actions .logout-label{display:none}.setting-row{font-size:11px}}@media(max-width:380px){.brand{font-size:17px;gap:7px}.brand-mark{width:29px;height:31px}.control{padding:8px 6px}.nav button{font-size:9px}.nav button .icon{display:none}.findings{grid-template-columns:1fr}.entry-hero h1{font-size:35px}.case-list{grid-template-columns:1fr 1fr}.stats{gap:6px}.stat{padding:12px 8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{body{background:white;color:#111}.app-header,.demo-strip,.sidebar,.header-actions,.safety-footer,.page-head-actions,.upload-line,.review-actions,.suggestions,.question-form,.choice-actions,.nav,.settings-grid,#toast,.storage-warning,.no-print{display:none!important}.layout,.plan-layout,.case-grid,.product-cards{display:block;padding:0;max-width:none}.panel,.stat{box-shadow:none;background:white;color:#111;border:1px solid #aaa;break-inside:avoid;margin-bottom:15px}.panel p,.notice,.small,.muted{color:#333}.print-only{display:block}.page-head h1{font-size:24px}textarea{border:0;background:white;color:#111;min-height:0;resize:none}.entry{display:none}.section-stack{gap:0}.viewer{max-height:240px}.teach-item{break-inside:avoid}.notice{background:#f5f5f5}.pill{color:#111;background:white}.check-row{color:#111}.question{background:white;color:#111}.plan-layout>aside{margin-top:20px}.card-head{margin-bottom:10px}input[type=date]{background:white;color:#111}.progress-track{border:1px solid #aaa}.progress-track span{background:#444}.print-header{font-size:11px;margin:0 0 15px}.button{display:none!important}}

@media(max-width:700px){.control,.nav button,.suggestions button,.choice-actions button,.text-button{min-height:44px}.icon-button{min-height:40px;min-width:40px}}

/* Original ZIP visual identity: blue glass panels and the unchanged clinician-photo hero. */
:root{--bg:#0b1220;--panel:rgba(255,255,255,.06);--card:rgba(255,255,255,.07);--line:rgba(255,255,255,.14);--text:#f3f6fb;--muted:#9fb0c8;--accent:#5ab0ff;--glass:rgba(14,22,38,.72);--soft:rgba(90,176,255,.10);--shadow:0 12px 40px rgba(10,24,60,.16);--hero-ov-1:rgba(11,18,32,.92);--hero-ov-2:rgba(11,18,32,.78);--hero-ov-3:rgba(11,18,32,.45);--hero-ov-4:rgba(11,18,32,.7)}
html[data-theme=light]{--bg:#e8f0fb;--panel:rgba(255,255,255,.60);--card:rgba(255,255,255,.58);--line:rgba(255,255,255,.75);--text:#0f1b2d;--muted:#50617c;--accent:#0a7aff;--glass:rgba(255,255,255,.72);--soft:rgba(10,122,255,.075);--shadow:0 12px 40px rgba(10,24,60,.08);--hero-ov-1:rgba(232,240,251,.92);--hero-ov-2:rgba(232,240,251,.8);--hero-ov-3:rgba(232,240,251,.4);--hero-ov-4:rgba(232,240,251,.7)}
body{background:radial-gradient(800px 560px at 8% -8%,rgba(90,176,255,.30),transparent 62%),radial-gradient(760px 560px at 100% 8%,rgba(176,140,255,.21),transparent 60%),var(--bg) fixed}
.app-header{backdrop-filter:blur(28px) saturate(180%);-webkit-backdrop-filter:blur(28px) saturate(180%);box-shadow:inset 0 -1px 0 rgba(255,255,255,.12)}
.header-inner{max-width:1280px;padding:14px 24px;gap:18px}.brand{flex-shrink:0}.brand em{position:relative}.brand em::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:4px;border-radius:4px;background:color-mix(in srgb,var(--accent) 28%,transparent)}
.header-main-links{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto}.legacy-nav,.legacy-status{font-size:11px;border:1px solid var(--line);border-radius:999px;padding:7px 12px;background:var(--card);text-decoration:none;white-space:nowrap}.legacy-nav{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 55%,transparent)}.legacy-status{display:flex;align-items:center;gap:7px;color:var(--muted)}.legacy-status i{height:7px;width:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px color-mix(in srgb,var(--accent) 50%,transparent)}
.control{border-radius:999px;background:var(--card)}.panel,.stat{background:var(--panel);backdrop-filter:blur(26px) saturate(160%);-webkit-backdrop-filter:blur(26px) saturate(160%);border-color:var(--line);box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.18);border-radius:24px}.case-item{border-radius:15px}.demo-strip{background:color-mix(in srgb,var(--bg) 72%,var(--soft));padding-top:7px;padding-bottom:7px}.entry.legacy-entry{max-width:none;margin:0;padding:0}.legacy-wrap{max-width:1280px;margin:0 auto;padding-left:24px;padding-right:24px}.legacy-onboarding{padding:20px 0 10px}.legacy-onboarding-grid{display:grid;grid-template-columns:minmax(0,2.08fr) minmax(280px,1fr);gap:18px}.legacy-onboarding-copy,.legacy-steps{border:1px solid var(--line);background:var(--card);border-radius:20px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14);backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px)}.legacy-onboarding-copy{padding:22px 24px}.legacy-onboarding-copy h2{font-size:30px;font-weight:800;line-height:1.2;margin:9px 0 10px}.legacy-onboarding-copy p{font-size:13px;max-width:740px;line-height:1.7}.legacy-onboarding-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.legacy-onboarding-actions .button{min-height:41px;padding:10px 15px}.legacy-steps{padding:4px 18px;display:flex;flex-direction:column;justify-content:center}.legacy-step{display:flex;align-items:start;gap:17px;padding:14px 0;border-bottom:1px solid var(--line)}.legacy-step:last-child{border:0}.legacy-step>span{font:10px/1.6 ui-monospace,monospace;letter-spacing:1px;color:var(--accent);padding-top:2px}.legacy-step strong{font-size:12px;line-height:1.4;display:block}.legacy-step p{font-size:11px;margin-top:4px;line-height:1.6}.legacy-photo-hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line);background-color:var(--bg);background-image:linear-gradient(100deg,var(--hero-ov-1) 0%,var(--hero-ov-2) 34%,var(--hero-ov-3) 62%,var(--hero-ov-4) 100%),url('./legacy-hero.jpg');background-size:cover;background-repeat:no-repeat;background-position:center 48%}.legacy-photo-hero>.legacy-wrap{padding-top:50px;padding-bottom:40px;min-height:430px}.legacy-photo-copy{max-width:660px}.legacy-photo-copy .eyebrow{font-family:ui-monospace,monospace;letter-spacing:2.5px;font-size:10px;display:flex;align-items:center;gap:16px}.legacy-photo-copy .eyebrow::before{content:'';height:1px;width:23px;flex-shrink:0;background:var(--accent)}.legacy-photo-copy h1{font-size:clamp(30px,3.1vw,43px);line-height:1.16;font-weight:850;letter-spacing:-.8px;margin:20px 0 17px}.legacy-photo-copy h1 em{color:var(--accent);font-style:italic}.legacy-photo-copy>p{font-size:14px;line-height:1.75;max-width:620px}.legacy-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.legacy-hero-actions .button{border-radius:12px;padding:12px 16px;min-height:45px;font-size:12px}.legacy-hero-actions .secondary{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.24);color:var(--text);backdrop-filter:blur(15px)}html[data-theme=light] .legacy-hero-actions .secondary{background:rgba(255,255,255,.42);border-color:rgba(255,255,255,.9)}.legacy-hero-features{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px}.legacy-hero-features>span{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--card);backdrop-filter:blur(16px);border-radius:999px;font-size:11px;padding:7px 10px}.legacy-hero-features .icon{width:15px;height:15px;color:var(--accent)}.legacy-role-section{padding-top:30px;padding-bottom:45px;scroll-margin-top:135px}.legacy-section-title{margin-bottom:20px}.legacy-section-title h2{font-size:24px;margin-top:7px}.legacy-role-section .profile-cards{margin-top:0}.legacy-role-section .profile-card{padding:24px}.legacy-role-section .entry-foot{max-width:780px;text-align:left;margin-top:16px;margin-left:0}.legacy-role-section button[id^=profile-]{scroll-margin-top:150px}
@media(min-width:1600px){.legacy-photo-hero{background-position:center 43%}}
@media(max-width:1050px){.header-main-links .legacy-status{display:none}.legacy-onboarding-grid{grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr)}.legacy-onboarding-copy h2{font-size:27px}.legacy-photo-copy{max-width:610px}.legacy-photo-hero{background-position:60% 50%}}
@media(max-width:820px){.header-main-links{display:none}.legacy-onboarding-grid{grid-template-columns:1fr}.legacy-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:13px 18px}.legacy-step{border-bottom:0;padding:6px 0;gap:10px}.legacy-step p{font-size:10px}.legacy-photo-hero>.legacy-wrap{min-height:410px}.legacy-photo-copy{max-width:580px}}
@media(max-width:600px){.header-inner{padding:12px 16px;gap:10px}.header-actions{gap:6px}.control{min-height:40px;padding:8px 10px}.brand{font-size:18px;gap:8px}.brand-mark{width:31px;height:33px}.brand-mark svg{width:21px;height:21px}.legacy-wrap{padding-left:16px;padding-right:16px}.legacy-onboarding{padding:15px 0 10px}.legacy-onboarding-copy{padding:19px 18px;border-radius:18px}.legacy-onboarding-copy h2{font-size:26px;letter-spacing:-.6px;margin-top:9px}.legacy-onboarding-copy p{font-size:12px}.legacy-onboarding-actions{margin-top:16px;gap:8px}.legacy-onboarding-actions .button{font-size:11px;flex:1;min-height:44px}.legacy-steps{padding:12px 16px;gap:10px;border-radius:18px}.legacy-step{display:block}.legacy-step>span{display:block;font-size:9px;margin-bottom:5px}.legacy-step strong{font-size:10px}.legacy-step p{display:none}.legacy-photo-hero{background-position:62% 50%;background-image:linear-gradient(100deg,var(--hero-ov-1) 0%,var(--hero-ov-2) 48%,var(--hero-ov-4) 100%),url('./legacy-hero.jpg')}.legacy-photo-hero>.legacy-wrap{padding-top:32px;padding-bottom:28px;min-height:420px}.legacy-photo-copy .eyebrow{font-size:9px;letter-spacing:1.8px;gap:10px}.legacy-photo-copy .eyebrow::before{width:18px}.legacy-photo-copy h1{font-size:32px;line-height:1.15;margin:17px 0 15px;max-width:390px}.legacy-photo-copy>p{font-size:12px;line-height:1.75}.legacy-hero-actions{gap:8px;margin-top:20px}.legacy-hero-actions .button{font-size:11px;min-height:45px;padding:10px 12px;flex:1 1 44%;line-height:1.5}.legacy-hero-actions .button:last-child{flex-basis:100%;max-width:100%}.legacy-hero-features{gap:7px;margin-top:20px}.legacy-hero-features>span{font-size:9px;padding:6px 9px;gap:6px}.legacy-hero-features .icon{width:13px;height:13px}.legacy-role-section{padding-top:25px;padding-bottom:30px;scroll-margin-top:145px}.legacy-section-title h2{font-size:23px}.legacy-role-section .profile-card{padding:21px}.legacy-role-section .entry-foot{font-size:10px}.legacy-role-section .profile-cards{gap:14px}.panel,.stat{border-radius:20px}}
@media(prefers-reduced-transparency:reduce){.app-header{background:var(--bg)}.legacy-onboarding-copy,.legacy-steps,.panel,.stat{background:var(--bg)}}

@media(max-width:360px){.app-header.with-profile .brand>span:last-child{display:none}.app-header.with-profile .header-inner{gap:8px}.app-header.with-profile .header-actions{margin-left:auto}.app-header.with-profile #language{max-width:120px;min-width:0}}

/* Local demo profiles follow the original glass-and-blue visual identity. */
.user-avatar{--avatar-start:#77c4ff;--avatar-end:#276fe8;display:inline-grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:linear-gradient(145deg,var(--avatar-start),var(--avatar-end));color:#fff;font-size:11px;font-weight:800;letter-spacing:.02em;box-shadow:inset 0 1px 0 #ffffff55}
[data-color=mint]{--avatar-start:#66d9c0;--avatar-end:#247c72}[data-color=violet]{--avatar-start:#bea0ff;--avatar-end:#7952cc}[data-color=amber]{--avatar-start:#ffd18a;--avatar-end:#b56d20}
.header-profile{display:flex;align-items:center;gap:8px;padding:4px 11px 4px 4px;min-height:42px;max-width:200px}.header-profile>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:650}.header-profile[aria-current=page]{border-color:var(--accent)}
.profile-summary{width:100%;display:flex;align-items:center;gap:10px;background:none;color:var(--text);border:0;border-bottom:1px solid var(--line);text-align:left}.profile-summary>span:last-child{min-width:0}.profile-summary strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.profile-summary small{display:block;color:var(--muted);font-size:10px}.profile-summary:hover{background:var(--soft);border-radius:12px}
.profile-layout{display:grid;grid-template-columns:minmax(230px,.78fr) minmax(0,1.6fr);gap:20px;align-items:start}.profile-layout>.section-stack,.profile-editor{min-width:0}.profile-identity{text-align:center;padding-top:30px}.profile-avatar-large{width:86px;height:86px;font-size:27px;border-radius:28px;margin:0 auto 18px;box-shadow:0 12px 26px #1173d626,inset 0 1px 0 #ffffff55}.profile-identity>.pill{display:table;margin:0 auto 14px}.profile-identity h2{font-size:23px;overflow-wrap:anywhere;line-height:1.35;margin-bottom:12px}.profile-work{font-size:12px;margin:0 0 15px;overflow-wrap:anywhere}.profile-identity>.small{text-align:left;line-height:1.8}.profile-storage{display:flex;justify-content:center;align-items:center;gap:7px;border-top:1px solid var(--line);margin-top:19px;padding-top:15px;font-size:10px;color:var(--muted)}.profile-storage-dot{height:6px;width:6px;flex-shrink:0;border-radius:50%;background:var(--accent)}
.profile-avatar-field{border:0;padding:0;margin:20px 0}.profile-avatar-field legend{padding:0;margin-bottom:10px}.avatar-options{display:flex;gap:10px;flex-wrap:wrap}.avatar-option{position:relative;width:44px;height:44px;display:grid;place-items:center;border:2px solid transparent;border-radius:50%;background:transparent;padding:4px;color:#fff}.avatar-option>span{height:32px;width:32px;border-radius:50%;background:linear-gradient(145deg,var(--avatar-start,#77c4ff),var(--avatar-end,#276fe8));box-shadow:inset 0 1px 0 #ffffff44}.avatar-option .icon{position:absolute;display:none;width:17px;height:17px;stroke-width:2.5}.avatar-option[aria-pressed=true]{border-color:var(--accent)}.avatar-option[aria-pressed=true] .icon{display:block}.avatar-option:hover{background:var(--soft)}
.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}.profile-field{min-width:0}.profile-field-wide{grid-column:1/-1}.profile-field input,.profile-field textarea,.profile-field select{width:100%;min-width:0;max-width:100%}.profile-field .small{margin-top:8px;line-height:1.7}.profile-preferences{margin-top:18px;margin-bottom:12px}.profile-editor>.divider{margin:23px 0}.profile-save-row{display:flex;gap:10px;flex-wrap:wrap}.profile-save-row .button{min-height:44px}.profile-save-status{margin-top:10px;min-height:18px;color:var(--muted)}.profile-editor [aria-invalid=true]{border-color:var(--bad);outline-color:var(--bad)}.profile-data-link{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.profile-data-link .text-button{display:inline-flex;align-items:center;gap:7px;margin-top:8px}.profile-case-code{margin-top:18px;letter-spacing:1px;font-size:9px}.passport-metrics{margin:12px 0 17px}.passport-metrics>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.passport-metrics dt{font-size:11px;color:var(--muted)}.passport-metrics dd{font-size:17px;font-weight:700;line-height:1.2;margin:0;flex-shrink:0}.profile-passport-date{margin-top:15px}.profile-visit-goal{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);white-space:pre-wrap;overflow-wrap:anywhere}.profile-quicklinks{display:grid;gap:6px;margin-top:18px}.profile-quicklinks .text-button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:38px}.profile-passport #report-fallback{margin-top:18px}.profile-passport #report-copy{width:100%;font-size:11px}
@media(max-width:1160px){.profile-layout{grid-template-columns:minmax(215px,.75fr) minmax(0,1.4fr)}}
@media(max-width:940px){.profile-summary{display:none}}
@media(max-width:780px){.profile-layout{grid-template-columns:1fr}.profile-layout>aside{display:grid;grid-template-columns:1fr 1fr;align-items:start}.profile-editor{grid-row:1}.header-profile>span:last-child{display:none}.header-profile{padding:4px;min-width:42px;justify-content:center}}
@media(max-width:600px){.app-header.with-profile .brand>span:last-child{display:none}.app-header.with-profile .header-inner{gap:8px}.app-header.with-profile .header-actions{margin-left:auto;gap:6px}.app-header.with-profile #language{min-width:0;max-width:124px}.app-header.with-profile .theme-button{min-width:40px;min-height:42px;justify-content:center;padding:8px}.profile-layout{gap:15px}.profile-layout>aside{display:flex;flex-direction:column}.profile-layout>aside>.panel{width:100%}.profile-form-grid{grid-template-columns:1fr;gap:17px}.profile-editor{padding:20px 18px}.profile-save-row{display:grid;grid-template-columns:1fr;width:100%;gap:9px}.profile-save-row .button{justify-content:center}.profile-identity{padding-top:25px}.profile-avatar-large{width:76px;height:76px;font-size:24px}.profile-preferences{gap:15px}.profile-editor h2{font-size:19px}}
@media(max-width:360px){.app-header.with-profile .header-inner{padding-left:12px;padding-right:12px;gap:5px}.app-header.with-profile .header-actions{gap:4px}.app-header.with-profile #language{width:102px;max-width:102px;padding-left:8px;padding-right:5px}.app-header.with-profile .brand-mark{width:28px}.app-header.with-profile .header-profile{width:40px;min-width:40px}.app-header.with-profile .header-profile .user-avatar{width:30px;height:30px}.app-header.with-profile .theme-button{width:40px;padding:7px}.profile-editor{padding:19px 16px}}
@media print{.profile-layout{display:block}.profile-editor,.profile-identity,.profile-data-link{display:none}.profile-layout>aside{display:block}.profile-quicklinks{display:none}}
