/* PennyTrack: OLD brand look on v2 (client decision 20 Nov 2026, Variane via Mikael). Loaded last.
   The base look is the V1 app.css/cloud.css; this file only bridges v2-only elements to it. */
/* palette fixed by the client's reference artifact (ref/old-app-artifact.html) */
:root{--side-bg:var(--hc-1e5560);--accent:var(--hc-3fb8c6);}
html[data-theme=dark]{--side-bg:var(--hc-0e1112);}
/* contrast (text >= 4.5:1): the old values that failed are darkened/lightened minimally (client decision 20 Nov, see LANE-NOTES) */
:root{--side-mute:rgba(251,229,207,.8);--side-soft:rgba(251,229,207,.88);--ink-muted:var(--hc-516670);--red:var(--hc-bf3636);}
html[data-theme=dark]{--side-mute:rgba(251,229,207,.78);--ink-muted:var(--hc-d8c8b4);--red:var(--hc-ffc2c2);--violet-ink:var(--hc-cdbffc);}
.brand{color:var(--hc-8fdce6);}
.stepper .st-lbl i{color:var(--ink-soft);opacity:1;}
.side-wx .t1{color:var(--side-ink);}
html[data-theme=dark] a:not(.btn){color:var(--hc-8fd9e3);}
html[data-theme=dark] .factor i{color:var(--hc-0e1112);}
/* sidebar: wordmark + tagline as in the old app, collapse button under the brand */
.nav-toggle{position:static;width:28px;height:28px;margin-left:auto;align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1);border-radius:8px;font-size:15px;}
.brand .nl small{color:var(--side-soft);}
.brand .brand-mark svg{width:40px;height:34px;}
.nav-item svg{width:18px;height:18px;}
.nav-badge.alert{background:var(--red-tint);color:var(--red);display:inline-flex;align-items:center;gap:3px;}
.nav-badge.alert .li{color:inherit;}
html[data-theme=dark] .nav-badge.alert{background:rgba(255,100,100,.18);color:var(--hc-ff9a9a);}
.mode-sw button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:0;font-weight:700;}
/* controls: old stepper + chips */
.stepper{min-height:0;height:42px;padding:4px;}
.stepper button,.stepper .st-lbl{min-height:0;height:32px;}
.stepper button{width:32px;border-radius:9px;background:var(--brand-tint);color:var(--brand-deep);font-weight:800;font-size:15px;display:inline-block;}
.stepper .st-lbl{width:auto;min-width:132px;background:none;font-weight:700;font-size:13.5px;}
.stepper .st-lbl:hover{background:none;color:var(--brand-deep);}
.sel.loc{height:42px;min-height:0;align-items:center;gap:6px;font-weight:600;color:var(--ink-soft);border-color:var(--line);}
@media (min-width:901px){.sel.loc{display:inline-flex;}.today-chip{display:block;}}
.greeting input{background:transparent;}
.greeting input:hover{background:var(--surface);}
/* dashboard: key figure card in the old KPI language (orange left border, JetBrains Mono figure) */
.ov-hero{display:flex;position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px 26px 20px 30px;margin-top:14px;box-shadow:var(--shadow);gap:20px;justify-content:space-between;align-items:center;flex-wrap:wrap;}
.ov-hero::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--hc-e08a1e);}
.ov-hero .l{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-soft);}
.ov-hero .amt{font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace;font-size:34px;font-weight:800;letter-spacing:-.02em;color:var(--ink);margin:4px 0;}
.ov-hero .s{font-size:12.5px;color:var(--ink-soft);}
.ov-hero[data-empty]{background:var(--cream);}
.ov-status{font-size:12.5px;color:var(--ink-soft);margin:0 0 4px;}
.ov-status:empty{display:none;}
.ov-rank .r .b{background:var(--line);}
.ov-rank .r .b i{background:var(--brand);}
.chip.ok{background:var(--goal-tint);color:var(--goal-ink);}
/* money figures: JetBrains Mono everywhere a figure is shown */
.money,.amt,.kpi .v,.big-num,.pocket .amt,.ytm-row b,.ov-rank .r .v,.ov-goal .money,.ov-hero .amt,.stat-row .s .v,.pl-mini b{font-family:'JetBrains Mono','JetBrains Mono Fallback',monospace;}
.sec-head h2{font-size:17px;}

/* phone: forecast hero stays compact so the key figure is in the first screen (v2 phone layout kept) */
@media (max-width:900px){
  .wx{display:block;text-align:left;padding:14px 16px;border-radius:18px;}
  .wx .factors{justify-content:flex-start;}
  .wx h2 .score{margin-left:8px;}
  .wx svg.wx-ico{display:none;}
  .wx .eyebrow{font-size:10.5px;}
  .wx h2{font-size:20px;margin:2px 0 4px;line-height:1.2;}
  .wx p{font-size:13px;margin:0 0 8px;}
  .wx .factors{gap:6px;}
  .factor{font-size:12px;padding:4px 10px 4px 6px;}
  .ov-hero{padding:14px 16px 14px 20px;margin-top:10px;}
  .ov-hero .amt{font-size:28px;}
}

@media (max-width:900px){.btn,.btn.sm{min-height:44px;}}
.today-chip::before{content:'📅 ';}

/* forecast hero: title + score on one line; check glyphs drawn by CSS so the text stays translatable */
.wx-hd{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:4px 0 6px;}
.wx-hd h2{margin:0;}
.wx .score{margin-left:0;}
.factor::before{content:'✓';width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:800;color:var(--hc-fff);flex:none;background:var(--brand);}
.factor.warn::before{content:'!';background:var(--amber);} .factor.bad::before{content:'✕';background:var(--red);}
html[data-theme=dark] .factor::before{color:var(--hc-0e1112);}
.comfy-badge::before{content:'✓ ';}
.wx .eyebrow{color:rgba(24,33,58,.76);}
html[data-theme=dark] .wx .eyebrow{color:rgba(232,241,242,.8);}

.ov-hero[data-empty] .s{color:var(--ink);}
/* control outlines: the old #DAD2C4 is 1.5:1 on white; darkened to 3.2:1 (WCAG 1.4.11, tests A-09) while keeping the old warm tone */
:root{--control-line:var(--hc-8a8579);}
html[data-theme=dark]{--control-line:var(--hc-8c9c9a);}
.btn:not(.primary):not(.ghost),.card input[type=text],.card input[type=number],.card input[type=date],.card input[type=month],.card input[type=email],.card input[type=password],.card select,.field,.sel,.stepper,.tab,.method,select.cell,input.cell[type=text],textarea,.notes-box,.yt-phone select,.greeting input{border-color:var(--control-line);}
@media (max-width:900px){select,.sel,input:not([type=checkbox]):not([type=radio]){min-height:44px;}}

/* 3-step purchase sequence in the paywall / account card (r2fix): the numbers are drawn as circles, so no list numbering */
.pt-sheet .buy-steps,.pt-auth-card .buy-steps{list-style:none;display:flex;flex-direction:column;gap:8px;padding:0;margin:0 0 var(--space-4,16px);text-align:left;font-size:var(--text-sm,14px);font-weight:600}
.pt-sheet .buy-steps li,.pt-auth-card .buy-steps li{display:flex;align-items:center;gap:10px}
.pt-sheet .buy-steps b,.pt-auth-card .buy-steps b{flex:none;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--hc-235763);color:var(--hc-fff);font-size:13px}

/* PE-0177 (lane D): focus ring inside the dark sidebar must contrast with it */
#sidebar :focus-visible,.sidebar :focus-visible{outline:2px solid var(--hc-fff);outline-offset:2px}
/* PE-0032: every money figure is monospaced + tabular so columns line up and digits never jump */
.money,.amt,.kpi .v,.big-num,.pocket .amt,.ytm-row b,.ov-rank .r .v,.ov-goal .money,.ov-hero .amt,.stat-row .s .v,.pl-mini b,td[data-numeric]{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.mode-sw .ms-ic{display:inline-flex}.mode-sw .ms-ic svg{display:block}
/* PE-0234: a wide table scrolls inside its own card; it never widens the whole page (grid children may shrink) */
.app>*,.app main,#page,#page .section,#page .card{min-width:0}
/* the import block title: bold name on its own line, the format hints below it (they ran into each other) */
.upload .imp-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--space-1) var(--space-2)}
.upload .imp-title>b{flex:0 1 auto}
.tbl-wrap{position:relative}
.sec-after-kpi{margin-top:var(--space-4);margin-bottom:var(--space-4)}
