:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243830;background:#f3f6f5;font-size:16px;--green:#1e674e;--green-light:#edf5f0;--line:#dee6e1;--muted:#61736b;--panel:#fff;--orange:#b25823;--radius:8px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border:1px solid #cfdbd4;border-radius:6px;background:white;color:#2b4538;cursor:pointer;text-decoration:none;font-size:.875rem;line-height:1.35;min-height:40px}button:hover,.button:hover{background:#f0f5f2;border-color:#a1b6a9}button:disabled{opacity:.42;cursor:default}.primary{background:var(--green);color:#fff;border-color:var(--green);font-weight:600}.primary:hover{background:#17573f;border-color:#17573f}.quiet{border-color:transparent;background:transparent}.wide{width:100%}.icon-button{font-size:1.6rem;border:0;width:40px;padding:3px}.app-header{height:54px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:16px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#234936}.brand strong{font-size:1.45rem;letter-spacing:-.7px}.brand-mark{font-size:2rem;line-height:1;font-weight:400;color:var(--green);letter-spacing:-5px;margin-right:4px}.brand-mark span{color:#77a08a}.web-label{font-size:.75rem;border-left:1px solid var(--line);padding-left:12px;margin-left:4px;color:#6e8779;letter-spacing:1.5px}.header-actions{display:flex;align-items:center;gap:12px}.server-status{font-size:.8125rem;color:var(--muted)}.server-status:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#43a479;margin-right:8px}.count{background:#eaf0ec;padding:2px 7px;border-radius:5px;font-size:.75rem}.eyebrow{font-size:.75rem;letter-spacing:1.5px;font-weight:600;color:#6b8174}h1,h2,h3,p{margin-top:0}h2{font-size:1rem;font-weight:650;line-height:1.4;margin-bottom:14px}p{line-height:1.55}label{display:block;font-size:.875rem;line-height:1.4;color:#43584d;margin-bottom:14px}input:not([type=checkbox]):not([type=file]),select{display:block;border:1px solid #cfdbd4;padding:9px 10px;border-radius:5px;color:#233e30;background:white;width:100%;min-height:40px;margin-top:6px;font-size:.875rem}input:disabled,select:disabled{background:#f7f8f7;color:#819189}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px;flex-shrink:0;margin:0}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #248561;outline-offset:3px}input.invalid{border-color:#b94337!important}.check{display:flex;align-items:center;gap:10px}.muted,.hint{color:var(--muted)}.hint{font-size:.8125rem;line-height:1.55;margin:8px 0 12px}.optional{font-size:.8125rem;color:#748479;font-weight:400}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.case-bar{height:58px;display:flex;justify-content:space-between;align-items:center;padding:0 28px;gap:20px;background:#fff}.case-identity{min-width:0}.case-identity h1{font-size:1.125rem;font-weight:600;margin:6px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55vw}.case-meta{display:flex;align-items:center;gap:12px}.pill,.tag{background:#eaf2ed;color:#4c6d59;padding:4px 9px;border-radius:5px;font-size:.75rem;white-space:nowrap}.work-grid{height:calc(100dvh - 144px);min-height:400px;display:grid;grid-template-columns:286px minmax(300px,1fr) 310px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.control-panel{display:flex;flex-direction:column;min-height:0;background:#fff;border-right:1px solid var(--line)}.workflow{display:flex;padding:14px 12px 0;gap:4px;border-bottom:1px solid var(--line)}.workflow button{flex:1;border:0;background:transparent;border-radius:0;padding:10px 3px 14px;color:#687b70;white-space:nowrap;font-size:.875rem;border-bottom:2px solid transparent}.workflow button span{font-size:.75rem;color:#8a9a90}.workflow button.active{color:var(--green);border-bottom-color:var(--green);font-weight:650}.workflow button.active span{color:var(--green)}.panel-scroll{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin}.control-section{padding:20px;border-bottom:1px solid #edf1ee}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.section-heading h2{margin:0}.segmented{display:inline-flex;background:#f1f4f2;border-radius:6px;padding:3px;gap:2px}.segmented button{border:0;background:transparent;min-height:32px;padding:6px 10px;color:#667a6e;white-space:nowrap}.segmented button.active{background:white;color:var(--green);box-shadow:0 1px 4px #23372b16;font-weight:600}.control-section .segmented{display:flex}.control-section .segmented button{flex:1;font-size:.8125rem;padding:7px 5px}.panel-bottom{padding:14px 18px 6px;border-top:1px solid var(--line);background:white}.dirty-indicator{font-size:.75rem;color:#718277;line-height:1.5;margin-bottom:10px}.dirty-indicator.changed{color:#9f621c}.scale-info{font-size:.8125rem;color:var(--green);background:#f2f7f3;padding:9px;border-radius:5px;margin:10px 0 0}.angle-group h3{font-size:.875rem;margin-bottom:12px}.image-panel{min-width:0;min-height:0;display:flex;flex-direction:column;background:#edf1ee}.image-toolbar{height:48px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 12px;background:#fafcfb;border-bottom:1px solid var(--line);flex-wrap:wrap;flex-shrink:0}.zoom-tools{display:flex;align-items:center;gap:3px}.zoom-tools button{padding:5px 8px;min-height:32px;background:transparent;border-color:transparent}.zoom-tools output{font-size:.8125rem;min-width:42px;text-align:center;color:#50675a;font-variant-numeric:tabular-nums}.canvas-wrap{flex:1;position:relative;overflow:hidden;min-height:300px;background:#e9eeeb}canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}.canvas-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;background:#f2f5f3}.empty-cross{color:#7da78c;border:1px solid #bfcfc4;border-radius:18px;width:68px;height:68px;display:grid;place-items:center;font-size:2.2rem;margin-bottom:24px}.canvas-empty h2{font-size:1.25rem;margin-bottom:10px}.canvas-empty p{font-size:.875rem;color:var(--muted);margin-bottom:24px}.canvas-empty button{margin-bottom:8px}.image-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 12px;background:#fafcfb;border-top:1px solid var(--line);flex-wrap:wrap}.display-options{display:flex;gap:16px}.display-options label{margin:0;display:flex;gap:6px;align-items:center;font-size:.8125rem}.image-bottom>.hint{font-size:.75rem;margin:0}.canvas-tip,.draft-banner{position:absolute;background:#fffef4f2;border:1px solid #e3d5a9;padding:8px 12px;border-radius:5px;font-size:.8125rem;pointer-events:none;left:16px;right:16px;top:12px;color:#756027;text-align:center}.draft-banner{top:auto;bottom:12px}.canvas-message{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,90%);text-align:center;padding:26px;background:#fffffff5;border-radius:10px;box-shadow:0 8px 45px #213d2820}.canvas-message p{font-size:.875rem;color:var(--muted);margin:12px 0 18px}.metrics-panel{background:#fff;overflow-y:auto;border-left:1px solid var(--line);min-width:0}.metrics-header{padding:22px 20px 8px}.metrics-header h2{font-size:1.125rem;margin-top:6px}.metrics-empty{padding:30px 20px;font-size:.875rem;color:#78887d;line-height:1.6}.metrics-panel table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:286px;font-size:.875rem;font-variant-numeric:tabular-nums}.metrics-panel th{font-weight:500;color:#798a80;font-size:.75rem;background:#f8faf8}.metrics-panel th,.metrics-panel td{padding:13px 7px;text-align:right;border-bottom:1px solid #eef2ef}.metrics-panel th:first-child,.metrics-panel td:first-child{width:42%;padding-left:18px;text-align:left}.metrics-panel td:nth-child(3){color:var(--green);font-weight:650;background:#f7fbf8}.metrics-panel td small{display:block;font-size:.75rem;color:#7e8e83;margin-top:3px}.metrics-note{padding:22px 20px;color:#60756a;font-size:.8125rem}.metrics-note p{margin:12px 0 0;font-size:.75rem;line-height:1.6}.legend-dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%}.legend-dot.before{background:#32b574}.legend-dot.after{background:transparent;border:2px solid #a66bdb;border-radius:0;width:9px;height:9px}.legend-dot.before{background:#18b578}.annotation-legend{display:flex;gap:10px;flex-wrap:wrap}.annotation-legend>span{white-space:nowrap}.annotation-control{display:flex;align-items:center;gap:8px;margin:0;font-size:.8125rem}.annotation-control select{width:auto;min-height:30px;margin:0;padding:4px 24px 4px 8px;font-size:.8125rem}.display-options{flex-wrap:wrap}#case-warnings{padding:0 18px;font-size:.8125rem;color:#a0692a}.status-bar{height:32px;display:flex;align-items:center;gap:12px;padding:0 24px;font-size:.8125rem;background:white}.status-dot{width:7px;height:7px;background:#388864;border-radius:50%;flex-shrink:0}.status-dot.busy{background:#d7a353;animation:pulse 1.8s ease-in-out infinite}.status-dot.error{background:#b04b40}@keyframes pulse{50%{opacity:.35}}#status-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-bar .version{margin-left:auto;color:#87988c;font-size:.75rem;letter-spacing:.8px;white-space:nowrap}progress{width:130px;height:6px;accent-color:var(--green)}#task-time{font-variant-numeric:tabular-nums;white-space:nowrap;color:#708175}.login-panel{min-height:calc(100vh - 54px);display:grid;grid-template-columns:1fr 1fr}.login-aside{padding:12vh 10vw;background:#e8f0eb}.login-aside h1{font-size:clamp(2.5rem,5vw,4.5rem);font-weight:400;letter-spacing:-2.5px;line-height:1.08;margin:30px 0;color:#285940}.login-aside p{color:#5b7566;font-size:1rem;line-height:1.7}.login-rule{height:1px;background:#bfcfc5;width:56px;margin:40px 0 20px}.login-aside>span:last-child{font-size:.8125rem;color:#6f8276}.login-form{align-self:center;max-width:440px;width:100%;padding:36px;margin:0 auto}.login-form h2{font-size:1.75rem;letter-spacing:-.7px;margin:16px 0 12px}.login-form>.muted{font-size:.875rem;margin-bottom:28px}.login-form button{width:100%;justify-content:space-between;margin-top:8px}dialog{color:#243830;border:1px solid #d6e2d9;border-radius:12px;padding:26px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);box-shadow:0 30px 100px #132e3930}dialog::backdrop{background:#182e2a80;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:22px}.dialog-heading h2{font-size:1.4rem;margin:7px 0 0;letter-spacing:-.4px}.upload-dialog{width:500px}.drop-zone{border:1px dashed #a8c1b0;background:#f5f9f6;padding:26px 16px;text-align:center;border-radius:8px;position:relative;cursor:pointer;display:flex;flex-direction:column;gap:8px;overflow:hidden}.drop-zone.dragover{border-color:#236c4d;background:#e6f4eb}.drop-zone input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.drop-zone strong{font-size:.875rem;overflow-wrap:anywhere}.drop-zone>span:last-of-type{font-size:.8125rem;color:#73847a}.upload-symbol{font-size:1.8rem;color:var(--green)}.history-dialog{width:640px}#jobs{display:flex;flex-direction:column;gap:10px}.job-row{border:1px solid var(--line);border-radius:8px;padding:14px;display:flex;align-items:center;gap:12px}.job-row.selected{border-color:#6d9f7e;background:#f5faf6}.job-thumb{width:46px;height:64px;object-fit:contain;border-radius:4px;background:#eaf0eb}.job-info{flex:1;min-width:0}.job-info h3{font-size:.875rem;margin:0 0 5px;overflow-wrap:anywhere}.job-info p{font-size:.75rem;color:#73877a;margin:0}.job-status{font-size:.8125rem;color:#407b56;margin-top:5px}.job-row .quiet{padding:6px;font-size:.8125rem}.export-dialog{width:1160px}.export-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.export-toolbar label{margin:0}.export-toolbar .hint{margin:0}.export-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 12px}.export-dialog>.hint{margin-bottom:0}.confirm-dialog{width:400px}.confirm-dialog p{color:var(--muted);font-size:.875rem}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.toast{position:fixed;z-index:20;bottom:65px;left:50%;transform:translateX(-50%);max-width:90vw;background:#263f31;color:white;padding:14px 22px;border-radius:7px;box-shadow:0 5px 24px #102b3333;font-size:.875rem}[role=alert]:not(.toast){color:#aa4437;font-size:.875rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(min-width:1600px){.work-grid{grid-template-columns:310px minmax(400px,1fr) 340px}}@media(max-width:1200px){.work-grid{grid-template-columns:260px minmax(280px,1fr) 250px}.image-toolbar{height:auto;min-height:48px;padding:4px 8px}.metrics-panel th:first-child,.metrics-panel td:first-child{padding-left:10px;width:40%}.metrics-panel td{padding:12px 4px}.control-section{padding:18px 16px}.server-status{display:none}}@media(max-width:980px){.work-grid{height:auto;min-height:0;grid-template-columns:260px minmax(0,1fr)}.image-panel{height:calc(100dvh - 146px);min-height:400px;grid-column:2;grid-row:1}.control-panel{height:calc(100dvh - 146px);min-height:400px;grid-column:1;grid-row:1}.metrics-panel{grid-column:1/-1;border-top:1px solid var(--line)}.metrics-panel table{font-size:.875rem}.metrics-header{padding-bottom:0}.metrics-panel th:first-child,.metrics-panel td:first-child{width:45%}.status-bar{position:sticky;bottom:0;border-top:1px solid var(--line)}.case-bar,.app-header{padding-left:18px;padding-right:18px}}@media(max-width:680px){.app-header{height:62px;padding:0 12px}.brand strong{font-size:1.2rem}.brand-mark{font-size:1.6rem}.web-label{display:none}.header-actions{gap:2px}.header-actions button{font-size:.8125rem;padding:8px}.header-actions #new-open{display:none}.case-bar{height:80px;padding:12px;gap:8px}.case-identity h1{max-width:50vw;font-size:1rem}.case-meta{gap:4px}.case-meta .pill,#parent-open{display:none}.work-grid{display:flex;flex-direction:column}.image-panel{order:0;height:62dvh;min-height:390px}.control-panel{order:1;height:auto;min-height:0}.panel-scroll{max-height:none}.metrics-panel{order:2}.settings-panel{display:grid;grid-template-columns:1fr 1fr}.control-section{padding:16px 12px}.control-section .segmented{flex-wrap:wrap}.workflow{padding-top:5px}.panel-bottom{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dirty-indicator{grid-column:1/-1;margin:0}.image-bottom{padding:10px 12px}.image-bottom>.hint{display:none}.zoom-tools{gap:0}.zoom-tools button{padding:5px}.view-modes button{padding:6px 8px}.status-bar{padding:0 12px;gap:7px}.status-bar .version{display:none}.status-bar progress{width:60px}.login-panel{display:block}.login-aside{display:none}.login-form{padding:10vh 26px}.export-dialog{padding:16px}.export-actions{gap:8px}.job-row{padding:10px}.job-thumb{display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}@media print{body>*{display:none!important}}

.osteo-group{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.osteo-group>.hint{margin:8px 0;font-size:.75rem}.export-toolbar{gap:12px;flex-wrap:wrap}

.boundary-row{display:flex;gap:6px;margin-bottom:8px}.boundary-row button{font-size:.75rem;padding:8px}.boundary-row .wide{flex:1}#partial-fields>.wide{margin-bottom:8px}

/* Full-height desktop workspace. Viewer tools live beside, not over, the photo. */
.viewer-controls:empty{display:none}
@media(min-width:681px){
  .editor-layout .work-grid{height:100dvh;min-height:0;border-top:0;border-bottom:0}
  .editor-layout .control-panel,.editor-layout .image-panel{height:100dvh;min-height:0}
  .editor-layout .control-panel>.app-header{position:relative;height:auto;flex:none;display:grid;gap:12px;padding:16px}
  .editor-layout .web-label{display:none}
  .editor-layout .header-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .editor-layout #logout{position:absolute;right:10px;top:14px}
  .editor-layout .header-actions button{min-height:32px;padding:6px 8px;font-size:.75rem}
  .editor-layout .header-actions #new-open{flex:1;white-space:nowrap;padding-left:6px;padding-right:6px}
  .editor-layout .server-status{display:block;grid-column:1/-1;font-size:.6875rem;order:1}
  .editor-layout .case-bar{height:auto;flex:none;display:block;padding:14px 16px;border-bottom:1px solid var(--line)}
  .editor-layout .case-identity h1{max-width:none;font-size:.9375rem;margin:5px 0 12px}
  .editor-layout .case-meta{gap:8px;flex-wrap:wrap}
  .editor-layout .case-meta button{min-height:32px;padding:6px 9px;font-size:.75rem}
  .editor-layout #export-open{margin-left:auto}
  .editor-layout #parent-open{order:1;flex-basis:100%;justify-content:flex-start;padding-left:0}
  .editor-layout .workflow{flex:none;padding:0 10px}
  .editor-layout .workflow button{padding:12px 2px}
  .editor-layout .panel-bottom{flex:none;padding:10px 14px 4px}
  .editor-layout .dirty-indicator{margin-bottom:6px;font-size:.6875rem}
  .editor-layout .panel-bottom button{font-size:.8125rem;min-height:34px;padding:7px}
  .editor-layout .status-bar{position:static;height:auto;flex:none;display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px;border-top:1px solid var(--line);font-size:.6875rem}
  .editor-layout #status-text{flex:1;min-width:0;white-space:normal;line-height:1.4}
  .editor-layout #task-progress{width:100%;order:1}
  .editor-layout .status-bar .version{width:100%;font-size:.625rem;letter-spacing:.3px;order:2}
  .editor-layout .canvas-wrap{min-height:0}
}
@media(min-width:981px){
  .editor-layout .viewer-controls{position:sticky;top:0;z-index:2;padding:16px;border-bottom:1px solid var(--line);background:#fafcfb}
  .editor-layout .viewer-controls .image-toolbar{height:auto;display:flex;flex-direction:column;align-items:stretch;padding:0;gap:10px;border:0}
  .editor-layout .view-modes{display:flex}
  .editor-layout .view-modes button{flex:1;padding:7px 8px}
  .editor-layout .zoom-tools{justify-content:space-between}
  .editor-layout .viewer-controls .image-bottom{padding:14px 0 0;border:0;flex-direction:column;align-items:stretch;gap:12px}
  .editor-layout .display-options{gap:10px;justify-content:space-between}
  .editor-layout .display-options label{font-size:.75rem;gap:4px}
  .editor-layout .annotation-control{justify-content:space-between}
  .editor-layout .metrics-header{padding-top:18px}
  .editor-layout .metrics-panel table{min-width:0}
}
@media(min-width:681px) and (max-width:980px){
  .editor-layout .work-grid{height:auto}
  .editor-layout .image-toolbar{justify-content:center}
}
@media(min-width:681px) and (max-height:760px){
  .editor-layout .control-panel>.app-header{padding:10px 14px;gap:8px}
  .editor-layout .case-bar{padding:10px 14px}
  .editor-layout .control-section{padding-top:16px;padding-bottom:16px}
}

/* Upload cropping happens in source pixels before any pose or mask inference. */
.upload-dialog.with-photo{width:1080px}.upload-layout{display:grid;grid-template-columns:1fr}.with-photo .upload-layout{grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:26px}.with-photo .dialog-heading{margin-bottom:16px}.with-photo .drop-zone{padding:12px}.with-photo .upload-symbol{display:none}#crop-panel{min-width:0}#crop-panel h3{font-size:1rem;margin:0}.crop-stage{position:relative;height:clamp(240px,calc(100dvh - 430px),560px);background:#e5ece7;border-radius:6px;overflow:hidden}.crop-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}.crop-caption output{font-size:.8125rem;color:var(--muted)}.crop-caption button{min-height:32px;padding:5px 10px}.crop-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.crop-fields label{font-size:.75rem;margin-bottom:0}.crop-fields input{padding:6px!important;min-height:34px!important}.case-identity .eyebrow{font-size:.625rem}.case-identity h1{margin-top:3px}.app-header .brand strong{font-size:1.25rem}
@media(max-width:800px){.with-photo .upload-layout{grid-template-columns:1fr}.crop-stage{height:340px}.upload-dialog{padding:18px}.upload-settings{min-width:0}}@media(max-width:680px){.image-panel{height:72dvh}.case-identity .eyebrow{font-size:.625rem}.crop-fields{gap:6px}.crop-stage{height:300px}}

.project-card{border:1px solid var(--line);border-radius:8px;overflow:hidden}.project-card>.job-row{border:0;border-radius:0}.project-card details{border-top:1px solid var(--line);padding:10px 14px}.project-card summary{cursor:pointer;color:var(--green);font-size:.875rem}.project-card .history-version{margin-top:8px;padding:10px}.export-toolbar .check:has(input:disabled){color:var(--muted)}

.export-dialog{height:calc(100dvh - 40px);overflow:hidden}.export-dialog[open]{display:flex;flex-direction:column}.export-dialog .dialog-heading,.export-dialog .export-toolbar,.export-dialog .export-actions{flex-shrink:0}.export-dialog .dialog-heading{margin-bottom:16px}.export-dialog>.hint{flex:0 0 3.2em;min-height:0;margin:0;overflow:auto}.export-stage{position:relative;flex:1;min-height:0;background:#f4f6f3;border:1px solid var(--line);border-radius:6px;overflow:hidden}.export-stage>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}.export-loading,.export-error{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 32px);padding:12px 16px;border-radius:8px;background:#fffffff2;box-shadow:0 2px 12px #24383018;font-size:.8125rem;line-height:1.4;text-align:center;margin:0}.export-loading{display:flex;align-items:center;gap:10px;color:var(--green);width:max-content}.has-preview .export-loading,.has-preview .export-error{top:auto;bottom:16px;transform:translateX(-50%)}.export-spinner{display:block;width:22px;height:22px;flex-shrink:0;border:3px solid #d6e5dc;border-top-color:var(--green);border-radius:50%;animation:export-spin .8s linear infinite}@keyframes export-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.export-spinner{animation:none}}@media(max-height:520px){.export-dialog{overflow-y:auto}.export-stage{flex:1 0 180px}}
.export-actions a[aria-disabled=true]{opacity:.42;pointer-events:none;cursor:default}

.export-options{flex-shrink:0;display:flex;align-items:center;gap:10px 22px;flex-wrap:wrap;margin:0 0 12px;font-size:.8125rem}.export-options>label:not(.check){display:flex;align-items:center;gap:10px;margin:0}.export-options select{padding:5px 10px;min-height:30px;width:auto}.export-labels{display:flex;flex-wrap:wrap;gap:10px 22px;flex-basis:100%}.export-options .check{margin:0}.export-options .hint{margin:0;font-size:.75rem}#export-legacy{flex-basis:100%;color:var(--muted)}#export-legacy button{padding:5px 10px;font-size:.8125rem}

input.angle-slider[type=range]{padding:0;min-height:28px;margin:8px 0 2px;border:0;background:transparent;accent-color:var(--green);cursor:ew-resize;width:100%}input.angle-slider:disabled{cursor:default}

.angle-field{margin-bottom:14px}.angle-field>label{margin-bottom:0}
/* Export uses available window height; settings never squeeze the full figure. */
.export-dialog{width:calc(100vw - 24px);max-width:none;height:calc(100dvh - 24px);max-height:none;padding:14px 18px;overflow:hidden}
.export-dialog .dialog-heading{align-items:center;margin:0 0 10px}.export-dialog .dialog-heading h2{font-size:1.1rem;margin:0}.export-dialog .eyebrow{display:none}
.export-body{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;flex:1;min-height:0}.export-settings{overflow:auto;min-height:0;padding-right:8px}.export-settings .export-toolbar,.export-settings .export-options,.export-settings .export-labels{display:flex;flex-direction:column;align-items:stretch;gap:12px}.export-settings .export-toolbar{margin-bottom:20px}.export-settings .check{font-size:.8125rem}.export-settings .export-labels{border-top:1px solid var(--line);padding-top:14px}.export-settings .hint{font-size:.75rem}.export-settings #export-rebuild{margin-top:16px}.export-settings #export-legacy{font-size:.75rem}
.export-view{min-height:0;min-width:0;display:flex;flex-direction:column}.export-zoom{display:flex;align-items:center;gap:4px;margin-bottom:8px;flex-shrink:0}.export-zoom button{min-height:32px;padding:5px 9px}.export-zoom output{min-width:48px;text-align:center;font-size:.8125rem}.export-zoom .hint{margin:0 0 0 auto;font-size:.75rem}
.export-stage{cursor:grab;touch-action:none}.export-stage.dragging{cursor:grabbing}.export-stage>img{inset:auto;left:0;top:0;object-fit:fill;transform-origin:0 0;max-width:none;max-height:none;user-select:none;pointer-events:none}.export-loading,.export-error{cursor:default;pointer-events:none}.export-dialog .export-actions{margin:10px 0 0;justify-content:flex-end}
@media(max-width:750px){.export-body{grid-template-columns:175px minmax(0,1fr);gap:8px}.export-dialog{padding:10px}.export-zoom{flex-wrap:wrap}.export-zoom .hint{display:none}.export-settings .export-options>label:not(.check){flex-direction:column;align-items:stretch}.export-actions .button,.export-actions button{font-size:.75rem;padding:6px}.export-settings .check{gap:6px}}
@media(max-height:520px){.export-dialog{overflow:hidden}.export-stage{flex:1;min-height:0}.export-dialog .dialog-heading{margin-bottom:4px}}
