@font-face{font-family:'Overpass';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/overpass-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Overpass';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/overpass-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Overpass';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/overpass-latin-800-normal.woff2) format('woff2')}
@font-face{font-family:'Overpass';font-style:normal;font-weight:900;font-display:swap;src:url(fonts/overpass-latin-900-normal.woff2) format('woff2')}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2')}
:root{
  color-scheme:light;
  --ts:1; /* ADR-077: Text size. Every font size is calc(<size> * var(--ts)), so the default 1 leaves each exactly as it was */
  --ground:#ECF2EE;
  --surface:#FFFFFF;
  --surface-2:#F3F7F5;
  --ink:#0B1A13;
  --ink-2:#46594F;
  --ink-3:#5F7067;
  --line:#D3DED8;
  --line-2:#E3EBE6;
  --tax:#2C5CA6;
  --mortgage:#6B4FC4;
  --goal:#1F8A99;
  --baby:#BF4B75;
  --safe:#16714F;
  --signal:#F3B000;
  --plate-ink:#FFFFFF;
  --good:#0A7C43;
  --good-bg:#DBF2E5;
  --warn:#A35F00;
  --warn-bg:#F8EAD3;
  --btn:#0B8446;
  --btn-ink:#FFFFFF;
  --focus:#2C5CA6;
  --hero-bg:#0E1612;
  --hero-ink:#F1F5F2;
  --hero-ink-2:#A6B3AC;
  --hero-line:rgba(255,255,255,.12);
  --road:#2A3530;
  --lane:rgba(255,255,255,.88);
  --c-fuel:#B06A00;--c-food:#A3123A;--c-sent:#6B4FC4;--c-personal:#0B7A8A;--c-other:#7A857F;--c-bills:#55625B;--c-save:var(--safe);--c-extra:var(--c-bills);--c-in:var(--good);
  --shadow:0 1px 0 rgba(20,31,26,.04),0 14px 34px -20px rgba(20,31,26,.38);
  --nav-on:#D7F5E2;
  --nav-accent:#0A7C43;
  --accent:#12A55C;
  --chart-line:#12A55C;
  --line-strong:#7E8C84;
  --danger:#C93434;
  --danger-bg:#FAE3E1;
  --info:#2C5CA6;
  --info-bg:#E1EAF7;
  --toast-bg:#0B1A13;--toast-ink:#EEF5F1;--toast-act:#3BE38D;--backdrop:rgba(11,26,19,.4);
  --warn-ink:#8A4F00;--good-ink:#086A39;
  --f-display:'Overpass','Arial Narrow','Helvetica Neue',Arial,sans-serif;
  --f-body:'Atkinson Hyperlegible',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --ground:#060A08;--surface:#0E1512;--surface-2:#141E1A;--ink:#EEF5F1;--ink-2:#A1B3AA;--ink-3:#8A9B92;
    --line:#25332C;--line-2:#17221D;
    --tax:#7EA6EC;--mortgage:#B5A3F5;--goal:#6FCBD6;--baby:#EA8FB0;--safe:#52BE92;--signal:#F6C641;--plate-ink:#050A08;
    --good:#3BE38D;--good-bg:#0F2A1D;--warn:#FFB547;--warn-bg:#2B2112;
    --btn:#2BDB82;--btn-ink:#03140A;--focus:#7EA6EC;
    --hero-bg:#0E1612;--hero-ink:#F1F5F2;--hero-ink-2:#9DAAA3;--hero-line:rgba(255,255,255,.10);
    --road:#0E1412;
    --c-fuel:#F0B04A;--c-food:#F25C6E;--c-sent:#B09CF2;--c-personal:#56C8D6;--c-other:#86928B;--c-bills:#A1AEA7;
    --shadow:0 1px 0 rgba(0,0,0,.3),0 14px 34px -20px rgba(0,0,0,.85);
    --nav-on:#11301F;
    --nav-accent:#3BE38D;--accent:#2BDB82;--chart-line:#1DAA64;--line-strong:#5F6E66;--danger:#FF6B6B;--danger-bg:#2A1314;--info:#7EA6EC;--info-bg:#1A2840;
    --toast-bg:#EEF5F1;--toast-ink:#0B1A13;--toast-act:#0A7C43;--backdrop:rgba(0,0,0,.55);
    --warn-ink:#FFB547;--good-ink:#3BE38D;
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --ground:#060A08;--surface:#0E1512;--surface-2:#141E1A;--ink:#EEF5F1;--ink-2:#A1B3AA;--ink-3:#8A9B92;
  --line:#25332C;--line-2:#17221D;
  --tax:#7EA6EC;--mortgage:#B5A3F5;--goal:#6FCBD6;--baby:#EA8FB0;--safe:#52BE92;--signal:#F6C641;--plate-ink:#050A08;
  --good:#3BE38D;--good-bg:#0F2A1D;--warn:#FFB547;--warn-bg:#2B2112;
  --btn:#2BDB82;--btn-ink:#03140A;--focus:#7EA6EC;
  --hero-bg:#0E1612;--hero-ink:#F1F5F2;--hero-ink-2:#9DAAA3;--hero-line:rgba(255,255,255,.10);
  --road:#0E1412;
  --c-fuel:#F0B04A;--c-food:#F25C6E;--c-sent:#B09CF2;--c-personal:#56C8D6;--c-other:#86928B;--c-bills:#A1AEA7;
  --shadow:0 1px 0 rgba(0,0,0,.3),0 14px 34px -20px rgba(0,0,0,.85);
  --nav-on:#11301F;
  --nav-accent:#3BE38D;--accent:#2BDB82;--chart-line:#1DAA64;--line-strong:#5F6E66;--danger:#FF6B6B;--danger-bg:#2A1314;--info:#7EA6EC;--info-bg:#1A2840;
  --toast-bg:#EEF5F1;--toast-ink:#0B1A13;--toast-act:#0A7C43;--backdrop:rgba(0,0,0,.55);
  --warn-ink:#FFB547;--good-ink:#3BE38D;
}
*{box-sizing:border-box}
html,body{background:var(--ground)}
:root[data-textsize="larger"]{--ts:1.15}:root[data-textsize="largest"]{--ts:1.3} /* ADR-077 */
html{scroll-padding-bottom:96px}
@media (min-width:720px){html{scroll-padding:24px 0 0}}
html{-webkit-tap-highlight-color:transparent}
body{margin:0;color:var(--ink);font-family:var(--f-body);font-size:calc(15px*var(--ts));line-height:1.5;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
.skip{position:absolute;left:16px;top:-100px;z-index:100;padding:12px 16px;border-radius:12px;background:var(--btn);color:var(--btn-ink);font-family:var(--f-display);font-weight:800;text-decoration:none}
.skip:focus{top:max(16px,env(safe-area-inset-top,0px))}
body:not(.has-tabs) .skip{display:none}
#main:focus{outline:none}
.app{max-width:1120px;margin:0 auto;padding-inline:max(16px,env(safe-area-inset-left,0px));padding-block:max(18px,env(safe-area-inset-top,0px)) max(56px,env(safe-area-inset-bottom,0px))}
@media (min-width:720px){.app{padding-inline:28px;padding-block:28px 64px}}
h1,h2,h3{margin:0;font-family:var(--f-display);text-wrap:balance;letter-spacing:-.01em}
p{margin:0}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default;opacity:.35}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:8px}
.amt,.num{font-family:var(--f-display);font-variant-numeric:tabular-nums}
small{font-size:calc(12.5px*var(--ts))}

/* header */
.top{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:16px;min-height:44px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand>div{min-width:0}
.mark{flex:none;width:32px;height:32px;display:block}
.brand-name{font-family:var(--f-display);font-weight:800;font-size:calc(20px*var(--ts));line-height:1.1;letter-spacing:-.01em}
.brand-sub{font-size:calc(12.5px*var(--ts));color:var(--ink-2);line-height:1.3}
.brand-sub:empty{display:none}
.meta{display:flex;align-items:center;gap:8px;font-size:calc(13px*var(--ts));color:var(--ink-2);flex:none}
.settings-btn svg{width:20px;height:20px}
body:not(.has-tabs) .settings-btn,.rail-util{display:none}
@media (max-width:600px){
  #today-lbl{display:none}
  .pill.ok{width:36px;height:36px;padding:0;justify-content:center;color:var(--good);background:var(--good-bg);border-color:transparent}
  .pill.ok .pill-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .pill.ok .dot{display:none}
  .pill.ok .pill-i{display:grid}
}
.pill-i{display:none;place-items:center}
.pill-i svg{width:19px;height:19px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:calc(12px*var(--ts));color:var(--ink-2);white-space:nowrap}
.pill .dot{width:7px;height:7px;border-radius:50%;background:var(--ink-3)}
.pill.ok .dot{background:var(--good)}
.pill.off .dot{background:var(--warn)}

/* install banner + setup */
.install{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 12px 10px 14px;margin-bottom:14px}
.install b{display:block;font-family:var(--f-display);font-weight:800}
.install small{color:var(--ink-2);display:block;line-height:1.3}
.setup{max-width:640px;margin:8px auto 0}
.setup h2{font-size:calc(26px*var(--ts));font-weight:900;margin:4px 0 8px}
.setup p{color:var(--ink-2);margin:0 0 14px}
.setup ol{margin:0 0 16px;padding-left:20px;color:var(--ink-2)}
.setup ol li{margin-bottom:4px}
.setup details{margin-top:16px}
.setup summary{cursor:pointer;font-weight:700}
.welcome{margin:-18px -16px 20px;padding:20px 18px 16px;background:var(--hero-bg);color:var(--hero-ink);border-radius:17px 17px 0 0;position:relative;overflow:hidden}
@media (min-width:720px){.welcome{margin:-20px -22px 22px;padding:24px 24px 18px}}
.welcome .eyebrow{color:var(--hero-ink-2)}
.setup .welcome h2{color:var(--hero-ink);margin:4px 0 6px}
.setup .welcome p{color:var(--hero-ink-2);margin:0}
.setup-h{font-size:calc(20px*var(--ts));font-weight:900;margin:0 0 6px}
.setup ol.steps{list-style:none;counter-reset:st;padding:0;margin:0 0 18px;display:grid;gap:10px}
.setup ol.steps li{counter-increment:st;display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;margin:0}
.setup ol.steps li::before{content:counter(st);width:26px;height:26px;border-radius:50%;background:var(--surface-2);border:1px solid var(--line);display:grid;place-items:center;font-family:var(--f-display);font-weight:800;font-size:calc(13px*var(--ts));color:var(--ink)}
.file-btn{position:relative;overflow:hidden}
.file-btn input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
textarea{display:block;width:100%;min-height:150px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--ink);font:calc(13px*var(--ts))/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:10px;margin:10px 0}
.privacy{display:flex;gap:10px;align-items:flex-start;margin-top:18px;padding:12px;border-radius:12px;background:var(--surface-2);font-size:calc(13.5px*var(--ts));color:var(--ink-2)}
.privacy svg{flex:none;width:20px;height:20px;color:var(--safe);margin-top:1px}

/* layout */
.layout{display:flex;flex-direction:column;gap:16px}
.cols{display:flex;flex-direction:column;gap:16px}
.col{display:contents}
.tab{display:flex;flex-direction:column;gap:16px}
.tab.tab-in{animation:tab-in .32s cubic-bezier(.2,.8,.2,1)}
@keyframes tab-in{from{opacity:0;transform:translateY(14px)}}
/* primary navigation: a solid bottom bar on phones, a left rail from 720px (ADR-024 UX-D4). The same five buttons serve both. */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:0 max(0px,env(safe-area-inset-left,0px)) env(safe-area-inset-bottom,0px) max(0px,env(safe-area-inset-right,0px));background:var(--surface);border-top:1px solid var(--line)}
body:not(.has-tabs) .tabs{display:none}
.rail-brand{display:none}
.tablist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))} /* ADR-198: four tabs */
/* ADR-214a: Work only, two tabs (Today and Work) and no + on the web (the app's + reads the card) */
body.work-only .tablist{grid-template-columns:repeat(2,minmax(0,1fr))}
body.work-only #tb-money,body.work-only #tb-timeline{display:none}
body.work-only.no-card #fab{display:none}
.tabs button{position:relative;min-height:56px;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 2px;border-radius:0;font-family:var(--f-display);font-weight:700;font-size:calc(12px*var(--ts));line-height:1.15;color:var(--ink-2);transition:color .15s,background-color .15s}
.tabs .ti{display:grid;place-items:center;width:24px;height:24px}
.tabs .ti svg{width:22px;height:22px}
.tabs .tl{max-width:100%;white-space:nowrap;text-align:center}
.tabs button:hover{color:var(--ink)}
.tabs button[aria-selected="true"]{color:var(--ink);font-weight:800}
.tabs button[aria-selected="true"]::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:var(--nav-accent)}
.tabs button:focus-visible{outline-offset:-4px}
body.has-tabs .app{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
body.has-tabs #toast{bottom:calc(74px + env(safe-area-inset-bottom,0px))}
@media (min-width:720px){
  .tabs{top:0;right:auto;bottom:0;left:0;width:76px;padding:28px 8px 16px;border-top:0;border-right:1px solid var(--line);overflow-y:auto}
  .tablist{display:flex;flex-direction:column;gap:4px}
  .tabs button{min-height:56px;border-radius:12px;font-size:calc(11.5px*var(--ts))}
  .tabs button[aria-selected="true"]{background:var(--surface-2)}
  .tabs button[aria-selected="true"]::before{top:12px;bottom:12px;left:0;right:auto;width:3px;height:auto;border-radius:0 3px 3px 0}
  .tabs button:focus-visible{outline-offset:-3px}
  body.has-tabs{padding-left:76px}
  /* the product mark lives in the rail from here up, so the scrolling header does not show a second one */
  .brand .mark,.brand-name{display:none}
  .rail-brand{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0 0 24px}
  .top .settings-btn{display:none}
  .tabs{display:flex;flex-direction:column}
  .tablist{flex:none}
  .rail-util{display:block;margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}
  .rail-util button{width:100%;color:var(--ink-2)}
  .rail-brand .mark{width:32px;height:32px}
  .rail-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body.has-tabs .app{padding-bottom:64px}
  body.has-tabs #toast{bottom:18px}
}
@media (min-width:980px){
  .tabs{width:232px;padding:28px 12px 16px}
  .tabs button{flex-direction:row;justify-content:flex-start;gap:12px;min-height:44px;padding:10px 12px;font-size:calc(15px*var(--ts));text-align:left}
  .tabs .tl{text-align:left}
  body.has-tabs{padding-left:232px}
  .rail-brand{justify-content:flex-start;gap:12px;padding:0 12px}
  .rail-name{position:static;width:auto;height:auto;overflow:visible;clip:auto;font-family:var(--f-display);font-weight:800;font-size:calc(20px*var(--ts));line-height:1.1;letter-spacing:-.01em}
}

/* destination headers, and the Money views that carry the earlier screens until the Money slice (UI/UX Slice 2) */
.page-h{display:grid;gap:4px}
.page-h h1{font-size:calc(clamp(26px,6vw,32px)*var(--ts));font-weight:800;line-height:1.1;letter-spacing:-.015em}
.page-sub{color:var(--ink-2);font-size:calc(14.5px*var(--ts))}
.page-sub:empty{display:none}
.money-cols{display:grid;gap:16px}
.money-col{display:grid;gap:16px;align-content:start}
@media (min-width:1180px){.money-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}}
#tab-money .panel:empty{display:none}
#tab-money .panel>h2,#tab-money .panel-h h2{font-size:calc(18px*var(--ts));font-weight:800}
#alerts-slot:empty{display:none}
/* Money: one page of flat sections. Ruled rows replace the metric tiles and the boxes inside boxes; figures stay tabular */
#tab-money .tiles{grid-template-columns:1fr;gap:0;margin-top:16px}
#tab-money .tiles>div,#tab-money .tiles.m3>div:nth-child(3){grid-column:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:baseline;background:none;border:0;border-top:1px solid var(--line-2);border-radius:0;padding:12px 0}
#tab-money .tiles .k{grid-column:1;font-size:calc(12px*var(--ts))}
#tab-money .tiles .v{grid-column:2;grid-row:1;margin:0;text-align:right;font-size:calc(20px*var(--ts))}
#tab-money .tiles small{grid-column:1/-1;margin-top:2px}
#thisweek .save,#thisweek .extra,#logmoney .add-form{background:none;border:0;border-top:1px solid var(--line-2);border-radius:0;padding:14px 0 0;box-shadow:none}
#thisweek .save{padding-bottom:4px}
#thisweek .extra{padding:12px 0 0;margin-top:12px}
#logmoney .add-form.editing{border-top-color:var(--ink-2);box-shadow:none}
#logmoney .quick{gap:8px}
#logmoney .q-btn{min-height:64px;justify-content:center;border-color:var(--line-strong);border-radius:12px}
/* ADR-060: Same again, the spends logged often, one tap each */
.same-again{margin:0 0 14px}
.sa-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.sa-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:4px 14px 4px 6px;border-radius:22px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:700;font-size:calc(14px*var(--ts));cursor:pointer}
.sa-btn .cat-dot{width:32px;height:32px}
.sa-btn span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ADR-074: one payment split across kinds, and an amount typed as a sum */
.tx-sum{margin:-2px 0 0;font-weight:700}.tx-sum:empty{display:none}.tx-sum.bad{color:var(--warn)}
.split{display:grid;gap:8px;padding:12px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.sp-row{display:flex;align-items:center;gap:8px}
.sp-k{display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;font-weight:700}
.sp-sel{flex:1 1 0;min-width:0;min-height:44px;padding:0 10px;border-radius:12px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);font:inherit;font-size:calc(16px*var(--ts))}
.add-form .sp-row .money-in{flex:0 1 130px;min-width:96px}
.sp-row .money-in input{font-size:calc(18px*var(--ts));padding:8px 0}
.sp-x{flex:none;width:44px;height:44px}
.sp-left{margin:0;font-weight:700}
.split .btn.link,.add-form .sp-on{min-height:44px;justify-self:start}
#logmoney .q-btn:active{transform:none}
#tab-money .slip-row{border-bottom:1px solid var(--line-2)}
#tab-money .loan,#tab-money .pot{background:none;border:0;border-top:1px solid var(--line-2);border-radius:0;padding:14px 0}
#tab-money .loans,#tab-money .pots{gap:0}
#log .row{border-radius:8px}
.sav-bar{display:flex;gap:2px;height:12px;margin:16px 0 4px;border-radius:6px;overflow:hidden}
.sav-bar .seg{background:color-mix(in srgb,var(--c) 20%,var(--surface-2))}
.sav-hero .stats{display:grid;grid-template-columns:1fr;gap:0;margin-top:12px}
.sav-hero .stat{display:flex;justify-content:space-between;align-items:baseline;gap:12px;border-top:1px solid var(--line-2);padding:12px 0}
.sav-hero .stat .k{color:var(--ink-2);font-size:calc(12px*var(--ts));font-family:var(--f-display);font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.sav-hero .stat .v{color:var(--ink);margin:0;font-size:calc(20px*var(--ts));font-family:var(--f-display);font-weight:800;font-variant-numeric:tabular-nums}
#savings .panel-h h2{font-size:calc(16px*var(--ts))}
#savings #pots,#savings #log{margin-top:20px}
/* Today: calm ruled lists, with a different mark for each group so the meaning is never colour alone */
.today{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.today [data-today="atRisk"] h3::before{background:var(--danger);clip-path:polygon(50% 0,100% 100%,0 100%)}
.today [data-today="needsAttention"] h3::before{background:var(--warn);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.today [data-today="next"] h3::before{border-radius:50%}
.today .btn.link,.btns .btn.link{min-height:44px}
.today .btn.link{padding-left:0;padding-right:0}
.today .btn.small{margin-top:8px}
details.plan-sec{background:var(--surface);border:1px solid var(--line-2);border-radius:16px}
details.plan-sec>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:56px;padding:12px 16px}
details.plan-sec>summary::-webkit-details-marker{display:none}
details.plan-sec>summary h2{font-size:calc(18px*var(--ts));font-weight:800}
details.plan-sec>summary .chev{flex:none;width:20px;height:20px;transition:transform .15s;color:var(--ink-2)}
details.plan-sec[open]>summary .chev{transform:rotate(180deg)}
@media (min-width:720px){details.plan-sec>summary{padding:12px 22px}}
@media (min-width:1180px){
  .today{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);align-items:start}
}


/* Slice 6: the Timeline, a calm read-only list of ruled rows under Upcoming and Past, in a comfortable width */
#tab-timeline{width:100%;max-width:760px;margin-inline:auto}
#timeline li>.fine{margin:2px 0 0}
#timeline [data-tl=none]{margin:8px 0 0;color:var(--ink-2)}
#timeline [data-tl=count]{margin:20px 0 0}
#timeline .btns{margin-top:12px}
@media (min-width:480px){
  #timeline li>.fine{margin-left:calc(7.5rem + 12px)}
}

/* baby tab */
#shop{display:grid;gap:16px}
.shop-top{background:var(--hero-bg);color:var(--hero-ink);border-radius:20px;padding:16px 18px}
.shop-top .eyebrow{color:var(--hero-ink-2)}
.shop-big{font-family:var(--f-display);font-size:calc(16px*var(--ts));color:var(--hero-ink-2);margin-top:4px}
.shop-big b{font-weight:900;font-size:calc(34px*var(--ts));color:var(--hero-ink);margin-right:4px;font-variant-numeric:tabular-nums}
.shop-top .shop-bar{--c:var(--baby);margin:12px 0 14px;background:color-mix(in srgb,var(--baby) 22%,var(--road))}
.shop-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:12px;border-top:1px solid var(--hero-line)}
.shop-stats .k{display:block;font-size:calc(11px*var(--ts));color:var(--hero-ink-2);text-transform:uppercase;letter-spacing:.07em;font-family:var(--f-display);font-weight:700}
.shop-stats .v{display:block;font-family:var(--f-display);font-weight:800;font-size:calc(19px*var(--ts));font-variant-numeric:tabular-nums;margin-top:2px}
.shop-money h2{font-size:calc(18px*var(--ts));font-weight:800;margin-bottom:8px}
.shop-money p{font-size:calc(14px*var(--ts));color:var(--ink-2);line-height:1.5;margin-top:8px}
.shop-money p b{color:var(--ink)}
.shop-list{display:grid}
.shop-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto 30px;gap:10px;align-items:center;padding:9px 0;border-bottom:1px dashed var(--line)}
.shop-row:last-child{border-bottom:0}
.shop-row .lbl{font-size:calc(14.5px*var(--ts));line-height:1.35;min-width:0}
.shop-row.got .lbl .nm-t{text-decoration:line-through;text-decoration-thickness:1.5px;color:var(--ink-2)}
.shop-row .amt-btn{font-family:var(--f-display);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.shop-row .tick[aria-pressed="true"]{background:var(--baby);border-color:var(--baby)}
.qty{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:calc(13px*var(--ts));color:var(--ink-2);text-decoration:none}
.qty b{color:var(--baby);font-size:calc(15px*var(--ts));font-family:var(--f-display)}
.q-step{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);font-family:var(--f-display);font-weight:800;font-size:calc(18px*var(--ts));line-height:1;display:grid;place-items:center;padding:0}
.shop-row.got .lbl{color:var(--ink-2)}

@media (min-width:1180px){
  .cols{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:18px;align-items:start}
  .col{display:flex;flex-direction:column;gap:18px}
}
.panel{background:var(--surface);border:1px solid var(--line-2);border-radius:16px;padding:18px 16px}
@media (min-width:720px){.panel{padding:20px 22px}}
.card{border-color:var(--line)}
.panel-h{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;margin-bottom:12px}
.panel-h h2{font-size:calc(18px*var(--ts));font-weight:800}
.panel-h .aside{font-size:calc(13px*var(--ts));color:var(--ink-2)}
.eyebrow{font-family:var(--f-display);font-weight:800;font-size:calc(11.5px*var(--ts));letter-spacing:.09em;text-transform:uppercase;color:var(--ink-2)}

/* Savings figure (Money). The road, lane and seg pieces stay for the first-run screen */
.hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.big{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;margin-top:6px}
.big .num{font-weight:900;font-size:calc(clamp(40px,11vw,52px)*var(--ts));line-height:.95;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.big .of{font-size:calc(16px*var(--ts));color:var(--ink-2)}
.next-stop{margin-top:10px;font-size:calc(14px*var(--ts));color:var(--ink-2)}
.next-stop b{color:var(--ink);font-weight:700}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:calc(12.5px*var(--ts));font-weight:800;padding:5px 11px;border-radius:999px;font-family:var(--f-display);letter-spacing:.01em;white-space:nowrap}
.chip.good{background:var(--good-bg);color:var(--good)}
.chip.warn{background:var(--warn-bg);color:var(--warn)}
.road{position:absolute;inset:0;display:flex;border-radius:999px;overflow:hidden;background:var(--road)}
.seg{position:relative;height:100%;background:color-mix(in srgb,var(--c) 30%,var(--road))}
.seg>i{position:absolute;top:0;bottom:0;left:0;width:0;background:var(--c);transition:width 1.1s cubic-bezier(.22,.8,.24,1)}

/* week card */
.wk-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.wk-head .eyebrow.now{color:var(--safe)}
.wk-head h2{font-size:calc(21px*var(--ts));font-weight:800;margin-top:2px}
.wk-head small{color:var(--ink-2);display:block}
.nav{display:flex;align-items:center;gap:6px;flex:none}
.icon-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--line-strong);background:var(--surface);display:grid;place-items:center;padding:0}
.icon-btn svg{width:18px;height:18px}
.save{display:grid;gap:12px;padding:14px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line-2)}
.save-top{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;flex-wrap:wrap}
.save-lbl b{display:block;font-size:calc(15.5px*var(--ts))}
.save-lbl small{color:var(--ink-2);display:block}
.save-amt{font-family:var(--f-display);font-weight:900;font-size:calc(42px*var(--ts));line-height:.9;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.btn{min-height:44px;border:1px solid transparent;border-radius:12px;padding:12px 16px;font-family:var(--f-display);font-weight:800;font-size:calc(15px*var(--ts));line-height:1.1;background:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background-color .15s,border-color .15s;text-decoration:none;color:inherit}
.btn.primary{background:var(--btn);color:var(--btn-ink)}
.btn.ghost{border-color:var(--line-strong);background:var(--surface)}
.btn.link{min-height:0;padding:6px 6px;font-weight:700;font-size:calc(14px*var(--ts));color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.btn.small{min-height:44px;padding:9px 12px;font-size:calc(13.5px*var(--ts));border-radius:10px}
.btn.grow{flex:1 1 180px}
.btn svg{width:16px;height:16px}
.saved-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.saved-line .okdot{width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--surface);display:grid;place-items:center;flex:none}
.saved-line .okdot svg{width:15px;height:15px}
.saved-line .t{flex:1 1 160px}
.saved-line .t b{display:block}
.saved-line .t small{color:var(--ink-2)}
.money-in{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 12px;max-width:240px}
.money-in span{font-family:var(--f-display);font-weight:800;font-size:calc(20px*var(--ts));color:var(--ink-2)}
.money-in input{border:0;background:none;outline:none;width:100%;padding:10px 0;font-family:var(--f-display);font-weight:800;font-size:calc(22px*var(--ts));color:var(--ink);font-variant-numeric:tabular-nums}
.money-in:focus-within{border-color:var(--ink-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent);outline:3px solid var(--focus);outline-offset:1px}
.lbl-s{font-size:calc(13.5px*var(--ts));color:var(--ink-2)}
.slip-h{display:flex;justify-content:space-between;align-items:baseline;margin-top:18px;gap:10px}
.slip{display:grid;margin-top:4px}
.slip-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed var(--line)}
.slip-row .lbl b{font-weight:700}
.slip-row .lbl small{display:block;color:var(--ink-2);line-height:1.25}
.slip-row .amt{font-weight:700;font-size:calc(15.5px*var(--ts));text-align:right;white-space:nowrap}
.slip-row.minus .amt{color:var(--ink-2)}
.slip-row.plus .amt{color:var(--good)}
.slip-row.paid .lbl b{text-decoration:line-through;text-decoration-thickness:1.5px;color:var(--ink-2)}
.glyph{width:30px;height:30px;display:grid;place-items:center;color:var(--ink-3)}
.glyph svg{width:18px;height:18px}
.slip-total{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding-top:12px;border-top:3px double var(--line);margin-top:-1px}
.slip-total b{font-family:var(--f-display);font-weight:800;font-size:calc(16px*var(--ts))}
.slip-total small{display:block;color:var(--ink-2)}
.slip-total .amt{font-size:calc(28px*var(--ts));font-weight:900;white-space:nowrap}
.tick{width:32px;height:32px;border-radius:50%;border:2px solid var(--line);background:var(--surface);display:grid;place-items:center;padding:0;flex:none;transition:background-color .15s,border-color .15s}
.tick svg{width:15px;height:15px;opacity:0;transform:scale(.5);transition:opacity .15s,transform .2s;color:var(--surface)}
.tick[aria-pressed="true"]{background:var(--ink);border-color:var(--ink)}
.tick[aria-pressed="true"] svg{opacity:1;transform:none}
.tick.ro{cursor:default;width:26px;height:26px;margin:3px;border-style:dashed}
.tick.ro.on{border-style:solid}
.tick.ro.on{background:var(--ink-2);border-color:var(--ink-2)}
.tick.ro.on svg{opacity:1;transform:none}
.extra{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border-radius:12px;border:1px solid var(--line);margin-top:12px}
.extra .lbl b{display:block}
.extra .lbl small{color:var(--ink-2);display:block;line-height:1.3}
.extra .amt{font-weight:800;white-space:nowrap}
.shop-row .shop-on{display:block;font-size:calc(12px*var(--ts));color:var(--ink-2)} /* ADR-091: the day it was bought */
.extra.paid .lbl b{text-decoration:line-through;color:var(--ink-2)}
.note{margin-top:12px;font-size:calc(13.5px*var(--ts));color:var(--ink-2);line-height:1.45}
.note.warn{color:var(--warn)}
.list-h{margin-top:18px}
.slip-d{margin-top:14px;border-top:1px solid var(--line-2)}
.mfold-t>small b{color:var(--ink)}

/* pots */
.pots{display:grid;gap:10px}
.pot{display:grid;gap:9px;padding:14px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface-2)}
.pot-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.pot-name{display:flex;align-items:flex-start;gap:10px;min-width:0}
.pot-num{width:26px;height:26px;border-radius:7px;background:var(--c);color:var(--plate-ink);font-family:var(--f-display);font-weight:900;font-size:calc(14px*var(--ts));display:grid;place-items:center;flex:none;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--plate-ink) 55%,transparent)}
.pot-name b{font-family:var(--f-display);font-weight:800;font-size:calc(17px*var(--ts));display:block;line-height:1.2}
.pot-name small{color:var(--ink-2);display:block;line-height:1.3}
.pot-amt{text-align:right;white-space:nowrap}
@media (max-width:339.98px){.pot-amt{white-space:normal}} /* ADR-119: a 320 px phone at Larger and Largest text */
.pot-amt b{font-family:var(--f-display);font-weight:900;font-size:calc(20px*var(--ts));font-variant-numeric:tabular-nums}
.pot-amt small{display:block;color:var(--ink-2)}
.bar{height:10px;border-radius:999px;background:color-mix(in srgb,var(--c) 18%,var(--surface));overflow:hidden}
.bar>i{display:block;height:100%;width:0;background:var(--c);border-radius:inherit;transition:width .8s cubic-bezier(.22,.8,.24,1)}
.pot-foot{font-size:calc(13.5px*var(--ts));color:var(--ink-2);line-height:1.45}
.pot-foot b{color:var(--ink)}
.pot-extra{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.fine{font-size:calc(12.5px*var(--ts));color:var(--ink-2);line-height:1.45}
.fine b{color:var(--ink)}

/* weekly log */
.log{list-style:none;margin:0;padding:0;display:grid}
.log .mh{font-family:var(--f-display);font-weight:800;font-size:calc(11.5px*var(--ts));letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);padding:14px 10px 4px}
.log .mh:first-child{padding-top:0}
.row{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:"st date amt" ". chips chips";align-items:center;gap:2px 12px;padding:9px 10px;border:0;background:none;border-radius:11px;text-align:left}
.row:hover{background:var(--surface-2)}
.row.viewing{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.r-st{grid-area:st;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--line)}
.r-st svg{width:12px;height:12px}
.r-st.done{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.r-st.now{border-color:var(--signal);background:color-mix(in srgb,var(--signal) 22%,transparent)}
.r-st.miss{border-color:var(--warn);color:var(--warn);font-family:var(--f-display);font-weight:900;font-size:calc(13px*var(--ts))}
.r-date{grid-area:date;min-width:0}
.r-date b{font-weight:700;display:block;line-height:1.25}
.r-date small{color:var(--ink-2);display:block;line-height:1.2}
.r-amt{grid-area:amt;text-align:right;white-space:nowrap}
.r-amt b{font-family:var(--f-display);font-weight:800;font-size:calc(16px*var(--ts));font-variant-numeric:tabular-nums;display:block;line-height:1.2}
.r-amt b.plan{color:var(--ink-2);font-weight:700}
.r-amt b.miss{color:var(--warn);font-size:calc(13.5px*var(--ts))}
.r-amt small{color:var(--ink-3);font-variant-numeric:tabular-nums;display:block;line-height:1.2}
.r-chips{grid-area:chips;display:flex;flex-wrap:wrap;gap:4px;padding-top:3px}
.r-chips:empty{display:none}
.mini{font-family:var(--f-display);font-weight:800;font-size:calc(10.5px*var(--ts));letter-spacing:.06em;text-transform:uppercase;padding:2px 7px 1px;border-radius:5px;background:var(--surface-2);border:1px solid var(--line);color:var(--ink-2)}
.mini.tax,.mini.baby,.mini.safe{background:var(--c);color:var(--plate-ink);border-color:transparent}
.mini.tax{--c:var(--tax)}.mini.baby{--c:var(--baby)}.mini.safe{--c:var(--safe)}

/* loans */
.loans{display:grid;gap:10px}
.loan{padding:14px;border:1px solid var(--line-2);border-radius:14px;display:grid;gap:8px;--c:var(--ink-2)}
.loan-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.loan-name b{font-family:var(--f-display);font-weight:800;font-size:calc(16.5px*var(--ts))}
.loan-name small{display:block;color:var(--ink-2);line-height:1.3}
.rate{display:inline-block;margin-left:6px;font-size:calc(11px*var(--ts));font-weight:800;font-family:var(--f-display);letter-spacing:.03em;padding:2px 7px 1px;border-radius:6px;background:var(--surface-2);border:1px solid var(--line);color:var(--ink-2);white-space:nowrap;vertical-align:2px}
.loan-left{text-align:right;white-space:nowrap}
.loan-left b{font-family:var(--f-display);font-size:calc(19px*var(--ts));font-weight:900;font-variant-numeric:tabular-nums}
.loan-left small{display:block;color:var(--ink-2);font-size:calc(12px*var(--ts))}
.loan .bar{height:8px}
.loan-meta{font-size:calc(13px*var(--ts));color:var(--ink-2)}
.loan-act{display:flex;justify-content:space-between;align-items:center;gap:6px 10px;flex-wrap:wrap;font-size:calc(14px*var(--ts))}
.loan-act .acts{display:flex;align-items:center;gap:4px}
.loan.cleared .loan-left b{color:var(--good)}
.tip{font-size:calc(12.5px*var(--ts));color:var(--ink-2);background:var(--surface-2);border-radius:10px;padding:8px 10px;line-height:1.45}
.tip b{color:var(--ink)}
.good-t{color:var(--good);font-weight:700}

/* timeline */
.tl{list-style:none;margin:0;padding:0;display:grid}
.tl li{display:grid;grid-template-columns:80px 20px minmax(0,1fr);column-gap:10px;position:relative;padding-bottom:16px}
.tl li::before{content:"";position:absolute;left:99px;top:16px;bottom:-2px;width:2px;background:var(--line)}
.tl li:last-child{padding-bottom:0}
.tl li:last-child::before{display:none}
.tl-date{font-family:var(--f-display);font-weight:700;font-size:calc(13px*var(--ts));color:var(--ink-2);text-align:right;line-height:1.3;font-variant-numeric:tabular-nums;padding-top:1px}
.tl-date small{display:block;font-size:calc(11.5px*var(--ts));color:var(--ink-3)}
.tl-dot{width:12px;height:12px;border-radius:50%;border:2px solid var(--ink-3);background:var(--surface);margin:5px auto 0;position:relative;z-index:1}
.tl li.done .tl-dot{background:var(--ink);border-color:var(--ink)}
.tl li.next .tl-dot{border-color:var(--signal);background:var(--signal);box-shadow:0 0 0 4px color-mix(in srgb,var(--signal) 28%,transparent)}
.tl-body b{display:block;font-weight:700;line-height:1.3}
.tl-body small{display:block;color:var(--ink-2);line-height:1.4;margin-top:1px}
.tl li.done .tl-body b{color:var(--ink-2)}
.proj{font-family:var(--f-display);font-size:calc(10.5px*var(--ts));font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3)}

/* month */
.strip-wrap{position:relative;padding-top:26px}
.strip{position:relative;display:grid;grid-template-columns:repeat(31,minmax(0,1fr));align-items:end;gap:2px;height:74px;border-bottom:1px solid var(--line);touch-action:pan-y}
.bar-d{display:block}
.bar-d.has{background:var(--ink-2);border-radius:3px 3px 0 0;min-height:2px}
.bar-d.has.on{background:var(--ink)}
.mc-tip{position:absolute;z-index:2;padding:6px 9px;border-radius:9px;background:var(--surface);border:1px solid var(--line);box-shadow:0 6px 18px rgba(0,0,0,.12);font-size:calc(12.5px*var(--ts));font-weight:700;color:var(--ink);white-space:nowrap;pointer-events:none}
.strip-axis{display:grid;grid-template-columns:repeat(31,minmax(0,1fr));gap:2px;font-size:calc(11px*var(--ts));color:var(--ink-3);margin-top:5px;font-variant-numeric:tabular-nums}
.strip-axis span{text-align:center;white-space:nowrap}
.cluster.end{text-align:right}
.cluster{position:absolute;top:0;font-family:var(--f-display);font-weight:800;font-size:calc(12.5px*var(--ts));white-space:nowrap;font-variant-numeric:tabular-nums}
.cluster small{font-family:var(--f-body);font-weight:400;color:var(--ink-2);font-size:calc(11.5px*var(--ts));margin-left:4px}
.bill-list{display:grid;margin-top:14px}
.bill-li{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:10px;padding:8px 0;border-bottom:1px solid var(--line-2);font-size:calc(14px*var(--ts));align-items:baseline}
.bill-li:last-child{border-bottom:0}
.bill-li .d{font-family:var(--f-display);font-weight:800;color:var(--ink-2)}
.bill-li .amt{font-weight:700;white-space:nowrap}
.bill-li small{color:var(--ink-2)}

.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;margin-top:14px}
.tiles>div{background:var(--surface-2);border:1px solid var(--line-2);border-radius:12px;padding:10px 12px;min-width:0}
.tiles .k{display:block;font-family:var(--f-display);font-weight:700;font-size:calc(11px*var(--ts));letter-spacing:.07em;text-transform:uppercase;color:var(--ink-2);line-height:1.25}
.tiles .v{display:block;font-family:var(--f-display);font-weight:800;font-size:calc(19px*var(--ts));font-variant-numeric:tabular-nums;margin-top:4px;line-height:1.1}
.tiles .v.neg{color:var(--warn)}
.tiles .v.pos{color:var(--good)}
.tiles.m3{grid-template-columns:repeat(2,minmax(0,1fr))}
.tiles.m3>div:nth-child(3){grid-column:1/-1}
@media (min-width:560px){.tiles.m3{grid-template-columns:repeat(3,minmax(0,1fr))}.tiles.m3>div:nth-child(3){grid-column:auto}}
.tiles small{display:block;color:var(--ink-2);font-size:calc(12px*var(--ts));line-height:1.3;margin-top:3px}
.sub-h{display:flex;justify-content:space-between;align-items:baseline;gap:6px 10px;margin:20px 0 12px;flex-wrap:wrap}
.left-big{font-family:var(--f-display);font-weight:900;font-size:calc(26px*var(--ts));font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}
.left-big.neg{color:var(--warn)}
.left-big small{font-family:var(--f-body);font-weight:400;font-size:calc(13px*var(--ts));color:var(--ink-2);margin-left:5px}
.pockets{display:grid;gap:13px}
.pocket{display:grid;grid-template-columns:30px minmax(0,1fr) auto;column-gap:10px;row-gap:6px;align-items:center;--c:var(--ink-2)}
.pocket .nm b{display:block;font-weight:700;line-height:1.2}
.pocket .nm small{display:block;color:var(--ink-2);line-height:1.25}
.pocket .lf{text-align:right;white-space:nowrap;font-family:var(--f-display);font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2}
.pocket .lf small{display:block;font-family:var(--f-body);font-weight:400;color:var(--ink-2);font-size:calc(12px*var(--ts))}
.pocket .lf.over{color:var(--warn)}
.pocket .bar{grid-column:2/4;height:7px}
.pocket .bar.over>i{background:var(--warn)}
.cat-dot{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--c) 15%,var(--surface));color:var(--c)}
.cat-dot svg{width:17px;height:17px}
.quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (min-width:560px){.quick{grid-template-columns:repeat(6,minmax(0,1fr))}}
.q-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:11px 4px 10px;border:1px solid var(--line);border-radius:13px;background:var(--surface);font-weight:700;font-size:calc(12.5px*var(--ts));line-height:1.15;color:var(--ink);transition:transform .12s,border-color .15s,background-color .15s}
.q-btn:active{transform:scale(.97)}
.q-btn[aria-pressed="true"]{border-color:var(--c);background:color-mix(in srgb,var(--c) 9%,var(--surface));box-shadow:inset 0 0 0 1px var(--c)}
.add-form{margin-top:10px;padding:14px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line-2);display:grid;gap:10px}
.add-form>b{font-family:var(--f-display);font-weight:800;font-size:calc(16px*var(--ts))}
.add-form.editing{border-color:var(--ink-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 10%,transparent)}
.row2{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.add-form .money-in{flex:1 1 150px;max-width:none}
.text-in{flex:1 1 200px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-size:calc(16px*var(--ts));padding:11px 12px;outline:none;min-width:0}
.text-in:focus,.date-in:focus{border-color:var(--ink-2);outline:3px solid var(--focus);outline-offset:1px;box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.date-in{border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-size:calc(15px*var(--ts));padding:9px 10px;outline:none;min-height:44px}
.tx-list{display:grid}
.tx-day{font-family:var(--f-display);font-weight:800;font-size:calc(11.5px*var(--ts));letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);padding:14px 0 2px}
.tx{display:grid;grid-template-columns:30px minmax(0,1fr) auto 30px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line-2);--c:var(--ink-2)}
.tx:last-child{border-bottom:0}
.tx .lbl{min-width:0}
.tx .lbl b{display:block;font-weight:700;line-height:1.25}
.tx .lbl small{display:block;color:var(--ink-2);line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tx .amt{font-weight:800;white-space:nowrap}
.tx .amt.in{color:var(--good)}
.x-btn{width:30px;height:30px;border-radius:9px;border:0;background:none;color:var(--ink-3);display:grid;place-items:center;padding:0}
.x-btn:hover{background:var(--surface-2);color:var(--ink)}
/* practical touch targets without moving anything: the hit area grows, the drawn control does not */
.tick:not(.ro),.x-btn,.amt-btn{position:relative}
.tick:not(.ro)::after,.x-btn::after,.amt-btn::after{content:"";position:absolute;inset:-7px 0}
.x-btn svg{width:14px;height:14px}
.pay-banner{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px 12px;align-items:center;margin-top:14px;padding:14px;border-radius:14px;border:1px solid color-mix(in srgb,var(--good) 40%,var(--line));background:var(--good-bg);--c:var(--good)}
.pay-banner .cat-dot{background:var(--surface)}
.pay-banner>.btns,.pay-banner>.row2{grid-column:1/3}
.pay-banner b{display:block}
.pay-banner small{display:block;color:var(--ink-2)}
.pay-edit{grid-column:1/-1;display:flex;align-items:center;gap:8px}
.pay-edit .money-in{flex:1 1 auto;max-width:none;background:var(--surface)}
.step{flex:none;width:48px;height:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-family:var(--f-display);font-weight:900;font-size:calc(24px*var(--ts));line-height:1;display:grid;place-items:center;padding:0;color:var(--ink)}
.step:active{transform:scale(.96)}
.pay-inline{display:grid;gap:10px;padding:12px;margin:6px 0 4px;border-radius:12px;background:var(--good-bg)}
.pay-inline>b{font-family:var(--f-display);font-weight:800}
.pay-inline .money-in{max-width:none;background:var(--surface)}
.prog{display:inline-flex;align-items:center;gap:8px;font-size:calc(13px*var(--ts));font-weight:700;color:var(--ink-2);white-space:nowrap}
.prog i{display:block;width:44px;height:6px;border-radius:99px;background:linear-gradient(90deg,var(--good) var(--p),var(--line) var(--p))}
.prog.all{color:var(--good);gap:5px}
.prog svg{width:15px;height:15px}
.amt-btn{border:0;background:none;padding:4px 0 4px 4px;font:inherit;color:inherit;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.amt-btn svg{width:13px;height:13px;color:var(--ink-3)}
.check{display:flex;gap:9px;align-items:flex-start;font-size:calc(14px*var(--ts));color:var(--ink-2);cursor:pointer;line-height:1.35}
.check input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--ink)}
.empty{font-size:calc(13.5px*var(--ts));color:var(--ink-2);padding:8px 0 2px}
.m-nav{display:flex;align-items:center;gap:6px}
.m-nav b{font-family:var(--f-display);font-weight:800;min-width:112px;text-align:center}
.stack{display:flex;gap:2px;height:14px;border-radius:999px;overflow:hidden;background:var(--line-2);margin:16px 0 6px}
.stack i{display:block;height:100%;background:var(--c);min-width:4px}
.legend{display:grid}
.lg{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px dashed var(--line);font-size:calc(14px*var(--ts))}
.lg:last-child{border-bottom:0}
.lg .sw{width:12px;height:12px;border-radius:4px;background:var(--c)}
/* ADR-077: a pattern for each kind of money out, the same on a bar and on its key, so no meaning rests on colour alone. The stripes are the
   card's own colour, so they read in light and dark; Bills and loans stay plain */
[data-p]{--pc:color-mix(in srgb,var(--surface) 62%,transparent)}
:is(.stack,.lg) [data-p=save]{background-image:repeating-linear-gradient(45deg,var(--pc) 0 1.5px,transparent 1.5px 5px)}
:is(.stack,.lg) [data-p=fuel]{background-image:radial-gradient(circle,var(--pc) 1.1px,transparent 1.5px);background-size:4px 4px}
:is(.stack,.lg) [data-p=food]{background-image:repeating-linear-gradient(-45deg,var(--pc) 0 1.5px,transparent 1.5px 5px)}
:is(.stack,.lg) [data-p=sent]{background-image:repeating-linear-gradient(90deg,var(--pc) 0 1.5px,transparent 1.5px 4.5px)}
:is(.stack,.lg) [data-p=extra]{background-image:repeating-linear-gradient(0deg,var(--pc) 0 1px,transparent 1px 4px),repeating-linear-gradient(90deg,var(--pc) 0 1px,transparent 1px 4px)}
:is(.stack,.lg) [data-p=personal]{background-image:repeating-linear-gradient(0deg,var(--pc) 0 1.5px,transparent 1.5px 4.5px)}
:is(.stack,.lg) [data-p=other]{background-image:repeating-linear-gradient(45deg,var(--pc) 0 1px,transparent 1px 5px),repeating-linear-gradient(-45deg,var(--pc) 0 1px,transparent 1px 5px)}
.lg .amt{font-weight:800;white-space:nowrap}
.lg small{color:var(--ink-2)}
.people{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.person{display:inline-flex;gap:6px;align-items:baseline;padding:5px 11px;border-radius:999px;background:color-mix(in srgb,var(--c-sent) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--c-sent) 30%,var(--line));font-size:calc(13.5px*var(--ts))}
.person b{font-family:var(--f-display);font-weight:800;font-variant-numeric:tabular-nums}
.slip .tick.in[aria-pressed="true"]{background:var(--good);border-color:var(--good)}
#cheer{position:fixed;left:0;right:0;top:calc(16px + env(safe-area-inset-top,0px));z-index:60;display:grid;justify-items:center;padding:0 16px;pointer-events:none}
.cheer-card{position:relative;pointer-events:auto;cursor:pointer;width:100%;max-width:360px;background:var(--surface);border:1px solid var(--line);border-top:6px solid var(--c);border-radius:18px;padding:16px 18px 14px;box-shadow:var(--shadow),0 24px 50px -24px rgba(0,0,0,.45);text-align:center;animation:cheer-in .55s cubic-bezier(.2,1.3,.4,1) both}
.cheer-card b{display:block;font-family:var(--f-display);font-weight:900;font-size:calc(21px*var(--ts));letter-spacing:-.01em}
.cheer-card small{display:block;color:var(--ink-2);margin-top:3px;font-size:calc(14px*var(--ts))}
.cheer-burst{position:absolute;left:50%;top:-3px;width:0;height:0}
.cheer-burst i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:2px;background:var(--c);opacity:0;animation:burst 1.2s var(--t) cubic-bezier(.12,.7,.3,1) both}
@keyframes burst{0%{opacity:1;transform:rotate(var(--a)) translateY(0) scale(1)}100%{opacity:0;transform:rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(.5) rotate(160deg)}}
@keyframes cheer-in{from{opacity:0;transform:translateY(-14px) scale(.95)}to{opacity:1;transform:none}}
#toast .toast-btn{margin-left:12px;border:0;background:none;color:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;padding:2px 4px}

/* settings */
details.settings>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px}
details.settings>summary::-webkit-details-marker{display:none}
details.settings>summary h2{font-size:calc(18px*var(--ts));font-weight:800}
details.settings>summary .chev{width:20px;height:20px;transition:transform .2s;color:var(--ink-2)}
details.settings[open]>summary .chev{transform:rotate(180deg)}
.set-group{margin-top:16px}
.set-group>.eyebrow{margin-bottom:8px;display:block}
.set-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px 12px}
/* ADR-065: the reminder times, inside You */
.rem-times{display:grid;gap:10px;padding:12px 2px 6px}
.rem-times .eyebrow{margin:0}
/* ADR-072: the app's lock and privacy choices, under the passcode buttons */
.al-box{display:grid;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line-2)}
.al-opt span{display:grid;gap:2px}
.field{display:grid;gap:4px;font-size:calc(13px*var(--ts));color:var(--ink-2)}
.field .in{display:flex;align-items:center;gap:4px;border:1px solid var(--line-strong);border-radius:8px;min-height:44px;padding:0 10px;background:var(--surface)}
.field .in span{font-family:var(--f-display);font-weight:700;color:var(--ink-3)}
.field input{border:0;background:none;padding:9px 0;width:100%;min-width:0;font-family:var(--f-display);font-weight:700;font-size:calc(16px*var(--ts));color:var(--ink);font-variant-numeric:tabular-nums;outline:none}
.field .in:focus-within{border-color:var(--ink-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent);outline:3px solid var(--focus);outline-offset:1px}
.seg-ctrl{display:inline-flex;flex-wrap:wrap;border:1px solid var(--line);border-radius:11px;padding:3px;gap:3px;background:var(--surface-2)}
.seg-ctrl label{position:relative;cursor:pointer}
.seg-ctrl input{position:absolute;opacity:0;width:1px;height:1px}
.seg-ctrl span{display:block;padding:7px 12px;border-radius:8px;font-size:calc(14px*var(--ts));font-weight:700;color:var(--ink-2)}
.seg-ctrl input:checked+span{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.seg-ctrl input:focus-visible+span{outline:3px solid var(--focus);outline-offset:1px}
.ask{display:grid;gap:6px;justify-items:start}
.alerts{display:grid;gap:10px}
.alert{display:flex;justify-content:space-between;align-items:center;gap:10px 14px;flex-wrap:wrap;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.alert.warn{border-color:color-mix(in srgb,var(--warn) 45%,var(--line));background:var(--warn-bg)}
.alert>div:first-child{flex:1 1 220px;min-width:0}
.alert b{display:block;font-family:var(--f-display);font-weight:800}
.alert small{display:block;color:var(--ink-2);line-height:1.35;margin-top:2px}
.setup.is-lock{max-width:420px}
.lock{display:grid;justify-items:center;text-align:center;gap:4px;padding:8px 0 2px}
.lock-ic{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:var(--hero-bg);color:var(--signal);margin-bottom:10px;box-shadow:var(--shadow)}
.lock-ic svg{width:27px;height:27px}
.lock h2{font-size:calc(24px*var(--ts));font-weight:900;margin:0}
.pin-dots{display:flex;gap:14px;justify-content:center;min-height:18px;margin:20px 0 2px}
.pin-dots i{width:15px;height:15px;border-radius:50%;border:2px solid var(--ink-3);transition:background-color .15s,border-color .15s,transform .15s}
.pin-dots i.on{background:var(--ink);border-color:var(--ink);transform:scale(1.06)}
.pin-dots.shake{animation:shake .42s}
@keyframes shake{20%,60%{transform:translateX(-9px)}40%,80%{transform:translateX(9px)}}
.bio-slot{display:flex;justify-content:center;margin:2px 0 6px}.bio-slot:empty{display:none}
.pin-msg{min-height:21px;font-size:calc(13.5px*var(--ts));color:var(--warn);margin:4px 0 6px}
.pin-pad{display:grid;grid-template-columns:repeat(3,minmax(0,76px));gap:14px 20px;justify-content:center;width:100%;margin-bottom:12px}
.pin-k{width:100%;aspect-ratio:1;border-radius:50%;border:1px solid var(--line);background:var(--surface-2);font-family:var(--f-display);font-weight:800;font-size:calc(28px*var(--ts));color:var(--ink);display:grid;place-items:center;padding:0;transition:transform .08s,background-color .15s;font-variant-numeric:tabular-nums}
.pin-k:active{transform:scale(.92);background:var(--line-2)}
.pin-k.fn{background:none;border-color:transparent;color:var(--ink-2)}
.pin-k svg{width:26px;height:26px}
.pin-k.ok{background:var(--btn);border-color:var(--btn);color:var(--btn-ink)}
.forgot{width:100%;text-align:left;margin-top:4px}
.forgot>summary{text-align:center;color:var(--ink-2);font-size:calc(14px*var(--ts))}

.confirm{margin-top:12px;padding:12px;border-radius:12px;border:1px solid var(--warn);background:var(--warn-bg)}
.field select{border:0;background:none;padding:9px 0;width:100%;min-width:0;font-size:calc(15px*var(--ts));color:var(--ink);outline:none}
.life h2{margin:0 0 6px}
[data-areas=section] p,[data-areas=section] li,[data-areas=section] label,[data-areas=section] h4,[data-areas=section] legend,[data-wl=section] p,[data-wl=section] li,[data-wl=section] label,[data-wl=section] legend,[data-wl=section] h3,[data-ss=section] p,[data-ss=section] li,[data-ss=section] label,[data-ss=section] legend,[data-ss=section] h3,[data-ss=section] h4,[data-ss=section] option,[data-fn=section] p,[data-fn=section] li,[data-fn=section] label,[data-fn=section] legend,[data-fn=section] h3,[data-fn=section] h4,[data-fn=section] option,[data-mm=section] p,[data-mm=section] li,[data-mm=section] label,[data-mm=section] legend,[data-mm=section] h3,[data-mm=section] h4,[data-mm=section] option,[data-mm=section] summary,[data-ci=section] p,[data-ci=section] li,[data-ci=section] label,[data-ci=section] legend,[data-ci=section] h3,[data-ci=section] h4,[data-ci=section] option,[data-ci=section] summary,[data-ev=section] p,[data-ev=section] li,[data-ev=section] label,[data-ev=section] legend,[data-ev=section] h3,[data-ev=section] h4,[data-ev=section] option,[data-ev=section] summary,[data-rv=section] p,[data-rv=section] li,[data-rv=section] label,[data-rv=section] legend,[data-rv=section] h3,[data-rv=section] h4,[data-rv=section] option,[data-rv=section] summary,[data-tl=section] p,[data-tl=section] li,[data-tl=section] label,[data-tl=section] h3,[data-tl=section] h4{overflow-wrap:anywhere}
.confirm p{margin-bottom:10px;font-size:calc(14px*var(--ts))}
.rp-table{width:100%;border-collapse:collapse;margin:4px 0 10px;font-size:calc(14px*var(--ts));font-variant-numeric:tabular-nums} /* ADR-068 */
.rp-table th,.rp-table td{padding:5px 6px;border-bottom:1px solid var(--line-2,var(--line));text-align:right}
.rp-table th[scope=row],.rp-table thead th:first-child{text-align:left;font-weight:600;color:var(--ink-2)}
.rp-newer.warn b{color:var(--warn-ink,var(--warn))}

.foot{margin-top:18px;font-size:calc(12.5px*var(--ts));color:var(--ink-2);text-align:center;line-height:1.5}
#toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:10px 14px;border-radius:12px;font-size:calc(14px*var(--ts));box-shadow:var(--shadow);z-index:50;max-width:calc(100% - 32px);text-align:center}
@media (prefers-reduced-motion: reduce){html[data-motion="follow"] *{transition:none!important;animation:none!important}}

/* ===== Final refinement (UI/UX): calmer type, fewer boxes, quieter lines. Presentation only; the destinations, routing and behaviour are unchanged ===== */
.layout,.tab{gap:20px}
.page-h{gap:2px}
.page-h h1{font-size:calc(clamp(24px,5.6vw,28px)*var(--ts));font-weight:700;line-height:1.15;letter-spacing:-.02em}
.page-sub{font-size:calc(14px*var(--ts));max-width:56ch}
.fine{font-size:calc(13px*var(--ts));line-height:1.5;max-width:66ch}
.note{font-size:calc(13.5px*var(--ts))}
.eyebrow{font-weight:700;letter-spacing:.08em}
/* sections instead of boxes: the page is the surface and a hairline separates the groups; only what genuinely needs containment keeps a surface */
.layout .panel{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:20px 0 4px}
.layout .panel:first-child{border-top:0;padding-top:4px}
#timeline.panel{border-top:0;padding-top:4px}
#tab-money .panel>h2,#tab-money .panel-h h2,.panel-h h2,#savings .panel-h h2{font-size:calc(16px*var(--ts));font-weight:700;letter-spacing:-.005em}
details.plan-sec>summary h2,details.settings>summary h2{font-size:calc(16px*var(--ts));font-weight:700}
.money-col,.money-cols{gap:4px}
@media (min-width:1180px){.money-cols{gap:32px}}
#wallet.panel{background:var(--surface);border:1px solid var(--line-2);border-radius:16px;padding:18px 16px;margin-bottom:12px}
details.plan-sec{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0}
details.plan-sec>summary{min-height:52px;padding:12px 0}
@media (min-width:720px){details.plan-sec>summary{padding:12px 0}}
/* Today: the first group leads; the others step back */
.today{gap:28px}
.today [data-today="atRisk"] h3{font-weight:800}
/* shell: a quieter header and navigation */
.brand-name{font-size:calc(18px*var(--ts));font-weight:700}
.brand-sub{font-size:calc(12px*var(--ts))}
.top .icon-btn,.top .pill{border-color:transparent;background:transparent}
.tabs button{font-weight:600;font-size:calc(11.5px*var(--ts))}
.tabs button[aria-selected="true"]{font-weight:700}
@media (min-width:980px){.tabs button{font-size:calc(14.5px*var(--ts))}}
/* one control language: primary leads, secondary recedes, destructive is told apart by words and colour */
.btn{font-weight:700;border-radius:10px}
.btn.ghost{border-color:color-mix(in srgb,var(--line-strong) 55%,var(--line));background:transparent}
.btn.ghost[data-act$="-delete"]{color:var(--danger)}
.alert{border-radius:12px}
.alert.warn{border-color:transparent}

/* ===== Design acceptance: composition and disclosure, in step with Money (anchors, rules, compact actions, restrained surfaces) ===== */
/* quiet disclosure for explanations: one short line stays, the rest opens on request */
details.help{margin:6px 0 0}
details.help>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 2px;font-family:var(--f-display);font-size:calc(13px*var(--ts));font-weight:700;color:var(--ink-2)}
details.help>summary::-webkit-details-marker{display:none}
details.help>summary::before{content:"";flex:none;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
details.help[open]>summary::before{transform:rotate(45deg)}
details.help>.fine{margin:2px 0 10px;max-width:62ch}
/* one radius for contained surfaces */
#wallet.panel,.alert,.alert.warn{border-radius:14px}
/* Plan: a calm index of sections, each with one line saying what it holds */
details.plan-sec>summary{min-height:60px}
/* Timeline: the dated records are the product; date, kind, title and fact each have their own weight */
#timeline details.help{margin:2px 0 4px}
#timeline li{padding:12px 0}

.today [data-today="needsAttention"] h3{font-weight:700}
.today [data-today="next"] h3{font-weight:600;color:var(--ink-2)}
[data-today-empty],[data-wl=none],[data-dec=none],[data-tl=none],[data-life=changed-none]{color:var(--ink-2);font-size:calc(13.5px*var(--ts))}
/* the one shell footer carries the local-only line quietly */
.foot{font-size:calc(12px*var(--ts));max-width:60ch;margin:28px auto 0;color:var(--ink-2)}
/* ===== Owner mockup pass (UX-D14): near-black ground in dark, card surfaces, a bright green accent, bold page titles. Presentation only; markup, routing and behaviour are unchanged ===== */
.mark rect{fill:var(--accent)}
.mark path{stroke:var(--btn-ink)}
.mark circle{fill:var(--btn-ink)}
.layout,.tab{gap:16px}
.page-h{gap:4px;margin-bottom:4px}
.page-h h1{font-size:calc(clamp(28px,7.4vw,34px)*var(--ts));font-weight:800;letter-spacing:-.025em}
/* cards: one radius, one hairline, the surface lifts off the ground */
.layout .panel,.layout .panel:first-child,#timeline.panel,#wallet.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px 16px;margin:0}
@media (min-width:720px){.layout .panel,.layout .panel:first-child,#timeline.panel,#wallet.panel{padding:20px 22px}}
.money-col,.money-cols{gap:12px}
#tab-money>.money-cols+.money-cols{margin-top:-4px}
#wallet.panel{background:linear-gradient(155deg,color-mix(in srgb,var(--accent) 12%,var(--surface)) 0%,var(--surface) 62%);border-color:color-mix(in srgb,var(--accent) 22%,var(--line))}
.eyebrow{color:var(--ink-2)}
.wk-head .eyebrow.now{color:var(--good)}
/* controls: a bright primary, quiet filled secondaries, rounder corners */
.btn{border-radius:14px}
.btn.primary{background:var(--btn);color:var(--btn-ink);font-weight:800}
.btn.ghost{background:var(--surface-2);border-color:var(--line)}
.btn.link{color:var(--good);text-decoration-color:color-mix(in srgb,var(--good) 45%,transparent)}
.icon-btn{border-radius:14px;border-color:var(--line);background:var(--surface-2)}
.text-in,.date-in,.money-in,.field .in,textarea{border-radius:12px;background:var(--surface-2);border-color:var(--line-strong)}
.seg-ctrl{border-radius:14px;background:var(--surface-2)}
.seg-ctrl span{border-radius:10px}
.seg-ctrl input:checked+span{background:var(--accent);color:var(--btn-ink);box-shadow:none}
.chip.good{background:var(--good-bg);color:var(--good)}
.tick[aria-pressed="true"],.r-st.done{background:var(--accent);border-color:var(--accent);color:var(--btn-ink)}
.tick svg{color:var(--btn-ink)}
.saved-line .okdot{background:var(--accent);color:var(--btn-ink)}
.q-btn,#logmoney .q-btn{background:var(--surface-2);border-color:var(--line);border-radius:16px}
.cat-dot{border-radius:12px}
.alert{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px}
.alert.warn{background:color-mix(in srgb,var(--warn) 9%,var(--surface));border-color:color-mix(in srgb,var(--warn) 30%,var(--line))}
.install{border-radius:18px}
.privacy{border-radius:16px}
/* bottom bar and rail: the selected destination is green, and still marked by its bar and weight */
.tabs{background:var(--surface);border-color:var(--line)}
.tabs button[aria-selected="true"]{color:var(--nav-accent)}
@media (min-width:720px){
  .tabs button{border-radius:14px}
  .tabs button[aria-selected="true"]{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
}
/* Today: each group is its own card; At risk is tinted, the marks keep their shapes so meaning is never colour alone */
.today{gap:14px}
.today [data-today="next"] h3{color:var(--ink)}
.today [data-today="next"] h3::before{background:var(--accent)}
details.plan-sec{background:var(--surface);border:1px solid var(--line);border-radius:18px}
details.plan-sec>summary{padding:14px 16px}
details.plan-sec>summary h2{font-size:calc(17px*var(--ts));font-weight:800}
@media (min-width:720px){details.plan-sec>summary{padding:14px 22px}}
details.plan-sec[open]>summary{border-bottom:1px solid var(--line-2);margin-bottom:12px}

/* Money pieces inside the cards */
.bar>i{border-radius:inherit}
#tab-money .tiles .v.pos,.tx .amt.in,.slip-row.plus .amt{color:var(--good)}
.foot{margin-top:24px}
/* ===== The LifeOS mobile app (ADR-026): the owner's approved prototype. Glass navigation with a pill behind the selected icon, generated scenery, coloured tiles, cards ===== */
.page-h h1{font-size:calc(32px*var(--ts));font-weight:800;letter-spacing:-.02em;line-height:1.08}
.tabs{background:color-mix(in srgb,var(--ground) 82%,transparent);-webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5);border-color:var(--line-2)}
.tabs button{color:var(--ink-3);font-weight:700;font-size:calc(11.5px*var(--ts));gap:4px}
.tabs button[aria-selected="true"]{color:var(--ink);font-weight:800}
.tabs button[aria-selected="true"]::before{display:none}
.tabs .ti{width:56px;height:32px;border-radius:99px;transition:background-color .3s}
.tabs button[aria-selected="true"] .ti{background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--nav-accent)}
@media (min-width:720px){.tabs button[aria-selected="true"]{background:none}}
@media (min-width:980px){.tabs .ti{width:44px}}
/* phones: the header steps aside; its settings and lock buttons float at the top right of every screen */
@media (max-width:719px){
  body.has-tabs .app{position:relative}
  body.has-tabs .top{position:absolute;top:max(18px,env(safe-area-inset-top,0px));right:max(16px,env(safe-area-inset-right,0px));z-index:6;margin:0;min-height:0}
  body.has-tabs .brand,body.has-tabs #sync{display:none!important}
  body.has-tabs .page-h{padding-right:112px}
  body.has-tabs .page-h.today-hero{padding-right:20px}
}
.top .settings-btn{width:44px;height:44px;border-radius:50%;border:0;background:linear-gradient(135deg,#2BDB82,#1E7FD8);color:#fff;box-shadow:0 0 0 2px var(--ground),0 0 0 3.5px color-mix(in srgb,var(--accent) 55%,transparent)}
/* Today: the generated scene, the greeting and three count tiles that overlap it */
.today-hero{position:relative;isolation:isolate;overflow:hidden;color:#fff;min-height:318px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:22px 20px 62px;border-radius:28px;margin:0}
@media (max-width:719px){.today-hero{margin:calc(-1 * max(18px,env(safe-area-inset-top,0px))) -16px 0;padding-top:calc(max(18px,env(safe-area-inset-top,0px)) + 8px);border-radius:0 0 28px 28px}}
.hero-art{position:absolute;inset:0;z-index:-2}
.hero-art svg{width:100%;height:100%;display:block}
.today-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,0) 35%,rgba(0,0,0,.15) 60%,rgba(3,8,6,.8))}
.hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.today-hero h1{color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.today-hero .page-sub{color:rgba(255,255,255,.8)}
.phase{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:99px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.16);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:calc(12.5px*var(--ts));font-weight:700;white-space:nowrap}
@media (max-width:719px){.phase{margin-right:56px;margin-top:7px}}
.phase:empty{display:none}
.greet{font-family:var(--f-display);font-weight:800;font-size:calc(26px*var(--ts));line-height:1.15;letter-spacing:-.015em;text-shadow:0 2px 16px rgba(0,0,0,.4)}
.greet-sub{margin-top:6px;font-size:calc(14.5px*var(--ts));color:rgba(255,255,255,.82)}
/* coloured tiles: the colour repeats the group or the kind; the words always carry the meaning */


.today{gap:26px}
.today [data-today="next"] h3{font-size:calc(19px*var(--ts));font-weight:800;color:var(--ink);margin:0 0 12px;display:flex;align-items:center;gap:8px}
.today-alerts:empty{display:none}
.today-alerts .alerts{margin:0}
/* Life: segments, area picture cards with counted rings, records as rows, goal and project pages */
.seg-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line-2)}
.seg-tabs button{min-height:38px;border-radius:10px;font-family:var(--f-body);font-weight:700;font-size:calc(13.5px*var(--ts));color:var(--ink-2);text-align:center;transition:background-color .25s,color .25s}
.seg-tabs button[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink);box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 30%,transparent)}
.ring{--c:var(--accent);position:relative;display:grid;place-items:center;flex:none;width:54px;height:54px}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:5}
.ring>b{position:absolute;font-family:var(--f-display);font-weight:800;font-size:calc(13px*var(--ts));font-variant-numeric:tabular-nums}
.ring.big{width:96px;height:96px}.ring.big circle{stroke-width:6}.ring.big>b{font-size:calc(22px*var(--ts))}
.rec-t{flex:1;min-width:0;display:grid;gap:4px}
.rec-t>b{font-size:calc(15.5px*var(--ts));font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.tag{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:99px;font-size:calc(12px*var(--ts));font-weight:700;background:var(--surface-2);color:var(--ink-2)}
.tag.ok{background:var(--good-bg);color:var(--good)}
.seg-tabs button{border:0;background:none;box-shadow:none}
.seg-tabs button[aria-pressed="true"]{background:var(--btn)}
#tab-timeline #alerts{display:none}
.rec-t>b{overflow-wrap:anywhere;min-width:0}

details.plan-sec{background:var(--surface);border:1px solid var(--line-2);border-radius:22px}
details.plan-sec>summary{padding:14px 16px}
/* Money overview */
.money-top{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
.money-top>*{min-width:0}
.acct-card{position:relative;overflow:hidden;padding:18px 18px 0;border-radius:22px;border:1px solid var(--line-2);background:radial-gradient(120% 90% at 100% 0%,color-mix(in srgb,var(--accent) 16%,transparent),transparent 60%),var(--surface)}
.acct-bal{font-family:var(--f-display);font-weight:900;font-size:calc(38px*var(--ts));line-height:1.05;letter-spacing:-.025em;margin:6px 0 4px}
.acct-bal.neg{color:var(--warn)}
.acct-up{color:var(--good);font-weight:700;font-size:calc(13.5px*var(--ts))}
.acct-up.down{color:var(--warn)}
.acct-card>.acct-up:last-child,.acct-card .acct-up+.acct-btns{margin-top:8px}
.acct-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 0 18px}
.acct-btns .btn{min-height:50px;border-radius:15px}
 /* ADR-119: on a 320 px phone the two tiles stack, so a figure is never pushed off */
.mt-tx{display:flex;align-items:center;gap:12px;padding:10px 0}
.mt-tx+.mt-tx{border-top:1px solid var(--line-2)}
.mt-amt{font-family:var(--f-display);font-weight:800;white-space:nowrap}
.mt-amt.in{color:var(--good)}
.money-more{font-family:var(--f-display);font-size:calc(13px*var(--ts));font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin:14px 2px 0}
/* Timeline chips and rows, the + buttons, the sheet */
.page-h{position:relative}
.fchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:2px 16px}
.fchips::-webkit-scrollbar{display:none}
.fchips button{flex:none;min-height:36px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-weight:700;font-size:calc(13px*var(--ts));color:var(--ink-2)}
.fchips button[aria-pressed="true"]{background:var(--btn);border-color:var(--btn);color:var(--btn-ink)}
.fchips:empty{display:none}
#timeline.panel{background:none;border:0;padding:0}
.sheet-wrap{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .25s}
.sheet-wrap.on{opacity:1}
.sheet{width:100%;max-width:560px;max-height:92%;overflow-y:auto;background:var(--surface);border-radius:28px 28px 0 0;border-top:1px solid var(--line);padding:0 18px calc(22px + env(safe-area-inset-bottom,0px));transform:translateY(40px);transition:transform .35s cubic-bezier(.22,1.18,.36,1)}
.sheet-wrap.on .sheet{transform:none}
.grab{height:30px;display:grid;place-items:center}
.grab::before{content:"";width:40px;height:5px;border-radius:9px;background:var(--line)}
.sheet-h{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.sheet-h h2{flex:1;font-family:var(--f-display);font-size:calc(22px*var(--ts));font-weight:800}
.sheet-x{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface-2);display:grid;place-items:center;color:var(--ink)}
.sheet-x svg{width:14px;height:14px}
.sheet-back{color:var(--ink-2)!important;padding:0!important}
.sf{display:grid;gap:6px;margin-top:14px;font-weight:700;font-size:calc(13px*var(--ts));color:var(--ink-2)}
.sf .text-in{min-height:50px;width:100%;font-weight:400;color:var(--ink)}
.sheet-save{width:100%;margin-top:20px;min-height:50px}
.theme-seg{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0 16px}
.set-rows{display:grid;border-radius:18px;overflow:hidden;border:1px solid var(--line-2)}
.set-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px;background:var(--surface-2);border:0;border-top:1px solid var(--line-2);text-align:left;color:var(--ink)}
.set-row:first-child{border-top:0}
.set-row>svg{width:18px;height:18px;color:var(--ink-3)}
.set-about{margin-top:14px}
@media (max-width:719px){
  body.has-tabs .top .meta{gap:12px}
}
.mood{display:grid;justify-items:center;gap:4px;min-height:64px;padding:8px 2px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--ink-2);font-size:calc(12px*var(--ts));font-weight:700}
.mood svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mood[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 18%,transparent);border-color:var(--accent);color:var(--good)}
@media (min-width:720px){.sheet-wrap{align-items:center}.sheet{border-radius:28px;border:1px solid var(--line)}}
/* Compact pass (ADR-029): Today as in the prototype: the picture as a card, one-line rows that open on tap */
.today-hero{min-height:0;color:var(--ink);padding:0;overflow:visible;border-radius:0;display:block;margin:0 0 4px;isolation:auto}
@media (max-width:719px){.today-hero{margin:0 0 4px;padding-top:0;border-radius:0}}
.today-hero::after{display:none}
.today-hero h1{color:var(--ink);text-shadow:none}
.today-hero .page-sub{color:var(--ink-2)}
.today-hero .phase{background:var(--surface-2);border-color:var(--line-2);color:var(--ink-2);-webkit-backdrop-filter:none;backdrop-filter:none}
.today-alerts .alert{padding:10px 12px;border-radius:14px}
.today-alerts .alert small{display:none}
.today-alerts .alert .btn{min-height:44px;padding:8px 16px}
/* Compact pass: Money's details in four groups, one at a time */
.money-more{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.money-segs{margin:14px 0 4px;grid-template-columns:repeat(4,minmax(0,1fr))}
#tab-money[data-seg="week"] [data-mg]:not([data-mg="week"]),#tab-money[data-seg="savings"] [data-mg]:not([data-mg="savings"]),
#tab-money[data-seg="bills"] [data-mg]:not([data-mg="bills"]),#tab-money[data-seg="history"] [data-mg]:not([data-mg="history"]){display:none}
/* Compact pass: the account card as in the prototype, with the trail beside the balance */
.acct-card{display:grid;grid-template-columns:minmax(0,1fr) 42%;column-gap:10px;align-items:end;padding:16px 16px 0}
.acct-card>.eyebrow,.acct-card>.acct-bal,.acct-card>.acct-up{grid-column:1}
.acct-card>.acct-bal{font-size:calc(32px*var(--ts))}
.acct-card>.acct-btns{grid-column:1/-1;padding:12px 0 14px}
.acct-card>.acct-btns .btn{min-height:44px}
/* ADR-030 redesign, phase 1: the shell (bottom bar, the floating + button, the toast and the profile button), as in the owner's
   design handoff. Icons are Lucide line icons (ISC licence), drawn inline: no file, font or network */
@media (max-width:719.98px){
  .tabs{min-height:78px;display:flex;align-items:stretch}
  .tabs>.tablist{flex:1 1 auto;min-width:0} /* ADR-036: the four tabs share the whole bar equally */
  .tabs button{min-height:78px;gap:4px;font-size:calc(11.5px*var(--ts))}
}
.tabs .ti{width:58px;height:32px;border-radius:99px;transition:background-color .25s,color .25s}
.tabs .ti svg{width:22px;height:22px}
.tabs button{color:var(--ink-3);font-weight:700}
.tabs button[aria-selected="true"]{color:var(--ink);font-weight:800}
.tabs button[aria-selected="true"] .ti{background:var(--nav-on);color:var(--nav-accent)}
@media (min-width:980px){.tabs .ti{width:44px}}
.fab{position:fixed;right:16px;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:45;width:58px;height:58px;border-radius:50%;border:0;display:grid;place-items:center;background:var(--btn);color:var(--btn-ink);cursor:pointer;
  box-shadow:0 10px 26px -6px color-mix(in srgb,var(--btn) 70%,transparent),0 2px 6px rgba(0,0,0,.25);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.fab svg{width:26px;height:26px}
.fab:active{transform:scale(.93)}
.fab:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
body:not(.has-tabs) .fab{display:none}
#toast:not([hidden]) ~ .fab{transform:translateY(-62px)}
@media (min-width:720px){.fab{right:24px;bottom:24px}#toast:not([hidden]) ~ .fab{transform:translateY(-70px)}}
#toast{left:16px;right:16px;transform:none;max-width:none;display:flex;align-items:center;gap:8px;min-height:50px;padding:4px 6px 4px 16px;border-radius:16px;background:var(--toast-bg);color:var(--toast-ink);
  font-size:calc(14px*var(--ts));font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.3);animation:toast-in .3s cubic-bezier(.2,.8,.2,1)}
#toast[hidden]{display:none}
body.has-tabs #toast{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
#toast .toast-btn{margin-left:auto;flex:none;min-height:44px;padding:0 12px;border-radius:22px;color:var(--toast-act);font-weight:700;text-decoration:none}
#toast .toast-btn+.toast-btn{margin-left:0}
@keyframes toast-in{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
@media (min-width:720px){#toast{left:auto;right:24px;max-width:420px}body.has-tabs #toast{bottom:24px}}
.top .settings-btn{width:44px;height:44px;border-radius:50%;padding:0;background:none;box-shadow:none;place-items:center}
@media (max-width:719.98px){body.has-tabs .top .settings-btn{display:grid}}
.top .settings-btn .av{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:var(--good);color:var(--btn-ink);font-family:var(--f-display);font-weight:800;font-size:calc(16px*var(--ts))}
.top .settings-btn .av svg{width:20px;height:20px}
.top .settings-btn .av img{width:100%;height:100%;object-fit:cover}
.sheet-wrap{background:var(--backdrop)}
@media (max-width:719.98px){body.has-tabs .app{padding-bottom:calc(176px + env(safe-area-inset-bottom,0px))}}
@media (min-width:720px){body.has-tabs .app{padding-bottom:112px}}
/* ADR-030 redesign, phase 2: Today. The full-bleed picture with the greeting, then At risk, Today, How life is going and the links;
   what Today showed before sits underneath in "From your plan" */
.today-hero.td-hero{position:relative;isolation:isolate;overflow:hidden;display:block;height:268px;min-height:0;padding:0;margin:0 0 0;border-radius:28px;color:#fff}
@media (max-width:719.98px){.today-hero.td-hero{margin:calc(-1 * max(18px,env(safe-area-inset-top,0px))) -16px 0;border-radius:0}}
.td-hero .hero-art{position:absolute;left:0;right:0;top:0;height:100%;z-index:-2;transform-origin:50% 100%;will-change:transform}
.td-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.22) 0%,transparent 45%)}
.td-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:80px;z-index:-1;background:linear-gradient(180deg,transparent,var(--ground))}
.td-hero .phase{position:absolute;top:calc(max(18px,env(safe-area-inset-top,0px)) - 4px);left:16px;margin:0;min-height:34px;gap:6px;padding:0 12px;border-radius:99px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font-size:calc(13px*var(--ts));font-weight:700}
.td-hero .phase svg{width:16px;height:16px}
.td-hero .greet{position:absolute;left:20px;right:20px;top:96px;margin:0;font-family:var(--f-display);font-size:calc(36px*var(--ts));font-weight:900;line-height:1.1;letter-spacing:-.01em;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.td-hero .greet-sub{position:absolute;left:20px;right:20px;top:142px;margin:0;font-size:calc(15px*var(--ts));color:rgba(255,255,255,.88);text-shadow:0 1px 8px rgba(0,0,0,.3)}
@media (min-width:720px){.td-hero .phase{top:14px}}
@media (max-width:719.98px){
  body.has-tabs[data-screen="today"] .top .settings-btn{background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff}
  body.has-tabs[data-screen="today"] .top{top:calc(max(18px,env(safe-area-inset-top,0px)) - 9px)}
}
.td-bar{position:fixed;left:0;right:0;top:0;z-index:30;padding:max(8px,env(safe-area-inset-top,0px)) 16px 8px;transform:translateY(-110%);transition:transform .32s cubic-bezier(.2,.8,.2,1);color:#fff;pointer-events:none}
.td-bar.on{transform:none;pointer-events:auto}
.td-bar button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:46px;width:calc(100% - 60px);border:0;background:none;color:inherit;text-align:left;padding:0;cursor:pointer}
.td-bar b{font-family:var(--f-display);font-size:calc(18px*var(--ts));font-weight:900}
.td-bar small{font-size:calc(12.5px*var(--ts));color:rgba(255,255,255,.88)}
.td-bar button{min-width:0}.td-bar b,.td-bar small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:720px){.td-bar{display:none}}
.td{display:flex;flex-direction:column}
.td h2{font-family:var(--f-display);font-size:calc(22px*var(--ts));font-weight:800;margin:0}
.td-kick{font-size:calc(12px*var(--ts));font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--warn)}
.td-kick.ok{color:var(--good)}
.td-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex:none;background:var(--ink-3)}
.td-dot.warn,.td-dot.moved{background:var(--warn)}.td-dot.good{background:var(--good)}.td-dot.bills{background:var(--c-bills)}.td-dot.event{background:var(--baby)}.td-dot.step{background:var(--tax)}.td-dot.task{background:var(--ink-2)}
.td-risk{position:relative;z-index:2;margin-top:-52px}
.td-glance{position:relative;z-index:2;margin-top:-52px}
.td-glance ~ .td-risk{margin-top:14px}
.td-note{position:relative;z-index:2;margin:-52px 0 12px;padding:16px;border-radius:22px;background:var(--surface);border:1px solid var(--line-2);box-shadow:0 4px 14px rgba(0,0,0,.08)} /* ADR-084 */
.td-note ~ .td-glance{margin-top:0}
.td-note h2{margin:4px 0 4px;font-size:calc(18px*var(--ts));line-height:1.25}
.td-note p{margin:0;font-size:calc(14px*var(--ts));color:var(--ink-2)}
.td-note .td-fixes{margin:12px 0 0}
.td-note .td-fix{border-color:var(--line)}
.td-note .td-fix.main{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.wk-top{display:flex;gap:8px;margin:0 0 12px}.wk-top .btn{flex:1;min-height:48px} /* ADR-186 */
.wk-lights{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}.wk-lights li{display:flex;align-items:center;gap:8px;line-height:1.3}
.wk-lights b{flex:none;min-width:44px;font-size:calc(12px*var(--ts))}.wk-dot{flex:none;width:12px;height:12px;border-radius:50%;background:var(--good)}
.wk-lights .wk-close .wk-dot{background:var(--warn)}.wk-lights .wk-over .wk-dot{background:var(--danger)}
.td-more{margin-top:10px}.td-more > summary{cursor:pointer;font-size:calc(13.5px*var(--ts));font-weight:700;color:var(--ink-2);min-height:32px;display:flex;align-items:center}
.ds-rows{display:grid;gap:8px;margin:8px 0}.ds-row{display:grid;gap:3px;text-align:left;width:100%;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);font:inherit;min-height:44px;cursor:pointer}.ds-row[aria-pressed=true]{border-color:var(--accent,var(--good));box-shadow:0 0 0 2px var(--accent,var(--good)) inset}.ds-row b{font-weight:800}.ds-row small{color:var(--ink-2)}.ds-lab{display:inline-block;font-size:calc(12px*var(--ts));font-weight:700;color:var(--ink-2);border:1px solid var(--line);border-radius:999px;padding:1px 8px;margin:2px 4px 0 0}.ds-terms{border:1px solid var(--line);border-radius:14px;padding:10px;margin:8px 0;display:grid;gap:8px}.ds-terms legend{font-weight:800;padding:0 6px}.ds-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.ds-flips{list-style:none;padding:0;margin:6px 0}
.sp{margin-top:8px;display:grid;gap:6px}.sp-sw{display:flex;gap:8px;flex-wrap:wrap}.sp-steps{margin:0;padding-left:18px}.ask-t .field{margin:8px 0}.ask-t [aria-invalid=true]{border-color:var(--bad,#c0392b)}
.st-sum{border:1px solid var(--line);border-radius:14px;padding:12px;margin:8px 0 10px}.st-sum-h{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:0 0 8px}
.st-bar{display:flex;height:10px;border-radius:6px;overflow:hidden;background:var(--line);margin-bottom:8px}.st-bar-same{background:var(--good)}.st-bar-fixed{background:var(--ink-3)}.st-bar-check{background:var(--warn)}.st-bar-off{background:var(--info)}
.st-sum-l{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;font-size:calc(13.5px*var(--ts))}.st-sum-l li{display:flex;align-items:center;gap:6px}.st-sw{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}
.st-next{margin:8px 0 0}.st-grp{border-top:1px solid var(--line)}.st-grp > summary{display:flex;align-items:center;gap:6px;min-height:46px;cursor:pointer;font-weight:700;list-style:none}.st-grp > summary::-webkit-details-marker{display:none}
.st-grp-c{margin-left:auto;transition:transform .2s}.st-grp[open] .st-grp-c{transform:rotate(90deg)}.st-grp-b{padding-bottom:10px}
.tc-exp{margin:8px 0;padding:8px 10px;border-radius:10px;background:var(--warn-bg)}.acct-how{margin:4px 0 8px}.acct-how-l{list-style:none;margin:6px 0 0;padding:0}.acct-how-l li{display:flex;justify-content:space-between;gap:10px;padding:2px 0}.acct-how-t{border-top:1px solid var(--line);margin-top:4px;padding-top:4px!important;font-weight:600}.tc-err{margin:8px 0;padding:8px 10px;border-radius:10px;background:var(--warn-bg)}.tc-err p{margin:0 0 6px}.tc-diag{display:flex;gap:8px;align-items:flex-start}.tc-diag code{flex:1;min-width:0;font-size:calc(12px*var(--ts));overflow-wrap:anywhere;user-select:all;-webkit-user-select:all}.tc-pic{margin-top:12px}.tc-h{font-size:calc(15px*var(--ts));margin:14px 0 6px}
.tc-sum{border:1px solid var(--line);border-radius:14px;padding:12px}.tc-sum-h{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:0 0 8px}
.tc-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.tc-tiles li{display:flex;flex-direction:column;padding:8px;border-radius:10px;background:var(--surface-2)}.tc-tiles b{font-size:calc(18px*var(--ts))}.tc-tiles small{color:var(--ink-2)}.tc-warn{color:var(--warn)!important;font-weight:700}
.tc-key{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:calc(12.5px*var(--ts))}.tc-key li{display:flex;align-items:center;gap:5px}.tc-key svg{width:16px;height:12px;border-radius:2px}
.tc-day{border-top:1px solid var(--line)}.tc-day > summary{list-style:none;cursor:pointer;padding:6px 0;min-height:46px}.tc-day > summary::-webkit-details-marker{display:none}.tc-day-t{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline}
/* ADR-213a: the Card page */
.ch-l{list-style:none;margin:0;padding:0}.ch-l > li{border-top:1px solid var(--line)}.ch-l details > summary{list-style:none;cursor:pointer;padding:8px 0;min-height:44px;display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline}.ch-l details > summary::-webkit-details-marker{display:none}.ch-l .tc-bar{flex-basis:100%}.ch-det{padding:0 0 10px;overflow-wrap:anywhere}.ch-det ul{margin:0;padding-left:18px}.ch-sec{margin-top:18px}.ch-cover{font-weight:600;margin:12px 0 4px}.ch-card-l{margin:6px 0 0;padding-left:18px;overflow-wrap:anywhere}
.tc-bar{display:block;width:100%;height:16px;margin-top:4px;border-radius:4px;background:var(--line)}
.tc-drive{fill:var(--good)}.tc-work{fill:url(#tc-pat-work)}.tc-poa{fill:url(#tc-pat-poa)}.tc-rest{fill:var(--line)}.tc-pat-a{fill:var(--warn)}.tc-pat-b{fill:var(--info)}.tc-pat-bg{fill:var(--surface-2)}.tc-rn{font-weight:700}
.tc-defs{position:absolute;width:0;height:0;overflow:hidden}
.td-more[open] > summary{margin-bottom:6px}
.td-gl{display:flex;flex-direction:column;gap:2px;min-width:0;padding:10px 10px 9px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.td-gl small{font-size:calc(11.5px*var(--ts));color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.td-gl b{font-family:var(--f-display);font-size:calc(18px*var(--ts));line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.td-gl b.neg{color:var(--warn)}
.td-risk-card{padding:16px;border-radius:22px;border:1px solid color-mix(in srgb,var(--warn) 38%,transparent);background:var(--warn-bg);box-shadow:var(--shadow)}
.td-risk-top{display:flex;gap:14px;align-items:flex-start}
.td-risk-ic{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--warn);color:var(--warn-bg)}
.td-risk-ic svg{width:22px;height:22px}
.td-risk-head{font-family:var(--f-display);font-size:calc(20px*var(--ts));font-weight:800;line-height:1.2;margin:2px 0 4px}
.td-risk-sub{margin:0;font-size:calc(14px*var(--ts));color:var(--ink-2)}
.td-risk-card.calm{border-color:var(--line-2);background:var(--surface)} /* ADR-083 (G4): no warning colour unless money is short */
.td-risk-card.calm .td-risk-ic{background:color-mix(in srgb,var(--good) 14%,var(--surface));color:var(--good-ink)}
.td-risk-card.calm .td-kick{color:var(--ink-2)}
.td-risk-card.calm .td-fix{border-color:var(--line)}
.td-risk-card.calm .td-fix.main{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.td-risk-card.calm>.td-fixes .td-fix.got{border-color:var(--line)}
.td-fixes{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0 54px}
.td-risk.ch-new{margin:12px 0 14px}
.wk-parts{margin:4px 0 8px;padding-left:18px}.wk-parts li{margin:2px 0} /* ADR-280: Pay details by rate */
.wk-rules{margin:8px 0} /* ADR-280: Pay rules, beside the rate */
.warn-t{color:var(--warn-ink);font-weight:700} /* ADR-281, ADR-282: Below cash to keep, Short */
.af-btns{display:flex;flex-wrap:wrap;gap:8px}.af-ways{margin-top:14px}.af-way{margin-top:10px} /* ADR-281: Compare ways to pay */
.rt{margin-top:12px}.rt-l{list-style:none;margin:6px 0 0;padding:0}.rt-l li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}.rt-tot{font-weight:700;margin:4px 0} /* ADR-282: the rule test */ /* ADR-279: "N new on the card", on Today and on Work, in the flow (not over the hero) */
.td-fix{min-height:44px;padding:0 16px;border-radius:22px;border:1.5px solid color-mix(in srgb,var(--warn) 45%,transparent);background:transparent;color:var(--ink);font-size:calc(14px*var(--ts));font-weight:700;font-family:inherit;cursor:pointer}
.td-fix.main{background:var(--warn);border-color:var(--warn);color:var(--warn-bg)}
.td-more-risks{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;margin-top:6px;padding:0 6px;border:0;background:none;color:var(--ink-2);font:inherit;font-size:calc(14px*var(--ts));font-weight:700;cursor:pointer;text-align:left}
.td-more-risks svg{width:18px;height:18px;margin-left:auto;transition:transform .25s}
.td-more-risks[aria-expanded="true"] svg{transform:rotate(180deg)}
.td-risk-list{list-style:none;margin:0;padding:4px 14px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}
.td-risk-list li{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 0;border-top:1px solid var(--line-2)}
.td-risk-list li:first-child{border-top:0}
.td-risk-list li>span:nth-child(2){flex:1;min-width:0}
.td-risk-list li{flex-wrap:wrap}
.td-risk-list li>span:nth-child(2){flex-basis:calc(100% - 24px)} /* RD-47: the text keeps the row's width; its buttons wrap under it */
.td-risk-list li>.td-fix{margin-left:22px}.td-risk-list li>.td-fix~.td-fix{margin-left:0}
.td-risk-list b{display:block;font-size:calc(15px*var(--ts))}.td-risk-list small{display:block;font-size:calc(13px*var(--ts));color:var(--ink-3)}
.td-band{margin-top:20px}
/* ADR-067: Coming up, quiet heads-ups weeks before money changes (no warning colour: nothing is wrong yet) */
.td-soon-list{list-style:none;margin:0;padding:4px 14px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}
.td-soon-list li{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 12px;padding:10px 0;border-top:1px solid var(--line-2)}
.td-soon-list li>.td-dot{margin-top:8px}
.td-soon-list li:first-child{border-top:0}
.td-soon-t{flex:1 1 calc(100% - 24px);min-width:0}
.td-soon-t b{display:block;font-size:calc(15px*var(--ts))}.td-soon-t small{display:block;font-size:calc(13px*var(--ts));color:var(--ink-2)}
.td-soon-list .td-fix{margin-left:22px;min-height:44px;border-color:var(--line-strong)}
.td-lc .td-soon-list .td-fix~.td-fix{margin-left:0}.td-lc .td-fix.main{background:var(--ink);border-color:var(--ink);color:var(--surface)} /* ADR-090: money arriving is good news, never a warning */
.td-rules .td-soon-list .td-fix~.td-fix{margin-left:0}.td-rules .td-fix.main,.pw-rules .td-fix.main{background:var(--ink);border-color:var(--ink);color:var(--surface)} /* ADR-089: a rule is the owner's own plan, never a warning */
.pw-rules{list-style:none;margin:0;padding:0}.pw-rules li{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 12px;padding:10px 0;border-top:1px solid var(--line-2)}.pw-rules li:first-child{border-top:0}.pw-rules li>.td-dot{margin-top:8px}.pw-rules .td-fix{border-color:var(--line-strong)}
.td-lc .lc-not{flex:1 1 100%;margin-left:22px}.td-lc .lc-not .btns{margin-top:8px}
.lc-list li{align-items:flex-start}.lc-list li span small{display:block;color:var(--ink-2);margin-top:2px}.lc-list .lc-open{padding:0;min-height:44px;text-align:left}.lc-prev h4{margin:14px 0 6px}.lc-past-h{margin:10px 0 0}
.td-head{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}
.td-head.row{flex-direction:row;align-items:baseline;justify-content:space-between} /* a day with things to do. Was the class big, so the hero figure's .big and .big .num rules reached the band, its amounts and the week strip's day numbers (a bug fixed under ADR-083) */
.td:not(.has-risk) .td-today{position:relative;z-index:2}
.td-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.td-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:62px;padding:4px 0;border-radius:16px;border:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer}
.td-day .td-dw{font-size:calc(11px*var(--ts));font-weight:700;text-transform:uppercase;opacity:.8}
.td-day b{font-family:var(--f-display);font-size:calc(18px*var(--ts));font-weight:800}
.td-dots{display:flex;gap:3px;min-height:6px}
.td-dots .td-dot{width:6px;height:6px}
.td-day.is-today{background:var(--surface);box-shadow:var(--shadow)}
.td-day.is-sel{background:var(--btn);color:var(--btn-ink)}
.td-day.is-sel .td-dot{background:var(--btn-ink)}
.td-daypanel{margin-top:8px;padding:14px 16px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}
.td-daypanel h3{margin:0 0 6px;font-size:calc(15px*var(--ts))}
.td-daypanel ul{list-style:none;margin:0;padding:0}
.td-daypanel li{display:flex;align-items:center;gap:10px;padding:6px 0}
.td-daypanel b{display:block;font-size:calc(14px*var(--ts))}.td-daypanel small{display:block;font-size:calc(13px*var(--ts));color:var(--ink-3)}
.td-hint{display:flex;align-items:center;gap:8px;margin:12px 2px 0;font-size:calc(13px*var(--ts));color:var(--ink-3)}
.td-hint svg{width:16px;height:16px;flex:none}
.td-card{list-style:none;margin:12px 0 0;padding:0;border-radius:22px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.td-row{border-top:1px solid var(--line-2)}
.td-swipe{position:relative;overflow:hidden}
.td-row:first-child{border-top:0}
.td-row-in{position:relative;z-index:1;display:flex;align-items:stretch;background:var(--surface);touch-action:pan-y;transition:transform .24s cubic-bezier(.2,.8,.2,1)}
.td-row.swiping .td-row-in{transition:none}
.td-under{position:absolute;inset:0;pointer-events:none;display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:calc(14px*var(--ts))}
.td-under>span{display:flex;align-items:center;gap:6px;height:100%;padding:0 18px;opacity:0}
.td-under svg{width:18px;height:18px}
.td-u-done{background:var(--good);color:var(--btn-ink);flex:1}
.td-u-later{background:var(--warn);color:var(--warn-bg);flex:1;justify-content:flex-end}
.td-row[data-dir="done"] .td-u-done,.td-row[data-dir="later"] .td-u-later{opacity:var(--sw,0)}
.td-row[data-dir="done"] .td-u-later,.td-row[data-dir="later"] .td-u-done{display:none}
.td-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 0 10px 14px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.td-tile{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--c);background:color-mix(in srgb,var(--c) 16%,transparent)}
.td-tile svg{width:20px;height:20px}
.td-t{min-width:0}
.td-t b{display:block;font-size:calc(16px*var(--ts));font-weight:700;line-height:1.25}
.td-t small{display:block;font-size:calc(13px*var(--ts));color:var(--ink-3);margin-top:1px}
.td-amt{flex:none;min-width:44px;min-height:44px;align-self:center;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer} /* ADR-059: tap the pay to change it */
.td-tick{flex:none;width:58px;min-height:64px;border:0;background:none;display:grid;place-items:center;cursor:pointer;padding:0}
.td-tick>span{width:28px;height:28px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;color:transparent}
.td-tick>span svg{width:16px;height:16px}
.td-tick:hover>span{border-color:var(--good)}
.safe-card{margin-top:12px;padding:16px;border-radius:22px;background:var(--surface);box-shadow:var(--shadow);border:1px solid color-mix(in srgb,var(--good) 30%,var(--line))} /* ADR-081 */
.safe-h{margin:0;font-family:var(--f-display);font-size:calc(17px*var(--ts));line-height:1.3;overflow-wrap:anywhere}
.safe-how{margin:6px 0 0;color:var(--ink-2);font-size:calc(14px*var(--ts));line-height:1.45;overflow-wrap:anywhere}
.safe-prev{margin:8px 0 0;padding-left:20px;font-size:calc(14px*var(--ts));line-height:1.45;overflow-wrap:anywhere}
.safe-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.safe-btns .btn{flex:1 1 auto;white-space:normal;text-align:center}
.pw-start{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px 14px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);border:1px solid color-mix(in srgb,var(--good) 30%,var(--line))} /* ADR-082 */
.pw-start .td-t{flex:1 1 auto}.pw-start .btn{flex:none;min-height:44px;padding:0 20px}
.pw-h{margin:2px 0 0;font-family:var(--f-display);font-size:calc(19px*var(--ts));line-height:1.3;overflow-wrap:anywhere}
.pw-n{display:block;margin-bottom:4px;font-family:var(--f-body);font-size:calc(13px*var(--ts));font-weight:700;color:var(--ink-2)}
.pw-p{margin:8px 0 0;color:var(--ink-2);font-size:calc(15px*var(--ts));line-height:1.45;overflow-wrap:anywhere}
.pw-btns,.pw-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.pw-btns .btn,.pw-nav .btn{flex:1 1 auto;min-height:44px;white-space:normal;text-align:center}
.pw-list{list-style:none;margin:10px 0 0;padding:0}.pw-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:calc(15px*var(--ts))}
.pw-li{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.pw-li small{color:var(--ink-3)}.pw-list .btn{min-height:44px}
.pw-done{display:inline-flex;align-items:center;gap:4px;color:var(--good);font-weight:700}.pw-done svg{width:16px;height:16px}
.pw-step .safe-card{margin-top:2px;padding:0;border:0;box-shadow:none;background:none}.pw-step .safe-h{font-size:calc(19px*var(--ts))}
.pw-step .td-perday{display:block;margin-top:10px;font-size:calc(15px*var(--ts));color:var(--ink-2)}
#cheer.over{z-index:80} /* ADR-082: the payday walkthrough's celebration shows over its sheet */
.td-done{margin-top:14px}
.td-done h3{margin:0 0 4px;font-size:calc(13px*var(--ts));font-weight:700;color:var(--ink-3)}
.td-done ul{list-style:none;margin:0;padding:0}
.td-done-in{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 6px;border:0;background:none;color:var(--ink);font:inherit;text-align:left;opacity:.62}
button.td-done-in{cursor:pointer}
.td-check{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--good);color:var(--btn-ink);flex:none}
.td-check svg{width:12px;height:12px}
.td-cards{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.td-life-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:16px;border-radius:22px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;transition:transform .2s;
  border:1px solid color-mix(in srgb,var(--c) 22%,transparent);background:radial-gradient(130% 100% at 100% 0%,color-mix(in srgb,var(--c) 20%,transparent) 0%,transparent 62%),var(--surface)}
.td-life-card:active{transform:scale(.985)}
.td-lc-h{display:flex;align-items:center;gap:10px}
.td-lc-h .td-tile{width:34px;height:34px;border-radius:11px}
.td-lc-h b{font-size:calc(16px*var(--ts));font-weight:700;flex:1;min-width:0}
.td-pill{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:0 10px;border-radius:13px;font-size:calc(12.5px*var(--ts));font-weight:700;background:var(--surface-2);color:var(--ink-2);white-space:nowrap}
.td-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.td-pill.good{background:var(--good-bg);color:var(--good)}.td-pill.warn{background:var(--warn-bg);color:var(--warn)}
.td-month{margin:0 0 18px;padding:16px;border-radius:22px;background:var(--surface);border:1px solid var(--line-2)} /* ADR-069 */
.td-month h2{margin:4px 0 10px;font-size:calc(18px*var(--ts))}
.td-month-fig{display:flex;gap:24px;margin:0 0 12px}
.td-month-fig span{display:grid;gap:2px}
.td-month-fig small{color:var(--ink-2);font-size:calc(12.5px*var(--ts))}
.td-month-fig b{font-size:calc(20px*var(--ts));font-weight:800}
.td-month .td-fixes{margin:0}
.td-month .td-fix{border-color:var(--line)}
.td-month .td-fix.main{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.td-perday{display:block;margin-top:6px;font-size:calc(12px*var(--ts));color:var(--ink-2)} .td-perday.over{color:var(--warn);font-weight:700} /* ADR-061 */ /* ADR-085 */
.sav-hero .so-open{margin-top:12px;white-space:normal} /* ADR-098 */
.af-ans{margin-top:16px} .af-ans .safe-how+.safe-how{margin-top:6px}
/* ADR-030 redesign, phase 3: Money (the balance card, the two tiles, the pots in order, bills by date, the latest entries in History) */
.acct-card.mt-bal{display:block;padding:18px;border-radius:24px}
.acct-card.mt-bal>.acct-btns{padding:12px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.acct-card.mt-bal>.acct-bal{font-size:calc(46px*var(--ts))}
.mt-bal-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mt-bal .acct-bal{font-family:var(--f-display);font-size:calc(46px*var(--ts));font-weight:900;line-height:1.05;margin:6px 0 4px;font-variant-numeric:tabular-nums}
.mt-graph{margin-top:10px}
.acct-card.mt-bal>.acct-btns.mt-bk{grid-template-columns:1fr;justify-items:start} /* ADR-062 */
.bk-bills{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}
.bk-bills .check{align-items:flex-start;min-height:44px}
.bk-cats{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.bk-cats .btn{min-height:44px}
.sheet-wrap[data-kind="bank"] #sheet-body{padding-bottom:72px} /* the toast with Undo sits over the foot of the sheet: Leave it stays above it */
.money-segs button{min-height:44px;border-radius:22px}
.pot-state{display:inline-block;margin-top:4px;font-size:calc(12.5px*var(--ts));font-weight:700;color:var(--ink-2)}
.pot.is-full .pot-state{color:var(--good)}
.pot.is-full .pot-num{background:var(--good);color:var(--btn-ink)}
.pot-num svg{width:14px;height:14px}
.pot-order{margin:10px 2px 0}
.mt-recent{margin-bottom:16px}
/* ADR-030 amendment 3 (RD-44): the balance chart. One series in the chart green (checked against both card surfaces), hairline solid gridlines on
   clean £ values in a left gutter, dates along the bottom, a 2px stepped line over a 10% wash, an end dot with a 2px surface ring */
.bc{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;margin:0}
.bc-y{position:relative;grid-row:1;grid-column:1;min-width:34px}
.bc-y span{position:absolute;right:0;transform:translateY(-50%);font-size:calc(11px*var(--ts));line-height:1;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.bc-plot{position:relative;grid-row:1;grid-column:2;display:block;height:132px;margin-right:6px;touch-action:pan-y;border-radius:6px}
.bc-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.bc-grid{stroke:var(--line);stroke-width:1}
.bc-grid.zero{stroke:var(--ink-3)}
.bc-line{fill:none;stroke:var(--chart-line);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.bc-area{fill:color-mix(in srgb,var(--chart-line) 10%,transparent)}
.bc-x{position:relative;grid-row:2;grid-column:2;display:block;height:20px;margin:6px 6px 0 0}
.bc-x span{position:absolute;top:0;transform:translateX(-50%);font-size:calc(11.5px*var(--ts));color:var(--ink-3);white-space:nowrap}
.bc-x span:first-child{transform:none}
.bc-x span:last-child{transform:translateX(-100%)}
.bc-plot:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.bc-table{margin-top:4px}
.bc-table>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;min-height:44px;font-size:calc(13.5px*var(--ts));font-weight:700;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.bc-table>summary::-webkit-details-marker{display:none}
.bc-table table{width:100%;border-collapse:collapse;font-size:calc(13px*var(--ts));margin-bottom:8px}
.bc-table th{text-align:left;font-weight:700;color:var(--ink-2);padding:6px 4px;border-bottom:1px solid var(--line)}
.bc-table td{padding:6px 4px;border-bottom:1px solid var(--line-2)}
.bc-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
/* ADR-030 amendment 3 (RD-43): each part of a Money group folds, closed until tapped, with its key figure on the closed row */
.mfold{border-top:1px solid var(--line-2)}
.panel>.mfold:first-child,.panel>div:first-child>.mfold:first-child,#loans>.mfold,#dates>.mfold,#month>.mfold:first-child{border-top:0}
.mfold-h{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 0;border-radius:12px}
.mfold-h::-webkit-details-marker{display:none}
.mfold-h:focus-visible{outline-offset:-2px}
.mfold-t{display:flex;flex-direction:column;gap:3px;min-width:0}
.mfold-t h2,.mfold-t h3{font-family:var(--f-display);font-size:calc(17px*var(--ts));font-weight:800;margin:0;line-height:1.25}
.mfold-t>small{color:var(--ink-2);font-size:calc(13.5px*var(--ts));line-height:1.35}
.mfold-t .left-big{font-family:var(--f-body);font-size:calc(13.5px*var(--ts));font-weight:800;color:var(--ink)}
.mfold-t .left-big.neg{color:var(--warn)}
.mfold-t .left-big small{font-size:calc(13.5px*var(--ts));margin-left:4px}
.mfold-h .chev{width:22px;height:22px;flex:none;color:var(--ink-2);transition:transform .2s}
.mfold[open]>.mfold-h .chev{transform:rotate(180deg)}
.mfold-b{padding:2px 0 14px}
.log-hint{margin:0 0 6px}
@media (prefers-reduced-motion:reduce){html[data-motion="follow"] .mfold-h .chev{transition:none}} /* ADR-238 (item 35): only under "Follow my phone"; "Full" means full */
/* ADR-030 redesign, phase 3: the goal page and the Life rows */
.gp{padding:4px 0 8px}
/* ADR-030 redesign, phase 4: the Timeline's three views */
.tl-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;margin:4px 0 12px;border-radius:22px;background:var(--surface-2)}
.tl-seg button{min-height:44px;border:0;border-radius:18px;background:transparent;color:var(--ink-2);font:inherit;font-weight:700;cursor:pointer}
.tl-seg button[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink)}
.tt{display:grid;gap:10px;margin:0 0 12px}
.tt-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px}
.tt-top h2{margin:0;font-family:var(--f-display);font-size:calc(16px*var(--ts));font-weight:800}
.tt-plan{font-size:calc(12.5px*var(--ts));color:var(--ink-2)}
.tt input[type=range]{width:100%;margin:0;accent-color:var(--good);min-height:44px}
.tt-ends{display:flex;justify-content:space-between;gap:8px;font-size:calc(12px*var(--ts));color:var(--ink-3)}
.tt-when{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 10px}
.tt-when b{font-family:var(--f-display);font-size:calc(17px*var(--ts));min-width:0;overflow-wrap:anywhere}
.tt-figs{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:8px;margin:0}
.tt-figs>div{min-width:0;padding:8px 10px;border-radius:12px;background:var(--surface-2)}
.tt-figs dt{font-size:calc(12px*var(--ts));color:var(--ink-2)}
.tt-figs dd{margin:0;font-family:var(--f-display);font-weight:800;font-size:calc(18px*var(--ts));overflow-wrap:anywhere}
.tt-figs dd .btn.link{font-family:inherit;font-weight:700;font-size:calc(14px*var(--ts))}
.tt-figs dd.warn{color:var(--warn)}
.tt-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tt-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:baseline;font-size:calc(13.5px*var(--ts))}
.tt-list li>span:first-child{min-width:0;overflow-wrap:anywhere}
.tt-list .bar{grid-column:1/-1;height:8px}
.tt .bar>i{transition:none}
.tt-loans{padding-top:8px;border-top:1px solid var(--line-2)}
.tt-say{margin:0;font-size:calc(14px*var(--ts));line-height:1.45}
.tt-note{margin:0}
#tab-timeline[data-seg="plans"] [data-tl="section"],#tab-timeline[data-seg="plans"] #tl-chips{display:none}
/* ADR-030 redesign, phase 4: the + menu, the task sheet and Search */
.chart{margin:14px 0 6px}.chart figcaption{line-height:1.4}.chart figcaption .fine{display:block}.ch-rows{display:grid;gap:8px;margin-top:10px}
.ch-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px;font-size:calc(14px*var(--ts))}.ch-l{font-weight:600;overflow-wrap:anywhere}.ch-v{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}
.ch-bar{flex:1 0 100%;width:100%;height:10px;display:block}.ch-bar rect{fill:var(--good)}.ch-row[data-k=out] .ch-bar rect{fill:var(--c-bills)}.ch-row[data-k=min] .ch-bar rect{fill:var(--tax)}
.st-line{all:unset;cursor:pointer;display:inline;border-radius:6px}.st-line:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.add-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:6px}
.add-k{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:104px;border-radius:18px;border:0;background:color-mix(in srgb,var(--c) 16%,transparent);color:var(--ink);font:inherit;cursor:pointer;transition:transform .15s}
.add-k:active{transform:scale(.95)}
.add-ic{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--surface);color:var(--c)}
.add-ic svg{width:24px;height:24px}
.add-k b{font-size:calc(15px*var(--ts));font-weight:700}
.add-k b{text-align:center;overflow-wrap:anywhere;padding:0 4px} /* ADR-085: "Can I afford it?" takes two lines */

.search-btn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}
.search-btn svg{width:20px;height:20px}
body:not(.has-tabs) .search-btn{display:none}
@media (max-width:719.98px){body.has-tabs[data-screen="today"] .top .search-btn{background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.18);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff}}
.search{position:fixed;inset:0;z-index:80;background:var(--ground);overflow-y:auto;padding:0 16px 40px}
.search-top{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:6px;padding:max(10px,env(safe-area-inset-top,0px)) 0 10px;background:var(--ground)}
.search-back{flex:none;width:44px;height:44px;border:0;background:none;color:var(--ink-2);display:grid;place-items:center;margin-left:-8px;cursor:pointer}
.search-back svg{width:22px;height:22px}
.search-field{position:relative;flex:1;display:block}
.search-field svg{position:absolute;left:14px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:var(--ink-3);pointer-events:none}
.search-field input{width:100%;height:48px;padding:0 14px 0 42px;border-radius:24px;border:1.5px solid var(--line);background:var(--surface-2);color:var(--ink);font:inherit;font-size:calc(16px*var(--ts))}
.search-try{display:flex;flex-wrap:wrap;gap:8px}
.rk-key{font-family:monospace;font-size:1.15rem;letter-spacing:.06em;font-weight:700;margin:8px 0;word-break:break-word}
.chip-btn{min-height:44px;padding:0 16px;border-radius:22px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.search-g h2{font-size:calc(13px*var(--ts));font-weight:700;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em;margin:18px 0 6px}
.search-g ul{list-style:none;margin:0;padding:0;border-radius:18px;background:var(--surface);overflow:hidden}
.search-row{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:8px 14px;border:0;border-top:1px solid var(--line-2);background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.search-g li:first-child .search-row{border-top:0}
.search-row b{display:block;font-size:calc(15px*var(--ts))}.search-row small{display:block;font-size:calc(13px*var(--ts));color:var(--ink-3)}
.search-none{padding:24px 0;text-align:center}
.search-sum{padding:12px 14px;min-height:44px}.search-sum b{display:block;font-size:calc(15px*var(--ts))}.search-sum small{display:block;font-size:calc(13px*var(--ts));color:var(--ink-3)} /* ADR-070 */
.search-row .cat-dot{width:38px;height:38px}
.search-none .btn{min-height:48px}
body.searching .fab,body.searching .tabs{visibility:hidden}
/* review fixes (ADR-030 phases 1 and 2): focus rings inside clipped rows, contrast over the picture and on warning colours, the bottom
   fade, pinch-zoom on rows, jumps clear of the slim bar, and the week strip on very small phones */
.td-open:focus-visible,.td-tick:focus-visible{outline-offset:-3px}
.today-hero.td-hero::before{background:linear-gradient(180deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,.3) 62%,transparent 88%)}
.today-hero.td-hero::after{display:block}
@media (max-width:719.98px){body.has-tabs[data-screen="today"] #today-lbl{display:none}html:has(body[data-screen="today"]){scroll-padding-top:calc(72px + env(safe-area-inset-top,0px))}}
.td-row-in{touch-action:pan-y pinch-zoom}
.td-day.is-sel .td-dw{opacity:1}
.td-kick,.td-pill.warn{color:var(--warn-ink)}
.td-kick.ok,.td-pill.good{color:var(--good-ink)}
.td-fix.main,.td-risk-ic{background:var(--warn-ink);border-color:var(--warn-ink)}
.td-u-later{background:var(--warn-ink)}
@media (max-width:359.98px){.td-strip{gap:2px}}
@media (max-width:339.98px){.td-strip{grid-template-columns:repeat(7,44px);overflow-x:auto}}
/* ADR-030 redesign, phase 5: You, setup, the weekly review, the lock screen, celebrations and the backup card */
#sheet-body>.eyebrow{display:block;margin:20px 0 8px}
.you-card{display:flex;gap:16px;align-items:center;padding:16px;border-radius:20px;background:var(--surface-2);margin-bottom:10px}
.you-ph{position:relative;flex:none;width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#1E9E5E,#1E6FBF);color:#fff;cursor:pointer}
.you-ph img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.you-ph>svg{width:40px;height:40px}
.you-in{font-family:var(--f-display);font-weight:800;font-size:calc(36px*var(--ts))}
.you-cam{position:absolute;right:-2px;bottom:-2px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--btn);color:var(--btn-ink);border:3px solid var(--surface-2)}
.you-cam svg{width:16px;height:16px}
.you-file{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;overflow:hidden}
.you-ph:focus-within{outline:3px solid var(--accent);outline-offset:3px}
.you-id{flex:1;min-width:0}
.you-id .sf{margin-top:0}
.you-id small{display:block;margin-top:6px}
.you-del{min-height:44px;padding:0;color:var(--ink-2)}
.you-note{margin:0}
.you-facts{display:grid;border-radius:18px;overflow:hidden;border:1px solid var(--line-2)}
.you-facts p{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:52px;margin:0;padding:0 16px;background:var(--surface-2);border-top:1px solid var(--line-2)}
.you-facts p:first-child{border-top:0}
.you-facts span{color:var(--ink-2)}
.you-from{margin-top:6px}
.sheet-wrap[data-kind="setup"]{align-items:stretch}
.sheet-wrap[data-kind="setup"] .sheet{max-width:none;max-height:none;height:100%;border-radius:0;border:0;padding:0;transform:none}
.sheet-wrap[data-kind="setup"] .grab,.sheet-wrap[data-kind="review"] .grab{display:none}
.su-go{min-height:56px;border-radius:28px;font-size:calc(17px*var(--ts))}
.sheet-wrap[data-kind="review"] .sheet{max-height:100%;height:100%;border-radius:0;max-width:640px}
@media (min-width:720px){.sheet-wrap[data-kind="review"]{align-items:center}.sheet-wrap[data-kind="review"] .sheet{height:auto;max-height:92%;border-radius:28px}}
body.has-tabs .top .search-btn{border-radius:50%;background:var(--surface);border:1px solid var(--line);box-shadow:0 4px 14px -6px rgba(0,0,0,.28)}
body:has(#sheet-wrap.on) #toast{z-index:72;bottom:calc(18px + env(safe-area-inset-bottom,0px))} /* an Undo raised from inside a sheet (You's photo) stays reachable */
.setup.is-lock{position:fixed;inset:0;z-index:90;max-width:none;margin:0;overflow-y:auto;isolation:isolate;background:#0B1624;color:#fff;padding:0 16px calc(24px + env(safe-area-inset-bottom,0px))}
.lock-art{position:fixed;inset:0;z-index:-1}
.lock-art svg,.lock-ghost svg{display:block;width:100%;height:100%}
.lock-art::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.32) 40%,rgba(0,0,0,.24) 60%,rgba(0,0,0,.5))}
.setup.is-lock{--focus:#fff}
.td-hero .greet.named{top:auto;bottom:calc(100% - 138px);font-size:calc(30px*var(--ts));display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.setup.is-lock .lock{position:relative;max-width:360px;margin:0 auto;padding-top:calc(max(16px,env(safe-area-inset-top,0px)) + 20px)}
.setup.is-lock .lock-ic{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.14);color:#fff;box-shadow:none;margin-bottom:6px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.setup.is-lock .lock-ic svg{width:22px;height:22px}
.lock-time{font-family:var(--f-display);font-size:calc(68px*var(--ts));font-weight:800;line-height:1;letter-spacing:-.02em;color:#fff!important;margin:6px 0 2px!important;min-height:68px;text-shadow:0 2px 18px rgba(0,0,0,.3)}
.setup.is-lock p,.setup.is-lock .lbl-s,.setup.is-lock .fine{color:rgba(255,255,255,.9)}
.setup.is-lock .lock-date{font-weight:700;margin:0 0 22px}
.setup.is-lock .lock h2{color:#fff;font-size:calc(19px*var(--ts));font-weight:800}
.setup.is-lock .pin-dots i{width:14px;height:14px;border-color:rgba(255,255,255,.85)}
.setup.is-lock .pin-dots i.on{background:#fff;border-color:#fff}
.setup.is-lock .pin-dots.shake{animation:lock-shake .35s linear}
@keyframes lock-shake{0%{transform:translateX(0)}14%{transform:translateX(-12px)}28%{transform:translateX(12px)}42%{transform:translateX(-8px)}57%{transform:translateX(6px)}71%,100%{transform:translateX(0)}}
.setup.is-lock .pin-msg{color:#FFD9A0;font-weight:700}
.setup.is-lock .pin-pad{grid-template-columns:repeat(3,72px);gap:16px 24px}
.setup.is-lock .pin-k{width:72px;height:72px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:calc(30px*var(--ts));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.setup.is-lock .pin-k:active{background:rgba(255,255,255,.3)}
.setup.is-lock .pin-k.fn{background:none;border-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.setup.is-lock .pin-k.ok{background:#fff;border-color:#fff;color:#0B1624}
.setup.is-lock .forgot>summary{color:#fff;min-height:44px;display:grid;place-items:center}
.setup.is-lock .forgot[open]{background:rgba(5,11,18,.72);border-radius:18px;padding:4px 14px 14px}
.setup.is-lock .forgot .confirm{background:none;border-color:rgba(255,255,255,.25);color:#fff}
.setup.is-lock .forgot .btn.ghost{color:#fff;border-color:rgba(255,255,255,.5);background:none}
@media (max-height:720px){.setup.is-lock .lock{padding-top:calc(max(8px,env(safe-area-inset-top,0px)) + 4px)}.setup.is-lock .lock-ic{display:none}.lock-time{font-size:calc(52px*var(--ts));min-height:52px}.setup.is-lock .lock-date{margin-bottom:8px}
  .setup.is-lock .pin-dots{margin:10px 0 2px}.setup.is-lock .pin-pad{grid-template-columns:repeat(3,64px);gap:10px 22px;margin-bottom:4px}.setup.is-lock .pin-k{width:64px;height:64px;font-size:calc(27px*var(--ts))}}
.lock-ghost{position:fixed;inset:0;z-index:95;pointer-events:none;transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .55s}
.lock-ghost.go{transform:translateY(-36px);opacity:0}
#cheer{inset:0;top:0;place-items:center;padding:16px}
.cheer-card{max-width:320px;border:0;border-radius:28px;padding:28px 22px 20px;box-shadow:0 30px 80px -20px rgba(0,0,0,.55),0 0 0 1px var(--line);animation:cheer-pop .5s cubic-bezier(.2,1.5,.4,1) both}
@keyframes cheer-pop{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:none}}
.cheer-ic{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:color-mix(in srgb,var(--c) 22%,var(--surface));color:var(--c);box-shadow:0 0 0 8px color-mix(in srgb,var(--c) 12%,transparent)}
.cheer-ic svg{width:34px;height:34px}
.cheer-card b{font-size:calc(28px*var(--ts));line-height:1.1}
.cheer-card small{font-size:calc(15px*var(--ts));margin-top:8px;line-height:1.45}
.cheer-ok{width:100%;min-height:50px;margin-top:18px;border-radius:25px}
.cheer-burst{top:64px}
.cheer-burst i{width:9px;height:9px;animation-duration:.9s}
.alert:has([data-act="snooze-backup"]){border-radius:22px;padding:16px;background:color-mix(in srgb,var(--warn) 9%,var(--surface));border-color:color-mix(in srgb,var(--warn) 30%,var(--line))}
.alert:has([data-act="snooze-backup"]) b{font-size:calc(16px*var(--ts))}
.today-alerts .alert:has([data-act="snooze-backup"]) small{display:block}
.alert:has([data-act="snooze-backup"]) .btns{width:100%;display:flex;gap:10px}
.alert:has([data-act="snooze-backup"]) .btn{flex:1;min-height:44px}
/* ADR-030 amendment 1 (RD-29 to RD-31): motion copies, page rise-in, the goal glow, tappable warnings, Search's ring, You's icons and
   the morning summary. Every movement here is dropped by the reduced-motion rule above */
.mv-ghost{position:fixed;z-index:65;pointer-events:none;overflow:hidden;box-shadow:0 10px 30px -14px rgba(0,0,0,.35)}
.mv-ghost>*{margin:0!important;width:100%;height:100%;list-style:none}
.mv-ghost.tick-out{animation:mv-drop .42s cubic-bezier(.4,0,.6,1) forwards}
.mv-ghost.tick-out .td-tick>span{background:var(--good);border-color:var(--good);color:#fff;animation:mv-pop .28s cubic-bezier(.2,1.6,.4,1)}
@keyframes mv-drop{0%{opacity:1;transform:none}35%{opacity:1}100%{opacity:0;transform:translateY(12px) scale(.98)}}
@keyframes mv-pop{0%{transform:scale(.8)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
.mv-ghost .td-row-in{transition:transform .24s cubic-bezier(.4,0,1,1),opacity .24s}
.mv-ghost.slide-r .td-row-in{transform:translateX(115%)!important;opacity:.4}
.mv-ghost.mv-card{z-index:66;transition:left .33s cubic-bezier(.2,.8,.2,1),top .33s cubic-bezier(.2,.8,.2,1),width .33s cubic-bezier(.2,.8,.2,1),height .33s cubic-bezier(.2,.8,.2,1),border-radius .33s,opacity .3s}
.mv-ghost.mv-card>*{transition:opacity .15s}
.mv-ghost.mv-card.grow{left:0!important;top:0!important;width:100vw!important;height:100vh!important;border-radius:0!important}
.mv-ghost.mv-card.grow>*{opacity:0}
.mv-ghost.mv-card.fade{opacity:0}
@keyframes page-in{from{opacity:0;transform:translateY(28px) scale(.97)}to{opacity:1;transform:none}}
.search:not([hidden]){animation:page-in .34s cubic-bezier(.2,.8,.2,1)}
.gp{position:relative;isolation:isolate}
.gp::before{content:"";position:absolute;left:-16px;right:-16px;top:-56px;height:260px;z-index:-1;pointer-events:none;background:radial-gradient(70% 100% at 50% 0,color-mix(in srgb,var(--c) 26%,transparent),transparent 72%)}
.td-risk-top{position:relative}
.td-risk-top>svg{flex:none;align-self:center;width:18px;height:18px;margin-left:auto;opacity:.8}
.td-risk-go{position:absolute;inset:-6px;z-index:1;border:0;padding:0;background:none;border-radius:14px;cursor:pointer}
.td-risk-list li{position:relative}
.td-risk-list li .td-fix{position:relative;z-index:2}
.td-risk-list .td-risk-go{inset:0;border-radius:0}
.td-bar .td-bar-search{position:absolute;right:16px;top:max(8px,env(safe-area-inset-top,0px));width:44px;min-height:44px;height:44px;border-radius:50%;display:grid;place-items:center;padding:0;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22)}
.td-bar .td-bar-search svg{width:20px;height:20px}
.btn.link.mt-back{display:flex;align-items:center;justify-self:start;align-self:start;width:max-content;min-height:44px;padding:0 4px;margin:0 auto 4px 0;font-weight:800;color:var(--good-ink)}
.sheet-wrap[data-kind="setup"] #sheet-body{min-height:100%;display:flex;flex-direction:column}
.found{outline:3px solid var(--good);outline-offset:3px;border-radius:14px;animation:found 2.8s ease-out}
@keyframes found{0%,30%{box-shadow:0 0 0 8px color-mix(in srgb,var(--good) 30%,transparent)}100%{box-shadow:0 0 0 0 transparent}}
.set-row .set-ic{flex:none;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 16%,transparent);color:var(--c)}
.set-row .set-ic svg{width:19px;height:19px}
.theme-seg button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.theme-seg button svg{width:16px;height:16px}
.sheet-wrap[data-kind="setup"] .sheet{background:var(--ground)}
.msum{position:fixed;left:12px;right:12px;top:calc(64px + env(safe-area-inset-top,0px));z-index:68;display:flex;align-items:stretch;max-width:520px;margin:0 auto;border-radius:20px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 18px 44px -18px rgba(0,0,0,.5);transform:translateY(-130%);transition:transform .5s cubic-bezier(.2,.9,.25,1.08)}
.msum.on{transform:none}
.msum-in{flex:1;min-width:0;display:flex;gap:12px;align-items:flex-start;padding:12px 4px 12px 14px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.msum-in img{flex:none;width:36px;height:36px;border-radius:10px}
.msum-t{min-width:0;display:grid;gap:2px}
.msum-k{display:flex;justify-content:space-between;gap:8px;font-size:calc(12px*var(--ts));color:var(--ink-2)}
.msum-k b{font-weight:700}
.msum-h{font-size:calc(15px*var(--ts));font-weight:800}
.msum-b{font-size:calc(13.5px*var(--ts));color:var(--ink-2)}
.msum-x{flex:none;width:44px;min-height:44px;border:0;background:none;color:var(--ink-2);display:grid;place-items:center;cursor:pointer}
.msum-x svg{width:14px;height:14px}
/* ADR-030 amendment 2 (RD-32, RD-33): bars filling from empty and figures counting up; the Motion choice */
.bars-in .bar>i,.bars-in .loan .bar>i{animation:bar-fill .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes bar-fill{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.counting{position:relative;color:transparent!important}
.counting::after{content:attr(data-shown);content:attr(data-shown) / "";position:absolute;left:0;top:0;color:var(--ink);white-space:nowrap}
.counting.count-r::after{left:auto;right:0}
.counting.cneg::after{color:var(--warn)}
.motion-seg{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0 4px}
.text-seg{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0 16px}.text-seg button{min-height:44px;padding:4px 6px;line-height:1.2} /* ADR-077 */
/* ADR-077: what a bigger text size needs to reflow at 360 px wide. Only under data-textsize, so the phone's default size is untouched */
:root[data-textsize] .td-hero .greet{font-size:36px}:root[data-textsize] .td-hero .greet.named{font-size:30px} /* the greeting is display art at a fixed place, already larger than Largest */
:root[data-textsize] .td-gl small,:root[data-textsize] .td-gl b,:root[data-textsize] .tx .lbl small,:root[data-textsize] .td-life-card>.fine,:root[data-textsize] .td-bar b,:root[data-textsize] .td-bar small{white-space:normal;overflow-wrap:anywhere}
:root[data-textsize] .wi-table th+th,:root[data-textsize] .wi-table td+td{padding-left:10px}
:root[data-textsize] .bl-d{width:auto;min-width:40px;line-height:1.2}
:root[data-textsize] .set-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.theme-seg button,.motion-seg button{min-height:44px}
/* ADR-030 amendment 3 (RD-36): a smaller At risk card, at the owner's request ("the risk is too big"): a small icon, a one-line kicker, a
   shorter heading, and the two buttons side by side (each still at least 44px tall), "Remind me tomorrow" as a quiet text button */
.td-risk-card{padding:12px 14px;border-radius:18px}
.td-risk-top{gap:12px;align-items:center}
.td-risk-ic{width:32px;height:32px;border-radius:10px}
.td-risk-ic svg{width:18px;height:18px}
.td-risk .td-kick{font-size:calc(11px*var(--ts))}
.td .td-risk-head{font-size:calc(16px*var(--ts));line-height:1.25;margin:1px 0 2px}
.td-risk-sub{font-size:calc(13px*var(--ts))}
.td-risk-card>.td-fixes{margin:8px 0 0;gap:4px;flex-wrap:wrap}
.td-risk-card>.td-fixes .td-fix{padding:0 14px;font-size:calc(13.5px*var(--ts))}
.td-risk-card>.td-fixes .td-fix:not(.main){border-color:transparent;padding:0 10px;color:var(--ink-2)}
.td-risk-card>.td-fixes .td-fix.got{border-color:color-mix(in srgb,var(--warn) 45%,transparent);padding:0 16px;color:var(--ink)}
/* RD-40, RD-41: Log money and Change the numbers inside the sheet (the sheet's own title replaces their headings) */
#sheet-host>.panel{margin:0;padding:0;border:0;background:none;box-shadow:none}
#sheet-host #settings-d>summary,#sheet-host #h-log{display:none}
#sheet-host #logmoney .panel-h{justify-content:flex-start}
/* RD-42: the Main account panel is empty once a balance is set; Check with bank sits under Log money in the sheet */
#wallet:empty{display:none}
.mt-left{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:12px 4px 0;font-size:calc(14px*var(--ts));color:var(--ink-2)}
.mt-left b{font-size:calc(16px*var(--ts));color:var(--ink)}
.mt-left b.neg{color:var(--warn-ink,var(--warn))}
.lm-bank{margin-top:18px;padding-top:14px;border-top:1px solid var(--line-2);display:grid;gap:6px;justify-items:start}
/* ADR-030 amendment 4 (RD-46, owner 2026-10-10: "The cards are too big reduce their size"): How life is going on Today, compact. The same
   words and figures, smaller: tighter padding, a two-line title, a smaller step count and pill, a thinner step bar, a one-line next step,
   and a smaller balance figure and chart on the Money card */
.td-cards{gap:8px}
.td-life-card{gap:6px;padding:12px 14px;border-radius:18px}
.td-lc-h{gap:8px}
.td-lc-h .td-tile{width:30px;height:30px;border-radius:10px}
.td-lc-h .td-tile svg{width:17px;height:17px}
.td-lc-h b{font-size:calc(15px*var(--ts));line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.td-life-card .td-pill{min-height:22px;padding:0 8px;font-size:calc(11.5px*var(--ts));gap:5px}
.td-life-card>.fine{margin:0;font-size:calc(13px*var(--ts));line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ADR-036 (money only): the Bills tab, the Baby shopping list and the money Timeline */
.page-sub:empty{display:none}
.bl-tiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.bl-tile{padding:14px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px;min-width:0}
.bl-tile span{font-size:calc(13px*var(--ts));color:var(--ink-2)}
.bl-tile b{font-family:var(--f-display);font-size:calc(28px*var(--ts));font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.bl-short{display:flex;align-items:flex-start;gap:12px;margin-top:10px;padding:14px 16px;border-radius:20px;border:1px solid color-mix(in srgb,var(--warn) 38%,transparent);background:var(--warn-bg);font-size:calc(15px*var(--ts));font-weight:700;line-height:1.35}
.bl-short svg{flex:none;width:20px;height:20px;color:var(--warn)}
.bl-gh,.ba-gh{font-size:calc(12px*var(--ts));font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding:18px 4px 6px;margin:0}
.bl-card,.tlm{list-style:none;margin:0;padding:0;border-radius:22px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.bl-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:6px 0 6px 14px;transition:background-color .5s}
.bl-row+.bl-row,.tlm-row+.tlm-row{border-top:1px solid var(--line-2)}
.bl-row.hi{background:var(--warn-bg)}
.bl-d{flex:none;width:40px;display:flex;flex-direction:column;line-height:1.1}
.bl-d small{font-size:calc(11px*var(--ts));font-weight:700;text-transform:uppercase;color:var(--ink-3)}
.bl-d b{font-family:var(--f-display);font-size:calc(20px*var(--ts));font-weight:800}
.bl-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.bl-t b{font-size:calc(16px*var(--ts));font-weight:700;line-height:1.25;overflow-wrap:break-word}
.bl-t small{font-size:calc(13px*var(--ts));color:var(--ink-3)}
.bl-t small.warn{color:var(--warn-ink,var(--warn));font-weight:700}
.bl-t small.good{color:var(--good)}
.bl-edit{border:0;background:none;color:inherit;font:inherit;text-align:left;padding:6px 0;cursor:pointer;min-height:44px;justify-content:center}
.bl-amt{flex:none;font-family:var(--f-display);font-size:calc(17px*var(--ts));font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.bl-row.paid .bl-t b{color:var(--ink-3);text-decoration:line-through}
.bl-row.paid .bl-amt{color:var(--ink-3)}
.bl-amt-btn{position:relative;border:0;background:none;color:inherit;padding:0;cursor:pointer;text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:4px}
.bl-amt-btn::after{content:"";position:absolute;inset:-14px -6px}
.bl-tick{flex:none;width:56px;height:64px;border:0;background:none;display:grid;place-items:center;cursor:pointer;color:transparent}
.bl-tick>span{width:28px;height:28px;border-radius:14px;border:2px solid var(--line);box-sizing:border-box;display:grid;place-items:center;transition:background-color .2s,border-color .2s}
.bl-tick svg{width:16px;height:16px}
.bl-tick[aria-checked="true"]>span{background:var(--good);border-color:var(--good);color:var(--btn-ink)}
.bl-foot{padding:14px 4px 0}
.ba-row{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 16px}
.ba-row+.ba-row{border-top:1px solid var(--line-2)}
.ba-n,.ba-amt{display:flex;flex-direction:column;gap:2px;min-width:0}
.ba-n{flex:1}.ba-n b{font-size:calc(16px*var(--ts));font-weight:700;line-height:1.25;overflow-wrap:break-word}
.ba-n small,.ba-amt small{font-size:calc(13px*var(--ts));color:var(--ink-3)}
.ba-amt{flex:none;text-align:right}.ba-amt b{font-family:var(--f-display);font-size:calc(16px*var(--ts));font-weight:800;white-space:nowrap}
.ba-total{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin:0;padding:12px 4px 0;font-size:calc(15px*var(--ts))}
.ba-total b{font-family:var(--f-display);font-weight:800}
.tlm-row>button,.tlm-row>div{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:6px 14px;border:0;background:none;color:inherit;font:inherit;text-align:left}
.tlm-row>button{cursor:pointer}
.tlm-row .bl-d small+small{text-transform:none;font-weight:400}
.tlm-row>button>svg{flex:none;width:18px;height:18px;color:var(--ink-3)}
.bp-head{position:relative;display:grid;gap:8px;justify-items:start;padding:8px 0 16px}
.bp-head::before{content:"";position:absolute;inset:-40px -16px auto;height:200px;background:radial-gradient(60% 80% at 20% 0,color-mix(in srgb,var(--c) 30%,transparent),transparent);pointer-events:none;z-index:-1}
.bp-head h1{font-family:var(--f-display);font-size:calc(32px*var(--ts));font-weight:800;letter-spacing:-.02em;line-height:1.1;margin:0}
.bp-story{font-size:calc(15px*var(--ts));color:var(--ink-2);margin:0}
.bp-next{display:flex;align-items:center;gap:12px;padding:14px 16px;margin-bottom:16px;border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}
.bp-next .rec-t{flex:1;min-width:0}
.bp-next .btn{flex:none;min-height:44px;white-space:nowrap}
/* ADR-091 part 2: the baby keepsake */
.kp-ask{display:grid;gap:10px;padding:14px 16px;border-radius:22px;background:var(--surface);border:1px solid color-mix(in srgb,var(--baby) 30%,transparent)}
.bp-head ~ .kp-ask{margin-bottom:16px}
.kp-early-row{margin:-8px 0 12px}
.kp-ask .btns,.kp-opts .btns,.kp-edit .btns{display:flex;flex-wrap:wrap;gap:8px}
.td-kp .td-fixes{margin-left:0}.td-kp .td-fix{border-color:var(--line-strong)}.td-kp .td-fix.main{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.kp-story h2{margin:0 0 12px;font-family:var(--f-display);font-size:calc(22px*var(--ts));line-height:1.2}
.kp-story p{margin:0 0 10px;font-size:calc(16px*var(--ts));line-height:1.5}
.kp-story h3{margin:18px 0 6px;font-size:calc(15px*var(--ts))}
.kp-tot{margin:0}.kp-tot div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line-2)}.kp-tot dt{color:var(--ink-2)}.kp-tot dd{margin:0;font-weight:700}
.kp-edit{display:grid;gap:10px}.kp-edit h2{margin:0}
.kp-opts .fine{margin:10px 0 0}
.kp-opts [aria-pressed=true]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
/* ADR-036 addendum: the Money balance chart, the percentages and the chart motion */
.wf-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.wf-list li{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:8px 0;border-top:1px solid var(--line-2);font-size:calc(14px*var(--ts))}
.wf-list li span{color:var(--ink-2);text-align:right}
.wf-loans{flex-wrap:wrap}
.rv-table td small{display:block;color:var(--ink-3)}
.loan-int{font-size:calc(13px*var(--ts));color:var(--ink-2);margin-top:2px}
.loan-int b{color:var(--ink)}
.wi{display:grid;gap:10px}
.wi-row{display:flex;justify-content:space-between;align-items:baseline;font-size:calc(14px*var(--ts));color:var(--ink-2)}
.wi-row b{font-family:var(--f-display);font-size:calc(18px*var(--ts));color:var(--ink)}
.wi input[type=range]{width:100%;accent-color:var(--good);min-height:44px}
.wi-table{width:100%;border-collapse:collapse;font-size:calc(13.5px*var(--ts))}
.wi-table th{text-align:right;font-weight:700;color:var(--ink-3);font-size:calc(12px*var(--ts));letter-spacing:.04em;text-transform:uppercase;padding:4px 0}
.wi-table th:first-child,.wi-table td:first-child{text-align:left}
.wi-table td{padding:7px 0;border-top:1px solid var(--line-2);text-align:right;vertical-align:top}
.wi-table td:first-child{font-weight:700;color:var(--ink)}
.wi-table td small{display:block;color:var(--ink-3)}
.wi-table .sooner{color:var(--good);font-weight:700}
.wi-table .later{color:var(--warn);font-weight:700}
.pot-foot .late{color:var(--warn);font-weight:700}
.wi-pd{border:0;margin:0;padding:0;min-width:0} /* ADR-073: time off in the what-if, and "Make it on time" */
.wi-pd legend{padding:0;margin-bottom:6px;font-size:calc(14px*var(--ts));font-weight:700;color:var(--ink-2)}
.wi-pd-note{margin:8px 0 0;font-size:calc(13px*var(--ts));color:var(--ink-2)}
.wi-mot{display:grid;gap:8px;margin-top:6px;padding-top:12px;border-top:1px solid var(--line-2)}
.wi-mot h4{margin:0;font-size:calc(15px*var(--ts))}
.wi-mot .fine{margin:0}
.mot-res{margin:4px 0 0;font-size:calc(14px*var(--ts))}
.em-cover{margin-top:8px} /* ADR-075: how long the Emergency pot would last */
.em-cover small{display:block;margin-top:4px;font-size:calc(12.5px*var(--ts));color:var(--ink-3)}
.em-cover .btns{margin-top:8px}
.em-prev{margin-top:10px;padding-top:10px;border-top:1px solid var(--line-2);display:grid;gap:8px}
.debt-sum{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line-2)} /* ADR-066: the debt-free date, the interest and the chart of the total owed */
.debt-sum p{margin:0 0 4px;font-size:calc(14px*var(--ts));color:var(--ink-2)}
.debt-sum .debt-h{font-size:calc(15.5px*var(--ts));color:var(--ink)}
.debt-sum b{color:var(--ink)}
.debt-bc{margin-top:10px}
.debt-bc .bc-plot{height:96px}
.mc{margin-top:12px;--mc:var(--good)} /* the chart's colour: the lines, the fill, Today and the dots */
.mc-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:22px;background:var(--surface-2)}
.mc-seg button{height:38px;border:0;border-radius:18px;background:transparent;color:var(--ink-2);font:inherit;font-size:calc(14px*var(--ts));font-weight:700;cursor:pointer}
.mc-seg button[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink)}
.mc-plot{position:relative;height:220px;margin-top:40px}
.mc-g{position:absolute;left:46px;right:8px;height:0;border-top:1px solid var(--line-2)}
.mc-g.zero{border-top-color:var(--warn)}
.mc-g span{position:absolute;right:calc(100% + 8px);top:-8px;text-align:right;white-space:nowrap;font-size:calc(11.5px*var(--ts));line-height:16px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.mc-g.lo span{top:-17px} /* the lowest £ label sits just above its line, clear of the dates under the plot */
.mc-in{position:absolute;left:46px;right:8px;top:0;bottom:0}
.mc-draw{position:absolute;left:0;right:-8px;top:-20px;bottom:0}
.mc-draw svg{position:absolute;left:0;right:8px;top:20px;bottom:0;width:calc(100% - 8px);height:calc(100% - 20px);overflow:visible}
.mc-line{fill:none;stroke:var(--mc);stroke-width:2.75;stroke-linecap:round;stroke-linejoin:round}
.mc-line.dash{stroke-dasharray:6 5}
.mc-fill{fill:url(#mc-gr);stroke:none}
.mc-fill.dash{opacity:.45}
.mc-today{position:absolute;top:0;bottom:0;width:0;border-left:1.5px dashed color-mix(in srgb,var(--mc) 65%,transparent)}
.mc-pin{position:absolute;top:0;bottom:0;width:0;--c:var(--ink-3)}
.mc-pin.tax{--c:var(--tax)}.mc-pin.baby{--c:var(--baby)}.mc-pin.safe{--c:var(--safe)}.mc-pin.mortgage{--c:var(--mortgage)}.mc-pin.goal{--c:var(--goal)}.mc-pin.loan{--c:var(--c-bills)}
.mc-pin i{position:absolute;top:0;bottom:0;border-left:1.5px dotted color-mix(in srgb,var(--c) 70%,transparent)}
.mc-pin span{position:absolute;top:calc(6px + var(--row) * 30px);left:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;padding:3px 7px;border-radius:7px;background:color-mix(in srgb,var(--c) 14%,var(--surface));border:1px solid color-mix(in srgb,var(--c) 45%,transparent);color:var(--ink);font-size:calc(10.5px*var(--ts));font-weight:800;line-height:1.15;white-space:nowrap}
.mc-pin span small{font-weight:600;color:var(--ink-2);font-size:calc(10px*var(--ts))}
.mc-pin:first-child span,.mc-pin[style*="left:0"] span{transform:none}
.mc-today span{position:absolute;bottom:calc(100% + 8px);left:0;transform:translateX(-50%);height:24px;padding:0 10px;border-radius:8px;background:var(--mc);color:var(--btn-ink);font-size:calc(12px*var(--ts));font-weight:800;line-height:24px;white-space:nowrap}
.mc-now{position:absolute;left:0;width:12px;height:12px;margin:-6px 0 0 -6.75px;border-radius:50%;background:var(--mc);box-shadow:0 0 0 2.5px var(--surface);box-sizing:border-box} /* where the lines meet, today */
.mc-dot{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;box-sizing:border-box;box-shadow:0 0 0 2.5px var(--surface)}
.mc-dot.bill{background:var(--surface);border:2.5px solid var(--mc)}
.mc-dot.pay{background:var(--mc)}
.mc-co{position:absolute;z-index:1;padding:6px 10px;border-radius:10px;background:var(--surface);border:1px solid var(--line-2);box-shadow:0 4px 14px rgba(0,0,0,.12);display:flex;flex-direction:column;white-space:nowrap;--tx:-50%;--ty:12px;--px:calc(50% - 5px);transform:translate(var(--tx),var(--ty))}
.mc-co.up{--ty:calc(-100% - 12px)}
.mc-co.h-r{--tx:-14px;--px:9px}
.mc-co.h-l{--tx:calc(-100% + 14px);--px:calc(100% - 19px)}
.mc-co::after{content:"";position:absolute;left:var(--px);bottom:-6px;width:10px;height:10px;background:inherit;border:inherit;border-width:0 1px 1px 0;transform:rotate(45deg)} /* the pointer, towards the dot */
.mc-co.down::after{bottom:auto;top:-6px;transform:rotate(-135deg)}
.mc-co.side-l{--tx:calc(-100% - 12px);--ty:-50%}
.mc-co.side-r{--tx:12px;--ty:-50%}
.mc-co.side-l::after{left:auto;right:-6px;bottom:auto;top:calc(50% - 5px);transform:rotate(-45deg)}
.mc-co.side-r::after{left:-6px;bottom:auto;top:calc(50% - 5px);transform:rotate(135deg)}
.mc-co.moved::after{display:none} /* a label moved away from its dot has no pointer */
.mc-co small{font-size:calc(11.5px*var(--ts));color:var(--ink-2)}
.mc-co b{font-family:var(--f-display);font-size:calc(16px*var(--ts));font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink)}
.mc-co b.warn{color:var(--warn)}
.mc-co.pay{padding:4px 10px;background:var(--good-bg);border-color:transparent;box-shadow:none}
.mc-co.pay small{font-size:calc(12.5px*var(--ts));font-weight:800;color:var(--good-ink)}
/* ADR-286 (BRIEF_U): the lowest day (a ring dot and "amount · date") and a tick on the x-axis on each payday */
.mc-dot.low{background:var(--surface);border:2.5px solid var(--ink-2)}
.mc-co.low{padding:4px 10px}
.mc-co.low small{font-size:calc(12px*var(--ts));font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.mc-ptk{position:absolute;bottom:0;width:2px;height:8px;margin-left:-1px;border-radius:1px;background:var(--mc);pointer-events:none}
.mc-x{position:relative;height:18px;margin:8px 8px 0 46px;font-size:calc(11.5px*var(--ts));color:var(--ink-3)}
.mc-x span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.mc-x span.last{transform:translateX(-100%)}
.mc-key{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin:10px 0 0;font-size:calc(12.5px*var(--ts));color:var(--ink-2)}
.mc-key span{display:inline-flex;align-items:center;gap:6px}
.mc-key i{display:inline-block;width:18px;border-top:2.75px solid var(--mc)}
.mc-key i.dash{border-top-style:dashed}
@keyframes mc-clip{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes mc-fade{from{opacity:0}to{opacity:1}}
@keyframes mc-rise{from{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes mc-pop{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}
.mc-in-play .mc-draw{animation:mc-clip 1.2s cubic-bezier(.3,.7,.2,1) both}
.mc-in-play .mc-today{animation:mc-fade .4s .35s both}
.mc-in-play .mc-today span{animation:mc-rise .45s .35s cubic-bezier(.34,1.56,.64,1) both}
.mc-in-play .mc-now{animation:mc-pop .5s .35s cubic-bezier(.34,1.56,.64,1) both}
.mc-in-play .mc-dot.bill{animation:mc-pop .5s .7s cubic-bezier(.34,1.56,.64,1) both}
.mc-in-play .mc-co.bill{animation:mc-fade .4s .7s both}
.mc-in-play .mc-dot.pay{animation:mc-pop .5s 1.05s cubic-bezier(.34,1.56,.64,1) both}
.mc-in-play .mc-co.pay{animation:mc-fade .4s 1.05s both}
@media (prefers-reduced-motion: reduce){html[data-motion="follow"] .mc-in-play *{animation:none!important;transition:none!important}} /* ADR-238 (item 35) */
.mt-bal-h .eyebrow{white-space:nowrap;flex:none}
.mt-bal-h .td-pill{min-width:0;line-height:1.2;text-align:right}
.loan-barrow{display:flex;align-items:center;gap:10px}
.loan-barrow .bar{flex:1;min-width:0}
.loan-pct{flex:none;font-size:calc(12.5px*var(--ts));font-weight:700;color:var(--good);font-variant-numeric:tabular-nums}
.legend .lg .amt{min-width:56px;text-align:right}
body.has-tabs #main{padding-bottom:calc(176px + env(safe-area-inset-bottom,0px))} /* the + button and the tab bar never cover the last thing on a page */
.bl-x{flex:none;width:44px;height:64px;border:0;background:none;display:grid;place-items:center;color:var(--ink-3);cursor:pointer}
.bl-x svg{width:18px;height:18px}
/* ADR-132: the Work tab. Each check says OK, Close or Over in words; the colour only backs the word up */
.work .panel{margin-bottom:14px}
.wk-checks{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
.wk-checks li{display:flex;gap:10px;align-items:baseline;line-height:1.45;min-width:0}
.wk-checks li span{min-width:0;overflow-wrap:anywhere}
.wk-checks li b{flex:none;min-width:52px;padding:2px 8px;border-radius:999px;font-size:calc(12px*var(--ts));text-align:center;background:var(--surface-2)}
.wk-checks .wk-close b{background:color-mix(in srgb,var(--warn) 24%,transparent)}
.wk-checks .wk-over b{background:color-mix(in srgb,var(--danger) 24%,transparent)}
.wk-shifts{list-style:none;margin:6px 0;padding:0;display:grid;gap:8px}
.wk-shift{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;align-items:center;min-width:0}
.wk-shift > span:first-child{min-width:0;overflow-wrap:anywhere}
.wk-week{margin-bottom:12px}
.wk-week h3{margin:0}
.wk-est b{font-size:calc(16px*var(--ts))}
.td-work{margin:0 0 10px}
.td-work .btn.link{text-align:left;white-space:normal}
/* ADR-367 (AB-6): the Work card, first on Today; one button that opens Work, a line a figure */
.td-wc{display:block;width:100%;margin:8px 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font:inherit;text-align:left;cursor:pointer}
.td-wc-h{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}
.td-wc-kick{font-size:.85rem;color:var(--ink-2)}
.td-wc-l{display:flex;justify-content:space-between;gap:12px;padding:3px 0;font-size:.95rem}
.td-wc-l b{text-align:right}
.td-wc-l b.td-wc-ct{font-weight:600;color:var(--ink-2)}

/* ADR-198 (PHASE_8_PLAN, the approved design of 2026-11-07): the look. Dark first: ground #0D1110, card #161B19, raised #1C2220, text #ECF1EE,
   muted #9AA6A0, green #7CE3A1, amber #F2B85B (warnings, near limits), blue #9DB7FF (savings, targets), grey #C9D2CE. The app keeps its own fonts
   (no web font, CSP unchanged). Rounded cards (20 to 24px), 44px touch targets. Motion: screens rise in, sheets slide up, bars grow, rings draw,
   the toast drops in at the top; all of it off under prefers-reduced-motion */
:root[data-theme="dark"]{
  color-scheme:dark;--ground:#0D1110;--surface:#161B19;--surface-2:#1C2220;--ink:#ECF1EE;--ink-2:#9AA6A0;--ink-3:#8E9A94;--line:#262E2B;--line-2:#1E2522;
  --good:#7CE3A1;--good-bg:#12241B;--warn:#F2B85B;--warn-bg:#2C2412;--info:#9DB7FF;--info-bg:#1C2540;--tax:#9DB7FF;--goal:#9DB7FF;--safe:#7CE3A1;
  --btn:#7CE3A1;--btn-ink:#0D1110;--accent:#7CE3A1;--nav-accent:#7CE3A1;--nav-on:#1C2220;--chart-line:#7CE3A1;--focus:#9DB7FF;--hero-bg:#12201A;
  --toast-bg:#ECF1EE;--toast-ink:#0D1110;--toast-act:#1B8A4B;--warn-ink:#F2B85B;--good-ink:#7CE3A1;--grey:#C9D2CE;--raised:#1C2220;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;--ground:#0D1110;--surface:#161B19;--surface-2:#1C2220;--ink:#ECF1EE;--ink-2:#9AA6A0;--ink-3:#8E9A94;--line:#262E2B;--line-2:#1E2522;
    --good:#7CE3A1;--good-bg:#12241B;--warn:#F2B85B;--warn-bg:#2C2412;--info:#9DB7FF;--info-bg:#1C2540;--tax:#9DB7FF;--goal:#9DB7FF;--safe:#7CE3A1;
    --btn:#7CE3A1;--btn-ink:#0D1110;--accent:#7CE3A1;--nav-accent:#7CE3A1;--nav-on:#1C2220;--chart-line:#7CE3A1;--focus:#9DB7FF;--hero-bg:#12201A;
    --toast-bg:#ECF1EE;--toast-ink:#0D1110;--toast-act:#1B8A4B;--warn-ink:#F2B85B;--good-ink:#7CE3A1;--grey:#C9D2CE;--raised:#1C2220;
  }
}
:root{--grey:#55625B;--raised:#F3F7F5;--r-card:22px;--r-tile:18px}
body{background:var(--ground)}
.card,.panel,.acct-card,.st-q,.td-glance{border-radius:var(--r-card)}
.btn,.icon-btn,.tablist [role=tab]{min-height:44px}
.icon-btn{min-width:44px;border-radius:22px;background:var(--surface);color:var(--grey);border:0}
.eye-btn[hidden]{display:none}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes sheetup{from{transform:translateY(100%)}to{transform:none}}
@keyframes grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes growx{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes draw{from{stroke-dasharray:0 315}}
@keyframes drop{from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:translateY(0)}} /* ADR-253: only down; it used to slide left by half its width and stay there (the toast is stretched across the top, not centred by a transform) */
@keyframes indet{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
.tab:not([hidden]){animation:rise .35s ease-out both}
.sheet{animation:sheetup .32s cubic-bezier(.2,.8,.2,1) both;border-radius:28px 28px 0 0}
.g-grow{transform-origin:bottom;animation:grow .55s cubic-bezier(.2,.8,.2,1) both}
.g-growx{transform-origin:left;animation:growx .7s cubic-bezier(.2,.8,.2,1) both}
.g-draw{animation:draw 1s cubic-bezier(.2,.8,.2,1) both}
#toast{top:calc(14px + env(safe-area-inset-top,0px));bottom:auto!important;border-radius:999px;background:var(--toast-bg);color:var(--toast-ink);font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.4)}
#toast:not([hidden]){animation:drop .3s cubic-bezier(.2,.8,.2,1) both}
#toast:not([hidden]) ~ .fab{transform:none!important}
.fab{background:var(--btn);color:var(--btn-ink);box-shadow:0 10px 30px rgba(124,227,161,.25)}
/* the + sheet (ADR-199): Read my card first and large, then Statement, Log money, Bill */
.add-card{display:flex;flex-direction:column;gap:12px;width:100%;padding:18px;border:0;border-radius:22px;background:linear-gradient(150deg,#1F4A35 0%,#173326 100%);color:#ECF1EE;text-align:left;margin-bottom:12px}
.add-card-r{display:flex;align-items:center;gap:16px}.add-card-ic{width:52px;height:52px;border-radius:16px;background:#7CE3A1;color:#0D1110;display:grid;place-items:center;flex:none}
.add-card-ic svg{width:28px;height:28px}.add-card b{font-size:calc(17px*var(--ts))}.add-card small{display:block;color:#A9C8B7;font-size:calc(12px*var(--ts))}
.add-card-bar{height:6px;border-radius:3px;background:#0F2219;overflow:hidden}.add-card-bar i{display:block;height:6px;width:40%;border-radius:3px;background:#7CE3A1;transform:translateX(-100%)}
.add-card[aria-busy=true] .add-card-bar i{animation:indet 1.1s ease-in-out infinite}
.add-grid.add-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (prefers-reduced-motion: reduce){html[data-motion="follow"] *,html[data-motion="follow"] *::before,html[data-motion="follow"] *::after{animation:none!important;transition:none!important}html[data-motion="follow"] .add-card-bar i{transform:none;width:100%;opacity:.5}} /* ADR-238 (item 35): was every visitor with a phone that asks for less motion, whatever Look said */
/* A2T (Today): its own styles go below this line */
/* ADR-200: Today to the approved design. The header is the date · week and the greeting (no picture); then the account, the things to do,
   three tiles, Worth a look (amber), Coming up (28 days sideways) and Your money (two rings) */
#today-hero.today-hero.td-hero{height:auto;min-height:44px;overflow:visible;border-radius:0;color:var(--ink);display:flex;flex-direction:column;gap:2px;padding:4px 4px 0;margin:0}
@media (max-width:719.98px){.today-hero.td-hero{margin:0;border-radius:0}}
.today-hero.td-hero::before,.today-hero.td-hero::after,.td-hero .hero-art,.td-hero .phase{display:none}
.td-hero .greet,.td-hero .greet-sub{position:static;color:var(--ink);text-shadow:none}
.td-hero .greet-sub{order:-1;min-height:20px;padding-right:156px;font-size:calc(13px*var(--ts));color:var(--ink-2)}
.td-hero .greet{font-size:calc(24px*var(--ts));font-weight:800}
@media (max-width:719.98px){body.has-tabs[data-screen="today"] .top .settings-btn{background:var(--surface);border:0;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--grey)}}
.td-bar{color:var(--ink)}.td-bar small{color:var(--ink-2)}
.a2t{gap:0}
.a2t>.td-note{margin:12px 0 0}
.a2t>*+*{margin-top:12px}
.a2t .td-glance,.a2t .td-risk{margin-top:12px}
.a2t .td-band{margin-top:20px}
.a2t h2{font-size:calc(18px*var(--ts))}
.a2t-hero{display:flex;flex-direction:column;gap:10px;width:100%;padding:20px;border:0;border-radius:24px;background:linear-gradient(160deg,color-mix(in srgb,var(--good) 22%,var(--surface)) 0%,var(--surface) 75%);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.a2t-hero-none{padding:20px;border-radius:24px;background:var(--surface);display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.a2t-hero-top,.a2t-hero-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;font-size:calc(12.5px*var(--ts));color:var(--ink-2)}
.a2t-hero-k{font-size:calc(13px*var(--ts));font-weight:600;color:var(--ink-2)}
.a2t-chip{display:inline-flex;align-items:center;gap:6px;min-width:0;padding:3px 9px;border-radius:999px;background:var(--surface-2);font-size:calc(12px*var(--ts));color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a2t-chip i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--good)}
.a2t-chip.old i{background:var(--warn)}.a2t-chip.old{color:var(--warn)}
.a2t-chip.blue{background:var(--info-bg);color:var(--info);font-weight:700}
.a2t-mt .a2t-chip{padding:3px 7px;font-size:calc(11px*var(--ts))}
.a2t-bal{font-family:var(--f-display);font-size:calc(42px*var(--ts));font-weight:800;line-height:1.05;letter-spacing:-.01em;margin:0;overflow-wrap:anywhere}
.a2t-bal.neg{color:var(--warn)}
.a2t-line{display:block;width:100%;height:52px;overflow:visible}
.a2t-stroke{fill:none;stroke:var(--good);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;animation:a2t-line 1.4s ease-out both}
.a2t-area{fill:var(--good);fill-opacity:.10;stroke:none}
/* ADR-286 (BRIEF_U): the 30-day line with its dates under it, its highest and lowest amounts at the side, the lowest day marked and the paydays ticked */
.a2t-chart{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:3px;width:100%}
.a2t-plot{position:relative;display:block;min-width:0}
.a2t-y{display:flex;flex-direction:column;justify-content:space-between;font-size:calc(11px*var(--ts));line-height:1.2;color:var(--ink-2);text-align:right;white-space:nowrap}
.a2t-x{grid-column:1;display:flex;justify-content:space-between;font-size:calc(11px*var(--ts));color:var(--ink-2)}
.a2t-ptk{fill:none;stroke:var(--ink-2);stroke-width:2}
.a2t-low-dot{position:absolute;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;box-sizing:border-box;background:var(--surface);border:2px solid var(--ink-2)}
.a2t-low{position:absolute;transform:translate(-50%,calc(-100% - 7px));padding:1px 6px;border-radius:6px;background:var(--surface);font-size:calc(11px*var(--ts));font-weight:700;line-height:1.3;color:var(--ink);white-space:nowrap}
.a2t-low.l{transform:translate(-6px,calc(-100% - 7px))}
.a2t-low.r{transform:translate(calc(-100% + 6px),calc(-100% - 7px))}
@keyframes a2t-line{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.a2t-hero-foot{justify-content:flex-start;gap:16px}.a2t-hero-foot .up{color:var(--good)}.a2t-hero-foot .down{color:var(--warn)}
.a2t-todo{padding:16px;border-radius:22px;background:var(--surface)}
.a2t .a2t-todo{margin-top:12px}
.a2t-todo .td-head{margin-bottom:4px}
.a2t-todo .td-card{margin:0;box-shadow:none;border-radius:0;background:none}
.a2t-todo .td-row{border-top:0}
.a2t-todo .td-row-in{background:var(--surface)}
.a2t-todo .td-tick{width:44px;min-height:52px}
.a2t-todo .td-tick>span{width:24px;height:24px;border-color:var(--ink-3)}
.a2t-todo .td-open{min-height:52px;padding:6px 0 6px 8px}
.a2t-todo .td-t b{font-size:calc(15px*var(--ts));font-weight:600}
.a2t-todo .td-t small{font-size:calc(12px*var(--ts))}
.a2t-todo .td-done{margin-top:0}
.a2t-todo .td-done-in{opacity:1;color:var(--ink-2);padding:0;gap:0}
.a2t-todo .td-done-in .td-check{width:24px;height:24px;margin:0 10px;border:2px solid var(--good)}
.a2t-todo .td-done-in s{font-size:calc(15px*var(--ts));padding-left:8px}
.a2t-todo.td-alldone{padding:10px 16px}.td-alldone-h{display:flex;align-items:center;gap:8px;margin:0;font-size:calc(15px*var(--ts));font-weight:600;color:var(--good)}.td-alldone-h svg{width:18px;height:18px}
.a2t-todo .safe-card,.a2t-todo [data-safe]{margin-top:10px}
.a2t-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;box-shadow:none;background:none;padding:0}
.a2t-tile.td-gl{gap:8px;padding:14px 12px;border:0;border-radius:18px;background:var(--surface);box-shadow:none;min-height:44px}
.a2t-tile.td-gl b{font-size:calc(19px*var(--ts));font-weight:700}
.a2t-tile-v{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0}.a2t-tile-v b{min-width:0;white-space:nowrap}.a2t-tile.td-gl .a2t-tile-v b.long{font-size:calc(15px*var(--ts));letter-spacing:-.01em}.a2t-tile-v .a2t-ring-s{width:24px;height:24px}
.a2t-ring-s{flex:none;width:28px;height:28px}
.a2t-ring-s circle{fill:none;stroke-width:5}.a2t-ring-s .bg{stroke:var(--line)}.a2t-ring-s .fg{stroke:var(--good);stroke-linecap:round}.a2t-ring-s .fg.over{stroke:var(--warn)}
.a2t .td-risk-card,.a2t .td-risk-card.calm{border:0;background:var(--warn-bg);box-shadow:none;border-radius:22px}
.a2t .td-risk-card:not(.calm){border:1.5px solid var(--warn)}
.a2t .td-risk-card.calm .td-risk-ic,.a2t .td-risk-ic{background:color-mix(in srgb,var(--warn) 18%,var(--warn-bg));color:var(--warn)}
.a2t .td-risk-card.calm .td-kick,.a2t .td-risk .td-kick{color:var(--warn)}
.a2t .td-risk-sub{color:color-mix(in srgb,var(--warn) 55%,var(--ink))}
.a2t .td-risk-card .td-fix.got,.a2t .td-risk-card.calm>.td-fixes .td-fix.got{background:color-mix(in srgb,var(--warn) 18%,var(--warn-bg));border-color:transparent;color:var(--warn)}
.a2t-coming .td-head{align-items:center}
.a2t-pill{min-height:44px;padding:0 14px;border:0;border-radius:22px;background:var(--surface);color:var(--good);font:inherit;font-size:calc(13px*var(--ts));font-weight:700;cursor:pointer}
.a2t-coming .td-strip{display:flex;gap:6px;overflow-x:auto;margin:0 -16px;padding:0 16px 4px;scroll-snap-type:x proximity;scrollbar-width:none}
.a2t-coming .td-strip::-webkit-scrollbar{display:none}
.a2t-coming .td-day{flex:none;width:52px;min-height:72px;border:1px solid transparent;border-radius:16px;background:var(--surface);box-shadow:none;scroll-snap-align:start}
.a2t-coming .td-day.is-today{border-color:var(--good)}
.a2t-coming .td-day.is-sel{background:var(--ink);color:var(--ground);border-color:var(--ink)}
.a2t-coming .td-day .td-dw{font-size:calc(10px*var(--ts));letter-spacing:.04em}
.a2t .td-dot.k-bill{background:var(--warn)}.a2t .td-dot.k-pay{background:var(--good)}.a2t .td-dot.k-move,.a2t .td-dot.k-target{background:var(--info)}.a2t .td-dot.k-soon{background:var(--grey)}
.a2t-coming .td-day.is-sel .td-dot.k-soon{background:var(--ink-3)}
.a2t-coming .td-daypanel{margin-top:10px;padding:6px 0;border-radius:22px;box-shadow:none}
.a2t-coming .td-daypanel h3{padding:8px 16px 2px;margin:0;font-size:calc(12px*var(--ts));font-weight:600;color:var(--ink-2)}
.a2t-coming .td-daypanel .fine{padding:4px 16px 10px;margin:0}
.a2t-coming .td-daypanel li{padding:0}
.a2t-ev{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:6px 16px;border:0;background:none;color:var(--ink);font:inherit;text-align:left}
button.a2t-ev{cursor:pointer}
.a2t-ev .td-dot{width:10px;height:10px}
.a2t-ev-t{flex:1;min-width:0}.a2t-ev-t b{font-weight:600;font-size:calc(15px*var(--ts))}
.a2t-ev>svg{flex:none;width:16px;height:16px;color:var(--ink-3)}
.a2t-mts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.a2t-mt{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:16px 14px;border:0;border-radius:22px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.a2t-mt-top{display:flex;justify-content:space-between;align-items:flex-start;gap:6px;width:100%}
.a2t-ring-w{position:relative;flex:none;width:72px;height:72px;display:block}
.a2t-ring-w b{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--f-display);font-size:calc(16px*var(--ts));font-weight:800}
.a2t-ring{width:72px;height:72px}.a2t-ring circle{fill:none;stroke-width:13}.a2t-ring .bg{stroke:var(--line)}.a2t-ring .fg{stroke-linecap:round}
.a2t-ring.blue .fg{stroke:var(--info)}.a2t-ring.amber .fg{stroke:var(--warn)}
.a2t-mt-t{display:flex;flex-direction:column;gap:3px;min-width:0;max-width:100%}
.a2t-mt-t small{font-size:calc(12px*var(--ts));color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.a2t-mt-t b{font-family:var(--f-display);font-size:calc(21px*var(--ts));font-weight:700;overflow-wrap:anywhere}
.sheet .a2t-bal{margin:4px 0 8px}
@media (max-width:359.98px){.a2t-ring-w,.a2t-ring{width:58px;height:58px}.a2t-mt{padding:14px 12px}}
/* A2T:end */
/* A2M (Money with Bills in it): its own styles go below this line */
/* ADR-201: Money in four sections, Bills inside it. Cards, rings and upright columns, each with a text alternative; 44 px targets */
#tab-money .money-segs{margin:12px 0 0;background:var(--surface);border:0}
#tab-money .money-segs button[aria-pressed="true"],.mh-modes button[aria-pressed="true"]{background:var(--ink);color:var(--ground);box-shadow:none}
#tab-money .mw,#tab-money .mb-sum,#tab-money #sav-top,#tab-money #sav-wif,#tab-money .mh{display:flex;flex-direction:column;gap:12px}
.mw-card{display:flex;flex-direction:column;gap:14px;padding:18px;border:0;border-radius:24px;background:var(--surface);color:var(--ink);text-align:left;width:100%;font:inherit}
.mw-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:22px;background:var(--good-bg);color:var(--good);font:inherit;font-size:calc(12.5px*var(--ts));font-weight:700}
.mw-chip::before{content:"";width:7px;height:7px;border-radius:4px;background:currentColor}
.mw-chip.stale{background:var(--warn-bg);color:var(--warn)}.mw-chip.none{background:var(--surface-2);color:var(--ink-2)}
.mw-top{display:flex;align-items:center;gap:16px}
.mw-ring{flex:none}.mw-ring circle{fill:none;stroke-width:12px}.mw-ring-bg{stroke:var(--surface-2)}.mw-ring-fg{stroke-linecap:round}
.mw-ring.good .mw-ring-fg{stroke:var(--good)}.mw-ring.warn .mw-ring-fg{stroke:var(--warn)}.mw-ring.info .mw-ring-fg{stroke:var(--info)}
.mw-fig,.sv-fig{display:flex;flex-direction:column;gap:4px;min-width:0}
.mw-k{font-size:calc(13px*var(--ts));color:var(--ink-2)}
.mw-big{font-family:var(--f-display);font-size:calc(32px*var(--ts));font-weight:600;line-height:1.1}.mw-big.warn{color:var(--warn)}
.mw-fig small,.sv-fig small{font-size:calc(12px*var(--ts));color:var(--ink-2)}
.mw-bh{display:flex;justify-content:space-between;align-items:center;font-size:calc(12px*var(--ts));color:var(--ink-2)}
.mw-key{display:inline-flex;align-items:center;gap:6px}.mw-key i{width:10px;height:10px;border-radius:3px;border:1.5px dashed var(--ink-3)}
.mw-bars{display:flex;gap:8px;align-items:flex-end;min-height:110px}
.mw-day{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.mw-day i{display:block;width:100%;border-radius:6px;background:var(--good)}
.mw-day.over i{background:var(--warn)}.mw-day.nl i{background:none;border:1.5px dashed var(--ink-3)}.mw-day.later i{background:var(--surface-2)}
.mw-v,.mw-l{font-size:calc(10.5px*var(--ts));color:var(--ink-2);white-space:nowrap;min-height:1.2em}
.mw-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border:0;border-radius:16px;background:var(--surface-2);color:var(--ink);font:inherit;font-weight:700;font-size:calc(15px*var(--ts));cursor:pointer}
.mw-btn svg{width:18px;height:18px;color:var(--good)}.mw-btn.load{background:var(--good);color:var(--ground)}.mw-btn.load svg{color:var(--ground)}
.mw-rows,.sv-list,.mh-rows{display:flex;flex-direction:column;border-radius:22px;background:var(--surface);overflow:hidden;margin:0;padding:0;list-style:none}
.mw-row,.mh-row,.sv-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:8px 16px;border:0;border-bottom:1px solid var(--line-2);background:none;color:var(--ink);font:inherit;text-align:left}
.mw-rows>:last-child,.mh-rows>:last-child,.sv-list>li:last-child .sv-row{border-bottom:0}
.mw-dot{width:10px;height:10px;border-radius:5px;flex:none;background:var(--grey)}
.mw-row.in .mw-dot{background:var(--good)}.mw-row.out .mw-dot{background:var(--info)}.mw-row.bills .mw-dot{background:var(--warn)}
.mw-rt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.mw-rt b{font-weight:500}.mw-rt small{font-size:calc(12px*var(--ts));color:var(--ink-2)}
.mw-rv{font-weight:700}.mw-row.in .mw-rv{color:var(--good)}
#tab-money .mt-asof{margin:2px 0 0;font-size:calc(12px*var(--ts));color:var(--ink-2)}
.sv-card{display:flex;align-items:center;gap:18px;padding:18px;border-radius:24px;background:linear-gradient(160deg,color-mix(in srgb,var(--info) 18%,var(--surface)) 0%,var(--surface) 80%)}
.sv-ring{position:relative;flex:none;width:120px;height:120px}.sv-ring b{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--f-display);font-size:calc(24px*var(--ts));font-weight:700}
.sv-fig>b{font-family:var(--f-display);font-size:calc(28px*var(--ts));font-weight:600}.sv-fig .td-pill{align-self:flex-start;margin-top:4px}
.mb-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:6px 4px 0}.mb-h h2,.mb-h h3{font-size:calc(14px*var(--ts));font-weight:700;margin:0}
.sv-row{flex-direction:column;align-items:stretch;gap:8px;padding:14px 16px}
.sv-rt,.sv-rb,.mh-ct{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.sv-rt small,.sv-rb{font-size:calc(12.5px*var(--ts));color:var(--ink-2)}
.sv-rb .info{color:var(--info)}.sv-rb .warn{color:var(--warn)}.sv-rb .good{color:var(--good)}
.sv-bar{display:block;height:8px;border-radius:4px;background:var(--surface-2);overflow:hidden}.sv-bar i{display:block;height:100%;border-radius:4px;background:var(--info)}
.sv-wif{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:22px;background:var(--surface)}
.sv-wif-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.sv-wif-h h3{font-size:calc(14px*var(--ts));margin:0}.sv-wif-h b{font-family:var(--f-display);font-size:calc(19px*var(--ts));color:var(--good)}
.sv-wif-b{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sv-wif-b button{min-height:44px;border-radius:14px;border:1px solid var(--line);background:none;color:var(--ink);font:inherit;font-weight:700;font-size:calc(14px*var(--ts))}
.sv-wif-b button[aria-pressed="true"]{background:var(--ink);color:var(--ground);border-color:var(--ink)}
.mb-sum-c{flex-direction:row;justify-content:space-between;align-items:center}.mb-sum-l,.mb-sum-r{display:flex;flex-direction:column;gap:4px}.mb-sum-r{align-items:flex-end}
.mb-sum-c b{font-family:var(--f-display);font-size:calc(28px*var(--ts));font-weight:600}.mb-sum-r b{font-size:calc(20px*var(--ts))}.mb-sum-c b.good{color:var(--good)}.mb-sum-c small{font-size:calc(12px*var(--ts));color:var(--ink-2)}
#tab-money #bills .bl-tiles{display:none}
.mh{touch-action:pan-y}
.mh-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:var(--surface)}
.mh-modes button{min-height:44px;border:0;border-radius:10px;background:none;color:var(--ink-2);font:inherit;font-weight:700;font-size:calc(13.5px*var(--ts))}
#mh[data-mode="w"] [data-mhm="m"],#mh[data-mode="m"] [data-mhm="w"]{display:none}
.mh-nav,#mh .wk-head{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center}
.mh-arr,#mh .wk-head .icon-btn{width:44px;height:44px;border-radius:22px;border:0;background:var(--surface);color:var(--ink);display:grid;place-items:center}
.mh-arr svg,#mh .wk-head .icon-btn svg{width:18px;height:18px}.mh-arr:disabled{color:var(--ink-3)}
.mh-pick{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:16px;background:var(--surface);font-weight:700;font-size:calc(14px*var(--ts))}
.mh-pick svg{width:14px;height:14px;color:var(--ink-2)}
.mh-pick select,.mh-sel{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
#mh .wk-head{margin-bottom:12px}#mh .wk-head>div:first-child{grid-column:2;grid-row:1;position:relative;text-align:center;min-height:44px;padding:4px 8px;border-radius:16px;background:var(--surface)}
#mh .wk-head h2{font-size:calc(14px*var(--ts));font-weight:700;margin:0}#mh .wk-head .eyebrow,#mh .wk-head small{font-size:calc(11px*var(--ts))}
#mh .wk-head .nav{display:contents}#mh .wk-head [data-act=prev]{grid-column:1;grid-row:1}#mh .wk-head [data-act=next]{grid-column:3;grid-row:1}
#mh .mh-wk{margin-bottom:12px}
.mh-io-h{display:flex;justify-content:space-between;align-items:center}.mh-io-h h3,.mh-cats h3{font-size:calc(14px*var(--ts));margin:0}
.mh-key{display:inline-flex;align-items:center;gap:6px;font-size:calc(12px*var(--ts));color:var(--ink-2)}.mh-key i{width:8px;height:8px;border-radius:2px}
.mh-key .in,.mh-pair .in{background:var(--good)}.mh-key .out,.mh-pair .out{background:var(--info)}
.mh-cols{display:flex;gap:10px;align-items:flex-end;min-height:120px}
.mh-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;opacity:.45}.mh-col.on{opacity:1}.mh-col.on .mw-l{color:var(--ink);font-weight:700}
.mh-pair{display:flex;gap:3px;align-items:flex-end;width:100%}.mh-pair i{flex:1;border-radius:4px;min-height:2px}
.mh-cats ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.mh-ct{font-size:calc(13px*var(--ts))}.mh-cats .sv-bar i{background:var(--c,var(--info))}
.mh-st{cursor:pointer}.mh-st-h{display:flex;justify-content:space-between;align-items:center;gap:8px}
.mh-st-bar{display:flex;gap:2px;height:12px;border-radius:6px;overflow:hidden}.mh-st-bar .same{background:var(--good)}.mh-st-bar .fixed{background:var(--info)}.mh-st-bar .check{background:var(--warn)}
.mh-st-n{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mh-st-n span{display:flex;flex-direction:column;gap:2px}.mh-st-n b{font-family:var(--f-display);font-size:calc(20px*var(--ts))}.mh-st-n b.warn{color:var(--warn)}.mh-st-n small{font-size:calc(12px*var(--ts));color:var(--ink-2)}
.mh-row span:first-child{flex:1}.mh-row span.warn{color:var(--warn)}.mh-row span.good{color:var(--good)}.mh-row svg{width:16px;height:16px;color:var(--ink-3)}
#mh #spending .panel-h .m-nav{display:none}
#tab-money .money-cols,#tab-money .money-col{grid-template-columns:minmax(0,1fr)}#tab-money .money-col>*{min-width:0}
#mh .mh-wk{padding:0;background:none}.sv-wif-n{font-size:calc(12px*var(--ts));color:var(--ink-2)}
#tab-money #savings.panel{background:none;border:0;padding:0;box-shadow:none}#tab-money[data-seg="savings"] #savings.panel{display:flex;flex-direction:column;gap:12px}
#savings>#runway:not(:empty),#savings>#whatif:not(:empty),#savings>#hero:not(:empty),#savings>#pots:not(:empty),#savings>#log:not(:empty){padding:16px;border-radius:22px;background:var(--surface)}
@media (max-width:360px){.mw-top,.sv-card{gap:10px}.mw-bars{gap:4px}}
/* A2M:end */
.eye-btn[hidden]{display:none}
/* A3 (Work): its own styles go below this line */
#work{display:flex;flex-direction:column;gap:12px}
#work .panel{margin:0}
.wk-hd{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;margin-top:-6px}
.wk-agnow{min-width:0;font-size:calc(13px*var(--ts));color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wk-chip{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:var(--surface);color:var(--ink-2);font:inherit;font-size:calc(12px*var(--ts));font-weight:600}
.wk-dot2{flex:none;width:8px;height:8px;border-radius:4px;background:var(--grey)}
.wk-dot2.wk-ok{background:var(--good)}.wk-dot2.wk-close{background:var(--warn)}.wk-dot2.wk-over{background:var(--danger)}
.wk-rings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:12px 6px 10px;border-radius:22px;background:var(--surface)}
.wk-ring{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;min-height:44px;padding:4px 2px;border:0;border-radius:16px;background:transparent;color:var(--ink);font:inherit;text-align:center}
.wk-ring-c{position:relative;display:block;width:56px;height:56px}.wk-ring-c svg{display:block;width:56px;height:56px}
.wk-ring-c b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:calc(12px*var(--ts));font-weight:700}
.wk-ring-t{fill:none;stroke:var(--surface-2);stroke-width:12}.wk-ring-v{fill:none;stroke:var(--good);stroke-width:12;stroke-linecap:round}
.wk-ring.wk-close .wk-ring-v{stroke:var(--warn)}.wk-ring.wk-over .wk-ring-v{stroke:var(--danger)}
.wk-ring.wk-close .wk-ring-c b,.wk-ring.wk-close small{color:var(--warn)}.wk-ring.wk-over .wk-ring-c b,.wk-ring.wk-over small{color:var(--danger)}
.wk-ring-n{font-size:calc(12px*var(--ts));font-weight:600}.wk-ring small{font-size:calc(10px*var(--ts));color:var(--ink-2);line-height:1.2;overflow-wrap:anywhere}
.wk-ring.wk-none .wk-ring-c b{color:var(--ink-2)}
.wk-pers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:var(--surface)}
.wk-pers button,.wk-ms button{min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--ink-2);font:inherit;font-size:calc(13px*var(--ts));font-weight:600}
.wk-pers button[aria-pressed=true],.wk-ms button[aria-pressed=true]{background:var(--ink);color:var(--ground)}
.wk-chart2{display:flex;flex-direction:column;gap:12px;padding:14px 16px 16px;border-radius:22px;background:var(--surface);touch-action:pan-y}
.wk-nav{display:flex;align-items:center;gap:8px}
.wk-arw{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:22px;background:var(--surface-2);color:var(--ink)}
.wk-arw svg,.wk-pk svg,.wk-row svg{width:18px;height:18px;flex:none}.wk-arw[disabled]{opacity:.35}
.wk-pk{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;min-height:44px;padding:0 8px;border:0;border-radius:16px;background:var(--surface-2);color:var(--ink);font:inherit;font-size:calc(14px*var(--ts));font-weight:600}
.wk-total{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.wk-total-t{display:flex;flex-direction:column;gap:2px;min-width:0}.wk-total-t small{font-size:calc(13px*var(--ts));color:var(--ink-2)}
.wk-big{font-family:var(--f-display);font-size:calc(30px*var(--ts));font-weight:600;line-height:1.1}.wk-big.wk-good{color:var(--good)}
.wk-ms{display:flex;gap:2px;flex:none;padding:3px;border-radius:14px;background:var(--surface-2)}.wk-ms button{padding:0 12px}
.wk-cols{display:flex;align-items:flex-end;gap:8px;height:160px}.wk-cols.wk-y{gap:3px}.wk-cols.wk-mini{height:120px;margin:12px 0}
.wk-col{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;flex:1;min-width:0;height:100%;padding:0;border:0;background:transparent;color:var(--ink-2);font:inherit;font-size:calc(11px*var(--ts));transition:opacity .2s ease}
.wk-col small{font-size:calc(10px*var(--ts));white-space:nowrap}.wk-col i{display:block;width:100%;border-radius:7px;background:var(--good)}
.wk-col.wk-zero i{background:var(--surface-2)}.wk-col.wk-amber i{background:var(--warn)}
.wk-cols.wk-has .wk-col:not([aria-pressed=true]){opacity:.45}
.wk-col[aria-pressed=true]{color:var(--ink);font-weight:700}.wk-col[aria-pressed=true] i{box-shadow:0 0 0 2px var(--ink)}
.wk-hint{margin:0;text-align:center;font-size:calc(12px*var(--ts));color:var(--ink-3)}
.wk-payd{margin:0}
.wk-dt{display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:22px;background:var(--surface);animation:rise .3s cubic-bezier(.2,.8,.2,1) both}
.wk-dt-h{display:flex;justify-content:space-between;align-items:center;gap:10px}.wk-dt-h>div{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.wk-dt-h h3{margin:0;font-size:calc(17px*var(--ts));font-weight:600}.wk-dt-h small{font-size:calc(12px*var(--ts));color:var(--ink-2)}
.wk-agc{flex:none;max-width:45%;padding:5px 10px;border-radius:999px;background:color-mix(in srgb,var(--good) 16%,transparent);color:var(--good);font-size:calc(12px*var(--ts));font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wk-x{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:22px;background:var(--surface-2);color:var(--ink)}.wk-x svg{width:14px;height:14px}
.wk-strip{position:relative;height:34px;border-radius:10px;background:var(--surface-2);overflow:hidden}.wk-strip i{position:absolute;top:0;bottom:0}
.wk-s-drive{background:var(--good)}.wk-s-other{background:var(--goal)}.wk-s-poa{background:var(--info)}.wk-s-brk{background:var(--warn)}.wk-s-shift{background:var(--grey)}
.wk-ticks{display:flex;justify-content:space-between;margin-top:-6px;font-size:calc(10px*var(--ts));color:var(--ink-3)}
.wk-key{display:flex;flex-wrap:wrap;gap:12px;font-size:calc(12px*var(--ts));color:var(--grey)}.wk-key span{display:flex;align-items:center;gap:5px}
.wk-key i{display:block;width:9px;height:9px}.wk-key .wk-k-r{border-radius:5px}.wk-key .wk-k-s{border-radius:2px}
.wk-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.wk-tile{display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px;border-radius:14px;background:var(--raised)}
.wk-tile small{font-size:calc(11px*var(--ts));color:var(--ink-2)}.wk-tile b{font-family:var(--f-display);font-size:calc(17px*var(--ts));font-weight:600;overflow-wrap:anywhere}
.wk-tile.wk-good b{color:var(--good)}.wk-tile.wk-close b{color:var(--warn)}
.wk-restd{display:flex;align-items:center;gap:12px;margin:0;padding:18px;border-radius:16px;background:var(--raised);color:var(--grey);font-size:calc(15px*var(--ts))}.wk-restd svg{width:22px;height:22px;color:var(--info);flex:none}
.wk-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.wk-acts:empty{display:none}
.wk-rows{display:flex;flex-direction:column;border-radius:22px;background:var(--surface);overflow:hidden}
.wk-row{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 16px;border:0;border-bottom:1px solid var(--surface-2);background:transparent;color:var(--ink);font:inherit;font-size:calc(15px*var(--ts));text-align:left}
.wk-row:last-child{border-bottom:0}.wk-row span{flex:1}.wk-row small{font-size:calc(13px*var(--ts));color:var(--ink-2)}.wk-row svg{color:var(--ink-3)}
.wk-hero{display:flex;flex-direction:column;gap:4px;margin:4px 0 12px;padding:18px;border-radius:18px;background:var(--raised)}
.wk-hero b{font-family:var(--f-display);font-size:calc(26px*var(--ts));font-weight:600}.wk-hero small{color:var(--ink-2)}
.wk-hero.wk-ok b{color:var(--good)}.wk-hero.wk-close{background:color-mix(in srgb,var(--warn) 14%,var(--raised))}.wk-hero.wk-close b{color:var(--warn)}.wk-hero.wk-over{background:color-mix(in srgb,var(--danger) 14%,var(--raised))}.wk-hero.wk-over b{color:var(--danger)}
.wk-srows{list-style:none;margin:0 0 12px;padding:0}.wk-srows li{display:flex;align-items:center;gap:12px;min-height:48px;border-bottom:1px solid var(--surface-2)}
.wk-srows li span{flex:1;display:flex;flex-direction:column;min-width:0}.wk-srows small{font-size:calc(12px*var(--ts));color:var(--ink-2)}.wk-srows b{text-align:right}
.wk-srows li.wk-close b{color:var(--warn)}.wk-srows li.wk-over b{color:var(--danger)}
.wk-picks{list-style:none;margin:0;padding:0}
.wk-prow{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:4px 0;border:0;border-bottom:1px solid var(--surface-2);background:transparent;color:var(--ink);font:inherit;text-align:left}
.wk-prow span{flex:1;display:flex;flex-direction:column}.wk-prow small{font-size:calc(12px*var(--ts));color:var(--ink-2)}.wk-prow[aria-current=true] b{color:var(--good)}
.wk-verdict{display:flex;align-items:baseline;gap:10px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,var(--good) 14%,var(--raised))}
.wk-verdict b{font-family:var(--f-display);font-size:calc(26px*var(--ts));color:var(--good)}.wk-verdict.wk-over{background:color-mix(in srgb,var(--danger) 14%,var(--raised))}.wk-verdict.wk-over b{color:var(--danger)}
/* A3:end */
.fab{will-change:transform}
/* A4 and A5 (Backup, Settings, Timeline, Search): their own styles go below this line */
/* Settings (ADR-204): a back arrow, then rows in groups, each a dot, a name and its value */
.s-head{gap:4px;margin:-4px 0 4px -6px}
.s-head .s-back{order:-1;width:44px;height:44px;border:0;background:transparent;color:var(--ink)}
.s-head .s-back svg{width:22px;height:22px}
.s-gt{margin:18px 8px 8px;font-size:calc(12px*var(--ts));font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.s-gt:first-of-type{margin-top:6px}
.s-rows{border:0;border-radius:20px;background:var(--surface)}
.s-rows .s-row{min-height:54px;padding:8px 16px;gap:12px;background:transparent;border-top:1px solid var(--line-2);font-size:calc(15px*var(--ts))}
.s-rows .s-row:first-child{border-top:0}
.s-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--c)}
.s-n{flex:1;min-width:0;overflow-wrap:anywhere}
.s-v{flex:none;max-width:48%;text-align:right;font-size:calc(13px*var(--ts));color:var(--ink-2);overflow-wrap:anywhere}
.s-rows .s-row>svg{flex:none;width:16px;height:16px;color:var(--ink-3)}
#sheet-host #settings .set-sec>.set-group:first-child>.eyebrow:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)} /* the sheet's title says it */
#sheet-host .wk-ag{background:none;border:0;box-shadow:none;padding:0;margin:0}
#sheet-host .wk-ag>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* Backup (ADR-203): when it was saved and which kind, then Save a backup and Restore; the rest under More options */
.bk-hero{display:grid;gap:4px;padding:16px 18px;margin:0 0 12px;border-radius:20px;background:var(--surface-2)}
.bk-hero b{font-family:var(--f-display);font-size:calc(22px*var(--ts));font-weight:700}
.bk-hero small{font-size:calc(13px*var(--ts));color:var(--ink-2)}
.bk-hero small[data-bk=encrypted]{color:var(--info)}
.bk-rk,.bk-more{margin-top:14px}
.bk-more>.btns{margin:8px 0 12px}
/* the Timeline (ADR-205): chips by kind, then a rail grouped by day with a total for each day */
#tl-chips{margin-bottom:12px}
#tl-chips button{display:inline-flex;align-items:center;gap:6px}
.tl-cd{width:8px;height:8px;border-radius:50%;background:var(--c)}
#tl-chips button[aria-pressed=true] .tl-cd{background:var(--btn-ink)}
.tl-rail{list-style:none;margin:0;padding:0}
#timeline .tl-day{position:relative;padding:0 0 4px 36px}
#timeline .tl-rail .tlm-row{padding:0}
.tl-day::before,.tl-end::before{content:"";position:absolute;left:11px;top:22px;bottom:-6px;width:2px;background:var(--line-2)}
.tl-end::before{top:0;bottom:auto;height:14px}
.tl-dh{display:flex;align-items:center;gap:12px;min-height:36px}
.tl-dh b{flex:1;font-size:calc(13px*var(--ts));font-weight:700}
.tl-day.now .tl-dh b{color:var(--good)}
/* ADR-241: month rows after the first five weeks, and the scrubber above the list */
#timeline .tl-mon{position:relative;padding:0 0 4px 36px}
.tl-mon::before{content:"";position:absolute;left:11px;top:22px;bottom:-6px;width:2px;background:var(--line-2)}
.tl-mh{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:6px 4px 6px 0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.tl-mh .tl-node{position:absolute;left:5px;top:16px}
.tl-mt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.tl-mt b{font-size:calc(14px*var(--ts));font-weight:700}.tl-mt small{font-size:calc(12px*var(--ts));color:var(--ink-2)}
.tl-mc{flex:none;transition:transform .15s;color:var(--ink-2)}.tl-mon.open .tl-mc{transform:rotate(90deg)}
.tl-mp[hidden]{display:none}.tl-sub{padding:0}
.tl-sub .tl-day::before{display:none}.tl-sub .tl-day{padding-left:12px}
@media (prefers-reduced-motion:reduce){.tl-mc{transition:none}}
html[data-motion="reduce"] .tl-mc{transition:none}
.tl-node{position:absolute;left:5px;top:11px;width:14px;height:14px;box-sizing:border-box;border-radius:50%;border:3px solid var(--line);background:var(--ground)}
.tl-day.now .tl-node{border-color:var(--good)}
.tl-tot{font-size:calc(13px*var(--ts));font-weight:600;color:var(--ink-2)}
.tl-rail .tlm{border-radius:16px;box-shadow:none;margin:2px 0 8px}
.tl-rail .tlm-row>button{min-height:56px;animation:rise .35s ease-out both}
.tl-rail .bl-d.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tl-ic{flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 16%,var(--surface))}
.tl-ic i{width:10px;height:10px;border-radius:50%;background:var(--c)}
#timeline .tl-end{position:relative;display:flex;align-items:center;min-height:34px;padding:0 0 0 36px;color:var(--ink-3)}
.tl-end .tl-node{width:8px;height:8px;left:8px;top:13px;border:0;background:var(--line)}
/* Scrub through time (ADR-088, restyled by ADR-205): the date and Back to today, the slider, two tiles, a bar for each pot and loan */
.panel.tt{border:0;border-radius:24px;background:linear-gradient(170deg,color-mix(in srgb,var(--good) 10%,var(--surface)) 0%,var(--surface) 80%);gap:12px}
.tt-when b{color:var(--good);font-size:calc(20px*var(--ts))}
.tt-figs>div{border-radius:16px;padding:12px;background:var(--ground)}
.tt-figs dd{font-size:calc(22px*var(--ts));font-weight:700}
#tt-st{color:var(--info)}
.tt-list .bar{height:8px;border-radius:4px;background:var(--surface-2)}
.tt-list .bar>i{background:var(--info);transition:width .25s ease}
.tt-loans .bar>i{background:var(--warn)}
.tt-list li.full .bar>i{background:var(--good)}
.tt-list li.full>b{color:var(--good)}
.tt-list li>b{font-weight:600;color:var(--ink-2)}
/* Search (ADR-205): the results as rows with a dot, quick picks when the box is empty */
.search-try .chip-btn{min-height:38px}
#tl-chips{flex-wrap:wrap;overflow:visible}#tl-chips button{white-space:normal;overflow-wrap:anywhere;min-height:44px;height:auto}
/* A5:end */
/* B191 */
/* ADR-191: recording the shift (the Android app only), under the rule rings: Work or Commute, a status line while on, Start or Stop */
.wk-trk{display:grid;gap:10px;padding:12px;border-radius:22px;background:var(--surface)}
.wk-trk-k{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:3px;border-radius:14px;background:var(--surface-2)}
.wk-trk-k button{min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--ink-2);font:inherit;font-size:calc(13px*var(--ts));font-weight:600}
.wk-trk-k button[aria-pressed=true]{background:var(--ink);color:var(--ground)}
.wk-trk .btn{min-height:44px;width:100%}
.wk-trk-gps{margin:6px 0 0;color:var(--warn);font-weight:600} /* ADR-319 (F-13) */
.wk-trk-st{display:flex;align-items:center;gap:8px;margin:0;font-size:calc(14px*var(--ts));font-weight:600;overflow-wrap:anywhere}
.wk-trk-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--danger)}
.wk-trk .fine{margin:0}
.wk-trk-dot{animation:wk-trk-pulse 2s ease-in-out infinite}@keyframes wk-trk-pulse{50%{opacity:.35}}@media (prefers-reduced-motion:reduce){html[data-motion="follow"] .wk-trk-dot{animation:none}} /* ADR-238 (item 35): plays unless "Follow my phone" and the phone asks for less */
/* B191:end */
/* B192 (ADR-192, the map): the outline (SVG), the street map over it (the app), the list of the same facts, Settings › Street map */
.map-host{display:flex;flex-direction:column;gap:12px}
.map-box{position:relative;overflow:hidden;border-radius:16px;background:var(--info-bg);border:1px solid var(--line)}
.map-svg{display:block;width:100%;height:100%}
.map-sea{fill:var(--info-bg)}.map-land{fill:var(--surface-2);stroke:var(--ink-3);stroke-width:.8;stroke-linejoin:round}
.map-road{fill:none;stroke:var(--line);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.map-city{fill:var(--ink-3)}.map-ct,.map-pt{font-size:11px;fill:var(--ink-2);paint-order:stroke;stroke:var(--surface-2);stroke-width:3px}.map-pt{font-weight:700;fill:var(--ink)}
.map-trk{fill:none;stroke:var(--info);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.map-trk-c{stroke:var(--warn);stroke-dasharray:6 5}
.map-cardtrip{fill:none;stroke:var(--ink);stroke-width:2;stroke-dasharray:5 4;stroke-linecap:round;stroke-linejoin:round}.map-card{fill:var(--ink);stroke:var(--surface);stroke-width:1.5}.map-stop{fill:var(--surface);stroke:var(--info);stroke-width:2.5}.map-start{fill:var(--good);stroke:var(--surface);stroke-width:2}.map-end{fill:var(--warn);stroke:var(--surface);stroke-width:2}.map-place{fill:var(--ink);stroke:var(--surface);stroke-width:1.5}
.map-box .map-gl{position:absolute;inset:0;opacity:0;transition:opacity .2s}.map-box .map-gl.on{opacity:1} /* over maplibre-gl.css's position:relative */
.map-credit{position:absolute;right:0;bottom:0;margin:0;padding:2px 8px;font-size:calc(11px*var(--ts));background:var(--surface);color:var(--ink-2);border-top-left-radius:8px;z-index:2}
.map-day h4{margin:0 0 6px;font-size:calc(14px*var(--ts));font-weight:600}
.map-list{margin:0;padding:0 0 0 22px;display:flex;flex-direction:column;gap:4px;font-size:calc(14px*var(--ts))}.map-list small{color:var(--ink-3);font-size:calc(12px*var(--ts))}
.map-none{margin:0;color:var(--ink-2)}
.map-st{margin:0 0 12px;font-weight:600}
/* B192:end */
/* B190 */
.trk-bk{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.trk-bk .btn{min-height:44px}
/* B190:end */
/* B193 */
.join-offer{margin:12px 0;padding:14px;border-radius:22px;background:var(--surface)}.join-offer p{margin:0 0 8px}.join-offer small{color:var(--ink-2)}
.join-rm{margin:0 0 8px;font-weight:600}
.tog{display:flex;align-items:center;gap:12px;min-height:44px;font-weight:600}.tog input{width:22px;height:22px;flex:none}
/* B193:end */

/* ADR-305 (Z-B4): the self-checks' one amber label on Today; what failed is behind it */
.td-chk{margin:8px 0}
.td-chk>summary{display:inline-block;list-style:none;cursor:pointer;padding:2px 10px;border-radius:999px;background:var(--warn-bg);color:var(--warn-ink);font-weight:600;font-size:.85rem}
.td-chk>summary::-webkit-details-marker{display:none}
.td-chk ul{margin:6px 0 0;padding-left:18px}
/* ADR-316 (Z-C6): the backup's age on Today */
.td-bk{display:inline-block;margin:8px 6px 0 0;padding:2px 10px;border-radius:999px;border:0;background:var(--surface);color:var(--grey);font:inherit;font-size:.85rem;cursor:pointer}
.td-bk.warn{background:var(--warn-bg);color:var(--warn-ink);font-weight:600}

/* ADR-357 (AA G-12): the fatigue factors on Work, amber when high */
.wk-fat li.amber{color:var(--warn);font-weight:700}
/* ADR-361 (AA I-11): the driver's wallet, amber when a date is near */
.wk-wallet li.amber{color:var(--warn);font-weight:700}
/* ADR-358 (AA I-2): Search's microphone, in the app only */
.search-mic{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--surface-2);color:var(--ink);display:grid;place-items:center}.search-mic svg{width:22px;height:22px}
/* ADR-362 (AA G-15): manager mode: the driver's side, the walkaround check and the board */
.wk-mg{margin:12px 0}.wk-mg li.amber{color:var(--warn);font-weight:700}.mg-drv{padding:10px 0;border-top:1px solid var(--line)}.mg-drv ul{margin:4px 0;padding-left:18px}
.mg-wl{list-style:none;margin:8px 0;padding:0}.mg-wl li{padding:6px 0}.mg-wl label{display:flex;gap:8px;align-items:center;min-height:44px}
.mg-ph{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.mg-ph img{width:30%;max-width:160px;height:auto;border-radius:6px}
/* ADR-363 (AA G-14): the hours' label on its own line, above their buttons */
.bk-rp [data-rp-h] > small { flex-basis: 100%; }
