#app-container { width: 100%; }
#main-content, #main-content.maps-panel-open {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg-sidebar) 94%, #f8fbff);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}
.workspace-actions.workspace-toolbar-actions {
    display: flex;
    flex: 0 0 40px;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 2px 8px;
    pointer-events: auto;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
}
.main-toolbar .workspace-actions.workspace-toolbar-actions {
    position: relative;
    z-index: 2;
}
.workspace-toolbar-left { display: flex; flex: 0 1 auto; align-items: center; gap: 6px; min-width: 0; }
.workspace-toolbar-actions button { flex-shrink: 0; }
.workspace-actions.workspace-toolbar-actions .workspace-toolbar-left > button,
.workspace-actions.workspace-toolbar-actions .workspace-toolbar-left .workspace-add > button,
.workspace-actions.workspace-toolbar-actions .workspace-toolbar-utilities > button { border: 0; }
.workspace-toolbar-utilities { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; min-width: 0; }
.workspace-toolbar-actions #export-maps {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    transition: all .2s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.workspace-toolbar-actions #export-maps:hover:not(:disabled) {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.workspace-toolbar-actions #export-maps.loading { cursor: progress; opacity: 1; }
.workspace-toolbar-actions #export-maps svg { display: block; width: 18px; height: 18px; }
.workspace-toolbar-actions #export-maps .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.workspace-toolbar-actions #export-maps .export-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, .25);
    pointer-events: none;
}
.workspace-toolbar-actions #export-maps .export-progress[hidden] { display: none; }
.workspace-toolbar-actions #export-maps .export-progress-fill {
    display: block;
    width: var(--export-progress, 0%);
    height: 100%;
    background: #fff;
    transition: width .25s ease;
}
@media (prefers-reduced-motion: reduce) {
    .workspace-toolbar-actions #export-maps { transition: none; }
    .workspace-toolbar-actions #export-maps .export-progress-fill { transition: none; }
}
html[data-theme="light"] .workspace-toolbar-actions #export-maps { color: #000; }
html[data-theme="light"] .workspace-toolbar-actions #export-maps:hover:not(:disabled) {
    background: rgba(0, 0, 0, .1);
    color: #000;
}
.main-toolbar > .toolbar-divider { flex-shrink: 0; }
.workspace-toolbar-actions #workspace-project { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sorter-viewer-active .workspace-toolbar-actions { display: none; }
#workspace-project { margin-left: auto; font-size: .8rem; color: var(--text-secondary); }
#workspace-project-name {
    box-sizing: border-box; width: 140px; min-width: 70px; min-height: 36px;
    padding: 6px; border: 0; border-radius: 4px;
    background: transparent; color: var(--text-primary); font: inherit; font-size: 13px;
}
#workspace-project-name:focus-visible { outline: 2px solid var(--accent-blue); }
#workspace-clear-project {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; min-height: 36px; flex-shrink: 0; padding: 0;
}
#workspace-clear-project .workspace-clear-project-icon { display: block; width: 20px; height: 20px; }
#workspace-clear-project:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
#workspace-clear-project:disabled { opacity: .5; cursor: default; }
#confirm-delete-modal { z-index: calc(var(--layer-modal) + 100); }

#workspace-panes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    flex: 1;
    min-height: 0;
    padding: 6px 12px 12px;
    overflow: hidden;
}
@property --folder-border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
#workspace-panes > #maps-panel.folder-structure-working::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--folder-border-angle), transparent 0deg 260deg,
        var(--accent-blue) 320deg, var(--accent-purple) 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: folder-border-snake 2.4s linear infinite;
}
@keyframes folder-border-snake {
    to { --folder-border-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
    #workspace-panes > #maps-panel.folder-structure-working::after {
        animation: none;
        background: var(--accent-blue);
    }
}
body.workspace-preview-open #workspace-panes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, .9fr);
}
#sorter-workspace, #workspace-panes > #maps-panel, .workspace-preview-panel {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-sidebar);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
#sorter-workspace, #workspace-panes > #maps-panel {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    width: auto;
    max-width: none;
    height: auto;
    align-self: stretch;
    justify-self: stretch;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
#workspace-panes > #maps-panel {
    top: auto; right: auto; left: auto; transform: none; visibility: visible;
    z-index: auto; transition: none; border-left: 1px solid var(--border-color);
}
.workspace-pane-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 76px;
    height: 76px;
    min-height: 76px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}
.workspace-pane-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
}
.workspace-pane-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.workspace-pane-counts {
    margin: 2px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}
.workspace-pane-search {
    display: flex;
    align-items: center;
    min-width: 0;
    width: min(260px, 52%);
}
.source-header-controls { display: flex; flex: 1; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
#maps-panel .workspace-pane-search { flex: 1 1 100px; max-width: 260px; width: auto; }
.source-header-controls .workspace-pane-search { flex: 1 1 120px; max-width: 260px; width: auto; }
#maps-tree li[hidden] { display: none !important; }
#maps-tree.maps-search-active ul { display: block !important; }
#sorter-workspace > .workspace-pane-header { flex-basis: auto; height: auto; min-height: 76px; flex-wrap: wrap; }
#workspace-operation-area {
    max-height: 30vh;
    overflow: auto;
    pointer-events: none;
}
#workspace-operation-area:empty,
#workspace-operation-area:not(:has(> section:not([hidden]):not([data-operation-inactive]))) { display: none; }
#workspace-operation-area > section:has(> .operation-progress[hidden]) { display: none; }
#workspace-operation-area > section[data-operation-inactive] { display: none !important; }
#workspace-operation-area > section:not([hidden]):not([data-operation-inactive]) {
    position: relative; margin: 4px 12px 0; padding: 4px 8px;
    border: 1px solid var(--border-color); border-radius: 6px;
    background: var(--bg-sidebar); font-size: 12px;
    pointer-events: auto;
}
#workspace-operation-area > section > p { margin: 0; font-size: 12px; line-height: 16px; }
#workspace-operation-area > section:has(> .operation-progress:not([hidden])):not(#classification-agent-progress) {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
#workspace-operation-area > #classification-agent-progress {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
#workspace-operation-area .operation-progress:not([hidden]) {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 0 12px 4px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ededf0;
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
    pointer-events: auto;
}
#workspace-operation-area .operation-progress[hidden] { display: none !important; }
#workspace-operation-area .operation-progress::before,
#workspace-operation-area .operation-progress::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    pointer-events: none;
}
#workspace-operation-area .operation-progress::before {
    z-index: 1;
    display: none;
    background: #374151;
}
#workspace-operation-area .operation-progress:has(> progress:not([hidden]))::before { display: block; }
#workspace-operation-area .operation-progress > .operation-spinner { display: none; }
#workspace-operation-area .operation-progress > .operation-progress-detail {
    position: relative;
    z-index: 2;
    min-width: 0;
    grid-column: 1;
    overflow-wrap: anywhere;
    white-space: normal;
}
#workspace-operation-area .operation-progress > .mapping-agent-actions {
    position: relative;
    z-index: 2;
    display: flex;
    grid-column: 2;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
#workspace-operation-area .operation-progress > progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 4px;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    appearance: none;
}
#workspace-operation-area .operation-progress > progress[hidden] { display: none; }
#workspace-operation-area .operation-progress > progress::-webkit-progress-bar {
    background: transparent;
}
#workspace-operation-area .operation-progress > progress::-webkit-progress-value {
    background: rgba(123, 77, 255, .22);
    transition: width 250ms ease;
}
#workspace-operation-area .operation-progress > progress::-moz-progress-bar {
    background: rgba(123, 77, 255, .22);
    transition: width 250ms ease;
}
#workspace-operation-area .operation-progress:has(> progress:not([hidden]):not([value]))::after {
    z-index: 3;
    background: linear-gradient(90deg, rgba(123, 77, 255, .45), #7b4dff, rgba(196, 179, 255, .85), #7b4dff);
    background-size: 220% 100%;
    animation: workspace-operation-progress-flow 2.1s linear infinite;
}
#workspace-operation-area .operation-progress > progress:not([value]) {
    opacity: 0;
}
#workspace-operation-area .operation-progress[data-failed="true"]::before {
    background: #4a2a2e;
}
#workspace-operation-area .operation-progress[data-failed="true"]::after { display: none; }
#workspace-operation-area section:has(> .operation-progress:not([hidden])) > #source-status { display: none; }
html[data-theme="light"] #workspace-operation-area .operation-progress { color: #101828; }
html[data-theme="light"] #workspace-operation-area .operation-progress::before { background: #e4e7ec; }
html[data-theme="light"] #workspace-operation-area .operation-progress > progress::-webkit-progress-value {
    background: rgba(123, 77, 255, .14);
}
html[data-theme="light"] #workspace-operation-area .operation-progress > progress::-moz-progress-bar {
    background: rgba(123, 77, 255, .14);
}
html[data-theme="light"] #workspace-operation-area .operation-progress:has(> progress:not([hidden]):not([value]))::after {
    background: linear-gradient(90deg, rgba(123, 77, 255, .18), #7b4dff, rgba(123, 77, 255, .55), #7b4dff);
    background-size: 220% 100%;
}
@keyframes workspace-operation-progress-flow {
    from { background-position: 180% 0; }
    to { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    #workspace-operation-area .operation-progress::after { animation: none; }
    #workspace-operation-area .operation-progress > progress,
    #workspace-operation-area .operation-progress > progress::-webkit-progress-value,
    #workspace-operation-area .operation-progress > progress::-moz-progress-bar {
        transition: none;
    }
}
#workspace-operation-area .mapping-agent-actions .workspace-run-control,
#mapping-agent-dialog .workspace-run-control {
    appearance: none; display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; width: auto; max-width: 100%; min-width: 0;
    min-height: 28px; margin: 0; padding: 3px 9px;
    border: 1px solid var(--border-color);
    border-radius: 5px; background: transparent;
    color: var(--text-primary); font: inherit; font-size: 12px; font-weight: 500;
    line-height: 20px; white-space: normal; overflow-wrap: anywhere; cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
#workspace-operation-area .mapping-agent-actions .workspace-run-control {
    min-height: 22px;
    padding: 1px 7px;
    font-size: 11px;
    line-height: 16px;
}
#workspace-operation-area .mapping-agent-actions .workspace-run-control:hover:not(:disabled),
#mapping-agent-dialog .workspace-run-control:hover:not(:disabled) {
    background: var(--bg-hover, rgba(128, 128, 128, .15));
    border-color: var(--text-secondary);
}
#workspace-operation-area .workspace-run-control:focus-visible,
#mapping-agent-dialog .workspace-run-control:focus-visible {
    outline: 2px solid var(--accent-blue); outline-offset: 2px;
}
#workspace-operation-area .workspace-run-control:disabled,
#mapping-agent-dialog .workspace-run-control:disabled { opacity: .5; cursor: not-allowed; }
.workspace-run-control[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    .workspace-run-control { transition: none !important; }
}
#workspace-operation-area section:has(> #mapping-agent-status-progress[data-busy="true"]) > #mapping-agent-status {
    display: none;
}
#workspace-operation-area #local-classification-status { display: none; }
#source-search-input, #maps-search-input {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font: inherit;
    color: var(--text-primary);
    background: transparent;
}
#source-search-input:focus-visible, #maps-search-input:focus-visible { outline: 2px solid var(--accent-blue); }

#workspace-panes .workspace-pane-toolbar {
    box-sizing: border-box; position: static; display: flex; align-items: center;
    justify-content: flex-end; flex: 0 0 61px; height: 61px; min-height: 61px;
    padding: 8px 20px; gap: 8px; border-bottom: 1px solid var(--border-color);
}
#maps-panel .maps-inline-toolbar { opacity: 1; transform: none; pointer-events: auto; width: auto; gap: 2px; }
#maps-panel > .workspace-pane-header { flex-wrap: wrap; height: auto; flex-basis: auto; }
#maps-panel .workspace-pane-header > .maps-inline-toolbar {
    flex: 0 1 auto; height: auto; min-height: 0; padding: 0; border: 0; margin-left: auto;
}
#maps-panel .maps-inline-btn { color: var(--text-primary); }
.document-placer-icon { display: block; width: 18px; height: 18px; flex-shrink: 0; }
html.dark .document-placer-icon { filter: invert(1); }
html:not(.dark) #maps-panel .document-placer-icon { filter: none; }
#workspace-classify { display: inline-flex; align-items: center; gap: 6px; }
.workspace-toolbar-actions #workspace-classify {
    background: var(--accent-purple); border-color: var(--accent-purple); color: #fff;
}
.workspace-toolbar-actions #workspace-classify:hover:not(:disabled) {
    background: var(--accent-purple-dark); border-color: var(--accent-purple-dark);
}
.workspace-toolbar-actions #workspace-classify .document-placer-icon { filter: invert(1); }
#workspace-classify.is-running {
    border-color: var(--accent-blue);
    animation: workspace-classify-pulse 1.2s ease-in-out infinite;
}
#classification-agent-progress {
    flex-shrink: 0; max-height: 28vh; overflow: auto;
    border-radius: 8px;
    color: var(--text-primary); background: var(--bg-sidebar); font-size: 12px;
}
#classification-agent-progress > p { margin: 0 0 6px; }
#classification-agent-progress .operation-progress { margin: 0; }
#classification-agent-progress details { margin-top: 6px; }
#classification-agent-progress summary { cursor: pointer; }
@keyframes workspace-classify-pulse {
    50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-blue) 30%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
    #workspace-classify.is-running { animation: none; }
}
#maps-templates { gap: 4px; }
#maps-templates { width: auto; padding: 0 6px; }
#maps-panel .document-placer-chevron { width: 12px; height: 12px; }
#maps-panel .panel-header { display: none; }
#maps-panel .panel-content { display: flex; flex-direction: column; flex: 1; min-height: 0; height: auto; }
#maps-tree-container { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; }
#source-tree, #maps-tree-container { position: relative; }
.workspace-empty-state {
    position: absolute;
    inset: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 310px;
    padding: 24px;
    text-align: center;
    border-radius: 14px;
}
.workspace-empty-state[hidden] { display: none; }
.workspace-empty-state__content { width: 100%; max-width: 340px; }
.workspace-empty-state__content > svg { width: 160px; height: 125px; margin-bottom: 12px; }
.workspace-empty-state h3 { margin: 0 0 8px; color: var(--text-primary); font-size: 16px; font-weight: 600; }
.workspace-empty-state p { margin: 0 0 20px; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.workspace-empty-state__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid var(--accent-purple);
    border-radius: 9px;
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--accent-purple) 18%, transparent);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.workspace-empty-state__primary:hover:not(:disabled) { background: var(--accent-purple-dark); border-color: var(--accent-purple-dark); }
.workspace-empty-state__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 15px; color: var(--text-secondary); }
.workspace-empty-state__links button { border: 0; padding: 0; background: none; color: var(--accent-blue); font: inherit; font-size: 12px; cursor: pointer; }
.workspace-empty-state button:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 4px; }
.workspace-empty-state button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
@media (max-width: 600px) {
    .workspace-empty-state { inset: 10px; padding: 16px; min-height: 280px; }
    .workspace-empty-state__content > svg { width: 130px; height: 100px; }
}
:is(#source-tree, #local-results-tree) { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px; font-size: 14px; }
:is(#source-tree, #local-results-tree) summary { cursor: pointer; padding: 8px 0; font-weight: 500; }
#local-results-tree[hidden], #maps-tree-container[hidden], #maps-inline-toolbar[hidden], #export-maps[hidden] { display: none; }
.local-sorting-locked { opacity: .6; }
.local-sorting-locked::after {
    content: 'Sorting local files - view progress in Folder structure';
    position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 16px;
    background: var(--bg-sidebar); color: var(--text-primary); font-size: 12px;
}
#folder-structure-view {
    max-width: 100%; min-height: 26px; padding: 2px 6px;
    border: 1px solid var(--border-color); border-radius: 6px;
    background: var(--bg-sidebar); color: var(--text-primary); font: inherit; font-size: 12px;
}
#folder-structure-view[hidden] { display: none; }
.source-folder-children { padding-left: 20px; }
.source-file { display: flex; gap: 10px; align-items: center; min-height: 36px; }
.source-file > .pdf-name { overflow-wrap: anywhere; min-width: 0; flex: 1; }
.source-file > button { border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; min-width: 32px; min-height: 32px; }

.workspace-preview-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}
.workspace-preview-panel > * { flex-shrink: 0; }
.workspace-preview-panel[hidden] { display: none; }
.workspace-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 61px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
}
.workspace-preview-header h2 { margin: 0; font-size: 26px; line-height: 1.1; }
.workspace-preview-header-actions { display: flex; align-items: center; gap: 4px; }
#workspace-preview-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    cursor: pointer;
}
.workspace-preview-back-icon { display: block; width: 20px; height: 20px; }
.workspace-preview-file {
    padding: 10px 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}
.workspace-preview-progress {
    margin: 6px 16px 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.workspace-preview-canvas {
    margin: 8px 16px 0;
    min-height: 220px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-sidebar) 86%, #fff);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 8px;
}
.workspace-preview-canvas > canvas, .workspace-preview-canvas > img {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 340px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}
.workspace-preview-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px 6px;
}
.workspace-preview-text {
    box-sizing: border-box;
    align-self: stretch;
    width: 100%;
    max-height: 340px;
    margin: 0;
    padding: 10px 12px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
    color: var(--text-primary);
    background: var(--bg-sidebar);
    border-radius: 6px;
}
.workspace-preview-placeholder {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}
.workspace-preview-placeholder p { margin: 0; max-width: 260px; }
.workspace-preview-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 80px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-sidebar);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: .04em;
}
.workspace-preview-actions button {
    min-height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    padding: 0 10px;
    cursor: pointer;
}
#workspace-preview-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}
.workspace-preview-icon {
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: var(--preview-icon) center / contain no-repeat;
    -webkit-mask: var(--preview-icon) center / contain no-repeat;
}
.workspace-preview-section {
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
}
.workspace-preview-section h3 {
    margin: 0 0 8px;
    font-size: 14px;
}
#workspace-preview-details {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
    gap: 6px 10px;
    font-size: 13px;
}
#workspace-preview-details dt { color: var(--text-secondary); }
#workspace-preview-details dd { margin: 0; overflow-wrap: anywhere; }
#workspace-preview-location {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.workspace-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
.workspace-actions button {
    width: auto; display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 6px 10px; border: 1px solid var(--border-color);
    border-radius: 4px; background: transparent; color: var(--text-primary); font: inherit; font-size: 13px; cursor: pointer;
}
.workspace-actions svg { width: 18px; height: 18px; }
.workspace-actions svg, .workspace-actions svg [stroke] { stroke: currentColor; }
.workspace-add { position: relative; flex-shrink: 0; }
.workspace-actions #workspace-add { width: 100%; justify-content: center; }
#workspace-add-options {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 100;
    width: 340px; max-width: calc(100vw - 90px); max-height: min(440px, calc(100dvh - 110px));
    overflow: auto; padding: 8px; border: 1px solid var(--border-color);
    border-radius: 18px; background: var(--bg-sidebar); color: var(--text-primary);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
}
#workspace-add-options[hidden] { display: none; }
#workspace-source-methods { display: grid; gap: 8px; }
.workspace-source-group { padding: 8px; border: 1px solid var(--border-color); border-radius: 13px; background: transparent; }
.workspace-source-group h3 { margin: 2px 6px 8px; color: var(--text-secondary); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#workspace-add-options button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--text-primary); text-align: left; min-height: 54px; white-space: normal; }
#workspace-add-options button:hover:not(:disabled), #workspace-add-options button:focus-visible { background: var(--bg-input); }
.workspace-source-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 36px; color: var(--text-primary); }
#workspace-add-options .workspace-source-icon svg { width: 24px; height: 24px; stroke: none !important; }
#workspace-add-options .workspace-source-icon svg[fill="currentColor"] { fill: currentColor !important; }
#workspace-add-options .workspace-source-icon svg[fill="none"] { fill: none !important; }
.workspace-source-copy { display: grid; gap: 2px; min-width: 0; }
.workspace-source-copy strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.workspace-source-copy small { color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
.workspace-actions button:focus-visible, .source-file button:focus-visible, .workspace-preview-actions button:focus-visible, #workspace-preview-close:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}
#workspace-selection-count, .workspace-note { margin: 4px 16px 8px; font-size: 12px; color: var(--text-secondary); }
.operation-progress:not([hidden]) {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    gap: 8px; margin: 8px 16px 12px; padding: 10px 12px; flex-shrink: 0;
    border: 1px solid var(--border-color); border-radius: 6px; font-size: 12px;
    color: var(--text-primary); background: var(--bg-sidebar);
}
.workspace-agent-dialog .operation-progress { margin: 8px 0 16px; }
.operation-progress-detail { overflow-wrap: anywhere; grid-column: 2; }
.operation-progress progress { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--accent-blue); }
.operation-progress[data-failed="true"] { border-color: #c2410c; }
.operation-spinner {
    box-sizing: border-box; display: inline-block; width: 14px; height: 14px; flex-shrink: 0;
    border: 2px solid var(--border-color); border-top-color: var(--accent-blue);
    border-radius: 50%; animation: workspace-progress-spin .8s linear infinite;
}
.operation-spinner[hidden] { display: none; }
@keyframes workspace-progress-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .operation-spinner, .source-stage-indicator[data-busy="true"] { animation: none; }
}
.workspace-actions button:disabled { opacity: .5; cursor: default; }
.workspace-pane-loading {
    position: absolute; inset: 76px 0 0; z-index: 5;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 24px; background: var(--bg-sidebar); color: var(--text-primary);
    font-size: 14px; pointer-events: auto;
}
.workspace-pane-loading[hidden] { display: none; }
#sources-loading .mapping-tree-skeleton { inset: 24px; }
.shared-folder-icon { display: inline-flex; vertical-align: middle; flex-shrink: 0; }
:is(#source-tree, #local-results-tree) summary .shared-folder-icon { margin-right: 10px; }
#local-source-disclosure {
    box-sizing: border-box; position: fixed; inset: 0; margin: auto;
    width: min(560px, calc(100vw - 32px)); max-width: none;
    max-height: calc(100dvh - 32px); overflow: auto;
    border: 1px solid var(--border-color); border-radius: 16px;
    background: var(--bg-sidebar); color: var(--text-primary); padding: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
#local-source-disclosure::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
#local-source-disclosure .local-source-eyebrow {
    display: block; margin-bottom: 8px; color: #7c3aed;
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
html.dark #local-source-disclosure .local-source-eyebrow,
html[data-theme="dark"] #local-source-disclosure .local-source-eyebrow { color: #c4b5fd; }
#local-source-disclosure h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; }
#local-source-disclosure p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
#local-source-disclosure .local-source-notice {
    margin: 20px 0 16px; padding: 16px; border: 1px solid color-mix(in srgb, #8b5cf6 45%, var(--border-color));
    border-radius: 10px; background: color-mix(in srgb, #8b5cf6 8%, var(--bg-sidebar));
}
#local-source-disclosure h3 { margin: 0 0 10px; font-size: 14px; line-height: 1.4; font-weight: 600; }
#local-source-disclosure ul { margin: 0; padding-left: 18px; list-style: disc; font-size: 13px; line-height: 1.6; }
#local-source-disclosure li + li { margin-top: 6px; }
#local-source-disclosure .local-source-footnote { font-size: 12px; }
#local-source-disclosure[data-step="folder"] { width: min(480px, calc(100vw - 32px)); }
#local-source-disclosure[data-step="folder"] .local-source-notice,
#local-source-disclosure[data-step="folder"] .local-source-footnote { display: none; }
#local-source-disclosure[data-step="folder"] .local-source-actions { margin-top: 20px; }
#local-source-disclosure .local-source-actions {
    display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color);
}
#local-source-disclosure button {
    min-height: 42px; padding: 10px 16px; border: 1px solid var(--border-color);
    border-radius: 8px; background: transparent; color: var(--text-primary);
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
#local-source-disclosure #local-source-choose { background: #7c3aed; border-color: #7c3aed; color: #fff; }
#local-source-disclosure #local-source-choose:hover { background: #6d28d9; border-color: #6d28d9; }
#local-source-disclosure #local-source-cancel:hover { background: var(--border-color); }
#local-source-disclosure button:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }
@media (max-width: 480px) {
    #local-source-disclosure { padding: 20px; }
    #local-source-disclosure h2 { font-size: 22px; }
    #local-source-disclosure .local-source-actions button { flex: 1; }
}
.mapping-agent-header, .mapping-agent-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mapping-agent-header h2 { margin: 0; font-size: 20px; }
#mapping-agent-dialog label { display: block; margin-bottom: 8px; }
.workspace-agent-dialog { box-sizing: border-box; margin: auto; width: min(560px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 24px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-sidebar); color: var(--text-primary); }
.workspace-agent-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.workspace-agent-dialog p { font-size: 13px; line-height: 1.5; }
.workspace-agent-dialog textarea { box-sizing: border-box; width: 100%; resize: vertical; padding: 10px; background: inherit; color: inherit; border: 1px solid var(--border-color); border-radius: 4px; font: inherit; }
.workspace-agent-dialog button { min-height: 36px; padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 4px; background: transparent; color: var(--text-primary); cursor: pointer; }
.workspace-agent-dialog button:disabled { opacity: .5; cursor: default; }
.mapping-agent-actions { justify-content: flex-end; flex-wrap: wrap; }
.source-stage-indicator {
    display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; box-sizing: border-box;
    margin-left: auto; border-radius: 50%; background: #eab308;
}
.source-stage-indicator[data-state="complete"] { background: #22c55e; }
.source-stage-indicator[data-state="uploading"],
.source-stage-indicator[data-state="attention"] { background: #ef4444; }
.source-stage-indicator[data-busy="true"] { animation: source-upload-pulse 1s ease-in-out infinite alternate; }
@keyframes source-upload-pulse { to { opacity: .45; } }
:is(#source-tree, #local-results-tree) .tree-item { cursor: pointer; }
#source-tree .tree-item.selected { background: var(--bg-hover, rgba(128, 128, 128, .2)); outline: 1px solid var(--accent-blue); }
:is(#source-tree, #local-results-tree) .tree-item:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -2px; }
:is(#source-tree, #local-results-tree) summary { list-style: none; }
:is(#source-tree, #local-results-tree) summary::-webkit-details-marker { display: none; }
:is(#source-tree, #local-results-tree) .source-folder { display: flex; align-items: center; gap: 6px; }
:is(#source-tree, #local-results-tree) .source-folder > button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 4px; }
:is(#source-tree, #local-results-tree) .source-folder > .source-folder-toggle::before { content: '\25B6'; }
:is(#source-tree, #local-results-tree) .source-folder > .source-folder-toggle[data-open="true"]::before { content: '\25BC'; }
#source-tree .tree-actions-button { margin-left: auto; }
.source-native-preview { display: block; width: 100%; height: 100%; min-height: 60vh; background: white; border: 0; }
#pdf-viewer-pages-container:has(> .source-native-preview) { padding: 0; }
.source-text-preview { padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
#main-content.pdf-viewer-active #workspace-panes { display: none; }
#main-content.pdf-viewer-active > #pdf-viewer-overlay {
    position: absolute; inset: 0; z-index: 10;
}
@media (max-width: 1100px) {
    .workspace-actions.workspace-toolbar-actions { display: flex; justify-content: space-between; gap: 4px; padding: 2px 4px; }
    .workspace-toolbar-left { gap: 2px; }
    .workspace-toolbar-left > button,
    .workspace-toolbar-left .workspace-add > button,
    .workspace-toolbar-utilities > button { padding: 4px 5px; font-size: 11px; }
    .workspace-toolbar-left .document-placer-icon { width: 14px; height: 14px; }
    .workspace-toolbar-utilities { justify-content: center; }
    body.workspace-preview-open #workspace-panes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workspace-preview-panel {
        position: fixed;
        top: 76px;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: var(--layer-modal);
    }
}
@media (max-width: 950px) and (min-width: 860px) {
    .workspace-toolbar-left > button > span,
    .workspace-toolbar-left .workspace-add > button > span,
    .workspace-toolbar-utilities #workspace-new-project > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }
}
@media (max-width: 859px) {
    .valo-toolbox-link { top: calc(var(--sorter-viewport-top, 0px) + 8px); right: 12px; }
    .valo-toolbox-link img { height: 30px; }
    .main-toolbar .sw-toolbar-middle-slot {
        display: flex; position: absolute; top: 0; left: 72px; right: 158px; height: 100%;
    }
    .workspace-actions.workspace-toolbar-actions { overflow-x: auto; scrollbar-width: none; }
    .workspace-toolbar-left { flex-shrink: 0; }
    .workspace-toolbar-actions button { min-width: 0; min-height: 28px; font-size: 11px; line-height: 1.05; padding: 1px; justify-content: center; }
    .workspace-toolbar-actions #workspace-add { min-height: 28px; }
    .workspace-toolbar-actions #workspace-project { display: none; }
    #workspace-project-name { display: none; }
    .workspace-toolbar-actions #workspace-mapping-agent { width: 100%; font-size: 11px; line-height: 1.05; padding: 1px; }
    .workspace-toolbar-actions .document-placer-icon { width: 14px; height: 14px; }
    .workspace-toolbar-actions #export-maps {
        width: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        justify-content: center;
    }
    #workspace-clear-project {
        position: absolute; right: 114px; top: 50%; transform: translateY(-50%);
        width: 44px; height: 44px; min-height: 44px;
    }
    .workspace-toolbar-utilities { display: contents; }
    #workspace-panes, body.workspace-preview-open #workspace-panes { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(240px, 1fr) minmax(240px, 1fr); overflow: auto; }
    #workspace-panes > #maps-panel { border-left: 1px solid var(--border-color); }
    .workspace-preview-panel {
        position: fixed;
        top: 64px;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: var(--layer-modal);
    }
}
@media (max-width: 700px) {
    #workspace-project { width: 100%; margin-left: 0; }
    .workspace-pane-header {
        flex-wrap: nowrap;
        align-items: center;
    }
    .workspace-pane-search {
        width: 48%;
        min-width: 0;
    }
}
@media (max-width: 420px) {
    .workspace-actions.workspace-toolbar-actions { gap: 2px; padding-right: 2px; padding-left: 2px; }
    .workspace-toolbar-left > button,
    .workspace-toolbar-left .workspace-add > button,
    .workspace-toolbar-utilities > button { padding: 3px 4px; font-size: 10px; }
    .workspace-toolbar-actions #workspace-add { gap: 2px; }
    .workspace-toolbar-actions #workspace-add .document-placer-icon { width: 12px; height: 12px; }
    .workspace-toolbar-actions #workspace-rules .document-placer-icon,
    .workspace-toolbar-actions #workspace-mapping-agent .document-placer-icon,
    .workspace-toolbar-actions #workspace-new-project .document-placer-icon { display: none; }
}
@media (max-width: 360px) {
    .workspace-toolbar-actions #workspace-mapping-agent { font-size: 10px; }
}
.classification-review-dialog {
    box-sizing: border-box;
    width: min(1200px, calc(100vw - 48px));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 48px);
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 20px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 12px;
    background: var(--panel-bg, #fff);
    color: var(--text-color, #1f2937);
    overflow: auto;
}

.pdf-extraction-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--pdf-red);
    font-size: 12px;
    font-weight: 700;
}
.classification-review-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.classification-review-dialog button,
.classification-review-dialog input,
.classification-review-dialog select,
.classification-review-dialog textarea {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    font: inherit;
    color: inherit;
    background: var(--panel-bg, #fff);
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 5px;
    padding: 7px 9px;
}
.classification-review-dialog button { cursor: pointer; }
.classification-review-dialog button:disabled { opacity: .5; cursor: default; }
.classification-review-dialog :focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
.classification-review-dialog [hidden] { display: none !important; }
.classification-review-header,
.classification-review-tools,
.classification-review-footer,
.classification-review-footer > div,
.classification-review-pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.classification-review-header { align-items: flex-start; justify-content: space-between; }
.classification-review-header > div { flex: 1; min-width: 200px; }
.classification-review-header h2 { margin: 0; font-size: 20px; }
.classification-review-header p { margin: 8px 0; font-size: 13px; }
.classification-review-tools { margin: 14px 0; }
.classification-review-tools label { display: grid; gap: 4px; flex: 1; min-width: 180px; }
#classification-review-dialog[open] {
    display: flex;
    flex-direction: column;
    width: calc(100vw - 32px);
    max-width: 1920px;
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
}
#classification-review-dialog > :not(.classification-table-scroll) { flex-shrink: 0; }
.classification-table-scroll { flex: 1; min-height: 120px; overflow: auto; border: 1px solid var(--border-color, #d1d5db); border-radius: 6px; }
.classification-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.classification-table th { position: sticky; top: 0; z-index: 1; background: var(--panel-bg, #fff); text-align: left; }
.classification-table th,
.classification-table td { box-sizing: border-box; padding: 10px; border-bottom: 1px solid var(--border-color, #d1d5db); vertical-align: top; overflow-wrap: anywhere; }
.classification-table th:nth-child(1) { width: 18%; }
.classification-table th:nth-child(2) { width: 18%; }
.classification-table th:nth-child(3) { width: 20%; }
.classification-table th:nth-child(4) { width: 16%; }
.classification-table th:nth-child(5) { width: 16%; }
.classification-table th:nth-child(6) { width: 4%; }
.classification-table th:nth-child(7) { width: 8%; }
.classification-review-row label { position: relative; display: block; min-width: 0; }
.classification-review-row label > span { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.classification-review-row input:not([type="checkbox"]),
.classification-review-row select,
.classification-review-row textarea { width: 100%; font-size: 12px; }
.classification-review-row input[type="checkbox"] { width: 18px; height: 18px; }
.classification-review-row textarea { resize: vertical; min-height: 34px; }
@media (max-width: 1199px) {
    .classification-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .classification-table,
    .classification-table tbody { display: block; }
    .classification-review-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--border-color, #d1d5db); }
    .classification-review-row td { min-width: 0; border-bottom: 0; }
    .classification-review-row td:first-child,
    .classification-review-row td:last-child { grid-column: 1 / -1; }
    .classification-review-row td::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
}
@media (max-width: 600px) {
    .classification-review-row { grid-template-columns: minmax(0, 1fr); }
}
.classification-review-row h3 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.classification-review-original { margin: 5px 0 0; font-size: 12px; opacity: .8; overflow-wrap: anywhere; }
.classification-review-destinations { margin: 5px 0 0; font-size: 11px; opacity: .8; overflow-wrap: anywhere; }
#classification-review-error,
.classification-review-file-error { color: #b91c1c; overflow-wrap: anywhere; }
.classification-review-footer { border-top: 1px solid var(--border-color, #d1d5db); padding-top: 12px; margin-top: 12px; justify-content: space-between; }
.classification-review-footer p { margin: 0; font-size: 12px; flex: 1; min-width: 180px; }
.classification-review-pagination { justify-content: center; padding: 8px; }
#classification-review-confirm { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.dark .classification-review-dialog { background: #202024; color: #f3f4f6; border-color: #45454b; }
.dark .classification-table th { background: #202024; }
.dark .classification-review-dialog input,
.dark .classification-review-dialog select,
.dark .classification-review-dialog textarea,
.dark .classification-review-dialog button:not(#classification-review-confirm) { background: #29292e; border-color: #55555d; }
.dark #classification-review-error,
.dark .classification-review-file-error { color: #fca5a5; }
@media (max-width: 600px) {
    .classification-review-dialog { padding: 12px; }
    .classification-review-footer > div { width: 100%; min-width: 0; }
    .classification-review-footer button { flex: 1 1 100px; white-space: normal; }
}
.source-skip-notice {
    margin: 8px 0;
    padding: 8px;
    overflow-wrap: anywhere;
}
#classification-review-scope {
    width: min(460px, calc(100vw - 32px));
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
}
#classification-review-scope .classification-review-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
}
#classification-review-scope h2 { font-size: 18px; line-height: 1.35; }
#classification-scope-close { flex-shrink: 0; font-size: 13px; }
#classification-scope-description {
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 1.6;
    opacity: .75;
}
.classification-review-dialog .classification-filename-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.classification-review-dialog .classification-filename-toggle input {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    accent-color: #7c3aed;
}
#classification-filename-description {
    margin: 10px 0 20px;
    font-size: 13px;
    line-height: 1.6;
}
#classification-review-scope .classification-review-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
}
#classification-review-scope .classification-review-tools button {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .15s ease;
}
#classification-review-scope .classification-review-tools button:hover { border-color: #7c3aed; }
@media (max-width: 400px) {
    #classification-review-scope { padding: 20px; }
    #classification-review-scope .classification-review-tools { grid-template-columns: 1fr; }
}
.source-skip-notice summary { cursor: pointer; }
.source-skip-notice ul { max-height: 180px; overflow-y: auto; }
