:root{--dark:#171717;--black:#101010;--deep:#222;--orange:#f4831e;--orange-dark:#da6510;--orange-soft:#fff0df;--bg:#f7f7f6;--white:#fff;--text:#242424;--muted:#848484;--border:#ededed;--green:#1c9c70;--red:#d95353;--amber:#c98b15;--shadow:0 10px 35px #1d1d1d0a;--radius:16px;font-family:Inter,ui-sans-serif,system-ui,'Segoe UI',sans-serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--orange-dark)}.hidden{display:none!important}.muted{color:var(--muted)}.tiny{font-size:11px}.full{width:100%}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:11px;padding:10px 15px;font-size:12px;font-weight:750;text-decoration:none;white-space:nowrap;transition:.16s}.btn.primary{background:var(--orange);color:white}.btn.primary:hover{background:var(--orange-dark)}.btn.dark{background:var(--black);color:#fff}.btn.soft{background:var(--orange-soft);color:#a35108}.btn.outline{background:white;border-color:#e5e5e5;color:#393939}.btn.danger{background:#fff0f0;color:#c44545;border-color:#ffdede}.btn:hover{transform:translateY(-1px)}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label,.dialog label,.login-card label{font-size:11px;font-weight:750;color:#5d5d5d}.field input,.field select,.field textarea,.dialog input,.dialog select,.dialog textarea,.login-card input{width:100%;border:1px solid #e2e2e2;border-radius:10px;padding:10px 12px;background:white;outline:none;color:#333;min-width:0}.field input:focus,.field select:focus,.field textarea:focus,.dialog input:focus,.login-card input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f4831e20}textarea{min-height:84px;resize:vertical}select{cursor:pointer}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:15px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.mt{margin-top:18px}.mb{margin-bottom:18px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.notice{padding:13px 15px;border-radius:11px;background:#fff5e8;border:1px solid #ffe4c5;font-size:12px;color:#8d5b1a}.danger-notice{background:#fff0f0;border-color:#ffd8d8;color:#a74242}.good-notice{background:#e9f9f0;border-color:#c1efd7;color:#147a50}.panel{background:white;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panelpad{padding:22px}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 23px 12px}.panelhead h3{font-size:15px;margin:0;font-weight:800}.panelhead small{color:var(--muted)}.data-table{border-collapse:collapse;width:100%;min-width:680px}.data-table th{text-align:left;background:#fafafa;color:#999;font-size:10px;letter-spacing:.5px;font-weight:850;padding:13px 16px}.data-table td{padding:14px 16px;border-top:1px solid #f0f0f0;font-size:12px;color:#5a5a5a}.data-table td strong{color:#303030}.tablescroll{overflow:auto}.nowrap{white-space:nowrap}.clamp{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty{padding:40px;text-align:center;color:#999;font-size:13px}.pill{display:inline-block;padding:5px 9px;border-radius:7px;background:#f4f4f4;color:#777;font-size:10px;font-weight:800;white-space:nowrap}.pill.APPROVED,.pill.FINAL{background:#e5f7ed;color:#16845b}.pill.REVERSED,.pill.REJECTED{background:#ffe9e9;color:#c44949}.pill.PENDING_REVIEW,.pill.PROVISIONAL,.pill.PENDING{background:#fff2db;color:#b67a14}.pill.DRAFT{background:#eff2f7;color:#6c7789}.pill.SUBMITTED{background:#e7f2ff;color:#286bba}.pill.SOFT_DELETED{background:#f0f0f0;color:#999}.login-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(400px,50%) 1fr;background:#fff}.login-card{width:min(430px,calc(100% - 48px));margin:auto}.login-brand,.brand{display:flex;align-items:center;gap:11px}.mark{height:45px;width:45px;flex:none;border-radius:13px;background:var(--orange);color:#111;display:grid;place-items:center;font-size:26px;font-weight:1000;letter-spacing:-3px;padding-right:3px}.mark span{color:white}.login-brand strong{font-weight:900;font-size:15px;line-height:1.2}.login-brand small,.brand small{display:block;color:#858585;font-size:9px;letter-spacing:1px;margin-top:4px;font-weight:800}.demo-tag{display:inline-block;margin:42px 0 14px;background:var(--orange-soft);border-radius:6px;padding:6px 9px;color:#ba6015;font-size:10px;font-weight:900}.login-card h1{font-size:31px;letter-spacing:-1px;margin:0 0 6px}.login-card p{margin:0 0 24px}.login-card form{display:grid;gap:10px}.login-card form button{margin-top:8px;padding:13px}.login-art{position:relative;overflow:hidden;background:linear-gradient(140deg,#242424,#0b0b0b);color:#fff;padding:clamp(35px,7vw,110px);display:flex;flex-direction:column;justify-content:center}.abstract-ring{position:absolute;border:1px solid #f4831e37;border-radius:50%;width:550px;height:550px;right:-260px;top:-210px}.ring2{width:430px;height:430px;right:2%;top:55%;border-color:#f4831e1f}.login-art .eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#f7a65c;z-index:1}.login-art h2{font-size:clamp(32px,3.4vw,55px);line-height:1.1;letter-spacing:-2px;z-index:1}.login-art em{font-style:normal;color:var(--orange)}.login-art p{max-width:420px;color:#bcbcbc;line-height:1.9;z-index:1}.art-stats{display:flex;gap:15px;flex-wrap:wrap;margin-top:70px;color:#f7b37b;font-size:11px;z-index:1}.demo-accounts{display:flex;gap:7px;flex-wrap:wrap;margin-top:23px;align-items:center}.demo-accounts b{font-size:11px;width:100%;color:#777}.demo-accounts button{border:1px solid #ededed;border-radius:8px;background:#f9f9f9;font-size:11px;padding:7px 10px;color:#4a4a4a}.security-hint{font-size:10px;color:#aaa;margin-top:24px;line-height:1.8}.shell{min-height:100vh;display:flex}.sidebar{background:#171717;color:#fff;width:255px;flex:none;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:24px 14px;overflow:auto}.brand{padding:5px 9px 30px}.brand strong{font-size:15px;letter-spacing:-.5px}.brand small{color:#898989;font-size:8px}.workspace-chip{border:1px solid #333;background:#252525;border-radius:13px;padding:12px;display:flex;align-items:center;gap:9px;margin:0 4px 26px}.workspace-icon{display:grid;place-items:center;width:34px;height:34px;background:#553d27;color:#ffb778;border-radius:9px}.workspace-chip small{font-size:9px;color:#aaa;letter-spacing:1px}.workspace-chip strong{font-size:12px;display:block;color:#fff}.sidebar-title{color:#6e6e6e;font-size:10px;font-weight:850;letter-spacing:1.4px;margin:0 12px 12px}.nav{display:grid;gap:5px}.navbutton{display:flex;align-items:center;gap:12px;border:0;background:transparent;padding:12px 13px;border-radius:10px;color:#a8a8a8;text-align:left;font-size:12.5px;font-weight:700}.navbutton:hover{background:#282828;color:#fff}.navbutton.active{background:#402c1d;color:#ffa858}.navicon{width:20px;font-size:16px}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;font-size:11px;color:#bbb}.sidebar-bottom small{display:block;color:#777;margin:8px 0 16px}.local-dot{display:inline-block;border-radius:50%;background:#e9ac58;width:8px;height:8px;margin-right:6px}.logout-btn{display:block;width:100%;text-align:left;border:1px solid #363636;color:#ddd;background:#242424;border-radius:9px;padding:10px;font-size:12px}.main{flex:1;min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 35px;position:sticky;top:0;z-index:10}.crumb{font-size:12px;color:#a4a4a4}.crumb b{padding:0 7px;color:#ccc}.crumb strong{color:#3a3a3a}.top-right{display:flex;gap:17px;align-items:center}.today{font-size:11px;color:#888}.role-chip{font-size:10px;font-weight:900;letter-spacing:.6px;color:#a95713;background:var(--orange-soft);padding:6px 9px;border-radius:7px}.avatar{width:36px;height:36px;border-radius:11px;background:linear-gradient(130deg,#242424,#e27c25);color:white;display:grid;place-items:center;font-weight:900}.content{max-width:1550px;padding:32px 36px 60px;margin:auto}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.section-tag{font-size:10px;font-weight:900;letter-spacing:1.25px;color:var(--orange-dark)}.pagehead h1{font-size:clamp(23px,3vw,32px);margin:7px 0 2px;letter-spacing:-1px}.pagehead p{font-size:12px;margin:0;color:#999}.mode-badge{padding:7px 10px;border-radius:8px;border:1px solid #f5e5d4;color:#ad7b4b;background:#fffaf5;font-weight:800;font-size:9px}.hero{background:linear-gradient(110deg,#1d1d1d,#38302b);border-radius:18px;min-height:195px;padding:30px 35px;color:white;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between}.hero:before{content:'';position:absolute;border:1px solid #ff9b3844;width:360px;height:360px;border-radius:50%;right:-80px;top:-145px}.hero .kicker{font-size:10px;color:#ffa55a;font-weight:850;letter-spacing:1.2px}.hero h2{font-size:29px;line-height:1.25;letter-spacing:-.7px;margin:11px 0}.hero h2 em{color:var(--orange);font-style:normal}.hero p{font-size:12px;color:#c0b8b3;max-width:530px}.hero .circle-graphic{font-size:110px;font-weight:1000;color:#f4831e30;margin-right:30px}.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:17px 0}.kpi{background:white;border:1px solid var(--border);border-radius:14px;padding:20px 23px;box-shadow:var(--shadow)}.kpi small{font-weight:650;font-size:11px;color:#888}.kpi strong{display:block;font-size:27px;letter-spacing:-.9px;margin:9px 0}.kpi .foot{color:#aaa;font-size:11px}.kpi.orange{background:#fff8f0}.bar-row{margin:15px 0}.bar-top{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:6px}.track{height:9px;background:#f0f0f0;border-radius:99px;overflow:hidden}.track i{display:block;height:100%;background:linear-gradient(90deg,#f4831e,#ffb26b);border-radius:99px}.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:15px}.filters input,.filters select{border:1px solid #e5e5e5;border-radius:10px;padding:10px 12px;background:white;min-width:130px}.filters input{flex:1}.checkrow{display:flex;gap:10px;align-items:center;margin:9px 0}.checkrow input{accent-color:var(--orange);width:16px;height:16px}.uploadbox{border:2px dashed #f2c69d;background:#fffaf6;border-radius:13px;padding:22px;margin-top:16px}.uploadbox input{max-width:100%}.draftgrid{display:grid;gap:11px}.draft-item{padding:15px;background:white;border:1px solid #eee;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.draft-item .details{min-width:0}.draft-item h4{margin:0;font-size:13px}.draft-item p{margin:3px 0;font-size:11px;color:#9a9a9a}.inline-actions{display:flex;gap:5px;flex-wrap:wrap}.inline-actions .btn{padding:7px 9px;font-size:10px}.actions-bar{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding:15px 20px;border-top:1px solid #eee}.review-card{display:grid;grid-template-columns:1fr auto;gap:16px;padding:18px;border-bottom:1px solid #f1f1f1}.review-card strong{display:block}.review-card small{display:block;color:#929292;margin-top:3px}.review-card .inline-actions{justify-content:end}.two-panel{display:grid;grid-template-columns:1.3fr 1fr;gap:17px}.danger-text{color:#bc4949}.iconbutton{background:#f6f6f6;border:1px solid #ededed;border-radius:10px;width:35px;height:35px;font-size:20px;color:#666}.overlay{position:fixed;inset:0;background:#080808aa;z-index:100;display:grid;place-items:center;padding:15px}.dialog{width:min(780px,100%);background:#fff;border-radius:17px;max-height:93vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 90px #0005}.dialog-head,.dialog-foot{padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #eee}.dialog-head h2{margin:0;font-size:19px}.dialog-body{padding:22px;overflow:auto}.dialog-foot{border-bottom:0;border-top:1px solid #eee;justify-content:flex-end}.dialog .grid2{gap:12px}.document-link{display:inline-block;padding:7px 0}.hint{padding:10px;border-radius:9px;background:#f8f8f8;color:#767676;font-size:11px}.small-table{width:100%;border-collapse:collapse}.small-table td{border-bottom:1px solid #eee;padding:9px;font-size:12px}.small-table td:first-child{color:#999;width:150px}#toast{position:fixed;bottom:22px;right:22px;z-index:150;background:#222;color:#fff;padding:14px 19px;border-radius:12px;max-width:420px;box-shadow:0 10px 40px #0003;display:none;font-size:12px}.mobile-only{display:none}.mobile-mask{position:fixed;inset:0;background:#0009;z-index:15}@media(max-width:1100px){.sidebar{width:224px}.content{padding:24px}.topbar{padding:0 24px}}@media(max-width:850px){.sidebar{position:fixed;z-index:20;left:0;transform:translateX(-105%);transition:.2s;width:260px}.sidebar.open{transform:translateX(0)}.mobile-only{display:block}.two-panel{grid-template-columns:1fr}.login-wrap{grid-template-columns:1fr}.login-art{display:none}}@media(max-width:620px){.content{padding:17px 13px 40px}.topbar{padding:0 13px}.today{display:none}.pagehead{align-items:flex-start}.mode-badge{display:none}.kpis{grid-template-columns:1fr}.grid2,.grid3{grid-template-columns:1fr}.hero{padding:25px;min-height:180px}.hero h2{font-size:24px}.hero .circle-graphic{display:none}.review-card{grid-template-columns:1fr}.review-card .inline-actions{justify-content:start}.panelpad{padding:16px}.draft-item{align-items:flex-start;flex-direction:column}.dialog-body{padding:15px}.dialog{max-height:97vh}}

/* === EXTENDED ANALYTICS DASHBOARD (CASHFLOW & DONUT) === */
.dash-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}
.dash-card{background:#fff;border:1px solid #eef1f5;border-radius:18px;padding:22px 24px;box-shadow:0 4px 18px rgba(15,23,42,.03);position:relative}
.dash-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.dash-card-title{font-size:14px;font-weight:600;color:#64748b}
.dash-icon-box{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:16px;font-weight:700}
.dash-icon-in{background:#e6f9f3;color:#10b981}
.dash-icon-out{background:#fff0f3;color:#f43f5e}
.dash-icon-net{background:#eef4ff;color:#3b82f6}
.dash-val{font-size:30px;font-weight:800;letter-spacing:-.02em;color:#0f172a;margin-bottom:12px}
.dash-meta{display:flex;align-items:center;gap:10px;font-size:12.5px;color:#94a3b8}
.tag-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:8px;font-weight:600;font-size:12px}
.tag-in{background:#e6f9f3;color:#0d9488}
.tag-out{background:#fff0f3;color:#e11d48}
.tag-net{background:#eef4ff;color:#2563eb}
.edit-income-btn{border:none;background:#f1f5f9;color:#475569;font-size:11px;padding:3px 8px;border-radius:6px;cursor:pointer;margin-left:auto}
.edit-income-btn:hover{background:#e2e8f0;color:#0f172a}

.analytics-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:18px;margin-top:18px}
.chart-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}
.chart-header h3{margin:0;font-size:17px;font-weight:700;color:#0f172a}
.chart-header small{display:block;color:#94a3b8;font-size:13px;margin-top:2px}
.chart-legend{display:flex;align-items:center;gap:14px;font-size:12.5px;color:#64748b;font-weight:500}
.dot-sq{width:10px;height:10px;border-radius:3px;display:inline-block;margin-right:5px}

.bar-chart-wrap{height:230px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;padding-top:16px}
.bar-grid-lines{position:absolute;inset:16px 0 28px 0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.bar-grid-lines span{border-bottom:1px solid #f1f5f9;width:100%}
.bars-row{display:grid;grid-template-columns:repeat(12,1fr);gap:8px;align-items:flex-end;height:185px;position:relative;z-index:1;padding:0 6px}
.month-col{display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end;gap:8px}
.bar-pair{display:flex;align-items:flex-end;gap:4px;height:155px;width:100%;justify-content:center}
.bar-in{width:12px;background:#14b8a6;border-radius:5px 5px 2px 2px;min-height:3px;transition:height .35s ease}
.bar-out{width:12px;background:#fda4af;border-radius:5px 5px 2px 2px;min-height:3px;transition:height .35s ease}
.month-lbl{font-size:11.5px;color:#64748b;font-weight:500}

.donut-box{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 0}
.donut-svg-wrap{position:relative;width:176px;height:176px;display:grid;place-items:center}
.donut-center{position:absolute;text-align:center}
.donut-center small{display:block;font-size:10.5px;letter-spacing:.08em;color:#94a3b8;font-weight:700}
.donut-center strong{display:block;font-size:19px;font-weight:800;color:#0f172a;margin-top:2px}
.donut-legends{width:100%;margin-top:16px;display:flex;flex-direction:column;gap:8px}
.donut-leg-item{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:#475569}
.year-badge{background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:12px;font-weight:600;padding:5px 12px;border-radius:9px}

@media(max-width:960px){
  .dash-kpi-grid,.analytics-grid{grid-template-columns:1fr}
}

/* Phase 3 dashboard shell: compact, responsive, no change to finance calculations. */
.dash-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--border);border-radius:14px;padding:17px 20px}
.dash-toolbar h2{font-size:17px;margin:0;color:#242424}
.dash-toolbar p{margin:4px 0 0;color:#64748b;font-size:12px}
.dash-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.dash-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.dash-kpi-grid .dash-card{padding:16px;min-width:0;border-radius:14px}
.dash-card-head{gap:8px;margin-bottom:9px}
.dash-card-title{font-size:12px}
.dash-icon-box{flex:none;width:30px;height:30px}
.dash-val{font-size:clamp(18px,2vw,28px);overflow-wrap:anywhere;margin-bottom:8px}
.dash-meta{flex-wrap:wrap;gap:5px;font-size:11px;color:#64748b}
.dash-meta .tag-pill{font-size:10px;padding:3px 6px}
.analytics-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;margin-top:14px}
.analytics-grid .dash-card{min-width:0;padding:18px}
.chart-header{gap:8px;flex-wrap:wrap}
.chart-header small{color:#64748b}
.dash-work-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #eee;padding:14px 0;flex-wrap:wrap}
.dash-work-row>div{flex:1;min-width:110px}
.dash-work-row strong,.dash-work-row small{display:block}
.dash-work-row small{color:#64748b;font-size:11px}
.dash-work-row>b{font-size:22px;color:#242424}
.dash-period-note{font-size:12px;color:#64748b;margin:15px 0 0;background:#f7f7f6;border-radius:8px;padding:10px}
.dash-toolbar .btn:focus-visible,.dash-work-row .btn:focus-visible,.edit-income-btn:focus-visible{outline:2px solid var(--orange-dark);outline-offset:2px}
@media(max-width:1050px){.analytics-grid{grid-template-columns:1fr}}
@media(max-width:620px){.dash-kpi-grid{grid-template-columns:1fr}.dash-toolbar{padding:14px}.dash-toolbar-actions{width:100%}.dash-toolbar-actions .btn{flex:1}.dash-kpi-grid .dash-card{padding:14px}.dash-val{font-size:24px}}

/* Finance preview period controls */
.finance-filter{display:flex;align-items:center;gap:5px;font-size:11px;color:#475569;font-weight:600}
.finance-filter input,.finance-filter select{border:1px solid #ddd;background:white;border-radius:8px;padding:7px;color:#222;font:inherit;max-width:90px}
.dash-kpi-grid .dash-val{font-size:clamp(22px,2.5vw,32px)}
.bar-pair .bar-in,.bar-pair .bar-out{width:clamp(3px,1.1vw,14px);flex-shrink:1}
.bars-row{gap:2px;padding:0}
.bar-pair{gap:2px}
.month-lbl{font-size:10px}
.chart-legend{flex-wrap:wrap}

/* Period navigation and aligned currency chart */
.finance-filter select{max-width:145px}
.finance-chart-scroll{overflow-x:auto}
.finance-chart{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px}
.finance-axis{height:180px;display:flex;flex-direction:column;justify-content:space-between;text-align:right;color:#64748b;font-size:11px;line-height:1;transform:translateY(-5px)}
.finance-plot{position:relative;min-width:0}
.finance-gridlines{position:absolute;inset:0 0 auto;height:180px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.finance-gridlines i{border-top:1px solid #e2e8f0}
.finance-bars{position:relative;display:grid;gap:4px}
.finance-bars .month-col{height:auto;min-width:0}
.finance-bar-pair{height:180px;display:flex;align-items:flex-end;justify-content:center;gap:4px;width:100%}
.finance-bar-pair .bar-in,.finance-bar-pair .bar-out{width:clamp(6px,2vw,22px);max-width:40%}
.tx-compact .data-table{min-width:0}
.tx-compact .data-table th,.tx-compact .data-table td{padding:9px 7px;vertical-align:top}
.tx-compact .data-table .clamp{white-space:normal;overflow-wrap:anywhere;max-width:180px}
.tx-compact .inline-actions{gap:3px}
.tx-compact .inline-actions .btn{padding:5px 7px}
@media(max-width:700px){.tx-compact .data-table{min-width:620px}}

/* OCR candidate evidence */
.ocr-evidence-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #eadbc9;overflow-wrap:anywhere}
.ocr-evidence-row>div{min-width:0;flex:1}
.ocr-evidence-row small{display:block;font-size:11px;margin-top:3px}
.ocr-evidence-row .btn{flex-shrink:0}
.ocr-field-group{margin-top:10px}
.ocr-context{margin:8px 0;padding:8px;border-left:3px solid #f4831e;background:#fff9f0;font-size:11px}
.ocr-context p{margin:4px 0;overflow-wrap:anywhere}


/* Phase 3.7 storage dashboard — visual only, responsive and dependency-free. */
.storage-overview{margin-top:14px;display:grid;gap:14px;color:#242424}
.storage-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.storage-kpi{padding:14px;background:#fafafa;border:1px solid #e9e9e9;border-radius:13px;min-width:0;border-top:3px solid var(--storage-accent,#f4831e)}
.storage-kpi small{display:block;font-size:11px;color:#64748b;font-weight:600}
.storage-kpi strong{display:block;font-size:clamp(17px,2.3vw,24px);line-height:1.3;margin:6px 0;overflow-wrap:anywhere}
.storage-kpi span{font-size:11px;color:#64748b}
.storage-chart{padding:18px;border:1px solid #e9e9e9;border-radius:13px;background:#fff}
.storage-chart h4{margin:0;font-size:14px}
.storage-chart>p{margin:5px 0 14px;color:#64748b;font-size:11px}
.storage-stack{display:flex;overflow:hidden;background:#e9edf1;height:18px;border-radius:99px;gap:0}
.storage-stack>span{height:100%;min-width:0}
.storage-legend{margin-top:14px;display:grid;gap:10px}
.storage-legend-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto auto;align-items:center;gap:9px;font-size:12px}
.storage-legend-row i{width:10px;height:10px;border-radius:3px}
.storage-legend-row b{font-variant-numeric:tabular-nums;white-space:nowrap}
.storage-pct{color:#64748b;min-width:44px;text-align:right;font-variant-numeric:tabular-nums}
.storage-meter{height:9px;background:#e7edf2;border-radius:99px;overflow:hidden;margin:10px 0}
.storage-meter span{display:block;height:100%;background:#64748b}
.storage-disk-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:#475569}
.storage-overview .notice{margin:0}
.storage-overview .notice ul{padding-left:18px;margin:8px 0}
.storage-overview .tiny{margin:0}
@media(max-width:620px){.storage-kpis{grid-template-columns:1fr}.storage-chart{padding:13px}.storage-legend-row{gap:6px;font-size:11px}}
