/* ONY product design, based on ony-design-system.md, 19 October 2026.
   Original ONY Text files are served locally; no third-party font requests. */
@font-face{font-family:"ONY Text";src:url("./fonts/ONYText-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"ONY Text";src:url("./fonts/ONYText-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"ONY Text";src:url("./fonts/ONYText-Italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
:root{
  --ony-bg:#fff;--ony-text:#191919;--ony-surface:#f7f7f7;--ony-line:rgba(0,0,0,.10);
  --ony-muted:#686868;--ony-success:#1e6b4a;--ony-warning:#8a5700;--ony-error:#e5402a;--ony-data-accent:#435cc8;
  --ony-radius-media:12px;--ony-radius-field:14px;--ony-radius-dialog:24px;--ony-radius-pill:999px;
  --ony-ease:cubic-bezier(.4,0,.2,1);--ony-motion-fast:200ms;
  --ink:var(--ony-text);--muted:var(--ony-muted);--line:var(--ony-line);--soft:var(--ony-surface);--paper:var(--ony-bg);
  --white:#fff;--cream:#f0f0f0;--cream-hover:#e8e8e8;--mint:#edf5f0;--pink:#fceeea;--lavender:#eef0fa;
  --red:#b82f1c;--green:var(--ony-success);--shadow:none;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:var(--paper);font-family:"ONY Text",Arial,sans-serif;font-size:16px;line-height:1.4;font-synthesis:none;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #191919;outline-offset:4px}
.shell{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;padding:30px 18px 24px;color:white;background:linear-gradient(160deg,#121C2B,#191919 58%,#2A3D5C);display:flex;flex-direction:column}
.brand{display:flex;align-items:flex-start;gap:10px;color:white;text-decoration:none;padding:0 8px 48px}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;border:2px solid var(--cream);border-radius:8px;color:var(--cream);font-weight:500;font-size:16px;margin-top:-3px;flex-shrink:0}
.brand strong{display:block;font-size:25px;font-weight:500;letter-spacing:.05em;line-height:1}
.brand small{display:block;font-size:12px;margin-top:7px;color:#c4c8d0}
nav{display:grid;gap:8px}
.nav-item{display:flex;align-items:center;gap:14px;border:0;border-radius:10px;background:transparent;color:#d7dce5;text-align:left;padding:14px;font-size:13px;font-weight:500;transition:background .2s,color .2s}
.nav-item span{font-family:inherit;font-size:12px;color:#a1aabb}
.nav-item:hover{background:rgba(255,255,255,.08)}
.nav-item.is-active{background:var(--cream);color:var(--ink);font-weight:500}
.nav-item.is-active span{color:#6b593c}
.source-note{display:flex;align-items:center;gap:10px;margin-top:auto;padding:18px 7px 0;border-top:1px solid rgba(255,255,255,.18)}
.source-dot{flex-shrink:0;width:7px;height:7px;border-radius:50%;background:#B6B4B4}
.source-note.is-live .source-dot{background:var(--mint)}
.source-note.is-stale .source-dot{background:var(--pink)}
.source-note strong{display:block;font-size:12px;font-weight:500}
.source-note small{display:block;font-size:12px;margin-top:5px;color:#bac3d2;max-width:150px;overflow-wrap:anywhere}
main{min-width:0;padding:0 34px 26px;max-width:1640px;width:100%;margin-inline:auto}
.topbar{min-height:116px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}
.eyebrow,.section-kicker{display:block;margin:0 0 9px;color:var(--muted);font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.09em;line-height:1.4}
h1,h2,h3,p{margin-top:0}
h1{margin-bottom:0;font-size:clamp(25px,2.6vw,38px);line-height:1.15;font-weight:500;letter-spacing:-.035em}
h2{margin-bottom:0;font-size:clamp(21px,2vw,29px);line-height:1.2;font-weight:500;letter-spacing:-.025em}
h3{margin-bottom:0;font-size:16px;font-weight:500}
.top-actions{display:flex;align-items:center;gap:12px}
.primary-btn{min-height:44px;padding:11px 18px;border:0;border-radius:10px;background:var(--cream);font-weight:500;font-size:12px;transition:background .2s}
.primary-btn:hover{background:var(--cream-hover)}
.period-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:22px 0;border-bottom:1px solid var(--line)}
.period-toolbar-label{display:flex;align-items:center;gap:12px;margin-right:8px}
.period-toolbar-label .section-kicker{margin:0}
.period-toolbar-label select{font:inherit;color:var(--ink);background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:8px 12px;cursor:pointer}
.period-toolbar-label strong{font-family:inherit;font-size:12px}
.period-options{display:flex;gap:5px;flex-wrap:wrap}
.period-options button{min-height:38px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px;font-weight:500;transition:background .2s,border-color .2s}
.period-options button:hover{background:var(--soft)}
.period-options button.is-active{background:var(--ink);border-color:var(--ink);color:white}
.period-toolbar>p{width:100%;margin:3px 0 0;font-size:12px;color:var(--muted)}
.alert{display:flex;justify-content:space-between;gap:16px;margin:20px 0 0;padding:14px 16px;border:1px solid #C9A86E;border-radius:10px;background:var(--soft);font-size:12px;line-height:1.6}
.alert button{border:0;background:transparent}
.view{display:none;padding:32px 0 40px;animation:rise .25s ease}
.view.is-active{display:block}
@keyframes rise{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.section-head,.year-row{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}
.muted{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:40px}
.metric-card{min-height:178px;padding:20px;border:2px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.card-pastel--cream{background:var(--cream);border-color:var(--cream)}
.card-pastel--mint{background:var(--mint);border-color:var(--mint)}
.card-pastel--lavender{background:var(--lavender);border-color:var(--lavender)}
.card-pastel--pink{background:var(--pink);border-color:var(--pink)}
.metric-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;font-size:12px;font-weight:500}
.metric-icon{display:grid;place-items:center;width:27px;height:27px;border:1px solid rgba(27,41,63,.22);border-radius:8px;font-size:13px}
.metric-card>strong{display:block;font-size:clamp(21px,2.15vw,34px);font-weight:500;line-height:1.1;letter-spacing:-.04em;white-space:nowrap}
.compact-metric>strong{font-size:clamp(21px,1.8vw,28px)}
.compare{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:14px;font-size:12px}
.delta{padding:4px 7px;border-radius:6px;font-weight:500;background:rgba(255,255,255,.55)}
.delta.down{color:var(--red)}.delta.up{color:var(--green)}
.compact-metric p{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
.year-row{align-items:center;margin-bottom:14px}
.dynamics-controls{display:flex;gap:12px;align-items:center}
.segmented{display:flex;gap:3px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff}
.segmented button{min-width:58px;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-weight:500;font-size:12px}
.segmented button.is-active{background:var(--cream);color:var(--ink)}
.status-filters{display:flex;align-items:center;gap:8px}
.status-toggle{display:flex;align-items:center;gap:7px;min-height:38px;padding:8px 11px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:12px;font-weight:500;cursor:pointer}
.status-toggle:has(input:checked){background:#f7f7f7;border-color:var(--lavender)}
.status-toggle input{accent-color:var(--ink);width:14px;height:14px;margin:0;cursor:pointer}
.dynamics-note{font-size:12px;color:var(--muted);margin:0 0 20px;line-height:1.6;max-width:800px}
.panel{border:2px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.dynamics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.quarter-card{overflow:hidden}
.quarter-card.is-selected{border-color:#191919}
.quarter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 20px 17px;background:var(--soft)}
.quarter-index{display:block;font-family:inherit;font-size:12px;letter-spacing:.06em;color:var(--muted);margin-bottom:7px}
.quarter-heading h3{font-size:20px;font-weight:500;letter-spacing:-.025em}
.quarter-heading .tag{background:#fff}
.quarter-table{width:100%;border-collapse:collapse;white-space:nowrap}
.quarter-table th{font-size:12px;padding:12px 9px;text-transform:uppercase;letter-spacing:.03em;text-align:right;border-block:1px solid var(--line);color:var(--muted);font-weight:500}
.quarter-table th:first-child{text-align:left;padding-left:20px}
.quarter-table td{padding:12px 9px;border-bottom:1px solid var(--line);font-size:12px;text-align:right}
.quarter-table td:first-child{padding-left:20px;text-align:left;font-size:12px}
.quarter-table th:last-child,.quarter-table td:last-child{padding-right:20px;background:var(--soft);font-weight:500}
.quarter-table tr:last-child td{border-bottom:0}
.quarter-table .quarter-row-revenue td{border-top:1px solid #d9d9d9;font-weight:500;padding-top:17px}
.quarter-row-cashflow td,.quarter-row-margin td{color:#686868}
.quarter-table .negative{color:var(--red)}
.year-total-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:18px;padding:22px 24px;border-radius:14px;background:var(--cream)}
.year-total-strip span{display:block;font-size:12px;margin:0 0 9px;color:var(--muted)}
.year-total-strip strong{display:block;font-size:22px;font-weight:500;letter-spacing:-.03em}
.year-total-strip>div+div{border-left:1px solid rgba(27,41,63,.12);padding-left:20px}
.year-total-caption{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:9px}
.year-comparison{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:12px}
.year-total-strip .year-comparison span{margin:0;line-height:1.5}
.year-total-strip .year-prior{font-size:12px}
.year-prior b{font-weight:500}
.year-comparison .delta{font-size:12px;white-space:nowrap}
.table-scroll{overflow:auto}
.report-totals{text-align:right}.report-totals span{display:block;font-size:12px;color:var(--muted)}
.report-totals strong{display:block;margin-top:8px;font-size:24px;font-weight:500}
.report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.report-summary article{padding:20px;border:2px solid var(--line);border-radius:14px;background:var(--soft)}
.report-summary article:nth-child(2){background:#f7f7f7}.report-summary article:nth-child(3){background:#f7f7f7}
.report-summary span,.report-summary small{display:block;color:var(--muted);font-size:12px;line-height:1.5}
.report-summary strong{display:block;font-size:21px;margin:12px 0 7px;font-weight:500;letter-spacing:-.03em}
.table-panel{overflow:hidden}
.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;border-bottom:1px solid var(--line)}
.table-toolbar p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.tag{display:inline-block;white-space:nowrap;padding:6px 9px;border-radius:7px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:500}
.report-table{width:100%;border-collapse:collapse;font-size:12px}
.report-table th{padding:13px 18px;border-bottom:1px solid var(--line);background:var(--soft);color:var(--muted);font-size:12px;font-weight:500;text-align:right}
.report-table th:first-child{text-align:left}
.report-table td{padding:13px 18px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.report-table td:first-child{max-width:480px;text-align:left;white-space:normal}
.report-table tr:last-child td{border-bottom:0}
.report-table tr.group-row td{background:var(--soft);font-weight:500}
.report-table tr.total-row td{background:#f0f0f0;font-weight:500;border-top:1px solid #d9d9d9}
.report-table tr.detail-row td:first-child{padding-left:36px;color:var(--muted)}
.negative{color:var(--red)}.positive{color:var(--green)}
.deal-controls{display:flex;gap:8px}
.deal-controls input,.deal-controls select{min-height:42px;padding:10px 12px;border:1px solid #d9d9d9;border-radius:8px;background:#fff;font-size:12px}
.deal-controls input{width:210px}
.deal-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.deal-overview article{padding:22px;border:2px solid var(--line);border-radius:14px;background:var(--soft)}
.deal-overview article:first-child{background:var(--mint);border-color:var(--mint)}
.deal-overview article:nth-child(2){background:var(--cream);border-color:var(--cream)}
.deal-overview article:nth-child(3){background:var(--lavender);border-color:var(--lavender)}
.deal-overview span,.deal-overview small{display:block;font-size:12px;color:var(--muted)}
.deal-overview strong{display:block;font-size:26px;font-weight:500;margin:11px 0 8px;letter-spacing:-.035em}
.deals-table td:first-child{min-width:300px}
.status-pill{padding:5px 7px;border-radius:6px;background:var(--soft);font-size:12px;font-weight:500}
.status-pill.done{background:var(--mint)}.status-pill.work{background:var(--cream)}
.empty{padding:36px!important;color:var(--muted);text-align:center!important}
footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:22px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.footer-credit{color:#8A9099}
@media(min-width:1500px){.metric-card>strong{font-size:34px}.compact-metric>strong{font-size:28px}.quarter-table td{font-size:12px}.quarter-table td:first-child{font-size:12px}}
@media(max-width:1250px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card>strong{font-size:30px}.dynamics-grid{grid-template-columns:1fr}.quarter-table td,.quarter-table td:first-child{font-size:12px}.quarter-table th{font-size:12px}.quarter-table td{padding:15px 16px}.report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.shell{grid-template-columns:176px minmax(0,1fr)}.sidebar{padding-inline:12px}.brand{gap:8px}.brand strong{font-size:22px}.brand small{font-size:12px}main{padding-inline:22px}.section-head{align-items:start;flex-direction:column;gap:12px}.year-row{align-items:start;flex-direction:column}.metric-card>strong{font-size:26px}.year-total-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.year-total-strip>div:first-child{grid-column:1/-1}.year-total-strip>div:nth-child(2){border:0;padding:0}.year-total-strip>div:nth-child(3){border-left:1px solid rgba(27,41,63,.12);padding-left:20px}}
@media(max-width:650px){.shell{display:block}.sidebar{position:fixed;inset:auto 12px 12px;height:auto;padding:6px;border-radius:14px;z-index:10;box-shadow:0 6px 20px rgba(27,41,63,.2)}.sidebar .brand,.source-note{display:none}.sidebar nav{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.nav-item{justify-content:center;padding:13px 4px;font-size:12px;gap:0}.nav-item span{display:none}main{padding:0 16px 96px}.topbar{padding-block:22px;min-height:0}.primary-btn{font-size:12px;padding-inline:12px}.eyebrow{font-size:12px}h1{font-size:25px}.period-toolbar{gap:12px;padding-block:18px}.period-toolbar-label{width:100%}.period-options{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.period-options button{padding:8px 3px;font-size:12px}.metric-grid{gap:10px;margin-bottom:28px}.metric-card{padding:16px;min-height:158px}.metric-top{font-size:12px;margin-bottom:22px}.metric-card>strong{font-size:clamp(18px,5vw,27px)}.metric-icon{display:none}.compare{font-size:12px;gap:4px}.compact-metric p{font-size:12px}.dynamics-controls{width:100%;justify-content:space-between;gap:8px}.quarter-heading{padding:16px}.quarter-table td{padding:13px 9px}.quarter-table td,.quarter-table td:first-child{font-size:12px}.quarter-table th{font-size:12px}.quarter-table td:first-child,.quarter-table th:first-child{padding-left:12px}.quarter-table td:last-child,.quarter-table th:last-child{padding-right:12px}.report-summary{gap:10px}.report-summary article{padding:15px}.report-summary strong{font-size:19px}.deal-controls{width:100%;flex-wrap:wrap}.deal-controls input{width:100%;flex:1 1 180px}.deal-overview{grid-template-columns:1fr}.table-toolbar{padding:16px}.table-toolbar h3{font-size:14px}.report-table td{padding:12px}.year-total-strip{padding:18px}.year-total-strip strong{font-size:20px}.year-total-strip>div+div{padding-left:14px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.text-link{font-size:12px;color:var(--muted);background:none;border:0;text-decoration:none;padding:6px}
.text-link:hover{color:var(--ink);text-decoration:underline}
.quarter-chart{padding:16px 20px 18px;border-top:1px solid var(--line)}
.chart-legend{display:flex;justify-content:flex-end;gap:15px;font-size:12px;color:var(--muted);margin-bottom:14px}
.chart-legend span{display:flex;align-items:center;gap:5px}
.chart-legend i{width:7px;height:7px;border-radius:2px}
.receipt-swatch,.bar-receipts{background:#191919}
.revenue-swatch,.bar-revenue{background:#8d8d8d}
.chart-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.chart-month{min-width:0;text-align:center}
.chart-bars{height:66px;display:flex;align-items:flex-end;justify-content:center;gap:7px;border-bottom:1px solid var(--line)}
.month-bar{width:26px;max-width:30%;border-radius:4px 4px 0 0;opacity:.8;transition:height .25s ease}
.month-bar:hover{opacity:1}
.bar-negative{background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgba(255,255,255,.5) 3px 5px)}
.chart-month-label{display:block;font-size:12px;margin-top:7px;color:var(--muted)}
@media(max-width:650px){.top-actions{gap:4px;flex-wrap:wrap;justify-content:flex-end}.top-actions .text-link{font-size:12px}.quarter-chart{padding:14px 12px}.chart-legend{font-size:12px}.year-total-strip{grid-template-columns:1fr 1fr}.year-total-strip>div:first-child{grid-column:1/-1}.year-total-strip>div:nth-child(2){border:0;padding:0}.year-total-strip>div:nth-child(3){border-left:1px solid rgba(27,41,63,.12);padding-left:14px}}
.access-body{background:var(--soft);min-height:100vh;display:grid;place-items:center;padding:28px 16px}
.access-card{background:white;border:2px solid var(--line);border-radius:18px;padding:36px;box-shadow:var(--shadow);width:min(100%,430px);margin:0}
.access-brand{display:block;color:var(--ink);text-decoration:none;font-size:30px;font-weight:500;letter-spacing:.04em;margin-bottom:38px}
.access-brand span{display:block;font-size:12px;letter-spacing:0;font-weight:500;margin-top:5px;color:var(--muted)}
.access-card h1{font-size:30px;margin-bottom:15px}.access-description{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:24px}
.access-card form{display:grid;gap:18px}.access-card label{display:grid;gap:8px;font-size:12px;font-weight:500}.access-card input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--soft);min-width:0}.access-card .primary-btn{font-size:12px}.form-message{font-size:12px;line-height:1.65;color:var(--red);overflow-wrap:anywhere;margin:16px 0}.access-foot{font-size:12px;color:var(--muted);margin:28px 0 0}.connection-card{width:min(100%,650px)}.connection-steps{padding-left:20px;font-size:12px;line-height:1.8}.connection-steps>li{padding-left:5px;margin-bottom:22px}.connection-steps a,.source-links a{color:var(--ink)}.connection-steps form{margin:10px 0}.connection-steps small{display:block}.account-email{background:var(--soft);padding:12px;border:1px solid var(--line);border-radius:8px;font-family:ui-monospace,monospace;font-size:12px;overflow-wrap:anywhere;user-select:all}.source-links{padding-left:16px}.connection-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
@media(max-width:650px){.access-card{padding:25px}.access-brand{margin-bottom:28px}.access-card h1{font-size:27px}}
/* P&L overview and analytics */
.pnl-break-even{text-align:right;min-width:220px}.pnl-break-even>strong{font-size:25px}.pnl-break-even>div{margin-top:7px}
.analysis-delta{display:inline-flex;align-items:center;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap}.analysis-delta.good{color:var(--green)}.analysis-delta.bad{color:var(--red)}.analysis-delta.neutral{color:var(--muted)}
.pnl-money-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.pnl-money-grid article{padding:18px 16px;background:var(--soft)}.pnl-money-grid article>span{font-size:12px;min-height:32px}.pnl-money-grid article>strong{font-size:clamp(17px,1.45vw,24px);white-space:nowrap}.pnl-money-grid article:nth-child(2){background:#f7f7f7}.pnl-money-grid article:nth-child(3){background:#f7f7f7}.pnl-money-grid .pnl-profit-card{background:#f7f7f7;border-color:var(--mint)}
.pnl-ratio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;border-block:1px solid var(--line);padding:20px 0}.pnl-ratio-grid article+article{border-left:1px solid var(--line);padding-left:22px}.pnl-ratio-grid article>span{font-size:12px;color:var(--muted)}.pnl-ratio-grid article>div{display:flex;gap:12px;align-items:baseline;margin:9px 0 5px;flex-wrap:wrap}.pnl-ratio-grid strong{font-size:26px;letter-spacing:-.035em}.pnl-ratio-grid small{font-size:12px;color:var(--muted)}
.comparison-caption{font-size:12px;color:var(--muted);margin:16px 0 22px;line-height:1.6}
.analytics-heading{margin:38px 0 22px}.analytics-heading h2{font-size:25px}.pnl-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.analytics-card{padding:24px;min-width:0}.analytics-title{margin-bottom:24px;display:flex;flex-wrap:wrap;align-items:start;gap:8px 15px}.analytics-title h3{font-size:16px;letter-spacing:-.015em;width:100%}.analytics-title p{width:100%;font-size:12px;color:var(--muted);line-height:1.6;margin:0}.analytics-title select{width:100%;max-width:260px;padding:9px 12px;border:1px solid var(--line);background:var(--soft);border-radius:8px;font-size:12px}.chart-wide{grid-column:1/-1}
.donut-layout{display:grid;grid-template-columns:148px minmax(0,1fr);gap:20px;align-items:center}.donut-graphic{position:relative;max-width:172px;width:100%;margin:auto}.donut-graphic svg{width:100%;display:block;overflow:visible}.donut-graphic circle{transition:opacity .15s}.donut-graphic circle:hover{opacity:.75}.donut-center{position:absolute;inset:30% 13%;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none;text-align:center}.donut-center small{font-size:12px;color:var(--muted);margin-bottom:6px}.donut-center strong{font-size:15px;white-space:nowrap;font-weight:500;letter-spacing:-.04em}
.donut-legend{list-style:none;margin:0;padding:0;display:grid;gap:11px;min-width:0}.donut-legend li{display:grid;grid-template-columns:7px minmax(0,1fr) auto 43px;gap:7px;align-items:start;font-size:12px;line-height:1.5}.donut-legend i{width:7px;height:7px;border-radius:2px;margin-top:4px}.donut-legend li>span{overflow-wrap:anywhere}.donut-legend b{font-weight:500;white-space:nowrap}.donut-legend small{text-align:right;color:var(--muted);font-size:12px;white-space:nowrap}
.chart-empty{min-height:180px;display:grid;place-content:center;text-align:center;gap:15px}.chart-empty p{font-size:12px;color:var(--muted);margin:0}.empty-donut{width:125px;height:125px;border:15px solid var(--line);border-radius:50%;display:grid;place-items:center;margin:auto;font-size:15px;font-weight:500;color:var(--muted)}.chart-note{font-size:12px;color:var(--muted);line-height:1.7;margin:18px 0 0}.composition-label{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:1.5;margin-bottom:7px}.composition-label span{overflow-wrap:anywhere}.composition-label b{font-size:12px;font-weight:500;white-space:nowrap}.composition-track{height:7px;background:var(--soft);border-radius:4px;overflow:hidden}.composition-track>span{height:100%;display:block;background:#8d8d8d;border-radius:4px}.signed-composition{display:grid;gap:14px;margin-top:20px}.negative-fill{background:var(--pink)!important}
.pair-legend{justify-content:flex-start;margin-bottom:24px;font-size:12px}.current-fill{background:var(--ink)}.previous-fill{background:var(--cream)}.pair-legend i{width:9px;height:9px;border-radius:2px}.article-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 34px}.article-comparison-row{position:relative;padding-right:62px;min-width:0}.article-comparison-label{display:flex;justify-content:space-between;gap:14px;font-size:12px;line-height:1.5;margin-bottom:9px;flex-wrap:wrap}.article-comparison-label>strong{font-weight:500;overflow-wrap:anywhere}.article-comparison-label>span{font-size:12px;white-space:nowrap}.article-comparison-label small{color:var(--muted);font-size:12px}.paired-tracks{display:grid;gap:4px}.paired-tracks>div{height:6px;background:var(--soft);border-radius:3px;overflow:hidden}.paired-tracks span{display:block;height:100%;border-radius:3px}.article-change{position:absolute;bottom:0;right:0;font-size:12px;color:var(--muted)}.more-articles{margin-top:26px;border-top:1px solid var(--line);padding-top:16px}.more-articles summary{font-size:12px;color:var(--muted);cursor:pointer;margin-bottom:20px}
.sales-analysis{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:40px;align-items:center}.sales-unit-breakdown{display:grid;gap:20px;align-content:start}.sales-unit-breakdown h4{font-size:12px;margin:0;font-weight:500}.sales-unit-breakdown small{display:block;font-size:12px;color:var(--muted);margin-top:6px}
.variable-panel,.horizontal-panel{margin-top:22px}.variable-analysis-grid{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.5fr);gap:40px;align-items:center}.variable-main>span,.variable-main>small{display:block;color:var(--muted);font-size:12px;line-height:1.6}.variable-main>strong{display:block;font-size:40px;letter-spacing:-.045em;margin:8px 0}.variable-main>small{margin-top:8px}.variable-comparison{display:grid;gap:22px}.variable-bar-row>div:first-child{display:flex;justify-content:space-between;gap:16px;font-size:12px;line-height:1.5;margin-bottom:8px}.variable-bar-row strong{font-size:12px;white-space:nowrap}.variable-bar-row small{color:var(--muted);font-size:12px;font-weight:500}.variable-track{height:12px;background:var(--soft);border-radius:5px;overflow:hidden}.variable-track span{display:block;height:100%;border-radius:5px}
@media(max-width:1400px){.pnl-money-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pnl-money-grid article>strong{font-size:23px}.donut-layout{grid-template-columns:1fr}.donut-graphic{max-width:154px}.donut-center strong{font-size:16px}.sales-analysis .donut-layout{grid-template-columns:154px minmax(0,1fr)}}
@media(max-width:1000px){.pnl-chart-grid{grid-template-columns:1fr}.chart-wide{grid-column:auto}.donut-layout{grid-template-columns:160px minmax(0,1fr)}.pnl-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pnl-money-grid article:last-child{grid-column:1/-1}.sales-analysis{grid-template-columns:1fr}.sales-analysis .donut-layout{grid-template-columns:160px minmax(0,1fr)}.article-comparison{grid-template-columns:1fr}.pnl-ratio-grid{gap:14px}.pnl-ratio-grid article+article{padding-left:14px}}
@media(max-width:650px){.pnl-break-even{width:100%;min-width:0;text-align:left;padding:16px;background:var(--soft);border:1px solid var(--line);border-radius:10px}.pnl-break-even>strong{font-size:25px}.pnl-money-grid article{padding:15px}.pnl-money-grid article>strong{font-size:clamp(17px,4.6vw,24px)}.pnl-money-grid article:last-child>strong{font-size:28px}.pnl-ratio-grid{grid-template-columns:1fr;gap:16px;padding:18px 0}.pnl-ratio-grid article+article{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}.pnl-ratio-grid article>div{margin-top:7px}.analytics-card{padding:19px}.analytics-heading h2{font-size:22px}.analytics-title{margin-bottom:20px}.analytics-title h3{font-size:15px}.donut-layout,.sales-analysis .donut-layout{grid-template-columns:1fr}.donut-graphic{max-width:166px}.donut-legend li{font-size:12px;gap:8px}.donut-legend small{font-size:12px}.donut-center strong{font-size:17px}.sales-analysis{gap:26px}.variable-analysis-grid{grid-template-columns:1fr;gap:24px}.variable-main>strong{font-size:36px}.variable-bar-row>div:first-child{flex-wrap:wrap;gap:5px}.comparison-caption{font-size:12px}.article-comparison-label{gap:4px}.pair-legend{flex-wrap:wrap;gap:10px}.horizontal-panel .table-toolbar h3{font-size:14px}}
.pnl-overview-card{display:flex;flex-direction:column}.overview-chart{display:grid;align-items:center;flex:1;min-width:0}.overview-chart .donut-layout{width:100%}.project-cost-panel .chart-note{margin-top:22px}
@media(max-width:1000px){.pnl-overview-card{aspect-ratio:auto}}
.pnl-insight-panel{margin-top:22px}.safety-grid{display:grid;grid-template-columns:1.1fr .65fr 1.2fr;gap:26px;align-items:center}.safety-grid span,.safety-grid small{display:block;color:var(--muted);font-size:12px;line-height:1.6}.safety-main>strong{display:block;font-size:32px;letter-spacing:-.04em;margin:10px 0}.safety-main>small{margin-top:8px}.safety-detail{padding-left:25px;border-left:1px solid var(--line)}.safety-detail>strong{display:block;font-size:21px;margin:11px 0;line-height:1.4}.safety-detail:last-child>strong{font-size:18px}.margin-fill{background:#191919}.unit-margin-table{min-width:850px}.margin-meter{width:140px;max-width:100%;height:7px;background:var(--soft);position:relative;margin:8px 0 0 auto;border-radius:3px}.margin-meter:after{content:'';position:absolute;left:50%;width:1px;top:-2px;bottom:-2px;background:var(--muted)}.margin-meter span{height:100%;display:block;position:absolute;border-radius:2px}
.bridge-summary{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:20px}.bridge-summary>span:first-child{font-size:12px;color:var(--muted);line-height:1.5}.bridge-scroll{overflow-x:auto}.bridge-scroll svg{display:block;width:100%;min-width:880px;font-family:inherit;font-size:12px;fill:var(--muted)}.bridge-grid{stroke:var(--line);stroke-width:1}.bridge-zero{stroke:var(--muted);stroke-width:1}.bridge-connector{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}.bridge-value{font-weight:500;fill:var(--ink)}.bridge-legend{margin:15px 0 0;font-size:12px;flex-wrap:wrap}.bridge-legend i{width:9px;height:9px}
.deal-filter-bar{display:flex;flex-wrap:wrap;gap:12px;width:100%;margin:0 0 20px}.deal-filter-bar input{flex:1;min-width:210px;width:auto}.deal-filter-bar select{min-width:190px}.deal-overview{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.deal-overview article{padding:20px 17px}.deal-overview strong{font-size:clamp(19px,1.9vw,27px)}.deal-overview article:nth-child(4){background:#f7f7f7;border-color:#f7f7f7}.report-totals>small{display:block;color:var(--muted);font-size:12px;margin-top:8px}.status-pill.ca{background:var(--lavender)}.status-pill.plan{background:var(--pink)}.deals-chart-grid{margin:22px 0}
@media(max-width:1200px){.safety-grid{grid-template-columns:1fr 1fr}.safety-detail:last-child{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);padding:18px 0 0}.deal-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.safety-grid{grid-template-columns:1fr;gap:20px}.safety-detail,.safety-detail:last-child{grid-column:auto;border-left:0;border-top:1px solid var(--line);padding:18px 0 0}.safety-main>strong{font-size:28px}.deal-overview{grid-template-columns:1fr}.deal-overview strong{font-size:26px}.deal-filter-bar input,.deal-filter-bar select{width:100%;min-width:0;flex:1 1 100%}.bridge-legend{justify-content:flex-start}}
.analysis-conclusion{margin-top:24px;padding:18px 20px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.analysis-conclusion.good{background:#f7f7f7;border-color:#e3e3e3}.analysis-conclusion.bad{background:#fff5f2;border-color:#f4d6cf}.analysis-conclusion>strong{display:block;font-size:12px;margin-bottom:10px}.analysis-conclusion p{font-size:12px;line-height:1.8;margin:0 0 8px;max-width:1100px}.analysis-conclusion p:last-child{margin-bottom:0}
@media(max-width:650px){.analysis-conclusion{padding:16px}.analysis-conclusion p{font-size:12px}}

.access-loading .nav-item{visibility:hidden}.access-loading .view{display:none}.user-identity{font-size:12px;color:var(--muted);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.no-access-panel{margin:32px 0;padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.no-access-panel p{font-size:13px;color:var(--muted);line-height:1.7;margin:15px 0 0}
.admin-body{background:var(--soft)}.admin-shell{max-width:1280px;margin:auto;padding:0 32px 32px}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0;margin-bottom:35px;border-bottom:1px solid var(--line)}.admin-header .access-brand{margin:0}.admin-nav{display:flex;gap:16px;align-items:center}.admin-list-panel{overflow:hidden;background:white}.users-table{min-width:900px}.users-table th,.users-table td{text-align:left;vertical-align:top}.users-table td:first-child{min-width:150px}.user-login{display:block;color:var(--muted);font-size:12px;margin-top:7px;line-height:1.6}.user-access{max-width:300px;line-height:1.8!important}.user-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:180px}.user-actions .text-link{padding:3px 5px}.account-status{display:inline-block;padding:5px 8px;border-radius:6px;font-size:12px;white-space:nowrap}.account-status.active{background:var(--mint);color:var(--green)}.account-status.disabled{background:var(--pink);color:var(--red)}
.admin-form-panel{padding:28px;margin:24px 0;background:white}.admin-form-panel .analytics-title h2{font-size:23px}.admin-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.admin-form-panel label{display:grid;gap:8px;font-size:12px;font-weight:500}.admin-form-panel input,.admin-form-panel select{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.admin-password-field{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:22px}.admin-password-field>label{flex:1;max-width:430px;min-width:240px}.admin-password-field p{flex-basis:100%;margin:0;line-height:1.7}.secondary-btn{padding:11px 16px;border:1px solid var(--line);border-radius:9px;background:white;font-size:12px;font-weight:500;min-height:42px}.secondary-btn:hover{background:var(--soft)}.permission-fieldset{border:0;padding:0;margin:30px 0 0}.permission-fieldset legend{font-size:14px;font-weight:500;margin-bottom:13px}.permission-presets{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:15px}.permission-presets .text-link{padding-left:0;margin-right:12px}.permissions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.permissions-grid .permission-option{display:flex;align-items:start;gap:12px;border:1px solid var(--line);border-radius:10px;padding:16px;font-weight:400}.permissions-grid input{width:17px;height:17px;padding:0;margin:2px 0 0;flex-shrink:0;accent-color:var(--ink)}.permission-option b{font-size:12px;line-height:1.5}.permission-option small{display:block;font-size:12px;line-height:1.6;color:var(--muted);margin-top:6px}.form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:24px}.admin-shell .form-message{color:var(--muted);line-height:1.7}.admin-shell footer{margin-top:36px}
@media(max-width:750px){.admin-shell{padding:0 16px 24px}.admin-header{gap:12px}.admin-nav{gap:7px;flex-wrap:wrap;justify-content:flex-end}.admin-form-panel{padding:20px}.admin-fields,.permissions-grid{grid-template-columns:1fr}.admin-password-field>label{min-width:0;flex-basis:100%;max-width:none}.admin-list-panel .table-toolbar{align-items:start;gap:15px;flex-wrap:wrap}.admin-list-panel .table-toolbar .primary-btn{font-size:12px}.user-identity{display:none}}

/* Project receivables */
.receivables-heading .muted{margin-top:10px}
.asof-control{display:grid;gap:7px;font-size:12px;font-weight:500;min-width:180px}
.asof-control input{border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:var(--soft);font-size:14px}
.asof-control span{color:var(--muted);font-size:12px;font-weight:400}
.receivables-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:18px;background:var(--soft);border:1px solid var(--line);border-radius:12px;margin-bottom:22px}
.receivables-filters label{display:grid;gap:8px;flex:1 1 160px;min-width:0;font-size:12px;font-weight:500;color:var(--muted)}
.receivables-filters input,.receivables-filters select{width:100%;min-height:40px;border:1px solid var(--line);border-radius:7px;background:white;padding:9px 10px;font-size:12px;color:var(--ink)}
.receivables-filters .receivables-search{flex:2 1 260px}.receivables-filters button{min-height:40px}
.receivables-summary article:first-child{background:var(--cream)}
.receivables-summary strong{font-size:clamp(20px,2vw,30px)}
.receivables-charts{align-items:start;margin-bottom:24px}
.debt-bars{display:grid;gap:18px}
.debt-bar-heading{display:flex;justify-content:space-between;align-items:start;gap:18px;font-size:12px;line-height:1.5}
.debt-bar-heading span{overflow-wrap:anywhere}.debt-bar-heading strong{flex-shrink:0;font-size:12px}
.debt-bar-track{height:12px;border-radius:3px;background:var(--soft);margin:7px 0 3px;overflow:hidden}
.debt-bar-fill{display:block;height:100%;min-width:1px;border-radius:3px}
.debt-client-fill{background:#191919}.debt-producer-fill{background:#686868}
.debt-bar-row small{font-size:12px;color:var(--muted)}
.debt-more .debt-bars{margin-top:20px;max-height:600px;overflow-y:auto;padding-right:8px}
.receivables-table{min-width:1350px}
.receivables-table th:nth-child(-n+6),.receivables-table td:nth-child(-n+6){text-align:left;white-space:normal}
.receivables-table td:first-child{min-width:280px;max-width:360px;overflow-wrap:anywhere}
.receivables-table td:nth-child(5){min-width:160px;overflow-wrap:anywhere}
.receivables-table .debt-balance{font-weight:500}.receivables-table .credit-balance{color:var(--green)}
.debt-balance small{display:block;font-size:12px;font-weight:400;margin-top:5px}
.receivables-method{margin-top:22px;color:var(--muted);font-size:12px;line-height:1.8}
.receivables-method summary{cursor:pointer;font-weight:500;color:var(--ink)}
.receivables-method p{max-width:1000px;margin:12px 0 0}
@media(max-width:760px){.receivables-heading{align-items:start;flex-direction:column}.asof-control{width:100%}.receivables-filters{gap:12px;padding:14px}.receivables-filters label{flex-basis:calc(50% - 12px)}.receivables-charts{grid-template-columns:1fr}.receivables-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.receivables-table .total-row td:not(:first-child){text-align:right;white-space:nowrap}
@media(max-width:650px){.sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr))}.topbar{flex-wrap:wrap}.topbar>div:first-child{max-width:100%}.top-actions{width:100%}.receivables-summary{grid-template-columns:1fr}}

/* Shared ONY shell and component system. */
html{scroll-padding-top:140px}
body{font-variant-numeric:lining-nums tabular-nums}
button,a,input,select,summary{touch-action:manipulation}
button,a,input,select{transition:background var(--ony-motion-fast) var(--ony-ease),color var(--ony-motion-fast) var(--ony-ease),border-color var(--ony-motion-fast) var(--ony-ease)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
button:disabled{cursor:not-allowed}
.skip-link{position:fixed;left:16px;top:-80px;z-index:50;background:var(--ink);color:#fff;border-radius:999px;padding:12px 24px;text-decoration:none}
.skip-link:focus{top:12px}
.shell{display:block;min-height:100vh}
.sidebar{position:sticky;inset:0 0 auto;height:auto;min-height:88px;z-index:20;padding:20px 32px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.brand{display:flex;align-items:center;gap:18px;padding:0;flex-shrink:0;color:var(--ink)}
.ony-logo{display:block;fill:currentColor;flex-shrink:0;width:105px;height:32px}
.brand-caption{max-width:100px;font-size:12px;line-height:16px;color:var(--muted)}
.sidebar nav{display:flex;gap:4px;align-items:center}
.nav-item{padding:11px 16px;min-height:44px;border-radius:999px;color:var(--muted);font-size:14px;font-weight:400;gap:0;white-space:nowrap;justify-content:center}
.nav-item span{display:none}
.nav-item:hover{background:var(--soft);color:var(--ink)}
.nav-item.is-active{background:var(--ink);color:#fff;font-weight:400}
.source-note{margin:0;padding:0;border:0;gap:9px;min-width:150px;flex-shrink:0}
.source-note strong{font-size:12px;font-weight:400}.source-note small{font-size:12px;color:var(--muted);margin-top:2px;max-width:180px}
.source-note.is-live .source-dot{background:var(--green)}.source-note.is-stale .source-dot{background:var(--ony-warning)}
main{max-width:1664px;padding:0 32px 32px;margin-inline:auto}
.topbar{padding:36px 0 28px;min-height:145px;gap:24px;align-items:center}
.eyebrow,.section-kicker{text-transform:none;letter-spacing:0;font-size:12px;line-height:16px;font-weight:400;margin-bottom:12px}
h1{font-size:clamp(30px,3vw,42px);line-height:1.1;font-weight:400;letter-spacing:-.035em;overflow-wrap:anywhere}
h2{font-size:28px;line-height:1.15;font-weight:400;letter-spacing:-.025em}
h3{font-size:18px;font-weight:400;line-height:1.3}
.top-actions{gap:4px 12px;max-width:620px}.user-identity{font-size:12px;max-width:130px}
.primary-btn,.secondary-btn{display:inline-flex;justify-content:center;align-items:center;min-height:48px;border-radius:999px;padding:12px 24px;font-size:14px;font-weight:400;line-height:20px;text-align:center}
.primary-btn{background:var(--ink);color:#fff;border:1px solid var(--ink)}
.primary-btn:hover{background:#3b3b3b;border-color:#3b3b3b}
.secondary-btn{background:var(--soft);border:1px solid transparent;color:var(--ink)}
.secondary-btn:hover{background:#ededed}
.text-link{font-size:12px;line-height:20px;padding:8px 4px;min-height:36px;color:var(--muted)}
.text-link:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.period-toolbar{gap:12px;padding:20px 0;align-items:center}
.period-toolbar-label{margin-right:16px;gap:12px}.period-toolbar-label strong{font-weight:400;font-size:14px}
.period-options{gap:4px;padding:4px;border-radius:999px;background:var(--soft)}
.period-options button{border:0;background:transparent;border-radius:999px;font-size:14px;font-weight:400;min-height:36px;padding:8px 15px}
.period-options button:hover{background:#ebebeb}.period-options button.is-active{background:var(--ink);color:#fff}
.period-toolbar>p{font-size:12px;line-height:18px;margin-top:0}
.view{padding:32px 0 48px}
.section-head,.year-row{margin-bottom:24px}.muted{font-size:12px;line-height:20px}
.metric-grid{gap:0;margin-bottom:48px;border-bottom:1px solid var(--line)}
.metric-card{padding:12px 32px 32px 0;border:0;border-radius:0;box-shadow:none;background:#fff;min-height:180px}
.metric-card+.metric-card{border-left:1px solid var(--line);padding-left:32px}
.metric-top{font-size:14px;font-weight:400;margin-bottom:24px}.metric-icon{display:none}
.metric-card>strong,.compact-metric>strong{font-size:clamp(30px,3.3vw,48px);font-weight:400;line-height:1.1;letter-spacing:-.035em}
.compare{font-size:12px;margin-top:18px;gap:10px}.delta{border-radius:999px;padding:4px 9px;background:var(--soft);font-size:12px;font-weight:400}
.segmented{padding:4px;background:var(--soft);border:0;border-radius:999px}
.segmented button{padding:8px 16px;border-radius:999px;min-height:36px;font-size:14px;font-weight:400}
.segmented button.is-active{background:var(--ink);color:white}
.status-toggle{min-height:44px;border-radius:999px;font-size:13px;font-weight:400;padding:10px 14px}
.status-toggle:has(input:checked){background:var(--soft);border-color:var(--line)}
.dynamics-note{font-size:12px;line-height:20px}.dynamics-grid{gap:24px}
.panel{border:1px solid var(--line);border-radius:12px;box-shadow:none;background:#fff}
.quarter-card.is-selected{border-color:#8b8b8b}
.quarter-heading{padding:24px;background:var(--soft)}.quarter-index{font-size:12px;letter-spacing:0;font-weight:400}
.quarter-heading h3{font-size:24px;font-weight:400}
.quarter-table th{font-size:12px;text-transform:none;letter-spacing:0;padding:12px 10px;font-weight:400}
.quarter-table td,.quarter-table td:first-child{font-size:14px;padding:14px 10px}
.quarter-table th:first-child,.quarter-table td:first-child{padding-left:24px}
.quarter-table th:last-child,.quarter-table td:last-child{padding-right:24px;font-weight:500}
.quarter-row-cashflow td,.quarter-row-margin td{color:var(--muted)}
.tag{font-size:12px;font-weight:400;border-radius:999px;padding:6px 10px}
.year-total-strip{background:var(--ink);color:white;border-radius:12px;padding:28px;gap:28px;margin-top:24px}
.year-total-strip span,.year-total-strip .year-total-caption,.year-total-strip .year-prior{color:#d2d2d2;font-size:12px;line-height:18px}
.year-total-strip strong{font-size:30px;line-height:1.15;font-weight:400;letter-spacing:-.025em}
.year-total-strip>div+div{border-left:1px solid #454545;padding-left:28px}
.year-total-strip .delta{background:#333;color:white}.year-total-strip .delta.up{color:#a4d5b9}.year-total-strip .delta.down{color:#ffb8ab}
.quarter-chart{padding:20px 24px}.chart-legend{font-size:12px;line-height:18px}.chart-month-label{font-size:12px}
.receipt-swatch,.bar-receipts{background:var(--ink)}.revenue-swatch,.bar-revenue{background:#9b9b9b}
.month-bar{opacity:1;border-radius:3px 3px 0 0}
.report-totals strong{font-size:30px;font-weight:400}.report-totals span,.report-totals>small{font-size:12px}
.report-summary,.deal-overview{gap:12px;margin-bottom:24px}
.report-summary article,.report-summary article:nth-child(n),.deal-overview article,.deal-overview article:nth-child(n){background:var(--soft);border:1px solid transparent;border-radius:12px;padding:24px;min-width:0}
.report-summary span,.report-summary small,.deal-overview span,.deal-overview small{font-size:12px;line-height:18px}
.report-summary strong,.deal-overview strong{font-size:clamp(24px,2.3vw,34px);line-height:1.15;font-weight:400;letter-spacing:-.03em;margin:20px 0 12px;overflow-wrap:anywhere}
.pnl-money-grid article>strong{font-size:clamp(22px,1.85vw,30px)}
.pnl-money-grid .pnl-profit-card{border-color:#d9d9d9;background:#fff}
.table-toolbar{padding:24px;align-items:center}.table-toolbar h3{font-size:18px;font-weight:400}.table-toolbar p{font-size:12px;line-height:20px}
.report-table{font-size:14px;line-height:20px}
.report-table th{font-size:12px;font-weight:400;padding:14px 20px;white-space:nowrap;vertical-align:middle}
.report-table td{padding:14px 20px;vertical-align:middle}
.report-table tr.group-row td{background:var(--soft);font-weight:500}
.report-table tr.total-row td{background:#ededed;font-weight:500;border-top:1px solid #ccc}
.report-table tbody tr:not(.total-row):not(.group-row):hover td{background:#fafafa}
.report-table td:first-child{min-width:180px}
.report-table:not(.users-table) th:first-child,.report-table:not(.users-table) td:first-child{position:sticky;left:0;z-index:1;background:white}
.report-table tr.group-row td:first-child{background:var(--soft)}.report-table tr.total-row td:first-child{background:#ededed}
.deals-table td:first-child{min-width:300px}.receivables-table td:first-child{min-width:280px}
.status-pill{font-size:12px;padding:5px 10px;border-radius:999px;font-weight:400;white-space:nowrap}
.status-pill.done{background:var(--soft);color:var(--green)}.status-pill.work{background:var(--soft);color:var(--ony-warning)}
.status-pill.ca{background:var(--soft);color:var(--ony-data-accent)}.status-pill.plan{background:var(--soft);color:var(--muted)}
.deal-controls input,.deal-controls select,.analytics-title select,.asof-control input,.receivables-filters input,.receivables-filters select,.access-card input,.admin-form-panel input,.admin-form-panel select{min-height:48px;padding:12px 16px;border:1px solid transparent;border-radius:14px;background:var(--soft);font-size:14px;line-height:20px;font-weight:400;color:var(--ink)}
input::placeholder{color:var(--muted);opacity:1}
.deal-controls input:hover,.deal-controls select:hover,input:hover,select:hover{border-color:#ddd}
.deal-controls input:focus,.deal-controls select:focus,input:focus,select:focus{border-color:#aaa}
.analytics-heading{margin-top:48px}.analytics-heading h2{font-size:28px}
.analytics-card{padding:28px}.analytics-title{gap:8px 16px}.analytics-title h3{font-size:18px;font-weight:400}
.analytics-title p,.chart-note,.comparison-caption{font-size:12px;line-height:20px}
.pnl-chart-grid{gap:24px}.donut-layout{grid-template-columns:160px minmax(0,1fr);gap:24px}
.donut-center strong{font-size:19px;font-weight:400}.donut-center small{font-size:12px}
.donut-legend li{font-size:13px;grid-template-columns:8px minmax(0,1fr) auto 44px;gap:8px}
.donut-legend small{font-size:12px}.donut-legend b{font-weight:400}
.composition-label,.composition-label b,.article-comparison-label,.article-comparison-label>span,.variable-bar-row>div:first-child,.variable-bar-row strong{font-size:13px}
.composition-track>span,.current-fill,.margin-fill{background:var(--ink)}.previous-fill{background:#a5a5a5}
.negative-fill{background:var(--red)!important}.paired-tracks>div,.composition-track{background:#efefef}
.pnl-ratio-grid strong,.safety-detail>strong{font-weight:400;font-size:28px}.pnl-ratio-grid article>span,.pnl-ratio-grid small{font-size:12px;line-height:18px}
.variable-main>strong,.safety-main>strong{font-weight:400;font-size:40px}
.safety-grid span,.safety-grid small{font-size:12px;line-height:20px}
.bridge-scroll svg{font-size:12px}.bridge-value{font-weight:500}
.analysis-conclusion{border-radius:12px;padding:20px 24px}.analysis-conclusion>strong{font-size:14px;font-weight:500}
.analysis-conclusion p{font-size:14px;line-height:22px}
.receivables-filters{border:0;padding:20px;background:var(--soft);gap:16px;border-radius:12px}
.receivables-filters input,.receivables-filters select{background:#fff}
.receivables-filters label,.asof-control{font-size:12px;font-weight:400;line-height:18px}
.receivables-filters button{min-height:48px}.asof-control span{font-size:12px}
.receivables-summary strong{font-size:clamp(25px,2.8vw,38px)}
.debt-bars{gap:24px}.debt-bar-heading,.debt-bar-heading strong{font-size:14px;font-weight:400;line-height:20px}
.debt-bar-track{height:8px;background:#efefef;border-radius:999px;margin:10px 0 6px}
.debt-bar-fill{border-radius:999px}.debt-client-fill{background:var(--ink)}.debt-producer-fill{background:#686868}
.debt-bar-row small,.debt-balance small{font-size:12px}.receivables-table .debt-balance{font-weight:500;color:var(--ink)}
.receivables-method{font-size:14px;line-height:22px;margin-top:28px}.receivables-method summary{font-weight:400;min-height:36px}
.alert{background:#fff8ed;border-color:#e4d4b5;border-radius:12px;color:#695023;font-size:14px}
.alert button{font-size:24px;min-width:32px}.no-access-panel p{font-size:14px}
footer{font-size:12px;padding:24px 0 0;color:var(--muted)}
.access-body{background:#fff;padding:48px 24px}
.access-card{width:min(100%,480px);padding:40px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:none}
.access-brand{display:flex;align-items:center;gap:20px;letter-spacing:0;margin-bottom:48px;font-weight:400;color:var(--ink)}
.access-brand span{display:block;max-width:100px;font-size:12px;line-height:16px;margin:0}
.access-card h1{font-size:38px;font-weight:400;line-height:42px;margin-bottom:16px}
.access-description{font-size:16px;line-height:24px}.access-card label{font-size:14px;font-weight:400;gap:8px}
.access-card form{gap:20px}.access-card .primary-btn{font-size:16px;min-height:50px;margin-top:4px}
.access-foot{font-size:12px;border-top:1px solid var(--line);padding-top:24px;margin-top:32px}
.form-message{font-size:14px;line-height:22px}.connection-card{width:min(100%,740px)}
.connection-steps{font-size:14px;line-height:24px}.connection-steps>li{margin-bottom:28px}
.account-email{border:0;border-radius:14px;padding:16px;font-size:13px}
.admin-body{background:#fff}.admin-shell{max-width:1440px;padding:0 32px 32px}
.admin-header{padding:28px 0;margin-bottom:40px}.admin-form-panel{padding:32px;margin-top:24px}
.admin-form-panel .analytics-title h2{font-size:28px}.admin-form-panel label{font-size:14px;font-weight:400}
.permission-fieldset legend{font-size:16px;font-weight:400}.permissions-grid .permission-option{border-radius:14px;padding:20px}
.permissions-grid .permission-option:has(input:checked){background:var(--soft);border-color:#aaa}
.permissions-grid input{min-height:0;flex-shrink:0}.permission-option b{font-size:14px;font-weight:500}.permission-option small{font-size:12px}
.account-status{border-radius:999px;font-size:12px}.account-status.active,.account-status.disabled{background:var(--soft)}
.user-login{font-size:12px}.user-actions .text-link{font-size:12px;min-height:32px}
@media(min-width:1500px){.metric-card>strong{font-size:48px}.quarter-table td,.quarter-table td:first-child{font-size:14px}}
@media(max-width:1250px){.brand-caption{display:none}.sidebar{padding-inline:24px;gap:16px}.nav-item{padding-inline:14px}.dynamics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quarter-table td,.quarter-table td:first-child{font-size:13px}.quarter-table th{font-size:12px}.quarter-table td{padding-inline:8px}.quarter-table td:first-child,.quarter-table th:first-child{padding-left:16px}.quarter-table td:last-child,.quarter-table th:last-child{padding-right:16px}.donut-layout{grid-template-columns:1fr}.topbar{align-items:flex-start}.top-actions{max-width:52%}.pnl-money-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1024px){.sidebar{flex-wrap:wrap;gap:16px;padding:18px 24px}.sidebar nav{order:3;width:100%;justify-content:flex-start}.brand-caption{display:block}.source-note{margin-left:auto}.topbar{min-height:0;flex-wrap:wrap;padding-top:32px}.top-actions{max-width:none}.dynamics-grid{grid-template-columns:1fr}.quarter-table td,.quarter-table td:first-child{font-size:14px}.pnl-chart-grid{grid-template-columns:1fr}.donut-layout,.sales-analysis .donut-layout{grid-template-columns:160px minmax(0,1fr)}.year-row{align-items:flex-start}.year-total-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.year-total-strip>div:first-child{grid-column:auto}.year-total-strip>div:nth-child(n+2){padding-left:20px;border-left:1px solid #454545}}
@media(max-width:767px){html{scroll-padding-top:148px}.sidebar{position:sticky;inset:0 0 auto;padding:16px 16px 12px;gap:12px;min-height:0}.ony-logo{width:79px;height:24px}.brand{gap:12px}.brand-caption{font-size:12px;line-height:14px}.source-note{min-width:0}.source-note strong{font-size:12px}.source-note small{display:none}.sidebar nav{overflow-x:auto;max-width:100%;gap:4px;scrollbar-width:none}.sidebar nav::-webkit-scrollbar{display:none}.nav-item{min-height:42px;font-size:14px;flex:0 0 auto;padding:10px 14px}.sidebar .brand,.sidebar .source-note{display:flex}main{padding:0 16px 28px}.topbar{padding:28px 0 24px;gap:20px}.topbar h1{font-size:30px;line-height:34px}.eyebrow{font-size:12px}.top-actions{width:100%;justify-content:flex-start;gap:4px 16px}.top-actions .text-link{font-size:12px}.top-actions .primary-btn{margin-top:4px}.user-identity{display:none}.primary-btn,.secondary-btn{font-size:14px;min-height:48px;padding:12px 20px}.period-toolbar{padding:20px 0;gap:12px}.period-options{display:flex;width:auto;max-width:100%;flex-wrap:wrap;border-radius:20px;gap:4px}.period-options button{font-size:14px;padding:8px 14px}.period-toolbar-label{width:100%}.view{padding:28px 0 36px}.section-head,.year-row{align-items:flex-start;flex-direction:column;gap:16px}.section-head h2,h2,.analytics-heading h2{font-size:24px;line-height:28px}.metric-grid{grid-template-columns:1fr;margin-bottom:32px}.metric-card{min-height:0;padding:0 0 24px}.metric-card+.metric-card{border-left:0;border-top:1px solid var(--line);padding:24px 0}.metric-top{margin-bottom:16px}.metric-card>strong,.compact-metric>strong{font-size:38px}.compare{font-size:12px}.dynamics-controls{justify-content:space-between;width:100%}.segmented button{font-size:14px}.quarter-heading{padding:20px}.quarter-chart{padding:20px 16px}.chart-legend{font-size:12px;gap:12px}.quarter-table td,.quarter-table td:first-child{font-size:12px;padding:14px 8px}.quarter-table th{font-size:12px;padding-inline:8px}.quarter-table th:first-child,.quarter-table td:first-child{padding-left:12px}.quarter-table th:last-child,.quarter-table td:last-child{padding-right:12px}.quarter-heading h3{font-size:24px}.year-total-strip{grid-template-columns:1fr;padding:24px;gap:24px}.year-total-strip>div:first-child{grid-column:auto}.year-total-strip>div:nth-child(n+2){border-left:0;border-top:1px solid #454545;padding:24px 0 0}.year-total-strip strong{font-size:30px}.report-summary,.deal-overview,.receivables-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-summary article,.report-summary article:nth-child(n),.deal-overview article:nth-child(n){padding:18px}.report-summary strong,.deal-overview strong,.receivables-summary strong{font-size:25px;line-height:30px;margin-top:16px}.pnl-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pnl-money-grid article>strong{font-size:23px}.pnl-money-grid article:last-child{grid-column:1/-1}.table-toolbar{padding:20px;flex-wrap:wrap;align-items:flex-start;gap:12px}.table-toolbar h3{font-size:18px}.report-table td,.report-table th{padding:14px 16px}.analytics-card{padding:20px}.analytics-title h3{font-size:18px}.pnl-chart-grid{gap:16px}.donut-layout,.sales-analysis .donut-layout{grid-template-columns:1fr}.donut-graphic{max-width:180px}.donut-center strong{font-size:20px}.donut-legend li{font-size:13px}.donut-legend small{font-size:12px}.chart-note,.comparison-caption,.analysis-conclusion p{font-size:12px;line-height:20px}.analysis-conclusion{padding:20px}.pnl-break-even{padding:20px;border-radius:12px}.receivables-filters{padding:16px;gap:16px}.receivables-filters label{flex-basis:100%}.receivables-filters button{width:100%}.receivables-charts{grid-template-columns:1fr}.asof-control{width:100%}.debt-bar-heading,.debt-bar-heading strong{font-size:14px}.debt-bar-heading{gap:12px}.receivables-method{font-size:14px;line-height:22px}.access-body{padding:24px 16px;display:block}.access-card{padding:28px 24px;margin:24px auto;border-radius:24px}.access-brand{margin-bottom:40px;gap:16px}.access-card h1{font-size:30px;line-height:34px}.access-description{font-size:16px}.access-card input,.admin-form-panel input,.admin-form-panel select,.receivables-filters input,.receivables-filters select,.deal-controls input,.deal-controls select,.asof-control input{font-size:16px}.admin-shell{padding:0 16px 24px}.admin-header{padding:24px 0;gap:16px;align-items:flex-start}.admin-header .access-brand{display:block}.admin-header .access-brand span{margin-top:12px}.admin-nav{flex-wrap:wrap;gap:8px;justify-content:flex-end}.admin-form-panel{padding:24px 20px}.admin-fields,.permissions-grid{grid-template-columns:1fr}.admin-password-field>label{min-width:0;max-width:none;width:100%;flex-basis:100%}.admin-shell .section-head h1{font-size:30px}.form-actions .primary-btn{max-width:100%}footer{font-size:12px;line-height:18px}}
@media(max-width:390px){.report-summary,.deal-overview,.receivables-summary{grid-template-columns:1fr}.report-summary strong,.deal-overview strong{font-size:30px}.pnl-money-grid article:last-child{grid-column:auto}.topbar h1{font-size:28px}.source-note strong{max-width:130px}.quarter-heading .tag{white-space:normal;text-align:right;max-width:160px}}
@media(max-width:767px){.sidebar nav{gap:2px;overflow:visible}.nav-item{flex:1 1 auto;min-width:0;font-size:13px;padding:10px 8px}.deals-table td:first-child,.receivables-table td:first-child{min-width:200px;max-width:220px;width:220px}}
@media(max-width:600px){.report-summary,.deal-overview,.receivables-summary{grid-template-columns:1fr}.pnl-money-grid article:last-child{grid-column:auto}.report-summary strong,.deal-overview strong{font-size:30px}}
@media(max-width:359px){.nav-item{font-size:12px;padding-inline:5px}.sidebar{padding-inline:12px}.source-note strong{font-size:11px}.brand-caption{font-size:11px}.access-card{padding:24px 20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.3rem .65rem;font-size:.78rem;white-space:nowrap;background:#eef1f5;color:#475467}.status-prepared{background:#f1f3f5;color:#667085}.status-uploaded{background:#e8f1ff;color:#1d4ed8}.status-sent{background:#fff4d6;color:#9a6700}.status-paid{background:#dcfce7;color:#166534}

/* Keep the native, keyboard-accessible file picker in the ONY control style. */
#payment-upload-form input[type=file]{
  height:auto;min-height:64px;max-width:100%;padding:8px;
  font:inherit;font-size:14px;line-height:20px;color:var(--muted);
  overflow:hidden;text-overflow:ellipsis;cursor:pointer;
}
#payment-upload-form input[type=file]::file-selector-button{
  min-height:44px;margin:0 16px 0 0;padding:12px 20px;
  border:1px solid rgba(255,255,255,.72);border-radius:999px;
  background:linear-gradient(145deg,rgba(255,255,255,.7),rgba(255,255,255,.42));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 1px 3px rgba(67,85,112,.07);
  color:var(--ink);font:inherit;line-height:20px;cursor:pointer;
  transition:background 200ms var(--ony-ease,ease),box-shadow 200ms var(--ony-ease,ease);
}
#payment-upload-form input[type=file]:hover::file-selector-button{
  background:rgba(255,255,255,.95);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 2px 6px rgba(67,85,112,.1);
}
#payment-upload-form input[type=file]:focus-visible{
  outline:2px solid var(--ony-focus,var(--ink));outline-offset:3px;
}
#payment-upload-form input[type=file]:disabled,
#payment-upload-form input[type=file]:disabled::file-selector-button{
  cursor:not-allowed;opacity:.65;
}
@media(max-width:767px){
  #payment-upload-form input[type=file]{font-size:16px}
  #payment-upload-form input[type=file]::file-selector-button{margin-right:12px;padding-inline:16px}
}

.payables-table th:nth-child(6),.payables-table td:nth-child(6){text-align:right;white-space:nowrap}

/* A full-height native picker and nearby feedback for manual bank statements. */
#bank-upload-form input[type=file]{height:auto;min-height:64px;max-width:100%;padding:8px;font:inherit;line-height:20px;cursor:pointer}
#bank-upload-form input[type=file]::file-selector-button{min-height:44px;margin-right:16px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);font:inherit;cursor:pointer}
#bank-upload-form #bank-upload-message{margin:0;padding:0}
#bank-upload-submit:disabled{opacity:.65;cursor:wait}
