/* Freepocket — Glass Aurora: the theme and the motion layer.
   Loaded last, so it wins over the older sheets.
   Aurora is night-first: in the dark it is the deep-navy set; in the light it
   keeps the warm paper the app has always had. */

:root{
  /* one vocabulary for motion, used by every sheet */
  --fp-ease:var(--ease-enter,cubic-bezier(.25,.8,.25,1));
  --fp-ease-out:var(--ease-enter,cubic-bezier(.25,.8,.25,1));
  --fp-t-fast:var(--duration-fast,170ms);
  --fp-t-base:var(--duration-base,340ms);
  --fp-t-slow:var(--duration-slow,340ms);
  --fp-t-draw:var(--duration-slow,340ms);
}

/* ---------------------------------------------------------------- aurora, light */
body:not(.high-contrast)[data-theme="aurora"]{
  --canvas:#f7f3ec;
  --bg:var(--canvas);
  --surface:#fffdf9;
  --ink:#221c14;
  --text:var(--ink);
  --muted:#6d6355;
  --line:#e8e1d3;
  --soft:#f2ebdf;
  --blue:#1c2c3d;
  --blue-strong:#111c28;
  --blue-soft:#eaedf1;
  --focus:#1c2c3d;
  --lime:#a8823a;
  --coral:#b85a44;
  --gold:#a37c33;
  --green:#1f6b4a;
  --red:#9c3b2f;
  --danger:#9c3b2f;
  --accent:#b85a44;
  --warm-white:#fff4df;
  --shadow:0 1px 2px rgba(15,26,36,.04),0 18px 40px -22px rgba(15,26,36,.22);
}

/* ---------------------------------------------------------------- aurora, night */
body.dark:not(.high-contrast)[data-theme="aurora"]{
  --canvas:#070b14;
  --bg:var(--canvas);
  --surface:rgba(255,255,255,.055);
  --surface-2:rgba(255,255,255,.03);
  --ink:#f4f7ff;
  --text:var(--ink);
  --muted:#b3c1dc;
  --soft:rgba(255,255,255,.045);
  --line:rgba(255,255,255,.08);
  --blue:#9fb6d8;
  --blue-strong:#dce7f7;
  --blue-soft:rgba(94,234,212,.12);
  --blue-dark:#0b1220;
  --focus:#5eead4;
  --lime:#c4f542;
  --coral:#ff6857;
  --gold:#f0c36b;
  --green:#5ee79b;
  --red:#ff8a9b;
  --danger:#ff8a9b;
  --accent:#5eead4;
  --warm-white:#fff4df;
  --shadow:0 26px 54px -28px rgba(0,0,0,.95),0 2px 10px rgba(0,0,0,.4);
}
/* the surfaces that sit on the canvas become glass */
body.dark:not(.high-contrast)[data-theme="aurora"]:not([data-page="debt-payoff"]) .card,
body.dark:not(.high-contrast)[data-theme="aurora"][data-page="debt-payoff"] .card:not(.premium-debt-controls),
body.dark:not(.high-contrast)[data-theme="aurora"] .statement-panel,
body.dark:not(.high-contrast)[data-theme="aurora"] .dialog,
body.dark:not(.high-contrast)[data-theme="aurora"] .toast{
  backdrop-filter:blur(18px) saturate(140%);
  border-color:rgba(255,255,255,.10);
}
/* the aurora behind the night theme stays as a soft, static color field */
body.dark:not(.high-contrast)[data-theme="aurora"]{position:relative;z-index:0}
body.dark:not(.high-contrast)[data-theme="aurora"]::before{
  content:"";position:fixed;inset:-10%;z-index:-1;pointer-events:none;filter:blur(34px);
  background:
    radial-gradient(52vw 52vw at 10% 4%,rgba(94,234,212,.20),transparent 62%),
    radial-gradient(46vw 46vw at 88% 6%,rgba(167,139,250,.22),transparent 64%),
    radial-gradient(60vw 60vw at 62% 108%,rgba(196,245,66,.10),transparent 60%);
}

/* ------------------------------------------- the money home: what the numbers answer */
.fp-safe-card{border-radius:20px!important;container-type:inline-size}
.fp-safe-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,240px);gap:24px;align-items:center}
/* the figure is sized by the column it stands in, so it never runs into the chart */
.fp-safe-main{min-width:0;container-type:inline-size}
.fp-safe-value{display:block;margin-top:8px;font-size:clamp(34px,14cqi,60px);font-weight:850;letter-spacing:-.05em;line-height:.95;font-variant-numeric:tabular-nums}
.fp-safe-chart{color:var(--accent);min-width:0;max-width:320px}
/* the figure, the note and the chart share one row when the card has the room
   for all three, and stack in one column when it does not */
@container (max-width:600px){.fp-safe-row{grid-template-columns:minmax(0,1fr) minmax(0,150px);gap:20px}}
@container (max-width:420px){.fp-safe-row{grid-template-columns:minmax(0,1fr);gap:16px}.fp-safe-chart{max-width:100%}}

/* ------------------------------------------- the change since last month, beside every category */
.dash-legend-name{display:flex;flex-wrap:wrap;align-items:center;min-width:0}
.fp-pace-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px}
/* the name may give way; the figures never do */
.fp-pace-head b{font-size:14px;font-weight:750;min-width:0;overflow-wrap:anywhere}
.fp-pace-head em{font-style:normal;color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums;white-space:nowrap;flex:0 0 auto}
.fp-pace-track{position:relative;display:block;height:9px;border-radius:99px;background:color-mix(in srgb,var(--ink) 9%,var(--surface))}
.fp-pace-track i{display:block;height:100%;min-width:2px;border-radius:inherit;background:var(--lime);transform:scaleX(0);transform-origin:left center;transition:transform var(--fp-t-slow) var(--fp-ease)}
.fp-pace-track i.is-in{transform:scaleX(1)}
.fp-pace-tick{position:absolute;top:-4px;width:2px;height:16px;border-radius:2px;background:var(--ink);box-shadow:0 0 0 1px color-mix(in srgb,var(--canvas) 65%,transparent);opacity:0;transform:translate(-1px,-5px);transition:opacity var(--fp-t-fast) var(--fp-ease-out),transform var(--fp-t-fast) var(--fp-ease-out)}
.fp-pace-tick.is-in{opacity:.55;transform:translate(-1px,0)}
.fp-pace-say{display:block;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.45}
.fp-pace-say.is-over{color:var(--red)}
.fp-event{display:grid;grid-template-columns:62px minmax(0,1fr) max-content;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.fp-event:last-child{border-bottom:0}
.fp-event b{font-size:14px;font-weight:700;overflow-wrap:anywhere}
.fp-event em{font-style:normal;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.fp-event em.is-in{color:var(--green)}
.fp-event em.is-out{color:var(--text)}
@media(max-width:430px){.fp-event{grid-template-columns:56px minmax(0,1fr) max-content;gap:9px}.fp-event b,.fp-event em{font-size:13.5px}}

/* ------------------------------------------- the ledger table: a long name gives way, the figures do not */
.transaction-list-panel td:first-child{white-space:normal}
.transaction-list-panel .txn-name>div{min-width:0;overflow-wrap:anywhere}
.transaction-list-panel .txn-name strong{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.3}

/* ------------------------------------------- the material: one glass, one rim, one shadow */
body.dark:not(.high-contrast)[data-theme="aurora"]:not([data-page="debt-payoff"]) .card,
body.dark:not(.high-contrast)[data-theme="aurora"][data-page="debt-payoff"] .card:not(.premium-debt-controls),
body.dark:not(.high-contrast)[data-theme="aurora"] .statement-panel,
body.dark:not(.high-contrast)[data-theme="aurora"] .dialog,
body.dark:not(.high-contrast)[data-theme="aurora"] .toast{
  border-radius:22px!important;
  border:1px solid rgba(255,255,255,.09)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.028))!important;
  box-shadow:0 34px 80px -46px rgba(0,0,0,.95),0 2px 10px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.12)!important;
  backdrop-filter:blur(20px) saturate(150%);
}
body:not(.dark):not(.high-contrast)[data-theme="aurora"]:not([data-page="debt-payoff"]) .card,
body:not(.dark):not(.high-contrast)[data-theme="aurora"][data-page="debt-payoff"] .card:not(.premium-debt-controls),
body:not(.dark):not(.high-contrast)[data-theme="aurora"] .statement-panel,
body:not(.dark):not(.high-contrast)[data-theme="aurora"] .dialog,
body:not(.dark):not(.high-contrast)[data-theme="aurora"] .toast{
  border-radius:22px!important;
  border:1px solid rgba(20,32,60,.10)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.78))!important;
  box-shadow:0 24px 60px -40px rgba(20,32,60,.45),0 1px 2px rgba(20,32,60,.06),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
body:not(.high-contrast)[data-theme="aurora"] .card-heading h2,
body:not(.high-contrast)[data-theme="aurora"] .accounts-section-heading h2{font-size:17px!important;font-weight:800!important;letter-spacing:-.02em!important}
body:not(.high-contrast)[data-theme="aurora"] #title{font-weight:850!important;letter-spacing:-.035em!important}
/* what floats over the page needs a bed of its own, or the page reads through it */
body.dark:not(.high-contrast)[data-theme="aurora"] .profile-menu,
body.dark:not(.high-contrast)[data-theme="aurora"] .dialog,
body.dark:not(.high-contrast)[data-theme="aurora"] .toast{
  background:linear-gradient(180deg,rgba(11,17,30,.985),rgba(7,11,20,.99))!important;
  border-color:rgba(255,255,255,.12)!important;
  box-shadow:0 30px 70px -30px rgba(0,0,0,.95),0 0 0 1px rgba(255,255,255,.05)!important;
  backdrop-filter:blur(20px) saturate(140%);
}
body:not(.dark):not(.high-contrast)[data-theme="aurora"] .profile-menu{
  background:linear-gradient(180deg,rgba(255,255,255,.985),rgba(255,255,255,.96))!important;
  border-color:rgba(20,32,60,.14)!important;
  box-shadow:0 30px 70px -28px rgba(20,32,60,.42),0 2px 10px rgba(20,32,60,.08)!important;
  backdrop-filter:blur(20px) saturate(140%);
}
body.dark:not(.high-contrast)[data-theme="aurora"] .profile-menu{z-index:220!important;border-radius:16px!important}
body:not(.high-contrast)[data-theme="aurora"] .profile-menu{z-index:220!important;border-radius:16px!important}
/* the menu is above the page it floats over, and the page never paints over it */
body[data-theme="aurora"] .account-controls{z-index:220}
@media(max-width:760px){
  /* on a phone the menu lies under the app bar as one short band, so it never
     reaches the page title or the actions under it */
  body[data-theme="aurora"] .profile-menu:not([hidden]){
    top:calc(100% + 4px);right:0;width:calc(100vw - 30px);max-width:none;
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px}
  body[data-theme="aurora"] .profile-menu-identity{grid-column:1/-1;padding:0 6px 4px}
  body[data-theme="aurora"] .profile-menu-avatar{width:30px;height:30px;flex:0 0 30px}
  body[data-theme="aurora"] .profile-menu-email{display:none}
  body[data-theme="aurora"] .profile-menu-divider{display:none}
  body[data-theme="aurora"] .profile-menu-item{justify-content:center;text-align:center;padding:var(--space-3) var(--space-1);font-size:var(--type-xs)}
}
body.dark:not(.high-contrast)[data-theme="aurora"] .card-heading h2,
body.dark:not(.high-contrast)[data-theme="aurora"] .accounts-section-heading h2{
  font-size:17px!important;font-weight:800!important;letter-spacing:-.02em!important;color:var(--text)!important;
}
body.dark:not(.high-contrast)[data-theme="aurora"] .card-heading p,
body.dark:not(.high-contrast)[data-theme="aurora"] .card-heading .dash-sub{
  font-size:12.5px!important;font-weight:600!important;color:var(--muted)!important;
}
body.dark:not(.high-contrast)[data-theme="aurora"] #title{
  font-weight:850!important;letter-spacing:-.035em!important;
}
body.dark:not(.high-contrast)[data-theme="aurora"] .eyebrow,
body.dark:not(.high-contrast)[data-theme="aurora"] .section-kicker{
  color:var(--faint)!important;font-weight:800!important;letter-spacing:.15em!important;
}
/* the mark on a card answers the finger */
body.dark:not(.high-contrast)[data-theme="aurora"] button:active,
body.dark:not(.high-contrast)[data-theme="aurora"] .premium-shortcut:active{transform:scale(.975)}
body.dark:not(.high-contrast)[data-theme="aurora"] button{transition:transform var(--fp-t-fast) var(--fp-ease-out),opacity var(--fp-t-fast) var(--fp-ease-out)}


/* a sheet rises from the bottom; a toast confirms and leaves */
body.dark:not(.high-contrast)[data-theme="aurora"] dialog[open]{animation:fp-sheet-rise var(--fp-t-base) var(--fp-ease-out) both}
@keyframes fp-sheet-rise{from{transform:translateY(18px);opacity:0}to{transform:none;opacity:1}}
body.dark:not(.high-contrast)[data-theme="aurora"] dialog::backdrop{animation:fp-backdrop-in var(--fp-t-base) var(--fp-ease-out) both}
@keyframes fp-backdrop-in{from{opacity:0}to{opacity:1}}
body.dark:not(.high-contrast)[data-theme="aurora"] .toast{animation:fp-toast-in var(--fp-t-fast) var(--fp-ease-out) both}
body.dark:not(.high-contrast)[data-theme="aurora"] .toast.is-leaving{animation:fp-toast-out var(--fp-t-fast) var(--fp-ease) both}
@keyframes fp-toast-in{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
@keyframes fp-toast-out{from{transform:none;opacity:1}to{transform:translateY(8px);opacity:0}}
@media (prefers-reduced-motion:reduce){
  body.dark:not(.high-contrast)[data-theme="aurora"] dialog[open],
  body.dark:not(.high-contrast)[data-theme="aurora"] dialog::backdrop,
  body.dark:not(.high-contrast)[data-theme="aurora"] .toast,
  body.dark:not(.high-contrast)[data-theme="aurora"] .toast.is-leaving{animation:none}
}
body.reduced-motion[data-theme] :is(#modal[open],dialog[open],.toast){animation:none}

/* the marker moves between the destinations, it does not jump */
#mobile-primary-nav{position:relative}
#mobile-primary-nav button[data-current]::before{display:none}
.fp-nav-marker{position:absolute;top:0;left:0;height:3px;border-radius:2px;background:var(--lime);pointer-events:none;transform:translateX(0);transition:transform var(--fp-t-base) var(--fp-ease);opacity:0}
.fp-nav-marker.is-in{opacity:1}
@media (prefers-reduced-motion:reduce){#mobile-primary-nav .fp-nav-marker{transition:none}}
body.reduced-motion #mobile-primary-nav .fp-nav-marker{transition:none}

/* ---------------------------------------------------------------- motion */
[data-reveal]{
  opacity:0;transform:translateY(5px);
  transition:opacity var(--fp-t-fast) var(--fp-ease-out) var(--reveal-delay,0ms),
             transform var(--fp-t-fast) var(--fp-ease-out) var(--reveal-delay,0ms);
}
[data-reveal].is-in{opacity:1;transform:none}
[data-reveal][data-motion-instant]{transition:none}

[data-grow]{transform:scaleY(0);transform-origin:bottom;transition:transform var(--fp-t-slow) var(--fp-ease-out)}
[data-grow].is-in{transform:scaleY(1)}

[data-draw]{
  stroke-dasharray:var(--fp-dash,1400);stroke-dashoffset:var(--fp-dash,1400);
  transition:stroke-dashoffset var(--fp-t-draw) var(--fp-ease-out);
}
[data-draw].is-in{stroke-dashoffset:0}

/* the area follows the line with a short, tokenized beat */
[data-fade]{opacity:0;transition:opacity var(--fp-t-slow) var(--fp-ease-out) var(--fp-t-fast)}
[data-fade].is-in{opacity:1}

/* the person asked for less movement: everything lands at once */
@media (prefers-reduced-motion:reduce){
  body.dark:not(.high-contrast)[data-theme="aurora"]::before{animation:none}
  [data-reveal],[data-grow],[data-draw],[data-fade]{transition:none}
  [data-reveal]{opacity:1;transform:none}
  [data-grow]{transform:scaleY(1)}
  [data-draw]{stroke-dashoffset:0}
  [data-fade]{opacity:1}
  #view[aria-busy="false"],#modal[open],#modal[open]::backdrop,#toast[aria-live]{animation:none}
  #mobile-primary-nav .fp-nav-marker,.dash-trend-bar[data-grow]{transition:none}
}
body.reduced-motion[data-theme="aurora"]::before{animation:none}
body.reduced-motion [data-reveal],
body.reduced-motion [data-grow],
body.reduced-motion [data-draw],
body.reduced-motion [data-fade]{transition:none}
body.reduced-motion [data-reveal]{opacity:1;transform:none}
body.reduced-motion [data-grow]{transform:scaleY(1)}
body.reduced-motion [data-draw]{stroke-dashoffset:0}
body.reduced-motion [data-fade]{opacity:1}
body.reduced-motion #view[aria-busy="false"],
body.reduced-motion #modal[open],
body.reduced-motion #modal[open]::backdrop,
body.reduced-motion #toast[aria-live]{animation:none}
body.reduced-motion #mobile-primary-nav .fp-nav-marker,
body.reduced-motion .dash-trend-bar[data-grow]{transition:none}

/* ------------------------------------------- public sign-in form details */
body.dark[data-theme="aurora"].form-page{background:var(--canvas);color:var(--text)}
body.dark[data-theme="aurora"].form-page::before{display:none}
body.dark[data-theme="aurora"].form-page .request-panel{
  border-radius:16px;border:1px solid var(--line);color:var(--text);
  background:var(--surface);box-shadow:none;backdrop-filter:none}
body.dark[data-theme="aurora"] .wordmark{color:var(--text)!important}
body.dark[data-theme="aurora"] .form-header>.text-link{color:var(--muted)!important}
body.dark[data-theme="aurora"].form-page .request-form input{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important}
body.dark[data-theme="aurora"] .request-form input::placeholder{color:var(--muted)!important}
body.dark[data-theme="aurora"] .request-form input:focus-visible{border-color:var(--accent)!important;outline-color:var(--accent)!important}
body.dark[data-theme="aurora"].form-page .submit-button{background:var(--accent)!important;border-color:var(--accent)!important;color:var(--canvas)!important;font-weight:700}
body.dark[data-theme="aurora"] .form-footer{border-color:var(--line)!important;color:var(--muted)!important}
body.dark[data-theme="aurora"] .form-footer span:first-child{color:var(--text)!important}

/* ------------------------------------------- the spacing scale, spacious */
[data-theme="aurora"] .dashboard-overview{gap:28px!important}
[data-theme="aurora"] .card{padding:24px!important}
[data-theme="aurora"] .card-heading{padding-bottom:16px!important;margin-bottom:20px!important}
[data-theme="aurora"] .card-heading h2{font-size:18px!important;line-height:1.25!important}
[data-theme="aurora"] .card-heading p,
[data-theme="aurora"] .card-heading .dash-sub{font-size:13px!important;line-height:1.5!important}
[data-theme="aurora"] .statement-totals{gap:20px!important}
[data-theme="aurora"] .statement-totals>div{padding:6px 0!important}
[data-theme="aurora"] .statement-heading h2{font-size:17px!important}
[data-theme="aurora"] .overview-insights{gap:24px!important}
[data-theme="aurora"] .overview-support-grid{gap:24px!important}
[data-theme="aurora"] .passbook-row{padding:14px 0!important}
[data-theme="aurora"] .fp-event{padding:14px 0!important}
[data-theme="aurora"] .fp-event b{font-size:15px!important}
[data-theme="aurora"] .fp-acct{padding:22px 24px!important}
/* the narrow margin holds a statement heading in one piece: the title and the
   date keep their words, and the date steps to its own line rather than
   breaking in the middle of a month */
body[data-page="overview"] .overview-margin .statement-heading{flex-wrap:wrap;row-gap:6px;gap:12px}
body[data-page="overview"] .overview-margin .statement-heading h2{white-space:nowrap}
body[data-page="overview"] .overview-margin .statement-heading span{white-space:nowrap}
@media(min-width:1180px){
  body[data-page="overview"] .dashboard-overview{grid-template-columns:minmax(400px,440px) minmax(0,1fr)!important;column-gap:56px!important}
  body[data-page="overview"] .overview-margin{padding-right:24px!important}
}
@media(min-width:1500px){
  body[data-page="overview"] .dashboard-overview{grid-template-columns:minmax(300px,340px) minmax(0,1fr) minmax(300px,340px)!important;column-gap:44px!important}
}
@media(max-width:760px){
  .dashboard-overview{gap:18px!important}
  .card{padding:18px!important}
}

/* the owner console: people, not their finances, on the same glass */
[data-theme="aurora"] .admin-page{background:var(--canvas);color:var(--text)}
[data-theme="aurora"] .admin-page::before{content:"";position:fixed;inset:-10%;z-index:0;pointer-events:none;filter:blur(34px);
  background:radial-gradient(52vw 52vw at 10% 4%,rgba(94,234,212,.16),transparent 62%),radial-gradient(46vw 46vw at 88% 6%,rgba(167,139,250,.18),transparent 64%),radial-gradient(60vw 60vw at 62% 108%,rgba(196,245,66,.08),transparent 60%)}
[data-theme="aurora"] .admin-page>*{position:relative;z-index:1}
[data-theme="aurora"] .admin-main .card{
  border-radius:22px!important;border:1px solid rgba(255,255,255,.09)!important;color:var(--text);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.028))!important;
  box-shadow:0 34px 80px -46px rgba(0,0,0,.95),0 2px 10px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.12)!important;
  backdrop-filter:blur(20px) saturate(150%)}
[data-theme="aurora"] .admin-main h1{font-size:clamp(24px,2.8vw,32px)!important;font-weight:850!important;letter-spacing:-.035em!important}
[data-theme="aurora"] .admin-main h2{font-size:18px!important;font-weight:800!important;letter-spacing:-.02em!important;color:var(--text)!important}
[data-theme="aurora"] .admin-main .eyebrow{color:var(--faint)!important;font-size:11px!important;font-weight:800!important;letter-spacing:.15em!important}
[data-theme="aurora"] .admin-main .brand{color:var(--text)!important}
[data-theme="aurora"] .admin-main .table-wrap{border-color:var(--line)!important}
[data-theme="aurora"] .admin-main th{color:var(--muted)!important;font-size:12px!important;letter-spacing:.08em!important}
[data-theme="aurora"] .admin-main td{border-color:var(--line)!important;color:var(--muted)!important}
[data-theme="aurora"] .admin-main td strong{color:var(--text)!important}

/* Filled panels need the same inset on every route. These rules also beat the
   older document-layout rules that removed padding before Aurora added glass. */
:root{--fp-panel-space:24px;--fp-section-space:24px;--fp-heading-space:16px}
body[data-page] #view .card{
  min-width:0;padding:var(--fp-panel-space)!important}
body[data-page] #view .card-heading{
  flex-wrap:wrap;gap:12px;padding-top:0!important;
  padding-bottom:var(--fp-heading-space)!important;
  margin-top:0!important;margin-bottom:var(--fp-heading-space)!important}
body[data-page] #view .card-heading h2{margin:0}
body[data-page] #view .card-heading .text-button{margin:0}/* Containers carry the gutter; their child cards carry only their own inset. */
body[data-page="overview"] #view :is(.overview-spine,.overview-insights,.overview-support-grid){
  gap:var(--fp-section-space)!important}
body[data-page="overview"] #view .card{margin:0!important}
@media(max-width:760px){
  :root{--fp-panel-space:18px;--fp-section-space:18px}
  body[data-page] .content>.heading{
    display:flex!important;flex-flow:row wrap!important;gap:12px!important;
    padding:0 0 var(--space-4)!important;align-items:center!important}
  body[data-page] .content>.heading>div:first-child{flex:1 0 100%}
}

/* Text roles follow the active palette; semantic gain/loss/status colors stay
   with their components instead of leaking into headings and helper copy. */
body{--faint:var(--muted);color:var(--text)}
body[data-page] .content :is(h1,h2,h3){color:var(--text)!important}
body[data-page] .content>.heading #title{
  font-weight:800!important;line-height:1.15!important}body[data-page] #view :is(.card-heading p,.card-heading .dash-sub,.statement-heading>span,.premium-stat>span){
  color:var(--muted)!important;opacity:1}
body[data-page] #view :is(.card-heading p,.card-heading .dash-sub,.statement-heading>span){
  font-size:13px!important;font-weight:500!important;line-height:1.5!important}
@media(min-width:761px){body[data-page] aside #nav button:not(.active) :is(.workspace-page-label,.workspace-switch-icon){color:var(--muted)!important}
}
