:root{--ink:#24253f;--muted:#8588a1;--purple:#6554ef;--line:#e8eaf4}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:18px}body{margin:0;background:#f5f6fc;color:var(--ink);font:14px/1.55 system-ui,-apple-system,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}a{color:inherit}i{font-style:normal;display:inline-flex;align-items:center}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,canvas:focus-visible,summary:focus-visible{outline:3px solid #1dcab7;outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:225px;background:#101632;color:#959dbc;padding:32px 20px;display:flex;flex-direction:column;z-index:4}.brand{display:flex;align-items:center;gap:10px;color:white;text-decoration:none;font-size:22px;font-weight:750;letter-spacing:-.7px}.brand-icon{display:flex;background:#6554ef;border-radius:12px;padding:10px;color:#67ffe4}.brand-icon svg{width:24px;height:24px}.brand small{display:block;color:#6debd9;letter-spacing:3px;font-size:9px;margin-top:-3px}.workspace{font-size:9px;letter-spacing:1.4px;margin:37px 10px 18px;color:#697799}.nav{display:flex;align-items:center;gap:12px;padding:13px 12px;margin-bottom:7px;text-decoration:none;border-radius:10px;font-size:12px}.nav span{margin-left:auto;font-size:10px}.nav:hover{background:#20294c}.nav.active{color:white;background:linear-gradient(110deg,#6554ef,#876dff);box-shadow:0 6px 25px #6554ef30}.sidebar-tip{background:linear-gradient(130deg,#242a50,#192940);border:1px solid #343d5e;border-radius:15px;padding:20px;margin-top:45px}.sidebar-tip i{color:#62eed6}.sidebar-tip b{display:block;color:#f0f1ff;font-size:20px;line-height:1.3;margin:12px 0}.sidebar-tip p{font-size:10px;color:#8e9abc;line-height:1.9}.sidebar-bottom{display:flex;align-items:center;gap:10px;color:#e0e5f6;font-size:12px;margin-top:auto;padding-top:25px}.avatar{border-radius:11px;padding:11px;background:#293257;color:#b0a9ff;font-size:10px;font-weight:650}.sidebar-bottom small{display:block;color:#7583a2;font-size:9px}main{margin-left:225px;padding:0 35px;max-width:1800px}header{height:72px;display:flex;align-items:center;justify-content:space-between;color:#8a8fa5;font-size:11px}header>span:first-child{display:flex;align-items:center;gap:12px}header b{font-weight:400;color:#c5c7d8}.status{display:flex;align-items:center;gap:7px;font-size:10px}.dot{display:inline-block;width:6px;height:6px;background:#54e3bf;border-radius:50%}.hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1.5fr 1fr;min-height:330px;padding:33px 38px;background:radial-gradient(ellipse at 95% 100%,#28537380,transparent 50%),linear-gradient(115deg,#26275d,#342471 58%,#171f47);border-radius:21px;color:white}.hero-content{z-index:1}.eyebrow{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.9px;color:#c1bdf7;font-weight:650}.eyebrow.dark{color:#9188b8}h1{font-size:clamp(30px,3.3vw,47px);letter-spacing:-1.8px;line-height:1.17;margin:17px 0;font-weight:750}h1 em{font-style:normal;color:#68f0d8}h2{font-size:21px;font-weight:700;letter-spacing:-.7px;margin:6px 0}h3{font-size:15px}p{margin:8px 0}.hero p{font-size:12px;line-height:1.8;color:#c7c7e4}.primary,.secondary,.hero-demo{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:11px 16px;font-size:11px;font-weight:650;white-space:nowrap;text-decoration:none}.primary{background:var(--purple);border-color:var(--purple);color:white;box-shadow:0 6px 18px #6554ef22}.primary:hover{background:#5744db}.secondary{background:white;color:#646980}.secondary:hover{background:#f0edff;border-color:#d8d0f8}.hero .primary{background:#60ecd2;color:#143d40;border:0;box-shadow:0 5px 25px #2efdd622}.hero-demo{background:#ffffff0b;color:#e7e7ff;border-color:#ffffff22}.hero-actions{display:flex;gap:12px;margin:22px 0 19px}.hero-badges{display:flex;gap:20px;font-size:9px;color:#abaece}.hero-badges span{display:flex;gap:6px;align-items:center}.hero-badges svg{width:13px;height:13px}.hero-art{display:flex;justify-content:center;align-items:center;position:relative}.hero-art>svg{height:285px;max-width:100%;transform:rotate(15deg);filter:drop-shadow(0 0 30px #44ffe235);z-index:1}.orbit{position:absolute;width:280px;height:280px;border:1px solid #93b5ff25;border-radius:50%}.orbit.outer{width:355px;height:355px;border-style:dashed}.floating-tag{position:absolute;display:flex;align-items:center;gap:8px;border:1px solid #ffffff24;border-radius:10px;background:#1c285dcc;backdrop-filter:blur(12px);padding:10px 13px;font-size:9px;box-shadow:0 10px 35px #0002;z-index:2}.floating-tag.first{top:18px;right:-8px;color:#67f5dc}.floating-tag.second{bottom:13px;left:-12px;color:#cfd5ee}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:20px 0 32px}.stat{display:flex;align-items:center;gap:14px;background:white;border:1px solid var(--line);border-radius:13px;padding:19px;min-width:0}.stat>span{display:flex;align-items:center;justify-content:center;width:45px;height:45px;flex-shrink:0;border-radius:13px}.stat>span svg{width:24px;height:24px}.violet>span{background:#efecff;color:#7562ed}.cyan>span{background:#e5f9f7;color:#1cb7ab}.pink>span{background:#fff0f6;color:#e868a7}.lime>span{background:#f2f8e6;color:#90b344}.stat small{display:block;font-size:9px;color:#9396ab}.stat strong{display:block;font-size:23px;letter-spacing:-.7px;line-height:1.4}.stat p{font-size:9px;color:#979bb1;margin:0}.stat #stat-scale,.stat #stat-quality{font-size:15px;margin:5px 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 19px}.patient-card{display:grid;grid-template-columns:1.3fr 1fr .7fr 1.3fr 1fr;gap:16px;background:white;border:1px solid var(--line);padding:19px 21px;border-radius:13px;margin-bottom:20px}label{display:block;font-size:10px;color:#7d819b}input,select,textarea{display:block;width:100%;min-width:0;margin-top:6px;border:1px solid #e2e4ef;border-radius:7px;background:#fbfbfe;padding:10px;color:#42465f;font-size:11px}input[type=file]{position:absolute;width:1px;height:1px;opacity:0;padding:0;border:0}label:has(input[type=file]):focus-within{outline:3px solid #1dcab7;outline-offset:3px}.study-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(305px,1fr);gap:20px;align-items:start}.image-card,.analysis-card,.summary-card{background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden}.card-header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:5px;background:#f3f2fa;border-radius:9px;padding:4px}.tabs button{display:flex;align-items:center;gap:7px;border:0;border-radius:6px;padding:8px 11px;color:#9296ac;background:none;font-size:11px}.tabs button svg{width:14px;height:14px}.tabs button.selected{background:white;color:#6554e7;box-shadow:0 2px 7px #494b7510}#right svg{transform:scaleX(-1)}#image-tag{font-size:9px;color:#9497ad}.image-toolbar{display:flex;align-items:center;justify-content:space-between;padding:7px 16px;border-bottom:1px solid var(--line)}.image-toolbar>div{display:flex;align-items:center;gap:5px}.icon-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:7px;background:none;color:#999db5}.icon-button:hover{background:#eeebff;color:#6652ee}.icon-button svg{width:16px;height:16px}#zoom-value{font-size:9px;color:#9297af;width:35px;text-align:center}.canvas-wrap{position:relative;height:490px;background-color:#f8f9fe;background-image:radial-gradient(#d4d8ec .8px,transparent .8px);background-size:20px 20px;overflow:auto;padding:22px}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;min-height:250px}.upload-icon{display:flex;padding:21px;background:#eeebff;border-radius:22px;color:#7d68f6;transform:rotate(-5deg);margin-bottom:19px;box-shadow:0 10px 25px #7d68f610}.upload-icon svg{width:32px;height:32px}.empty h2{font-size:27px;letter-spacing:-1px}.empty p{color:#969bb4;font-size:11px;line-height:1.9;margin:8px 0 21px}.empty small{color:#a5a8bd;font-size:9px;margin-top:14px}#canvas-stage{display:none;width:100%;min-height:100%;align-items:center;justify-content:center}canvas{display:block;touch-action:none;cursor:crosshair;background:white;border-radius:5px;box-shadow:0 5px 25px #2029530b}.image-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:12px 19px;min-height:52px;font-size:10px;color:#8b90a7}.text-button{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:#7c6dd1;font-size:10px;padding:6px 0;cursor:pointer}.text-button svg{width:14px;height:14px}.image-footer label{white-space:nowrap}.auto-panel{display:flex;align-items:center;gap:12px;background:#f7f5ff;border-top:1px solid #ebe6ff;padding:18px}.auto-panel>div{flex:1}.auto-panel>div>i{color:#8d76ef;float:left;margin-right:9px}.auto-panel b{font-size:11px}.auto-panel small{display:block;font-size:9px;color:#9b94b5;margin-top:4px}.auto-panel label{max-width:155px;font-size:9px}.auto-panel select{padding:7px;font-size:9px}.auto-panel button{padding:9px 11px}.analysis-card{padding:22px}.analysis-title{display:flex;align-items:center;gap:12px}.analysis-title>span{display:flex;padding:10px;background:#f0edff;color:#7463e9;border-radius:10px}.analysis-title h2{font-size:19px}.muted{color:#979bb2;font-size:11px}.method-select{margin-top:20px}.method-select select{color:#6c5ac9;background:#faf8ff;border-color:#e8e0fe;font-weight:600}.tools{margin-top:13px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.tools button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:1px solid var(--line);border-radius:9px;padding:11px 10px;background:white;color:#747993;font-size:10px;position:relative;min-height:67px}.tools button>i{display:flex;padding:6px;color:#b6aaf3;background:#f8f6ff;border-radius:7px}.tools button>i svg{width:15px;height:15px}.tools small{display:block;color:#a4a8bb;font-size:8px;margin-top:3px}.tools b{display:block;color:#64599a;font-size:10px;margin-top:3px;font-weight:600}.tools button.selected{background:#f7f4ff;border-color:#b1a0f5;color:#5c43bf;box-shadow:0 0 0 1px #b1a0f515}.tools button.done:after{content:'✓';position:absolute;top:5px;right:7px;color:#4db6ab;font-size:9px}.scale-input{padding:12px 0}.scale-input label{display:flex;align-items:center;gap:8px}.scale-input input{width:70px;margin:0;padding:6px}.tool-options{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}details{font-size:10px;color:#9290ae;border-top:1px solid var(--line);margin-top:10px;padding:12px 0}summary{cursor:pointer;color:#7563ca;font-weight:600;font-size:10px}details p{font-size:10px;line-height:1.8}details a{color:#7463bd}.check-row{display:flex;align-items:start;gap:8px;font-size:9px;color:#8b8aa8;line-height:1.6;margin:10px 0}.check-row input{width:14px;height:14px;flex-shrink:0;margin:2px 0 0;padding:0;accent-color:#7662ec}.result{position:relative;overflow:hidden;border-radius:12px;background:linear-gradient(130deg,#5b46ce,#8970f1);padding:20px;color:white;margin-top:17px}.result:after{content:'';position:absolute;width:180px;height:180px;right:-75px;top:-65px;border:25px solid #ffffff08;border-radius:50%;pointer-events:none}.result-top{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1.3px;color:#d1c9ff}.result-number{font-size:42px;font-weight:700;letter-spacing:-1.5px;line-height:1.5}.result-number span{font-size:17px;font-weight:400;color:#cfc4ff;margin-left:4px}.index-track{height:5px;border-radius:5px;background:linear-gradient(90deg,#ffafcf,#ffedaf,#75e9d1,#9bccff);position:relative;margin:8px 3px 6px}.index-track>i{position:absolute;display:none;width:10px;height:10px;border:2px solid #7663d0;border-radius:50%;background:white;top:-2px;transform:translateX(-50%)}.track-labels{display:flex;justify-content:space-between;font-size:8px;color:#cfc8f2}.result-pill{display:inline-block;border:1px solid #ffffff30;background:#ffffff18;border-radius:6px;padding:4px 9px;font-size:10px;margin-top:15px}.result p{font-size:9px;line-height:1.8;color:#d0c7f6;margin-top:10px}.result>small{font-size:9px;color:#beb1f4}.quality{display:flex;flex-direction:column;gap:5px;margin-top:14px}.quality p{font-size:9px;margin:0;padding:6px 9px;color:#9385ab;background:#faf7fe;border-radius:5px}.quality .warn{color:#aa8543;background:#fff9ed}.quality .ok{color:#359b88;background:#effbf7}.clinical{display:block;color:#a2a5b9;font-size:9px;line-height:1.8;margin-top:14px}.summary-card{display:grid;grid-template-columns:1fr 1.7fr;gap:25px;padding:24px;margin-top:21px}.summary-card h2{font-size:23px}.difference{display:inline-block;background:#f0edff;color:#8d7dcc;border-radius:6px;padding:7px 10px;font-size:10px;margin-top:15px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:10px}th{font-weight:500;font-size:9px;color:#9398b0;padding:8px 12px 13px}td{border-top:1px solid var(--line);padding:10px 12px;color:#757b99}td:first-child{color:#484f73;font-weight:500}td:not(:first-child){min-width:125px}.notes-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:25px;margin:22px 0 38px}.notes-row textarea{background:white;resize:vertical}.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;max-width:300px}.actions small{display:block;width:100%;text-align:right;font-size:8px;color:#a3a6b9}.history-actions{display:flex;gap:8px}.file-button{cursor:pointer}.search-label{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);border-radius:9px;padding:0 14px;margin-bottom:15px;color:#abb0c8}.search-label input{border:0;background:none;margin:0;padding:12px}.record-empty{border:1px dashed #d9d5ed;padding:23px;border-radius:10px;color:#a5a0bb;font-size:11px}.record{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);background:white;border-radius:11px;padding:17px 20px;margin-bottom:9px}.record strong{color:#5b607e;font-size:12px}.record small{display:block;color:#a3a7bc;font-size:9px;margin-top:4px}.record-actions{display:flex;gap:18px}.method{margin-top:36px;background:#efedfa;border-radius:17px;padding:26px}.method .section-heading{margin-top:0}.source-badge{border-radius:20px;background:#e4def8;color:#9a8abb;padding:6px 10px;font-size:9px;white-space:nowrap}.method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.method-grid article>span{font-size:24px;font-weight:700;color:#c5b9e8}.method-grid h3{font-size:12px;color:#777091}.method-grid p,.method-grid a{font-size:10px;line-height:1.9;color:#9a95b0}.method-grid a{color:#8b7aac}.method-note{display:flex;gap:12px;border-top:1px solid #dfdaf0;margin-top:23px;padding-top:15px;color:#9d94bc}.method-note p{font-size:9px;line-height:1.8;margin:0}footer{display:flex;align-items:center;justify-content:space-between;padding:27px 0;font-size:9px;color:#a9a6bd}footer>span:first-child{font-size:14px;font-weight:650;color:#878397}footer b{color:#aa9cd2;margin-left:3px;font-size:11px}footer small{font-weight:400;font-size:9px;margin-left:12px}#toast{position:fixed;display:none;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;padding:13px 22px;border-radius:10px;background:#282145;color:white;font-size:11px;box-shadow:0 10px 35px #0002;z-index:10}[hidden]{display:none!important}
@media(min-width:1500px){.hero{padding:40px 48px;min-height:350px}.canvas-wrap{height:560px}.stat{padding:23px}.study-grid{grid-template-columns:minmax(0,1.65fr) minmax(360px,1fr)}}@media(max-width:1150px){.sidebar{width:200px;padding:27px 16px}.brand{font-size:19px}main{margin-left:200px;padding:0 22px}.stat{padding:14px;gap:9px}.stat>span{width:35px;height:35px;border-radius:9px}.stat small{font-size:8px}.hero{padding:27px}.hero-art>svg{height:260px}.hero-badges{gap:10px}.patient-card{grid-template-columns:1.2fr 1fr .7fr;gap:12px}.study-grid{grid-template-columns:minmax(0,1fr) 305px}.analysis-card{padding:17px}.auto-panel{flex-wrap:wrap}.auto-panel>div{flex-basis:100%}.floating-tag{font-size:8px;padding:8px}.tools{gap:6px}.tools button{padding:9px 7px;gap:5px}.tools button>i{padding:4px}.summary-card{grid-template-columns:1fr}.hero-actions{gap:8px}.hero-demo,.hero .primary{font-size:10px;padding:10px 12px}}@media(max-width:850px){.sidebar{position:relative;width:auto;inset:auto;padding:13px 20px;flex-direction:row;align-items:center;justify-content:space-between}.sidebar nav{display:flex;gap:6px}.workspace,.sidebar-tip,.sidebar-bottom{display:none}.nav{font-size:0;gap:0;padding:9px;margin:0}.nav span{display:none}.brand-icon{padding:7px}.brand{font-size:20px}main{margin-left:0;padding:0 20px}header{height:55px}.hero{min-height:300px}.hero-art>svg{height:240px}.stat-grid{gap:10px}.study-grid{grid-template-columns:minmax(0,1.3fr) minmax(290px,1fr)}.canvas-wrap{height:470px}.patient-card{grid-template-columns:repeat(3,1fr)}.section-heading h2{font-size:19px}}@media(max-width:620px){main{padding:0 14px}.hero{grid-template-columns:1fr;padding:28px 24px;min-height:0}.hero-art{display:none}h1{font-size:37px;letter-spacing:-1.5px}.hero p{font-size:11px}.hero-badges{font-size:8px}.hero-actions{margin:20px 0}.stat-grid{grid-template-columns:repeat(2,1fr);margin:15px 0 28px}.stat{padding:15px}.stat strong{font-size:24px}.stat #stat-quality,.stat #stat-scale{font-size:14px}.patient-card{grid-template-columns:1fr 1fr;padding:16px}.patient-card label:nth-child(5){grid-column:1/-1}.study-grid{grid-template-columns:1fr}.analysis-card{padding:22px}.tools button{padding:12px;gap:10px}.tools small{font-size:9px}.canvas-wrap{height:430px}.section-heading{gap:12px;flex-wrap:wrap}.section-heading h2{font-size:20px}.auto-panel>div{flex-basis:auto}.auto-panel label{max-width:150px}.card-header{padding:13px 16px}.summary-card{padding:20px;gap:15px}.summary-card h2 br{display:none}.summary-card h2{font-size:21px}.notes-row{grid-template-columns:1fr;gap:15px}.actions{max-width:none}.history-actions{margin-top:3px}.method-grid{grid-template-columns:1fr;gap:20px}.method{padding:22px}.method-grid h3{display:inline-block;margin-left:12px}.method-grid p{font-size:11px}.method-note p{font-size:10px}.source-badge{display:none}.record{padding:15px;gap:12px;flex-wrap:wrap}.record-actions{margin-left:auto}footer{align-items:start;gap:10px}footer small{display:block;margin:4px 0}header{font-size:10px}.status{font-size:8px}.hero-actions .icon{width:16px;height:16px}.hero-actions .primary,.hero-demo{font-size:9px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}@media print{.sidebar,header,.hero,.stat-grid,.image-toolbar,.auto-panel,.tools,.scale-input,.tool-options,details,.check-row,.image-footer,.history,.method,footer,#toast,.actions,.section-heading button,.tabs button:not(.selected){display:none!important}main{margin:0;padding:0}body{background:white}.section-heading{margin:8px 0}.study-grid{grid-template-columns:1fr 1fr}.canvas-wrap{height:auto!important;min-height:0;background:white;padding:5px;overflow:visible}#canvas-stage{min-width:0!important;min-height:0!important}canvas{max-width:100%!important;height:auto!important}.patient-card{grid-template-columns:repeat(5,1fr);padding:8px;gap:5px}.summary-card{break-inside:avoid;grid-template-columns:1fr 1.7fr}.analysis-card{padding:15px}.result{background:#efebff;color:#4a3d87;print-color-adjust:exact}.result p,.result small,.result-top,.track-labels,.result-number span{color:#766599}.notes-row{grid-template-columns:1fr}input,select,textarea{border:0;background:white}.empty{display:none}h2{font-size:18px}.clinical{font-size:10px}}

/* Readable controls and touch targets. */
label,.muted,.stat p,.stat small,.image-footer,.tools small,.clinical{color:#666d89}.tools button{font-size:12px}.tools small{font-size:10px}.tools b{font-size:11px}.icon-button{width:40px;height:40px}.primary,.secondary{min-height:42px}.check-row{font-size:11px;color:#646b86}.check-row input{width:18px;height:18px}.result p{font-size:11px;color:#e3ddff}.quality p{font-size:11px}.method-grid p,.method-grid a,.method-note p{font-size:11px;color:#6f6689}.clinical{font-size:11px}.patient-card label,.method-select{font-size:11px}input,select,textarea{font-size:12px}.hero-badges{color:#d0cdeb}.stat small{font-size:10px}.stat p{font-size:10px}.hero p{color:#e2dfff}.tools button small{color:#707792}.track-labels{color:#e3ddfa}

/* Guided workflow: one task at a time, with visible labels. */
.step-rail{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0 16px}.step-rail button{display:flex;align-items:center;justify-content:center;gap:9px;padding:14px 12px;background:white;border:1px solid #dedff0;color:#68728e;border-radius:10px;font-size:14px;font-weight:600;min-height:50px}.step-rail button>span{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#eeecfa;font-size:12px;color:#7462db}.step-rail button.current{background:#6554ef;color:white;border-color:#6554ef;box-shadow:0 5px 18px #6554ef25}.step-rail button.current>span{background:#ffffff25;color:white}.step-rail .icon{width:18px;height:18px}.study-status{border:0;padding:0;margin:0}.study-status>summary{font-size:12px;color:#747c95}.study-status .stat-grid{margin:15px 0}.section-heading h2{font-size:25px}.section-heading .muted{font-size:13px;max-width:650px}.patient-card{padding:25px}.patient-card label{font-size:13px}.patient-card input,.patient-card select{font-size:14px;min-height:44px}.image-toolbar{flex-wrap:wrap;gap:6px}.image-toolbar .icon-button{width:auto;min-height:42px;padding:8px 10px;gap:5px;font-size:11px;color:#646e89}.image-toolbar>div{flex-wrap:wrap}.capture-guide{background:white;border:1px solid #e8eaf4;border-radius:15px;padding:28px;align-self:start}.capture-guide h2{font-size:21px}.capture-guide ol{margin:22px 0;padding-left:20px;font-size:14px;color:#66718c}.capture-guide li{margin-bottom:18px}.capture-guide p,.capture-notice{font-size:13px;color:#66718c;line-height:1.8}.capture-notice{background:#f2f0ff;border-radius:10px;padding:15px;margin-top:20px}.square-step{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:12px;background:#eae5ff;color:#6c55d6;font-size:22px;font-weight:700}.tools{grid-template-columns:1fr}.tools button{min-height:70px;padding:14px 16px;gap:14px;font-size:14px}.tools button>i{padding:10px}.tools button>i svg{width:23px;height:23px}.tools small{font-size:12px;margin-top:5px}.tools b{font-size:12px;margin-top:5px}.tool-help{font-size:13px;line-height:1.8;padding:15px;border:1px solid #dcd4fc;border-radius:10px;background:#f6f3ff;color:#635b89;margin-top:15px}.method-select,.scale-input label{font-size:12px}.method-select select{font-size:13px;min-height:44px}.scale-input{padding:18px 0}.scale-input input{font-size:14px;min-height:40px}.check-row{font-size:12px;gap:10px;padding:10px;background:#fafafe;border-radius:8px}.check-row input{width:20px;height:20px}.plain-result{border:1px solid #e6dcff;background:#f6f2ff;border-radius:12px;padding:20px;margin-top:18px}.plain-result.ready{border-color:#a6e5d8;background:#eefbf7}.plain-status{font-size:11px;font-weight:600;color:#81759e}.plain-result.ready .plain-status{color:#318773}.plain-result h3{font-size:20px;line-height:1.4;margin:10px 0;color:#504268}.plain-result.ready h3{color:#225d51}.plain-result p{font-size:13px;color:#6f6884;line-height:1.8}.plain-result .secondary{margin-top:10px;font-size:12px}.technical-data summary,.quality-details summary,.measure-table summary{font-size:12px}.technical-note{font-size:12px!important;line-height:1.8}.result-number{font-size:32px}.wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 0;margin:10px 0 30px;border-top:1px solid #e2e4f0}.wizard-actions .primary,.wizard-actions .secondary{font-size:14px;min-height:46px}.wizard-actions>span{font-size:12px;color:#8790a5}.summary-card{grid-template-columns:1fr;padding:26px}.summary-card h2{font-size:25px}.summary-card .muted{font-size:13px}.bilateral-results{display:grid;grid-template-columns:1fr 1fr;gap:15px}.foot-result{padding:22px;border:1px solid #e3e0f3;border-radius:12px;background:#f9f8fe}.foot-result.ready{border-color:#b4e4d9;background:#f0fbf7}.foot-side{font-size:13px;font-weight:650;color:#8b78b4}.foot-result.ready .foot-side{color:#368978}.foot-result h3{font-size:19px;line-height:1.5;color:#605271}.foot-result.ready h3{color:#225e51}.foot-result p{font-size:13px;color:#757184;line-height:1.8}.foot-result small{display:block;font-size:11px;color:#8a879b;margin-top:14px}.foot-result .text-button{font-size:12px;margin-top:10px}.notes-row #save{display:none}.notes-row label{font-size:12px}.notes-row textarea{font-size:13px}.history .section-heading h2{font-size:23px}.history-actions .secondary{font-size:12px}.auto-panel b{font-size:12px}.auto-panel small{font-size:11px}.auto-panel .secondary{font-size:12px}.clinical{font-size:12px}.sidebar .nav{font-size:13px}.nav.active{background:linear-gradient(110deg,#6554ef,#7051de)}
@media(max-width:850px){.sidebar .nav{font-size:11px;gap:5px;padding:8px}.sidebar .nav .icon{width:17px;height:17px}.sidebar .nav span{display:none}.brand{font-size:17px}.sidebar{padding:13px 14px}.workspace{display:none}}
@media(max-width:620px){.sidebar{flex-wrap:wrap;gap:12px}.sidebar nav{width:100%;justify-content:space-between}.sidebar .nav{font-size:12px;gap:6px;padding:9px}.step-rail{grid-template-columns:repeat(2,1fr);gap:8px;margin-top:18px}.step-rail button{font-size:13px;padding:12px 8px}.step-rail .icon{display:none}.hero h1{font-size:34px}.hero p{font-size:12px}.section-heading h2{font-size:23px}.patient-card{padding:18px}.patient-card label{font-size:12px}.patient-card input,.patient-card select{font-size:13px}.capture-guide{padding:22px}.study-grid{grid-template-columns:1fr}.wizard-actions{flex-wrap:wrap}.wizard-actions>span{display:none}.wizard-actions .primary{font-size:12px}.wizard-actions .secondary{font-size:12px}.bilateral-results{grid-template-columns:1fr}.summary-card{padding:20px}.image-toolbar .icon-button{font-size:10px;padding:8px 6px}.auto-panel{flex-wrap:wrap}.auto-panel>div{flex-basis:100%}.auto-panel label{max-width:none;flex:1}.tools button{font-size:14px}.tools small{font-size:11px}}
@media print{.step-rail,.study-status,.wizard-actions,.capture-guide,.next-action,#next-action,#notes-section .actions{display:none!important}#results-section,#notes-section{display:block!important}.bilateral-results{grid-template-columns:1fr 1fr}.foot-result{break-inside:avoid}.measure-table{display:block}.measure-table .table-wrap{display:block!important}.foot-result .text-button{display:none}.quality-details,.technical-data{display:block!important}.plain-result{break-inside:avoid}}

@media print{#data-section,#measure-grid{display:grid!important}#measure-section{display:block!important}.plain-result,#tool-help,.measure-table>summary,.technical-data>summary,.quality-details>summary{display:none!important}}

.measurement-gate{padding:18px;border:2px solid #efa954;background:#fff8ee;border-radius:16px;margin-bottom:18px}.measurement-gate h3{margin:0 0 10px}.measurement-gate p,.placement-guide p,.placement-guide li{font-size:14px;line-height:1.6}.measurement-gate #gate-status{font-weight:700;color:#804800}.placement-guide{padding:16px;border:1px solid #d9deeb;border-radius:14px;margin:16px 0}.placement-guide svg{display:block;width:100%;max-width:320px;margin:auto}.calibration-check{background:#fff9e5;padding:14px;border-radius:12px}button:disabled{cursor:not-allowed;opacity:.5}

.tools button.done:after{content:"Trazada";color:#657089;font-size:10px}.measurement-gate input{flex-shrink:0}

.calibration-panel{padding:18px;border:2px solid #c7b8fa;background:#faf8ff;border-radius:16px;margin:18px 0}.calibration-panel h3{margin:0 0 14px}.calibration-panel label{display:block;font-size:14px}.calibration-panel select,.calibration-panel input{width:100%;min-height:44px;margin:7px 0;padding:10px;border:1px solid #d9d3e9;border-radius:9px;background:white}.calibration-panel .check-row{display:flex}.calibration-panel input[type=checkbox]{width:20px;min-height:20px;flex-shrink:0}.ruler-example{width:100%;display:block;margin:18px auto 4px;max-width:390px}.pattern-caption,.calibration-panel p,.calibration-steps{font-size:14px;line-height:1.6}.calibration-steps li{padding:5px 0}.calibration-equation,#calibration-progress{font-weight:700;color:#583ea1}.calibration-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calibration-fields label:last-child{grid-column:1/-1}.calibration-panel input[readonly]{background:#eee9fc;font-weight:700}
@media screen and (min-width:901px){.image-card{position:sticky;top:16px}.canvas-wrap{height:min(490px,calc(100dvh - 270px));min-height:200px}}


/* Sage palette: soft surfaces with dark, readable text. */
:root{--ink:#234638;--muted:#627a6b;--purple:#337858;--line:#d9e5d9}body{background:#f4f8f3;color:var(--ink)}
.sidebar{background:#e1eee1;color:#4b6b59;border-right:1px solid #cbdccf}.brand,.brand small{color:#234638}.brand-icon{background:#bddcc6;color:#28583d}.workspace{color:#617e68}.nav{color:#41604f}.nav.selected{background:#c4e0cc;color:#204d35;box-shadow:none}.nav span{color:#44654d}.sidebar-tip{background:#d2e6d7;border-color:#b8d2c0;color:#365943}.sidebar-tip strong,.sidebar-tip p{color:#365943}.sidebar-bottom{border-color:#bfd5c4;color:#365943}.sidebar-bottom small{color:#627c68}.avatar{background:#bdd8c3;color:#234638}
.hero{background:linear-gradient(120deg,#dcefe0,#edf4df);color:#234638}.hero h1,.hero h1 em,.hero p,.hero .eyebrow,.hero-badges{color:#2c5741}.hero-demo{background:#ffffff80;border-color:#a9cbb5;color:#2c5741}.hero-art{color:#3d7955}.floating-tag{background:#f4fcf0e6;border-color:#c0dbc5;color:#365c44}
.primary{background:#337858;color:white;box-shadow:none}.secondary{background:#f8fcf5;color:#345c43;border-color:#cbdccb}.text-button,summary,details a{color:#376f4c}.eyebrow,.eyebrow.dark,.status,header{color:#536e5d}
.step-rail button{background:white;border-color:#d3e1d4;color:#4f6c5a}.step-rail button.current{background:#d8ebdc;border-color:#91bda0;color:#234e35}.step-rail button.current span{background:#337858;color:white}.step-rail button span{background:#e8f2e6;color:#456650}
.stat.violet,.stat.cyan,.stat.pink,.stat.lime{background:#edf5e9;border-color:#d5e5d5}.stat>span{background:#d8eadb;color:#3b7050}.stat strong,.stat small,.stat p{color:#365b44}.tools button{background:#fbfdf9;border-color:#d8e5d8;color:#34533e}.tools button.selected{background:#e1f0e2;border-color:#98b99d;box-shadow:none;color:#285239}.tools button>i{background:#e9f4e6;color:#457854}.tools small,.tools b{color:#4e6e57}
.tool-help,.capture-guide,.plain-result,.foot-result,.foot-result.ready{background:#f0f7ed;border-color:#c4ddc7;color:#345a41}.plain-result.ready{background:#e1f3e6}.method-select select,.calibration-panel{background:#f0f7ed;border-color:#bad6bf;color:#345a41}.calibration-panel input[readonly]{background:#e3efde;color:#294e35}.calibration-panel select,.calibration-panel input{border-color:#c8dcc9;color:#345a41}.calibration-equation,#calibration-progress{color:#356e48}.auto-panel{background:#edf5e9;border-color:#d4e3d3;color:#3f694e}.tabs{background:#eef5e9}.tabs .selected{background:white;color:#316a46}.image-toolbar,.image-footer{color:#567562}.canvas-wrap{background-color:#f5f9f0;background-image:radial-gradient(#cbdcca .8px,transparent .8px)}
.result{background:linear-gradient(125deg,#32644b,#477e59)}.result-top,.result-number span,.result p,.result>small,.track-labels{color:#eff8ec}.difference,.method,.source-badge{background:#e7f1e1;color:#3f684a}.method-grid h3,.method-grid p,.method-grid a,.method-note p{color:#456550}.method-grid article>span{color:#8db694}.method-note{border-color:#caddc8}.clinical,.muted,label,.check-row,.patient-card label{color:#526b59}footer,footer>span:first-child,footer b{color:#5c7863}#toast{background:#2d543e}
.calibration-feedback{padding:14px;border-radius:10px;margin:12px 0;font-size:14px;line-height:1.6;font-weight:600}.calibration-feedback.needs-fix{background:#fff1df;color:#80511d}.calibration-feedback.geometry-ok{background:#deefdf;color:#285c38}.reference-details{display:grid;grid-template-columns:1fr 1fr;gap:10px}.reference-details figure{margin:0;min-width:0}.reference-details canvas{display:block;width:100%;height:auto;background:#edf2e8;border:1px solid #c4d7c1;border-radius:10px}.reference-details figcaption{font-size:12px;color:#43624b;margin:6px 0}
.nav.active{background:#c4e0cc;color:#204d35;box-shadow:none}.nav:hover{background:#d3e6d5;color:#204d35}.sidebar-tip b{color:#365943}.sidebar-tip i{color:#477c55}.hero .primary{background:#337858;color:white;box-shadow:none}

.check-row input{accent-color:#407b53}.analysis-title>span,.tools button>i{background:#e0efdf;color:#407b53}.auto-panel i,.upload-icon{color:#407b53}.calibration-check{background:#e8f3e3}
