/* LingoSafe console additions (PRD FR-29; artboards Settings.dc.html, People.dc.html). Uses the page's tokens. */
.settings-section-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.settings-section-nav .btn[aria-current="true"] { outline: 2px solid transparent; }
.console-two-col { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.console-two-col > .console-list { flex: 1 1 260px; max-width: 340px; }
.console-two-col > .console-detail, .console-two-col > div:not(.console-list) { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.console-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.console-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.console-inline-form { border: 1px solid var(--border-color, #475569); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.console-clients { list-style: none; margin: 0; padding: 0; }
.console-client { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color, #475569); cursor: pointer; font-size: 0.875rem; }
.console-client.selected { background: rgba(59, 130, 246, 0.12); border-left: 3px solid #3b82f6; }
.console-client:focus-visible, .perm input:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.muted { color: var(--text-secondary, #94a3b8); font-size: 0.8125rem; }
.console-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.role-card { border: 1px solid var(--border-color, #475569); border-radius: 8px; padding: 1rem; }
.role-card p { margin: 0.35rem 0 0; font-size: 0.8125rem; line-height: 1.5; }
.console-edit { border-top: 1px solid var(--border-color, #475569); padding-top: 1.5rem; margin-top: 1.5rem; }
.console-group { margin: 0.75rem 0 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-secondary, #94a3b8); }
.perm { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(71, 85, 105, 0.5); font-size: 0.875rem; }
.perm input { width: 18px; height: 18px; margin: 0.15rem 0 0; flex: 0 0 auto; }
.perm small { display: block; color: var(--text-secondary, #94a3b8); font-size: 0.8125rem; }
.lock { display: inline-flex; gap: 0.3rem; font-size: 0.75rem; color: var(--text-secondary, #94a3b8); margin-left: 0.35rem; }
.console-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.selected-row { background: rgba(59, 130, 246, 0.12); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#placementRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
/* the page's .documents-table is fixed-layout with one-line cells (the documents list); console tables wrap */
#consoleSettings .documents-table, #accountHistoryContainer .documents-table { table-layout: auto; }
#consoleSettings .documents-table td, #consoleSettings .documents-table th, #accountHistoryContainer .documents-table td { white-space: normal; overflow: visible; text-overflow: clip; }
#consoleSettings td.console-actions-cell { white-space: nowrap; }
#consoleSettings td.console-actions-cell .btn { margin: 0.125rem 0; }
/* the Documents tab (Main.dc.html; console/documents.js) */
.stat-card.cs-todo { font: inherit; color: inherit; text-align: left; cursor: pointer; display: block; width: 100%; }
.cs-todo:focus-visible, .cs-docname:focus-visible, .documents-table th:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.cs-todo-link { font-size: 0.8125rem; color: #60a5fa; margin-top: 0.35rem; }
.cs-step { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.cs-step legend, .cs-step-label { font-weight: 600; font-size: 0.9rem; margin: 0.5rem 0; }
.cs-intake { display: flex; gap: 0.6rem; align-items: flex-start; border: 1px solid var(--border-color, #475569); border-radius: 8px; padding: 0.75rem; cursor: pointer; }
.cs-intake small { display: block; color: var(--text-secondary, #94a3b8); font-size: 0.8125rem; margin-top: 0.2rem; }
.cs-intake input { margin-top: 0.2rem; }
.cs-intake.cs-disabled { opacity: 0.6; cursor: not-allowed; }
.cs-search { min-width: 200px; flex: 1 1 200px; max-width: 320px; padding: 0.4rem 0.6rem; border-radius: 6px; border: 1px solid var(--border-color, #475569); background: transparent; color: inherit; }
.cs-table-help { margin: 0.5rem 0; }
.btn-link { all: unset; cursor: pointer; color: #60a5fa; text-decoration: underline; font-size: inherit; }
.btn-link:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.cs-order-panel { border: 1px solid var(--border-color, #475569); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 0.75rem; max-width: 420px; }
.cs-order { margin: 0.5rem 0; padding-left: 1.25rem; }
.cs-order li { display: flex; align-items: center; gap: 0.5rem; padding: 0.15rem 0; }
.cs-order li span { flex: 1; }
.cs-order-head { font-weight: 600; }
.cs-order-foot { display: flex; gap: 0.5rem; justify-content: flex-end; }
.cs-list-wrap { display: flex; gap: 1rem; align-items: flex-start; }
.cs-table-scroll { flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.documents-section .documents-table { table-layout: auto; }
.documents-section .documents-table td { white-space: normal; vertical-align: top; }
.documents-section .documents-table th.cs-dropto { box-shadow: inset 3px 0 0 #3b82f6; }
#documentsTableBody tr[data-row] { cursor: pointer; }
#documentsTableBody tr.cs-selected { background: rgba(59, 130, 246, 0.12); }
.cs-docname { all: unset; cursor: pointer; font-weight: 500; }
.cs-sub { font-size: 0.75rem; color: var(--text-secondary, #94a3b8); margin-top: 0.15rem; }
.cs-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; white-space: nowrap; border: 1px solid currentColor; }
.cs-needs_review, .cs-sent_back { color: #fbbf24; }
.cs-ready_to_sign, .cs-signed { color: #4ade80; }
.cs-being_checked { color: #60a5fa; }
.cs-check_failed { color: #f87171; }
.cs-check_stopped, .cs-uploaded { color: var(--text-secondary, #94a3b8); }
.cs-preview { flex: 0 0 340px; max-width: 340px; border: 1px solid var(--border-color, #475569); border-radius: 8px; padding: 1rem; position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.875rem; }
.cs-preview-head { display: flex; justify-content: space-between; align-items: center; }
.cs-preview-head h3 { margin: 0; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary, #94a3b8); }
.cs-preview-name { font-weight: 600; font-size: 1rem; word-break: break-word; }
.cs-preview-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.cs-preview-formats { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.cs-flagged { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.cs-page { font-weight: 600; margin-right: 0.35rem; }
.cs-sev { font-size: 0.7rem; text-transform: uppercase; padding: 0 0.3rem; border-radius: 4px; border: 1px solid currentColor; }
.cs-sev-critical { color: #f87171; } .cs-sev-major { color: #fbbf24; } .cs-sev-minor { color: var(--text-secondary, #94a3b8); }
.cs-versions-head { font-weight: 600; margin-top: 0.5rem; }
.cs-versions { margin: 0.25rem 0 0; padding-left: 1rem; }
@media (max-width: 900px) { .cs-list-wrap { flex-direction: column; } .cs-preview { position: static; max-width: none; width: 100%; flex-basis: auto; box-sizing: border-box; } }
.cs-preview[hidden], .cs-order-panel[hidden] { display: none; }
#uploadForm > #placementRow, #uploadForm > .layout-choice, #uploadForm > #costHint { grid-column: 1 / -1; }
#uploadForm > #uploadBtn { justify-self: start; }
.cs-verify { margin: 0.75rem 0 1rem; }
.cs-drop-small { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.25rem; cursor: pointer; }
.cs-drop-small:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.cs-verify[hidden], #translatorRow[hidden] { display: none; }
.cs-cost-line { grid-column: 1 / -1; margin: 0.25rem 0 0; font-weight: 500; }
#uploadForm > #translatorRow { grid-column: 1 / -1; max-width: 420px; }
/* the To review tab (Queue.dc.html; console/review.js) */
.cs-tab-badge { display: inline-block; min-width: 1.4em; padding: 0 0.35em; border-radius: 999px; background: #f59e0b; color: #111; font-size: 0.75rem; text-align: center; }
.cs-tab-badge[hidden], #reviewTabBtn[hidden], #settingsTabBtn[hidden] { display: none; }
.cs-review { padding: 0 0 2rem; }
.cs-breadcrumb { font-size: 0.875rem; margin-bottom: 0.5rem; }
.cs-progress-line { max-width: 420px; margin: 0.5rem 0 1rem; font-size: 0.875rem; }
.cs-queue { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1.25rem; align-items: start; }
.cs-queue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; max-height: 70vh; overflow-y: auto; }
.cs-queue-item { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto auto 1fr; gap: 0.15rem 0.5rem; width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--border-color, #475569); border-radius: 6px; cursor: pointer; font-size: 0.8125rem; }
.cs-queue-item:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.cs-queue-item.cs-current { border-color: #3b82f6; background: rgba(59, 130, 246, 0.12); }
.cs-q-num { font-weight: 700; } .cs-q-page { color: var(--text-secondary, #94a3b8); }
.cs-q-excerpt { grid-column: 1 / -1; color: var(--text-secondary, #94a3b8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-q-state { grid-column: 1 / -1; font-size: 0.75rem; }
.cs-q-decided .cs-q-state { color: #4ade80; } .cs-q-pending .cs-q-state { color: #fbbf24; } .cs-q-open .cs-q-state { color: #f87171; }
.cs-queue-detail { border: 1px solid var(--border-color, #475569); border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cs-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.cs-queue-detail h3 { font-size: 0.9rem; margin: 0.25rem 0 0; }
.cs-why { margin: 0; padding-left: 1.1rem; font-size: 0.875rem; }
.cs-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cs-panel-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-secondary, #94a3b8); margin-bottom: 0.25rem; }
.cs-panel { border: 1px solid var(--border-color, #475569); border-radius: 6px; padding: 0.6rem; font-size: 0.875rem; }
.cs-panel p { margin: 0.25rem 0; } .cs-ctx { color: var(--text-secondary, #94a3b8); } .cs-focus { background: rgba(251, 191, 36, 0.15); padding: 0.2rem 0.3rem; border-radius: 4px; }
.cs-correct-label { font-weight: 600; font-size: 0.875rem; }
.cs-correct { width: 100%; box-sizing: border-box; padding: 0.5rem; border-radius: 6px; border: 1px solid var(--border-color, #475569); background: transparent; color: inherit; font: inherit; }
.cs-actions { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 0.75rem; align-items: center; }
.cs-notice { border-left: 3px solid #fbbf24; padding-left: 0.6rem; }
.cs-decision { font-size: 0.875rem; color: #4ade80; } .cs-outcome { min-height: 1.2em; font-size: 0.875rem; }
@media (max-width: 900px) { .cs-queue, .cs-panels { grid-template-columns: 1fr; } }
/* the document page (FR-29.7; console plan Phase 6; console/document-page.js). Links #60a5fa on the dark surface
   (contrast about 7:1, WCAG AAA for text); a disabled download is visibly muted and says why above the list */
.cs-docpage { padding: 0 0 2rem; display: flex; flex-direction: column; gap: 0.75rem; max-width: 960px; }
.cs-docpage a { color: #60a5fa; text-decoration: underline; text-underline-offset: 2px; }
.cs-docpage a:focus-visible, .cs-docpage button:focus-visible, .cs-docpage summary:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.cs-docpage h2 { margin: 0.25rem 0 0; font-size: 1.35rem; }
.cs-docpage h3 { margin: 1rem 0 0.4rem; font-size: 1rem; }
.cs-banner { border-radius: 8px; padding: 0.75rem 1rem; border: 1px solid var(--border-color, #475569); }
.cs-banner-ok { border-color: #22c55e; background: rgba(34, 197, 94, 0.10); }
.cs-banner-ready { border-color: #3b82f6; background: rgba(59, 130, 246, 0.10); }
.cs-banner-wait { border-color: #f59e0b; background: rgba(245, 158, 11, 0.10); }
.cs-sign { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.cs-sign .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.cs-help, .cs-docpage .cs-muted { margin: 0; font-size: 0.875rem; color: var(--text-secondary, #94a3b8); }
.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 0; }
.cs-facts > div { border: 1px solid var(--border-color, #475569); border-radius: 8px; padding: 0.6rem 0.75rem; }
.cs-facts dt { font-size: 0.8125rem; color: var(--text-secondary, #94a3b8); }
.cs-facts dd { margin: 0.2rem 0 0; font-size: 1.25rem; font-weight: 700; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.cs-table th, .cs-table td { text-align: start; padding: 0.45rem 0.6rem; border-bottom: 1px solid rgba(71, 85, 105, 0.6); vertical-align: top; }
.cs-table th { font-weight: 600; color: var(--text-secondary, #94a3b8); }
.cs-downloads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.cs-downloads li { padding: 0.35rem 0; border-bottom: 1px solid rgba(71, 85, 105, 0.4); }
.cs-disabled { color: var(--text-secondary, #94a3b8); opacity: 0.75; }
.cs-disabled::after { content: " 🔒"; }
.cs-cert { border: 1px solid var(--border-color, #475569); border-radius: 8px; padding: 0.75rem 1rem; }
.cs-cert summary { cursor: pointer; font-weight: 600; }
.cs-cert label { display: block; margin-top: 0.6rem; font-size: 0.875rem; }
.cs-cert input[type=password] { padding: 0.4rem; border-radius: 6px; border: 1px solid var(--border-color, #475569); background: transparent; color: inherit; }
.cs-cert .btn { margin-top: 0.75rem; }
/* the History (FR-29.9; console plan Phase 7; console/history-panel.js) */
.cs-history { border-top: 1px solid var(--border-color, #475569); margin-top: 1rem; padding-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cs-history a { color: #60a5fa; }
.cs-history-tools, .cs-history-filters, .cs-pager { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.cs-history-filters label { font-size: 0.875rem; display: inline-flex; gap: 0.35rem; align-items: center; }
.cs-history-filters input, .cs-history-filters select { padding: 0.25rem 0.35rem; border-radius: 6px; border: 1px solid var(--border-color, #475569); background: transparent; color: inherit; }
.cs-range[aria-pressed="true"] { font-weight: 700; text-decoration: underline; }
.cs-history button:focus-visible, .cs-history a:focus-visible, .cs-history input:focus-visible, .cs-history select:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
.cs-footnote { font-size: 0.8125rem; }
/* Terminology (FR-29.4; console plan Phase 8; console/terminology.js) */
.cs-dropzone { border: 2px dashed var(--border-color, #475569); border-radius: 8px; padding: 1rem; margin: 0.5rem 0 1rem; }
.cs-dropzone.cs-drag, .cs-dropzone:focus-visible { border-color: #3b82f6; outline: none; background: rgba(59, 130, 246, 0.08); }
.cs-dropzone a, .cs-terms a { color: #60a5fa; }
.cs-terms-form { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.5rem; }
.cs-terms-form input[type=text], .cs-terms input[type=search], .cs-terms-form select { padding: 0.3rem; border-radius: 6px; border: 1px solid var(--border-color, #475569); background: transparent; color: inherit; }
/* the Dashboard (FR-29.10; console plan Phase 9; console/dashboard-page.js) */
#dashboardTabBtn[hidden], .cs-chip[hidden], .cs-summary[hidden] { display: none; }
.cs-dash { padding: 0 0 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cs-dash a { color: #60a5fa; }
.cs-dash h3 { margin: 1.25rem 0 0.25rem; } .cs-dash h4 { margin: 0.9rem 0 0.25rem; font-size: 0.95rem; }
.cs-bar { height: 10px; border-radius: 6px; background: rgba(34, 197, 94, 0.35); overflow: hidden; max-width: 640px; }
.cs-bar > span { display: block; height: 100%; background: #3b82f6; }
.cs-minibar { display: inline-block; width: 80px; height: 8px; border-radius: 4px; background: rgba(148, 163, 184, 0.3); vertical-align: middle; overflow: hidden; }
.cs-minibar > span { display: block; height: 100%; background: #22c55e; }
.cs-weakest { background: rgba(245, 158, 11, 0.10); }
.cs-dash tr[data-drill] { cursor: pointer; } .cs-dash tr[data-drill]:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }
.cs-plain { margin: 0; padding-left: 1.1rem; font-size: 0.875rem; }
.cs-chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.5rem; border: 1px solid #3b82f6; border-radius: 999px; font-size: 0.8125rem; }
.cs-summary button { color: #60a5fa; }

/* the preview (M-45, M-53; Phase 6): the "Not signed" mark over the page in the reader's language, logical properties */
.cs-preview { margin: 1rem 0; max-inline-size: 22rem; }
.cs-preview-frame { position: relative; display: inline-block; border: 1px solid var(--border-color, #475569); border-radius: 6px; overflow: hidden; background: #fff; }
.cs-preview-frame img { display: block; max-inline-size: 100%; }
.cs-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(-30deg); font-size: 1.4rem; font-weight: 700; color: rgba(220, 38, 38, 0.45); pointer-events: none; text-align: center; padding: 0 1rem; }
.cs-preview figcaption { font-size: 0.85rem; color: var(--text-secondary, #94a3b8); margin-block: 0.5rem; }
.cs-preview-full { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, 0.96); overflow: auto; padding: 1rem; }
.cs-preview-bar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-block-end: 1rem; }
.cs-preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cs-preview-pair figure { margin: 0; } .cs-preview-pair img { max-inline-size: 100%; display: block; background: #fff; }
@media (max-width: 800px) { .cs-preview-pair { grid-template-columns: 1fr; } }
