@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');
:root { --ink:#202124; --muted:#72757f; --paper:#f7f8fc; --card:#fff; --line:#e3e5ee; --green:#3449b8; --lime:#e9edff; --red:#d64b4b; --navy:#22134f; --blue:#3449b8; --blue-soft:#f0f2ff; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:'DM Sans',system-ui,sans-serif; }
button,input,textarea,select { font:inherit; }
.topbar { height:70px; display:flex; justify-content:space-between; align-items:center; padding:0 max(4vw,24px); border-bottom:1px solid var(--line); background:rgba(245,245,240,.9); }
.brand { display:flex; gap:11px; align-items:center; color:var(--ink); text-decoration:none; font:bold 18px 'Manrope'; }
.brand span { display:grid; place-items:center; width:35px; height:35px; border-radius:10px; background:var(--green); color:white; font-size:12px; }
.primary-tabs { align-self:stretch; display:flex; gap:5px; }.primary-tabs button { display:flex; align-items:center; gap:7px; position:relative; border:0; padding:0 15px; background:transparent; color:var(--muted); cursor:pointer; font-size:12px; font-weight:600; }.primary-tabs button::after { content:""; position:absolute; right:12px; bottom:0; left:12px; height:3px; border-radius:3px 3px 0 0; background:transparent; }.primary-tabs button.active { color:var(--green); }.primary-tabs button.active::after { background:var(--green); }.primary-tabs span { font-size:15px; }
.tally-state { font-size:13px; color:var(--muted); border:1px solid var(--line); border-radius:100px; padding:8px 12px; background:white; }
.tally-state i { display:inline-block; width:7px; height:7px; background:#e3a93c; border-radius:50%; margin-right:7px; }
.business-switcher { display:flex; align-items:center; gap:10px; }.business-switcher label { display:flex; align-items:center; gap:8px; }.business-switcher select,.business-switcher button { border:1px solid var(--line); border-radius:9px; padding:8px 11px; background:white; color:var(--ink); font-size:12px; }.business-switcher button { cursor:pointer; }
main { max-width:1440px; margin:auto; padding:56px max(4vw,24px) 70px; }
.app-page { animation:page-in .18s ease-out; }@keyframes page-in { from { opacity:.5; transform:translateY(4px); } }
.page-heading { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:28px; }.page-heading h1 { font-size:clamp(30px,4vw,48px); }.page-heading p:not(.eyebrow) { max-width:650px; margin:10px 0 0; color:var(--muted); }.page-heading > label { min-width:210px; }.page-heading select { width:100%; margin-top:7px; padding:10px; border:1px solid var(--line); border-radius:9px; background:white; color:var(--ink); }.page-primary { padding:11px 16px; border:0; border-radius:9px; background:var(--green); color:white; cursor:pointer; font-weight:700; font-size:12px; }.processing-summary { min-width:145px; padding:13px 16px; border:1px solid var(--line); border-radius:11px; background:white; }.processing-summary strong,.processing-summary span { display:block; }.processing-summary strong { font:600 24px 'Manrope'; }.processing-summary span { margin-top:2px; color:var(--muted); font-size:10px; }
.hero { display:flex; justify-content:space-between; gap:40px; align-items:end; margin-bottom:44px; }
.eyebrow { margin:0 0 12px; color:var(--green); font-size:11px; font-weight:700; letter-spacing:.18em; }
h1 { margin:0; font:600 clamp(38px,5vw,68px)/1.04 'Manrope'; letter-spacing:-.055em; }
h1 em { color:var(--green); font-style:normal; }
.intro { max-width:410px; font-size:17px; line-height:1.6; color:var(--muted); }
.workspace-tabs { display:flex; gap:4px; margin-bottom:14px; padding:4px; width:max-content; border:1px solid var(--line); border-radius:11px; background:#ecefe9; }.workspace-tabs button { border:0; border-radius:7px; padding:9px 15px; background:transparent; color:var(--muted); cursor:pointer; font-size:12px; font-weight:600; }.workspace-tabs button.active { background:white; color:var(--green); box-shadow:0 2px 8px #203d2d12; }
.dashboard-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }.dashboard-cards article { padding:17px 18px; border:1px solid var(--line); border-radius:13px; background:white; }.dashboard-cards span,.control-status span { display:block; color:var(--green); font-size:9px; font-weight:700; letter-spacing:.12em; }.dashboard-cards strong { display:block; margin:8px 0 4px; font:600 20px 'Manrope'; }.dashboard-cards small { color:var(--muted); font-size:10px; }
.analytics-grid { display:grid; grid-template-columns:1.35fr 1fr; gap:14px; }.chart-card { min-width:0; min-height:280px; padding:20px; border:1px solid var(--line); border-radius:14px; background:white; }.chart-card header { display:flex; justify-content:space-between; align-items:start; margin-bottom:22px; }.chart-card header span { color:var(--green); font-size:9px; font-weight:700; letter-spacing:.12em; }.chart-card h2 { margin:5px 0 0; font:600 16px 'Manrope'; }.chart-card header small { color:var(--muted); font-size:10px; }.chart-card header button { border:0; background:transparent; color:var(--green); cursor:pointer; font-size:11px; font-weight:700; }.bar-chart { display:flex; align-items:end; gap:10px; height:205px; overflow-x:auto; }.bar-column { display:grid; grid-template-rows:18px 1fr 16px 14px; min-width:58px; height:100%; text-align:center; }.bar-value { visibility:hidden; color:var(--muted); font-size:8px; white-space:nowrap; }.bar-column:hover .bar-value { visibility:visible; }.bar-track { position:relative; margin:0 auto; width:28px; border-radius:7px 7px 3px 3px; background:#eef1eb; overflow:hidden; }.bar-track i { position:absolute; right:0; bottom:0; left:0; border-radius:7px 7px 3px 3px; background:linear-gradient(#8eb265,var(--green)); }.bar-column strong { font-size:9px; }.bar-column small { color:var(--muted); font-size:8px; }.donut-wrap { display:flex; align-items:center; justify-content:center; gap:30px; min-height:190px; }.status-donut { position:relative; display:grid; place-content:center; width:145px; height:145px; border-radius:50%; text-align:center; }.status-donut::before { content:""; position:absolute; inset:20px; border-radius:50%; background:white; }.status-donut strong,.status-donut small { position:relative; z-index:1; display:block; }.status-donut strong { font:600 25px 'Manrope'; }.status-donut small { color:var(--muted); font-size:9px; }.chart-legend { min-width:120px; }.chart-legend div { display:grid; grid-template-columns:8px 1fr auto; gap:7px; align-items:center; margin:10px 0; font-size:10px; }.chart-legend i { width:8px; height:8px; border-radius:50%; }.chart-legend span { color:var(--muted); }.horizontal-chart > div { display:grid; grid-template-columns:minmax(110px,1fr) 2fr 25px; gap:10px; align-items:center; margin:14px 0; font-size:10px; }.horizontal-chart > div > div { height:8px; overflow:hidden; border-radius:10px; background:#eef1eb; }.horizontal-chart i { display:block; height:100%; border-radius:10px; background:linear-gradient(90deg,var(--lime),var(--green)); }.chart-empty { color:var(--muted); font-size:11px; text-align:center; padding:65px 10px; }.attention-list { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.attention-list button { display:grid; grid-template-columns:28px 1fr auto 12px; gap:9px; align-items:center; min-width:0; padding:11px; border:1px solid var(--line); border-radius:9px; background:#fbfcf9; text-align:left; cursor:pointer; color:var(--ink); }.attention-list button > span:nth-child(2) { min-width:0; }.attention-list strong,.attention-list small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.attention-list strong { font-size:11px; }.attention-list small { margin-top:3px; color:var(--muted); font-size:9px; }.attention-list b { font-size:10px; white-space:nowrap; }.attention-icon { display:grid!important; place-items:center; width:27px; height:27px; border-radius:8px; background:#fff0cf; color:#795b1f; font-weight:700; }.attention-icon.failed { background:#f7dfdc; color:var(--red); }
.profile-overview { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:18px; }.profile-overview article { padding:17px; border:1px solid var(--line); border-radius:12px; background:white; }.profile-overview strong,.profile-overview span { display:block; }.profile-overview strong { font:600 25px 'Manrope'; }.profile-overview span { margin-top:3px; color:var(--muted); font-size:10px; }.business-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.business-profile-card { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:white; }.business-profile-card.selected { border-color:#91aa9b; box-shadow:0 0 0 3px rgba(36,90,69,.06); }.business-profile-card > header { display:grid; grid-template-columns:45px 1fr auto; gap:12px; align-items:center; padding:18px; border-bottom:1px solid var(--line); }.profile-monogram { display:grid; place-items:center; width:45px; height:45px; border-radius:12px; background:#edf3e8; color:var(--green); font-weight:700; }.business-profile-card h2 { margin:0; font:600 15px 'Manrope'; }.business-profile-card p { margin:3px 0 0; color:var(--muted); font-size:10px; }.business-profile-card header > span { padding:5px 8px; border-radius:20px; background:#edf3e8; color:var(--green); font-size:9px; font-weight:700; }.business-profile-card dl { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:0; padding:18px; }.business-profile-card dt { color:var(--muted); font-size:9px; }.business-profile-card dd { margin:4px 0 0; font-size:11px; font-weight:600; }.profile-template-tags { display:flex; flex-wrap:wrap; gap:5px; padding:0 18px 18px; }.profile-template-tags span { padding:5px 7px; border-radius:6px; background:#f0f2ed; color:#526159; font-size:8px; }.business-profile-card footer { display:flex; justify-content:flex-end; gap:8px; padding:12px 18px; border-top:1px solid var(--line); background:#fafbf8; }.business-profile-card footer button { padding:7px 9px; border:1px solid var(--line); border-radius:7px; background:white; color:var(--ink); cursor:pointer; font-size:9px; font-weight:700; }.business-profile-card footer button:first-child { color:var(--green); }
.workspace { display:grid; grid-template-columns:350px minmax(0,1fr); min-height:650px; background:var(--card); border:1px solid var(--line); border-radius:22px; overflow:hidden; box-shadow:0 24px 70px rgba(36,55,46,.08); }
aside { padding:24px; border-right:1px solid var(--line); background:#fafaf7; }
.template-picker { display:block; margin-bottom:14px; }.template-picker select { display:block; width:100%; margin-top:7px; padding:10px; border:1px solid var(--line); border-radius:9px; background:white; color:var(--ink); }
.drop-zone { display:flex; min-height:175px; flex-direction:column; align-items:center; justify-content:center; border:1.5px dashed #aeb8b0; border-radius:14px; cursor:pointer; transition:.2s; text-align:center; background:white; }
.drop-zone:hover,.drop-zone.dragging { border-color:var(--green); background:#f3f8ee; transform:translateY(-1px); }
.drop-zone input { display:none; }.drop-zone strong { font-size:14px; margin:10px 0 5px; }.drop-zone small { color:var(--muted); font-size:11px; }
.upload-icon { display:grid; place-items:center; width:39px; height:39px; border-radius:11px; color:var(--green); background:var(--lime); font-size:22px; }
.progress { padding:14px 2px; }.progress span { display:block; height:3px; background:linear-gradient(90deg,var(--lime),var(--green)); animation:loading 1s infinite; }.progress p { font-size:12px; color:var(--muted); }
@keyframes loading { from { width:8%; } to { width:100%; } }
.queue-head { display:flex; align-items:center; justify-content:space-between; margin:28px 0 12px; }.queue-head h2 { font:600 13px 'Manrope'; }
.icon-button { background:transparent; border:0; cursor:pointer; font-size:20px; color:var(--muted); }
.invoice-list { display:flex; flex-direction:column; gap:7px; }.empty { color:var(--muted); font-size:13px; text-align:center; padding:30px 0; }
.learning-card { margin-top:25px; padding:15px; border-radius:11px; background:#edf3e8; border:1px solid #dce7d4; }.learning-card span,.learning-card strong,.learning-card small,.learning-card a { display:block; }.learning-card span { color:var(--green); font-size:9px; font-weight:700; letter-spacing:.12em; }.learning-card strong { margin-top:7px; font-size:13px; }.learning-card small { margin:4px 0 9px; color:var(--muted); font-size:10px; line-height:1.4; }.learning-card button { width:100%; margin:5px 0 9px; padding:7px; border:1px solid #b7c9a7; border-radius:7px; background:white; color:var(--green); cursor:pointer; font-size:10px; font-weight:700; }.learning-card button:disabled { opacity:.55; }.learning-card a { color:var(--green); font-size:10px; font-weight:700; text-decoration:none; }
.invoice-card { width:100%; display:grid; grid-template-columns:36px 1fr 8px; gap:10px; align-items:center; border:1px solid transparent; border-radius:11px; padding:10px; text-align:left; background:transparent; cursor:pointer; color:var(--ink); }
.invoice-card:hover,.invoice-card.selected { background:white; border-color:var(--line); box-shadow:0 5px 15px rgba(30,50,40,.05); }.doc-icon { display:grid; place-items:center; width:36px; height:40px; border-radius:8px; background:#edf0ea; }
.invoice-card strong,.invoice-card small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.invoice-card strong { font-size:13px; }.invoice-card small { color:var(--muted); font-size:10px; margin-top:4px; }
.status-dot { width:7px; height:7px; border-radius:50%; background:#e0a844; }.status-dot.ready { background:#5e996e; }.status-dot.synced { background:var(--green); }.status-dot.failed { background:var(--red); }
.review-panel { position:relative; padding:42px clamp(28px,5vw,72px); }.blank-state { position:absolute; inset:0; display:grid; place-content:center; text-align:center; color:var(--muted); }.blank-state div { font-size:55px; color:#b9c3ba; }.blank-state h2 { color:var(--ink); margin-bottom:4px; }.blank-state p { margin:0; }
.form-head { display:flex; justify-content:space-between; align-items:start; padding-bottom:25px; border-bottom:1px solid var(--line); }.form-head h2 { margin:0 0 6px; font:600 25px 'Manrope'; }.form-head p:last-child { margin:0; color:var(--muted); font-size:12px; }
.badge { padding:7px 11px; border-radius:100px; background:#fff0cf; color:#795b1f; font-size:11px; font-weight:700; }.badge.ready { background:#e6f3e7; color:#356743; }.badge.synced { background:var(--green); color:white; }.badge.failed { background:#f7dfdc; color:var(--red); }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:28px 0; }.field-grid .wide { grid-column:1/-1; }
label { color:#53615a; font-size:11px; font-weight:600; letter-spacing:.02em; } input,textarea,.field-grid select { display:block; width:100%; margin-top:7px; border:1px solid #d5dbd5; border-radius:9px; padding:11px 12px; background:#fdfdfb; color:var(--ink); outline:none; }.field-grid input:focus,textarea:focus,.field-grid select:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(36,90,69,.09); }.learned-field input { border-color:#82a64b; background:#f5faed; }
.amounts { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); border-radius:12px; overflow:hidden; }.amounts label { position:relative; padding:14px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }.amounts label:nth-child(3n) { border-right:0; }.amounts label:nth-child(n+4) { border-bottom:0; }.amounts input { border:0; background:transparent; margin:5px 0 0; padding:0 0 0 13px; font-size:17px; font-weight:600; }.amounts label span { position:absolute; top:40px; color:var(--muted); }.amounts .total { background:#f2f7ec; }.notes { display:block; margin:22px 0; }
details { margin:20px 0; color:var(--muted); font-size:12px; } details pre,#xml-preview { max-height:260px; overflow:auto; padding:16px; border-radius:10px; background:#17231e; color:#dbe8df; white-space:pre-wrap; font:11px/1.6 monospace; }
.mapping-details { border:1px solid var(--line); border-radius:12px; overflow:hidden; }.mapping-details summary { padding:13px 15px; cursor:pointer; color:var(--ink); font-weight:700; background:#fafbf8; }.mapping-toolbar { display:flex; gap:18px; align-items:end; padding:14px 15px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }.mapping-toolbar label { min-width:190px; }.mapping-toolbar select { display:block; width:100%; margin-top:6px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); }.mapping-toolbar p { margin:0 0 3px; font-size:11px; line-height:1.45; }.ocr-lines { max-height:310px; overflow:auto; padding:8px; background:#17231e; }.ocr-lines button { display:grid; grid-template-columns:28px 1fr 36px auto; align-items:center; width:100%; border:0; border-radius:6px; padding:6px 9px; background:transparent; color:#dbe8df; text-align:left; cursor:pointer; font:11px/1.4 monospace; }.ocr-lines button:hover { background:#263a31; }.ocr-lines button span,.ocr-lines button small { color:#71877b; }.ocr-lines button small { font:9px 'DM Sans'; }.ocr-lines button i { color:var(--lime); font:9px 'DM Sans'; }.ocr-lines button.mapped { background:#294539; }
.actions { display:flex; justify-content:flex-end; gap:10px; padding-top:22px; border-top:1px solid var(--line); }.actions button { border-radius:9px; padding:11px 16px; border:1px solid var(--line); cursor:pointer; font-weight:600; font-size:12px; }.secondary { background:white; color:var(--ink); }.primary { background:var(--green); color:white; border-color:var(--green)!important; }.primary span { margin-left:18px; }.actions button:disabled { opacity:.5; }
.alert { margin:18px 0 -8px; padding:11px 13px; border-radius:8px; background:#f9e6e3; color:var(--red); font-size:12px; }
.constraint-banner { margin:12px 0 -4px; padding:10px 13px; border:1px solid #cfe6c4; border-radius:8px; background:#f0f8ea; color:#426437; font-size:11px; }
.constraint-banner.needs-review { border-color:#edcf9c; background:#fff8e9; color:#8a621f; }
.learned-banner { margin:18px 0 -8px; padding:11px 13px; border-radius:8px; background:#edf5df; color:#436126; font-size:12px; }
.ai-suggestion-banner { margin:18px 0 -8px; padding:11px 13px; border:1px solid #cbd4f5; border-radius:8px; background:#f0f2ff; color:#3449b8; font-size:10px; line-height:1.5; }
.control-status { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin:18px 0 -8px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--line); }.control-status section { min-width:0; padding:12px; background:#fafbf8; }.control-status strong { display:block; margin-top:5px; font-size:12px; }.control-status small { display:block; margin-top:4px; color:var(--muted); font-size:9px; line-height:1.35; }
.reconciliation-control select,.reconciliation-control input { width:100%; margin-top:5px; padding:6px 7px; border:1px solid var(--line); border-radius:6px; background:white; color:var(--ink); font-size:10px; }.reconciliation-control button { margin-top:5px; padding:6px 9px; border:0; border-radius:6px; background:var(--green); color:white; cursor:pointer; font-size:9px; font-weight:700; }
.hidden { display:none!important; }.toast { position:fixed; right:25px; bottom:25px; transform:translateY(100px); opacity:0; transition:.25s; padding:13px 18px; border-radius:9px; background:var(--green); color:white; font-size:13px; box-shadow:0 8px 30px #0003; }.toast.show { transform:none; opacity:1; }.toast.error { background:var(--red); }
dialog { width:min(800px,90vw); border:0; border-radius:16px; box-shadow:0 30px 100px #0005; }dialog::backdrop { background:#14241dcc; }.dialog-head { display:flex; justify-content:space-between; align-items:center; }.dialog-head h2 { font:600 18px 'Manrope'; }
dialog form { padding:8px; }.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:20px 0; }.profile-grid .check { display:flex; align-items:center; gap:8px; padding-top:18px; }.profile-grid .check input { width:auto; margin:0; }fieldset { margin:18px 0 0; border:1px solid var(--line); border-radius:11px; }legend { padding:0 7px; color:var(--green); font-size:11px; font-weight:700; }.template-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.template-option { display:flex; gap:9px; padding:10px; border-radius:8px; background:#f6f8f3; }.template-option input { width:auto; margin:2px 0 0; }.template-option strong,.template-option small { display:block; }.template-option strong { color:var(--ink); font-size:11px; }.template-option small { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.35; }
@media (max-width:1000px) { .primary-tabs button { padding:0 8px; }.primary-tabs button span { display:none; }.business-switcher .tally-state { display:none; }.analytics-grid,.business-cards { grid-template-columns:1fr; } }
@media (max-width:850px) { .hero { display:block; }.intro { margin-top:24px; }.topbar { height:auto; flex-wrap:wrap; padding-top:10px; }.primary-tabs { order:3; width:100%; height:45px; justify-content:center; }.dashboard-cards { grid-template-columns:1fr 1fr; }.page-heading { align-items:start; }.workspace { grid-template-columns:1fr; }.workspace aside { border-right:0; border-bottom:1px solid var(--line); }.invoice-list { max-height:190px; overflow:auto; }.review-panel { min-height:500px; }.amounts { grid-template-columns:1fr 1fr; }.amounts label { border:0; border-bottom:1px solid var(--line); }.amounts label:nth-child(odd) { border-right:1px solid var(--line); } }
@media (max-width:520px) { main { padding:35px 14px; }.topbar { min-height:70px; padding:10px 16px; }.business-switcher label { display:none; }.business-switcher button { font-size:10px; }.primary-tabs button { font-size:10px; }.page-heading { display:block; }.page-heading > label,.page-heading > button,.processing-summary { display:block; margin-top:16px; width:100%; }.workspace-tabs { width:100%; overflow:auto; }.dashboard-cards,.profile-overview,.profile-grid,.template-options,.control-status { grid-template-columns:1fr; }.attention-list { grid-template-columns:1fr; }.donut-wrap { flex-direction:column; }.field-grid,.amounts { grid-template-columns:1fr; }.field-grid .wide { grid-column:auto; }.amounts label { border-right:0!important; border-bottom:1px solid var(--line)!important; }.actions { flex-wrap:wrap; }.actions button { flex:1; }.review-panel { padding:28px 20px; }.mapping-toolbar { display:block; }.mapping-toolbar p { margin-top:10px; } }

/* Reference-inspired accounting application shell */
body { min-height:100vh; background:#fff; }
.app-sidebar { position:fixed; inset:0 auto 0 0; z-index:20; display:flex; flex-direction:column; width:248px; padding:18px 12px 14px; border-right:1px solid #e1e3eb; background:#fbfbfd; }
.app-sidebar .brand { padding:0 7px 18px; font-size:20px; color:#111; }.app-sidebar .brand span { width:29px; height:29px; border-radius:7px; background:var(--navy); font-size:11px; }
.sidebar-business { position:relative; display:block; margin-bottom:19px; }.sidebar-business select { width:100%; appearance:none; padding:10px 30px 10px 12px; border:1px solid #bdc7f1; border-radius:5px; background:white; color:var(--blue); font-size:12px; }.sidebar-business i { position:absolute; top:10px; right:12px; color:var(--blue); font-style:normal; }
.app-sidebar .primary-tabs { display:flex; flex-direction:column; align-self:auto; gap:4px; height:auto; }.app-sidebar .primary-tabs button { justify-content:flex-start; width:100%; min-height:42px; padding:0 11px; border-radius:6px; color:#555965; }.app-sidebar .primary-tabs button::after { display:none; }.app-sidebar .primary-tabs button.active { background:#eeeff9; color:var(--navy); box-shadow:inset 3px 0 0 var(--navy); }.app-sidebar .primary-tabs button small { margin-left:auto; padding:2px 5px; border-radius:8px; background:#e1e5fb; color:var(--blue); font-size:7px; }
.sidebar-sections { display:flex; flex-direction:column; gap:3px; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }.sidebar-sections > span { padding:0 10px 7px; color:#979ba7; font-size:8px; font-weight:700; letter-spacing:.12em; }.sidebar-sections button { display:flex; gap:9px; align-items:center; min-height:38px; padding:0 11px; border:0; border-radius:6px; background:transparent; color:#5d6069; cursor:pointer; text-align:left; font-size:11px; }.sidebar-sections button:hover { background:#f0f1f7; }.sidebar-sections i { width:16px; color:var(--blue); font-style:normal; text-align:center; }
.sidebar-footer { display:grid; grid-template-columns:32px 1fr; gap:9px; align-items:center; margin-top:auto; padding:12px 7px 0; border-top:1px solid var(--line); }.user-avatar { display:grid; place-items:center; width:31px; height:31px; border-radius:6px; background:#e8eaf6; color:var(--navy); font-size:11px; }.sidebar-footer strong,.sidebar-footer small { display:block; }.sidebar-footer strong { font-size:10px; }.sidebar-footer small { margin-top:2px; color:var(--muted); font-size:8px; }
.app-shell { min-height:100vh; margin-left:248px; }.app-shell .topbar { height:66px; padding:0 34px; border-bottom:1px solid #e5e6ec; background:#fff; }.topbar-title { display:flex; gap:10px; align-items:center; color:#555965; }.topbar-title span { color:var(--blue); }.topbar-title strong { font:500 20px 'Manrope'; }.business-switcher { margin-left:auto; }.business-switcher button { border-color:#bdc7f1; color:var(--blue); }.tally-state { border-color:#d9dcee; }.tally-state i { background:#57a26b; }
.app-shell main { max-width:none; padding:28px 34px 55px; background:#fff; }.page-heading { align-items:center; margin-bottom:24px; }.page-heading h1 { font-size:28px; letter-spacing:-.025em; }.page-heading p:not(.eyebrow) { font-size:12px; }.eyebrow { color:var(--blue); }.page-primary,.primary { background:var(--blue); }
.dashboard-cards article,.chart-card,.profile-overview article,.business-profile-card { border-color:#e1e3eb; border-radius:7px; box-shadow:none; }.dashboard-cards article { min-height:105px; }.dashboard-cards span,.control-status span,.chart-card header span { color:#686d78; }.dashboard-cards strong { font-size:23px; }.analytics-grid { gap:16px; }.chart-card { border-radius:7px; }.bar-track i { background:linear-gradient(#788bf0,var(--blue)); }.horizontal-chart i { background:linear-gradient(90deg,#9aa8f4,var(--blue)); }.status-donut::before { background:#fff; }.attention-list button { border-radius:5px; background:white; }.attention-list button:hover { border-color:#aab5e9; background:#fafbff; }
.module-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; }.module-heading h1 { margin:0; font:500 25px 'Manrope'; }.module-heading p { margin:5px 0 0; color:var(--muted); font-size:11px; }.module-actions { display:flex; gap:9px; }.module-actions button { height:37px; padding:0 14px; border:1px solid #b9c3ec; border-radius:5px; background:white; color:var(--blue); cursor:pointer; font-size:11px; font-weight:700; }.module-actions .filled { border-color:var(--blue); background:var(--blue); color:white; }.module-actions .more-button { width:38px; padding:0; font-size:18px; }
.workspace-tabs { width:100%; margin:0; padding:0; gap:27px; border:0; border-bottom:1px solid #e3e5ec; border-radius:0; background:white; }.workspace-tabs button { position:relative; padding:12px 3px; border-radius:0; font-size:11px; }.workspace-tabs button.active { color:var(--blue); box-shadow:none; }.workspace-tabs button.active::after { content:""; position:absolute; right:0; bottom:-1px; left:0; height:2px; background:var(--blue); }
.ocr-list-view { padding-top:19px; }.table-toolbar { display:flex; gap:8px; align-items:center; margin-bottom:17px; }.table-toolbar > label { display:flex; align-items:center; width:310px; height:37px; padding:0 10px; border:1px solid #bfc8ee; border-radius:5px; background:white; }.table-toolbar input { margin:0; border:0; padding:6px; background:transparent; box-shadow:none!important; }.table-toolbar > button { width:39px; height:37px; border:1px solid #bfc8ee; border-radius:5px; background:white; color:var(--navy); cursor:pointer; }.queue-total { margin-left:auto; color:var(--muted); font-size:10px; }.queue-total strong { color:var(--ink); }
.document-table-wrap { min-height:470px; overflow:auto; border:1px solid #e1e3eb; border-radius:6px 6px 0 0; }.document-table { width:100%; border-collapse:collapse; white-space:nowrap; font-size:10px; }.document-table th { height:47px; padding:0 12px; border-bottom:1px solid #e1e3eb; background:#fafafd; color:#767a84; text-align:left; font-weight:600; }.document-table td { height:57px; padding:8px 12px; border-bottom:1px solid #eceef3; color:#444750; }.document-table tbody tr { cursor:pointer; }.document-table tbody tr:hover { background:#f6f7fc; }.document-table td strong,.document-table td small { display:block; }.document-table td small { margin-top:3px; color:#979ba5; font-size:8px; }.document-table input { width:auto; margin:0; }.file-cell { display:block; max-width:170px; overflow:hidden; text-overflow:ellipsis; }.money-cell { text-align:right; font-weight:700; }.table-status { display:inline-block; padding:5px 7px; border-radius:12px; background:#fff3d9; color:#8b681f; font-size:8px; font-weight:700; }.table-status.ready { background:#e9f7ed; color:#3f7b50; }.table-status.synced { background:#e9edff; color:var(--blue); }.table-status.failed { background:#fdebea; color:#b13f3f; }.row-menu { border:0; background:transparent; color:#555; cursor:pointer; }.table-empty { height:260px!important; color:var(--muted)!important; text-align:center; }.table-footer { display:flex; justify-content:space-between; align-items:center; height:50px; padding:0 12px; border:1px solid #e1e3eb; border-top:0; border-radius:0 0 6px 6px; color:#747883; font-size:9px; }.table-footer select { margin-left:5px; border:1px solid #c9ceed; border-radius:4px; padding:5px; background:white; }
.review-workspace { grid-template-columns:minmax(310px,35%) minmax(0,65%); min-height:calc(100vh - 155px); margin-top:0; border:0; border-radius:0; box-shadow:none; }.review-workspace > aside { padding:20px; border:0; border-right:1px solid #e1e3eb; background:#f8f9fc; }.document-preview-head { display:flex; justify-content:space-between; align-items:center; height:42px; padding:0 11px; border:1px solid #dfe2eb; border-radius:5px 5px 0 0; background:white; }.document-preview-head strong { max-width:210px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }.document-preview-head span { color:var(--muted); font-size:8px; }.document-paper { display:flex; align-items:flex-start; justify-content:center; height:600px; overflow:auto; padding:30px 25px; border:1px solid #dfe2eb; border-top:0; background:#eef0f5; }.document-paper img { display:block; max-width:100%; height:auto; background:white; box-shadow:0 3px 14px #1f24421a; }.document-paper iframe { width:100%; min-height:100%; border:0; background:white; box-shadow:0 3px 14px #1f24421a; }.document-paper pre { width:100%; min-height:100%; margin:0; padding:28px 22px; background:white; box-shadow:0 3px 14px #1f24421a; color:#373a42; white-space:pre-wrap; font:9px/1.65 monospace; }.document-paper .hidden { display:none; }.review-workspace .learning-card { border-color:#dce0f3; border-radius:5px; background:#f0f2ff; }.review-workspace .review-panel { padding:23px 28px 35px; }.form-head { display:grid; grid-template-columns:auto 1fr auto; gap:17px; align-items:start; }.back-button { border:0; background:transparent; color:var(--blue); cursor:pointer; font-size:11px; font-weight:700; }.badge { border-radius:4px; }.control-status { border-radius:5px; }.field-grid input,.field-grid select,textarea,.mapping-toolbar select { border-color:#bfc8ee; border-radius:4px; background:white; }.amounts { border-radius:5px; }.mapping-details { border-radius:5px; }.actions button { border-radius:4px; }.ocr-lines { background:#fafbff; }.ocr-lines button { color:#383c47; }.ocr-lines button span,.ocr-lines button small { color:#9298aa; }.ocr-lines button:hover { background:#edf0ff; }.ocr-lines button.mapped { background:#e4e8ff; }.ocr-lines button i { color:var(--blue); }
.upload-dialog { width:min(720px,92vw); padding:0; border:1px solid #d5d9e8; border-radius:7px; }.upload-dialog .dialog-head { padding:17px 20px; border-bottom:1px solid #e3e5ec; }.upload-dialog .dialog-head h2 { margin:0; font-size:16px; }.upload-dialog .dialog-head p { margin:4px 0 0; color:var(--muted); font-size:9px; }.upload-dialog .template-picker { margin:18px 20px 0; }.upload-dialog .drop-zone { min-height:260px; margin:13px 20px 18px; border-color:#b9c5f5; border-radius:5px; background:#fcfcff; }.upload-dialog .upload-icon { background:#eef1ff; color:var(--blue); }.upload-dialog .progress { margin:0 20px; }.upload-dialog footer { display:flex; justify-content:space-between; align-items:center; padding:13px 20px; border-top:1px solid #e3e5ec; color:var(--muted); font-size:9px; }.upload-dialog footer button { padding:8px 12px; border:0; border-radius:4px; background:var(--blue); color:white; cursor:pointer; font-size:10px; }
.line-items-card { margin:18px 0; border:1px solid #dfe2eb; border-radius:6px; background:white; }.line-items-card > header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding:13px 14px; border-bottom:1px solid #e5e7ee; }.line-items-card header span,.line-items-card header strong,.line-items-card header small { display:block; }.line-items-card header span { color:var(--blue); font-size:8px; font-weight:800; letter-spacing:.08em; }.line-items-card header strong { margin-top:3px; font-size:11px; }.line-items-card header small { max-width:620px; margin-top:3px; color:var(--muted); font-size:8px; line-height:1.45; }.line-items-card header button { flex:none; padding:7px 10px; border:1px solid #bfc8ee; border-radius:4px; background:#f5f6ff; color:var(--blue); cursor:pointer; font-size:9px; font-weight:700; }.line-items-wrap { overflow:auto; }.line-items-wrap table { width:100%; min-width:1050px; border-collapse:collapse; }.line-items-wrap th { padding:8px 6px; background:#fafbff; color:#727783; text-align:left; font-size:7px; text-transform:uppercase; }.line-items-wrap td { padding:5px; border-top:1px solid #eceef3; }.line-items-wrap input,.line-items-wrap select { width:100%; min-width:68px; margin:0; padding:6px; border:1px solid #cbd1e8; border-radius:3px; font-size:8px; }.line-items-wrap td:nth-child(2) input,.line-items-wrap td:nth-child(3) input { min-width:155px; }.line-items-wrap td:last-child button { border:0; background:transparent; color:var(--red); cursor:pointer; font-size:15px; }.line-items-empty { padding:25px!important; color:var(--muted); text-align:center; font-size:9px; }
.tally-preflight-dialog { width:min(960px,94vw); max-height:90vh; overflow:auto; }.preflight-section { margin:18px 0; }.preflight-section h3 { margin:0 0 8px; font:600 14px 'Manrope'; }.preflight-section > p { color:var(--muted); font-size:10px; }.preflight-table-wrap { overflow:auto; border:1px solid var(--line); border-radius:6px; }.preflight-table-wrap table { width:100%; border-collapse:collapse; font-size:10px; }.preflight-table-wrap th,.preflight-table-wrap td { padding:9px 10px; border-bottom:1px solid var(--line); text-align:left; }.preflight-table-wrap th:nth-last-child(-n+2),.preflight-table-wrap td:nth-last-child(-n+2) { text-align:right; white-space:nowrap; }.preflight-table-wrap tfoot th { background:#fafbff; }.master-proposals { display:grid; gap:8px; }.master-proposal { display:flex; gap:10px; padding:11px; border:1px solid #cbd1e8; border-radius:5px; background:#fafbff; }.master-proposal input { width:auto; }.master-proposal strong,.master-proposal small { display:block; }.master-proposal small { margin-top:3px; color:var(--muted); }.preflight-issues { padding:12px; border:1px solid #e5a7a2; border-radius:5px; background:#fff1f0; color:#9e3029; }.preflight-issues p { margin:5px 0 0; }
.business-profile-card.selected { border-color:#9eaaf0; box-shadow:0 0 0 2px #eef0ff; }.profile-monogram,.business-profile-card header > span { background:#eef0ff; color:var(--blue); }.business-profile-card footer button:first-child { color:var(--blue); }
dialog { border-radius:7px; }dialog::backdrop { background:#15172a99; }
@media (max-width:950px) { .app-sidebar { width:64px; padding:15px 7px; }.app-sidebar .brand { padding:0 10px 18px; }.app-sidebar .brand:not(:focus) { font-size:0; }.sidebar-business select,.sidebar-business i,.app-sidebar .primary-tabs button:not(.active) small,.app-sidebar .primary-tabs button { font-size:0; }.app-sidebar .primary-tabs button span { display:block; margin:auto; font-size:16px; }.sidebar-sections > span,.sidebar-sections button { font-size:0; }.sidebar-sections button i { margin:auto; font-size:15px; }.sidebar-footer > div:not(.user-avatar) { display:none; }.app-shell { margin-left:64px; }.review-workspace { grid-template-columns:1fr; }.review-workspace > aside { border-right:0; border-bottom:1px solid var(--line); }.document-paper { height:380px; } }
@media (max-width:620px) { .app-sidebar { display:none; }.app-shell { margin-left:0; }.app-shell .topbar { padding:0 15px; }.app-shell main { padding:20px 14px; }.document-table-wrap { min-height:390px; }.module-heading { align-items:start; }.module-actions button:not(.filled) { display:none; }.table-toolbar > label { width:100%; }.queue-total { display:none; }.review-workspace .review-panel { padding:20px 14px; }.document-paper { height:300px; } }

/* Banking and reconciliation */
.banking-heading { margin-bottom:20px; }
.bank-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin-bottom:20px; }
.bank-summary article { display:flex; flex-direction:column; gap:6px; min-height:96px; padding:17px 18px; border:1px solid var(--line); border-radius:7px; background:white; box-shadow:0 2px 8px #2a2c4510; }
.bank-summary span { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.08em; }
.bank-summary strong { color:var(--navy); font-size:24px; line-height:1; }
.bank-summary small { color:var(--muted); font-size:9px; }
.bank-list-panel { border:1px solid var(--line); border-radius:7px; background:white; overflow:hidden; }
.bank-list-panel .table-toolbar { border:0; border-bottom:1px solid var(--line); }
.bank-table-wrap { min-height:430px; border:0; border-radius:0; }
.bank-table td { height:64px; }
.bank-table td:nth-child(2) strong { display:block; color:#333742; font-size:11px; }
.bank-table td:nth-child(2) small { display:block; margin-top:4px; color:var(--muted); font-size:9px; }
.connection-pill { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:12px; background:#edf8f2; color:#236a49; font-size:9px; font-weight:700; }
.connection-pill.setup_required { background:#fff4dd; color:#8a5b00; }
.connection-pill::before { width:5px; height:5px; border-radius:50%; background:currentColor; content:""; }
.bank-actions { display:flex; align-items:center; gap:5px; }
.bank-actions button { width:29px; height:29px; border:1px solid #cad2f4; border-radius:4px; background:white; color:var(--blue); cursor:pointer; }
.bank-actions button:hover { background:#eef1ff; }
.bank-dialog { width:min(670px,calc(100vw - 30px)); }
.connection-choice { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:18px 0; }
.connection-choice label { cursor:pointer; }
.connection-choice input { position:absolute; opacity:0; }
.connection-choice span { display:flex; flex-direction:column; gap:4px; min-height:72px; padding:14px; border:1px solid var(--line); border-radius:6px; background:#fafbff; }
.connection-choice input:checked + span { border-color:var(--blue); box-shadow:0 0 0 1px var(--blue); background:#f0f2ff; }
.connection-choice strong { color:var(--navy); font-size:11px; }
.connection-choice small { color:var(--muted); font-size:9px; line-height:1.5; }
.bank-form-grid { grid-template-columns:1fr 1fr; }
.provider-note { display:none; gap:4px; margin-top:14px; padding:12px 14px; border:1px solid #ead59c; border-radius:5px; background:#fff9e9; color:#76530a; }
.provider-note.show { display:flex; flex-direction:column; }
.provider-note strong { font-size:10px; }.provider-note span { font-size:9px; line-height:1.5; }
.bank-upload-dialog { width:min(650px,calc(100vw - 30px)); }
.statement-log-dialog { width:min(900px,calc(100vw - 30px)); }
.statement-log-table { max-height:480px; overflow:auto; margin-top:16px; border:1px solid var(--line); border-radius:6px; }
.statement-log-table table { width:100%; border-collapse:collapse; }
.statement-log-table th,.statement-log-table td { padding:12px 13px; border-bottom:1px solid var(--line); text-align:left; font-size:10px; }
.statement-log-table th { background:#f7f8fc; color:var(--muted); font-size:8px; letter-spacing:.05em; text-transform:uppercase; }
.statement-log-table td a { color:var(--blue); font-weight:700; text-decoration:none; }
.statement-empty { padding:50px 20px !important; color:var(--muted); text-align:center !important; }
@media (max-width:950px) { .bank-summary { grid-template-columns:1fr 1fr; }.bank-table-wrap { overflow:auto; }.bank-table { min-width:850px; } }
@media (max-width:620px) { .bank-summary { grid-template-columns:1fr 1fr; }.connection-choice,.bank-form-grid { grid-template-columns:1fr; }.bank-summary article { padding:13px; }.bank-summary strong { font-size:20px; } }

/* Business accounting-policy onboarding */
.onboarding-dialog { width:min(1040px,calc(100vw - 28px)); max-height:92vh; overflow:auto; }
.onboarding-step { margin:18px 0; padding:18px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.onboarding-step > header { display:flex; gap:11px; align-items:flex-start; margin-bottom:14px; }
.onboarding-step > header > span { display:grid; flex:none; place-items:center; width:25px; height:25px; border-radius:50%; background:#edf0ff; color:var(--blue); font-size:10px; font-weight:800; }
.onboarding-step h3 { margin:1px 0 3px; color:var(--navy); font:600 14px 'Manrope'; }.onboarding-step header p { margin:0; color:var(--muted); font-size:9px; }
.onboarding-step textarea { width:100%; box-sizing:border-box; margin-bottom:10px; border:1px solid #bfc8ee; border-radius:4px; }
.industry-suggestions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
.industry-option { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; padding:11px; border:1px solid #dce0ef; border-radius:5px; background:#fafbff; }
.industry-option > label:first-child { display:flex; gap:8px; align-items:flex-start; }.industry-option input { width:auto; }
.industry-option strong,.industry-option small { display:block; }.industry-option strong { color:#313541; font-size:10px; }.industry-option small { margin-top:3px; color:var(--muted); font-size:8px; }
.secondary-activity { color:var(--muted); font-size:8px; white-space:nowrap; }
.onboarding-grid { grid-template-columns:repeat(3,1fr); }.purpose-options,.practice-toggles { display:flex; flex-wrap:wrap; gap:8px 16px; }
.ai-practice-suggestion { margin:10px 0 14px; padding:12px; border:1px solid #cbd4f5; border-radius:6px; background:#f6f8ff; }
.ai-practice-suggestion p { margin:0 0 8px; font-size:10px; }.ai-practice-suggestion ul { margin:6px 0 10px; padding-left:18px; font-size:9px; }
.purpose-options label,.practice-toggles label { display:flex; gap:6px; align-items:center; color:#4e5360; font-size:9px; }.purpose-options input,.practice-toggles input { width:auto; }
.practice-toggles { margin:14px 0; padding:12px; border-radius:5px; background:#f5f6fb; }
.adaptive-questions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.adaptive-questions article { padding:11px; border-left:3px solid #96a4ef; background:#f7f8ff; }
.adaptive-questions strong,.adaptive-questions small { display:block; }.adaptive-questions strong { font-size:9px; }.adaptive-questions small { margin-top:4px; color:var(--muted); font-size:8px; }
.policy-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }.policy-summary article { padding:12px; border:1px solid #dce0ef; border-radius:5px; background:#fafbff; }
.policy-summary span { color:var(--blue); font-size:8px; font-weight:800; }.policy-summary p { margin:6px 0 0; color:#4d5260; font-size:9px; line-height:1.5; }
.policy-rules { display:grid; gap:7px; margin-top:12px; }.policy-rules article { display:grid; grid-template-columns:minmax(200px,35%) 1fr; gap:12px; padding:10px 12px; border-bottom:1px solid var(--line); }
.policy-rules strong,.policy-rules small { display:block; }.policy-rules strong { font-size:10px; }.policy-rules small { margin-top:3px; color:var(--muted); font-size:8px; }.policy-rules p { margin:0; color:#555a66; font-size:9px; }
.activation-row { display:flex; justify-content:flex-end; gap:10px; align-items:end; margin-top:16px; }.activation-row label { min-width:250px; }
@media (max-width:760px) { .industry-suggestions,.onboarding-grid,.adaptive-questions,.policy-summary { grid-template-columns:1fr; }.policy-rules article { grid-template-columns:1fr; }.activation-row { align-items:stretch; flex-direction:column; } }

/* Policy-driven line accounting */
.accounting-proposal-card { margin:18px 0; border:1px solid #cdd5f5; border-radius:6px; background:#fbfcff; }.accounting-proposal-card > header { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:13px 14px; border-bottom:1px solid #e1e5f3; }.accounting-proposal-card header span,.accounting-proposal-card header strong,.accounting-proposal-card header small { display:block; }.accounting-proposal-card header span { color:var(--blue); font-size:8px; font-weight:800; letter-spacing:.08em; }.accounting-proposal-card header strong { margin-top:3px; font-size:11px; }.accounting-proposal-card header small { margin-top:3px; color:var(--muted); font-size:8px; }.accounting-proposal-card button { padding:8px 11px; border:1px solid #bfc8ee; border-radius:4px; background:#f0f2ff; color:var(--blue); cursor:pointer; font-size:9px; font-weight:700; }.proposal-lines { display:grid; gap:9px; padding:12px; }.proposal-empty { margin:8px; color:var(--muted); font-size:9px; }.proposal-line { padding:11px; border:1px solid #e0e3ec; border-radius:5px; background:white; }.proposal-line > header { display:flex; justify-content:space-between; gap:12px; }.proposal-line h4 { margin:0; font-size:11px; }.proposal-line header small { color:var(--muted); }.proposal-risk { padding:3px 7px; border-radius:12px; background:#fff1cc; color:#745400; font-size:8px; text-transform:uppercase; }.proposal-risk.low { background:#e8f7ef; color:#246642; }.proposal-risk.high { background:#fff0ef; color:#9e3029; }.proposal-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:10px; }.proposal-fields label { color:var(--muted); font-size:8px; }.proposal-fields input,.proposal-fields select { width:100%; margin-top:3px; padding:7px; border:1px solid #cbd1e8; border-radius:4px; background:white; font-size:9px; }.proposal-evidence { margin:8px 0 0; color:#5e6472; font-size:8px; }.proposal-question { margin:7px 0 0; color:#8a5200; font-size:9px; }.accounting-proposal-card > footer { display:flex; justify-content:flex-end; align-items:end; gap:10px; padding:12px; border-top:1px solid #e1e5f3; }.accounting-proposal-card > footer label { color:var(--muted); font-size:8px; }.accounting-proposal-card > footer input { display:block; margin-top:3px; padding:7px; border:1px solid #cbd1e8; border-radius:4px; }.accounting-proposal-card > .preflight-issues { margin:12px; }
@media(max-width:800px){.proposal-fields{grid-template-columns:1fr 1fr}}
.master-proposal { justify-content:space-between; align-items:center; }.master-proposal > span { flex:1; }.master-resolution { display:grid; grid-template-columns:140px minmax(180px,260px); gap:7px; }.master-resolution select { width:100%; padding:7px; border:1px solid #bfc8ee; border-radius:4px; background:white; font-size:9px; }.master-resolution select:disabled { background:#f0f1f5; color:#999; }
@media(max-width:700px){.master-proposal{align-items:stretch;flex-direction:column}.master-resolution{grid-template-columns:1fr}}

/* Read-only books chat */
.books-chat-shell { display:grid; grid-template-rows:auto auto minmax(380px,1fr) auto; max-width:1100px; height:calc(100vh - 128px); margin:0 auto; border:1px solid #dfe2eb; border-radius:10px; background:#fff; overflow:hidden; box-shadow:0 14px 45px rgba(34,19,79,.07); }
.books-chat-header { display:flex; justify-content:space-between; gap:28px; align-items:flex-end; padding:22px 25px 18px; border-bottom:1px solid #e7e9f0; }.books-chat-header .eyebrow { margin-bottom:7px; font-size:8px; }.books-chat-header h1 { font-size:25px; letter-spacing:-.03em; }.books-chat-header p:not(.eyebrow) { max-width:680px; margin:7px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.books-chat-controls { display:flex; align-items:end; gap:9px; flex:none; }.books-chat-controls label { color:#737784; font-size:8px; font-weight:600; }.books-chat-controls select { display:block; min-width:170px; margin-top:5px; padding:8px; border:1px solid #c9ceed; border-radius:5px; background:white; font-size:9px; }.books-chat-controls button { padding:9px 11px; border:1px solid #c9ceed; border-radius:5px; background:white; color:var(--blue); cursor:pointer; font-size:9px; font-weight:700; }
.books-chat-notice { display:flex; gap:9px; align-items:center; padding:10px 25px; border-bottom:1px solid #dfe6d5; background:#f3f8ed; font-size:9px; }.books-chat-notice strong { color:#4e6e39; }.books-chat-notice span { color:#64705c; }
.books-chat-thread { overflow-y:auto; padding:25px clamp(18px,7vw,85px); background:#fafbfe; scroll-behavior:smooth; }.books-chat-welcome { display:grid; place-items:center; min-height:320px; text-align:center; }.books-chat-welcome > span { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--blue); color:#fff; font-size:18px; }.books-chat-welcome h2 { margin:13px 0 5px; font:600 18px 'Manrope'; }.books-chat-welcome p { margin:0; color:var(--muted); font-size:10px; }.books-chat-starters { display:grid; grid-template-columns:1fr 1fr; gap:8px; width:min(610px,100%); margin-top:20px; }.books-chat-starters button,.books-followups button { padding:10px 12px; border:1px solid #d9deef; border-radius:7px; background:#fff; color:#4a4f5d; cursor:pointer; text-align:left; font-size:9px; }.books-chat-starters button:hover,.books-followups button:hover { border-color:#9ca9e3; color:var(--blue); }
.books-chat-exchange { margin-bottom:25px; }.books-message { display:flex; gap:10px; margin:10px 0; }.user-message { justify-content:flex-end; }.user-message > div { max-width:72%; padding:11px 14px; border-radius:12px 12px 2px 12px; background:var(--blue); color:white; font-size:11px; line-height:1.45; }.assistant-message { align-items:flex-start; }.assistant-mark { display:grid; flex:none; place-items:center; width:27px; height:27px; border-radius:8px; background:#e8ebff; color:var(--blue); font-size:11px; }.assistant-answer { width:min(760px,calc(100% - 38px)); padding:2px 0; }.assistant-answer > p { margin:0 0 7px; color:#343844; font-size:11px; line-height:1.6; }.assistant-answer > p + p { padding-left:8px; }
.books-coverage { margin-top:10px; padding:8px 10px; border-left:3px solid #aab4e8; background:#f0f2fb; color:#676c7a; font-size:8px; line-height:1.45; }.books-sources { margin-top:10px; border:1px solid #e0e3ee; border-radius:6px; background:white; overflow:hidden; }.books-sources summary { padding:9px 11px; cursor:pointer; color:#666b78; font-size:8px; font-weight:700; }.books-sources > div { max-height:210px; overflow:auto; border-top:1px solid #e8eaf1; }.books-sources button { display:flex; justify-content:space-between; align-items:center; width:100%; padding:8px 11px; border:0; border-bottom:1px solid #eef0f5; background:#fff; color:#3e424d; cursor:pointer; text-align:left; }.books-sources button:hover { background:#f7f8fd; }.books-sources strong,.books-sources small { display:block; }.books-sources strong { font-size:9px; }.books-sources small { margin-top:2px; color:#888d99; font-size:8px; }.books-sources b { color:#333846; font-size:9px; }.books-followups { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }.books-followups button { padding:7px 9px; color:var(--blue); }.books-thinking { color:#777c88; font-size:10px; }
.books-chat-composer { position:relative; display:grid; grid-template-columns:1fr auto; gap:8px; padding:13px clamp(18px,7vw,85px) 21px; border-top:1px solid #dfe2eb; background:white; }.books-chat-composer textarea { min-height:44px; max-height:130px; resize:vertical; padding:13px 14px; border:1px solid #aeb8e5; border-radius:7px; color:#343844; font-size:11px; }.books-chat-composer > button { align-self:start; height:44px; padding:0 16px; border:0; border-radius:7px; background:var(--blue); color:white; cursor:pointer; font-size:10px; font-weight:700; }.books-chat-composer > button span { margin-left:6px; }.books-chat-composer small { grid-column:1/-1; color:#8c909a; font-size:8px; }
@media(max-width:760px){.books-chat-shell{height:calc(100vh - 115px)}.books-chat-header{align-items:stretch;flex-direction:column}.books-chat-controls{justify-content:space-between}.books-chat-controls label{flex:1}.books-chat-controls select{width:100%}.books-chat-starters{grid-template-columns:1fr}.books-chat-thread{padding:18px}.books-chat-composer{padding:12px 18px}.books-chat-notice{align-items:flex-start;flex-direction:column}.user-message>div{max-width:88%}}
.ocr-lines button.corrected { box-shadow:inset 3px 0 #d28b21; }
.line-review-required { background:#fff8ea; }
.low-confidence-field input,.low-confidence-field select { border-color:#d8952c!important; background:#fffaf0!important; }
