:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #111318;
  --muted: #6b7280;
  --line: #dfe3e8;
  --line-strong: #c7cdd4;
  --accent: #1f2937;
  --accent-2: #111827;
  --soft: #eef0f3;
  --warning: #b7791f;
  --warning-bg: #fff7df;
  --danger: #b42318;
  --success: #177245;
  --radius: 16px;
  --shadow: 0 18px 55px rgba(17, 24, 39, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width:100%; min-width:0; margin:0; background:var(--bg); color:var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 20px 20px; background: #111318; color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 30px; }
.brand-mark { width: 42px; height: 42px; border: 1px solid #555a63; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg,#2b2e34,#101216); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.brand-mark span { font-weight: 800; font-size: 21px; }
.brand strong { display:block; font-size: 17px; letter-spacing:.02em; }
.brand small { color:#9da3ad; }
.steps { display:flex; flex-direction:column; gap:5px; }
.step { display:flex; width:100%; gap:12px; align-items:center; text-align:left; border:0; color:#9da3ad; background:transparent; border-radius:12px; padding:11px 10px; }
.step > span { width:28px; height:28px; border-radius:9px; border:1px solid #474b53; display:grid; place-items:center; font-size:12px; }
.step b,.step small { display:block; }
.step b { font-size:13px; color:#d9dce1; margin-bottom:2px; }
.step small { font-size:11px; }
.step.active { background:#25282e; color:#fff; }
.step.active > span { background:#fff; color:#111318; border-color:#fff; font-weight:700; }
.step.active b { color:#fff; }
.manual-mode .steps, .manual-mode .sidebar-card { display:none; }
.manual-mode .sidebar-utility { margin-top:auto; }
.sidebar-card { margin-top:auto; display:flex; gap:10px; align-items:center; padding:13px; border:1px solid #30343b; background:#1b1e23; border-radius:13px; }
.sidebar-card b,.sidebar-card small { display:block; font-size:11px; }
.sidebar-card small { color:#979da8; margin-top:3px; }
.sidebar-utility { display:flex; justify-content:flex-start; padding:10px 7px 0; }
.logout-utility-button { width:36px; height:36px; display:grid; place-items:center; padding:0; border:1px solid #30343b; border-radius:10px; background:transparent; color:#858d99; transition:background-color .12s,border-color .12s,color .12s,transform .12s; }
.logout-utility-button svg { width:18px; height:18px; }
.logout-utility-button:hover { border-color:#49515d; background:#1d2127; color:#d1d6dd; }
.logout-utility-button:active { transform:scale(.95); }
.logout-utility-button:focus-visible,.button:focus-visible,.inspection-zoom-button:focus-visible,.page-inspection-close:focus-visible { outline:2px solid #74b3d6; outline-offset:3px; }
.status-dot { width:10px; height:10px; border-radius:50%; background:#777; box-shadow:0 0 0 4px rgba(255,255,255,.05); }
.status-dot.ok { background:#55c68b; }.status-dot.bad { background:#ef6a62; }
.sidebar-footer { display:flex; flex-direction:column; gap:5px; color:#747b86; font-size:10px; line-height:1.35; padding:18px 7px 0; }
.main { min-width:0; }
.topbar { min-width:0; min-height:92px; height:auto; padding:22px 34px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.75); backdrop-filter: blur(14px); position:sticky; top:0; z-index:20; }
.topbar > div:first-child { min-width:0; }
.topbar h1 { margin:0; font-size:22px; letter-spacing:-.02em; }
.topbar p { margin:4px 0 0; color:var(--muted); font-size:13px; }
.top-actions { min-width:0; margin-left:auto; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.view { display:none; min-width:0; padding:32px 34px 42px; }
.view.visible { display:block; }
.hero-grid { max-width:1200px; min-height:680px; margin:auto; display:grid; grid-template-columns:1.05fr .85fr; gap:56px; align-items:center; }
.recent-documents { max-width:1200px; margin:0 auto 28px; padding:22px; }
.recent-documents .panel-heading { align-items:center; margin-bottom:14px; }
.recent-documents-list { display:grid; gap:8px; }
.recent-document-item { display:flex; align-items:center; gap:14px; min-width:0; padding:12px 14px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.recent-document-item > div:first-child { min-width:0; flex:1; }
.recent-document-item b,.recent-document-item small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recent-document-item b { font-size:13px; }.recent-document-item small { color:var(--muted); margin-top:4px; font-size:11px; }
.recent-document-item.unavailable { opacity:.7; }
.recent-document-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.recent-tenders { max-width:1200px; margin:0 auto 28px; padding:22px; }
.recent-tenders .panel-heading { align-items:center; margin-bottom:14px; }
.recent-tenders-list { display:grid; gap:8px; }
.recent-tender-item { display:flex; align-items:center; gap:14px; min-width:0; padding:12px 14px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.recent-tender-copy { min-width:0; flex:1; }
.recent-tender-copy b,.recent-tender-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recent-tender-copy b { font-size:13px; }
.recent-tender-copy small { color:var(--muted); margin-top:4px; font-size:11px; }
.recent-tender-actions { display:flex; gap:8px; flex-shrink:0; }
.recent-tender-empty { margin:0; padding:10px 2px; color:var(--muted); font-size:13px; }
@media(max-width:640px) {
  .recent-tender-item { align-items:flex-start; flex-direction:column; }
  .recent-tender-actions { width:100%; justify-content:flex-end; }
}
.recent-document-trash { width:36px; height:36px; padding:0; display:inline-grid; place-items:center; color:#68717d; }
.recent-document-trash svg { width:17px; height:17px; }
.recent-document-trash:hover:not(:disabled) { color:#a12c32; border-color:#e8b9bc; background:#fff8f8; }
.recent-document-trash:focus-visible { outline:2px solid #74b3d6; outline-offset:2px; }
.delete-document-card { width:min(520px,calc(100vw - 40px)); }
.delete-document-card > p { color:var(--muted); font-size:13px; line-height:1.55; }
.delete-document-card .delete-document-name { overflow-wrap:anywhere; color:#242830; font-weight:700; }
.delete-document-warning { padding:11px 13px; border-radius:10px; background:#f6f7f9; color:#555d68!important; }
.delete-document-status { color:#4b5563!important; }
.delete-document-confirm { background:#9b3035; color:#fff; border-color:#9b3035; }
.delete-document-confirm:hover:not(:disabled) { background:#82272b; }
.delete-document-confirm:disabled { opacity:.65; cursor:wait; }
.hero-copy h2 { font-size:48px; line-height:1.08; letter-spacing:-.045em; margin:14px 0 20px; max-width:700px; }
.hero-copy > p { max-width:620px; color:var(--muted); font-size:17px; line-height:1.65; }
.eyebrow { font-size:11px; text-transform:uppercase; letter-spacing:.14em; font-weight:750; color:#6c737e; }
.feature-list { margin-top:36px; display:grid; gap:12px; max-width:650px; }
.feature-list > div { display:flex; gap:14px; align-items:center; padding:13px 0; border-top:1px solid var(--line); }
.feature-list > div > span { font-size:11px; color:#9197a1; width:32px; }
.feature-list p,.feature-list b,.feature-list small { margin:0; display:block; }
.feature-list b { font-size:14px; }.feature-list small { color:var(--muted); margin-top:4px; }
.upload-card { min-height:430px; border:1.5px dashed #adb4bd; background:var(--surface); border-radius:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:46px; text-align:center; box-shadow:var(--shadow); transition:.2s; }
.upload-card.drag { transform:translateY(-3px); border-color:#111318; background:#fbfbfc; }
.upload-icon { width:74px; height:88px; display:grid; place-items:center; background:#111318; color:#fff; border-radius:11px 11px 18px 18px; font-size:16px; font-weight:800; letter-spacing:.07em; margin-bottom:24px; position:relative; }
.upload-icon:after { content:""; position:absolute; top:0; right:0; width:20px; height:20px; background:#fff; clip-path:polygon(0 0,100% 100%,100% 0); }
.upload-card h3 { font-size:21px; margin:0 0 8px; }.upload-card p { color:var(--muted); margin:0 0 23px; }
.upload-card small { color:#8b919a; margin-top:17px; }
.manual-entry-prompt { max-width:1200px; margin:0 auto 28px; padding:20px 22px; display:flex; align-items:center; gap:18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 8px 35px rgba(17,24,39,.035); }
.manual-entry-prompt h3 { margin:5px 0 4px; font-size:18px; }.manual-entry-prompt p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }.manual-entry-prompt .button { margin-left:auto; white-space:nowrap; }
.manual-entry-actions { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.manual-entry-actions .button { margin-left:0; }
.excel-tender-view { max-width:1600px; margin:0 auto; }
.tender-sourcing-toolbar { display:flex; align-items:center; gap:16px; margin:12px 0; }
.tender-sourcing-toolbar .hint { margin:0; }
.tender-price-export { display:grid; gap:8px; margin:12px 0 18px; padding:14px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.tender-price-export-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.tender-price-export-controls .field-label { margin:0 2px 0 0; font-size:11px; }
.tender-price-export-controls select { min-width:180px; max-width:320px; padding:8px; border:1px solid var(--line-strong); border-radius:8px; background:#fff; }
.tender-export-failure { width:100%; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px 16px; padding:13px 14px; border:1px solid #e2a7a0; border-radius:10px; background:#fff5f3; color:#7a271a; }
.tender-export-failure[hidden] { display:none; }
.tender-export-failure strong { display:block; font-size:13px; }
.tender-export-failure p { margin:4px 0 0; color:#7f3b32; font-size:12px; line-height:1.4; }
.tender-price-export .hint { margin:0; font-size:11px; }
.tender-panel { padding:22px; }
.tender-file-icon { background:#176b4c; }
.tender-preview-summary { display:grid; gap:12px; padding:14px; margin:12px 0; border:1px solid var(--line); border-radius:12px; background:#fff; }
.tender-preview-summary p { margin:0; font-size:12px; line-height:1.5; color:#515965; }
.tender-warnings { color:#8a5a12!important; background:#fff9ea; border-radius:8px; padding:8px 10px; }
.tender-mapping-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; margin:14px 0; }
.tender-mapping-field label { display:block; margin-bottom:5px; font-size:11px; font-weight:700; color:#47505c; }
.tender-mapping-field select { width:100%; min-width:0; border:1px solid var(--line-strong); border-radius:8px; padding:9px; background:white; }
.tender-preview-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding-top:12px; border-top:1px solid var(--line); }
.tender-workspace-heading { align-items:center; }
.tender-row-search { max-width:540px; margin-bottom:12px; }
.tender-table-wrap { overflow:auto; max-height:calc(100vh - 350px); border:1px solid var(--line); border-radius:10px; }
.tender-table { width:100%; min-width:1050px; border-collapse:collapse; background:#fff; }
.tender-table th,.tender-table td { padding:9px 10px; border-bottom:1px solid #e8eaee; text-align:left; vertical-align:top; font-size:11px; }
.tender-table th { position:sticky; top:0; z-index:1; background:#f7f8fa; color:#515965; white-space:nowrap; }
.tender-table tr:last-child td { border-bottom:0; }
.tender-table .tender-row-warning { color:#8a5a12; background:#fffaf0; }
.tender-table td:nth-child(4) { min-width:240px; white-space:normal; overflow-wrap:anywhere; }
.button { border:1px solid transparent; border-radius:10px; padding:10px 15px; font-weight:650; font-size:13px; transition:.16s; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.button:hover { transform:translateY(-1px); }
.button.primary { background:var(--accent); color:#fff; box-shadow:0 7px 18px rgba(17,24,39,.14); }
.button.primary:hover { background:#05070a; }
.button.secondary { background:#e8eaed; color:#20242b; }
.button.ghost { background:#fff; border-color:var(--line); color:#30343a; }
.button.support-action { border-color:#c7dce8; background:#eef6fa; color:#345e77; transition:background-color .13s,border-color .13s,color .13s,transform .13s; }
.button.support-action svg { width:17px; height:17px; flex:none; }
.button.support-action:hover { border-color:#a9c9dc; background:#e4f1f7; color:#274f68; transform:none; }
.button.support-action:active { transform:scale(.97); }
.button.support-action:focus-visible { outline:2px solid #6ca6c8; outline-offset:3px; }
.button.text { background:transparent; color:#656b75; padding:8px; }
.button.wide { width:100%; padding:13px; }
.button:disabled { cursor:not-allowed; opacity:.45; transform:none; }
.document-strip { display:flex; align-items:center; gap:12px; padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:14px; margin-bottom:20px; }
.file-icon { width:40px; height:46px; display:grid; place-items:center; background:#202329; color:#fff; border-radius:7px; font-size:10px; font-weight:800; }
.document-info b,.document-info small { display:block; }.document-info b { font-size:14px; }.document-info small { color:var(--muted); margin-top:3px; }
.spacer { flex:1; }
.pages-layout { display:grid; grid-template-columns: minmax(430px,.85fr) minmax(500px,1.15fr); gap:20px; align-items:start; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 8px 35px rgba(17,24,39,.035); }
.page-controls { padding:22px; position:sticky; top:114px; }
.panel-heading { display:flex; gap:15px; align-items:flex-start; margin-bottom:22px; }
.panel-heading h3 { margin:0; font-size:17px; }.panel-heading p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.badge { margin-left:auto; background:#eef0f2; color:#444a53; border-radius:99px; padding:6px 10px; font-size:11px; font-weight:700; }
.field-label { display:block; font-size:12px; font-weight:700; color:#3b4048; margin:0 0 8px; }
.inline-field { display:flex; gap:8px; }
.input,.select { width:100%; border:1px solid var(--line-strong); border-radius:10px; background:#fff; color:#1d2127; padding:10px 12px; outline:none; }
.input:focus,.select:focus { border-color:#555c66; box-shadow:0 0 0 3px #eef0f2; }
.hint { font-size:11px; color:#7a818c; line-height:1.5; }
.divider { height:1px; background:var(--line); margin:22px 0; }
.crop-section b { font-size:13px; }.crop-section p { margin:4px 0 12px; font-size:11px; color:var(--muted); line-height:1.45; }
.crop-actions { display:flex; align-items:center; gap:4px; margin-bottom:11px; }
.crop-actions #page-inspection-open { margin-left:auto; padding:8px 10px; }
.crop-actions #page-inspection-open svg { width:15px; height:15px; }
.crop-preview { min-height:225px; background:#eceef1; border:1px solid var(--line); border-radius:12px; overflow:hidden; position:relative; display:flex; justify-content:center; align-items:center; user-select:none; }
.crop-preview.selecting { cursor:crosshair; }
.crop-preview img { display:block; max-width:100%; max-height:390px; }
.crop-placeholder { color:#838a94; font-size:12px; }
.crop-box { position:absolute; border:2px solid #111318; background:rgba(17,19,24,.10); box-shadow:0 0 0 9999px rgba(255,255,255,.28); pointer-events:none; }
.panel-footer { margin-top:18px; }
.thumbnails-panel { min-height:650px; padding:22px; }
.thumbnail-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(125px,1fr)); gap:13px; max-height:calc(100vh - 220px); overflow:auto; padding:2px; }
.thumbnail { border:1px solid var(--line); background:#f5f6f7; border-radius:10px; padding:7px; position:relative; transition:.16s; }
.thumbnail:hover { border-color:#8c929b; transform:translateY(-1px); }
.thumbnail.selected { border:2px solid #111318; padding:6px; background:#fff; }
.thumbnail.previewing:after { content:""; position:absolute; inset:-4px; border:1px solid #737985; border-radius:13px; pointer-events:none; }
.thumbnail img { width:100%; aspect-ratio:1.414/1; object-fit:contain; display:block; background:white; }
.thumbnail-footer { display:flex; justify-content:space-between; align-items:center; margin-top:6px; font-size:11px; color:#555b64; }
.thumbnail input { accent-color:#111318; }
.processing-card { max-width:640px; min-height:540px; margin:65px auto 0; background:#fff; border:1px solid var(--line); border-radius:24px; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:60px; text-align:center; box-shadow:var(--shadow); }
.spinner { width:66px; height:66px; border:2px solid #dfe2e6; border-top-color:#111318; border-radius:50%; animation:spin 1s linear infinite; margin-bottom:28px; }
@keyframes spin { to { transform:rotate(360deg); } }
.processing-card h2 { font-size:28px; margin:12px 0 9px; }.processing-card p { color:var(--muted); }
.progress { width:100%; height:8px; border-radius:99px; background:#eceef1; overflow:hidden; margin:25px 0 10px; }
.progress span { height:100%; width:0; display:block; background:#171a1f; transition:.3s; }
.processing-stats { width:100%; display:flex; justify-content:space-between; color:#777e88; font-size:11px; }
.review-view { padding:24px 24px 28px; }
.summary-row { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.summary-card { background:#fff; border:1px solid var(--line); border-radius:13px; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; }
.summary-card small { color:var(--muted); }.summary-card b { font-size:22px; }
.summary-card.warning { background:var(--warning-bg); border-color:#f0d997; }.summary-card.warning b { color:#966314; }
.review-toolbar { display:flex; min-width:0; flex-wrap:wrap; gap:9px; align-items:center; margin-bottom:12px; }
.review-toolbar .spacer { min-width:0; }
.search-field { height:40px; min-width:290px; display:flex; gap:8px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:10px; padding:0 11px; }
.search-field input { width:100%; border:0; outline:none; }.search-field span { color:#7b8189; font-size:20px; }
.review-toolbar .select { width:auto; min-width:170px; height:40px; padding:7px 10px; font-size:12px; }
.split-workspace { display:grid; grid-template-columns:42% minmax(0,58%); height:calc(100vh - 236px); min-height:560px; background:#fff; border:1px solid var(--line); border-radius:15px; overflow:hidden; }
.pdf-pane,.table-pane { min-width:0; min-height:0; }
.pdf-pane { border-right:1px solid var(--line); display:flex; flex-direction:column; background:#edeff1; }
.pane-header { height:53px; flex:0 0 auto; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; padding:0 15px; }
.pane-header b,.pane-header small { display:block; font-size:12px; }.pane-header small { color:var(--muted); margin-top:2px; }
.zoom-actions { margin-left:auto; display:flex; align-items:center; border:1px solid var(--line); border-radius:9px; overflow:hidden; background:#fff; }
.zoom-actions button { width:31px; height:29px; border:0; background:#fff; font-size:16px; }.zoom-actions span { min-width:52px; text-align:center; font-size:11px; }
.pdf-stage { flex:1; min-width:0; overflow:auto; padding:18px 18px 18px 0; display:flex; align-items:flex-start; justify-content:flex-start; }
.pdf-image-wrap { position:relative; flex:0 0 auto; transform-origin:top left; transition:transform .15s; box-shadow:0 12px 35px rgba(17,24,39,.13); }
.pdf-image-wrap img { display:block; max-width:none; width:1000px; height:auto; background:#fff; }
.row-highlight { position:absolute; border:2px solid #111318; background:rgba(255,218,77,.25); pointer-events:none; }
.table-pane { display:flex; flex-direction:column; }
.table-scroll { flex:1; overflow:auto; position:relative; }
.data-table { border-collapse:separate; border-spacing:0; min-width:1900px; width:max-content; font-size:11px; }
.data-table th { position:sticky; top:0; z-index:8; height:53px; background:#f7f8f9; color:#41464e; border-bottom:1px solid var(--line-strong); border-right:1px solid var(--line); padding:7px 8px; text-align:left; font-size:10px; letter-spacing:.015em; }
.data-table th:first-child { left:0; z-index:10; }
.data-table td { min-height:37px; border-bottom:1px solid #eceef0; border-right:1px solid #eceef0; background:#fff; padding:0; vertical-align:top; }
.data-table tr.active td { background:#eef3fa; }.data-table tr.review td { background:#fffdf6; }
.data-table tr.critical-review td { background:#fff4e5; }
.data-table tr.dirty-resolved td { background:#f3f6fa; }
.data-table td.selector,.data-table th.selector { position:sticky; left:0; width:43px; min-width:43px; text-align:center; background:#fafbfc; z-index:5; }
.data-table td.selector { padding-top:10px; }.data-table input[type=checkbox] { accent-color:#111318; }
.cell-input { width:100%; min-height:37px; border:0; background:transparent; padding:9px 8px; outline:none; resize:none; overflow:hidden; line-height:1.35; font-size:11px; }
.cell-input:focus { box-shadow:inset 0 0 0 2px #30343a; background:#fff; }
.cell-select { width:100%; min-height:37px; border:0; background:transparent; padding:6px; outline:none; font-size:10px; }
.confidence { display:flex; align-items:center; gap:5px; padding:10px 8px; white-space:nowrap; }.confidence span { width:40px; height:5px; background:#e5e7eb; border-radius:99px; overflow:hidden; }.confidence i { display:block; height:100%; background:#4b5563; }
.status-pill { display:inline-flex; margin:7px; padding:5px 7px; border-radius:7px; background:#eef0f2; white-space:nowrap; }
.status-pill.review { background:#fff0bd; color:#79500a; }.status-pill.verified { background:#e2f4e9; color:#17613c; }.status-pill.edited { background:#e8ecf5; color:#334469; }
.critical-cell { display:grid; gap:4px; min-width:0; }
.critical-warning { display:block; padding:0 8px 7px; color:#975d05; font-size:10px; line-height:1.3; }
.review-evidence-unavailable { display:block; margin:0 8px 5px; color:#687386; font-size:10px; line-height:1.3; }
.secondary-candidate { margin:0 8px 7px; padding:7px 8px; border:1px solid #efd38c; border-radius:8px; background:#fff9e8; color:#6e4a0b; font-size:10px; line-height:1.35; }
.candidate-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }
.candidate-actions small { align-self:center; color:#866a2d; }
.candidate-actions button { border:1px solid #d8bd73; border-radius:6px; padding:3px 6px; background:#fff; color:#62470c; font-size:10px; }
.candidate-actions button:hover { background:#fff1bd; }
.human-verified { display:inline-block; margin:0 8px 7px; color:#17613c; font-size:10px; font-weight:650; }
.ocr-verified { display:inline-block; margin:0 8px 7px; color:#64748b; font-size:10px; }
.empty-table { position:absolute; inset:80px 0 auto; text-align:center; color:var(--muted); }
.modal { border:0; padding:0; background:transparent; max-width:none; max-height:none; }
.modal::backdrop { background:rgba(17,19,24,.42); }
.page-inspection-modal { width:calc(100vw - 48px); height:calc(100vh - 48px); height:calc(100dvh - 48px); max-width:1500px; margin:auto; padding:18px; overflow:hidden; border:1px solid #d9e0e6; border-radius:18px; background:#fff; box-shadow:0 30px 80px rgba(0,0,0,.24); }
.page-inspection-modal[open] { display:flex; flex-direction:column; gap:14px; }
.page-inspection-modal::backdrop { background:rgba(17,19,24,.62); }
.page-inspection-header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex:none; padding-bottom:12px; border-bottom:1px solid var(--line); }
.page-inspection-header h2 { margin:5px 0 0; font-size:19px; }
.page-inspection-controls { display:flex; align-items:center; gap:7px; }
.inspection-zoom-button { width:36px; height:36px; border:1px solid var(--line-strong); border-radius:9px; background:#fff; color:#30343a; font-size:19px; line-height:1; }
.inspection-zoom-button:hover,.page-inspection-close:hover { border-color:#9ca5ae; background:#f7f9fa; }
.page-inspection-controls output { min-width:75px; color:#47505a; font-size:12px; font-variant-numeric:tabular-nums; text-align:center; }
.inspection-fit-button { padding:8px 11px; white-space:nowrap; }
.page-inspection-close { flex:none; margin-left:3px; }
.page-inspection-status { flex:none; display:flex; align-items:center; gap:9px; min-height:22px; color:#5d6873; font-size:12px; }
.page-inspection-status.failed { color:#8b4f04; }
.page-inspection-spinner { width:15px; height:15px; flex:none; border:2px solid #dce4e9; border-top-color:#527c95; border-radius:50%; animation:spin .8s linear infinite; }
.page-inspection-status.failed .page-inspection-spinner { display:none; }
.page-inspection-viewport { min-width:0; min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; padding:16px; border:1px solid #e1e6ea; border-radius:12px; background:#eef1f4; }
.page-inspection-viewport:focus-visible { outline:2px solid #6ca6c8; outline-offset:2px; }
.page-inspection-canvas { position:relative; flex:none; margin:0 auto; background:#fff; box-shadow:0 5px 22px rgba(17,24,39,.16); }
.page-inspection-canvas img { display:block; max-width:none; }
.page-inspection-crop { position:absolute; border:2px solid #2779a8; background:rgba(67,157,204,.10); pointer-events:none; }
.modal-card { width:min(900px,calc(100vw - 80px)); max-height:calc(100vh - 70px); overflow:auto; border-radius:20px; background:#fff; box-shadow:0 30px 80px rgba(0,0,0,.22); padding:27px; }
.tender-history-confirm-card { width:min(650px,calc(100vw - 36px)); }
.modal-header { display:flex; align-items:flex-start; gap:20px; border-bottom:1px solid var(--line); padding-bottom:20px; margin-bottom:22px; }
.modal-header h2 { margin:7px 0 5px; }.modal-header p { margin:0; color:var(--muted); }
.icon-button { margin-left:auto; width:35px; height:35px; border:1px solid var(--line); background:#fff; border-radius:9px; font-size:20px; }
.modal-grid { display:grid; grid-template-columns:1fr .85fr; gap:28px; }
.column-list { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.column-item { display:flex; align-items:center; gap:10px; padding:10px 12px; background:#fff; border-bottom:1px solid var(--line); cursor:grab; }
.column-item:last-child { border-bottom:0; }.column-item.dragging { opacity:.5; }.drag-handle { color:#9aa0a8; letter-spacing:-2px; }.column-item label { display:flex; align-items:center; gap:9px; flex:1; font-size:12px; }
.export-options { display:flex; flex-direction:column; gap:10px; }.export-options .field-label { margin-top:4px; margin-bottom:-2px; }
.check-row { display:flex; align-items:center; gap:9px; font-size:12px; margin-top:6px; }.check-row input { accent-color:#111318; }
.export-note { margin-top:15px; padding:14px; background:#f3f4f6; border-radius:11px; }.export-note b { font-size:12px; }.export-note p { margin:5px 0 0; color:var(--muted); font-size:11px; }
.export-safety { min-height:40px; margin-top:13px; padding:10px 12px; border-radius:10px; background:#e9f6ee; color:#17613c; font-size:11px; line-height:1.4; }
.export-safety.blocked { background:#fff0df; color:#8b4f04; }
.modal-footer { display:flex; justify-content:flex-end; gap:9px; border-top:1px solid var(--line); padding-top:20px; margin-top:25px; }
.help-card { width:min(720px,calc(100vw - 80px)); }.help-steps { padding:0; margin:0; list-style:none; display:grid; gap:12px; }
.help-steps li { display:flex; gap:13px; padding:12px; background:#f7f8f9; border-radius:12px; }.help-steps li>span { width:28px; height:28px; background:#17191d; color:#fff; border-radius:8px; display:grid; place-items:center; font-size:11px; }.help-steps b { font-size:13px; }.help-steps p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.about-box { margin-top:20px; border-top:1px solid var(--line); padding-top:17px; }.about-box b { font-size:13px; }.about-box p { color:var(--muted); font-size:11px; }
.toast-root { position:fixed; top:18px; right:18px; z-index:999; display:grid; gap:8px; }
.toast { min-width:280px; max-width:430px; padding:12px 14px; background:#17191d; color:#fff; border-radius:11px; box-shadow:0 12px 30px rgba(0,0,0,.2); font-size:12px; animation:toast-in .2s ease; }
.toast.error { background:#9f2d26; }.toast.success { background:#17613c; }.toast.warning { background:#8b5a0a; }
@keyframes toast-in { from { opacity:0; transform:translateY(-7px); } }
@media (prefers-reduced-motion: reduce) {
  .logout-utility-button,.button.support-action { transition:none; }
  .logout-utility-button:active,.button.support-action:active { transform:none; }
}
.restore-document-status { position:fixed; right:18px; bottom:18px; z-index:998; display:flex; align-items:center; gap:11px; max-width:calc(100vw - 36px); padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 12px 35px rgba(17,24,39,.16); color:#30343a; font-size:12px; }
.restore-document-spinner { width:15px; height:15px; flex:none; border:2px solid #dfe2e6; border-top-color:#111318; border-radius:50%; animation:spin .8s linear infinite; }
.restore-document-status .button { min-width:28px; padding:4px 8px; font-size:18px; line-height:1; }
@media (max-width:1300px) {
  .app-shell { grid-template-columns:220px minmax(0,1fr); }
  .sidebar { padding-left:15px; padding-right:15px; }
  .hero-copy h2 { font-size:40px; }
  .pages-layout { grid-template-columns:430px minmax(460px,1fr); }
}
@media (max-width:620px) {
  .page-inspection-modal { width:calc(100vw - 16px); height:calc(100vh - 16px); height:calc(100dvh - 16px); padding:10px; border-radius:13px; }
  .page-inspection-modal[open] { gap:9px; }
  .page-inspection-header { align-items:flex-start; flex-direction:column; gap:9px; }
  .page-inspection-controls { width:100%; gap:5px; }
  .page-inspection-controls output { flex:1; min-width:42px; }
  .inspection-fit-button { padding:8px; }
  .page-inspection-viewport { padding:10px; }
}

.ocr-mode-section { display:grid; gap:10px; }
.ocr-mode-section>div p { margin:4px 0 2px; color:var(--muted); font-size:11px; line-height:1.45; }
.ocr-mode-card { position:relative; display:flex; gap:11px; align-items:flex-start; border:1px solid var(--line); border-radius:12px; padding:12px 13px; background:#fff; cursor:pointer; transition:.16s; }
.ocr-mode-card:hover { border-color:#9da3ab; }
.ocr-mode-card:has(input:checked) { border-color:#171a1f; box-shadow:inset 0 0 0 1px #171a1f; background:#fafafa; }
.ocr-mode-card input { margin-top:3px; accent-color:#111318; }
.ocr-mode-card span { display:grid; gap:3px; }
.ocr-mode-card span b { font-size:12px; }
.ocr-mode-card span small { color:var(--muted); font-size:10px; line-height:1.4; }
.ocr-mode-card em { margin-left:auto; font-style:normal; font-size:9px; padding:4px 6px; border-radius:6px; background:#171a1f; color:#fff; white-space:nowrap; }
.ocr-mode-card.disabled { opacity:.55; cursor:not-allowed; }
.mode-status { margin:0; padding:9px 11px; border-radius:9px; font-size:10px; line-height:1.4; background:#f3f4f6; color:var(--muted); }
.mode-status.ok { background:#e9f6ee; color:#17613c; }
.mode-status.warning { background:#fff6d8; color:#7c580d; }
.cloud-ocr-card { display:grid; gap:11px; padding:14px; border:1px solid #cfd5dc; border-radius:12px; background:#f8f9fb; }
.cloud-ocr-card > div:first-child p { margin:4px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.cloud-ocr-settings { display:flex; justify-content:space-between; gap:12px; color:#626975; font-size:11px; }
.cloud-ocr-settings b { color:#30353c; }
.ai-disabled-note { display:grid; gap:4px; margin-top:13px; padding:12px 14px; border-radius:11px; background:#f3f4f6; color:#555c66; font-size:11px; line-height:1.4; }
.ai-disabled-note b { color:#30353c; font-size:12px; }
.settings-card { width:min(720px,calc(100vw - 80px)); }
.settings-card { min-width:0; max-width:calc(100vw - 32px); max-height:calc(100vh - 32px); overflow:auto; box-sizing:border-box; }
.settings-card .settings-admin-section[hidden],.settings-card .settings-user-header[hidden] { display:none !important; }
.settings-card .settings-user-header { display:flex; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; min-width:0; }
.settings-grid > * { min-width:0; }
.settings-grid .hint { margin:6px 0 0; }
.settings-grid input:disabled { background:#f3f4f6; color:#8a919b; }
.settings-card .modal-header > div { min-width:0; }
.settings-card .modal-header h2,.settings-card .modal-header p { overflow-wrap:anywhere; }
.one-c-history-panel { display:grid; gap:12px; min-width:0; max-width:100%; margin-top:4px; padding:14px; border:1px solid var(--line); border-radius:13px; background:#fafbfc; }
.one-c-history-panel > * { min-width:0; max-width:100%; }
.one-c-history-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; min-width:0; }
.one-c-history-heading > * { min-width:0; }
.one-c-history-panel h3,.one-c-history-panel h4,.one-c-history-panel p,.one-c-history-panel .field-label { overflow-wrap:anywhere; }
.one-c-history-panel input,.one-c-history-panel select { width:100%; min-width:0; max-width:100%; }
.one-c-history-panel button { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.one-c-history-heading h3 { margin:3px 0 4px; font-size:15px; }
.one-c-history-heading p { margin:0; color:var(--muted); font-size:10px; line-height:1.45; }
.one-c-history-upload { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); align-items:end; gap:9px; min-width:0; }
.one-c-history-upload label { display:grid; gap:4px; min-width:0; }
.one-c-history-controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); gap:10px; margin:10px 0; min-width:0; }
.one-c-history-controls label { min-width:0; }
.one-c-history-panel h4 { margin:14px 0 3px; font-size:12px; }
.one-c-history-panel .hint { margin:0; color:var(--muted); font-size:10px; line-height:1.4; }
.one-c-history-mappings { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr)); gap:8px 12px; min-width:0; }
.one-c-history-map { display:grid; gap:4px; min-width:0; }
.one-c-history-map .field-label { margin:0; font-size:10px; }
.one-c-history-map.recommended .field-label::after { content:" · рекомендуется"; color:#8a5d00; font-weight:500; }
.one-c-history-save-profile { display:flex; gap:7px; align-items:center; margin-top:8px; font-size:11px; }
.one-c-history-sample-wrap { overflow:auto; max-height:220px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.one-c-history-sample { width:100%; border-collapse:collapse; font-size:10px; }
.one-c-history-sample th,.one-c-history-sample td { padding:6px 8px; border-bottom:1px solid #eceff2; text-align:left; white-space:nowrap; }
.one-c-history-sample th { position:sticky; top:0; background:#f5f7f9; color:#59616c; }
.one-c-history-actions { justify-content:flex-end; flex-wrap:wrap; padding-top:0; }
.history-activity-warning,.sourcing-history-stale-warning { padding:8px 10px; border:1px solid #dbe3ec; border-radius:8px; background:#f4f7fa; color:#475569; font-size:11px; line-height:1.45; }
@media (max-width:720px) { .settings-grid { grid-template-columns:1fr; } }
@media (max-width:720px) { .one-c-history-heading { flex-direction:column; } }

/* Sourcing panel: existing neutral engineering UI language. */
.sourcing-column, .sourcing-cell { min-width:150px; }
.sourcing-cell { vertical-align:top; padding-top:12px !important; }
.sourcing-row-button { white-space:nowrap; }
.sourcing-modal { width:min(920px,calc(100vw - 32px)); }
.sourcing-card { width:min(920px,calc(100vw - 32px)); max-width:calc(100vw - 32px); box-sizing:border-box; }
.sourcing-content { min-height:160px; }
.sourcing-mode-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:6px 14px; min-width:0; max-width:100%; margin:0 0 14px; padding:10px 12px; border:1px solid #e2e8f0; border-radius:10px; background:#f8fafc; }
.sourcing-mode-field { display:grid; gap:4px; min-width:0; }
.sourcing-mode-field .field-label { margin:0; }
.sourcing-mode-field select { width:100%; min-width:0; max-width:100%; }
.sourcing-mode-status { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px 10px; min-width:0; }
.sourcing-mode-status p { margin:0; color:#64748b; font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.sourcing-mode-status .button { padding:5px 7px; font-size:11px; }
.sourcing-mode-change-note { grid-column:1 / -1; margin:0; color:#475569; font-size:11px; }
.sourcing-run-meta { display:flex; flex-wrap:wrap; gap:7px 16px; margin-bottom:14px; padding:10px 12px; border:1px solid #dbe4ee; border-radius:10px; background:#f8fafc; color:#64748b; font-size:11px; }
.sourcing-run-meta b { color:#334155; }
.sourcing-route-coverage { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr)); gap:9px; margin:-8px 0 12px; }
.sourcing-route-coverage > div { min-width:0; padding:10px 12px; border:1px solid #dbe4ee; border-radius:10px; background:#fff; }
.sourcing-route-coverage small { display:block; margin-bottom:4px; color:#64748b; overflow-wrap:anywhere; }
.sourcing-route-coverage b { color:#0f172a; }
.sourcing-history-totals-note,.sourcing-route-explanation { margin:8px 0 12px; color:#475569; font-size:12px; line-height:1.45; }
.sourcing-route-explanation { padding:9px 11px; border-left:3px solid #94a3b8; background:#f8fafc; }
.intent-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#f8fafc; }
.intent-summary small, .sourcing-project-summary small { display:block; color:#64748b; margin-bottom:5px; }
.intent-summary b { display:block; color:#0f172a; }
.intent-badges { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:8px; }
.technical-badge { padding:5px 9px; border-radius:999px; background:#e0f2fe; color:#075985; font-size:12px; }
.understanding-panel { margin-bottom:16px; padding:16px; border:1px solid #dbe4ee; border-radius:14px; background:#fff; }
.understanding-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.understanding-heading small,.understanding-resolved > small,.understanding-suggestions > small { display:block; margin-bottom:5px; color:#64748b; }
.understanding-heading b { display:block; max-width:650px; color:#0f172a; line-height:1.45; }
.understanding-source-meta { display:flex; flex-wrap:wrap; gap:7px 14px; margin-top:8px; color:#475569; font-size:13px; }
.understanding-resolved { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px; margin-top:16px; padding-top:14px; border-top:1px solid #e2e8f0; }
.understanding-resolved > small { grid-column:1 / -1; }
.understanding-resolved div { display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.understanding-resolved span { color:#64748b; }.understanding-resolved b { text-align:right; color:#0f172a; }
.understanding-suggestions { display:flex; flex-wrap:wrap; gap:7px 12px; margin-top:13px; padding:10px 12px; border-radius:10px; background:#fff7ed; color:#9a3412; font-size:12px; }
.understanding-suggestions > small { flex-basis:100%; color:#9a3412; }
.offer-card { padding:18px; border-radius:16px; border:1px solid #dbe4ee; background:#fff; box-shadow:0 10px 25px rgba(15,23,42,.06); margin:12px 0 20px; }
.offer-card.recommended { border-color:#7dd3fc; background:linear-gradient(135deg,#f0f9ff,#fff); }
.historical-offer-card.recommended { border-color:#cbd5e1; background:#f8fafc; }
.historical-offer-card.exact-retrieval { border-color:#bfdbfe; background:#eff6ff; }
.historical-offer-card.normalized-retrieval { border-color:#bfdbfe; background:#eff6ff; }
.historical-offer-card.fuzzy-discovery { border-color:#e2e8f0; background:#f8fafc; }
.history-evidence-badge, .history-fuzzy-badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 8px; font-size:11px; font-weight:700; }
.history-evidence-badge { color:#1e40af; background:#dbeafe; }
.history-normalized-badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 8px; font-size:11px; font-weight:700; color:#1e40af; background:#dbeafe; }
.history-fuzzy-badge { color:#475569; background:#e2e8f0; }
.history-review-explanation { margin:6px 0 14px; color:#475569; font-size:13px; line-height:1.5; }
.history-candidate-wrapper { min-width:0; }
.history-candidate-wrapper .offer-card { margin-bottom:8px; }
.history-human-confirmation { display:grid; gap:8px; padding:12px; border:1px solid #dbe4ee; border-radius:12px; background:#f8fafc; color:#334155; font-size:13px; }
.history-human-confirmation p { margin:0; line-height:1.45; }
.history-human-confirmation span { color:#475569; }
.history-confirmation-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.history-fuzzy-confirmation { display:grid; gap:10px; padding:14px; border:1px solid #cbd5e1; border-radius:12px; background:#f8fafc; }
.history-fuzzy-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.history-fuzzy-comparison > section { min-width:0; padding:12px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; }
.history-fuzzy-comparison h4 { margin:0 0 8px; font-size:14px; }
.history-fuzzy-compare-row { display:grid; grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr); gap:8px; padding:5px 0; border-top:1px solid #f1f5f9; font-size:12px; }
.history-fuzzy-compare-row span { color:#64748b; }
.history-fuzzy-compare-row b { overflow-wrap:anywhere; font-weight:600; }
.history-fuzzy-warning { margin:0; color:#7c2d12; font-size:13px; }
.history-fuzzy-assertion-label { display:flex; align-items:center; gap:8px; font-weight:600; }
.history-fuzzy-assertion-label input { width:16px; height:16px; }
.history-fuzzy-confirm:disabled, .history-fuzzy-confirm-and-next:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width:640px) { .history-fuzzy-comparison { grid-template-columns:1fr; } }
.manual-history-search { display:grid; gap:10px; min-width:0; width:100%; margin-top:20px; padding:16px; border:1px solid #dbe3ee; border-radius:14px; background:#f8fafc; box-sizing:border-box; }
.manual-history-search-prompt { margin:0; font-weight:700; color:#334155; }
.manual-history-search-form { display:grid; gap:8px; min-width:0; }
.manual-history-search-form label { font-weight:600; }
.manual-history-search-form > .manual-history-search-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.manual-history-search-form .manual-history-search-controls input[type="search"] { min-width:0; width:100%; flex:1 1 260px; }
.manual-history-search-form small { color:#64748b; }
.manual-history-empty { margin:0; padding:10px; color:#475569; background:#fff; border-radius:8px; }
.manual-history-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr)); gap:10px; min-width:0; }
.manual-history-result-card { display:grid; gap:8px; min-width:0; padding:12px; border:1px solid #dbe3ee; border-radius:10px; background:#fff; overflow-wrap:anywhere; }
.manual-history-result-card h4 { margin:0; font-size:14px; }
.manual-history-decision { color:#475569; font-size:12px; }
.manual-history-result-fields { display:grid; gap:2px; }
.manual-history-result-row { display:grid; grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr); gap:8px; padding:4px 0; border-top:1px solid #f1f5f9; font-size:12px; }
.manual-history-result-row span { color:#64748b; }
.manual-history-result-row b { overflow-wrap:anywhere; font-weight:600; }
.manual-history-comparison { display:grid; gap:10px; padding:12px; border:1px solid #cbd5e1; border-radius:10px; background:#f8fafc; }
.manual-history-comparison-columns { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:10px; min-width:0; }
.manual-history-comparison-columns section { min-width:0; padding:10px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; }
.manual-history-comparison-columns h4,.manual-history-comparison-columns p { margin:0 0 6px; }
.manual-history-comparison-columns small { color:#64748b; overflow-wrap:anywhere; }
.manual-history-assertion-label { display:flex; align-items:flex-start; gap:9px; min-width:0; padding:8px 10px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; color:#334155; font-weight:600; line-height:1.4; cursor:pointer; }
.manual-history-assertion-label:has(input:checked) { border-color:#86efac; background:#f0fdf4; color:#166534; }
.manual-history-assertion-label:has(input:disabled) { opacity:.68; cursor:not-allowed; }
.manual-history-assertion-label input[type="checkbox"] { appearance:auto; flex:none; width:18px; height:18px; margin:0; accent-color:#166534; cursor:pointer; }
.manual-history-assertion-label input[type="checkbox"]:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.manual-history-assertion-label input[type="checkbox"]:disabled { cursor:not-allowed; }
.manual-history-confirm:disabled,.manual-history-confirm-and-next:disabled { opacity:.58; filter:saturate(.65); cursor:not-allowed; }
@media (max-width:640px) { .manual-history-search-form > .manual-history-search-controls { align-items:stretch; flex-direction:column; } .manual-history-search-form .manual-history-search-controls input[type="search"] { flex:1 1 auto; } .manual-history-comparison-columns { grid-template-columns:1fr; } }
.project-review-navigation { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:14px 0; padding:9px 12px; border:1px solid #e2e8f0; border-radius:11px; background:#f8fafc; color:#475569; font-size:13px; }
.project-review-navigation > span { text-align:center; font-weight:600; }
.project-review-navigation button:disabled { opacity:.45; cursor:default; }
.project-review-completion { margin:10px 0; padding:10px 12px; border-radius:10px; background:#eff6ff; color:#1e3a5f; font-size:13px; }
.history-confirmation-blocked { margin:8px 0; padding:10px 12px; border-radius:10px; background:#fff7ed; color:#9a3412; font-size:12px; }
.sourcing-project-summary .human-history-count { border-color:#cbd5e1; background:#f8fafc; }
.tender-sourcing-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.offer-card-heading { display:flex; align-items:flex-start; gap:10px; margin-bottom:12px; }
.offer-card-heading b { min-width:0; font-size:16px; overflow-wrap:anywhere; }
.offer-price { font-size:25px; font-weight:700; color:#0f172a; margin-bottom:12px; }
.offer-price small { font-size:13px; font-weight:500; color:#64748b; }
.offer-meta { display:flex; flex-wrap:wrap; gap:8px 18px; color:#475569; font-size:13px; }
.offer-meta span { min-width:0; overflow-wrap:anywhere; }
.offer-explanation { margin:12px 0; color:#334155; }
.offer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.offer-card.compact { margin:0; box-shadow:none; }
.offer-evidence { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.offer-evidence span { padding:5px 8px; border-radius:999px; font-size:11px; font-weight:700; }
.offer-evidence .matched { color:#11623f; background:#dcf7e9; }
.offer-evidence .conflict { color:#991b1b; background:#fee2e2; }
.sourcing-notices { display:grid; gap:8px; margin:0 0 16px; }
.sourcing-notice { padding:11px 13px; border-radius:10px; font-size:12px; line-height:1.45; }
.sourcing-notice-info { background:#eaf4fb; color:#245579; }
.sourcing-notice-warning { background:#fff7ed; color:#9a3412; }
.sourcing-notice-error { background:#feecec; color:#991b1b; }
.sourcing-warning { margin-top:16px; padding:12px 14px; border-radius:10px; background:#fff7ed; color:#9a3412; }
.sourcing-loading { min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#334155; }
.sourcing-loading small { color:#64748b; }
.sourcing-project-summary { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.sourcing-project-summary > div { padding:13px; border-radius:12px; background:#f8fafc; border:1px solid #e2e8f0; }
.sourcing-project-summary b { font-size:18px; color:#0f172a; }
.sourcing-filters { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 10px; }
.sourcing-filter { border:1px solid #dbe4ee; border-radius:999px; padding:6px 10px; background:#f8fafc; color:#475569; font-size:11px; }
.sourcing-filter:hover { border-color:#94a3b8; background:#fff; }
.sourcing-filter.active { border-color:#334155; background:#334155; color:#fff; }
.sourcing-decision { display:inline-flex; flex-direction:column; align-items:flex-start; gap:3px; max-width:100%; padding:5px 8px; border-radius:7px; background:#eef0f2; color:#475569; font-size:11px; font-weight:700; line-height:1.2; }
.sourcing-decision-label { white-space:nowrap; }
.sourcing-decision-reason { max-width:100%; color:#64748b; font-size:10px; font-weight:500; line-height:1.3; overflow-wrap:anywhere; }
.sourcing-decision-match { background:#e5f4eb; color:#17613c; }
.sourcing-decision-likely-match { background:#e5f0f8; color:#245579; }
.sourcing-decision-alternative { background:#fff3df; color:#8b5e16; }
.sourcing-decision-review { background:#fff0bd; color:#79500a; }
.sourcing-decision-reject { background:#fbe7e6; color:#8f3029; }
.sourcing-decision-without-offers { background:#eef0f2; color:#59616d; }
.sourcing-project-list { border:1px solid #e2e8f0; border-radius:12px; overflow-x:auto; overflow-y:hidden; }
.project-result-grid { min-width:1220px; }
.project-result-header, .project-result-row { display:grid; grid-template-columns:minmax(180px,1.35fr) 72px minmax(220px,1.85fr) minmax(140px,.9fr) minmax(165px,1fr) minmax(180px,1.15fr) minmax(180px,1fr); gap:10px; }
.project-result-header { padding:10px 14px; border-bottom:1px solid #cbd5e1; background:#f8fafc; color:#475569; font-size:10px; font-weight:750; letter-spacing:.02em; }
.project-result-row { padding:12px 14px; border-bottom:1px solid #e2e8f0; align-items:start; font-size:13px; }
.project-result-row > span { min-width:0; overflow-wrap:anywhere; word-break:break-word; }
.project-result-quantity { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.project-result-price, .project-result-total { min-width:0; text-align:right; white-space:normal; overflow-wrap:anywhere; word-break:normal; line-height:1.4; font-variant-numeric:tabular-nums; }
.project-result-price-primary { display:block; min-width:0; overflow-wrap:anywhere; }
.project-result-status, .project-result-source { min-width:0; overflow-wrap:anywhere; word-break:normal; line-height:1.4; }
.project-result-status .sourcing-decision { min-width:0; white-space:normal; }
.project-result-status .sourcing-decision-label { white-space:normal; overflow-wrap:anywhere; }
.project-offer-link { color:#245579; text-decoration:underline; text-decoration-color:#b7cfdf; text-underline-offset:2px; }
.project-offer-link:hover { color:#123b58; text-decoration-color:#245579; }
.project-review-candidates { display:block; margin-top:8px; padding:5px 8px; font-size:11px; }
.project-item-source { margin:0 0 16px; color:#475569; font-size:14px; }
.project-result-secondary { display:block; margin-top:5px; color:#64748b; font-size:11px; line-height:1.3; overflow-wrap:anywhere; }
.project-result-empty { padding:22px 14px; color:#64748b; text-align:center; }
.project-result-row:last-child { border-bottom:0; }
.offer-total { display:flex; flex-wrap:wrap; gap:16px; margin:12px 0; color:#475569; font-size:13px; }
.manual-file-icon { background:#475569; }
.manual-view { max-width:1500px; margin:0 auto; }
.manual-workspace { padding:22px; }
.manual-heading { align-items:center; margin-bottom:16px; }.manual-heading .badge { white-space:nowrap; }
.manual-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.manual-toolbar-actions { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.manual-trust-note { margin:13px 0 15px; padding:10px 12px; border-radius:10px; background:#f8fafc; color:#64748b; font-size:11px; line-height:1.45; }
.manual-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.manual-table { width:100%; min-width:1120px; border-collapse:collapse; background:#fff; }
.manual-table th { padding:10px 9px; border-bottom:1px solid var(--line-strong); background:#f8fafc; color:#475569; font-size:10px; font-weight:750; text-align:left; white-space:nowrap; }
.manual-table td { padding:8px; border-bottom:1px solid #e7eaee; vertical-align:top; }
.manual-table tr:last-child td { border-bottom:0; }
.manual-table tr.manual-invalid { background:#fffaf7; }.manual-table tr.manual-focused { background:#fbfdff; }
.manual-selector { width:38px; text-align:center !important; }.manual-number { width:42px; color:#64748b; text-align:center !important; font-variant-numeric:tabular-nums; }
.manual-cell-input { width:100%; min-width:125px; border:1px solid var(--line); border-radius:8px; padding:8px 9px; background:#fff; color:#1d2127; outline:none; font-size:12px; }
.manual-cell-input:focus { border-color:#64748b; box-shadow:0 0 0 3px #eef2f7; }.manual-table td:nth-child(3) .manual-cell-input { min-width:230px; }.manual-table td:nth-child(4) .manual-cell-input { min-width:190px; }
.manual-actions { min-width:170px; }.manual-actions > div:first-child { display:flex; gap:2px; }.manual-actions .button { padding:6px 7px; font-size:11px; }
.manual-row-feedback { display:grid; gap:3px; margin-top:4px; font-size:10px; line-height:1.3; }.manual-error { color:#b42318; }.manual-warning { color:#9a6700; }
.manual-empty { padding:28px 16px; color:#64748b; text-align:center; font-size:12px; }
.manual-paste-card { width:min(760px,calc(100vw - 32px)); }.manual-paste-input { min-height:210px; resize:vertical; line-height:1.5; }
.manual-diagnostic-warnings { display:grid; gap:5px; margin-bottom:14px; padding:10px 12px; border-radius:10px; background:#f8fafc; color:#64748b; font-size:11px; }.manual-diagnostic-warnings b { color:#475569; }
@media (max-width:760px) {
  .intent-summary, .sourcing-project-summary, .offer-grid, .understanding-resolved { grid-template-columns:1fr; }
  .understanding-heading { flex-direction:column; }
  .sourcing-card { width:calc(100vw - 32px); }
  .sourcing-mode-controls { grid-template-columns:minmax(0,1fr); align-items:stretch; }
  .sourcing-mode-status { justify-content:space-between; }
  .sourcing-route-coverage { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .manual-entry-prompt { align-items:flex-start; flex-direction:column; }.manual-entry-prompt .button { margin-left:0; }
  .manual-workspace { padding:14px; }.manual-toolbar .spacer { display:none; }
}

@media (max-width:420px) {
  .sourcing-route-coverage { grid-template-columns:minmax(0,1fr); }
}

.export-reportable-error { display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:10px; padding:13px 14px; border:1px solid #ead9ad; border-radius:11px; background:#fff9e9; color:#624d21; }
.export-reportable-error b { font-size:12px; font-weight:650; }
.export-reportable-error .button { margin-left:auto; }
.support-report-card { width:min(620px,calc(100vw - 32px)); }
.support-report-card > .field-label { margin-top:12px; }
.support-description-input-label { margin-top:18px !important; }
.support-report-textarea { min-height:170px; resize:vertical; line-height:1.45; }
.support-form-error { margin:12px 0 0; padding:10px 12px; border-radius:9px; background:#fff5e5; color:#76520f; font-size:12px; line-height:1.45; }
.admin-reports-card { width:min(1180px,calc(100vw - 40px)); max-width:calc(100vw - 40px); }
.admin-reports-toolbar { display:flex; align-items:center; gap:12px; margin:-4px 0 8px; }
.admin-reports-toolbar .field-label { margin:0; }
.admin-reports-toolbar .select { width:auto; min-width:190px; }
.admin-reports-layout { display:grid; grid-template-columns:minmax(290px,.75fr) minmax(0,1.5fr); gap:16px; align-items:start; }
.admin-report-list { display:grid; align-content:start; gap:7px; max-height:min(60vh,650px); overflow:auto; padding:2px; }
.support-report-item { width:100%; display:grid; gap:6px; padding:12px; border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--ink); text-align:left; }
.support-report-item:hover,.support-report-item.selected { border-color:#8b929d; background:#f8f9fa; }
.support-report-item-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.support-report-item-heading b { min-width:0; overflow-wrap:anywhere; font-size:12px; }
.support-report-item-heading small { flex:0 0 auto; padding:4px 6px; border-radius:7px; background:#eef0f2; color:#555c66; font-size:10px; }
.support-report-item-meta,.support-report-item-error { display:block; color:var(--muted); font-size:10px; line-height:1.4; overflow-wrap:anywhere; }
.support-report-item-error { color:#424953; }
.support-empty,.support-muted { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }
.admin-report-detail { min-width:0; max-height:min(60vh,650px); overflow:auto; padding:15px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.support-detail-title { margin:0 0 12px; font-size:17px; overflow-wrap:anywhere; }
.support-description-label { display:block; margin-bottom:5px; color:#505762; font-size:11px; }
.support-description { margin:0 0 15px; padding:11px 12px; border-radius:9px; background:#f7f8f9; color:#252a31; font-size:12px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.support-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:12px 0; }
.support-field { min-width:0; display:grid; gap:4px; padding:9px 10px; border:1px solid #eceef1; border-radius:9px; background:#fbfbfc; }
.support-field span { color:var(--muted); font-size:10px; }
.support-field b { min-width:0; color:#30353c; font-size:11px; line-height:1.4; font-weight:600; overflow-wrap:anywhere; white-space:pre-wrap; }
.support-detail-actions { display:flex; flex-wrap:wrap; align-items:flex-end; gap:9px; margin:14px 0; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.support-detail-actions > .support-muted { flex:1 0 100%; }
.support-status-control { display:grid; gap:6px; min-width:170px; color:var(--muted); font-size:10px; }
.support-status-control .select { font-size:12px; }
.support-snapshot { margin-top:12px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; }
.support-snapshot > summary { padding:11px 12px; cursor:pointer; color:#353b43; font-size:12px; font-weight:700; }
.support-snapshot > .support-muted,.support-snapshot > p { padding:0 12px 10px; }
.support-snapshot [data-support-snapshot-content] { padding:0 12px 12px; }
.support-snapshot h4 { margin:15px 0 8px; font-size:11px; }
.support-snapshot-options { margin-top:12px; }
.support-page-statuses { display:flex; flex-wrap:wrap; gap:6px; }
.support-page-statuses span { max-width:100%; padding:5px 8px; border-radius:7px; background:#eef0f2; color:#4d545e; font-size:10px; overflow-wrap:anywhere; }
.support-snapshot-table-wrap { max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:8px; background:#fff; }
.support-snapshot-table { width:max-content; min-width:100%; border-collapse:collapse; font-size:10px; }
.support-snapshot-table th,.support-snapshot-table td { max-width:320px; padding:7px 8px; border-right:1px solid #eceef1; border-bottom:1px solid #eceef1; text-align:left; vertical-align:top; white-space:pre-wrap; overflow-wrap:anywhere; }
.support-snapshot-table th { position:sticky; top:0; background:#f1f3f5; color:#424851; }
.support-show-more { margin-top:9px; }
.admin-reports-pagination { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:14px; padding-top:13px; border-top:1px solid var(--line); }
.admin-reports-pagination span { min-width:85px; color:var(--muted); font-size:11px; text-align:center; }
@media (max-width:820px) {
  .admin-reports-card { width:calc(100vw - 24px); max-width:calc(100vw - 24px); padding:17px; }
  .admin-reports-layout { grid-template-columns:1fr; }
  .admin-report-list,.admin-report-detail { max-height:38vh; }
  .admin-report-detail { max-height:48vh; }
  .support-detail-grid { grid-template-columns:1fr; }
  .export-reportable-error .button { margin-left:0; }
}

.auth-screen { min-height:100vh; min-height:100dvh; display:grid; place-items:center; padding:24px; background:var(--bg); }
.auth-card { width:min(420px,100%); display:grid; gap:12px; padding:30px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow); }
.auth-card h1 { margin:0; font-size:25px; letter-spacing:-.03em; }
.auth-card > p { margin:0 0 7px; color:var(--muted); font-size:13px; line-height:1.5; }
.auth-card .field-label { margin:4px 0 -5px; }
.auth-submit { width:100%; margin-top:7px; }
.auth-error,.user-form-status { margin:0; padding:10px 12px; border-radius:9px; background:#fff2ef; color:#9f2d26; font-size:12px; line-height:1.45; }
.users-card { width:min(1080px,calc(100vw - 40px)); max-width:calc(100vw - 40px); }
.user-create-form { padding:16px; border:1px solid var(--line); border-radius:12px; background:#f8f9fb; }
.user-create-form h3 { margin:0 0 14px; font-size:14px; }
.user-create-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.user-create-fields label { min-width:0; }
.user-create-fields .field-label { margin-bottom:6px; }
.user-create-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.user-create-actions small { color:var(--muted); font-size:10px; line-height:1.45; }
.user-form-status { margin-top:11px; }
.user-form-status[hidden] { display:none; }
.user-list-status { min-height:17px; margin:14px 0 7px; color:var(--muted); font-size:11px; line-height:1.5; }
.user-list { display:grid; gap:8px; max-height:min(48vh,480px); overflow:auto; }
.user-row { display:grid; grid-template-columns:minmax(160px,1fr) auto minmax(320px,1.45fr); align-items:center; gap:12px; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.user-identity { display:grid; gap:4px; min-width:0; }
.user-identity b { overflow-wrap:anywhere; font-size:12px; }
.user-identity span { color:var(--muted); font-size:10px; }
.user-identity .user-meta { color:#737b86; font-size:10px; line-height:1.4; overflow-wrap:anywhere; }
.user-state { padding:5px 8px; border-radius:99px; font-size:10px; font-weight:700; white-space:nowrap; }
.user-state.enabled { background:#e9f6ee; color:#17613c; }
.user-state.disabled { background:#fbe9e7; color:#9f2d26; }
.user-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.user-actions .button { padding:7px 9px; font-size:10px; }
.user-actions .user-disable,.user-actions .user-delete { color:#9f2d26; }
.users-pagination { display:flex; justify-content:flex-end; align-items:center; gap:11px; margin-top:14px; padding-top:13px; border-top:1px solid var(--line); }
.users-pagination span { min-width:85px; color:var(--muted); font-size:11px; text-align:center; }
.reset-user-card { width:min(520px,calc(100vw - 32px)); }
.reset-user-card > .field-label { margin-top:13px; }
.reset-user-card .modal-header p b { color:var(--ink); overflow-wrap:anywhere; }
.multi-provider-panel { display:grid; gap:8px; margin:10px 0; padding:13px 14px; border:1px solid #bfdbfe; border-radius:11px; background:#f5faff; }
.multi-provider-panel[hidden] { display:none; }
.multi-provider-toggle,.multi-provider-option { display:flex; align-items:center; gap:8px; color:#1e3a5f; font-size:13px; font-weight:650; }
.multi-provider-options { display:flex; flex-wrap:wrap; gap:8px 18px; padding:2px 0; }
.multi-provider-options[hidden] { display:none; }
.multi-provider-option { font-weight:500; }
.multi-provider-panel .sourcing-warning,.multi-provider-panel .mode-status { margin:0; font-size:12px; line-height:1.5; }
.multi-provider-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.multi-provider-summary > div { display:grid; gap:5px; padding:12px; border:1px solid #dbe4ee; border-radius:11px; background:#f8fafc; }
.multi-provider-summary small { color:#64748b; }
.multi-provider-summary b { color:#0f172a; font-size:17px; }
.multi-provider-row { margin:12px 0; padding:14px; border:1px solid #dbe4ee; border-radius:13px; background:#fff; }
.multi-provider-row > h3 { margin:0 0 10px; }
.multi-provider-outcomes { margin:8px 0 14px; padding-left:20px; color:#475569; font-size:12px; line-height:1.6; }
.multi-provider-offers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.multi-provider-offer { min-width:0; padding:12px; border:1px solid #e2e8f0; border-radius:10px; background:#fbfdff; overflow-wrap:anywhere; }
.multi-provider-offer.is-selected { border-color:#6ebf98; background:#f1fbf5; }
.multi-provider-offer h4 { margin:0 0 7px; color:#1e293b; }
.multi-provider-offer p { margin:6px 0; color:#475569; font-size:12px; line-height:1.5; }
.multi-provider-offer .multi-provider-price { color:#0f172a; font-size:16px; font-weight:750; }
.multi-provider-offer a { font-size:12px; }
.multi-provider-commercial-note,.multi-provider-partial-warning { padding:9px 11px; border-radius:8px; background:#fff7ed; color:#9a3412!important; }
.multi-provider-row .sourcing-warning p { margin-bottom:0; }
.ai-first-local-controls[hidden],.ai-first-live-confirm[hidden],.ai-first-demo-warning[hidden] { display:none; }
.ai-first-local-controls { display:grid; gap:7px; padding:4px 0 2px; }
.ai-first-context { width:100%; min-height:82px; resize:vertical; }
.ai-first-context-meta { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:10px; line-height:1.4; }
.optional-label { color:var(--muted); font-size:10px; font-weight:500; }
.ai-first-live-confirm { display:flex; align-items:flex-start; gap:9px; padding:10px; border:1px solid #f2c98f; border-radius:9px; background:#fff9ef; color:#754612; font-size:11px; line-height:1.45; }
.ai-first-live-confirm input { margin:2px 0 0; }
.ai-first-demo-warning { margin:3px 0 0; padding:10px; border-radius:9px; background:#eaf4fb; color:#245579; font-size:11px; line-height:1.45; }
.ai-first-resume-controls { display:grid; gap:6px; padding:10px; border:1px solid #f0d7a9; border-radius:9px; background:#fffaf1; color:#654614; font-size:11px; line-height:1.4; }
.ai-first-resume-controls small { color:#7c6543; font-size:10px; }
.ai-first-retry-pages { display:grid; gap:5px; }
.ai-first-retry-pages label { display:flex; align-items:flex-start; gap:7px; }
.ai-first-add-form { display:grid; gap:9px; margin:10px; padding:11px; border:1px solid #cbd8e7; border-radius:9px; background:#f7faff; }
.ai-first-add-form > b { font-size:11px; }
.ai-first-add-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:7px; }
.ai-first-add-fields label { display:grid; gap:4px; color:var(--muted); font-size:9px; }
.ai-first-add-fields .input { min-width:0; padding:7px; font-size:10px; }
.ai-first-table-caption { padding:9px 10px; border-bottom:1px solid var(--line); color:#5d6570; font-size:10px; font-weight:700; }
.ai-first-resolve-row { display:flex; gap:6px; margin-top:7px; }
.ai-first-resolve-row .input { flex:1; min-width:0; padding:6px 8px; font-size:10px; }
.ai-first-resolve-row .button { padding:5px 8px; font-size:9px; }
.ai-first-table tr.is-flagged { box-shadow:inset 3px 0 #dfa43e; }
.ai-first-table tr.is-flagged td:first-child { background:#fff5dd; }
.ai-first-live-pages { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:12px auto 0; }
.ai-first-live-pages span { padding:5px 8px; border:1px solid #d9dee4; border-radius:999px; background:#f7f8fa; color:#4d5662; font-size:10px; }
.ai-first-live-pages span.success { border-color:#a8dbbd; background:#effaf3; color:#18613d; }
.ai-first-live-pages span.warning { border-color:#f1c8a0; background:#fff7ed; color:#8c4b16; }
.ai-first-review-view { min-height:calc(100vh - 110px); }
.ai-first-review-toolbar { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin:0 0 10px; }
.ai-first-review-toolbar h2 { margin:3px 0 5px; font-size:22px; }
.ai-first-review-toolbar p { margin:0; color:var(--muted); font-size:11px; }
.ai-first-review-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.ai-first-review-summary { margin-bottom:10px; }
.ai-first-review-sync-warning { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 9px; padding:9px 12px; border:1px solid #e8bd72; border-radius:7px; background:#fff8e9; color:#684b16; font-size:12px; }
.ai-first-review-sync-warning[hidden] { display:none; }
.ai-first-review-sync-warning .button { flex:none; }
.ai-first-review-summary .summary-card { min-height:62px; padding:10px 12px; }
.ai-first-review-summary .summary-card b { font-size:19px; }
.ai-first-review-workspace { grid-template-columns:42% minmax(0,58%); height:calc(100vh - 340px); min-height:480px; margin-top:10px; }
.ai-first-pdf-panel,.ai-first-table-panel { min-width:0; min-height:0; }
.ai-first-page-nav { display:flex; align-items:center; gap:5px; }
.ai-first-page-nav .button { padding:5px 8px; }
.ai-first-page-nav .select { width:100px; padding:6px 8px; }
.ai-first-zoom-controls { display:flex; align-items:center; gap:3px; margin-left:auto; }
.ai-first-zoom-controls .button { padding:5px 7px; font-size:10px; white-space:nowrap; }
.ai-first-zoom-controls output { min-width:62px; color:var(--muted); font-size:10px; text-align:center; }
.ai-first-pdf-stage { padding:18px; }
.ai-first-pdf-image-wrap img { display:block; width:1000px; height:auto; }
.ai-first-table-panel { display:flex; flex-direction:column; }
.ai-first-table-heading { align-items:center; padding:11px 13px; border-bottom:1px solid var(--line); }
.ai-first-table-heading h3 { margin:0 0 4px; font-size:13px; }
.ai-first-table-heading p { margin:0; color:var(--muted); font-size:10px; }
.ai-first-issues { display:grid; gap:6px; padding:8px 11px 0; }
.ai-first-issue { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:8px 9px; border:1px solid #f1d19a; border-radius:8px; background:#fff9ed; color:#714615; font-size:10px; line-height:1.45; }
.ai-first-issue.blocking { border-color:#f0b5b1; background:#fff3f2; color:#8a302b; }
.ai-first-issue button { flex:none; padding:4px 7px; font-size:9px; }
.ai-first-table-scroll { flex:1; min-height:0; }
.ai-first-row-toolbar,.ai-first-bulk-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:8px; padding:9px 10px; border-bottom:1px solid var(--line); background:#fff; }
.ai-first-row-toolbar label,.ai-first-bulk-toolbar label { display:grid; gap:4px; color:var(--muted); font-size:10px; }
.ai-first-search-label { flex:1 1 250px; }
.ai-first-row-toolbar .input,.ai-first-row-toolbar .select,.ai-first-bulk-toolbar .select { min-width:130px; min-height:32px; padding:6px 8px; font-size:10px; }
.ai-first-row-toolbar [data-ai-first-filter-summary],.ai-first-bulk-toolbar [data-ai-first-selected-count] { color:var(--muted); font-size:10px; }
.ai-first-source-table-group { margin:10px; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.ai-first-source-table-group h4 { display:flex; justify-content:space-between; gap:8px; margin:0; padding:8px 10px; background:#f6f7f8; color:#3f4650; font-size:11px; }
.ai-first-source-table-group h4 small { color:var(--muted); font-size:9px; font-weight:500; }
.ai-first-source-table-group[hidden] { display:none; }
.ai-first-table th { min-width:115px; }
.ai-first-table td { min-width:115px; max-width:320px; }
.ai-first-table tr.is-excluded { opacity:1; color:#737b85; }
.ai-first-cell-input { min-height:37px; }
.ai-first-export-page { display:flex; align-items:center; gap:5px; white-space:nowrap; font-size:10px; }
.ai-first-source-page { padding:5px 6px; white-space:nowrap; }
.ai-first-cell-source { display:block; margin-top:3px; color:#7b8390; font-size:9px; line-height:1.3; }
.ai-first-page-details { margin:4px 0 10px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.ai-first-page-details summary { cursor:pointer; color:#424852; font-size:11px; font-weight:650; }
#ai-first-page-status-list { display:grid; gap:6px; margin-top:9px; }
.ai-first-page-status { display:grid; grid-template-columns:minmax(150px,auto) minmax(150px,1fr) auto auto minmax(150px,auto); gap:8px; align-items:center; padding:7px 0; border-top:1px solid #eceef0; color:#4d5560; font-size:10px; }
.ai-first-page-status .button { padding:4px 6px; font-size:10px; text-align:left; }
.ai-first-page-status span { line-height:1.4; }
.ai-first-export-disabled-reason { grid-column:5; color:var(--muted); font-size:9px; line-height:1.3; }
.ai-first-export-disabled-reason[hidden] { display:none; }
.ai-first-run-feedback { margin-top:9px; padding:11px 12px; border:1px solid #edc39b; border-radius:10px; background:#fff8ef; color:#714615; font-size:11px; line-height:1.5; }
.ai-first-run-feedback[hidden] { display:none; }
.ai-first-run-feedback p { margin:5px 0; }
.ai-first-run-feedback ul { margin:5px 0 9px; padding-left:18px; }
.ai-first-table tr.ai-first-row--attention td { background:#fff7eb; }
.ai-first-table tr.ai-first-row--checked td { background:#f1f8f3; }
.ai-first-table tr.ai-first-row--unsaved td { background:#edf5fc; }
.ai-first-table tr.ai-first-row--neutral td { background:#f7f8f9; }
.ai-first-table td.ai-first-cell--attention { background:#fff0d8 !important; }
.ai-first-table td.ai-first-cell--checked { background:#edf7f0 !important; }
.ai-first-table td.ai-first-cell--unsaved { background:#e6f1fb !important; }
.ai-first-row--attention td:first-child { box-shadow:inset 3px 0 #d69a36; }
.ai-first-row--checked td:first-child { box-shadow:inset 3px 0 #55946d; }
.ai-first-row--unsaved td:first-child { box-shadow:inset 3px 0 #5a91ba; }
.ai-first-row--neutral td:first-child { box-shadow:inset 3px 0 #a6abb1; }

/* AI-first Human Review: keep controls separate from the horizontally scrollable source table. */
.ai-first-review-toolbar { align-items:center; gap:12px; margin-bottom:7px; }
.ai-first-review-toolbar h2 { font-size:21px; margin:2px 0 3px; }
.ai-first-review-toolbar p { font-size:12px; }
.ai-first-review-actions { gap:6px; }
.ai-first-review-actions .button { min-height:35px; font-size:11px; }
.ai-first-help { margin:0 0 7px; padding:6px 10px; border:1px solid #e7eaee; border-radius:8px; background:#fbfcfd; color:#56606b; font-size:11px; }
.ai-first-help summary { cursor:pointer; font-weight:650; }
.ai-first-help p { margin:7px 0 2px; line-height:1.45; }
.ai-first-review-summary { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-bottom:7px; }
.ai-first-review-summary .summary-card { min-width:0; min-height:51px; padding:7px 10px; border-radius:9px; }
.ai-first-review-summary .summary-card small { font-size:10px; line-height:1.25; }
.ai-first-review-summary .summary-card b { font-size:17px; }
.ai-first-review-workspace { grid-template-columns:minmax(285px,39fr) minmax(0,61fr); height:auto; min-height:470px; margin-top:7px; overflow:visible; }
.ai-first-table-panel { min-width:0; width:100%; max-width:100%; overflow:visible; }
.ai-first-table-heading { min-width:0; flex:0 0 auto; gap:8px; padding:8px 10px; }
.ai-first-table-heading h3 { font-size:13px; }
.ai-first-table-heading p { font-size:11px; line-height:1.35; }
.ai-first-table-heading > div { min-width:0; }
.ai-first-table-heading .button { flex:0 0 auto; min-height:32px; font-size:10px; }
.ai-first-issues { flex:0 0 auto; max-height:112px; overflow:auto; padding:5px 8px 0; }
.ai-first-issue { padding:6px 8px; font-size:11px; }
.ai-first-review-controls { flex:0 0 auto; min-width:0; width:100%; }
.ai-first-row-toolbar,.ai-first-bulk-toolbar { align-items:center; gap:6px; padding:6px 8px; }
.ai-first-selection-actions { display:flex; min-width:0; flex:1 1 100%; flex-wrap:wrap; align-items:center; gap:5px 8px; }
.ai-first-selection-actions .button { min-height:32px; font-size:10px; }
.ai-first-selection-actions [data-ai-first-selected-count] { min-width:0; color:var(--muted); font-size:10px; line-height:1.4; }
.ai-first-selection-actions .button:disabled { opacity:.55; cursor:default; }
.ai-first-row-toolbar label,.ai-first-bulk-toolbar label { font-size:10px; }
.ai-first-row-toolbar .input,.ai-first-row-toolbar .select,.ai-first-bulk-toolbar .select { min-width:110px; min-height:34px; font-size:11px; }
.ai-first-search-label { flex:1 1 160px; }
.ai-first-row-toolbar .button,.ai-first-bulk-toolbar .button { min-height:32px; font-size:10px; }
.ai-first-row-toolbar [data-ai-first-filter-summary],.ai-first-bulk-toolbar [data-ai-first-selected-count] { font-size:10px; }
.ai-first-table-scroll { flex:1 1 180px; min-width:0; width:100%; max-width:100%; min-height:180px; max-height:48vh; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; isolation:isolate; }
.ai-first-source-table-group { width:max-content; min-width:100%; margin:7px 0 10px; overflow:visible; border-radius:7px; }
.ai-first-source-table-group h4 { position:sticky; left:0; width:max-content; min-width:100%; box-sizing:border-box; padding:7px 9px; font-size:11px; }
.ai-first-table { --ai-first-selector-column-width:48px; width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; font-size:12px; }
.ai-first-table th { min-width:122px; height:43px; padding:7px 9px; font-size:11px; }
.ai-first-table td { min-width:122px; max-width:360px; }
.ai-first-table th.selector,.ai-first-table td.selector { position:sticky; left:0; box-sizing:border-box; width:var(--ai-first-selector-column-width); min-width:var(--ai-first-selector-column-width); max-width:var(--ai-first-selector-column-width); padding:0; text-align:center; background-color:#fafbfc; background-clip:padding-box; box-shadow:1px 0 0 #dfe4ea; }
.ai-first-table td.selector { z-index:5; }
.ai-first-table th.selector { top:0; z-index:11; background-color:#f7f8f9; }
.ai-first-row-select-hit { position:relative; display:flex; width:44px; height:44px; margin:0 auto; align-items:center; justify-content:center; cursor:pointer; border-radius:5px; }
.ai-first-row-select-hit input { position:absolute; inset:0; z-index:1; width:44px; height:44px; margin:0; opacity:0; cursor:pointer; }
.ai-first-row-select-hit > span { box-sizing:border-box; display:block; width:21px; height:21px; border:1px solid #89939d; border-radius:4px; background:#fff; pointer-events:none; }
.ai-first-row-select-hit input:checked + span { border-color:#416b84; background:#416b84; }
.ai-first-row-select-hit input:checked + span::after { content:""; display:block; width:5px; height:10px; margin:2px auto; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.ai-first-row-select-hit input:focus-visible + span { outline:2px solid #416b84; outline-offset:2px; }
.ai-first-row-select-hit:focus-within { outline:2px solid #416b84; outline-offset:-2px; }
.ai-first-table th:nth-child(2),.ai-first-table td:nth-child(2) { position:sticky; left:var(--ai-first-selector-column-width); min-width:155px; max-width:210px; background-color:#fff; background-clip:padding-box; box-shadow:1px 0 0 #e5e8ec; }
.ai-first-table td:nth-child(2) { z-index:6; }
.ai-first-table th:nth-child(2) { top:0; z-index:10; background-color:#f7f8f9; }
.ai-first-table tr.is-excluded td { background-color:#f7f8f9; }
.ai-first-table tr.active td:nth-child(2) { background:#eef3fa; }
.ai-first-table tr.ai-first-row--attention td:nth-child(2) { background:#fff7eb; }
.ai-first-table tr.ai-first-row--checked td:nth-child(2) { background:#f1f8f3; }
.ai-first-table tr.ai-first-row--unsaved td:nth-child(2) { background:#edf5fc; }
.ai-first-table tr.is-excluded td:nth-child(2) { background:#f7f8f9; }
.ai-first-open-row { min-height:28px; padding:3px 2px; font-size:11px; font-weight:700; }
.ai-first-cell-source { font-size:10px; }
.ai-first-cell-input { min-height:42px; font-size:12px; }
.ai-first-status-pill { display:inline-flex; align-items:center; white-space:nowrap; border-radius:999px; padding:4px 7px; font-size:10px; font-weight:650; }
.ai-first-status-pill--checked { background:#e9f4ec; color:#28613d; }
.ai-first-status-pill--attention { background:#f3f0e8; color:#695728; }
.ai-first-status-pill--unsaved { background:#eaf2f8; color:#315b79; }
.ai-first-status-pill--neutral { background:#f0f2f4; color:#5a636d; }
.ai-first-row-inspector { flex:0 0 auto; min-width:0; padding:7px 9px; border-bottom:1px solid #e4e8ec; background:#f8fafc; }
.ai-first-row-inspector[hidden] { display:none; }
.ai-first-inspector-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.ai-first-inspector-heading small { color:#69727d; font-size:10px; }
.ai-first-inspector-heading h4 { margin:2px 0 0; color:#303944; font-size:12px; }
.ai-first-inspector-heading .button { min-height:29px; padding:4px 8px; font-size:10px; }
.ai-first-inspector-values { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; max-height:84px; overflow:auto; }
.ai-first-inspector-value { min-width:0; display:grid; align-content:start; gap:3px; padding:6px 7px; border:1px solid #e5e9ed; border-radius:6px; background:#fff; color:#303944; font-size:11px; overflow-wrap:anywhere; }
.ai-first-inspector-value > b { overflow:hidden; color:#5b6570; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.ai-first-inspector-value > span { white-space:pre-wrap; }
.ai-first-inspector-value small { display:block; color:#7b838c; font-size:9px; }
.ai-first-inspector-correction { color:#245a3b; }
.ai-first-inspector-review { display:grid; grid-template-columns:minmax(180px,1fr) minmax(0,1.5fr); gap:9px; margin-top:7px; font-size:10px; }
.ai-first-inspector-role { display:grid; grid-template-columns:1fr; gap:5px; }
.ai-first-inspector-role label { display:grid; gap:3px; color:#66707b; font-size:10px; }
.ai-first-inspector-role .select { min-width:0; min-height:31px; padding:5px 7px; font-size:11px; }
.ai-first-inspector-role [hidden] { display:none; }
.ai-first-inspector-review > div > b { display:block; margin-bottom:3px; color:#59636e; font-size:10px; }
.ai-first-inspector-issues { display:grid; gap:3px; margin:0; padding:0; list-style:none; }
.ai-first-inspector-issues li { display:flex; justify-content:space-between; align-items:center; gap:5px; color:#695728; }
.ai-first-inspector-issues .button { flex:0 0 auto; min-height:24px; padding:2px 5px; font-size:9px; }
.ai-first-inspector-clear { margin:0; color:#66727d; font-size:10px; }
.ai-first-inspector-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.ai-first-inspector-actions .button { min-height:31px; padding:5px 8px; font-size:10px; }
.ai-first-review-footer { display:flex; flex-wrap:wrap; align-items:center; gap:5px 12px; flex:0 0 auto; padding:7px 9px; border-top:1px solid #e6e9ed; color:#59636e; background:#fafbfc; font-size:10px; }
.ai-first-review-footer > span:not(.ai-first-next-action) { white-space:nowrap; }
.ai-first-review-footer b { color:#303944; }
.ai-first-next-action { margin-left:auto; color:#42515e; }
.ai-first-export-feedback { display:grid; grid-template-columns:minmax(240px,1fr) minmax(190px,auto) auto; gap:10px; align-items:start; margin:-1px 0 7px; padding:8px 10px; border:1px solid #dfe6ec; border-radius:8px; background:#f8fafb; color:#47535e; font-size:10px; line-height:1.4; }
.ai-first-export-feedback[hidden] { display:none; }
.ai-first-export-feedback b { font-size:11px; }
.ai-first-export-feedback p { margin:3px 0 0; }
.ai-first-export-feedback details { font-size:10px; }
.ai-first-export-feedback summary { cursor:pointer; color:#536170; }
.ai-first-export-feedback details p { max-width:420px; }
.ai-first-export-feedback .button { min-height:27px; padding:3px 6px; font-size:10px; }
.ai-first-page-details { margin-bottom:7px; padding:7px 10px; }
.ai-first-page-details summary { font-size:11px; }
.ai-first-page-status { font-size:11px; }
.ai-first-review-workspace .empty-table { min-width:0; margin:auto; padding:14px; font-size:12px; }
@media (max-width:1100px) {
  .ai-first-review-workspace { grid-template-columns:minmax(245px,34fr) minmax(0,66fr); }
  .ai-first-review-actions .button { padding:7px 9px; }
  .ai-first-inspector-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ai-first-export-feedback { grid-template-columns:1fr auto; }
  .ai-first-export-feedback details { grid-column:1; }
}
@media (max-width:760px) {
  .ai-first-review-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ai-first-review-workspace { grid-template-columns:minmax(0,1fr); height:auto; min-height:0; }
  .ai-first-pdf-panel { min-height:42vh; }
  .ai-first-table-panel { min-height:62vh; }
  .ai-first-table-scroll { min-height:260px; max-height:58vh; }
  .ai-first-row-inspector { max-height:300px; }
  .ai-first-inspector-review { grid-template-columns:1fr; }
  .ai-first-next-action { flex-basis:100%; margin-left:0; }
  .ai-first-export-feedback { grid-template-columns:1fr; }
  .ai-first-export-feedback details { grid-column:auto; }
}
@media (max-width:980px) { .ai-first-review-workspace { grid-template-columns:40% minmax(0,60%); } .ai-first-review-actions { justify-content:flex-start; } .ai-first-page-status { grid-template-columns:minmax(120px,auto) 1fr; } .ai-first-export-disabled-reason { grid-column:2; } }
@media (max-width:760px) { .ai-first-review-toolbar { align-items:flex-start; flex-direction:column; } .ai-first-review-actions { justify-content:flex-start; } .ai-first-review-workspace { grid-template-columns:1fr; height:auto; min-height:0; } .ai-first-pdf-panel { min-height:48vh; } .ai-first-table-panel { min-height:55vh; } .ai-first-page-status { grid-template-columns:1fr; } .ai-first-export-disabled-reason { grid-column:1; } .ai-first-pdf-panel .pane-header { height:auto; min-height:53px; flex-wrap:wrap; gap:6px; padding:7px 10px; } .ai-first-zoom-controls { margin-left:0; flex-wrap:wrap; } }
@media (max-width:760px) { .multi-provider-summary { grid-template-columns:1fr; } .multi-provider-offers { grid-template-columns:1fr; } }
@media (max-width:760px) {
  .auth-card { padding:23px; }
  .users-card { width:calc(100vw - 24px); max-width:calc(100vw - 24px); padding:17px; }
  .user-create-fields { grid-template-columns:1fr; }
  .user-create-actions { align-items:flex-start; flex-direction:column; }
  .user-row { grid-template-columns:minmax(0,1fr) auto; }
  .user-actions { grid-column:1 / -1; justify-content:flex-start; }
}

/* AI-first selected-row editor: overlay the table pane instead of shrinking it. */
.ai-first-table-panel { position:relative; }
.ai-first-row-inspector:not([hidden]) {
  position:absolute; inset:0; z-index:20; display:flex; flex-direction:column;
  width:100%; height:100%; max-height:none; min-height:0; box-sizing:border-box;
  overflow-x:hidden; overflow-y:auto; padding:0; border:1px solid #dfe5ea;
  border-radius:8px; background:#fff; box-shadow:0 10px 32px rgba(25,38,52,.16);
  overscroll-behavior:contain;
}
.ai-first-inspector-heading {
  position:sticky; top:0; z-index:2; flex:0 0 auto; margin:0; padding:12px 14px;
  border-bottom:1px solid #e4e8ec; background:#f8fafc;
}
.ai-first-inspector-heading small { font-size:12px; }
.ai-first-inspector-heading h4 { font-size:15px; }
.ai-first-inspector-values {
  flex:0 0 auto; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
  max-height:none; overflow:visible; padding:12px 14px;
}
.ai-first-inspector-value {
  min-width:0; display:grid; align-content:start; gap:8px; padding:10px;
  border:1px solid #e1e6eb; border-radius:8px; background:#fff; font-size:13px;
}
.ai-first-inspector-value h5 { margin:0; color:#35414c; font-size:13px; line-height:1.35; overflow-wrap:anywhere; }
.ai-first-inspector-source { min-width:0; color:#57626e; }
.ai-first-inspector-source small,.ai-first-inspector-editor-field > span {
  display:block; margin-bottom:4px; color:#707b86; font-size:11px; font-weight:650;
}
.ai-first-inspector-source p { margin:0; color:#4b5560; font-size:12px; line-height:1.45; white-space:pre-wrap; overflow-wrap:anywhere; }
.ai-first-inspector-editor-field { display:grid; gap:4px; min-width:0; }
.ai-first-inspector-editor-field .input {
  width:100%; min-height:76px; box-sizing:border-box; resize:vertical;
  padding:8px 9px; font-size:13px; line-height:1.45; white-space:pre-wrap;
}
.ai-first-inspector-review { flex:0 0 auto; grid-template-columns:minmax(180px,1fr) minmax(0,1.5fr); gap:12px; margin:0; padding:4px 14px 12px; font-size:12px; }
.ai-first-inspector-role label { font-size:12px; }
.ai-first-inspector-role .select { min-height:36px; font-size:12px; }
.ai-first-inspector-review > div > b { font-size:12px; }
.ai-first-inspector-issues li { font-size:12px; line-height:1.4; }
.ai-first-inspector-issues .button { min-height:30px; font-size:11px; }
.ai-first-inspector-clear { font-size:12px; }
.ai-first-inspector-actions {
  position:sticky; bottom:0; z-index:3; flex:0 0 auto; gap:7px; margin-top:auto;
  padding:10px 14px; border-top:1px solid #e2e6eb; background:rgba(255,255,255,.97);
  box-shadow:0 -4px 12px rgba(25,38,52,.06);
}
.ai-first-inspector-actions .button { min-height:38px; padding:7px 11px; font-size:12px; }
@media (max-width:760px) {
  .ai-first-inspector-values { grid-template-columns:minmax(0,1fr); }
  .ai-first-inspector-review { grid-template-columns:minmax(0,1fr); }
  .ai-first-inspector-actions { flex-wrap:wrap; }
}

/* Keep the PDF and table headings inside their own columns at narrow widths. */
.ai-first-pdf-panel .pane-header {
  box-sizing:border-box; width:100%; height:auto; min-height:53px;
  flex-wrap:wrap; align-content:center; justify-content:flex-start;
  gap:6px 8px; padding:7px 10px;
}
.ai-first-pdf-panel .pane-header > div:first-child {
  flex:0 0 auto; min-width:max-content;
}
.ai-first-page-nav { flex:0 1 auto; min-width:0; }
.ai-first-page-nav .select { flex:0 1 100px; min-width:0; }
.ai-first-zoom-controls {
  box-sizing:border-box; flex:0 0 100%; width:100%; min-width:0;
  margin-left:0; justify-content:flex-start; flex-wrap:wrap;
}
.ai-first-zoom-controls output { flex:0 0 auto; }
.ai-first-table-heading {
  box-sizing:border-box; height:auto; min-height:53px; flex-wrap:wrap;
}
.ai-first-table-heading > div { flex:1 1 180px; min-width:0; }
.ai-first-table-heading .button { flex:0 1 auto; max-width:100%; white-space:normal; }
@media (max-width:850px) {
  .ai-first-review-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.ai-first-review-summary .summary-card.warning {
  display:grid; grid-template-columns:minmax(0,1fr); align-content:center;
  align-items:stretch; justify-items:stretch; gap:3px;
}
.ai-first-review-summary .summary-card.warning small {
  display:block; width:100%; max-width:100%; min-width:0;
  line-height:1.25;
}
.ai-first-review-summary .summary-card.warning b {
  display:block; width:100%; max-width:100%; min-width:0;
  font-size:17px; line-height:1.25; overflow-wrap:anywhere;
}
