:root{color:#17232b;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#eef3f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;line-height:1.4}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input{font-family:inherit}.app-shell{color:#17232b;background:#eef3f5;grid-template-rows:72px minmax(0,1fr) 38px;height:100vh;min-height:100vh;display:grid;overflow:hidden}.topbar{background:#fbfdfd;border-bottom:1px solid #dbe5e8;grid-template-columns:276px 1fr auto;align-items:center;gap:20px;padding:0 22px;display:grid}.brand-lockup,.selected-patient,.section-heading,.stage-status,.audit-strip span,.check-row{align-items:center;display:flex}.brand-lockup{gap:12px}.brand-lockup strong,.selected-patient strong,.case-summary strong,.patient-row strong,.stage-footer strong,.mode-row strong,.check-row strong{color:#10202a}.brand-lockup span,.selected-patient span,.case-summary span,.case-summary p,.patient-row small,.stage-footer span,.range-control span,.quality-row span,.metric-grid span,.mode-row small,.check-row small{color:#647680}.brand-mark{color:#fff;background:#0c746f;border-radius:8px;justify-content:center;align-items:center;width:38px;height:38px;display:flex}.brand-lockup div:last-child{gap:2px;display:grid}.brand-lockup span{font-size:12px}.workflow-tabs{background:#edf5f6;border:1px solid #d2e1e5;border-radius:8px;grid-auto-flow:column;justify-self:center;align-items:center;gap:4px;padding:4px;display:inline-grid}button{font:inherit}.workflow-tabs button,.tool,.icon-button,.primary-action,.secondary-action,.patient-row,.mode-row{cursor:pointer;border:0;align-items:center;display:inline-flex}.workflow-tabs button{color:#59707a;background:0 0;border-radius:6px;gap:7px;height:34px;padding:0 12px}.workflow-tabs button.active{color:#0b5e5a;background:#fff;box-shadow:0 1px 2px #1529341f}.topbar-actions{align-items:center;gap:10px;display:flex}.icon-button,.secondary-action,.tool{color:#2d4651;background:#fff;border:1px solid #d6e2e5}.icon-button{border-radius:8px;justify-content:center;width:38px;height:38px}.icon-button.small{width:30px;height:30px}.primary-action,.secondary-action{border-radius:8px;justify-content:center;gap:8px;height:38px;padding:0 14px}.primary-action{color:#fff;background:#0b6f6a}.primary-action:disabled{cursor:not-allowed;background:#b8c6ca}.primary-action.wide{width:100%}.primary-action.compact{height:34px;padding:0 12px}.secondary-action{background:#fff}.secondary-action.active{color:#0b5e5a;background:#e4f3f2;border-color:#0b6f6a}.workspace{grid-template-columns:280px minmax(520px,1fr) 340px;gap:14px;min-height:0;padding:14px;display:grid;overflow:hidden}.patient-rail,.measurement-stage,.inspector{background:#fbfdfd;border:1px solid #d8e3e6;border-radius:8px;min-height:0}.patient-rail,.inspector{overflow:auto}.patient-rail{grid-template-rows:auto auto auto auto 1fr;gap:14px;padding:16px;display:grid}.rail-heading{letter-spacing:.08em;text-transform:uppercase;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;display:flex}.selected-patient{background:#eef6f6;border:1px solid #d5e6e7;border-radius:8px;gap:12px;padding:12px}.selected-patient div{gap:2px;display:grid}.case-summary{border-top:1px solid #e3ebed;border-bottom:1px solid #e3ebed;gap:8px;padding:14px 0;display:grid}.case-summary span{letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:700}.case-summary p{font-size:13px;line-height:1.45}.patient-list{align-content:start;gap:8px;display:grid}.trend-panel{border-bottom:1px solid #e3ebed;gap:12px;padding-bottom:14px;display:grid}.mini-heading{color:#526a75;letter-spacing:.08em;text-transform:uppercase;align-items:center;gap:7px;font-size:12px;font-weight:700;display:flex}.trend-bars{background:#f5f9fa;border:1px solid #dce7ea;border-radius:8px;grid-template-columns:repeat(4,1fr);align-items:end;gap:10px;height:92px;padding:12px;display:grid}.trend-bars span{background:linear-gradient(#0b8f86,#84cfc8);border-radius:5px 5px 2px 2px;min-height:18px;position:relative}.trend-bars em{color:#526a75;font-size:11px;font-style:normal;position:absolute;top:-18px;left:50%;transform:translate(-50%)}.patient-row{color:inherit;text-align:left;background:0 0;border-radius:8px;justify-content:space-between;padding:10px}.patient-row.active{background:#f2f7f8}.patient-row span{gap:4px;display:grid}.patient-row small{font-size:12px}.patient-row em{color:#778991;font-size:12px;font-style:normal}.measurement-stage{grid-template-rows:auto minmax(0,1fr) auto;display:grid;overflow:hidden}.stage-toolbar,.stage-footer{justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.stage-toolbar{border-bottom:1px solid #dfe8eb}.capture-group{flex-wrap:wrap;gap:8px;display:flex}.tool{border-radius:8px;gap:8px;height:34px;padding:0 12px}.upload-tool{position:relative}.upload-tool input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.tool.active{color:#0b5e5a;background:#e5f4f3;border-color:#a9d5d1}.detect-tool{color:#fff;background:#10202a;border-color:#10202a}.stage-status{color:#745116;background:#fff8e8;border:1px solid #f0d390;border-radius:8px;gap:8px;height:34px;padding:0 12px}.stage-status.good{color:#16613b;background:#e9f7f0;border-color:#add9c1}.image-frame{background-color:#f5f8f9;background-image:linear-gradient(90deg,#0d2b360d 1px,#0000 1px),linear-gradient(#0d2b360d 1px,#0000 1px),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:28px 28px;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;place-items:center;gap:12px;min-height:0;padding:18px;display:grid}.camera-panel{background:#10202a;border-radius:8px;gap:10px;width:min(100%,520px);max-width:520px;padding:10px;display:grid;overflow:hidden;box-shadow:0 18px 44px #10202a2e}.camera-panel video{aspect-ratio:16/9;object-fit:cover;background:#061116;border-radius:6px;width:100%}.camera-actions{color:#dce8eb;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.camera-actions span{font-size:12px}.clinical-photo{aspect-ratio:4/3;background:radial-gradient(circle at 52% 47%,#e8bca661,#0000 24%),linear-gradient(135deg,#debba4,#cfa58b 48%,#e1c1ad);border-radius:8px;width:min(100%,78vh);max-width:880px;max-height:100%;position:relative;overflow:hidden;box-shadow:0 22px 54px #172c3833}.clinical-photo.has-upload{background-position:50%;background-size:cover}.clinical-photo.adding-boundary-point{cursor:crosshair}.clinical-photo.calibrating-scale{cursor:crosshair;outline-offset:4px;outline:3px solid #0b6f6a5c}.simulated-label{color:#fff;letter-spacing:.02em;z-index:4;background:#10202ad1;border-radius:6px;padding:5px 8px;font-size:12px;font-weight:700;position:absolute;top:18px;left:18px}.clinical-photo:after{content:"";pointer-events:none;background:radial-gradient(circle,#0000 0 35%,#07192121 78%);position:absolute;inset:0}.scan-grid{background-color:#0000;background-image:linear-gradient(90deg,#ffffff2e 1px,#0000 1px),linear-gradient(#ffffff2e 1px,#0000 1px);background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:34px 34px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;position:absolute;inset:0}.ruler-strip{z-index:3;background:#ffffffdb;border:1px solid #2c424b38;border-radius:5px;grid-template-columns:repeat(9,1fr);align-items:end;width:210px;height:34px;padding:3px 5px;display:grid;position:absolute;top:8%;left:7%}.ruler-strip span{border-left:1px solid #20343d;height:22px}.ruler-strip span:nth-child(2n){height:13px}.fiducial{color:#fff;letter-spacing:.04em;z-index:4;background:#10202a;border-radius:5px;padding:4px 7px;font-size:11px;position:absolute;top:15%;left:8%}.wound-region{z-index:5;width:31%;height:34%;position:absolute;top:31%;left:35%}.boundary-overlay{z-index:5;position:absolute;inset:0;overflow:visible}.simulated-wound-svg{fill:#89323b;opacity:.94}.boundary-polygon{fill:#0ca99e14;stroke:#0ca99e;stroke-linejoin:round;stroke-width:.55px;vector-effect:non-scaling-stroke}.boundary-polygon.needs-review{fill:#f59e0b08;stroke:#b45309}.calibration-anchor{fill:#10202a;stroke:#fff;stroke-width:.35px}.calibration-line{stroke:#10202a;stroke-dasharray:1.5 1.1;stroke-linecap:round;stroke-width:.6px}.axis-line{stroke:#093d3b;stroke-dasharray:3 3;stroke-width:.35px;vector-effect:non-scaling-stroke}.boundary-handle{fill:#fff;stroke:#0b6f6a;stroke-width:.55px;vector-effect:non-scaling-stroke}.boundary-handle:after{display:none}.boundary-handle.active{fill:#10202a;stroke:#fff;stroke-width:.65px}.boundary-handle.dragging{fill:#10202a;stroke:#0ca99e;stroke-width:.75px}.boundary-handle-dot{fill:#0b6f6a}.boundary-handle-dot.active{fill:#fff}.boundary-point{box-shadow:none;cursor:grab;touch-action:none;z-index:7;background:0 0;border:0;border-radius:999px;width:36px;height:36px;padding:0;position:absolute;transform:translate(-50%,-50%)}.boundary-point.active{outline:0}.boundary-point:focus-visible{outline-offset:2px;outline:2px solid #0ca99e80}.boundary-point.dragging{cursor:grabbing;z-index:9;width:44px;height:44px}.boundary{border:2px solid #0ca99e;border-radius:46% 54% 45% 55%;width:100%;height:100%;position:absolute;transform:rotate(-8deg);box-shadow:0 0 0 999px #ffffff08}.boundary:before{border-radius:inherit;content:"";background:#0ca99e29;position:absolute;inset:0}.boundary.needs-review{border-color:#b45309}.boundary.needs-review:before{background:#f59e0b2e}.crosshair{background:#093d3b;position:absolute}.crosshair.horizontal{width:120%;height:2px;top:50%;left:-10%}.crosshair.vertical{width:2px;height:122%;top:-10%;left:50%}.measurement-tag,.depth-pin{color:#0b5e5a;background:#fff;border:1px solid #b8d9d7;border-radius:6px;align-items:center;gap:6px;padding:5px 8px;font-size:12px;font-weight:700;display:inline-flex;position:absolute;box-shadow:0 8px 22px #10202a1f}.measurement-tag.length,.measurement-tag.width{z-index:8;transform:translate(-50%,-50%)}.depth-pin{z-index:6;bottom:26%;right:27%}.depth-pin.warning{color:#88520d;border-color:#e2b05a}.focus-corner{z-index:6;border-style:solid;border-color:#fff;width:34px;height:34px;position:absolute}.focus-corner.top{border-width:2px 0 0 2px;top:20px;left:20px}.focus-corner.bottom{border-width:0 2px 2px 0;bottom:20px;right:20px}.stage-footer{background:#fbfdfd;border-top:1px solid #dfe8eb}.stage-footer div{gap:2px;display:grid}.inspector{align-content:start;gap:0;display:grid}.inspector-section{border-bottom:1px solid #e0e8eb;gap:14px;padding:16px;display:grid}.inspector-section.compact{order:-3;gap:10px}.edge-section{order:-2}.section-heading{gap:8px}.section-heading h2{margin:0;font-size:15px}.range-control{gap:10px;display:grid}.range-control span{justify-content:space-between;display:flex}.select-control{gap:6px;display:grid}.select-control span{color:#10202a;font-size:12px;font-weight:700}.select-control select{color:#10202a;background:#fff;border:1px solid #d6e2e5;border-radius:8px;width:100%;height:36px;padding:0 10px}.internal-calibration-panel{gap:10px;display:grid}.internal-metric-grid{grid-template-columns:1fr 1fr;gap:6px;display:grid}.internal-metric-grid span{color:#647680;background:#fff;border:1px solid #dce7ea;border-radius:8px;gap:1px;padding:8px;font-size:11px;display:grid}.internal-metric-grid strong{color:#10202a;font-size:15px}input[type=range]{accent-color:#0b6f6a;width:100%}.quality-row{justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.quality-row strong{text-align:right;word-break:break-word}.gate-list{gap:8px;display:grid}.gate-row{border-radius:8px;align-items:center;gap:9px;padding:9px 10px;display:flex}.gate-row span{gap:2px;display:grid}.gate-row small{color:#647680;line-height:1.25}.gate-row.pass{color:#16613b;background:#edf8f2}.gate-row.warn{color:#87520c;background:#fff8e8}.metric-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.metric-grid article{background:#f2f7f8;border:1px solid #dce7ea;border-radius:8px;gap:4px;padding:12px;display:grid}.metric-grid strong{color:#0f272f;font-size:21px}.analysis-note,.validation-box{border-radius:8px;gap:4px;padding:10px;display:grid}.analysis-note{background:#f6fafb;border:1px solid #dce7ea}.analysis-note strong,.validation-box strong{color:#10202a}.analysis-note span,.validation-box span{color:#647680;font-size:12px;line-height:1.35}.model-registry,.accuracy-program{gap:10px}.registry-list,.accuracy-list,.validation-tier-list{gap:8px;display:grid}.registry-row{background:#fff;border:1px solid #dce7ea;border-radius:8px;gap:6px;padding:10px;display:grid}.registry-row div{justify-content:space-between;align-items:start;gap:8px;display:flex}.registry-row div strong{color:#10202a}.registry-row div small{color:#647680;text-align:right;word-break:break-word;font-size:11px}.registry-row em{color:#fff;text-transform:capitalize;border-radius:999px;justify-self:start;padding:3px 8px;font-size:11px;font-style:normal;font-weight:700}.registry-row.integrated em,.registry-row.acquired em{background:#0b6f6a}.registry-row.candidate em{background:#a15c05}.registry-row.research-only em,.registry-row.reference-only em{background:#526a75}.registry-row p{color:#2d4651;margin:0;font-size:12px;line-height:1.35}.registry-row>small{color:#647680;font-size:11px;line-height:1.35}.accuracy-row,.validation-tier{background:#fff;border:1px solid #dce7ea;border-radius:8px;gap:6px;padding:10px;display:grid}.accuracy-row div{justify-content:space-between;align-items:start;gap:8px;display:flex}.accuracy-row em{color:#fff;text-transform:capitalize;white-space:nowrap;border-radius:999px;padding:3px 8px;font-size:11px;font-style:normal;font-weight:700}.accuracy-row.implemented em{background:#0b6f6a}.accuracy-row.prototype em{background:#3f7d9c}.accuracy-row.next-build em{background:#a15c05}.accuracy-row.external-validation em{background:#526a75}.accuracy-row p,.validation-tier span{color:#2d4651;margin:0;font-size:12px;line-height:1.35}.accuracy-row>small,.validation-tier small{color:#647680;font-size:11px;line-height:1.35}.validation-tier strong{color:#10202a}.validation-box.pass{background:#edf8f2;border:1px solid #b8dcc7}.validation-box.warn{background:#fff8e8;border:1px solid #f0d390}.mode-list{gap:8px;display:grid}.mode-row{color:inherit;text-align:left;background:#fff;border:1px solid #dce6e9;border-radius:8px;justify-content:space-between;gap:10px;width:100%;padding:10px}.mode-row.active{background:#e9f7f6;border-color:#9dd2ce}.mode-row span{gap:3px;display:grid}.mode-row small{line-height:1.35}.mode-row em{color:#0b5e5a;white-space:nowrap;font-size:12px;font-style:normal;font-weight:700}.adapter-grid{grid-template-columns:1fr;gap:8px;display:grid}.adapter-row{color:inherit;cursor:pointer;text-align:left;background:#fff;border:1px solid #dce6e9;border-radius:8px;gap:3px;padding:10px;display:grid}.adapter-row.active{background:#e9f7f6;border-color:#9dd2ce}.adapter-row strong{color:#10202a}.adapter-row span{color:#647680;font-size:12px}.check-row{background:#f6fafb;border:1px solid #dce7ea;border-radius:8px;gap:10px;padding:12px}.check-row span{gap:3px;display:grid}.check-row input{accent-color:#0b6f6a;width:18px;height:18px}.number-control{grid-template-columns:1fr 112px;align-items:center;gap:8px;display:grid}.number-control span{color:#647680}.number-control input{color:#10202a;border:1px solid #d6e2e5;border-radius:8px;height:36px;padding:0 10px}.report-box{background:#10202a;border-radius:8px;max-height:162px;padding:12px;overflow:auto}.report-box pre{color:#dce8eb;white-space:pre-wrap;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;line-height:1.5}.button-pair,.calibration-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.edge-actions{grid-template-columns:1.15fr .85fr .85fr;gap:8px;display:grid}.compact-note{padding:8px 10px}.warn-note{background:#fff8e8;border-color:#f0d390}.boundary-editor{background:#f6fafb;border:1px solid #dce7ea;border-radius:8px;gap:10px;padding:12px;display:grid}.boundary-editor-header{gap:2px;display:grid}.boundary-editor strong{color:#10202a}.boundary-editor span{color:#647680;font-size:12px}.editor-mode-toggle{grid-template-columns:1fr 1fr;gap:6px;display:grid}.editor-mode-toggle button,.nudge-pad button{color:#2d4651;cursor:pointer;background:#fff;border:1px solid #d6e2e5;border-radius:7px;height:34px}.editor-mode-toggle button.active{color:#fff;background:#10202a;border-color:#10202a}.nudge-pad{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.boundary-action-row{grid-template-columns:1fr 1fr 1fr;gap:6px;display:grid}.boundary-action-row .secondary-action{height:34px;padding:0 8px}.audit-strip{color:#dce8eb;white-space:nowrap;background:#17252d;align-items:center;gap:18px;padding:0 18px;font-size:12px;display:flex;overflow:hidden}.audit-strip span{gap:7px}@media (width<=1120px){.app-shell{grid-template-rows:auto minmax(0,1fr) auto;height:auto;overflow:visible}.topbar,.workspace{grid-template-columns:1fr}.topbar{padding:14px}.workflow-tabs{justify-self:stretch;overflow-x:auto}.workspace,.patient-rail,.inspector{overflow:visible}.measurement-stage{order:-1}}@media (width<=680px){.topbar-actions,.stage-toolbar,.stage-footer,.audit-strip{flex-direction:column;align-items:stretch}.workflow-tabs{grid-auto-columns:max-content;grid-auto-flow:column;justify-self:stretch;width:100%;overflow-x:auto}.capture-group{grid-template-columns:1fr 1fr;display:grid}.detect-tool{grid-column:1/-1;justify-content:center}.metric-grid{grid-template-columns:1fr}.clinical-photo{width:100%}.image-frame{min-height:360px;padding:12px}}
