/* studio/dashboard.css: the Dashboard in the new look (SPEC 2026-11-03 sections 3 and 4.8; panel 1 section 4 Dashboard; panel 2 section 7 item 6).
   Every rule starts with html[data-ui="studio"] and copies the Classic selector from public/css/dashboard.css verbatim, inside the same media or container
   block as the Classic rule it overrides. Every colour and size is a token of studio/tokens.css. Slice 2A (build/20-ledger-reports.md).
   The greeting is the page title (Lato 700, 28), the three tinted tiles are plain secondary buttons, the six cards are sections on hairlines (no card, no fill,
   no radius), and the charts are neutral greys by meaning: money in and the current period take the accent (the one light fill), money out keeps its hatching
   (panel-2 ground, secondary lines, a tertiary outline), the previous period is a raised-grey bar with a tertiary outline (a ghost beside a solid), the net line
   is primary ink. The donut is one ink at stepped opacity (the dataviz sequential ladder without a new colour): four solid steps, then four dashed steps,
   Others the quietest; the figure and name beside each swatch carry the identity. Amber and red keep their meanings; the one red here is the overdue triangle.
   No transition or animation shorthand is written here (a later studio rule would outrank the keyboard flag in tokens.css); Classic's durations stay. */

/* ---- The head: the greeting as the page title, the tiles as secondary buttons in a row, Insights for you as a section head ---- */
html[data-ui="studio"] .greet{font-family:var(--font-ui);font-weight:700;font-size:var(--type-xl);line-height:36px;color:var(--text-primary);overflow-wrap:anywhere}
html[data-ui="studio"] .tiles{display:flex;flex-wrap:wrap;gap:8px}
/* on a phone the three buttons stack, full width (panel 1 section 6; dashboard.browser.test.mjs:155 reads them one under another at 390 in both looks) */
@media (max-width:959px){html[data-ui="studio"] .tiles{flex-direction:column}}
html[data-ui="studio"] .tile{min-height:var(--control);padding:0 16px;border-radius:var(--radius-xs);background:var(--btn-strong);color:var(--text-primary);font-size:var(--type-m);font-weight:700;transition-property:background-color,transform}
html[data-ui="studio"] .tile-green,html[data-ui="studio"] .tile-blue,html[data-ui="studio"] .tile-purple,html[data-ui="studio"] .tile-orange{background:var(--btn-strong)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .tile:hover{filter:none;background:var(--btn-strong-hover)}}
html[data-ui="studio"] .insights-head{margin-top:16px}
html[data-ui="studio"] .insights-t{font-family:var(--font-ui);font-size:var(--type-l);font-weight:700;line-height:28px;color:var(--text-primary)}
html[data-ui="studio"] .insights{gap:40px}

/* ---- A card is a section on a hairline. The background is the void, stated (not transparent): the outflow contrast check reads the card's own colour. ---- */
html[data-ui="studio"] .dcard{gap:16px;padding:24px 0 0;background:var(--bg-void);border:0;border-top:1px solid var(--divider);border-radius:0}
html[data-ui="studio"] .dcard-t{font-size:var(--type-l);line-height:28px}
html[data-ui="studio"] .dcard-s{font-size:var(--type-xs);line-height:18px}
html[data-ui="studio"] .dcard-link .rowlink{font-size:var(--type-m)}
html[data-ui="studio"] .dsel{min-height:var(--control-s);font-size:var(--type-m)}
html[data-ui="studio"] .dcompare-l{font-size:var(--type-xs);font-weight:400}
html[data-ui="studio"] .dcard-empty{font-size:var(--type-m)}

/* ---- Overdue invoices and bills: rows as lines, 48 tall, the amount in mono, the red triangle before "Overdue ... ago" instead of a red word ---- */
html[data-ui="studio"] .od-scroll{gap:24px}
html[data-ui="studio"] .od-head{margin-bottom:0}
html[data-ui="studio"] .od-t{font-size:var(--type-xs);line-height:18px;font-weight:700;color:var(--text-secondary)}
html[data-ui="studio"] .orow{gap:12px;min-height:var(--row);padding:0;border-top:1px solid var(--divider)}
html[data-ui="studio"] .orow-name{font-weight:400}
html[data-ui="studio"] .orow-late{display:inline-flex;align-items:center;gap:6px;font-size:var(--type-xs);line-height:18px;color:var(--text-secondary)}
html[data-ui="studio"] .orow-late::before{content:"";flex:none;width:12px;height:11px;background:var(--flag);clip-path:polygon(50% 0,100% 100%,0 100%)}
html[data-ui="studio"] .orow-amt{font-family:var(--font-num);font-weight:700;font-variant-numeric:tabular-nums;color:var(--text-primary)}
html[data-ui="studio"] .orow-go{color:var(--text-tertiary)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .orow:hover{background:var(--row-hover)}}

/* ---- Charts: greys by meaning. Grid lines are the hair token (the chart sits on the void), the zero line tertiary, the axis in mono at 13. ---- */
html[data-ui="studio"] .chart .gl{stroke:var(--hair)}
html[data-ui="studio"] .chart .zero{stroke:var(--text-tertiary)}
/* the axis is Lato, not mono: six mono month labels collide at 390 (seen in the first picture); tabular figures keep the money ticks aligned */
html[data-ui="studio"] .chart .ax{font:400 var(--type-xs)/18px var(--font-ui);font-variant-numeric:tabular-nums;fill:var(--text-secondary)}
html[data-ui="studio"] .chart .bar-in{fill:var(--accent)}
html[data-ui="studio"] .chart .bar-out{stroke:var(--text-tertiary)}
html[data-ui="studio"] .chart .bar-prev{fill:var(--bg-raised);stroke:var(--text-tertiary);stroke-width:1}
html[data-ui="studio"] .chart .bar-cur{fill:var(--accent)}
html[data-ui="studio"] .chart .hatch-bg{fill:var(--bg-panel-2)}
html[data-ui="studio"] .chart .hatch-ln{fill:var(--text-secondary)}
html[data-ui="studio"] .chart .netline{stroke:var(--text-primary)}
html[data-ui="studio"] .chart .netdot{fill:var(--text-primary);stroke:var(--bg-void)}
html[data-ui="studio"] .chart .band{fill:var(--row-hover)}
html[data-ui="studio"] .chart .tip-bg{fill:var(--text-primary);opacity:1}
html[data-ui="studio"] .chart .tip-h{font:700 var(--type-xs)/18px var(--font-ui);fill:var(--bg-void)}
html[data-ui="studio"] .chart .tip-l{font:400 var(--type-xs)/18px var(--font-ui);fill:var(--bg-void)}
html[data-ui="studio"] .legend{gap:6px 16px}
html[data-ui="studio"] .sw{border-radius:2px;background:var(--text-tertiary)}
html[data-ui="studio"] .sw.in{background:var(--accent)}
html[data-ui="studio"] .sw.out{background:repeating-linear-gradient(135deg,var(--bg-panel-2) 0 3px,var(--text-secondary) 3px 5px);border:1px solid var(--text-tertiary)}
html[data-ui="studio"] .sw.net{background:var(--text-primary)}
html[data-ui="studio"] .sw.prev{background:var(--bg-raised);border:1px solid var(--text-tertiary)}html[data-ui="studio"] .sw.cur{background:var(--accent)}
/* the donut ladder: one ink, four solid steps (1, .72, .5, .36: the last is 3.0 to 1 on the panel-grey track, review R lifted it from .28), four dashed steps at the same four, Others at .16 */
html[data-ui="studio"] .sw.s0,html[data-ui="studio"] .arc.s0{background:var(--text-primary);stroke:var(--text-primary);opacity:1}html[data-ui="studio"] .sw.s1,html[data-ui="studio"] .arc.s1{background:var(--text-primary);stroke:var(--text-primary);opacity:.72}html[data-ui="studio"] .sw.s2,html[data-ui="studio"] .arc.s2{background:var(--text-primary);stroke:var(--text-primary);opacity:.5}html[data-ui="studio"] .sw.s3,html[data-ui="studio"] .arc.s3{background:var(--text-primary);stroke:var(--text-primary);opacity:.36}
html[data-ui="studio"] .sw.s4,html[data-ui="studio"] .arc.s4{background:none;border:1px dashed var(--text-primary);stroke:var(--text-primary);stroke-dasharray:6 4;opacity:1}html[data-ui="studio"] .sw.s5,html[data-ui="studio"] .arc.s5{background:none;border:1px dashed var(--text-primary);stroke:var(--text-primary);stroke-dasharray:6 4;opacity:.72}html[data-ui="studio"] .sw.s6,html[data-ui="studio"] .arc.s6{background:none;border:1px dashed var(--text-primary);stroke:var(--text-primary);stroke-dasharray:6 4;opacity:.5}html[data-ui="studio"] .sw.s7,html[data-ui="studio"] .arc.s7{background:none;border:1px dashed var(--text-primary);stroke:var(--text-primary);stroke-dasharray:6 4;opacity:.36}
html[data-ui="studio"] .sw.sOthers,html[data-ui="studio"] .arc.sOthers{background:var(--text-primary);stroke:var(--text-primary);opacity:.16}
html[data-ui="studio"] .donut .ring-bg{stroke:var(--bg-panel)}
html[data-ui="studio"] .donut .donut-pct{font:700 var(--type-xl)/1 var(--font-num);font-variant-numeric:tabular-nums;fill:var(--text-primary)}
html[data-ui="studio"] .donut .donut-sub{font:400 var(--type-xs)/18px var(--font-ui);fill:var(--text-secondary)}
html[data-ui="studio"] .donut-legend{font-size:var(--type-m)}
html[data-ui="studio"] .dl-pct{min-width:44px;font-family:var(--font-num);font-variant-numeric:tabular-nums}

/* ---- Net income table and Payable and owing: 48px rows on hairlines, column heads at 13 regular, figures in mono ---- */
html[data-ui="studio"] .dtable{font-size:var(--type-m)}
html[data-ui="studio"] .dtable th,html[data-ui="studio"] .dtable td{height:var(--row);padding:0;border-top:1px solid var(--divider)}
html[data-ui="studio"] .dtable thead th{height:auto;padding:0 0 8px;font-size:var(--type-xs);line-height:18px;font-weight:400;border-bottom:1px solid var(--divider)}
html[data-ui="studio"] .dtable .num{font-family:var(--font-num)}
html[data-ui="studio"] .owe+.owe{margin-top:16px}
html[data-ui="studio"] .owe-rows li{min-height:var(--row)}
html[data-ui="studio"] .owe-l{font-size:var(--type-m)}
html[data-ui="studio"] .owe-v{font-family:var(--font-num);font-variant-numeric:tabular-nums}
