/* Shared tool workspace presentation. No control IDs, input semantics or processing logic. */
body:has(.tool-heading){background:color-mix(in srgb,var(--surface) 65%,var(--bg))}
.tool-page>.breadcrumbs{margin-bottom:24px;font-size:12px}
.tool-page>.tool-heading{max-width:none;margin-bottom:24px}
.tool-heading>.eyebrow{color:var(--category-accent);letter-spacing:.1em;font-size:10px}
.tool-heading h1{font-size:clamp(28px,3vw,39px);line-height:1.16;margin:14px 0 10px;letter-spacing:-.035em}
.tool-heading>p{max-width:78ch;font-size:14px;line-height:1.7;margin-bottom:14px}
.tool-heading>.page-meta{gap:16px;font-size:11px}
.tool-page .tool-shortcuts{margin:12px 0 18px}
.tool-page .tool-shortcuts-track{padding:4px 0 9px}
.tool-page .tool-shortcuts-track a{background:var(--bg);border-color:var(--line);border-radius:7px;font-size:11px}
.tool-page .tool-shortcuts p{font-size:10px;margin-bottom:0}
.workspace{--tool-action:color-mix(in srgb,var(--category-accent,var(--accent)) 88%,#000);--tool-action-ink:#fff;background:var(--bg);border-color:color-mix(in srgb,var(--muted) 17%,var(--line));border-radius:14px;box-shadow:0 4px 18px #182c4a08}
html[data-theme=dark] .workspace{--tool-action:var(--category-accent,var(--accent));--tool-action-ink:#111622;box-shadow:0 4px 18px #00000020}
.workspace-bar{background:var(--bg);padding:13px 20px;border-bottom:1px solid var(--line);box-shadow:inset 3px 0 0 var(--category-accent);gap:12px;font-size:12px;line-height:1.5}
.workspace-bar>strong,.workspace-bar>span:first-child{font-weight:650}
.workspace-bar .subtle,.workspace-bar .local-badge{font-size:10px;color:var(--muted);font-weight:400}
.workspace .studio-launch-note{padding:10px 20px;font-size:11px;background:color-mix(in srgb,var(--category-soft) 55%,var(--bg))}
.workspace .studio-launch-note a{color:var(--category-accent);font-weight:650}
.workspace-input,.workspace-preview{padding:24px;min-width:0}
.workspace-preview{background:color-mix(in srgb,var(--surface) 60%,var(--bg));text-align:left}
.workspace-preview>.preview-label{align-self:flex-start}
.workspace-preview>.qr-preview{align-self:center}
.workspace .preview-label{font-size:10px;font-weight:700;color:var(--category-accent);letter-spacing:.11em;margin-bottom:18px}
.workspace .form-section-title{font-size:12px;letter-spacing:.01em;margin:22px 0 14px;padding-top:16px;border-top:1px solid var(--line)}
.workspace .form-section-title:first-child{margin-top:0;padding-top:0;border-top:0}
.workspace .field{gap:6px;margin-bottom:16px;min-width:0}
.workspace .field>label{font-size:12px;line-height:1.5;font-weight:650;color:var(--text)}
.workspace .field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),.workspace .field select,.workspace .field textarea{border-color:color-mix(in srgb,var(--muted) 20%,var(--line));border-radius:7px;background:var(--bg);color:var(--text);font-size:13px;line-height:1.5;min-width:0}
.workspace .field input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),.workspace .field select{min-height:42px;padding:9px 11px}
.workspace .field textarea{padding:12px;line-height:1.65}
.workspace .field :is(input,select,textarea):focus-visible{outline:2px solid var(--category-accent);outline-offset:2px}
.workspace .field :is(input,select,textarea):disabled{background:var(--surface);color:var(--muted)}
.workspace .field small,.workspace .form-help{font-size:11px;line-height:1.7}
.workspace .field-grid{gap:12px}
.workspace .button{border-radius:7px;min-height:40px;padding:9px 13px;font-size:12px;line-height:1.4;font-weight:600;gap:7px;box-shadow:0 1px 2px #15243b05;transition:background-color .15s,border-color .15s,box-shadow .15s}
.workspace .button:not(.primary){background:var(--bg);border-color:color-mix(in srgb,var(--muted) 20%,var(--line));color:var(--text)}
.workspace .button:not(.primary):hover:not(:disabled){background:var(--surface);border-color:color-mix(in srgb,var(--category-accent) 50%,var(--line))}
.workspace .button.primary{background:var(--tool-action);color:var(--tool-action-ink);border-color:var(--tool-action);font-weight:650;box-shadow:0 2px 4px #182c4a0a}
.workspace .button.primary:hover:not(:disabled){background:color-mix(in srgb,var(--tool-action) 92%,var(--text));border-color:color-mix(in srgb,var(--tool-action) 92%,var(--text))}
.workspace .button:focus-visible{outline:2px solid var(--category-accent);outline-offset:3px}
.workspace .button:disabled{opacity:.45;box-shadow:none}
.workspace .scan-actions,.workspace .form-actions{gap:8px;flex-wrap:wrap;align-items:center}
.workspace .form-actions>.primary{flex:0 1 auto}
.workspace-input>.scan-actions:has(>.primary),.workspace-input>.form-actions:has(>.primary){padding-top:14px;border-top:1px solid var(--line);margin-top:18px}
.workspace .download-actions{flex-wrap:wrap;gap:8px;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--bg);margin-top:12px}
.workspace .preview-status{font-size:12px;line-height:1.6;max-width:100%;margin:14px 0 10px}
.workspace .preview-tip{font-size:11px;line-height:1.75}
.workspace .scan-drop{border-color:color-mix(in srgb,var(--category-accent) 38%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--category-soft) 35%,var(--bg));padding:20px}
.workspace .file-selection{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font-size:11px!important;line-height:1.65}
.workspace .file-selection[data-state=empty]{color:var(--muted);background:var(--surface);border-style:dashed}
.workspace .file-selection[data-state=ready]{border-color:color-mix(in srgb,var(--green) 35%,var(--line))}
.workspace .file-selection[data-state=ready] .file-selection-phase{color:var(--green)}
.workspace .file-selection[data-state=loading]{border-color:var(--category-accent)}
.workspace .file-selection[data-state=error]{border-color:#c85c68}
.workspace .cad-load,.workspace .cad-report{padding:20px}
.workspace .cad-sidebar{padding:18px;background:color-mix(in srgb,var(--surface) 55%,var(--bg))}
.workspace .cad-sidebar h2{font-size:13px;margin:16px 0 12px}
.workspace :is(.editor-toolbar,.studio-tabs,.text-studio-toolbar,.dev-toolbar,.pws-toolbar){gap:8px;padding:14px 18px;background:var(--bg)}
.workspace :is(.editor-tabs,.studio-tabs) .button[aria-pressed=true]{color:var(--category-accent);border-color:var(--category-accent);background:var(--category-soft)}
.workspace .error{font-size:12px;border-radius:8px;padding:12px;line-height:1.6}
.tool-page>.tool-guide{gap:20px;padding:32px 0 16px;border-bottom:0}
.tool-page>.tool-guide>article{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--bg);min-width:0}
.tool-page .tool-guide h2{font-size:21px;line-height:1.3}
.tool-page .tool-guide .eyebrow{font-size:9px}
.tool-page .tool-guide p,.tool-page .steps{font-size:12px;line-height:1.8}
.tool-page>.faq-section{padding:20px 0}
.tool-page>.faq-section h2,.tool-page .related-section h2{font-size:22px}
.tool-page .faq-section details{padding:15px 18px;border:1px solid var(--line);border-radius:9px;background:var(--bg);margin-bottom:8px}
.tool-page .faq-section summary{font-size:13px}
/* Geometry exports use the same settings/result hierarchy as the split-panel tools. */
.mesh-export>.cad-load{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 20px}
.mesh-export>.cad-load>.field{margin-bottom:4px}
.mesh-export>.cad-load>.scan-actions{align-self:start;margin-top:0}
.mesh-export>.cad-load>p{grid-column:1/-1;margin:10px 0 0;font-size:12px}
.mesh-work-grid{display:grid;grid-template-columns:minmax(270px,310px) minmax(0,1fr);align-items:start;border-top:1px solid var(--line)}
.mesh-settings{padding:20px;background:color-mix(in srgb,var(--surface) 65%,var(--bg));border-right:1px solid var(--line);min-width:0}
.mesh-settings .mt-settings{border:0;padding:0;margin:0 0 18px}
.mesh-settings .mt-settings legend{padding:0;margin-bottom:12px;font-size:13px}
.mesh-settings .mt-settings>p{font-size:11px}
.mesh-settings .mt-axis-grid,.mesh-settings .field-grid{grid-template-columns:minmax(0,1fr)}
.mesh-settings .scan-actions{display:flex;flex-direction:column;align-items:stretch;padding-top:14px;border-top:1px solid var(--line);margin:16px 0 0}
.mesh-work-grid>.sc-previews{border-top:0;padding:18px;gap:14px}
.mesh-work-grid .sc-previews h2{font-size:15px;margin-bottom:10px}
.mesh-work-grid .sc-previews>section>p{font-size:11px;line-height:1.7}
.mesh-export .cad-report h2{font-size:19px}
.mesh-export #sc-details{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,2fr);border:1px solid var(--line);border-radius:9px;overflow:hidden}
.mesh-export #sc-details dt{padding:12px;margin:0;background:var(--surface);border-bottom:1px solid var(--line);font-size:11px}
.mesh-export #sc-details dd{padding:12px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;font-size:11px}
@media(max-width:1000px){.mesh-work-grid{grid-template-columns:1fr}.mesh-settings{border-right:0;border-bottom:1px solid var(--line)}.mesh-settings .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mesh-settings .mt-axis-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mesh-settings .scan-actions{flex-direction:row;align-items:center}.mesh-export>.cad-load{grid-template-columns:1fr}.mesh-export>.cad-load>.scan-actions{margin-top:8px}}
@media(max-width:760px){.tool-page>.breadcrumbs{margin-bottom:20px}.tool-heading h1{font-size:29px}.tool-heading>p{font-size:13px}.workspace-input,.workspace-preview{padding:18px}.workspace-bar{padding:12px 16px;flex-wrap:wrap;gap:6px}.workspace .cad-load,.workspace .cad-report{padding:16px}.tool-page>.tool-guide{grid-template-columns:1fr;gap:12px}.tool-page>.tool-guide>article{padding:18px}.tool-page .faq-section details{padding:14px}.mesh-work-grid>.sc-previews{grid-template-columns:1fr;padding:14px}.mesh-settings .mt-axis-grid{grid-template-columns:1fr}.mesh-export #sc-details{grid-template-columns:1fr}.mesh-export #sc-details dt{border-bottom:0;padding-bottom:0;background:var(--bg)}.mesh-export #sc-details dd{padding-top:6px}}
@media(prefers-reduced-motion:reduce){.workspace .button{transition:none}}

@media(max-width:760px){.workspace .button{min-height:44px}.workspace .m3-fullscreen-corner{width:44px;height:44px}}

.workspace .pdf-selection{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font-size:11px!important;line-height:1.65}
.workspace .pdf-selection-state{color:var(--category-accent)}
.workspace input[type=file]::file-selector-button{font:700 13px/1.4 Arial,Helvetica,sans-serif;min-height:44px;padding:11px 17px;border:1px solid var(--tool-action);border-radius:8px;background:var(--tool-action);color:var(--tool-action-ink);box-shadow:0 2px 7px color-mix(in srgb,var(--category-accent,var(--accent)) 22%,transparent);cursor:pointer}
.workspace input[type=file]:not(:disabled):hover::file-selector-button{box-shadow:0 3px 10px color-mix(in srgb,var(--category-accent,var(--accent)) 32%,transparent)}
.workspace input[type=file]:focus-visible::file-selector-button{outline:2px solid var(--category-accent,var(--accent));outline-offset:2px}
.workspace input[type=file]:disabled::file-selector-button{opacity:.5;cursor:not-allowed;box-shadow:none}
.workspace label.button:has(+ input[type=file]){background:var(--tool-action);color:var(--tool-action-ink);border-color:var(--tool-action);font-weight:700;min-height:44px;box-shadow:0 2px 7px color-mix(in srgb,var(--category-accent,var(--accent)) 22%,transparent)}
.workspace label.button:has(+ input[type=file]):hover{box-shadow:0 3px 10px color-mix(in srgb,var(--category-accent,var(--accent)) 32%,transparent)}
.workspace .pdf-view-navigation{padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--bg);gap:8px}
.workspace .pdf-view-navigation input{min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text);font:inherit}
.workspace .dedupe-stats dd{color:var(--category-accent)}

.mc-options{border:1px solid var(--line);border-radius:8px;padding:12px;margin:0 0 16px;min-width:0}.mc-options legend{font-size:11px;font-weight:650;padding:0 5px}.mc-options .security-check{font-size:12px}.mc-options p:last-child{margin-bottom:0}

.ma-settings{border:0;margin:0;padding:0;min-width:0}.ma-settings legend{font-size:13px;font-weight:700;margin-bottom:18px;padding:0}.ma-results{padding:18px;min-width:0}.ma-results h2{font-size:18px}.ma-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.ma-values>div{border:1px solid var(--line);border-radius:10px;padding:16px;background:var(--surface);min-width:0}.ma-values dt{font-size:12px;color:var(--muted)}.ma-values dd{font-size:clamp(18px,2vw,26px);font-weight:700;color:var(--category-accent);margin:10px 0 4px;overflow-wrap:anywhere}.ma-values span{font-size:11px;color:var(--muted)}.ma-volume-note{padding:12px;border:1px solid var(--line);border-left:3px solid var(--category-accent);border-radius:8px;background:var(--surface);font-size:12px;line-height:1.7}.ma-diagnostics{display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,2fr);border:1px solid var(--line);border-radius:9px;overflow:hidden}.ma-diagnostics dt{margin:0;padding:12px;background:var(--surface);border-bottom:1px solid var(--line)}.ma-diagnostics dd{margin:0;padding:12px;border:0;border-bottom:1px solid var(--line);border-radius:0}.mesh-measure .cad-report h2{font-size:20px}@media(max-width:760px){.ma-results{padding:14px}.ma-values{grid-template-columns:1fr}.ma-diagnostics{grid-template-columns:1fr}.ma-diagnostics dt{border-bottom:0;padding-bottom:0;background:var(--bg)}.ma-diagnostics dd{padding-top:6px}}

.w3-workspace .cw-picker{grid-template-columns:minmax(0,1.15fr) minmax(150px,.8fr) minmax(0,1.5fr);padding:20px 20px 12px;gap:12px}.w3-controlbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px 16px}.w3-controlbar .cw-note{margin:0;font-size:11px}.w3-controlbar .scan-actions{margin:0;flex-shrink:0}.w3-workspace .cw-active{padding:18px 20px 4px}.w3-workspace .cw-active h2{font-size:24px}.w3-workspace>.cw-note{margin:12px 20px;font-size:12px;line-height:1.75}.w3-empty{padding:40px 20px;text-align:center;margin:0;font-size:14px;background:var(--surface)}.w3-scope{padding:16px 20px}.w3-scope summary{cursor:pointer;font-size:12px;font-weight:650}.w3-scope p{font-size:12px;line-height:1.75;margin:12px 0 0}.w3-workspace .cw-calculator{min-width:0}@media(max-width:760px){.w3-workspace .cw-picker{grid-template-columns:1fr;padding:16px}.w3-controlbar{flex-direction:column;align-items:stretch;padding:0 16px 16px;gap:10px}.w3-workspace .cw-active{padding:16px}.w3-workspace>.cw-note{margin:12px 16px}.w3-scope{padding:16px}}

.ma-values .ma-unit{font-size:11px;font-weight:400;color:var(--muted);margin:0}

.qr-studio #st-empty{color:#5e6980}
