/* Keyboard-first transcription desk. The original source keeps 60% of the desktop workspace. */
:root{
 --app-header-height:52px;
 --ink:#27272a;--muted:#5f6268;--bg:#fafaf9;--surface:#fff;
 --line:#e3e3e0;--subtle:#f7f7f6;
 --red:#a91f35;--red-hover:#8a172b;--red-soft:#fdf0f3;
 --desk-focus:#9d233b;--desk-focus-halo:#a91f3524;
 --green:#276750;--green-bg:#edf6f1;
}
.app-header{height:var(--app-header-height);padding:0 18px;gap:18px;background:#fff;border-bottom-color:#e3e3e0}
.brand{font-size:17px;gap:8px;min-width:0;letter-spacing:-.025em}
.brand .icon{width:22px;height:24px}
.brand-short{display:none}.brand-full{line-height:1.4}
.language-switch button{font-size:12px;padding:6px}
.account-menu{padding-left:14px}
.account-menu>summary{font-size:12px;gap:7px}
.top-nav button{font-size:12px;padding:7px 10px}
.workspace.page{padding:0 16px;max-width:none;display:flex;flex-direction:column;height:calc(100dvh - var(--app-header-height));overflow:hidden}
.workspace-heading{display:flex;flex:none;align-items:center;justify-content:flex-start;gap:12px;height:40px;min-height:40px;margin:0;padding:0 2px}
.workspace-heading .back-link{font-size:12px;margin:0;gap:5px;padding:5px 0;color:#586572}
.workspace-heading .back-link .icon{width:15px;height:15px}
.workspace-heading h1{font-size:17px;line-height:1.4;letter-spacing:-.02em;margin:0;font-weight:650}
.workspace-heading>.status{font-size:10px;padding:2px 7px}
.workspace-columns{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px;flex:1;min-height:0;max-height:none;height:auto}
.source-pane,.entry-pane{min-width:0;min-height:0;height:100%;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;border-color:#d4dce3;box-shadow:0 1px 3px #1d2a3810}
.source-toolbar{height:44px;min-height:44px;padding:6px 11px;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:8px;background:#26313b;color:white;border-bottom-color:#26313b}
.source-title{display:flex;align-items:center;gap:7px;white-space:nowrap;color:inherit;font-size:12px;line-height:1.5;font-weight:550;margin:0}
.source-title .icon{width:15px;height:15px;color:#d2dce5}
.source-tools{display:flex;align-items:center;gap:3px;flex-shrink:0}
.source-tools .icon-btn{width:27px;height:28px;color:white}
.source-tools .icon-btn:hover:not(:disabled){background:#465462;color:white}
.source-page-label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;color:#dce5ed;margin:0}
.source-page-picker{font-size:11px;min-width:43px;min-height:28px;padding:2px 3px;background:#35434f;color:white;border:1px solid #758492;border-radius:4px}
.source-page-picker option{background:white;color:var(--ink)}
.source-fit-button{font-size:11px;color:#fff;padding:5px;margin-left:2px}
.zoom-control{display:inline-flex}.source-tools .zoom-value{font-size:11px;min-width:33px}
.source-tools .tool-divider{margin:0 4px;background:#64727e}
.source-scroll{flex:1;min-height:0;overflow:auto;background:#dce2e7;padding:14px;overscroll-behavior:contain;scrollbar-gutter:stable}
.pdf-page-stage{display:block;min-width:0;max-width:none;flex-shrink:0;box-shadow:0 2px 9px #19232d20}
.pdf-page-image{display:block;width:100%;height:auto;max-width:none;background:#fff}
.source-file-caption{min-height:28px;padding:5px 10px;font-size:10px;line-height:1.7;flex:none;background:#f7f9fa;border-top:1px solid #e2e7ec}
.source-file-caption a{display:flex;align-items:center;gap:5px;color:#5d6a77;min-width:0}
.source-file-caption .icon{width:12px;height:12px}
.source-file-caption a span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.entry-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:53px;flex:none;padding:7px 14px;border-bottom:1px solid #dce3e9;background:#fff}
.entry-toolbar>label,.entry-identity{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);min-width:0}
.entry-identity{flex:1;flex-wrap:wrap;gap:3px 9px}
.form-type-value{font-size:12px;font-weight:650;color:var(--ink);line-height:1.5}
.form-details{margin-top:18px;border-top:1px solid #dce3e9}
.form-details>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:12px 0;color:#526879;font-size:12px;list-style:none}
.form-details>summary::-webkit-details-marker{display:none}
.form-details[open]>summary>.icon{transform:rotate(180deg)}
.form-details-fields{padding:0 0 12px;max-width:520px}
.form-details-fields .field>span{font-size:11px;font-weight:600;color:#526879}
.entry-mode-label{font-size:10px;font-weight:700;line-height:1.5;letter-spacing:.1em;text-transform:uppercase;color:var(--red)}
.entry-toolbar label{min-width:0;display:flex;align-items:center;gap:8px;font-size:11px}
.entry-toolbar select{padding:5px 23px 5px 8px;max-width:240px;min-width:0;min-height:31px;border:1px solid #cbd4dd;border-radius:5px;background:#f8fafb;color:var(--ink);font-size:13px;font-weight:600}
.entry-toolbar .record-reference{display:inline;font-size:10px;white-space:nowrap;color:#6b7885;margin:0;max-width:none;font-variant-numeric:tabular-nums}
.entry-toolbar .btn-text,.entry-toolbar .keyboard-help-toggle{font-size:11px;white-space:nowrap;gap:5px;color:#566575;flex-shrink:0}
.entry-toolbar .icon{width:15px;height:15px}
.entry-scroll{padding:14px;flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-top:14px;scroll-padding-bottom:65px;scrollbar-gutter:stable}
.entry-context-strip{display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap;font-size:11px;line-height:1.65;color:#6a7784;padding:0 0 10px;overflow-wrap:anywhere}
.entry-context-strip strong{font-weight:650;color:#263543}
.entry-context-strip .icon{width:12px;height:12px;color:#8a96a1}
.entry-context-strip>span{min-width:0}
.context-details .entry-context-strip{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:0;min-width:0}
.context-details .entry-context-strip strong{font-size:14px;line-height:1.7}
.context-details .entry-context-strip small{font-size:10px;color:#7b8996;font-weight:450;line-height:1.7}
.context-edit-label{display:inline-flex;align-items:center;gap:5px;color:var(--red);font-size:10px;white-space:nowrap;font-weight:550}
.entry-progress-strip{display:flex;gap:6px;margin:0 0 12px;flex-wrap:wrap}
.step-chip{display:inline-flex;align-items:center;gap:6px;border-radius:4px;padding:3px 7px;background:#f4f6f8;color:#6b7885;font-size:10px;line-height:1.65;font-weight:550}
.step-chip.is-current{color:#902138;background:#faeaf0}
.context-details{padding:0 0 12px;margin:0 0 14px;border-bottom:1px solid #e2e7ed}
.context-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:650;line-height:1.65;list-style:none;min-height:29px}
.context-details>summary>span{min-width:0;overflow-wrap:anywhere}
.context-details>summary .icon{width:14px;height:14px;color:#778593}
.context-details[open]>summary .icon{transform:rotate(180deg)}
.context-details>summary:focus-visible{outline-offset:3px;border-radius:3px}
.context-fields{padding-top:10px}
.form-grid{gap:11px 12px}
.field{font-size:12px;font-weight:550;gap:5px;line-height:1.6;color:#52606e;min-width:0}
.field input,.field select,.field textarea{font-size:15px;font-weight:450;min-height:39px;padding:7px 10px;line-height:1.55;border:1px solid #bdc8d3;border-radius:5px;color:#1c2b38;background:white;min-width:0;max-width:100%;transition:border-color .12s,box-shadow .12s}
.field input::placeholder,.search-field input::placeholder{color:#8a95a0;opacity:1;font-size:13px;font-weight:400}
.field input:hover:not(:disabled),.field select:hover:not(:disabled){border-color:#8193a4}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid var(--desk-focus);outline-offset:1px;box-shadow:0 0 0 4px var(--desk-focus-halo)}
.field:focus-within{color:#842237}
.field input:disabled,.field select:disabled{color:#5e6b77;background:#f3f6f8;border-color:#d6dfe7}
.field-error{font-size:11px;font-weight:500;color:#a21b35;line-height:1.6;margin:0;display:block}
.field input[aria-invalid=true],.field select[aria-invalid=true],.field textarea[aria-invalid=true],.search-field[aria-invalid=true]{border-color:#b32d46;background:#fff8f9}
.entry-validation-summary{border:1px solid #e6b7c1;background:#fff5f7;color:#892338;border-radius:6px;padding:9px 11px;margin:0 0 12px;font-size:12px;line-height:1.7}
.entry-validation-summary strong{font-size:12px}
.entry-validation-summary p{margin:0}
.entry-validation-summary ul{margin:5px 0 0;padding-left:19px}
.entry-section-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 12px;min-width:0}
.entry-section-heading h2,.summary-entry h2{font-size:15px;font-weight:700;line-height:1.6;margin:0;color:#253443;letter-spacing:-.01em}
.entry-section-heading>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.entry-section-heading .btn-text{font-size:11px;gap:4px;flex-shrink:0;max-width:44%;text-align:right;justify-content:flex-end}
.entry-section-heading .btn-text .icon{width:13px;height:13px}
.row-entry{min-width:0}
.active-entry-panel{padding:13px 12px 12px;border:1px solid #d5dce4;border-top:3px solid var(--red);border-radius:7px;background:#fbfcfd;box-shadow:0 2px 5px #1b2b3a08}
.row-number{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:27px;border-radius:6px;padding:0 6px;background:var(--red);color:#fff;font-size:12px;font-weight:700;flex-shrink:0;font-variant-numeric:tabular-nums}
.row-state{font-size:10px;font-weight:500;line-height:1.5;background:#edf1f5;color:#62717e;border-radius:4px;padding:2px 6px;white-space:nowrap}
.row-state.is-saved{background:#e9f3ee;color:#326650}
.entry-section-heading>.row-identity{flex-wrap:nowrap;gap:7px;flex:1;min-width:0}
.row-identity h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.row-identity .row-state{flex-shrink:0}
.row-fields .unit-field{grid-column:1/-1}
.row-fields:has(.branch-field:not(.field-full)) .unit-field{grid-column:auto}
.row-fields .branch-field{min-width:0}
.row-entry>.booth-fields{margin-top:11px}
.row-fields .booth-fields,.booth-fields{grid-column:1/-1;display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1.6fr);gap:12px;min-width:0}
.row-fields .booth-fields>.field:first-child input,.booth-fields>.field:first-child input{font-variant-numeric:tabular-nums}
.optional-branch-toggle{display:inline-flex;align-items:center;gap:6px;padding:1px 0;font-size:11px;font-weight:550;color:#687787;background:transparent;line-height:1.7;grid-column:1/-1;text-align:left;justify-self:start}
.optional-branch-toggle .icon{width:13px;height:13px}
.optional-branch-toggle:hover{color:var(--red)}
.branch-field{min-width:0}
.street-input-zone{padding-top:12px;margin-top:13px;border-top:1px solid #dfe5eb;min-width:0;position:relative}
.street-section-heading{margin:0 0 8px;gap:10px;display:flex;align-items:center;justify-content:space-between}
.street-section-heading h2{font-size:13px;font-weight:700;margin:0;color:#354453}
.street-section-heading>span{font-size:10px;color:#697887;font-variant-numeric:tabular-nums}
.street-add-line{display:flex;gap:7px;margin:0 0 6px;align-items:stretch}
.street-add-line .search-field{flex:1;min-width:0;min-height:40px;padding:0 10px;border-color:#bdc8d3;border-radius:5px;background:white}
.street-add-line .search-field input{font-size:15px;line-height:1.65;padding:7px 0;font-weight:450;color:#1c2b38}
.street-add-line .search-field:focus-within{outline:2px solid var(--desk-focus);outline-offset:1px;box-shadow:0 0 0 4px var(--desk-focus-halo)}
.street-add-line .search-field input:focus-visible{box-shadow:none;outline:none}
.street-add-line .search-field>.icon{width:16px;height:16px;color:#82909d}
.street-add-line .btn{min-height:40px;font-size:12px;padding:6px 12px;border-radius:5px;border-color:#bcc8d3;background:#fff;font-weight:650}
.street-add-line .btn .icon{width:14px;height:14px}
.typing-hint{display:flex;align-items:center;gap:4px 6px;flex-wrap:wrap;font-size:10px;color:#72808e;line-height:1.75;margin:0 0 10px}
.typing-hint kbd,.shortcut-key,.shortcut-list kbd,.street-add-line kbd,.street-inline-editor kbd{display:inline-flex;align-items:center;justify-content:center;font-family:inherit;font-size:10px;font-weight:600;line-height:1.5;white-space:nowrap;background:#f1f4f7;border:1px solid #d1dae3;border-bottom-width:2px;border-radius:4px;padding:0 4px;min-height:19px;color:#586776}
#street-suggestions,.reference-results{display:flex;flex-direction:column;gap:0;border:1px solid #c2cdd8;border-radius:6px;margin:6px 0 9px;max-height:184px;overflow:auto;background:#fff;box-shadow:0 3px 10px #21324612;scrollbar-gutter:stable}
#street-suggestions:empty{display:none}
.street-suggestion{display:flex;align-items:center;gap:9px;padding:9px 10px;min-height:42px;font-size:13px;text-align:left;line-height:1.7;background:#fff;border-bottom:1px solid #e7ebef;color:#263746}
.street-suggestion:last-child{border-bottom:0}
.street-suggestion>span{min-width:0;overflow-wrap:anywhere;flex:1}
.street-suggestion[aria-selected=true]{background:#fbedf1;box-shadow:inset 3px 0 var(--red);color:#831d32}
.street-suggestion:hover{background:#f3f6f8}
.street-suggestion[aria-selected=true]:hover{background:#fbedf1}
.street-suggestion small,.street-suggestion-caption{display:block;font-size:10px;color:#778491;line-height:1.6}
.street-suggestion>small{margin-left:auto;white-space:nowrap}
.reference-results>label{display:flex;gap:8px;padding:8px;font-size:12px;align-items:center;border-bottom:1px solid #e5eaf0}
.reference-results small{margin-left:auto;color:var(--muted);font-size:10px}
.street-table-wrap{max-height:200px;border-radius:5px;scroll-padding-top:31px;margin-top:8px;border-color:#d7dfe7;background:#fff}
.entered-streets{table-layout:fixed;min-width:0}
.entered-streets thead{background:#eef2f6;color:#60707f;position:sticky;top:0;z-index:1}
.entered-streets th,.entered-streets th:first-child{width:auto;font-size:10px;font-weight:650;padding:7px 8px;text-align:left;border-bottom:1px solid #d7dfe7}
.entered-streets th:nth-child(2){width:88px;text-align:right}
.entered-streets th:nth-child(3){width:63px}
.entered-streets td,.entered-streets td:first-child{padding:8px;font-size:12px;border-color:#e7ebef}
.entered-streets td:last-child{padding:4px}
.entered-streets tr:focus-within{background:#fff8fa}
.entered-streets tbody tr:not(.assigned-row):hover{background:#f7f9fb}
.entered-streets .street-name{font-size:14px;line-height:1.7;color:#253644;cursor:default}
.entered-streets td small{color:#85919c;font-size:10px;margin-top:1px}
.street-row-title{display:flex;align-items:baseline;gap:7px;min-width:0}
.street-index{font-size:10px;color:#8e9caa;min-width:14px;font-variant-numeric:tabular-nums;flex-shrink:0}
.entered-streets button.street-name{padding:0;background:transparent;text-align:left;cursor:pointer;min-width:0;max-width:100%;border-radius:2px}
.entered-streets button.street-name:hover{color:var(--red);text-decoration:underline;text-underline-offset:3px}
.entered-streets .street-row-title+small{padding-left:21px}
.entered-streets .street-order{font-size:10px;color:#97a2ac;margin-right:6px;font-variant-numeric:tabular-nums}
.entered-streets .unavailable{font-size:10px;line-height:1.5;color:#7a8794}
.entered-streets .icon-btn{width:25px;height:27px;color:#748391;border-radius:4px}
.entered-streets .icon-btn:hover{color:var(--red);background:#faedf1}
.entered-streets .icon-btn .icon{width:14px;height:14px}
.street-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:1px}
.street-inline-editor{display:flex;gap:7px;align-items:center;min-width:0;width:100%;flex-wrap:wrap}
.street-inline-editor>.field{flex-basis:100%}
.street-inline-editor input{width:100%;min-width:0;border:1px solid #a7b6c5;border-radius:4px;min-height:33px;padding:4px 6px;font-size:14px;line-height:1.7;color:#243443}
.street-inline-editor .btn,.street-inline-editor .btn-text{min-height:27px;font-size:10px;padding:4px 6px}
.entry-empty{margin:0;padding:17px 12px;text-align:center;font-size:12px;line-height:1.8;color:#81909c;background:#fff}
.entry-empty strong{display:block;font-size:12px;font-weight:550;color:#637483}
.row-entry-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px;padding-top:10px;border-top:1px solid #e0e6ec}
.row-entry-actions .btn{min-height:38px;font-size:12px;padding:8px 11px;border-radius:5px;font-weight:650;gap:7px}
.row-entry-actions .btn-primary{box-shadow:0 1px 2px #54112018}
.row-entry-actions .icon{width:14px;height:14px}
.row-entry-actions .btn-primary .shortcut-key{color:#ffe8ee;background:#ffffff15;border-color:#ffffff5c;font-size:9px;min-height:18px;padding:0 3px}
.undo-strip{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:8px 0;padding:7px 9px;background:#eef5f8;border:1px solid #d5e3eb;border-radius:5px;color:#456275;font-size:11px;line-height:1.65}
.undo-strip .btn-text{font-size:11px;white-space:nowrap;color:#345e78;padding:2px 0}
.supporting-details{margin-top:16px;padding-top:12px;border-color:#e0e6ed}
.supporting-details>summary{font-size:11px;color:#778594;line-height:1.7}
.supporting-details .form-grid{padding-top:12px}
.saved-rows,.rows-ledger{margin-top:14px;padding:0;border:1px solid #dae2e9;background:#fff;border-radius:6px;overflow:hidden}
.saved-rows>summary,.rows-ledger>summary{cursor:pointer;font-size:11px;font-weight:650;line-height:1.8;color:#5c6b79;padding:9px 10px;background:#f5f7f9}
.rows-ledger>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none}
.rows-ledger .ledger-help{font-size:10px;color:#8795a2;font-weight:450}
.saved-rows>div{display:flex;flex-direction:column;margin-top:0;gap:0}
.saved-rows button{padding:9px 10px;display:flex;align-items:center;gap:9px;text-align:left;background:#fff;border:0;border-top:1px solid #e4e9ee;font-size:12px;margin:0;border-radius:0;line-height:1.7}
.saved-rows button:hover{background:#f6f8fa}
.saved-rows button.active{background:#fdf1f4;border-color:#edd5dc;box-shadow:inset 3px 0 var(--red)}
.saved-rows button>span{flex:1;min-width:0;overflow-wrap:anywhere}
.saved-rows button>.ledger-row-number{flex:0 0 25px;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;color:#8795a2}
.saved-rows button.active>.ledger-row-number{color:var(--red)}
.saved-rows button>.ledger-name{flex:1}
.saved-rows button>.ledger-name small{display:block;margin:0;font-size:10px;font-weight:450}
.saved-rows button>.ledger-state{flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.saved-rows button small{font-size:10px;color:#7a8896;line-height:1.6}
.saved-rows button .icon{width:13px;height:13px;color:#8795a2}
.saved-rows button.active .icon{color:var(--red)}
.keyboard-help{margin:0 0 13px;border:1px solid #d5dfe8;background:#f5f8fb;border-radius:6px;padding:9px 11px;color:#526475;font-size:11px}
.keyboard-help>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-weight:650;list-style:none}
.keyboard-help h2{font-size:13px;margin-bottom:9px}
.shortcut-list{display:grid;grid-template-columns:1fr auto;gap:7px 12px;align-items:center;padding-top:9px;font-size:11px;line-height:1.65}
.shortcut-list>div{display:flex;align-items:center;justify-content:space-between;gap:9px}
.shortcut-list dt,.shortcut-list dd{margin:0}
.shortcut-list kbd{font-family:inherit;justify-self:start}
.skip-entry{position:fixed;z-index:90;top:6px;left:16px;transform:translateY(-160%);padding:9px 13px;background:#fff;color:var(--red);border:2px solid var(--red);border-radius:5px;font-size:12px;font-weight:650;box-shadow:0 2px 8px #19232d20}
.skip-entry:focus{transform:translateY(0)}
.summary-entry h2{margin-bottom:11px}
.summary-row{border:1px solid #d6dfe8;border-radius:6px;padding:12px;margin:0 0 13px;min-width:0;background:#fbfcfd;transition:border-color .12s}
.summary-row:focus-within,.summary-row.is-current{border-color:#b8546a;box-shadow:inset 3px 0 #a91f35;background:#fffcfd}
.summary-row legend{font-size:11px;font-weight:650;padding:0 5px;color:#637483;line-height:1.7}
.summary-row-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:10px}
.summary-row-heading h3{font-size:13px;margin:0}
.summary-row .form-grid{gap:10px 12px}
.summary-row .summary-counts{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.summary-row .row-entry-actions{margin-top:10px}
.summary-actions{flex-wrap:wrap}
.summary-actions .btn:first-child{margin-right:auto}
.workspace-footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:7px 0 8px;flex-wrap:nowrap;background:var(--bg)}
.selection-total{display:flex;align-items:center;gap:5px 9px;max-width:none;font-size:11px;line-height:1.6;flex-wrap:wrap;color:#5e6e7d}
.selection-total strong{font-size:13px;font-weight:700;color:#263847}
.selection-total .footer-divider{height:16px;margin:0;background:#cbd5de}
.compact-count-flag{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#7b6b54}
.compact-count-flag .icon{width:13px;height:13px}
.compact-count-flag.flag-within{color:var(--green)}
.footer-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.footer-actions .btn{min-height:33px;font-size:12px;padding:7px 11px;border-radius:5px}
.footer-actions .btn .icon{width:14px;height:14px}
.save-indicator{display:flex;font-size:10px;margin-right:4px;max-width:132px;gap:4px;line-height:1.5;color:#47725d}
.save-indicator .icon{width:12px;height:12px;min-width:12px}
.save-indicator[data-failed=true]{color:#a21b35;font-weight:650}
.review-panel .row{margin-top:10px}
.review-panel .btn{font-size:11px;padding:7px 9px;min-height:33px}
html[lang=ta] .brand{font-size:16px}
html[lang=ta] .workspace-heading h1{font-size:16px;line-height:1.65;letter-spacing:0}
html[lang=ta] .field{font-size:12px;line-height:1.85}
html[lang=ta] .field input,html[lang=ta] .field select,html[lang=ta] .field textarea{font-size:14px;line-height:1.8}
html[lang=ta] .source-toolbar{flex-wrap:nowrap}
html[lang=ta] .source-title{font-size:12px}
html[lang=ta] .entry-mode-label{letter-spacing:0;font-size:10px}
html[lang=ta] .entry-section-heading h2{font-size:14px;line-height:1.8;letter-spacing:0}
html[lang=ta] .entry-toolbar select{font-size:12px;line-height:1.8}
html[lang=ta] .street-add-line .search-field input{font-size:14px;line-height:1.85}
html[lang=ta] .street-add-line .btn{font-size:12px;line-height:1.8}
html[lang=ta] .entered-streets .street-name{font-size:14px;line-height:1.85}
html[lang=ta] .entered-streets th:nth-child(3){width:63px}
html[lang=ta] .row-entry-actions .btn{font-size:11px;line-height:1.8}
html[lang=ta] .footer-actions .btn{font-size:11px}
html[lang=ta] .save-indicator{display:flex;max-width:135px}
html[lang=ta] .selection-total{max-width:none}
@media(max-width:1200px){
 .brand-full{display:none}.brand-short{display:inline}
 .app-header{padding:0 14px;gap:14px}
 .workspace.page{padding:0 12px}
 .workspace-columns{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:10px}
 .entry-scroll{padding:12px}
 .active-entry-panel{padding:12px 10px 10px}
 .form-grid{gap:10px}
 .field{font-size:11px}
 .field input,.field select{padding:7px 8px;font-size:14px}
 .source-toolbar{padding:5px 9px}
 .source-tools{gap:1px}
 .source-title{font-size:11px}
 .source-scroll{padding:10px}
 .entry-toolbar{padding:7px 11px;gap:7px}
 .entry-toolbar>label{font-size:10px;gap:6px}
 .entry-toolbar select{max-width:195px;font-size:12px}
 .entry-toolbar .record-reference{font-size:10px}
 .entry-section-heading .btn-text{font-size:10px}
 .entered-streets th:nth-child(2){width:77px}
 .footer-actions .btn{font-size:11px;padding:7px 9px}
 .save-indicator,html[lang=ta] .save-indicator{display:flex;max-width:115px;font-size:10px}
 .typing-hint{font-size:10px}
 .row-entry-actions .btn{font-size:11px;gap:6px;padding:8px 9px}
 .row-entry-actions .btn-primary .shortcut-key{font-size:9px}
}
@media(min-width:851px) and (max-height:780px){
 .entry-toolbar{min-height:47px;padding-top:5px;padding-bottom:5px}
 .entry-scroll{padding-top:11px;padding-bottom:11px}
 .entry-context-strip{padding-bottom:7px}
 .context-details{margin-bottom:11px;padding-bottom:10px}
 .active-entry-panel{padding-top:11px}
 .entry-section-heading{margin-bottom:10px}
 .street-table-wrap{max-height:154px}
 .row-entry-actions{margin-top:10px;padding-top:9px}
 .supporting-details{margin-top:12px;padding-top:10px}
 .saved-rows{margin-top:11px}
}
@media(max-width:850px){
 :root{--app-header-height:52px}
 .app-header{height:var(--app-header-height);gap:10px;padding:0 12px}
 .brand{font-size:15px}
 .account-menu>summary>span{display:none}.top-nav{display:none}
 .account-menu{padding-left:9px}
 .workspace.page{padding:0 10px}
 .workspace-heading{height:38px;min-height:38px;gap:9px}
 .workspace-heading h1{font-size:16px;max-width:none}
 .mobile-pane-tabs{display:flex;flex:none;gap:0;margin:0 0 8px;padding:2px;min-height:34px;border-color:#cdd7e0;background:#e4eaf0}
 .mobile-pane-tabs button{padding:5px;font-size:12px}
 .mobile-pane-tabs button.active{box-shadow:0 1px 3px #1b2a3914}
 .workspace-columns{display:block;flex:1;min-height:0;height:auto}
 .workspace-columns[data-pane=entry]>.source-pane,.workspace-columns[data-pane=source]>.entry-pane{display:none}
 .source-pane,.entry-pane{height:100%}
 .entry-scroll{padding:13px}
 .source-title{font-size:12px}
 .source-toolbar{min-height:44px;height:auto;flex-wrap:nowrap}
 .entry-toolbar select{max-width:235px;font-size:13px}
 .entry-toolbar>label{font-size:11px}
 .entry-toolbar .record-reference{font-size:10px}
 .field{font-size:12px}
 .field input,.field select{font-size:15px}
 .active-entry-panel{padding:13px 12px 12px}
 .entry-section-heading .btn-text{font-size:11px}
 .street-add-line .search-field input{font-size:15px}
 .workspace-footer{min-height:68px;padding:6px 0 8px;gap:7px}
 .selection-total{font-size:11px;max-width:42%;gap:3px 7px;line-height:1.5}
 .selection-total .footer-divider{display:none}
 .compact-count-flag{font-size:10px}
 .footer-actions{width:auto;display:grid;grid-template-columns:auto auto;gap:4px 6px}
 .footer-actions .save-indicator{grid-column:1/-1;justify-self:end;margin:0;max-width:none;display:flex;font-size:10px}
 .footer-actions .btn{font-size:11px;padding:7px 9px;min-height:32px}
 .row-entry-actions .btn{font-size:12px}
 html[lang=ta] .workspace-heading h1{font-size:15px;max-width:none}
 html[lang=ta] .selection-total{max-width:42%}
 html[lang=ta] .source-title{font-size:12px}
 html[lang=ta] .save-indicator{max-width:none;display:flex}
}
@media(max-width:480px){
 .app-header{gap:8px}
 .brand,.brand-short{font-size:13px;white-space:normal;line-height:1.35}
 .brand{flex:1}
 .brand .icon{width:18px;height:20px;min-width:18px}
 .header-spacer{display:none}
 .language-switch{gap:1px}.language-switch button{font-size:11px;padding:6px 3px}
 .account-menu{padding-left:7px}.account-menu>summary{gap:3px}
 .account-menu>summary>.icon:first-child{width:19px}.account-menu .chevron{width:9px}
 .workspace-heading h1{font-size:15px;max-width:none}
 .workspace-heading .back-link{font-size:11px}.workspace-heading>.status{font-size:9px}
 .entry-scroll{padding:11px}
 .entry-toolbar{padding:7px 10px}
 .entry-toolbar select{max-width:191px;font-size:12px}
 .entry-toolbar .btn-text,.entry-toolbar .keyboard-help-toggle{font-size:10px}
 .entry-mode-label{font-size:9px}
 .entry-context-strip{font-size:10px}
 .entry-progress-strip{gap:4px}.step-chip{font-size:9px;padding:3px 5px}
 .source-title{font-size:11px}
 .source-tools .icon-btn{width:23px}
 .source-page-label{font-size:10px;gap:3px}
 .source-fit-button{font-size:10px;margin:0}
 .source-tools .tool-divider{margin:0 2px}
 .source-scroll{padding:7px}.source-file-caption{font-size:9px}
 .active-entry-panel{padding:12px 10px 10px}
 .entry-section-heading{gap:7px}
 .entry-section-heading h2{font-size:14px}
 .entry-section-heading .btn-text{font-size:10px;max-width:41%}
 .row-number{min-width:25px;height:25px;font-size:11px}
 .row-state{font-size:9px}
 .row-fields .booth-fields,.booth-fields{grid-template-columns:minmax(76px,.65fr) minmax(0,1.5fr);gap:10px}
 .field input,.field select{font-size:14px;padding:7px 8px}
 .street-add-line .search-field input{font-size:14px}
 .street-add-line .btn{padding:6px 9px}
 .entered-streets .street-name{font-size:13px}
 .entered-streets th:nth-child(2){width:70px}
 .entered-streets th:nth-child(3),html[lang=ta] .entered-streets th:nth-child(3){width:60px}
 .entered-streets .icon-btn{width:24px}
 .row-entry-actions{gap:7px}
 .row-entry-actions .btn{font-size:11px;padding:8px 9px;gap:5px;min-height:37px}
 .row-entry-actions .btn-primary .shortcut-key{font-size:8px;min-height:17px}
 .saved-rows button{gap:7px;font-size:11px}
 .saved-rows button small{font-size:9px;max-width:34%}
 .saved-rows button>.ledger-name small{max-width:none}
 .summary-row{padding:11px 10px}
 .shortcut-list{font-size:10px;gap:6px 8px}
 .workspace-footer{min-height:68px;flex-wrap:nowrap}
 .footer-actions .btn{min-height:31px;padding:6px 8px;font-size:10px;flex:none;max-width:115px}
 .selection-total{font-size:10px;max-width:40%}
 .selection-total strong{font-size:12px}
 .compact-count-flag{font-size:9px;line-height:1.5}
 .save-indicator{font-size:9px}
 html[lang=ta] .brand,html[lang=ta] .brand-short{font-size:12px}
 html[lang=ta] .workspace-heading h1{font-size:14px;max-width:none}
 html[lang=ta] .entry-toolbar select{font-size:11px;max-width:175px}
 html[lang=ta] .field{font-size:11px}
 html[lang=ta] .field input,html[lang=ta] .field select{font-size:14px}
 html[lang=ta] .row-entry-actions .btn{font-size:10px}
 html[lang=ta] .entered-streets .street-name{font-size:13px}
 html[lang=ta] .footer-actions .btn{font-size:10px;max-width:114px}
 html[lang=ta] .selection-total{max-width:40%}
 html[lang=ta] .save-indicator{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.field input,.field select,.field textarea,.summary-row{transition:none}}

/* Source packets and entries remain separate: the source always keeps 60%. */
.source-packet-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;flex:none;padding:7px 10px;border-bottom:1px solid #dce3e9;background:#fff}
.source-packet-bar>label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;color:#627180;min-width:0;flex:none}
.source-packet-bar select{min-height:30px;min-width:0;flex:1;width:100%;padding:4px 7px;font-size:12px;border:1px solid #c5d0da;border-radius:4px;background:#f8fafb;color:var(--ink)}
.source-packet-bar .source-open-packet{min-height:30px;padding:4px 10px;font-size:11px;line-height:1.6;white-space:nowrap;border-radius:4px}
.source-packet-bar .source-open-packet:focus-visible{outline:2px solid var(--desk-focus);outline-offset:2px;box-shadow:0 0 0 4px var(--desk-focus-halo)}
.source-v3-bar{display:flex;align-items:center;gap:10px;justify-content:space-between;flex:none;padding:8px 11px;background:#f7fafc;border-bottom:1px solid #dce3e9}
.source-v3-bar>span:first-child{display:flex;flex-direction:column;min-width:0;gap:1px}
.source-v3-bar strong{font-size:11px;color:#364b5f;font-weight:650;line-height:1.7}
.source-v3-bar small{font-size:9px;color:#7d8a97;line-height:1.7}
.source-v3-bar .btn{font-size:10px;padding:4px 9px;min-height:29px;white-space:nowrap}
.source-current-label{font-size:10px;font-weight:550;color:#637a88;background:#eaf1f5;border-radius:4px;padding:3px 7px;white-space:nowrap}
.other-source-documents{flex:none;min-height:0;max-height:260px;overflow:auto;background:#fff;border-bottom:1px solid #dce3e9;scrollbar-gutter:stable}
.other-source-documents>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;padding:7px 11px;font-size:10px;line-height:1.8;color:#6e7f8e;list-style:revert}
.other-source-documents>summary>span{font-size:9px;color:#8a97a2}
.other-source-documents .source-sections{border-bottom:0;max-height:none;overflow:visible}
.other-source-documents .source-packet-bar{border-top:1px solid #e1e7ec}
.summary-type-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding-top:4px}
.summary-type-counts h3{grid-column:1/-1;margin:0;font-size:11px;line-height:1.7;color:#5e7283;font-weight:600}
.reference-search-status{font-size:10px;line-height:1.8;color:#738493;margin:4px 0 5px}
.street-suggestion{cursor:pointer;margin:0}
.street-suggestion>input[type=checkbox]{flex:none;width:16px;height:16px;min-height:0;margin:0;accent-color:var(--red)}
.street-suggestion>input:focus-visible{outline:2px solid var(--desk-focus);outline-offset:3px;box-shadow:0 0 0 4px var(--desk-focus-halo)}
.street-suggestion>span>strong{font-size:12px;font-weight:550;display:block;line-height:1.8}
.street-suggestion:focus-within{box-shadow:inset 3px 0 var(--desk-focus);background:#eff6fd}
.street-suggestion.is-checked{background:#f9eff2}
.street-suggestion>.match-voters{flex:none;text-align:right;padding-left:8px;font-variant-numeric:tabular-nums}
.street-suggestion>.match-voters>strong{font-size:12px;font-weight:650;color:#425f75}
.street-suggestion>.match-voters>small{font-size:9px}
.reference-scope-badge{display:inline-flex;padding:1px 5px;font-size:9px;line-height:1.7;color:#7d633d;background:#f8f0e4;border:1px solid #eadcc7;border-radius:3px;margin:2px 0}
.reference-coverage-note{font-size:9px;line-height:1.8;color:#7e8c98;margin:7px 0 0}
.entered-streets th:nth-child(2){max-width:110px;white-space:normal;line-height:1.7}
.street-suggestion[data-highlighted=true]{background:#edf4fb;box-shadow:inset 3px 0 #4c7eaa;color:#294c6b}
.street-suggestion[aria-selected=true]{background:#f9eff2;box-shadow:inset 3px 0 var(--red);color:#6d2637}
.unmatched-source-button{font-size:10px;line-height:1.8;padding:3px 0;color:#7c6e58;max-width:100%;text-align:left;justify-content:flex-start}
.unmatched-source-button[hidden]{display:none!important}
.source-reference-notice{flex:none;display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10px;line-height:1.8;color:#5b7082;background:#eef5f9;border-bottom:1px solid #d4e2ec;padding:7px 11px}
.source-reference-notice>span{flex:1 1 250px;min-width:0}
.source-reference-notice .btn-text{font-size:10px;line-height:1.8;padding:0;text-align:left;white-space:nowrap}
.source-sections{flex:none;min-height:0;max-height:200px;overflow:auto;background:#f7f9fb;border-bottom:1px solid #d6dfe7;scrollbar-gutter:stable}
.source-sections>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 11px;font-size:11px;font-weight:600;color:#475a6b;cursor:pointer;list-style:none;position:sticky;top:0;background:#f7f9fb;z-index:2}
.source-sections .source-progress{font-size:10px;font-weight:450;color:#728291;white-space:nowrap}
.source-section-list{display:flex;flex-direction:column;padding:0 7px 6px;gap:3px}
.source-section-item{display:flex;flex-direction:column;align-items:stretch;gap:4px;border:1px solid transparent;border-radius:5px;background:#fff}
.source-section-item.active{border-color:#d9a2b0;background:#fff4f7;box-shadow:inset 3px 0 var(--red)}
.source-section-button{display:flex;align-items:center;gap:8px;padding:7px 9px;background:transparent;min-width:0;text-align:left;color:#34495b;font-size:11px;line-height:1.6;border-radius:4px}
.source-section-button>span{min-width:0;flex:1}.source-section-button strong{display:block;font-weight:600;overflow-wrap:anywhere}
.source-section-button small{font-size:10px;color:#798996;display:block}
.source-section-button>.icon{width:13px;height:13px;flex:none;color:#84929e}
.source-section-status{font-size:9px;line-height:1.6;padding:2px 5px;border-radius:3px;background:#eef2f6;color:#667889;white-space:nowrap}
.source-section-button>.source-section-status{flex:none;max-width:45%;white-space:normal;text-align:right}
.source-section-item.active .source-section-status{background:#f7e2e9;color:#90283e}
.source-duplicate-note,.source-progress-note{grid-column:1/-1;font-size:10px;line-height:1.7;margin:0;padding:0 9px 7px;color:#7e684b}
.source-progress-note{color:#6e8090;padding:0 11px 7px}
.source-tools .source-rotate-button{font-size:10px;color:#f3f7fb;white-space:nowrap}
.source-page-rotation{flex:none;display:block;position:relative;margin:auto;max-width:none;background:white}
.source-page-rotation .pdf-page-stage{margin:0;position:absolute;top:50%;left:50%;transform-origin:center}
.active-parent-context{display:flex;align-items:center;gap:5px 7px;flex-wrap:wrap;position:sticky;top:-14px;z-index:3;margin:-13px -12px 12px;padding:7px 11px;background:#f4f7fa;border-bottom:1px solid #dce4eb;border-radius:5px 5px 0 0;font-size:10px;line-height:1.7;color:#6a7b8a;overflow-wrap:anywhere;box-shadow:0 2px 3px #1a2e3f06}
.active-parent-context>strong{color:#913047;font-weight:650}
.active-parent-context>span[aria-hidden]{color:#a0aeb9}
.booth-identifiers{display:flex;gap:4px;align-items:center;flex-wrap:wrap;margin:6px 0 0;min-width:0}
.booth-identifiers:empty{display:none}
.identifier-chip{font-size:10px;line-height:1.7;font-variant-numeric:tabular-nums;padding:1px 5px;border:1px solid #d5dfe7;border-radius:3px;background:#f0f5f8;color:#506c80}
.booth-identifiers>small{font-size:10px;color:#8f6246;line-height:1.65}
.shared-booth-note{margin:5px 0 0;font-size:10px;line-height:1.7;color:#536f7f}
.booth-reference-details,.entry-details,.paper-totals-details{margin:9px 0 0;min-width:0;border:1px solid #dce4eb;background:#fff;border-radius:5px;padding:0 9px}
.booth-reference-details>summary,.entry-details>summary,.paper-totals-details>summary{cursor:pointer;font-size:10px;line-height:1.8;font-weight:550;color:#6b7d8e;padding:7px 0;list-style:revert}
.booth-reference-details .panel-caption{margin-bottom:8px}
.compact-row-tools{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding:1px 0 8px}
.compact-row-tools .btn-text{font-size:10px;text-align:left;line-height:1.75;justify-content:flex-start;min-height:25px;padding:2px 0;color:#655870}
.entry-details>.field{margin:0 0 8px}
.entry-details>.field>input{font-size:13px;min-height:34px}
.entry-provenance{font-size:10px;line-height:1.8;color:#6c7f90;margin:6px 0 8px;overflow-wrap:anywhere}
.source-ref-links{display:flex;flex-direction:column;gap:4px;margin:7px 0 9px;min-width:0}
.source-ref-link{display:flex;align-items:center;gap:6px;min-width:0;padding:5px 7px;text-align:left;font-size:10px;line-height:1.8;background:#f1f6f9;color:#516e83;border:1px solid #d8e3eb;border-radius:4px}
.source-ref-link>span{min-width:0;flex:1;overflow-wrap:anywhere}.source-ref-link>.icon{width:12px;height:12px;flex:none;color:#7a92a4}
.source-ref-link:hover{border-color:#bdcfdc;background:#eaf2f7}
.summary-row .source-ref-links{margin-bottom:0}
.source-boundary-warning{display:flex;align-items:center;gap:7px 10px;flex-wrap:wrap;flex:none;padding:8px 12px;border-bottom:1px solid #e4d2b1;background:#fff7e9;color:#886839;font-size:10px;line-height:1.8}
.source-boundary-warning>span{flex:1 1 220px;min-width:0}
.source-boundary-warning>.btn-text{flex:none;font-size:10px;line-height:1.8;color:#805721;font-weight:600;padding:2px 0;text-align:left;justify-content:flex-start}
.street-add-line .search-field{align-items:flex-start}
.street-add-line .search-field>.icon{margin-top:12px;flex:none}
.street-add-line .search-field textarea{width:100%;flex:1;min-width:0;max-width:100%;min-height:65px;max-height:210px;padding:8px 0;font-size:15px;font-family:inherit;font-weight:450;line-height:1.65;resize:vertical;color:#1c2b38;background:transparent;border:0;outline:none;box-shadow:none}
.street-add-line .search-field textarea:focus-visible{outline:none;box-shadow:none}
.street-add-line .search-field textarea::placeholder{font-size:13px;line-height:1.7;color:#8a95a0;opacity:1}
.street-add-line .btn{align-self:stretch;flex-direction:column;gap:3px;padding-left:10px;padding-right:10px}
.street-inline-editor textarea{width:100%;min-width:0;max-width:100%;resize:vertical;min-height:64px;border:1px solid #a7b6c5;border-radius:4px;padding:5px 7px;font-size:14px;line-height:1.7;color:#243443;font-family:inherit}
.entered-streets .street-name{white-space:pre-wrap;overflow-wrap:anywhere}
.field-mark{display:inline-flex;align-items:center;gap:6px;justify-self:start;align-self:flex-start;color:#8b6743;background:#fbf4e8;border:1px solid #edddc2;font-size:10px;font-weight:500;line-height:1.6;border-radius:3px;padding:2px 5px;max-width:100%;overflow-wrap:anywhere}
.field-mark-not-applicable{color:#6c7b87;background:#f1f4f6;border-color:#dbe2e8}
.ledger-review-mark{display:block;font-size:9px;color:#926a39}
.rows-ledger .ledger-source{font-size:9px;line-height:1.7;color:#8b97a2;overflow-wrap:anywhere}
.paper-totals-details{margin-top:13px;background:#f8fafb}
.paper-totals-details>summary{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11px;font-weight:600;list-style:none}
.paper-totals-details>summary .icon{width:13px;height:13px;color:#83909c}
.paper-totals-details[open]>summary .icon{transform:rotate(180deg)}
.paper-totals-details>.form-grid{margin:10px 0}
.paper-totals-details>.btn-text{font-size:10px;margin-bottom:9px;text-align:left;justify-content:flex-start}
.entry-decision-panel{border:1px solid #c6d4e1;border-top:3px solid #536f86;background:#f8fbfd;border-radius:6px;padding:12px;margin:0 0 14px;min-width:0;scroll-margin-top:12px;font-size:12px;line-height:1.75;color:#536879}
.entry-decision-panel:focus{outline:2px solid var(--desk-focus);outline-offset:2px}
.entry-decision-panel h2{font-size:14px;line-height:1.8;margin:0 0 5px;color:#2e4659;font-weight:650}
.entry-decision-panel h3{font-size:11px;line-height:1.8;font-weight:650;color:#5b6f7e;margin:0 0 6px}
.entry-decision-panel p{margin:4px 0 9px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.panel-heading>.btn-text{font-size:10px;color:#6c7b88;align-self:flex-start;margin-top:3px}
.panel-caption{font-size:10px;line-height:1.8;color:#758591;margin:4px 0 9px;overflow-wrap:anywhere}
.entry-decision-panel .field{font-size:11px}
.entry-decision-panel .field select,.entry-decision-panel .field input,.entry-decision-panel .field textarea{font-size:13px;min-height:35px;padding:6px 8px}
.entry-decision-panel .form-grid{margin-top:10px;gap:9px}
.panel-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px}
.panel-actions .btn{font-size:11px;min-height:34px;padding:6px 9px;line-height:1.7}
.panel-actions .icon{width:13px;height:13px}
#context-change-panel{background:#fff9ef;border-color:#e4c595;border-top-color:#b98b44;color:#7b674d}
#context-change-panel h2{color:#866234}
.review-queue{margin-top:12px;padding-top:10px;border-top:1px solid #dce5ed}
.review-queue-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:8px;background:#fff;border:1px solid #dce4eb;border-radius:4px;margin:0 0 5px;text-align:left;line-height:1.7;color:#765b38;font-size:10px}
.review-queue-item>span{min-width:0;flex:1;overflow-wrap:anywhere}
.review-queue-item strong,.review-queue-item small{display:block}
.review-queue-item strong{font-size:11px;color:#475e70;font-weight:600}
.review-queue-item small{font-size:10px;color:#81909c}
.review-queue-item>.icon{width:13px;height:13px;flex:none;color:#8d9caa}
.review-count{display:inline-flex;justify-content:center;align-items:center;padding:0 4px;background:#f6e5ce;color:#926b3c;border-radius:3px;font-size:9px;min-width:15px;font-variant-numeric:tabular-nums}
.review-draft-caption{font-size:10px;line-height:1.8;color:#526f86;background:#edf4f9;border:1px solid #d5e3ee;border-radius:4px;padding:6px 8px}
.reconcile-table-wrap{max-width:100%;overflow:auto;margin:10px 0}
.reconcile-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff;border:1px solid #dbe4eb}
.reconcile-table th,.reconcile-table td{padding:7px 6px;font-size:10px;line-height:1.7;border-bottom:1px solid #e2e8ee;text-align:right;overflow-wrap:anywhere;vertical-align:top}
.reconcile-table thead th{font-size:9px;background:#edf3f7;color:#657d90;font-weight:600}
.reconcile-table th:first-child{text-align:left;width:29%;font-weight:550}
.reconcile-table tbody th{color:#4c6578}
.reconcile-table .has-difference td{color:#9a6231;background:#fff9ee}
.reconcile-table .small-status{font-size:9px;color:#8f795d}
.finish-review-note{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:#eef6f2;border:1px solid #d8e8de;border-radius:4px;color:#48705b;font-size:10px;line-height:1.8}
.finish-review-note.has-questions{color:#8c6b3c;background:#fff8eb;border-color:#eadac0}
.finish-review-note>strong{font-weight:550}
.finish-review-note>.btn-text{font-size:10px;white-space:nowrap;color:inherit}
.source-check-field{display:flex;align-items:flex-start;gap:8px;padding:10px 0 0;font-size:11px;font-weight:500;line-height:1.8;color:#3f5b70;cursor:pointer}
.source-check-field>input{margin:4px 0 0;flex:none;accent-color:var(--red)}
html[lang=ta] .active-parent-context{font-size:10px;line-height:1.9}
html[lang=ta] .source-section-button{line-height:1.85}
html[lang=ta] .street-add-line .search-field textarea{font-size:14px;line-height:1.9}
html[lang=ta] .source-packet-bar select{font-size:11px;line-height:1.8}
html[lang=ta] .panel-actions .btn{font-size:10px}
html[lang=ta] .reconcile-table th,html[lang=ta] .reconcile-table td{font-size:9px;line-height:1.9}
@media(max-width:1200px){
 .active-parent-context{margin:-12px -10px 11px;top:-12px;padding:6px 9px}
 .entry-toolbar .review-fields-button{font-size:10px}
 .entry-toolbar .shortcuts-button{font-size:10px}
 .entry-toolbar{gap:7px}
 .street-add-line .search-field textarea{font-size:14px}
 .source-packet-bar{padding:6px 9px}
 .source-sections{max-height:183px}
}
@media(min-width:851px) and (max-height:780px){.active-parent-context{top:-11px}.source-sections{max-height:156px}.source-sections>summary{padding-top:5px;padding-bottom:5px}}
@media(max-width:850px){.active-parent-context{top:-13px;margin:-13px -12px 12px;padding:7px 11px}.source-sections{max-height:200px}.entry-decision-panel{padding:11px}}
@media(max-width:480px){
 .active-parent-context{top:-11px;margin:-12px -10px 11px;padding:6px 9px;font-size:9px}
 .source-packet-bar>label{font-size:10px;gap:6px}.source-packet-bar select{font-size:11px}
 .entry-toolbar select{max-width:162px}.entry-toolbar .shortcuts-button{font-size:9px;gap:3px}.entry-toolbar .shortcuts-button>.icon{display:none}
 .entry-toolbar .review-fields-button{font-size:10px}.entry-toolbar{gap:6px}
 .source-section-status{font-size:8px}.source-section-button{font-size:10px}
 .entry-decision-panel{padding:10px}.panel-actions .btn{font-size:10px}
 .reconcile-table th,.reconcile-table td{padding:6px 4px;font-size:9px}
 .source-check-field{font-size:10px}.compact-row-tools{gap:5px 9px}
 html[lang=ta] .entry-toolbar select{max-width:143px}
 html[lang=ta] .entry-toolbar .shortcuts-button{font-size:8px}
}

/* The operator follows the printed form: header, rows, then names at the end. */
.header-paper-totals{padding-top:10px;margin-top:1px;border-top:1px solid #e1e7ed;min-width:0}
.header-paper-totals h3,.officials-entry h2{margin:0;color:#344858;font-size:12px;line-height:1.8;font-weight:650}
.header-paper-totals>.panel-caption{margin:3px 0 10px}
.header-paper-totals>.form-grid{gap:10px 12px}
.officials-entry{margin:16px 0 0;padding:13px 0 2px;border-top:1px solid #dbe3eb;min-width:0}
.officials-entry>.form-grid{margin-top:10px}
.entry-scroll .field{position:relative;padding-bottom:15px}
.entry-scroll .field>label{font-size:inherit;font-weight:inherit;line-height:inherit;margin:0}
.field-unclear{font-size:9px;line-height:1.6;min-height:15px;padding:0;background:none;color:#8a6671;border:0;border-radius:2px;position:absolute;right:0;bottom:-1px;text-align:right;opacity:0;transition:opacity .1s;white-space:normal;max-width:100%}
.field:focus-within>.field-unclear,.field:hover>.field-unclear,.field-unclear:focus-visible{opacity:1}
.field-unclear:hover{color:var(--red);text-decoration:underline;text-underline-offset:2px}
.street-input-zone>.field-unclear{position:static;display:block;margin:0 0 4px auto;opacity:1}
.reuse-booth-numbers{font-size:10px;line-height:1.8;text-align:left;justify-content:flex-start;color:#786174;padding:4px 0;margin-top:2px;max-width:100%}
.row-secondary-actions{margin-top:11px;padding-top:7px;border-top:1px solid #e1e7ed;display:flex;justify-content:flex-start}
.row-secondary-actions>.btn-text{font-size:11px;line-height:1.8;text-align:left;justify-content:flex-start;color:#6e5261;padding:2px 0}
.shared-booth-note>.btn-text{font-size:10px;line-height:1.7;padding:0;background:none;color:#8b5d31}
.rows-ledger .ledger-item{display:flex;flex-direction:column;min-width:0}
.rows-ledger .ledger-item>button{width:100%}
.row-corrections{margin:0;padding:0 11px 5px;background:#fcf7f8;border-top:1px solid #eee0e4;min-width:0}
.row-corrections>summary{font-size:10px;line-height:1.8;color:#846775;cursor:pointer;padding:5px 0}
.row-corrections .correction-actions{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding-bottom:5px}
.rows-ledger .row-corrections button{border:0;border-radius:3px;padding:4px 0;font-size:10px;line-height:1.8;text-align:left;justify-content:flex-start;background:none;color:#83526a;min-width:0}
.rows-ledger .row-corrections button:hover{background:#f7edf1;color:#8e2944}

/* Source navigation opens over the PDF instead of taking several permanent rows. */
.source-toolbar{position:relative;z-index:12;overflow:visible}
.source-title{min-width:0;flex:1;font-size:11px}
.source-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.source-document-options{flex:none;position:static;font-size:10px;line-height:1.7;color:#edf3f8}
.source-document-options>summary{display:flex;align-items:center;gap:4px;list-style:none;cursor:pointer;border:1px solid #ffffff38;border-radius:4px;padding:4px 6px;white-space:nowrap}
.source-document-options>summary::-webkit-details-marker{display:none}
.source-document-options>summary>.icon{width:12px;height:12px;flex:none}
.source-document-options[open]>summary{background:#445464;border-color:#ffffff6b}
.source-document-options[open]>summary>.icon{transform:rotate(180deg)}
.source-options-popover{position:absolute;top:calc(100% + 1px);right:8px;width:min(440px,calc(100% - 16px));max-height:min(62vh,520px);overflow:auto;overscroll-behavior:contain;padding:10px;background:#fff;color:#536879;border:1px solid #cdd9e3;border-radius:0 0 7px 7px;box-shadow:0 8px 22px #21364b25;z-index:20;white-space:normal;scrollbar-gutter:stable}
.source-option-current{padding:0 1px 9px;border-bottom:1px solid #e1e7ed;overflow-wrap:anywhere}
.source-option-current>strong{font-size:11px;color:#314d61;display:block;font-weight:650}
.source-option-current>small{font-size:10px;color:#7b8d9b;display:block;margin-top:2px}
.source-option-group{padding-top:9px}
.source-option-group h3{font-size:11px;line-height:1.8;font-weight:650;margin:0 0 5px;color:#526b7e}
.source-option-group .source-section-list{padding:0;gap:4px}
.source-option-group .source-section-button{font-size:11px;padding:6px}
.source-option-group select{font-size:11px;padding:5px 6px;min-width:0;max-width:100%;width:100%;background:#fff;border:1px solid #bfcdd9;border-radius:4px;color:#3d576b}
.source-option-group .source-packet-bar{display:flex;padding:0;background:none;border:0;gap:6px;align-items:flex-start}
.source-option-group .source-packet-bar>label{min-width:0;flex:1;display:flex;flex-direction:column;align-items:stretch;gap:4px}
.source-option-group .source-packet-bar>.btn-text{align-self:flex-end;margin-bottom:4px}
.source-template-link{margin:7px 0 0;font-size:10px;line-height:1.8;text-align:left;justify-content:flex-start}
.source-continue-button{font-size:10px;padding:3px 5px;line-height:1.8;white-space:nowrap;border:1px solid #ffffff47;border-radius:4px;background:#ffffff0c;color:#f4f8fb}
.source-continue-button:hover{background:#ffffff20}
.source-continue-button>.icon{width:12px;height:12px}
@media(hover:none){.field-unclear{opacity:1}}
@media(min-width:851px) and (max-width:1150px){
 .source-toolbar{flex-wrap:wrap;height:auto;min-height:44px;gap:4px 6px}
 .source-title{flex:1}.source-tools{margin-left:auto}
 .source-document-options{font-size:9px}.source-document-options>summary{padding:3px 5px}
}
@media(max-width:850px){
 .source-toolbar{flex-wrap:wrap;height:auto;min-height:44px;gap:4px 6px}
 .source-tools{margin-left:auto}
 .source-document-options>summary{font-size:9px;padding:3px 5px}
}
html[lang=ta] .field-unclear{font-size:8px;line-height:1.8}

/* Saved hierarchy choices remain native text inputs so keyboard search and Tamil
   composition work without replacing the focused input on every keystroke. */
.hierarchy-input-shell{position:relative;display:flex;align-items:stretch;min-width:0}
.hierarchy-input-shell>input{width:100%;flex:1;padding-right:34px}
.hierarchy-toggle{display:flex;align-items:center;justify-content:center;position:absolute;right:1px;top:1px;bottom:1px;width:31px;border:0;border-left:1px solid #e2e7ed;border-radius:0 4px 4px 0;background:#f7f9fb;color:#607184;font-size:18px;line-height:1;cursor:pointer}
.hierarchy-toggle:hover:not(:disabled){background:#edf2f6;color:var(--red)}
.hierarchy-toggle:disabled{cursor:default;opacity:.55}
.hierarchy-field-hint{font-size:10px;font-weight:400;line-height:1.5;color:#748191}
.hierarchy-options{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:35;max-height:235px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #aab8c6;border-radius:5px;background:#fff;box-shadow:0 6px 18px #26364824;padding:4px}
.hierarchy-options[hidden]{display:none}
.hierarchy-option{display:flex;flex-direction:column;align-items:stretch;width:100%;border:1px solid transparent;border-radius:3px;background:#fff;color:#253443;text-align:left;padding:8px 9px;font-size:13px;font-weight:400;line-height:1.6;min-width:0;cursor:pointer;overflow-wrap:anywhere}
.hierarchy-option+.hierarchy-option{margin-top:2px}
.hierarchy-option-title{display:flex;align-items:center;gap:7px;min-width:0;justify-content:space-between}
.hierarchy-option-title strong{font-weight:600}
.hierarchy-option>small{font-size:10px;color:#6b7a89;line-height:1.6;margin-top:1px}
.hierarchy-option:hover,.hierarchy-option.is-highlighted,.hierarchy-option[data-highlighted=true]{background:#fbeef1;border-color:#e8c4cd;color:#8b2036}
.hierarchy-option[aria-selected=true]{background:#eef5f1}
.hierarchy-current{font-size:9px;white-space:nowrap;color:#326650;font-weight:500}
.hierarchy-add-option{border-top-color:#e0e6ec;margin-top:4px!important;padding-top:9px;color:#942139}
.hierarchy-add-option .hierarchy-option-title{justify-content:flex-start}
.hierarchy-add-sign{font-size:17px;font-weight:500;line-height:1}
.hierarchy-empty{padding:9px;color:#6c7b89;font-size:11px;line-height:1.7;font-weight:400}
html[lang=ta] .hierarchy-field-hint{font-size:9px;line-height:1.8}
html[lang=ta] .hierarchy-option{font-size:12px;line-height:1.9}
html[lang=ta] .source-document-options>summary{font-size:9px}
html[lang=ta] .source-continue-button{font-size:9px}

/* Physical paper uses the same fields, with the reading space on the desk. */
.workspace.manual-workspace:not(.has-source-reference){width:100%;max-width:1120px;margin-inline:auto}
.workspace-columns.manual-entry-columns{grid-template-columns:minmax(0,1fr)}
.manual-entry-columns .entry-scroll{padding:18px 22px}
.manual-entry-columns .active-entry-panel{padding:15px 17px}
.physical-paper-bar{display:flex;align-items:center;gap:12px;flex:none;padding:8px 14px;border-bottom:1px solid #dce3e9;background:#f7f9fb;flex-wrap:wrap}
.physical-paper-label{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:#526879;white-space:nowrap}
.physical-paper-label .icon{width:15px;height:15px}
.paper-reference-field{display:flex;align-items:center;gap:8px;min-width:180px;flex:1;font-size:10px;color:#6c7d8b}
.paper-reference-field>span{white-space:nowrap}
.paper-reference-field>input{min-width:70px;width:100%;padding:5px 7px;min-height:30px;font-size:12px;line-height:1.5;background:#fff;border:1px solid #bdc8d3;border-radius:4px}
.paper-reference-field>input:focus-visible{outline:2px solid var(--desk-focus);outline-offset:1px}
.physical-paper-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.physical-paper-actions .btn-text{display:inline-flex;gap:5px;font-size:10px;line-height:1.7}
.physical-paper-actions .icon{width:13px;height:13px}
.physical-source-reference{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.8;color:#71808e;overflow-wrap:anywhere}
.physical-source-reference .icon{width:12px;height:12px}
.has-source-reference .physical-paper-bar{gap:6px 10px;padding:7px 12px}
.has-source-reference .paper-reference-field{flex-basis:100%;order:3}
.has-source-reference .physical-paper-actions{margin-left:auto;gap:8px}
.has-source-reference .physical-paper-label{font-size:10px}

/* New forms begin with the source the operator will actually read. */
.new-form-overlay{position:fixed;z-index:1000;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#15233180;backdrop-filter:blur(2px)}
.new-form-dialog{width:min(620px,100%);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;padding:22px;border:1px solid #d7e0e8;border-radius:11px;background:#fff;box-shadow:0 18px 70px #10213245;color:var(--ink)}
.new-form-dialog:focus{outline:none}
.new-form-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.new-form-heading h2{margin:0;font-size:21px;font-weight:700;letter-spacing:-.025em;line-height:1.5}
.new-form-heading .icon-btn{width:30px;height:30px;color:#6c7b89}
.new-form-description{margin:7px 0 16px;color:#697987;font-size:13px;line-height:1.8}
.new-form-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.new-form-mode{display:flex;align-items:flex-start;gap:10px;text-align:left;border:1px solid #cbd6df;border-radius:7px;padding:13px;background:#fff;color:#344a5c;min-width:0;min-height:118px}
.new-form-mode>.icon{margin-top:2px;width:20px;height:20px;color:#657d8f}
.new-form-mode>span:not(.new-form-mode-check){min-width:0;flex:1}
.new-form-mode strong{display:block;font-size:14px;font-weight:650;line-height:1.65}
.new-form-mode small{display:block;margin-top:4px;color:#758492;font-size:11px;font-weight:400;line-height:1.7}
.new-form-mode:hover:not(:disabled){border-color:#9f5667;background:#fffafb}
.new-form-mode.is-selected{border-color:var(--red);background:#fff6f8;box-shadow:inset 0 0 0 1px var(--red)}
.new-form-mode.is-selected>.icon,.new-form-mode.is-selected strong{color:#8e2238}
.new-form-mode-check{width:16px;height:19px;flex-shrink:0;color:var(--red)}
.new-form-mode-check .icon{width:16px;height:18px}
.new-form-mode:focus-visible,.new-form-actions button:focus-visible{outline:2px solid var(--desk-focus);outline-offset:3px;box-shadow:0 0 0 5px var(--desk-focus-halo)}
.new-form-type,.new-form-reference{margin-bottom:14px}
.new-form-type select{max-width:none}
.new-form-upload{margin-top:14px;padding:13px;background:#f5f8fa;border:1px solid #dce4eb;border-radius:6px}
.new-form-upload input[type=file]{background:#fff;min-height:40px;font-size:12px;padding:6px;cursor:pointer}
.new-form-upload input[type=file]::file-selector-button{font:inherit;padding:5px 8px;background:#edf2f6;border:1px solid #c5d1db;border-radius:3px;margin-right:9px;color:#405b70;cursor:pointer}
.new-form-upload-help{margin:6px 0 0;color:#738493;font-size:11px;line-height:1.8}
.new-form-file-ready{display:flex;align-items:flex-start;gap:7px;margin-top:13px;color:#326550;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.new-form-file-ready>.icon{width:16px;height:16px;margin-top:2px}
.new-form-file-ready small{display:block;color:#6b7d8b;font-size:10px}
.new-form-page-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;border:0;margin:13px 0 0;padding:0;min-width:0}
.new-form-page-range legend{font-size:11px;font-weight:600;color:#5e7283;margin-bottom:7px;padding:0;line-height:1.8}
.new-form-page-range .field{font-size:11px}
.new-form-page-range input{font-size:14px;min-height:35px}
.new-form-progress{margin:12px 0 0;font-size:12px;color:#527086;line-height:1.8}
.new-form-error{margin:13px 0 0;padding:9px 11px;border:1px solid #edc5cf;border-radius:5px;background:#fff2f5;color:#9b2840;font-size:12px;line-height:1.8}
.new-form-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:17px;margin-top:16px;border-top:1px solid #e0e6ec}
.new-form-actions .btn{font-size:12px;min-height:37px;padding:8px 13px;gap:7px}
html[lang=ta] .new-form-heading h2{font-size:19px;letter-spacing:0;line-height:1.8}
html[lang=ta] .new-form-mode strong{font-size:12px;line-height:1.9}
html[lang=ta] .new-form-mode small{font-size:10px;line-height:1.9}
html[lang=ta] .physical-paper-label{font-size:10px}
html[lang=ta] .paper-reference-field{font-size:9px}
html[lang=ta] .physical-paper-actions .btn-text{font-size:9px}
@media(max-width:850px){
 .manual-entry-columns .entry-scroll{padding:14px}
 .manual-entry-columns .active-entry-panel{padding:13px}
 .physical-paper-bar{gap:7px 10px;padding:7px 12px}
 .paper-reference-field{flex-basis:100%;order:3}
 .physical-paper-actions{margin-left:auto;gap:9px}
}
@media(max-width:520px){
 .new-form-overlay{padding:10px}
 .new-form-dialog{padding:17px;max-height:calc(100dvh - 20px)}
 .new-form-modes{grid-template-columns:minmax(0,1fr);gap:8px}
 .new-form-mode{min-height:0;padding:11px}
 .new-form-heading h2{font-size:19px}
 .new-form-description{font-size:12px}
 .physical-paper-bar{padding:7px 10px}
 .paper-reference-field{align-items:flex-start;flex-direction:column;gap:3px}
 .physical-paper-label{flex-basis:100%}
 .physical-paper-actions{margin-left:0}
}

/* A reading session can contain several registration types. */
.entry-toolbar .entry-type-select{flex:1;gap:7px;min-width:0;margin:0}
.entry-type-select>.form-type-label{flex:none;white-space:nowrap}
.entry-toolbar .entry-type-select select{width:100%;max-width:220px}
.entry-toolbar .next-form-button{color:var(--red);font-weight:600}
.entry-toolbar .next-form-button .icon{width:13px;height:13px}
.choose-form-type{max-width:430px;padding:38px 16px;margin:24px auto;text-align:center;color:#657989}
.choose-form-type>.icon{width:31px;height:34px;margin:0 auto 12px;color:#9b3247}
.choose-form-type h2{font-size:17px;font-weight:650;line-height:1.7;color:#2d4253;margin:0 0 8px}
.choose-form-type p{font-size:13px;line-height:1.9;margin:0}
.source-range-details{flex:none;border-bottom:1px solid #dce3e9;background:#f7f9fb}
.source-range-details>summary{display:flex;align-items:center;gap:8px;padding:8px 14px;font-size:11px;font-weight:600;color:#536a7c;line-height:1.7;list-style:none;cursor:pointer}
.source-range-details>summary::-webkit-details-marker{display:none}
.source-range-details>summary>small{font-size:10px;font-weight:450;margin-left:auto;color:#7a3445}
.source-range-details>summary>.icon{height:13px;width:13px}
.source-range-details[open]>summary>.icon{transform:rotate(180deg)}
.source-range-content{padding:0 14px 10px}
.source-range-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end}
.source-range-fields .field{font-size:10px;gap:3px}
.source-range-fields .field input{font-size:13px;min-height:32px;padding:4px 7px}
.source-range-fields .btn{min-height:32px;padding:5px 9px;font-size:10px;line-height:1.7}
.source-range-hint{font-size:10px;line-height:1.8;margin:7px 0 0;color:#6e8190}
.source-range-content .field-error{margin-top:7px}
html[lang=ta] .choose-form-type h2{font-size:15px}
html[lang=ta] .choose-form-type p{font-size:12px}
html[lang=ta] .source-range-details>summary{font-size:10px}
html[lang=ta] .source-range-fields .btn{font-size:9px}
@media(min-width:851px) and (max-width:1400px){
 .workspace:not(.manual-workspace) .entry-type-select>.form-type-label,.has-source-reference .entry-type-select>.form-type-label{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .workspace:not(.manual-workspace) .entry-toolbar .entry-type-select select,.has-source-reference .entry-toolbar .entry-type-select select{max-width:180px;font-size:11px}
 .workspace:not(.manual-workspace) .entry-toolbar .next-form-button,.has-source-reference .entry-toolbar .next-form-button{font-size:10px;gap:3px}
 html[lang=ta] .workspace:not(.manual-workspace) .entry-toolbar .entry-type-select select,html[lang=ta] .has-source-reference .entry-toolbar .entry-type-select select{font-size:10px}
 html[lang=ta] .workspace:not(.manual-workspace) .entry-toolbar .next-form-button,html[lang=ta] .has-source-reference .entry-toolbar .next-form-button{font-size:9px}
}
@media(max-width:520px){
 .entry-type-select>.form-type-label{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .entry-toolbar .entry-type-select select{font-size:11px;max-width:145px}
 .entry-toolbar .next-form-button{font-size:10px;gap:3px}
 .entry-toolbar .next-form-button>.icon{display:none}
 html[lang=ta] .entry-toolbar{flex-wrap:wrap}
 html[lang=ta] .entry-toolbar .entry-type-select{flex-basis:calc(100% - 105px)}
 html[lang=ta] .entry-toolbar .entry-type-select select{max-width:none}
 html[lang=ta] .entry-toolbar .next-form-button{font-size:9px}
 .source-range-details>summary{padding-inline:10px}
 .source-range-content{padding-inline:10px}
 .source-range-fields{gap:7px}
 .choose-form-type{padding:24px 9px;margin-top:12px}
}
@media(min-width:851px) and (max-width:1100px){
 .workspace:not(.manual-workspace) .entry-toolbar,.has-source-reference .entry-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px}
 .workspace:not(.manual-workspace) .entry-toolbar .entry-type-select select,.has-source-reference .entry-toolbar .entry-type-select select{max-width:none}
 .workspace:not(.manual-workspace) .entry-toolbar .next-form-button,.has-source-reference .entry-toolbar .next-form-button{justify-self:end}
 .workspace:not(.manual-workspace) .entry-toolbar .review-fields-button,.has-source-reference .entry-toolbar .review-fields-button{justify-self:start}
 .workspace:not(.manual-workspace) .entry-toolbar .shortcuts-button,.has-source-reference .entry-toolbar .shortcuts-button{justify-self:end}
}

/* Keyboard help belongs to the profile and leaves the entry cursor intact. */
.profile-help-overlay{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;background:#18181b66;overflow:auto}
.profile-keyboard-help{width:min(100%,620px);max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;border:1px solid #dededb;border-radius:10px;background:#fff;color:#27272a;padding:22px;box-shadow:0 12px 40px #18181b28}
.profile-help-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.profile-help-heading h2{font-size:20px;line-height:1.5;margin:0}
.profile-help-heading .btn{min-height:40px}
.profile-keyboard-help p{font-size:14px;line-height:1.8;color:#5f6268;margin:0 0 16px}
.profile-keyboard-help dl{margin:0}.profile-keyboard-help dl>div{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.3fr);gap:16px;padding:11px 0;border-top:1px solid #e3e3e0;font-size:14px;line-height:1.8}
.profile-keyboard-help dt,.profile-keyboard-help dd{margin:0}.profile-keyboard-help kbd{display:inline-block;padding:2px 6px;border:1px solid #dededb;border-radius:4px;background:#f7f7f6;color:#3f3f46;font-size:12px;line-height:1.8;white-space:normal}
.profile-keyboard-help :focus-visible{outline:2px solid #a91f35;outline-offset:3px}
@media(max-width:550px){.profile-help-overlay{padding:12px}.profile-keyboard-help{padding:16px;max-height:calc(100dvh - 24px)}.profile-keyboard-help dl>div{grid-template-columns:1fr;gap:5px}}
@media print{.profile-help-overlay{display:none!important}}
