body { display:grid!important; grid-template-columns:var(--settings-column,clamp(210px,18vw,268px)) minmax(0,1fr) var(--results-column,clamp(280px,24vw,360px)); width:100%; height:100dvh!important; min-height:0!important; overflow:hidden!important; }
.app-sidebar,.data-panel,.main-shell { min-width:0; min-height:0; width:auto!important; height:auto; }
.app-sidebar,.data-panel { grid-row:1; }
body > .main-shell { grid-column:2; grid-row:1; height:100dvh; min-height:0; flex:1 1 0%; }
.app-sidebar { grid-column:1; }
.data-panel { grid-column:3; }
.app-sidebar .sidebar-controls { min-height:0; display:block; padding:16px; }
.main-shell .top-toolbar { height:auto; min-height:64px; flex:none; flex-wrap:wrap; justify-content:flex-start; gap:12px; padding:10px 12px; }
.toolbar-start { display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-width:0; max-width:100%; }
.mode-switcher,.action-bar,.upload-actions { width:auto; flex-wrap:wrap; gap:8px; }
.action-bar { margin-left:auto; }
.top-toolbar .btn-flat { min-height:40px; padding:9px 12px; white-space:nowrap; font-size:13px; line-height:20px; }
.top-toolbar :is(.btn-flat,.btn-icon) { border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#334155; }
.top-toolbar .mode-switcher { display:grid; grid-template-columns:repeat(3,minmax(88px,1fr)); gap:4px; padding:3px; max-width:100%; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; }
.top-toolbar .mode-switcher .btn-flat { min-height:32px; padding:5px 12px; border-color:transparent; background:transparent; font-weight:600; }
.top-toolbar .pdf-pagination,.top-toolbar .toolbar-tools { gap:4px; height:40px; padding:3px; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; flex-shrink:0; }
.top-toolbar .pdf-pagination { min-width:0; }
.top-toolbar :is(.pdf-pagination,.toolbar-tools) .btn-icon { width:32px; height:32px; padding:6px; border-color:transparent; background:transparent; }
.top-toolbar .pdf-page-label { min-width:44px; padding-inline:4px; font-size:12px; line-height:32px; font-weight:500; font-variant-numeric:tabular-nums; color:#475569; }
.top-toolbar :is(.btn-flat,.btn-icon):not(:disabled):hover { background:#eff6ff; border-color:#93c5fd; color:#1d4ed8; }
.top-toolbar #clearBtn:not(:disabled):hover { background:#fef2f2; border-color:#fca5a5; color:#dc2626; }
.top-toolbar :is([aria-pressed=true],[aria-expanded=true],[aria-busy=true],.btn-icon.active),
.top-toolbar :is([aria-pressed=true],[aria-expanded=true],[aria-busy=true],.btn-icon.active):not(:disabled):hover { background:#1d4ed8; border-color:#1e40af; color:#fff; font-weight:600; box-shadow:inset 0 -2px 0 #1e3a8a; }
.top-toolbar :is(.btn-flat,.btn-icon):focus-visible { outline:2px solid #2563eb; outline-offset:3px; }
.top-toolbar :is(.btn-flat,.btn-icon):disabled { opacity:.45; cursor:not-allowed; }
.app-sidebar :is(.btn-flat,.model-select,#zoomSlider):disabled { opacity:.5; cursor:not-allowed; }
.action-separator { display:none; }
.main-shell .canvas-area { min-width:0; min-height:0; padding:10px; background:linear-gradient(145deg,#e0f0ff 0%,#f3f9ff 45%,#ffffff 100%); }
.automatic-recognition-overlay { position:absolute; inset:0; z-index:40; display:flex; align-items:center; justify-content:center; padding:16px; background:rgb(248 250 252 / .86); cursor:wait; touch-action:none; }
.automatic-recognition-overlay[hidden] { display:none; }
body[data-drawing-loading=true] .automatic-recognition-overlay { background:inherit; }
body[data-drawing-loading=true] :is(.canvas-area > .canvas-wrapper,.canvas-area > #uploadOverlay,.inspection-panel,#annoList,#resultCount) { visibility:hidden; }
body[data-drawing-loading=true] .main-shell > .inspection-panel { display:none; }
.canvas-area:has(> .automatic-recognition-overlay:not([hidden])) { min-height:64px; }
.main-shell:has(.automatic-recognition-overlay:not([hidden])) > .inspection-panel { flex-shrink:1; }
.automatic-recognition-message { display:grid; justify-items:center; gap:10px; max-width:100%; padding:22px 28px; border:1px solid #dbeafe; border-radius:12px; background:#fff; box-shadow:0 4px 16px rgb(15 23 42 / .08); text-align:center; }
.automatic-recognition-message strong { color:#1d4ed8; font-size:16px; }
.automatic-recognition-message > span:last-child { color:#64748b; font-size:12px; }
.automatic-recognition-spinner { width:28px; height:28px; border:3px solid #dbeafe; border-top-color:#2563eb; border-radius:50%; animation:automatic-recognition-spin .8s linear infinite; }
@keyframes automatic-recognition-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .automatic-recognition-spinner { animation:none; } }
@media (max-width:600px), (max-height:650px) {
    .automatic-recognition-overlay { padding:6px; }
    .automatic-recognition-message { grid-template-columns:20px minmax(0,1fr); justify-items:start; gap:4px 10px; padding:10px 12px; text-align:left; }
    .automatic-recognition-message strong { font-size:14px; }
    .automatic-recognition-spinner { grid-row:1 / span 2; width:20px; height:20px; }
}
@media (max-height:500px) {
    .automatic-recognition-message { padding:6px 12px; }
    .automatic-recognition-message > span:last-child { display:none; }
    .automatic-recognition-spinner { grid-row:auto; }
}
.canvas-wrapper { box-sizing:content-box; max-width:100%; max-height:100%; flex-shrink:0; overflow:hidden; background:transparent; }
.canvas-area #uploadOverlay { padding:8px; overflow:auto; }
.upload-welcome-card { max-height:100%; min-height:0; padding:24px; }
.upload-welcome-card > .w-16 { margin-bottom:0; }
.main-shell > :has(> #statusText) { flex:none; min-width:0; gap:8px; }
#statusText { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
#mousePos { flex-shrink:0; }
.workspace-collapse { display:none; }
@media (min-width:1051px) {
    body[data-settings-collapsed=true] { --settings-column:0px; }
    body[data-settings-collapsed=true] > .app-sidebar { visibility:hidden; overflow:hidden; border-width:0; }
}
@media (min-width:1501px) {
    body[data-results-collapsed=true] { --results-column:0px; }
    body[data-results-collapsed=true] > .data-panel { visibility:hidden; overflow:hidden; border-width:0; }
}
.inspection-panel { position:relative; display:flex; flex-direction:column; height:300px; flex:none; min-height:44px; min-width:0; background:#fff; border-top:1px solid #cbd5e1; z-index:5; container-type:inline-size; }
.inspection-resize { position:absolute; inset:-5px 0 auto; height:10px; cursor:row-resize; touch-action:none; z-index:3; }
.inspection-resize::after { content:''; position:absolute; top:4px; left:calc(50% - 22px); width:44px; height:3px; border-radius:4px; background:#94a3b8; }
.inspection-resize:hover::after,.inspection-resize:focus-visible::after { background:#2563eb; }
.inspection-toolbar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; padding:7px 16px; min-height:56px; flex:none; min-width:0; border-bottom:1px solid #e2e8f0; }
.inspection-toolbar button { white-space:nowrap; font-size:13px; min-height:34px; border-radius:6px; padding:6px 10px; cursor:pointer; }
.inspection-toolbar button:focus-visible,.inspection-column-filter:focus-visible,.inspection-number:focus-visible,.inspection-preview:focus-visible,.inspection-filter-popover button:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.inspection-toolbar button:disabled { opacity:.45; cursor:default; }
.inspection-heading { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:1px; }
#inspectionToggle { font-weight:650; font-size:14px; color:#1e293b; display:flex; align-items:center; gap:7px; padding:0; min-height:22px; }
#inspectionToggle::before { content:'▾'; color:#64748b; font-size:12px; }
[data-collapsed=true] #inspectionToggle::before { content:'▸'; }
#inspectionSummary { font-size:12px; line-height:18px; color:#64748b; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-variant-numeric:tabular-nums; padding-left:14px; }
.inspection-filters { display:flex; align-items:center; justify-content:flex-start; gap:8px; min-width:0; }
.inspection-filter-trigger { display:flex; align-items:center; gap:7px; max-width:210px; min-width:0; border:1px solid #cbd5e1; background:#fff; color:#475569; }
.inspection-filter-name { flex-shrink:0; }
.inspection-filter-trigger [data-filter-value] { color:#64748b; min-width:0; max-width:96px; overflow:hidden; text-overflow:ellipsis; }
.inspection-filter-trigger [data-filter-count] { display:none; }
.inspection-filter-chevron { width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin:0 2px 3px auto; flex-shrink:0; }
.inspection-filter-trigger:hover { border-color:#94a3b8; background:#f8fafc; }
.inspection-filter-trigger[data-active=true] { border-color:#93c5fd; background:#eff6ff; color:#1d4ed8; }
.inspection-filter-trigger[data-active=true] [data-filter-value] { color:#1d4ed8; font-weight:600; }
.inspection-filter-trigger[aria-expanded=true] { outline:2px solid #bfdbfe; border-color:#3b82f6; }
.inspection-actions { display:flex; align-items:center; gap:8px; }
#inspectionClearFilters { color:#475569; padding-inline:8px; }
#inspectionClearFilters:not(:disabled):hover { background:#f1f5f9; }
#inspectionExport { display:flex; align-items:center; justify-content:center; gap:7px; background:#2563eb; color:white; font-weight:550; }
#inspectionExport svg { width:16px; height:16px; flex-shrink:0; }
#inspectionExport:not(:disabled):hover { background:#1d4ed8; }
#inspectionContent { flex:1; min-height:0; min-width:0; position:relative; }
#inspectionContent[hidden] { display:none; }
[data-collapsed=true] .inspection-toolbar { min-height:43px; height:43px; padding-block:0; }
[data-collapsed=true] .inspection-heading { flex-direction:row; align-items:center; gap:12px; }
[data-collapsed=true] .inspection-filters { visibility:hidden; }
#inspectionGrid.tabulator { border:0; height:100%; background:#f8fafc; font-family:inherit; font-size:13px; color:#1f2937; }
#inspectionGrid .tabulator-header { border-bottom:1px solid #dbe2ea; background:#f8fafc; color:#475569; font-weight:550; }
#inspectionGrid .tabulator-header .tabulator-col { background:#f8fafc; border-right:1px solid #e2e8f0; min-height:40px; }
#inspectionGrid .tabulator-header .tabulator-col-content { padding:8px 12px; }
#inspectionGrid .tabulator-col-title { line-height:24px; }
.inspection-column-title { display:flex; align-items:center; justify-content:space-between; gap:4px; min-width:0; }
.inspection-column-title > span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.inspection-column-filter { display:flex; align-items:center; justify-content:center; flex:none; width:28px; height:26px; border-radius:4px; color:#64748b; cursor:pointer; }
.inspection-column-filter svg { width:15px; height:15px; }
.inspection-column-filter:hover { background:#e2e8f0; color:#334155; }
.inspection-column-filter[data-active=true] { color:#1d4ed8; background:#dbeafe; }
#inspectionGrid .tabulator-tableholder { overscroll-behavior:contain; scrollbar-width:auto; scrollbar-color:#94a3b8 #f1f5f9; }
#inspectionGrid .tabulator-row { background:#fff; border-bottom:1px solid #e8edf3; min-height:52px; }
#inspectionGrid .tabulator-row.tabulator-row-even { background:#fcfdff; }
#inspectionGrid .tabulator-row.tabulator-selected { background:#f7faff; }
#inspectionGrid .tabulator-row:hover { background:#f0f6ff; }
#inspectionGrid .tabulator-row.inspection-focused { background:#eaf3ff; }
#inspectionGrid .tabulator-row.inspection-focused .tabulator-cell:first-child { box-shadow:inset 3px 0 #2563eb; }
#inspectionGrid .tabulator-cell { padding:6px 12px; border-right:1px solid #f1f4f8; line-height:20px; font-variant-numeric:tabular-nums; }
#inspectionGrid .tabulator-cell.tabulator-frozen,#inspectionGrid .tabulator-col.tabulator-frozen { background:inherit; }
#inspectionGrid [tabulator-field=number].tabulator-frozen { border-right:1px solid #dbe2ea; }
#inspectionGrid .inspection-editable { cursor:text; }
#inspectionGrid .inspection-editable:hover { box-shadow:inset 0 0 0 1px #93c5fd; }
#inspectionGrid .inspection-original { white-space:pre-wrap; overflow:auto; overflow-wrap:anywhere; font-weight:500; color:#172033; }
.inspection-type-value:not(:empty) { display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; padding:1px 6px; border-radius:4px; background:#edf1f6; color:#475569; font-size:12px; vertical-align:middle; }
.inspection-standard-value { font-weight:550; color:#475569; }
#inspectionGrid .tabulator-cell.tabulator-editing { border:2px solid #2563eb; padding:0; background:#fff; }
#inspectionGrid .tabulator-cell.tabulator-editing input,#inspectionGrid .tabulator-cell.tabulator-editing textarea { padding:8px!important; font:inherit; line-height:20px; color:#0f172a; outline:none; background:white; max-height:100%; }
#inspectionGrid input[type=checkbox] { width:18px; height:18px; accent-color:#2563eb; cursor:pointer; vertical-align:middle; }
#inspectionGrid input[type=checkbox]:disabled { cursor:default; opacity:.4; }
#inspectionGrid .tabulator-placeholder { color:#64748b; font-size:13px; }
#inspectionGrid .tabulator-placeholder-contents { padding:12px!important; }
.inspection-empty { display:flex; flex-direction:column; align-items:center; gap:6px; white-space:normal; line-height:20px; }
.inspection-empty strong { color:#475569; font-size:14px; font-weight:600; }
.inspection-empty button { color:#2563eb; font-size:13px; padding:4px 8px; border-radius:4px; }
.tabulator-edit-list { max-height:min(280px,50dvh); padding:4px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#334155; font-family:inherit; font-size:13px; box-shadow:0 8px 24px rgb(15 23 42 / .14); }
.tabulator-edit-list .tabulator-edit-list-item { min-height:36px; padding:8px 10px; border-radius:4px; }
.tabulator-edit-list .tabulator-edit-list-item:hover,.tabulator-edit-list .tabulator-edit-list-item.active { background:#eff6ff; color:#1d4ed8; }
.tabulator-tooltip { max-width:min(420px,calc(100vw - 24px)); white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }
.inspection-preview { width:100%; height:38px; display:flex; align-items:center; justify-content:center; border:1px solid #e8edf3; border-radius:4px; background:#fff; }
.inspection-preview img { max-width:100%; max-height:36px; object-fit:contain; }
.inspection-preview img[hidden] { display:none; }
.inspection-number { min-width:36px; height:36px; border-radius:5px; color:#1d4ed8; font-weight:600; }
.inspection-number:hover { background:#dbeafe; }
.inspection-filter-popover { position:fixed; inset:0; margin:auto; width:min(328px,calc(100vw - 24px)); height:min(420px,calc(100dvh - 24px)); max-height:calc(100dvh - 24px); padding:0; overflow:hidden; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#334155; font-family:inherit; font-size:13px; box-shadow:0 12px 40px rgb(15 23 42 / .2); }
.inspection-filter-popover:popover-open { display:flex; flex-direction:column; }
.inspection-filter-head { display:flex; align-items:center; justify-content:space-between; padding:10px 12px 4px 16px; flex:none; }
.inspection-filter-head h3 { font-size:14px; font-weight:600; }
.inspection-filter-head button { width:32px; height:32px; border-radius:5px; font-size:23px; line-height:1; color:#64748b; }
.inspection-filter-head button:hover { background:#f1f5f9; }
.inspection-filter-search { position:relative; display:flex; align-items:center; margin:6px 16px 10px; flex:none; }
.inspection-filter-search svg { position:absolute; left:10px; width:16px; height:16px; color:#64748b; pointer-events:none; }
.inspection-filter-search input { width:100%; height:36px; border:1px solid #cbd5e1; border-radius:6px; padding:6px 10px 6px 33px; background:#fff; font:inherit; }
.inspection-filter-search input:focus { outline:2px solid #bfdbfe; border-color:#3b82f6; }
.inspection-filter-bulk { display:flex; align-items:center; justify-content:space-between; padding:0 16px; min-height:38px; border-block:1px solid #e8edf3; flex:none; }
.inspection-filter-bulk label { display:flex; align-items:center; gap:10px; cursor:pointer; min-height:38px; }
.inspection-filter-bulk button { color:#2563eb; padding:6px 0 6px 10px; }
.inspection-filter-options { overflow:auto; overscroll-behavior:contain; flex:1; min-height:48px; padding:4px 8px; }
.inspection-filter-options > label { display:flex; align-items:center; gap:10px; min-height:40px; padding:6px 8px; cursor:pointer; border-radius:5px; }
.inspection-filter-options > label:hover { background:#f1f5f9; }
.inspection-filter-options > label:has(:checked) { color:#1d4ed8; background:#f4f8ff; }
.inspection-filter-popover input[type=checkbox] { width:17px; height:17px; flex:none; accent-color:#2563eb; }
.inspection-filter-option-name { min-width:0; overflow-wrap:anywhere; }
.inspection-filter-option-count { margin-left:auto; padding-left:8px; flex:none; font-size:12px; color:#64748b; font-variant-numeric:tabular-nums; }
.inspection-filter-no-values { display:block; padding:20px 8px; text-align:center; color:#64748b; }
.inspection-filter-foot { display:flex; flex-direction:column; gap:10px; padding:10px 16px 12px; border-top:1px solid #e2e8f0; background:#fafbfd; flex:none; }
#inspectionFilterSelection { font-size:12px; color:#64748b; font-variant-numeric:tabular-nums; }
.inspection-filter-foot > div { display:flex; justify-content:flex-end; gap:8px; }
.inspection-filter-foot button { min-height:34px; padding:6px 14px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#475569; }
.inspection-filter-foot #inspectionFilterApply { border-color:#2563eb; background:#2563eb; color:#fff; }
.inspection-filter-foot button:disabled { opacity:.45; cursor:default; }
@supports (position-area:top span-right) {
    .inspection-filter-popover { inset:auto; position-anchor:--inspection-filter-anchor; position-area:top span-right; position-try-fallbacks:flip-inline,flip-block,flip-inline flip-block; position-try-order:most-height; margin:8px; }
}
@container (max-width:920px) {
    .inspection-toolbar { grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:6px 12px 8px; }
    .inspection-filters { grid-column:1 / -1; grid-row:2; gap:8px; }
    .inspection-filter-trigger { flex:1; max-width:none; }
    [data-collapsed=true] .inspection-filters { display:none; }
}
.manual-dialog { width:min(460px,calc(100vw - 24px)); border:1px solid #cbd5e1; border-radius:12px; padding:20px; }
.manual-dialog::backdrop { background:rgb(15 23 42 / .4); }
.manual-dialog form { display:grid; gap:14px; }
.manual-dialog textarea { width:100%; padding:10px; border:1px solid #94a3b8; border-radius:6px; min-height:100px; }
.manual-dialog footer { display:flex; justify-content:flex-end; gap:8px; }
.export-button-label { display:inline-flex; align-items:center; gap:6px; }
.export-caret { font-size:10px; opacity:.7; }
.drawing-export-menu { position:fixed; inset:auto; margin:0; width:280px; max-width:calc(100vw - 16px); padding:5px; border:1px solid var(--workbench-border,#cbd5e1); border-radius:5px; background:var(--workbench-panel,#fff); color:var(--workbench-text,#1f2937); box-shadow:0 6px 18px rgb(0 0 0 / .2); }
.drawing-export-menu button { display:flex; align-items:center; gap:10px; width:100%; min-height:38px; padding:7px 9px; border:0; border-radius:3px; background:transparent; color:inherit; text-align:left; font-size:13px; cursor:pointer; }
.drawing-export-menu button:not(:disabled):hover,.drawing-export-menu button:focus-visible { background:var(--workbench-hover,#eff6ff); }
.drawing-export-menu button:focus-visible { outline:2px solid var(--workbench-accent,#2563eb); outline-offset:-2px; }
.drawing-export-menu button:disabled { opacity:.4; cursor:default; }
.export-file-type { flex:0 0 48px; padding:2px 3px; border:1px solid var(--workbench-border,#cbd5e1); border-radius:3px; font-size:9px; line-height:14px; text-align:center; }
.export-item-copy { display:grid; gap:3px; min-width:0; }
.export-item-copy small { font-size:11px; line-height:1.5; opacity:.7; }
#drawingExportError { margin:4px 8px; color:#ef4444; font-size:12px; overflow-wrap:anywhere; }
@media (pointer:coarse) { .drawing-export-menu button { min-height:44px; } }
.recognition-config [data-config-kind]:disabled { cursor:wait; opacity:.55; }
.app-sidebar .recognition-config-row { min-height:36px; font-size:13px; line-height:1.5; gap:8px; }
.app-sidebar .recognition-config-row small { font-size:11px; line-height:1.4; }
.result-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 0; font-size:12px; }
.result-pagination button { min-height:36px; padding:4px 10px; border:1px solid #cbd5e1; border-radius:5px; background:white; }
.result-pagination button:disabled { opacity:.4; }
@media (max-width:1500px) {
    body { grid-template-columns:var(--settings-column,224px) minmax(0,1fr); }
    body > .data-panel { position:fixed; right:0; top:0; bottom:0; width:min(380px,100vw)!important; height:100dvh; min-height:0; transform:translateX(100%); visibility:hidden; z-index:60; }
    body[data-workspace-panel=results] .data-panel { transform:none; visibility:visible; }
    .data-panel .workspace-collapse { display:inline-flex; }
}
@media (max-width:1050px) {
    body { grid-template-columns:minmax(0,1fr); }
    body > .main-shell { grid-column:1; }
    body > .app-sidebar { position:fixed; left:0; top:0; bottom:0; width:min(320px,100vw)!important; height:100dvh; min-height:0; max-height:none; transform:translateX(-100%); visibility:hidden; z-index:60; }
    body[data-workspace-panel=settings] .app-sidebar { transform:none; visibility:visible; }
    .app-sidebar .workspace-collapse { display:inline-flex; }
}
.workspace-scrim { position:fixed; inset:0; background:rgb(15 23 42 / .35); border:0; z-index:50; }
.workspace-scrim[hidden] { display:none; }
.results-header { display:grid; grid-template-columns:minmax(0,1fr) auto 32px; align-items:center; gap:8px; min-height:64px; height:auto; padding-block:8px; flex-shrink:0; }
@media (min-width:1501px) { .results-header { grid-template-columns:minmax(0,1fr) auto; } }
.results-header > div { min-width:0; overflow-wrap:anywhere; }
.results-header #equipmentLibraryBtn { white-space:nowrap; min-height:36px; padding:6px 10px; }
.app-sidebar > :has(> .workspace-collapse) { min-height:64px; height:auto; padding:8px 12px; gap:8px; flex-shrink:0; }
.workspace-collapse { margin-left:auto; flex-shrink:0; align-items:center; justify-content:center; width:32px; min-width:32px; height:36px; border:1px solid #cbd5e1; border-radius:6px; background:white; color:#475569; font-size:16px; cursor:pointer; }
.workspace-restore { position:absolute; top:50%; transform:translateY(-50%); z-index:45; display:flex; align-items:center; justify-content:center; width:28px; height:64px; padding:0; border:1px solid #cbd5e1; background:#f8fafc; color:#2563eb; cursor:pointer; box-shadow:0 2px 6px rgb(15 23 42 / .08); touch-action:manipulation; }
.workspace-restore[aria-expanded=true] > span { transform:rotate(180deg); }
.workspace-restore-left { left:0; border-radius:0 8px 8px 0; }
.workspace-restore-right { right:0; border-radius:8px 0 0 8px; }
.workspace-restore[hidden] { display:none; }
.workspace-collapse:hover,.workspace-restore:hover { background:#eff6ff; border-color:#93c5fd; }
.workspace-collapse:focus-visible,.workspace-restore:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.workspace-restore:focus-visible { outline-offset:-3px; }
@media (pointer:coarse) { .workspace-restore { width:44px; } }
@media (max-width:600px) {
    .main-shell .top-toolbar { padding:8px; gap:8px; }
    .toolbar-start { width:100%; gap:8px; }
    .top-toolbar .mode-switcher { width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); }
    .mode-switcher .btn-flat { flex:1; min-width:0; padding-inline:6px; white-space:normal; line-height:18px; }
    .top-toolbar .action-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; gap:6px; margin:0; }
    .action-bar > .flex:not(.upload-actions) { justify-self:start; }
    .action-bar .upload-actions { grid-column:1 / -1; grid-row:2; width:100%; flex-wrap:nowrap; }
    .upload-actions > button,.upload-actions > [role=group] { flex:1; }
    .upload-actions > [role=group] > button { width:100%; }
    .action-bar .language-toggle { grid-column:2; grid-row:1; width:36px; min-width:36px; margin:0; }
    .top-toolbar .btn-flat { min-height:40px; font-size:12px; padding-inline:8px; }
    .top-toolbar .btn-icon { width:32px; height:32px; }
    .main-shell .canvas-area { padding:4px; }
    .inspection-toolbar { padding-inline:8px; gap:6px; }
    .inspection-toolbar button { font-size:12px; padding-inline:8px; min-height:36px; }
    .inspection-toolbar #inspectionToggle { min-height:20px; font-size:13px; padding:0; }
    #inspectionSummary { font-size:11px; padding-left:13px; }
    #inspectionClearFilters { padding-inline:4px; }
    #inspectionExport { gap:5px; }
    #inspectionExport svg { width:14px; height:14px; }
    .inspection-actions { gap:4px; }
    .inspection-filter-trigger { gap:5px; min-height:36px; }
    .inspection-filter-trigger [data-filter-value] { display:none; }
    .inspection-filter-trigger [data-filter-count]:not([hidden]) { display:inline-flex; align-items:center; justify-content:center; min-width:16px; height:16px; padding:0 3px; border-radius:4px; background:#dbeafe; color:#1d4ed8; font-size:10px; }
    .inspection-filters { gap:6px; }
    [data-collapsed=true] .inspection-heading { flex-direction:column; align-items:flex-start; gap:0; }
    #inspectionGrid .tabulator-cell { font-size:14px; }
    #inspectionGrid .tabulator-cell.tabulator-editing input,#inspectionGrid .tabulator-cell.tabulator-editing textarea { font-size:16px; }
    .tabulator-edit-list .tabulator-edit-list-item { min-height:44px; }
    .inspection-filter-popover { inset:auto 8px 12px; width:auto; height:min(480px,calc(100dvh - 24px)); margin:0; position-area:none; }
    .inspection-filter-search input { height:40px; font-size:16px; }
    .inspection-filter-head button { width:40px; height:40px; }
    .inspection-filter-options > label,.inspection-filter-bulk,.inspection-filter-bulk label { min-height:44px; }
    .inspection-filter-foot button { min-height:40px; }
    .upload-welcome-card { padding:18px; width:min(378px,100%); }
    .upload-welcome-card h2 { font-size:20px; }
    .upload-welcome-card > .w-16 { width:40px; height:40px; }
    .upload-welcome-card > .w-16 svg { width:24px; height:24px; }
    .upload-welcome-card { gap:8px; }
    .upload-welcome-card > * { margin-block:0!important; }
    .upload-welcome-card #overlayUploadBtn { margin-top:8px!important; }
    #mousePos { display:none; }
}
@media (max-height:650px) {
    .main-shell .top-toolbar { min-height:48px; padding-block:6px; }
    .upload-welcome-card { padding:12px 24px; }
    .upload-welcome-card > .w-16 { display:none; }
}
@media (min-width:601px) and (max-height:650px) {
    .inspection-filter-popover { position-area:none; inset:12px; margin:auto; }
}

:root {
    --workbench-bg:#303030;
    --workbench-panel:#333333;
    --workbench-surface:#292929;
    --workbench-raised:#444444;
    --workbench-input:#414141;
    --workbench-border:#555555;
    --workbench-divider:#242424;
    --workbench-hover:#4b4b4b;
    --workbench-selected:#505050;
    --workbench-text:#e7e7e7;
    --workbench-muted:#b8b8b8;
    --workbench-accent:#76c9d2;
    color-scheme:dark;
}
html body,body .app-sidebar,body .data-panel,body .main-shell { background:var(--workbench-panel); color:var(--workbench-text); }
body :is(.bg-white,.bg-gray-50,.bg-gray-50\/50,.bg-flat-surface) { background-color:var(--workbench-panel); }
body :is(.text-flat-text,.text-gray-700,.text-gray-800,.text-gray-900) { color:var(--workbench-text); }
body :is(.text-flat-textLight,.text-gray-400,.text-gray-500,.text-gray-600) { color:var(--workbench-muted); }
body .text-flat-primary { color:var(--workbench-accent); }
body .text-flat-danger { color:#ffb4b4; }
body .text-flat-success { color:#a7e1c3; }
body .text-flat-warning { color:#f3d493; }
body .border-flat-primary { border-color:var(--workbench-accent); }
body .ring-flat-primary { --tw-ring-color:var(--workbench-accent); }
body .bg-red-50 { background-color:#593b3b; }
body .text-red-600 { color:#ffd0d0; }
body .border-red-100 { border-color:#805151; }
body :is(.border-flat-border,.border-gray-200,.border-gray-100) { border-color:var(--workbench-divider); }
body :is(button,input,select,textarea,summary,a):focus-visible { outline:2px solid var(--workbench-accent); outline-offset:2px; }
body :is(.btn-flat,.btn-icon,.model-select,.panel-tab,.sidebar-page-button,.workspace-restore,.workspace-collapse) { color:var(--workbench-text); background:var(--workbench-raised); border:1px solid var(--workbench-border); border-radius:4px; box-shadow:none; font-weight:500; }
body :is(.btn-flat,.btn-icon,.panel-tab,.sidebar-page-button,.workspace-restore,.workspace-collapse):not(:disabled):hover { background:var(--workbench-hover); color:#fff; border-color:#757575; }
body :is(.btn-flat,.btn-icon,.panel-tab,.sidebar-page-button,.workspace-restore,.workspace-collapse):not(:disabled):active { background:#555; }
body :is(.btn-flat,.btn-icon):disabled { opacity:1; color:#858585; background:#3a3a3a; border-color:#484848; box-shadow:none; cursor:not-allowed; }
body :is(.btn-primary,.sidebar-page-button.active) { background:var(--workbench-selected); color:#fff; border-color:#777; box-shadow:none; }
body .btn-primary:not(:disabled):hover { background:#5b5b5b; }
body :is(input:not([type=checkbox]):not([type=range]),select,textarea) { background-color:var(--workbench-input); border:1px solid var(--workbench-border); border-radius:4px; color:var(--workbench-text); }
body :is(input,textarea)::placeholder { color:var(--workbench-muted); }
body input[type=checkbox],body #zoomSlider { accent-color:var(--workbench-accent); }
body .main-shell .top-toolbar { min-height:76px; padding:6px 12px; gap:8px; background:var(--workbench-bg); border-color:var(--workbench-divider); box-shadow:0 1px 3px rgb(0 0 0 / .2); }
body .top-toolbar :is(.toolbar-start,.action-bar) { gap:8px; }
body .top-toolbar .action-bar { margin-left:0; flex:1; }
body .top-toolbar :is(.mode-switcher,.toolbar-tools,.upload-actions,.pdf-pagination) { background:transparent; border:0; border-radius:0; padding:0; gap:4px; height:auto; }
body .top-toolbar .mode-switcher { display:flex; }
body .top-toolbar .toolbar-tools { padding-inline:8px; border-inline:1px solid var(--workbench-divider); }
body .top-toolbar :is(.mode-switcher,.toolbar-tools,.upload-actions) .toolbar-command { display:flex; flex-direction:column; justify-content:center; align-items:center; flex:none; gap:4px; width:84px; min-width:0; height:60px; min-height:60px; padding:4px 6px; border:1px solid transparent; border-radius:4px; background:transparent; color:var(--workbench-text); font-size:12px; line-height:14px; font-weight:400; box-shadow:none; }
body .top-toolbar .mode-switcher .toolbar-command { width:104px; }
body .top-toolbar .toolbar-command > svg { flex:none; width:22px; height:22px; stroke-width:1.6; }
body .top-toolbar .toolbar-command > svg [stroke-width] { stroke-width:1.6; }
body .top-toolbar .toolbar-command > span:not(.pdf-upload-spinner) { white-space:normal; text-align:center; }
body .top-toolbar :is(.mode-switcher,.toolbar-tools,.upload-actions) .toolbar-command:not(:disabled):hover { background:var(--workbench-hover); border-color:transparent; color:#fff; }
body .top-toolbar #clearBtn:not(:disabled):hover { background:#593b3b; border-color:#805151; color:#ffd0d0; }
body .top-toolbar :is(.mode-switcher,.toolbar-tools,.upload-actions) .toolbar-command:is([aria-pressed=true],[aria-busy=true]) { background:var(--workbench-selected); border-color:#656565; box-shadow:none; }
body .top-toolbar :is(.mode-switcher,.toolbar-tools,.upload-actions) .toolbar-command:disabled { color:#828282; background:transparent; border-color:transparent; opacity:1; }
body .top-toolbar .toolbar-command[aria-busy=true] { color:var(--workbench-text); }
body .top-toolbar .pdf-upload-trigger[aria-busy=true] > svg { display:none; }
body .top-toolbar #languageToggle { width:36px; min-width:36px; height:36px; min-height:36px; margin-left:auto; padding:0; font-size:12px; background:var(--workbench-raised); color:var(--workbench-text); border-color:var(--workbench-border); }
body .top-toolbar #languageToggle:hover { background:var(--workbench-hover); border-color:#757575; }
body .top-toolbar .upload-actions > [role=group] { box-shadow:none; }
body .top-toolbar .pdf-pagination { gap:2px; padding-left:8px; border-left:1px solid var(--workbench-divider); }
body .top-toolbar .pdf-pagination .btn-icon { background:transparent; border-color:transparent; }
body .top-toolbar .pdf-page-label { color:var(--workbench-muted); }
body .app-sidebar > :has(> .workspace-collapse),body .results-header { min-height:76px; padding:10px 16px; background:var(--workbench-bg); border-color:var(--workbench-divider); }
body .app-sidebar h1 { font-size:15px; font-weight:600; letter-spacing:0; }
body .app-sidebar > :has(> .workspace-collapse) > .bg-flat-primary { width:3px; height:20px; margin-right:10px; border-radius:1px; background:var(--workbench-accent); }
body .results-header h2 { font-size:14px; font-weight:600; }
body .results-header #equipmentLibraryBtn { min-height:32px; font-size:12px; padding:5px 10px; }
body .app-sidebar .sidebar-controls { padding:0 16px 12px; scrollbar-color:#606060 var(--workbench-panel); }
body .app-sidebar .sidebar-section { padding:14px 0; border-bottom-color:var(--workbench-divider); }
body .app-sidebar :is(.sidebar-section-title,.recognition-config > summary) { color:var(--workbench-muted); font-size:12px; font-weight:600; }
body .app-sidebar .sidebar-section-title { margin-bottom:10px; }
body .app-sidebar .recognition-config > summary { margin-bottom:0; }
body :is(.sidebar-file-name,.sidebar-metadata dd) { color:var(--workbench-text); font-weight:500; }
body :is(.sidebar-metadata,.sidebar-page-count) { color:var(--workbench-muted); }
body .app-sidebar :is(.model-select,.sidebar-view-actions .btn-flat) { height:34px; min-height:34px; padding:5px 10px; font-size:12px; font-weight:400; }
body .app-sidebar .model-select:disabled { opacity:1; color:#929292; cursor:not-allowed; }
body .model-picker-ready { width:6px; height:6px; border:0; background:#7ed3ac; box-shadow:0 0 0 3px rgb(126 211 172 / .1); }
body .sidebar-toggles { gap:4px; }
body .sidebar-toggle { min-height:28px; color:var(--workbench-text); }
body .sidebar-toggle input { accent-color:var(--workbench-accent); }
body #sidebarReviewCount { color:var(--workbench-muted); padding-top:4px; }
body #zoomSlider { background:#606060; }
body #zoomSlider::-webkit-slider-thumb { background:var(--workbench-accent); border:2px solid var(--workbench-panel); box-shadow:none; }
body #zoomSlider::-moz-range-thumb { background:var(--workbench-accent); border:2px solid var(--workbench-panel); box-shadow:none; }
body .app-sidebar :is(.btn-flat,#zoomSlider):disabled { opacity:.55; }
body .sidebar-service { background:var(--workbench-bg); border-color:var(--workbench-divider); padding:12px 16px; }
body .sidebar-service > div:first-child { font-size:11px; font-weight:500; }
body .sidebar-service > div:last-of-type { font-size:12px; }
body .recognition-config-group { margin-top:8px; padding:2px 8px 6px; background:var(--workbench-bg); border-color:#4b4b4b; border-radius:4px; box-shadow:none; }
body .recognition-config-group > summary { color:var(--workbench-text); font-size:12px; font-weight:500; }
body .recognition-config-group:not([open]) { padding-bottom:2px; }
body .recognition-config-group > summary::after,body .recognition-config > summary::after { color:var(--workbench-muted); }
body .recognition-config-group[open] > summary::after { color:var(--workbench-muted); }
body .recognition-config-group summary span:last-child,body #recognitionConfigEnabledCount { background:#474747; color:var(--workbench-muted); font-size:10px; font-weight:500; }
body .recognition-config-row { color:var(--workbench-text); border-radius:3px; }
body .recognition-config-row:hover { background:#3f3f3f; }
body .recognition-config-row small { color:var(--workbench-muted); }
body .recognition-config-row input { background:#676767; }
body .recognition-config-row input:checked { background:#568e95; }
body :is(.recognition-config-meta,.recognition-config-hint) { color:var(--workbench-muted); }
body :is(#recognitionConfigVersion,#recognitionConfigStatus):empty { display:none; }
body .recognition-config-status { background:var(--workbench-surface); color:var(--workbench-muted); border-radius:4px; }
body .recognition-config-status[data-state=saved] { background:#34483e; color:#c1f6dc; }
body .recognition-config-status[data-state=error] { background:#593b3b; color:#ffd0d0; }
body .recognition-config-actions { background:transparent; border-color:var(--workbench-divider); gap:8px; }
body .recognition-config-actions .btn-flat { min-height:32px; font-size:12px; }
body .data-panel > [role=tablist] { padding:0; gap:0; background:var(--workbench-surface); border-color:var(--workbench-divider); }
body .panel-tab { min-height:38px; padding:8px 12px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:var(--workbench-muted); font-size:13px; font-weight:500; }
body .panel-tab.active { color:#fff; background:var(--workbench-panel); border-bottom-color:var(--workbench-accent); box-shadow:none; }
body .panel-tab:not(.active):hover { background:#3c3c3c; border-color:transparent; }
body .main-shell .canvas-area { background:linear-gradient(180deg,#9fc5eb 0%,#c1dcf5 52%,#e5f2ff 100%); }
body .canvas-area #uploadOverlay { background:transparent; }
body .canvas-wrapper { background:transparent; box-shadow:none; border-color:rgb(68 91 116 / .3); }
body .workspace-restore { width:24px; height:56px; border-color:#4c4c4c; background:#363636; box-shadow:0 1px 3px rgb(0 0 0 / .12); }
body .workspace-restore-left { border-radius:0 4px 4px 0; border-left:0; }
body .workspace-restore-right { border-radius:4px 0 0 4px; border-right:0; }
body .workspace-restore span { display:flex; }
body .workspace-restore svg { width:16px; height:16px; }
body .workspace-restore:focus-visible { outline-offset:-3px; }
body .workspace-collapse { width:32px; height:32px; }
body .upload-welcome-card { background:#333; color:var(--workbench-text); border:1px solid #484848; border-radius:6px; box-shadow:0 4px 16px rgb(0 0 0 / .14); }
body .upload-welcome-card::before { border-color:#646464; border-radius:3px; }
body .upload-welcome-card > .w-16 { width:48px; height:48px; border-radius:8px; background:#3f4a4b; color:var(--workbench-accent); }
body .upload-welcome-card > .w-16 svg { width:26px; height:26px; }
body .upload-welcome-card h2 { font-size:22px; font-weight:600; }
body .upload-welcome-card #overlayUploadBtn { min-height:36px; border:1px solid #747474; font-size:13px; box-shadow:none; }
body .file-drop-card { background:var(--workbench-panel); color:var(--workbench-text); border-color:var(--workbench-accent); border-radius:6px; }
body .main-shell > :has(> #statusText) { background:var(--workbench-bg); border-color:var(--workbench-divider); color:var(--workbench-muted); }
body :is(.pdf-job-card,.pdf-job-sync,.global-field-card,.anno-card) { background:var(--workbench-panel); border-color:var(--workbench-border); border-radius:4px; box-shadow:none; }
body .pdf-job-sync { color:var(--workbench-text); }
body .pdf-job-sync[data-state=interrupted] { background:#593b3b; color:#ffd0d0; }
body .pdf-job-status,body .pdf-job-card[data-state=cancelled] .pdf-job-status { background:#464646; color:var(--workbench-text); border-color:#606060; }
body .pdf-job-card[data-state=failed] .pdf-job-status { color:#ffd0d0; background:#593b3b; }
body .pdf-job-card[data-state=completed] .pdf-job-status { color:#bcf3da; background:#34483e; }
body .pdf-job-metrics strong { color:var(--workbench-text); }
body :is(.pdf-job-metrics span,.pdf-job-footer) { color:var(--workbench-muted); }
body :is(.pdf-job-metrics,.pdf-job-metrics > div + div,.pdf-job-footer) { border-color:var(--workbench-border); }
body .pdf-job-progress { background:var(--workbench-surface); }
body .pdf-job-progress > div { background:var(--workbench-accent); }
body .pdf-job-actions .btn-flat { min-height:32px; font-size:12px; }
body #annoList [data-result-number],body .inspection-type-value { background:#464646; color:var(--workbench-text); border-color:var(--workbench-border); }
body #annoList [data-select] { border-radius:4px; box-shadow:none; }
body #annoList [data-select]:hover { border-color:#757575; }
body #annoList [data-confirm-review] { color:#f3d493; background:#504734; border-color:#76633d; border-radius:4px; }
body #annoList [data-del]:hover { color:#ffd0d0; background:#593b3b; }
body .result-pagination { color:var(--workbench-muted); }
body .result-pagination button { background:var(--workbench-raised); color:var(--workbench-text); border-color:var(--workbench-border); border-radius:4px; }
body .inspection-panel { background:var(--workbench-panel); border-color:var(--workbench-divider); }
body :is(.inspection-toolbar,.inspection-filter-popover) { background:var(--workbench-bg); color:var(--workbench-text); border-color:var(--workbench-divider); }
body .inspection-filter-trigger { background:var(--workbench-input); color:var(--workbench-text); border-color:var(--workbench-border); border-radius:4px; }
body .inspection-toolbar button { border-radius:4px; }
body #inspectionToggle { color:var(--workbench-text); font-weight:500; }
body :is(#inspectionSummary,#inspectionClearFilters,.inspection-filter-trigger [data-filter-value]) { color:var(--workbench-muted); }
body .inspection-filter-trigger:is(:hover,[data-active=true]),body .inspection-column-filter:hover { background:var(--workbench-hover); border-color:#757575; color:var(--workbench-text); }
body .inspection-filter-trigger[data-active=true] [data-filter-value] { color:var(--workbench-text); }
body .inspection-filter-trigger[aria-expanded=true] { outline-color:var(--workbench-accent); }
body #inspectionClearFilters:not(:disabled):hover { background:var(--workbench-hover); }
body #inspectionExport { background:var(--workbench-raised); color:var(--workbench-text); border:1px solid var(--workbench-border); }
body #inspectionExport:not(:disabled):hover { background:var(--workbench-hover); border-color:#757575; }
body #inspectionGrid.tabulator,body #inspectionGrid .tabulator-header,body #inspectionGrid .tabulator-header .tabulator-col { background:var(--workbench-surface); color:var(--workbench-text); border-color:#484848; }
body #inspectionGrid .tabulator-row { background:#353535; color:var(--workbench-text); border-color:#454545; }
body #inspectionGrid .tabulator-row.tabulator-row-even { background:#383838; }
body #inspectionGrid .tabulator-row:is(.tabulator-selected,:hover,.inspection-focused) { background:#425154; }
body #inspectionGrid .tabulator-cell,body #inspectionGrid [tabulator-field=number].tabulator-frozen { border-color:#454545; }
body #inspectionGrid .tabulator-tableholder { scrollbar-color:#606060 var(--workbench-panel); }
body :is(.inspection-column-title,.inspection-column-filter,.inspection-number,.inspection-value,.inspection-empty strong,.equipment-field label) { color:var(--workbench-text); }
body #inspectionGrid .tabulator-cell[tabulator-field=original] { color:var(--workbench-text); }
body #inspectionGrid .inspection-original { color:var(--workbench-text); }
body .inspection-standard-value { color:var(--workbench-muted); }
body .inspection-type-value:not(:empty) { color:var(--workbench-text); background:#464646; }
body .inspection-number:hover { background:var(--workbench-hover); }
body #inspectionGrid .tabulator-cell.tabulator-editing { border-color:var(--workbench-accent); background:var(--workbench-input); }
body #inspectionGrid .tabulator-cell.tabulator-editing :is(input,textarea) { background:var(--workbench-input); color:var(--workbench-text); }
body .tabulator-edit-list { background:var(--workbench-panel); color:var(--workbench-text); border-color:var(--workbench-border); border-radius:4px; }
body .tabulator-edit-list :is(.tabulator-edit-list-item,.tabulator-edit-list-placeholder,.tabulator-edit-list-group) { color:var(--workbench-text); }
body .tabulator-edit-list .tabulator-edit-list-item:is(:hover,.active) { background:var(--workbench-hover); color:#fff; }
body :is(.inspection-empty,#inspectionGrid .tabulator-placeholder,#inspectionGrid .tabulator-placeholder .tabulator-placeholder-contents) { color:var(--workbench-muted); }
body #inspectionGrid .tabulator-placeholder { justify-content:flex-start; }
body :is(.manual-dialog,.inspection-filter-popover,.equipment-dialog,.equipment-options) { background:var(--workbench-panel); color:var(--workbench-text); border-color:var(--workbench-border); border-radius:6px; }
body .equipment-dialog { --eq-border:var(--workbench-border); --eq-muted:var(--workbench-muted); --eq-blue:#54868c; }
body .equipment-dialog .equipment-library { background:var(--workbench-raised); }
body .equipment-dialog .equipment-library label:has(:checked) { background:var(--workbench-selected); color:var(--workbench-text); }
body .equipment-dialog .equipment-primary { background:var(--workbench-selected); border-color:#777; color:#fff; }
body .equipment-dialog .equipment-primary:hover { background:#5b5b5b; border-color:#858585; }
body .equipment-dialog :is(input,textarea,select):focus,body .equipment-field input:focus { outline:2px solid var(--workbench-accent); outline-offset:2px; }
body .equipment-dialog button,body :is(.inspection-filter-head button,.inspection-filter-foot button) { background:var(--workbench-raised); color:var(--workbench-text); border:1px solid var(--workbench-border); border-radius:4px; }
body .equipment-dialog button:not(:disabled):hover,body .equipment-table tbody tr:hover { background:var(--workbench-hover); }
body :is(.equipment-table thead th,.equipment-actions,.equipment-tags span,.equipment-types label:has(:checked),.equipment-options [aria-selected=true],.equipment-options [role=option]:hover) { background:#414141; color:var(--workbench-text); border-color:var(--workbench-border); }
body :is(.equipment-notes,.equipment-empty,.equipment-empty p,.equipment-option-group,.equipment-options small,.equipment-options .equipment-option-detail) { color:var(--workbench-muted); }
body .equipment-dialog :is(.equipment-delete,.equipment-required,.equipment-field-error,.equipment-error) { color:#ffb4b4; }
body .equipment-dialog .equipment-delete:hover { background:#593b3b; border-color:#805151; }
body :is(.inspection-filter-head,.inspection-filter-bulk,.inspection-filter-foot) { background:var(--workbench-bg); border-color:var(--workbench-border); color:var(--workbench-muted); }
body :is(.inspection-filter-head h2,.inspection-filter-options > label,.inspection-filter-count,#inspectionFilterSelection,.inspection-filter-no-values) { color:var(--workbench-text); }
body .inspection-filter-options > label:hover { background:var(--workbench-hover); }
body .inspection-filter-options > label:has(:checked) { background:#425154; color:var(--workbench-text); }
body .inspection-filter-search input:focus { outline-color:var(--workbench-accent); border-color:var(--workbench-accent); }
body .inspection-filter-foot #inspectionFilterApply { background:var(--workbench-selected); border-color:#777; color:#fff; }
body .inspection-filter-foot button:not(:disabled):hover { background:var(--workbench-hover); }
body .automatic-recognition-overlay { background:rgb(38 38 38 / .82); flex-direction:column; gap:12px; }
body .automatic-recognition-message { background:var(--workbench-panel); border-color:var(--workbench-border); border-radius:6px; }
body .automatic-recognition-message strong { color:var(--workbench-text); }
body .automatic-recognition-message > span:last-child { color:var(--workbench-muted); }
body .automatic-recognition-spinner { border-color:#606060; border-top-color:var(--workbench-accent); }
body .ocr-activity { background:var(--workbench-panel); color:var(--workbench-text); border-color:var(--workbench-border); }
body ::-webkit-scrollbar { width:7px; height:7px; background:transparent; }
body ::-webkit-scrollbar-thumb { background:#606060; border:1px solid var(--workbench-panel); border-radius:4px; }
@media (max-width:600px) {
    body .main-shell .top-toolbar { min-height:0; padding:6px 8px; gap:6px; }
    body .top-toolbar .toolbar-start { width:100%; }
    body .top-toolbar .mode-switcher { display:grid; width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
    body .top-toolbar .mode-switcher .toolbar-command { width:100%; height:60px; min-height:60px; padding:4px; }
    body .top-toolbar .action-bar { grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; }
    body .top-toolbar .toolbar-tools { border:0; padding:0; gap:4px; }
    body .top-toolbar .toolbar-tools .toolbar-command { flex-direction:row; width:44px; height:36px; min-height:36px; }
    body .top-toolbar .toolbar-tools .toolbar-command span { display:none; }
    body .top-toolbar .toolbar-command > svg { width:20px; height:20px; }
    body .top-toolbar .upload-actions { gap:8px; }
    body .top-toolbar .upload-actions > button,body .top-toolbar .upload-actions > [role=group] { flex:1 1 0; min-width:0; }
    body .top-toolbar .upload-actions .toolbar-command { flex-direction:row; width:100%; height:36px; min-height:36px; border-color:var(--workbench-border); background:var(--workbench-raised); gap:8px; }
    body .top-toolbar .upload-actions > .toolbar-command { flex:1 1 0; width:0; }
    body .app-sidebar > :has(> .workspace-collapse),body .results-header { min-height:64px; }
    body .upload-welcome-card { min-height:0; height:auto; }
    body .upload-welcome-card h2 { font-size:20px; }
    body .upload-welcome-card > .w-16 { width:40px; height:40px; }
}
@media (min-width:601px) and (max-height:650px) {
    body .main-shell .top-toolbar { min-height:48px; padding:6px 8px; gap:6px; }
    body .top-toolbar :is(.mode-switcher,.toolbar-tools,.upload-actions) .toolbar-command { flex-direction:row; height:36px; min-height:36px; gap:6px; font-size:11px; line-height:13px; }
    body .top-toolbar .toolbar-command > svg { width:20px; height:20px; }
    body .top-toolbar .toolbar-tools .toolbar-command { width:36px; }
    body .top-toolbar .toolbar-tools .toolbar-command span { display:none; }
    body .inspection-panel:not([data-collapsed=true]) { max-height:40dvh; }
    body .upload-welcome-card { min-height:0; height:auto; padding:10px 20px; gap:6px; }
    body .upload-welcome-card > * { margin-block:0!important; }
    body .upload-welcome-card h2 { font-size:18px; }
    body .upload-welcome-card #overlayUploadBtn { min-height:32px; padding-block:4px; }
}
@media (pointer:coarse) {
    body .workspace-restore { width:44px; }
    body .top-toolbar :is(.toolbar-tools,.upload-actions) .toolbar-command,body .top-toolbar #languageToggle,body .workspace-collapse { min-height:44px; height:44px; }
    body .workspace-collapse { min-width:44px; }
    body .app-sidebar :is(.model-select,.sidebar-view-actions .btn-flat,.recognition-config-actions .btn-flat),body .panel-tab,body .pdf-job-actions .btn-flat { min-height:44px; }
    body .app-sidebar :is(.sidebar-toggle,.recognition-config-row),body .recognition-config-group > summary { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
    body :is(button,input,select,summary),body .recognition-config-row input::after { transition:none; }
}

.recognition-formatted-value { display:grid; }
.recognition-formatted-value > * { grid-area:1 / 1; min-width:0; }
body .recognition-formatted-value:not(:focus-within) > textarea { color:transparent; }
.recognition-value-preview { z-index:1; pointer-events:none; padding:4px 8px; white-space:pre-wrap; overflow-wrap:anywhere; font:13px/20px monospace; color:var(--workbench-text); }
.recognition-formatted-value:focus-within > .recognition-value-preview { visibility:hidden; }
.recognition-formatted-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.recognition-formatted-text sup { vertical-align:super; font-size:.75em; line-height:0; position:static; top:auto; }
.recognition-formatted-text sub { vertical-align:sub; font-size:.75em; line-height:0; position:static; bottom:auto; }
.recognition-script-stack { display:inline-grid; vertical-align:middle; grid-template-rows:1fr 1fr; line-height:1; }
.recognition-formatted-text .recognition-script-stack > :is(sup,sub) { line-height:1; }
.drawing-field-card { min-width:0; padding:8px 10px; border:1px solid var(--workbench-border); border-radius:4px; background:var(--workbench-input); cursor:pointer; }
.drawing-field-card:is(:focus-visible,.is-selected) { outline:2px solid var(--workbench-accent); outline-offset:-1px; }
.drawing-field-title { margin-bottom:4px; font-size:11px; color:var(--workbench-muted); }
.drawing-field-text { white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.6 monospace; color:var(--workbench-text); }
.recognition-table-content { max-width:100%; overflow:auto; color:var(--workbench-text); }
.recognition-table-content table { border-collapse:collapse; width:max-content; min-width:100%; margin:4px 0; font-size:12px; }
.recognition-table-content :is(td,th) { border:1px solid var(--workbench-border); padding:4px 6px; min-width:3em; white-space:pre-wrap; overflow-wrap:normal; word-break:normal; vertical-align:top; }
body textarea.recognition-content-input { min-height:30px; padding:4px 8px; font:13px/20px monospace; overflow:hidden; field-sizing:content; }
.recognition-type-field { display:grid; grid-template-columns:5rem minmax(0,1fr); align-items:center; gap:8px; font-size:11px; color:var(--workbench-muted); }
.recognition-type-field select { min-width:0; width:100%; padding:4px 6px; border:1px solid var(--workbench-border); border-radius:4px; background:var(--workbench-bg); color:var(--workbench-text); font:inherit; }
.recognition-type-field select:focus-visible { outline:2px solid var(--workbench-accent); outline-offset:1px; }
@supports (field-sizing:content) {
    body textarea.recognition-content-input { height:auto!important; }
}
