
/* ---------- Steady's typefaces, self-hosted ----------------------------- */
/* Latin variable subsets, weights 100–900, served from the repo — this site
   never loads a font from a third party. Inter Tight above 20px, Inter at 20px
   and below. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VF.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-VF.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Everything inside the app — and the specimens that describe its brand —
   speaks Inter by default, whatever role the token used to point at. */
.st-frame,
.st-typespec,
.st-word {
  --font-display: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-small: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--font-small);
}

/* the two brand specimens that are set above 20px: the wordmark and the
   specimen headline read --font-display, so the token itself changes there */
.st-word,
.st-typespec p:first-child {
  --font-display: "Inter Tight", "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Inter Tight is reserved for type above 20px: headings and the big figures.
   The list is explicit because CSS cannot select on computed size. */
.st-frame .st-dash__title,
.st-frame .st-h,
.st-frame .st-total,
.st-frame .st-cardx__big,
.st-frame .st-cardx__num,
.st-frame .st-title,
.st-word {
  font-family: "Inter Tight", "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Mobile first: the base layer is the smallest screen. Every
   (min-width) block below adds room, never removes it. */

/* =========================================================================
   STEADY — Concept 02
   Brand + AI personal-finance product. The brand is monochrome on purpose:
   colour in this system means money moving, never identity.
   ========================================================================= */

/* ---------- brand specimens ---------------------------------------------- */

/* ---------- plan strip ---------------------------------------------------- */

/* ---------- window -------------------------------------------------------- */

/* ---------- rail ---------------------------------------------------------- */

/* ---------- main ---------------------------------------------------------- */

/* ---------- aside --------------------------------------------------------- */

/* ---------- page note ----------------------------------------------------- */

/* ---------- responsive ---------------------------------------------------- */

.st-frame {
  /* Her swatches, sampled from the mock: a warm grey base, three decor washes,
     and two status colours. Nothing here inverts in dark theme — the window is
     a product shot, and a product keeps its own light. */
  --st-base: #dcdddb;
  --st-lime: #dbfeb8;
  --st-blue: #c4e0f9;
  --st-indigo: #6c5bcd;
  --st-in: #0c8346;
  --st-out: #eb5160;

  --st-ink: #101112;
  --st-ink-2: rgba(16, 17, 18, 0.68);
  --st-muted: rgba(16, 17, 18, 0.52);

  /* one material, three thicknesses of glass */
  --st-glass: rgba(255, 255, 255, 0.56);
  --st-glass-2: rgba(255, 255, 255, 0.34);
  --st-glass-3: rgba(255, 255, 255, 0.78);
  --st-hair: rgba(255, 255, 255, 0.66);

  --st-paper: var(--st-glass);
  --st-paper-2: var(--st-glass-2);
  --st-line: rgba(16, 17, 18, 0.07);
  --st-line-2: rgba(16, 17, 18, 0.12);
  --st-out-soft: color-mix(in srgb, #eb5160 13%, transparent);
  --st-in-soft: color-mix(in srgb, #0c8346 12%, transparent);
  --st-radius: 24px;

  font-family: var(--font-small);
  color-scheme: light;
}
.st-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: clamp(26px, 3.4vw, 46px);
  padding-top: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--rule-strong);
}
.st-spec h3 {
  font-family: var(--font-small);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.st-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.st-plumb {
  width: 16px;
  height: 30px;
  flex: none;
}
.st-plumb line {
  stroke: currentColor;
  stroke-width: 2.4;
}
.st-plumb path {
  fill: currentColor;
}
.st-word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 520;
  letter-spacing: -0.045em;
}
.st-marksizes {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 16px;
  color: var(--ink);
}
.st-marksizes .st-plumb {
  width: 11px;
  height: 21px;
}
.st-marktile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: oklch(0.205 0.008 260);
  color: oklch(0.976 0.006 95);
}
.st-swatches {
  display: grid;
  gap: 8px;
}
.st-swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.625rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.st-swatch i {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: none;
  border: 1px solid oklch(0 0 0 / 0.12);
}
.st-swatch b {
  font-weight: 650;
  color: var(--ink);
}
.st-voice {
  display: grid;
  gap: 12px;
}
.st-voice p {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.st-voice dl {
  display: grid;
  gap: 8px;
}
.st-voice dt {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.st-voice dd {
  margin: 2px 0 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--ink-faint);
}
.st-typespec p:first-child {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.st-typespec p + p {
  margin-top: 10px;
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.st-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(26px, 3.4vw, 44px);
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
}
.st-plan > div > h3 {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.st-plan__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.st-plan__price span {
  font-family: var(--font-small);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  margin-left: 5px;
}
.st-plan p.small {
  font-family: var(--font-small);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}
.st-plan ul {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.st-plan li {
  display: flex;
  gap: 8px;
}
.st-plan li b {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  padding-top: 3px;
  flex: none;
  width: 34px;
}
.st-window {
  container-type: inline-size;
  container-name: steady;
  margin-top: clamp(24px, 3vw, 40px);
  background: var(--st-base);   /* border, radius and shadow: the shared mockup style (studio.css) */
}
.st-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
  color: rgba(16, 17, 18, 0.72);
}
.st-lights {
  display: flex;
  gap: 6px;
}
.st-lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--st-line-2);
}
.st-lights i:nth-child(1) {
  background: oklch(0.72 0.15 28);
}
.st-lights i:nth-child(2) {
  background: oklch(0.80 0.13 88);
}
.st-lights i:nth-child(3) {
  background: oklch(0.72 0.12 148);
}
.st-url {
  flex: 1;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-chrome__right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.st-app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  color: var(--st-ink);
  background: var(--st-base);
  isolation: isolate;
}

/* Three washes, in her order: the blue, then a small indigo, then the lime on
   top. Blurred hard enough that no edge is findable — the point is the light,
   not the shapes. */
.st-app::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 50% at 20% 14%, rgba(196, 224, 249, 1), rgba(196, 224, 249, 0) 66%),
    radial-gradient(26% 30% at 54% 16%, color-mix(in srgb, #6c5bcd 72%, transparent), transparent 68%),
    radial-gradient(44% 50% at 62% 66%, rgba(219, 254, 184, 1), rgba(219, 254, 184, 0) 68%);
  filter: blur(42px) saturate(118%);
}
.st-app[data-density="compact"] {
  height: 580px;
}
.st-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  border-right: 0;
  background: var(--st-paper-2);
  border-bottom: 1px solid var(--st-line);
}
.st-rail__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 14px;
}
.st-rail__brand .st-plumb {
  width: 12px;
  height: 22px;
}
.st-rail__brand span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 520;
  letter-spacing: -0.04em;
}
.st-rail h4 {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-muted);
  padding: 0 6px;
  margin: 8px 0 8px;
}
/* ---------- app v2: navigation, dashboard, ledgers ----------------------- */

.st-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 4px;
}
.st-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--st-ink-2);
  font-family: var(--font-small);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--beat), color var(--beat);
}
.st-nav__item i { font-style: normal; opacity: 0; font-size: 0.9rem; }
.st-nav__item:hover { background: rgba(31, 28, 24, 0.05); color: var(--st-ink); }
.st-nav__item.is-on { background: var(--st-ink); color: var(--st-paper); }
.st-nav__item.is-on i { opacity: 0.6; }

/* ---------- screen shell ------------------------------------------------- */

.st-screen {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
  padding: clamp(16px, 1.8vw, 24px);
  min-height: 100%;
}
.st-screen__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.st-eyebrow {
  font-family: var(--font-small);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 6px;
}
.st-total {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.st-total__sub, .st-sub {
  font-family: var(--font-small);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--st-ink-2);
  margin-top: 8px;
  max-width: 46ch;
}
.st-h {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.is-in { color: var(--st-in); }
.is-out { color: var(--st-out); }

/* ---------- the account bar and the breakdown --------------------------- */

.st-acctbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  background: var(--st-paper-2);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--beat), background-color var(--beat);
}
.st-acctbar:hover { border-color: var(--st-line-2); background: #fff; }
.st-acctbar__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--st-in); flex: none;
}
.st-acctbar__id { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.st-acctbar__id b { font-size: 0.8125rem; font-weight: 650; }
.st-acctbar__id span {
  font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted);
}
.st-acctbar__amt {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.st-acctbar__amt i { font-style: normal; color: var(--st-muted); }

.st-brow-list {
  border-top: 1px solid var(--st-line);
  display: flex;
  flex-direction: column;
}
.st-brow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 14px;
  align-items: baseline;
  gap: 4px 14px;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid var(--st-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--beat);
}
.st-brow:hover { background: var(--st-paper-2); }
.st-brow__label { font-size: 0.9375rem; font-weight: 550; }
.st-brow__amt {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.st-brow__note {
  font-family: var(--font-small);
  font-size: 0.6875rem;
  color: var(--st-muted);
  grid-column: 3;
  justify-self: end;
}
.st-brow__go {
  grid-column: 4; justify-self: end;
  color: var(--st-muted); font-size: 0.95rem;
}

/* ---------- findings, inline in a category ------------------------------ */

.st-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.st-block__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.st-block__head h4 {
  font-family: var(--font-small);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.st-find {
  border: 1px solid var(--st-line);
  border-left: 3px solid var(--st-out);
  border-radius: 10px;
  background: var(--st-paper-2);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-find.is-acted { border-left-color: var(--st-in); }
.st-find.is-dismissed { opacity: 0.62; }
.st-find__head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.st-find__figure {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 540;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.st-find__figure i {
  font-style: normal; font-family: var(--font-small);
  font-size: 0.6875rem; color: var(--st-muted); margin-left: 6px;
  letter-spacing: 0.02em;
}
.st-find__alt {
  font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted);
}
.st-find__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.st-find__dek { font-family: var(--font-small); font-size: 0.75rem; line-height: 1.55; color: var(--st-ink-2); }
.st-find__actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.st-find__result {
  font-family: var(--font-small); font-size: 0.75rem; line-height: 1.55;
  color: var(--st-ink-2); background: var(--st-in-soft);
  border-radius: 8px; padding: 10px 12px;
}
.st-evidence { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.st-evidence p { font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted); }
.st-evidence__stamp { color: var(--st-muted); display: inline-flex; }
.st-evidence__stamp .st-plumb { width: 12px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- tables ------------------------------------------------------ */

.st-table { width: 100%; border-collapse: collapse; }
.st-table tr { border-bottom: 1px solid var(--st-line); }
.st-table td { padding: 11px 4px; vertical-align: baseline; }
.st-table__date {
  width: 62px; font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.st-table__who b { display: block; font-size: 0.875rem; font-weight: 550; }
.st-table__who span { font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted); }
.st-table__amt {
  text-align: right; white-space: nowrap;
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 520;
  font-variant-numeric: tabular-nums;
}
.st-flag {
  display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 4px;
  font-style: normal; font-family: var(--font-small); font-size: 0.625rem;
  background: var(--st-out-soft); color: var(--st-out);
}
.st-empty {
  font-family: var(--font-small); font-size: 0.75rem; color: var(--st-muted);
  padding: 18px 4px;
}

/* ---------- chips ------------------------------------------------------- */

.st-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.st-chip {
  min-height: 40px; padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-small); font-size: 0.8125rem; font-weight: 600;
  color: var(--st-ink); cursor: pointer;
  transition: background-color var(--beat), color var(--beat), border-color var(--beat);
}
.st-chip:hover { border-color: var(--st-line-2); }
.st-chip.is-on { background: #0d0d0d; border-color: #0d0d0d; color: #ffffff; }

/* ---------- account list ------------------------------------------------ */

.st-accs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.st-acc {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--st-line);
}
.st-acc__bank {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--st-paper-2); border: 1px solid var(--st-line);
  font-family: var(--font-small); font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--st-ink-2); text-transform: uppercase;
}
.st-acc__id b { display: block; font-size: 0.875rem; font-weight: 600; }
.st-acc__id span { font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted); }
.st-acc__bal {
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 530;
  font-variant-numeric: tabular-nums;
}
.st-acc__acts { display: flex; gap: 2px; }
.st-acc.is-editing { display: block; padding: 14px 4px; }

/* ---------- forms ------------------------------------------------------- */

.st-form { display: flex; flex-direction: column; gap: 10px; }
.st-form--card {
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--st-paper-2);
}
.st-form__title {
  font-family: var(--font-small); font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--st-muted);
}
.st-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted);
}
.st-form input {
  min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--st-line-2); border-radius: 8px;
  background: #fff; color: var(--st-ink);
  font-family: var(--font-small); font-size: 0.8125rem;
}
.st-form input:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 1px; }
.st-form__row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

.st-confirm {
  border: 1px solid color-mix(in srgb, #eb5160 35%, transparent);
  background: color-mix(in srgb, #eb5160 5%, transparent);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.st-confirm p { font-family: var(--font-small); font-size: 0.75rem; line-height: 1.55; color: var(--st-ink-2); }

/* ---------- debt, subscriptions, goals ---------------------------------- */

.st-subhead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--font-small); font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--st-muted);
  margin-top: 8px;
}
.st-subhead span { letter-spacing: 0.06em; text-transform: none; font-size: 0.6875rem; }

.st-goals { display: grid; gap: 10px; grid-template-columns: 1fr; }
.st-goal {
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--st-paper-2);
}
.st-goal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.st-goal__head b { font-size: 0.875rem; font-weight: 600; }
.st-goal__head span {
  font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted);
  font-variant-numeric: tabular-nums;
}
.st-goal__amt {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 530;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.st-goal__amt i {
  font-style: normal; font-family: var(--font-small); font-size: 0.6875rem;
  color: var(--st-muted); font-weight: 400;
}
.st-bar {
  height: 5px; border-radius: 999px; background: rgba(31, 28, 24, 0.1);
  overflow: hidden;
}
.st-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: var(--st-ink);
}
.st-goal__foot {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted);
}
.st-goal__foot b { color: var(--st-ink-2); font-weight: 600; }

.st-subs { list-style: none; margin: 0; padding: 0; }
.st-subs__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--st-line);
}
.st-subs__name b { display: block; font-size: 0.8125rem; font-weight: 550; }
.st-subs__name span { font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted); }
.st-subs__row.is-flagged .st-subs__name b { color: var(--st-out); }
.st-subs__amt {
  font-family: var(--font-display); font-size: 0.875rem; font-variant-numeric: tabular-nums;
}
.st-accs--tight .st-acc { grid-template-columns: 34px minmax(0, 1fr) auto; }

.st-btn--ink {
  background: var(--st-ink); color: var(--st-paper); border: 1px solid var(--st-ink);
}
.st-btn--ink:hover { background: #000; }
.st-btn--danger { color: var(--st-out); }
.st-btn--danger:hover { background: var(--st-out-soft); }

@container steady (min-width: 761px) {
  .st-goals { grid-template-columns: 1fr 1fr; }
}

.st-aside {
  display: flex;
  flex-direction: row;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  border-left: 0;
  background: var(--st-paper-2);
  grid-column: 1 / -1;
  flex-wrap: wrap;
  border-top: 1px solid var(--st-line);
  overflow: visible;
}
.st-card {
  background: var(--st-paper);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 12px 13px 13px;
}
.st-card h4 {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 9px;
}
.st-next {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.st-next b {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 520;
  letter-spacing: -0.02em;
}
.st-next span {
  font-size: 0.625rem;
  color: var(--st-muted);
  font-variant-numeric: tabular-nums;
}
.st-card p {
  font-size: 0.6875rem;
  line-height: 1.55;
  color: var(--st-ink-2);
}
.st-card ul {
  display: grid;
  gap: 7px;
}
.st-card li {
  display: flex;
  gap: 8px;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--st-ink-2);
}
.st-card li::before {
  content: "—";
  color: var(--st-muted);
  flex: none;
}
.st-accounts {
  display: grid;
  gap: 8px;
}
.st-acct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.6875rem;
}
.st-acct span {
  color: var(--st-muted);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.st-pagenote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-small);
  font-size: 0.6875rem;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 96ch;
}
.st-pagenote .icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  color: var(--ink-faint);
}
.st-aside .st-card {
  flex: 1 1 100%;
}
.st-findings::-webkit-scrollbar {
  display: none;
}

@media (min-width: 781px) {

  .st-brand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-plan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 32px);
  }

  .st-app {
    grid-template-columns: 186px minmax(0, 1fr);
  }

  .st-rail {
    padding: 16px 12px 12px;
    border-right: 1px solid var(--st-line);
    border-bottom: revert;
  }

  .st-findings {
    display: grid;
    gap: 1px;
    overflow-x: revert;
    scrollbar-width: revert;
    padding-bottom: revert;
    -webkit-mask-image: revert;
    mask-image: revert;
  }

  .st-finding {
    align-items: baseline;
    flex: revert;
    width: revert;
    border: revert;
    background: transparent;
  }

  .st-finding[aria-current="true"] {
    box-shadow: 0 0 0 1px var(--st-line-2);
  }

  .st-rail__foot {
    display: grid;
  }

  .st-main {
    padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 40px) 30px;
  }

  .st-title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  }

  .st-figure__main {
    font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  }

  .st-aside {
    padding: 16px 14px;
  }

  .st-aside .st-card {
    flex: 1 1 220px;
  }

  .st-findings::-webkit-scrollbar {
    display: revert;
  }
}

@media (min-width: 1181px) {

  .st-brand {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .st-plan {
    grid-template-columns: 0.9fr 1.4fr 1.2fr;
  }

  .st-app {
    grid-template-columns: 208px minmax(0, 1fr) 272px;
    height: 580px;
  }

  .st-findings {
    max-height: revert;
  }

  .st-main {
    overflow: revert;
  }

  .st-aside {
    flex-direction: column;
    border-left: 1px solid var(--st-line);
    grid-column: revert;
    flex-wrap: revert;
    border-top: revert;
    overflow: revert;
  }

  .st-aside .st-card {
    flex: revert;
  }
}

/* WCAG 2.2 target size: the portal's placeholder links need 44px of height */
.st-portal__foot a,
.st-aside a,
.st-rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- app v2: structural rules the rewrite removed ----------------- */
/* The base .st-main rule sat inside the replaced range; the two remaining
   .st-main rules are min-width overrides, so without this the window clips
   its own screen instead of scrolling it. */
.st-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 18px 16px 24px;
}

.st-note {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--st-line);
  font-family: var(--font-small);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--st-muted);
  max-width: 58ch;
}
.st-note b { color: var(--st-ink-2); font-weight: 650; }

/* ---------- rail foot (restored; the button replaced a link) ------------- */
.st-rail__foot {
  padding: 10px 6px 2px;
  border-top: 1px solid var(--st-line);
  margin-top: 8px;
  display: none;          /* flex from the min-width block below */
  flex-direction: column;
  gap: 4px;
  font-size: 0.625rem;
  color: var(--st-muted);
}
.st-rail__link,
.st-rail__foot a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--st-muted);
  font-family: var(--font-small);
  font-size: 0.6875rem;
  text-align: left;
  cursor: pointer;
}
.st-rail__link:hover,
.st-rail__foot a:hover { color: var(--st-ink); }
.st-rail__link .icon { width: 15px; height: 15px; }
.st-rail__plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--st-line);
  font-family: var(--font-small);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
}
.st-rail__plan b { color: var(--st-ink); font-weight: 650; }

@media (min-width: 761px) {
  .st-rail__foot { display: flex; flex-direction: column; }
}

/* ---------- the window becomes a top-bar dashboard ----------------------- */
/* Layout language borrowed from finance dashboards in general — a bar, a grid
   of cards, one chart, one progress card. The identity is Steady's own: warm
   paper instead of cool grey, ink instead of orange, and no invented sparkline
   the data cannot support. */

.st-app {
  display: flex;
  flex-direction: column;
  height: auto;
  color: var(--st-ink);
  background: var(--st-base);
}

.st-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand right"
    "nav nav";
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  background: transparent;
}
.st-appbrand { grid-area: brand; justify-self: start; }
.st-top__right { grid-area: right; }
.st-nav { grid-area: nav; }
/* the meta line is decoration — it goes before it starts clipping */
.st-top__meta { display: none; }

@container steady (min-width: 761px) {
  .st-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav right";
    gap: 16px;
    padding: 14px 18px;
  }
  .st-top__meta { display: inline; }
}
.st-top__right { justify-self: end; }
.st-appbrand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(16, 17, 18, 0.06);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 640;
  letter-spacing: -0.035em;
  color: var(--st-ink);
  white-space: nowrap;
}
.st-appbrand .st-plumb { width: 11px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.st-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
}
.st-nav::-webkit-scrollbar { display: none; }
.st-nav__item {
  flex: 0 0 auto;
  width: auto;
  justify-content: center;
  white-space: nowrap;
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--st-ink);
  font-family: var(--font-small);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--beat), color var(--beat), box-shadow var(--beat);
}
.st-nav__item:hover { background: rgba(255, 255, 255, 0.78); }
.st-nav__item.is-on {
  background: #0d0d0d;
  color: #ffffff;
  box-shadow: 0 6px 16px -8px rgba(16, 17, 18, 0.6);
}

.st-top__right { display: flex; align-items: center; gap: 12px; }
.st-top__meta {
  font-family: var(--font-small);
  font-size: 0.6875rem;
  color: var(--st-ink-2);
  white-space: nowrap;
}
.st-top__meta--quiet { color: var(--st-muted); }
.st-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--st-ink); color: var(--st-paper);
  font-family: var(--font-small); font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- the dashboard grid ------------------------------------------ */

.st-screen--dash { gap: 14px; }
.st-dash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 2px 6px;
}
.st-dash__lead { display: flex; flex-direction: column; gap: 8px; }
.st-sub {
  font-family: var(--font-small);
  font-size: 0.9375rem;
  color: var(--st-ink-2);
  max-width: 46ch;
}
.st-cardx__deltas { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.st-cardx__deltas b { font-weight: 650; font-variant-numeric: tabular-nums; }
.st-dash__title {
  overflow-wrap: anywhere;
  hyphens: auto;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.st-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;   /* cards keep their own height, like the reference */
}
.st-grid--three { margin-top: 0; }

.st-cardx {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--st-glass);
  border: 1px solid var(--st-hair);
  border-radius: var(--st-radius);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 18px 40px -30px rgba(16, 17, 18, 0.45);
}
.st-cardx__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.st-cardx .st-btn--text {
  font-size: 0.6875rem;
  min-height: 32px;
  padding: 4px 8px;
}
.st-label {
  font-family: var(--font-small);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.st-cardx__big {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.st-cardx__num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.st-cardx__foot {
  font-family: var(--font-small);
  font-size: 0.6875rem;
  color: var(--st-muted);
  margin-top: auto;
}
.st-delta {
  font-family: var(--font-small);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
  line-height: 1.45;
}
.st-delta.is-in { color: var(--st-in); }
.st-delta.is-out { color: var(--st-out); }
.st-delta.is-flat { color: var(--st-muted); }
.st-delta i { font-style: normal; font-weight: 400; color: var(--st-muted); }

.st-mini { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-mini li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 9px;
  border-radius: 16px;
  background: var(--st-glass-2);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.st-mini__dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-small); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--st-ink-2); text-transform: uppercase;
}
.st-mini__id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-mini__id b {
  font-family: var(--font-small); font-size: 0.8125rem; font-weight: 600;
  color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-mini__id i { font-style: normal; font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted); }
.st-mini__amt {
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--st-ink);
}

/* ---------- the one chart ------------------------------------------------ */

.st-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}
.st-bars__col {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 68px;
  align-items: center;
  gap: 8px;
}
.st-bars__bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(31, 28, 24, 0.16);
}
.st-bars__col.is-top .st-bars__bar { background: var(--st-ink); }
.st-bars__lab {
  font-family: var(--font-small);
  font-size: 0.625rem;
  color: var(--st-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-bars__col.is-top .st-bars__lab { color: var(--st-ink); font-weight: 600; }
.st-bars__val {
  font-family: var(--font-small);
  font-size: 0.625rem;
  color: var(--st-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.st-bars__col.is-top .st-bars__val { color: var(--st-ink); font-weight: 700; }

/* ---------- the goals card, inverted ------------------------------- */

.st-cardx--goals {
  background: #101112;
  border-color: #101112;
  color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.st-cardx--goals .st-label { color: rgba(255, 255, 255, 0.62); }
.st-cardx--goals .st-btn--text { color: #ffffff; }
.st-cardx--goals .st-btn--text:hover { background: rgba(255, 255, 255, 0.12); }
.st-goalrows { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.st-goalrows li { display: flex; flex-direction: column; gap: 6px; }
.st-goalrows__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.st-goalrows__top b { font-size: 0.8125rem; font-weight: 600; }
.st-goalrows__top span {
  font-family: var(--font-small); font-size: 0.6875rem;
  color: rgba(250, 246, 238, 0.72); font-variant-numeric: tabular-nums;
}
.st-cardx--goals .st-bar { background: rgba(255, 255, 255, 0.16); }
.st-cardx--goals .st-bar span { background: #ffffff; }
.st-goalrows__foot {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--font-small); font-size: 0.625rem;
  color: rgba(250, 246, 238, 0.55);
}

@container steady (min-width: 761px) {
  /* four columns, filled: balance 2 | income 1 | expenses 1, then chart 2 | goals 2 */
  .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-cardx--balance { grid-column: span 2; }
  .st-cardx--chart { grid-column: span 2; }
  .st-cardx--goals { grid-column: span 2; }
  .st-grid > .st-cardx:not(.st-cardx--balance):not(.st-cardx--chart):not(.st-cardx--goals) { grid-column: span 1; }
  .st-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container steady (min-width: 1001px) {
  .st-cardx { padding: 18px; }
}

@media (min-width: 901px) {
  .st-main { overflow-y: auto; }
}

/* =========================================================================
   The refresh: one material for the whole app.
   Her mock gives the system a base grey, three washes of light, and glass.
   The dashboard is recomposed later; these rules give the other six screens
   the same surface and corner so nothing reads as a half-finished screen.
   ========================================================================= */

/* .st-btn never had a base rule — every "Add account" was a black rectangle */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(16, 17, 18, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--st-ink);
  font-family: var(--font-small);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--beat), color var(--beat), border-color var(--beat);
}
.st-btn:hover { background: rgba(255, 255, 255, 0.85); }
.st-btn--ink {
  background: #0d0d0d;
  color: #ffffff;
  border-color: #0d0d0d;
  box-shadow: 0 6px 16px -10px rgba(16, 17, 18, 0.7);
}
.st-btn--ink:hover { background: #000000; }
.st-btn--text {
  border-color: transparent;
  background: transparent;
  min-height: 36px;
  padding: 6px 10px;
}
.st-btn--text:hover { background: rgba(255, 255, 255, 0.55); }
.st-btn.st-btn--danger { color: var(--st-out); border-color: transparent; background: transparent; }
.st-btn.st-btn--danger:hover { background: var(--st-out-soft); }

/* the sheets: any list or block that sits directly on a screen becomes glass */
.st-screen > .st-block,
.st-screen > .st-accs,
.st-screen > .st-subs,
.st-screen > .st-table {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--st-glass);
  border: 1px solid var(--st-hair);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px -34px rgba(16, 17, 18, 0.4);
}

/* rows inside a sheet lose their rules and become tiles */
.st-screen > .st-accs .st-acc {
  border-bottom: 0;
  border-radius: 14px;
  padding: 10px 12px;
}
.st-screen > .st-accs .st-acc + .st-acc { margin-top: 2px; }
.st-screen > .st-accs .st-acc:hover { background: rgba(255, 255, 255, 0.45); }
.st-screen > .st-accs .st-acc__bank {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
}

.st-goal {
  background: var(--st-glass);
  border: 1px solid var(--st-hair);
  border-radius: 18px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.st-screen > .st-subs .st-subs__row { border-bottom-color: rgba(16, 17, 18, 0.06); }
.st-screen > .st-subs .st-subs__row:last-child { border-bottom: 0; }

/* the finding card inside the sheets */
.st-find {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--st-hair);
}

/* ---------- the product's own night ------------------------------------ */
/* The site's dark theme does not reach inside the window; this does. Same
   three washes, dimmed, with the glass flipped and the ink reversed. */

.st-frame[data-product-theme="dark"] {
  --st-base: #141517;
  --st-ink: #f3f3f1;
  --st-ink-2: rgba(243, 243, 241, 0.72);
  --st-muted: rgba(243, 243, 241, 0.56);

  --st-glass: rgba(255, 255, 255, 0.10);
  --st-glass-2: rgba(255, 255, 255, 0.06);
  --st-glass-3: rgba(255, 255, 255, 0.16);
  --st-hair: rgba(255, 255, 255, 0.13);

  --st-line: rgba(255, 255, 255, 0.10);
  --st-line-2: rgba(255, 255, 255, 0.18);
  --st-out: color-mix(in srgb, #eb5160 80%, #ffffff);
  --st-in: color-mix(in srgb, #0c8346 70%, #ffffff);
  --st-out-soft: rgba(255, 143, 140, 0.16);
  --st-in-soft: rgba(87, 217, 154, 0.16);

  color-scheme: dark;
}

.st-frame[data-product-theme="dark"] .st-app { color: var(--st-ink); }

/* the washes keep their hue but lose their glare */
.st-frame[data-product-theme="dark"] .st-app::before {
  opacity: 0.42;
  filter: blur(46px) saturate(90%);
}

/* the black pill was the accent; at night the accent is paper */
.st-frame[data-product-theme="dark"] :is(.st-nav__item.is-on, .st-chip.is-on) {
  background: #f3f3f1;
  color: #101112;
  border-color: #f3f3f1;
}
.st-frame[data-product-theme="dark"] .st-nav__item { background: rgba(255, 255, 255, 0.08); }
.st-frame[data-product-theme="dark"] .st-nav__item:hover { background: rgba(255, 255, 255, 0.16); }

.st-frame[data-product-theme="dark"] .st-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--st-ink);
}

.st-frame[data-product-theme="dark"] .st-btn--ink {
  background: #f3f3f1;
  color: #101112;
  border-color: #f3f3f1;
}
.st-frame[data-product-theme="dark"] .st-btn:not(.st-btn--text):not(.st-btn--ink) {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--st-ink);
}

/* the goals card was the one dark card; at night it is the one light one */
.st-frame[data-product-theme="dark"] .st-cardx--goals {
  background: #f3f3f1;
  border-color: #f3f3f1;
  color: #101112;
}
.st-frame[data-product-theme="dark"] .st-cardx--goals .st-label { color: rgba(16, 17, 18, 0.6); }
.st-frame[data-product-theme="dark"] .st-cardx--goals .st-btn--text { color: #101112; }
.st-frame[data-product-theme="dark"] .st-cardx--goals .st-btn--text:hover { background: rgba(16, 17, 18, 0.08); }
.st-frame[data-product-theme="dark"] .st-cardx--goals .st-bar { background: rgba(16, 17, 18, 0.14); }
.st-frame[data-product-theme="dark"] .st-cardx--goals .st-bar span { background: #101112; }
.st-frame[data-product-theme="dark"] .st-goalrows__top span,
.st-frame[data-product-theme="dark"] .st-goalrows__foot { color: rgba(16, 17, 18, 0.62); }

.st-frame[data-product-theme="dark"] .st-mini li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}
.st-frame[data-product-theme="dark"] .st-mini__dot {
  background: rgba(255, 255, 255, 0.14);
  color: var(--st-ink);
}

.st-frame[data-product-theme="dark"] .st-chrome {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  color: rgba(243, 243, 241, 0.72);
}

.st-frame[data-product-theme="dark"] .st-bars__bar { background: rgba(255, 255, 255, 0.18); }
.st-frame[data-product-theme="dark"] .st-bars__col.is-top .st-bars__bar { background: var(--st-ink); }

.st-frame[data-product-theme="dark"] .st-appbrand {
  background: rgba(255, 255, 255, 0.9);
  color: #101112;
}
.st-frame[data-product-theme="dark"] .st-avatar {
  background: #f3f3f1;
  color: #101112;
}

/* the sheets the other six screens sit on */
.st-frame[data-product-theme="dark"] :is(.st-block, .st-accs, .st-subs, .st-table) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
.st-frame[data-product-theme="dark"] .st-find {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
.st-frame[data-product-theme="dark"] .st-goal {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}
.st-frame[data-product-theme="dark"] .st-acc__bank {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ---------- inside the case-study cards ---------------------------------- */
/* the brand specimens and the plan sit in a card's media slot: the card gives
   the room, so their own top rule and margins go */
.cs-media > .st-brand,
.cs-media > .st-plan { margin-top: 0; }
.cs-media > .st-brand { padding-top: 0; border-top: 0; }
.cs-media > .st-plan { border-top: 1px solid var(--rule-strong); }
.st-stage .st-window { margin-top: clamp(16px, 2vw, 24px); }


/* fullscreen (studio.js): the window takes the screen, the app scrolls inside */
.studio-full .st-frame[data-device="desktop"] .st-window { max-width: none; }

/* one height for both screens (--mock-h, studio.css): the window is a
   column, the app fills what the chrome leaves, the main column scrolls */
.st-window { height: var(--mock-h); display: flex; flex-direction: column; }
.st-window .st-app { flex: 1 1 auto; min-height: 0; height: auto; }

/* ---------- the Stipje logo (her drawing, Nov 2026) -------------------------
   Icon: a solid circle in the ink, three dots across the middle, the middle
   one the assistant's violet (a "someone is about to speak" indicator).
   Wordmark: Inter Tight with a dotless i whose tittle is the violet dot.
   The side dots take the ground colour, so the icon works on light and dark. */
.st-mark { width: 28px; height: 28px; flex: none; overflow: visible; }
.st-mark__disc { fill: currentColor; }
.st-mark__dot { fill: var(--st-mark-hole, #fff); }
.st-mark__dot--ai { fill: var(--st-indigo, #6c5bcd); }
/* the app-bar pill stays light in dark mode; only the stamp sits on the dark ground */
.st-frame[data-product-theme="dark"] .st-evidence__stamp { --st-mark-hole: var(--st-base); }
.st-marksizes .st-mark:first-child { width: 40px; height: 40px; }
.st-marksizes .st-mark { width: 24px; height: 24px; }
.st-marksizes .st-mark:last-child { width: 16px; height: 16px; }
.st-rail__brand .st-mark { width: 22px; height: 22px; }
.st-evidence__stamp .st-mark { width: 16px; height: 16px; }

.st-word { font-weight: 640; letter-spacing: -0.04em; }
/* the logo: her wordmark file (assets/img/stipje/stipje.svg), inlined. The
   S's height matches the cap height the type used to have, so the sizes set
   on .st-word still hold: 0.94em tall, the descenders included. */
.st-word:has(.st-logo) { display: inline-flex; line-height: 1; }
.st-logo { display: block; height: 0.94em; width: auto; fill: currentColor; overflow: visible; }
.st-logo__dot { fill: var(--st-indigo, #6c5bcd); }        /* the icon's middle dot */
.st-spec__sub { margin-top: 22px; }

/* the app bar: the logo where it fits, the icon where it doesn't (her rule) */
.st-appbrand .st-word--app { display: none; font-size: inherit; letter-spacing: inherit; }
.st-appbrand:has(.st-mark) { padding: 0; background: transparent; box-shadow: none; }
.st-appbrand .st-mark { width: 40px; height: 40px; }
.st-frame[data-product-theme="dark"] .st-appbrand:has(.st-mark) { background: transparent; color: #f3f3f1; }
.st-frame[data-product-theme="dark"] .st-appbrand .st-mark { --st-mark-hole: var(--st-base); }
@container steady (min-width: 761px) {
  .st-appbrand:has(.st-mark) { padding: 11px 20px 11px 20px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 2px rgba(16, 17, 18, 0.06); }
  .st-frame[data-product-theme="dark"] .st-appbrand:has(.st-mark) { background: rgba(255, 255, 255, 0.9); color: #101112; }
  .st-appbrand .st-mark { display: none; }
  .st-appbrand .st-word--app { display: inline-block; }
}

/* thinking: the three dots breathe, one after another (used while the
   assistant prepares a suggestion) */
.st-mark.is-thinking .st-mark__dot { animation: st-think 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.st-mark.is-thinking .st-mark__dot:nth-of-type(3) { animation-delay: 0.15s; }
.st-mark.is-thinking .st-mark__dot:nth-of-type(4) { animation-delay: 0.3s; }
@keyframes st-think { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-1.6px); } }
@media (prefers-reduced-motion: reduce) { .st-mark.is-thinking .st-mark__dot { animation: none; } }

/* ---------- step 2: the gentle assistant (Nov 2026) -----------------------
   Next best actions on home, "Why this?" on every card, and small hints in
   the screens where a suggestion lives. Violet is the assistant's colour and
   nothing else's; green and red stay money in and out. */
.st-nbablock { gap: 12px; }
.st-nbahead { align-items: center; justify-content: flex-start; gap: 12px; }
.st-nbahead__mark { display: inline-flex; color: var(--st-ink); }
.st-nbahead__mark .st-mark { width: 34px; height: 34px; }
.st-nbahead h4 {
  font-family: var(--font-small); font-size: 0.875rem; font-weight: 650;
  letter-spacing: 0; text-transform: none; color: var(--st-ink);
}
.st-nbahead p { font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted); margin-top: 1px; }
.st-nbahead__count {
  margin-left: auto; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-small); font-size: 0.6875rem; font-weight: 600;
  background: color-mix(in oklab, var(--st-indigo) 14%, transparent); color: var(--st-ink);
}
.st-nbablock__wait { font-family: var(--font-small); font-size: 0.75rem; color: var(--st-muted); padding: 4px 0 6px 46px; }
.st-nbablock :is(.st-nbablock__done, .st-nbablock__later, .st-nbablock__clear) {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-small); font-size: 0.75rem; color: var(--st-ink-2); padding-inline: 4px;
}
.st-nbablock__done b { color: var(--st-in); }

/* the suggestion card: worth first, then the ask, then the reason */
.st-nba { border-left-width: 1px; gap: 6px; }
.st-nba .st-find__head { align-items: center; justify-content: space-between; }
.st-nba__tag {
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-small); font-size: 0.6875rem; font-weight: 600;
  background: color-mix(in oklab, var(--st-indigo) 13%, transparent);
  color: color-mix(in oklab, var(--st-indigo) 62%, var(--st-ink));
}
.st-nba .st-find__figure { font-size: 1.125rem; font-weight: 600; color: var(--st-in); }
.st-nba .st-find__figure i { color: var(--st-ink-2); }
.st-nba .st-find__title { font-size: 1rem; }
.st-nba.is-acted { border-color: color-mix(in oklab, var(--st-in) 40%, transparent); }
.st-nba.is-acted .st-find__result { background: color-mix(in oklab, var(--st-in) 10%, transparent); color: var(--st-ink); }
.st-nba.is-later, .st-nba.is-never { opacity: 0.72; }
.st-find__state { font-family: var(--font-small); font-size: 0.75rem; color: var(--st-muted); margin-right: 4px; }
.st-find__why[aria-expanded="true"] { background: color-mix(in oklab, var(--st-indigo) 12%, transparent); }

/* Why this? */
.st-why {
  display: grid; gap: 8px; margin-top: 4px; padding: 14px 16px;
  border-radius: 14px; background: color-mix(in oklab, var(--st-indigo) 7%, rgba(255, 255, 255, 0.7));
  border: 1px solid color-mix(in oklab, var(--st-indigo) 18%, transparent);
}
.st-why__lead { font-family: var(--font-small); font-size: 0.6875rem; font-weight: 650; color: color-mix(in oklab, var(--st-indigo) 62%, var(--st-ink)); }
.st-why__rows { display: grid; gap: 2px; }
.st-why__rows li {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  padding: 7px 0; border-top: 1px solid var(--st-line);
  font-family: var(--font-small); font-size: 0.75rem;
}
.st-why__rows li.is-fact { grid-template-columns: minmax(0, 1fr); }
.st-why__rows span { color: var(--st-muted); font-variant-numeric: tabular-nums; }
.st-why__rows b { font-weight: 550; }
.st-why__rows i { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }
.st-why__rows i.is-in { color: var(--st-in); }
.st-why__rows i.is-out { color: var(--st-out); }
.st-why__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.st-why__meta div { display: grid; gap: 1px; }
.st-why__meta dt { font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted); }
.st-why__meta dd { font-family: var(--font-small); font-size: 0.75rem; color: var(--st-ink); }
.st-why__never { justify-self: start; justify-content: flex-start; text-align: left; margin-left: -10px; color: var(--st-ink-2); }

/* the small hints in the screens */
.st-hint {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 12px; border-radius: 12px;
  background: color-mix(in oklab, var(--st-indigo) 8%, rgba(255, 255, 255, 0.6));
  font-family: var(--font-small); font-size: 0.75rem; line-height: 1.45; color: var(--st-ink);
}
.st-hint b { font-weight: 650; }
.st-hint__mark { display: inline-flex; color: var(--st-ink); margin-top: 1px; }
.st-hint__mark .st-mark { width: 16px; height: 16px; }
.st-goal .st-hint { margin-top: 10px; }
.st-flag.st-flag--hint {
  background: color-mix(in oklab, var(--st-indigo) 13%, transparent);
  color: color-mix(in oklab, var(--st-indigo) 62%, var(--st-ink));
}

/* the night */
.st-frame[data-product-theme="dark"] .st-why { background: color-mix(in oklab, var(--st-indigo) 16%, rgba(255, 255, 255, 0.04)); }
.st-frame[data-product-theme="dark"] .st-hint { background: color-mix(in oklab, var(--st-indigo) 16%, rgba(255, 255, 255, 0.04)); }
.st-frame[data-product-theme="dark"] :is(.st-nba__tag, .st-why__lead, .st-flag--hint) { color: color-mix(in oklab, var(--st-indigo) 35%, var(--st-ink)); }
.st-frame[data-product-theme="dark"] :is(.st-nbahead__mark, .st-hint__mark) .st-mark { --st-mark-hole: var(--st-base); }
/* narrow: the reasons' rows stack the date over the name, and nothing overlaps */
.st-nbahead__count { white-space: nowrap; }
.st-why__rows li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date amt" "who amt"; row-gap: 0; }
.st-why__rows li span { grid-area: date; }
.st-why__rows li b { grid-area: who; min-width: 0; overflow-wrap: anywhere; }
.st-why__rows li i { grid-area: amt; align-self: center; }
.st-why__rows li.is-fact { grid-template-areas: "who"; }
.st-why { padding: 12px 14px; }
@container steady (min-width: 761px) {
  .st-why { padding: 14px 16px; }
  .st-why__rows li { grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-areas: "date who amt"; }
}

/* ---------- the nav, TweetSpot's way (her brief, Nov 2026) ----------------
   Wide: a sidebar — the wordmark at its top, then the five screens as rows,
   each a Material Symbols Rounded icon (weight 300) and its label; the chosen
   one sits on a black pill with a filled icon in the lime and white text.
   Narrow: the same five become a bottom bar — icon over label, a black state
   layer behind the chosen icon, a blurred backdrop and no border.
   .st-top dissolves (display: contents) so its brand, nav and right-hand
   corner can be placed on the app's own grid. */
.st-app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "brand right"
    "main main"
    "nav nav";
}
.st-top { display: contents; }
.st-appbrand { grid-area: brand; margin: 12px 0 2px 14px; align-self: center; }
.st-top__right { grid-area: right; margin: 12px 14px 2px 0; }
.st-main { grid-area: main; }

.st-nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  margin: 0;
  padding: 8px 6px 16px;
  background: color-mix(in oklab, var(--st-base) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  z-index: 3;
}
.st-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: color-mix(in oklab, var(--st-ink) 78%, transparent);
  font-family: var(--font-small);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
}
.st-nav__item:hover { background: transparent; }
.st-nav__state {
  display: grid;
  place-items: center;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  transition: background-color 160ms;
}
.st-nav__icon { width: 24px; height: 24px; fill: currentColor; grid-area: 1 / 1; }
.st-nav__icon--fill { display: none; }
.st-nav__item:hover .st-nav__state { background: color-mix(in oklab, var(--st-lime) 70%, transparent); }
.st-nav__item.is-on { background: transparent; box-shadow: none; color: var(--st-ink); font-weight: 700; }
.st-nav__item.is-on .st-nav__state { background: #0d0d0d; color: var(--st-lime); }
.st-nav__item.is-on .st-nav__icon { display: none; }
.st-nav__item.is-on .st-nav__icon--fill { display: block; }

@container steady (min-width: 761px) {
  .st-app {
    grid-template-columns: 220px minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "brand . right"
      "nav main main";
  }
  .st-appbrand { margin: 18px 0 0 18px; justify-self: start; }
  .st-top__right { margin: 18px 22px 0 0; }
  .st-nav {
    display: flex;
    flex-direction: column;
    align-self: start;
    gap: 4px;
    padding: 26px 14px 18px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .st-nav__item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.8125rem;
    color: color-mix(in oklab, var(--st-ink) 82%, transparent);
    transition: background-color 160ms, color 160ms;
  }
  .st-nav__state { width: 24px; height: 24px; border-radius: 0; background: transparent !important; }
  .st-nav__item:hover { background: color-mix(in oklab, var(--st-lime) 70%, transparent); }
  .st-nav__item.is-on { background: #0d0d0d; color: #fff; box-shadow: 0 6px 16px -10px rgba(16, 17, 18, 0.7); }
  .st-nav__item.is-on .st-nav__state { color: var(--st-lime); }
}

/* the night: the black pill becomes paper, the lime icon turns to ink */
.st-frame[data-product-theme="dark"] .st-nav__item { background: transparent; color: color-mix(in oklab, var(--st-ink) 80%, transparent); }
.st-frame[data-product-theme="dark"] .st-nav__item.is-on { background: transparent; color: var(--st-ink); }
.st-frame[data-product-theme="dark"] .st-nav__item.is-on .st-nav__state { background: #f3f3f1; color: #101112; }
.st-frame[data-product-theme="dark"] .st-nav__item:hover .st-nav__state { background: rgba(255, 255, 255, 0.12); }
@container steady (min-width: 761px) {
  .st-frame[data-product-theme="dark"] .st-nav__item:hover { background: rgba(255, 255, 255, 0.1); }
  .st-frame[data-product-theme="dark"] .st-nav__item.is-on { background: #f3f3f1; color: #101112; }
  .st-frame[data-product-theme="dark"] .st-nav__item.is-on .st-nav__state { background: transparent; color: #101112; }
}
@media (prefers-reduced-motion: reduce) { .st-nav__state, .st-nav__item { transition: none; } }

/* ---------- top bar and padding (her brief, Nov 2026) ----------------------
   The wordmark loses its pill and grows; the side padding comes in on both
   sizes; on wide screens the rail's buttons stretch to one width, flush with
   the rail's left edge, and the wordmark lines up with their icons. */
.st-appbrand,
.st-appbrand:has(.st-mark),
.st-frame[data-product-theme="dark"] .st-appbrand,
.st-frame[data-product-theme="dark"] .st-appbrand:has(.st-mark) {
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--st-ink);
}
.st-appbrand { margin: 12px 0 2px 12px; }
.st-top__right { margin: 12px 12px 2px 0; }
.st-main { padding-inline: 12px; }
.st-main > .st-screen { padding-inline: 0; }   /* the screen added another 24px a side */
.st-nav { padding-inline: 4px; }
@container steady (min-width: 761px) {
  .st-appbrand,
  .st-appbrand:has(.st-mark),
  .st-frame[data-product-theme="dark"] .st-appbrand:has(.st-mark) { padding: 0; background: transparent; box-shadow: none; }
  .st-appbrand .st-word--app { font-size: 2.25rem; }
  .st-appbrand { margin: 22px 0 0 22px; }
  .st-top__right { margin: 22px 20px 0 0; }
  .st-app { grid-template-columns: 200px minmax(0, 1fr) auto; }
  .st-nav { align-items: stretch; padding: 26px 8px 18px; }
  .st-nav__item { width: 100%; }
  .st-main { padding-inline: 8px 20px; }
}

/* the washes, mirrored (her call): the blue moves to the right and the light
   behind the wordmark goes lime, so the violet dot above the p stands out */
.st-app::before { transform: scaleX(-1); }

/* ---------- the rail, refined (her brief, Nov 2026) -----------------------
   Hover: see-through white. Chosen: black pill, white label and white filled
   icon, same weight as the rest, no shadow. Wide: the buttons are pills. */
.st-nav__item:hover .st-nav__state { background: rgba(255, 255, 255, 0.6); }
.st-nav__item.is-on { font-weight: 600; box-shadow: none; }
.st-nav__item.is-on .st-nav__state { color: #fff; }
@container steady (min-width: 761px) {
  .st-nav__item { border-radius: 999px; }
  .st-nav__item:hover { background: rgba(255, 255, 255, 0.6); }
  .st-nav__item.is-on,
  .st-nav__item.is-on:hover { background: #0d0d0d; color: #fff; box-shadow: none; }
  .st-nav__item.is-on .st-nav__state { color: #fff; }
}
/* her call: the chosen item keeps the outline icon (no filled version) */
.st-nav__item.is-on .st-nav__icon { display: block; }
.st-nav__item.is-on .st-nav__icon--fill { display: none; }

/* ---------- the rail folds (her brief, Nov 2026) --------------------------
   Wide screens only: a menu button left of the wordmark folds the rail to
   its icons; folded, each icon shows its label as a tooltip on hover and on
   keyboard focus. The label stays in the button for screen readers. */
.st-railtoggle { display: none; }
@container steady (min-width: 761px) {
  .st-app {
    grid-template-areas:
      "brand brand right"
      "nav main main";
    transition: grid-template-columns 220ms cubic-bezier(0.2, 0, 0, 1);
  }
  .st-appbrand { display: inline-flex; align-items: center; gap: 12px; margin-left: 16px; }
  .st-railtoggle {
    display: grid; place-items: center;
    width: 40px; height: 40px; flex: none;
    border: 0; border-radius: 999px; background: transparent;
    color: var(--st-ink); cursor: pointer;
    transition: background-color 160ms;
  }
  .st-railtoggle:hover { background: rgba(255, 255, 255, 0.6); }
  .st-railtoggle svg { width: 24px; height: 24px; fill: currentColor; }
  .st-nav__item { padding-inline: 16px 14px; }

  .st-frame[data-rail="collapsed"] .st-app { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .st-frame[data-rail="collapsed"] .st-nav { position: relative; z-index: 6; }   /* tooltips over the glass sheets */
  .st-frame[data-rail="collapsed"] .st-nav__item {
    justify-content: center; position: relative;
    width: 44px; height: 44px; min-height: 0; padding: 0; align-self: center;   /* folded: round buttons */
  }
  .st-frame[data-rail="collapsed"] .st-nav__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .st-frame[data-rail="collapsed"] .st-nav__item::after {
    content: attr(data-tip);
    position: absolute; left: calc(100% + 10px); top: 50%;
    transform: translate(-4px, -50%);
    padding: 6px 10px; border-radius: 8px;
    background: #0d0d0d; color: #fff;
    font-family: var(--font-small); font-size: 0.75rem; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 140ms, transform 140ms;
    z-index: 5;
  }
  .st-frame[data-rail="collapsed"] .st-nav__item:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(0, -50%); }
  .st-frame[data-product-theme="dark"] .st-railtoggle:hover { background: rgba(255, 255, 255, 0.1); }
  .st-frame[data-product-theme="dark"][data-rail="collapsed"] .st-nav__item::after { background: #f3f3f1; color: #101112; }
}
@media (prefers-reduced-motion: reduce) {
  .st-app, .st-railtoggle, .st-frame .st-nav__item::after { transition: none !important; }
}

/* ---------- bars that float (her brief, Nov 2026) --------------------------
   The content scrolls under both bars. Top bar: one height, the same air
   above and below a larger avatar; once the screen has scrolled it frosts
   what passes under it. Wide: the rail's Home, the greeting and the month
   tabs share one line. Narrow: the five screens sit in one frosted pill
   that floats over the content. */
.st-frame { --st-top-h: 64px; }
.st-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
  grid-row: 1;
  height: var(--st-top-h);
  padding: 12px;
  position: relative;
  z-index: 4;
  background: transparent;
  transition: background-color 200ms, -webkit-backdrop-filter 200ms, backdrop-filter 200ms;
}
.st-frame[data-scrolled] .st-top {
  background: color-mix(in oklab, var(--st-base) 18%, transparent);   /* her call: the content shows through, blurred */
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}
.st-top .st-appbrand, .st-top .st-top__right { margin: 0; grid-area: auto; }
.st-avatar { width: 40px; height: 40px; font-size: 0.6875rem; }

.st-app {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--st-top-h) minmax(0, 1fr) auto;
  grid-template-areas: none;
}
.st-main {
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  padding-top: calc(var(--st-top-h) + 4px);
  padding-bottom: 104px;                  /* room to scroll past the floating nav */
}

/* narrow: the frosted pill */
.st-nav {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  margin: 0 12px 14px;
  padding: 6px;
  gap: 2px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--st-base) 58%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 34px -18px rgba(16, 17, 18, 0.45);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  z-index: 4;
}
.st-nav__item {
  padding: 8px 0 7px;
  gap: 3px;
  border-radius: 999px;
  font-weight: 600;
}
.st-nav__state { width: 24px; height: 24px; border-radius: 0; background: transparent !important; }
.st-nav__item:hover { background: rgba(255, 255, 255, 0.6); }
.st-nav__item.is-on, .st-nav__item.is-on:hover { background: #0d0d0d; color: #fff; }
.st-nav__item.is-on .st-nav__state { color: #fff; }
.st-frame[data-product-theme="dark"] .st-nav { border-color: rgba(255, 255, 255, 0.12); }
.st-frame[data-product-theme="dark"] .st-nav__item:hover { background: rgba(255, 255, 255, 0.1); }
.st-frame[data-product-theme="dark"] .st-nav__item.is-on,
.st-frame[data-product-theme="dark"] .st-nav__item.is-on:hover { background: #f3f3f1; color: #101112; }
.st-frame[data-product-theme="dark"] .st-nav__item.is-on .st-nav__state { color: #101112; background: transparent !important; }

@container steady (min-width: 761px) {
  .st-top { padding: 12px 20px 12px 16px; }
  .st-app,
  .st-frame[data-rail="collapsed"] .st-app {
    grid-template-rows: var(--st-top-h) minmax(0, 1fr);
    grid-template-areas: none;
  }
  .st-app { grid-template-columns: 200px minmax(0, 1fr); }
  .st-frame[data-rail="collapsed"] .st-app { grid-template-columns: 72px minmax(0, 1fr); }
  .st-main {
    grid-column: 2;
    grid-row: 1 / 3;
    padding-top: calc(var(--st-top-h) - 4px);
    padding-bottom: 30px;
  }
  .st-nav {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
    padding: 20px 8px 18px;           /* Home's top on the first cards' top */
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .st-nav__item { padding: 10px 14px 10px 16px; gap: 12px; }
  .st-frame[data-rail="collapsed"] .st-nav__item { padding: 0; }
  .st-nav__item.is-on .st-nav__state { color: #fff; }
}

/* narrow: smaller labels, tucked under their icons (her call) */
.st-nav__item { gap: 0; font-size: 0.625rem; }
.st-nav__label { line-height: 1.1; margin-top: -2px; }   /* the glyph's own air + this ≈ 3px between icon and label */
@container steady (min-width: 761px) {
  .st-nav__item { gap: 12px; font-size: 0.8125rem; }
  .st-nav__label { line-height: normal; margin-top: 0; }
}

/* ---------- top bar: search, notifications, a violet avatar (her brief) -----
   Two round buttons in the month tabs' see-through white; they are props and
   do nothing. The avatar's initials and the icon's middle dot take a lighter
   violet so they hold up on black; on the light disc of the night theme they
   go back to the deeper violet. The wordmark's dot sits on light ground and
   keeps the deep violet. */
.st-frame { --st-violet-light: color-mix(in srgb, #6c5bcd 62%, #ffffff); }
.st-top__right { gap: 8px; }
.st-iconbtn {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.55);
  color: var(--st-ink);
  cursor: pointer;
  transition: background-color var(--beat), border-color var(--beat);
}
.st-iconbtn:hover { background: rgba(255, 255, 255, 0.85); }
.st-iconbtn svg { width: 22px; height: 22px; fill: currentColor; }
.st-frame[data-product-theme="dark"] .st-iconbtn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.st-frame[data-product-theme="dark"] .st-iconbtn:hover { background: rgba(255, 255, 255, 0.16); }
.st-top__right .st-avatar { margin-left: 4px; }

.st-avatar { color: var(--st-violet-light); }
.st-frame[data-product-theme="dark"] .st-avatar { color: color-mix(in srgb, #6c5bcd 85%, #000000); }
.st-mark__dot--ai { fill: var(--st-violet-light, color-mix(in srgb, #6c5bcd 62%, #ffffff)); }   /* the fallback reaches the brand specimens outside the app */
.st-frame[data-product-theme="dark"] .st-appbrand .st-mark__dot--ai,
.st-frame[data-product-theme="dark"] :is(.st-nbahead__mark, .st-hint__mark) .st-mark__dot--ai { fill: var(--st-indigo, #6c5bcd); }

/* narrow only: the greeting, its line and the month tabs centred, a size
   smaller, with more air before the content (her brief) */
@container steady (max-width: 760px) {
  .st-dash { flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-bottom: 14px; }
  .st-dash__lead { align-items: center; gap: 6px; }
  .st-dash__title { font-size: 1.5rem; }
  .st-dash .st-sub { font-size: 0.8125rem; margin-inline: auto; }
}

/* ---------- sentence case, darker muted text (her brief, Nov 2026) ----------
   Inside the prototype every all-caps label and title is set in sentence
   case, without the wide tracking, a size up and semibold so it still reads
   as a label. The bank and account monograms stay capitals — they are marks,
   not labels. The brand specimens on the case page are not part of the app.
   Muted and secondary text get darker (lighter at night). */
.st-frame :is(.st-chrome__right, .st-rail h4, .st-eyebrow, .st-block__head h4, .st-form__title,
              .st-subhead, .st-card h4, .st-acct span, .st-label) {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  font-weight: 600;
}
.st-frame .st-subhead { font-size: 0.875rem; color: var(--st-ink-2); }
.st-frame .st-subhead span { font-weight: 500; }
.st-frame .st-chrome__right { font-size: 0.6875rem; font-weight: 500; }
.st-frame { --st-muted: rgba(16, 17, 18, 0.64); --st-ink-2: rgba(16, 17, 18, 0.76); }
.st-frame[data-product-theme="dark"] { --st-muted: rgba(243, 243, 241, 0.68); --st-ink-2: rgba(243, 243, 241, 0.8); }

/* ---------- home, layout A (her pick, Nov 2026) ----------------------------
   Money first: balance, income, expenses on one row. Then the next best action
   and the savings goals on the left, recent transactions down the right.
   Cards in a row stretch to one height, so no gap opens above a card — only
   the gutter. Narrow: two columns (income and expenses side by side), the
   rest full width. */
.st-grid--home {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
#stMain .st-grid--home > .st-cardx--balance,
#stMain .st-grid--home > .st-cardx--nba,
#stMain .st-grid--home > .st-cardx--recent,
#stMain .st-grid--home > .st-cardx--journey { grid-column: 1 / -1; }
@container steady (min-width: 761px) {
  .st-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "bal bal in  out"
      "nba nba rec rec"
      "goal goal rec rec";
  }
  #stMain .st-grid--home > .st-cardx--balance { grid-area: bal; }
  #stMain .st-grid--home > .st-cardx--in { grid-area: in; }
  #stMain .st-grid--home > .st-cardx--out { grid-area: out; }
  #stMain .st-grid--home > .st-cardx--nba { grid-area: nba; }
  #stMain .st-grid--home > .st-cardx--recent { grid-area: rec; }
  #stMain .st-grid--home > .st-cardx--journey { grid-area: goal; }
}

/* balance: the accounts become a row of chips, so the card is no taller
   than income and expenses beside it */
.st-accchips { list-style: none; margin: auto 0 0; padding: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-accchips li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-small); font-size: 0.75rem;
}
.st-accchips .st-mini__dot { width: 24px; height: 24px; font-size: 0.625rem; }
.st-accchips span:not(.st-mini__dot) { color: var(--st-ink-2); }
.st-accchips b { font-weight: 650; font-variant-numeric: tabular-nums; }
.st-frame[data-product-theme="dark"] .st-accchips li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }

/* the next best action, one at a time; the stack peeks out under the card */
.st-cardx--nba { gap: 10px; }
.st-cardx--nba .st-nbahead { justify-content: flex-start; align-items: center; gap: 10px; }
.st-cardx--nba .st-nbahead__mark .st-mark { width: 26px; height: 26px; }
.st-cardx--nba.has-stack { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 5px 0 -2px rgba(255, 255, 255, 0.42), 0 10px 0 -5px rgba(255, 255, 255, 0.26); }
.st-frame[data-product-theme="dark"] .st-cardx--nba.has-stack { box-shadow: 0 5px 0 -2px rgba(255, 255, 255, 0.07), 0 10px 0 -5px rgba(255, 255, 255, 0.04); }
.st-nba--solo,
.st-frame[data-product-theme="dark"] .st-nba--solo { padding: 0; border: 0; background: transparent; box-shadow: none; }
.st-nba--in { animation: st-nba-in 360ms cubic-bezier(0.2, 0, 0, 1); }
@keyframes st-nba-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.st-nba__next { align-self: flex-start; margin-left: -10px; }
.st-cardx--nba .st-nbablock__wait { padding: 2px 0 6px 36px; }

/* recent transactions */
.st-recent { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; }
.st-recent li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 0; border-top: 1px solid var(--st-line);
}
.st-recent li:first-child { border-top: 0; }
.st-recent__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); font-family: var(--font-small); font-size: 0.75rem; font-weight: 700;
}
.st-recent__id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-recent__id b { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-recent__id i { font-style: normal; font-family: var(--font-small); font-size: 0.75rem; color: var(--st-muted); }
.st-recent__id .st-flag { margin: 3px 0 0; align-self: flex-start; }
.st-recent__amt { font-family: var(--font-small); font-size: 0.875rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-recent__amt.is-in { color: var(--st-in); }
.st-frame[data-product-theme="dark"] .st-recent__mark { background: rgba(255, 255, 255, 0.12); }

/* savings goals: the dot's journey */
.st-journey { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.st-journey__top { display: flex; align-items: center; gap: 8px; }
.st-journey__top b { font-size: 0.875rem; font-weight: 600; }
.st-journey__top span { margin-left: auto; font-family: var(--font-small); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-hicon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.st-journey__route { position: relative; height: 20px; margin: 6px 24px 4px 0; }
.st-journey__route::before {           /* the way still to go: dotted */
  content: ""; position: absolute; left: 0; right: 0; top: 9px;
  border-top: 2px dotted color-mix(in oklab, var(--st-ink) 30%, transparent);
}
.st-journey__path {                     /* the way already come: solid */
  position: absolute; left: 0; top: 8px; height: 4px; border-radius: 4px;
  background: var(--st-ink);
  transition: width 900ms cubic-bezier(0.2, 0, 0, 1);
}
.st-journey__dot {
  position: absolute; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--st-indigo, #6c5bcd);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--st-indigo, #6c5bcd) 22%, transparent);
  transform: translateX(-50%);
  transition: left 900ms cubic-bezier(0.2, 0, 0, 1);
}
.st-journey__dot.is-hopping { animation: st-hop 900ms cubic-bezier(0.2, 0, 0, 1); }
@keyframes st-hop {
  0% { transform: translate(-50%, 0); }
  30% { transform: translate(-50%, -9px); }
  60% { transform: translate(-50%, 0); }
  75% { transform: translate(-50%, -3px); }
  100% { transform: translate(-50%, 0); }
}
.st-journey__flag { position: absolute; right: -24px; top: -2px; width: 20px; height: 20px; fill: currentColor; }
.st-journey__foot { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-small); font-size: 0.75rem; color: var(--st-ink-2); }
.st-journey__foot b { font-weight: 650; color: var(--st-ink); border-radius: 6px; padding: 0 3px; margin: 0 -3px; }
.st-journey__foot b.is-new { animation: st-new 2.4s ease-out; background: color-mix(in oklab, var(--st-indigo) 14%, transparent); }
@keyframes st-new { 0% { background: color-mix(in oklab, var(--st-indigo) 40%, transparent); } 100% { background: color-mix(in oklab, var(--st-indigo) 14%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .st-nba--in, .st-journey__dot.is-hopping, .st-journey__foot b.is-new { animation: none; }
  .st-journey__path, .st-journey__dot { transition: none; }
}
.st-cardx--nba :is(.st-nbablock__done, .st-nbablock__later, .st-nbablock__clear) {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-small); font-size: 0.75rem; color: var(--st-ink-2);
}
.st-cardx--nba .st-nbablock__later .st-btn { min-height: 32px; padding: 4px 8px; font-size: 0.75rem; }

/* ---------- home: golden columns (her wireframe, Nov 2026) -----------------
   Wide: two rows at 1.618 : 1 — balance (its three accounts as white tiles)
   | goals; income + expenses | total savings over left to spend — then one
   row at 1 : 1.618, transactions | next best action. Cards in a row share a
   height. Narrow: one column, income/expenses and the two short cards in pairs. */
.st-gold { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.st-gold + .st-gold { margin-top: 0; }
.st-gold__pair, .st-gold__stack { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-gold > .st-cardx--journey { order: 5; }
.st-gold--flip > .st-cardx--nba { order: -1; }
@container steady (min-width: 761px) {
  .st-gold { grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); }
  .st-gold--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); }
  .st-gold > .st-cardx--journey, .st-gold--flip > .st-cardx--nba { order: 0; }
  .st-gold__stack { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
}

.st-acctiles { list-style: none; margin: auto 0 0; padding: 4px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-acctiles li {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 12px; border-radius: 16px; background: #ffffff;
}
.st-acctiles__top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; min-width: 0; }
.st-acctiles .st-mini__dot { width: 26px; height: 26px; flex: none; font-size: 0.6875rem; }
.st-acctiles__bank { font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-acctiles__name { font-family: var(--font-small); font-size: 0.75rem; color: var(--st-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-acctiles__amt { font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.st-frame[data-product-theme="dark"] .st-acctiles li { background: rgba(255, 255, 255, 0.08); }
@container steady (max-width: 520px) {
  .st-acctiles { grid-template-columns: minmax(0, 1fr); }
  .st-acctiles li { flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; }
  .st-acctiles__top { margin: 0; flex: none; }
  .st-acctiles__bank { display: none; }
  .st-acctiles__name { flex: 1; font-size: 0.8125rem; color: var(--st-ink); }
}

.st-cardx--line { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding-block: 14px; }
.st-cardx__line { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.st-cardx__line.is-in { color: var(--st-in); }
@container steady (max-width: 760px) {
  .st-cardx--line { flex-direction: column; align-items: flex-start; gap: 4px; }
}
#stMain .st-gold > * { grid-column: auto; grid-area: auto; }   /* the old dashboard's span rules don't reach here */

/* the next best action card fills its height with the rest of the queue */
.st-upnext { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--st-line); }
.st-upnext__head { font-family: var(--font-small); font-size: 0.75rem; font-weight: 600; color: var(--st-ink-2); margin-bottom: 4px; }
.st-upnext ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.st-upnext button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 8px; margin-inline: -8px; width: calc(100% + 16px); border-radius: 12px;
  transition: background-color 160ms;
}
.st-upnext button:hover { background: rgba(255, 255, 255, 0.6); }
.st-upnext button:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 1px; }
.st-upnext__title { font-size: 0.8125rem; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-upnext__worth { font-family: var(--font-small); font-size: 0.8125rem; font-weight: 650; color: var(--st-in); white-space: nowrap; }
.st-frame[data-product-theme="dark"] .st-upnext button:hover { background: rgba(255, 255, 255, 0.08); }
@container steady (max-width: 520px) {
  .st-upnext button { grid-template-columns: minmax(0, 1fr) auto; }
  .st-upnext .st-nba__tag { display: none; }
}

/* her call (Nov 2026): no gradient washes — the app sits on its plain base grey */
.st-app::before { display: none; }
/* without the washes, green and red sit on plain grey and lighter cards, so
   as text they need more depth to pass AA — same hues, inside the app only */
.st-frame:not([data-product-theme="dark"]) .st-app {
  --st-out: color-mix(in srgb, #eb5160 78%, #000000);
  --st-in: color-mix(in srgb, #0c8346 95%, #000000);
}

/* the screen shrank to the window's height and its cards spilled past it, so
   the bottom padding sat behind the cards, not after them: the screen now
   keeps its full height and the padding follows the last card (her catch) */
.st-main > .st-screen { flex: none; }

/* ---------- the new palette and look (her brief, Nov 2026) -----------------
   Palette: violet #6c5bcd (the assistant), coral #ff8573, aqua #44cfcb,
   yellow #e8ff80, lime #abf970; money: green #0c8346 in, red #eb5160 out.
   Look: solid light-grey cards on the base grey — no glass, no hairline, no
   shadow — white tiles inside them, grey pill buttons, quiet sentence-case
   card titles. Inside the prototype only; the case page keeps its swatches. */
.st-frame {
  --st-indigo: #6c5bcd;
  --st-coral: #ff8573;
  --st-aqua: #44cfcb;
  --st-yellow: #e8ff80;
  --st-lime: #abf970;
  --st-card: #f1f1f1;
  --st-tile: #ffffff;
  --st-chip: #dcdddb;
  --st-violet-light: color-mix(in srgb, #6c5bcd 62%, #ffffff);
}
.st-frame:not([data-product-theme="dark"]) .st-app {
  /* as text on these greys the money colours need a little depth for AA */
  --st-in: color-mix(in srgb, #0c8346 95%, #000000);
  --st-out: color-mix(in srgb, #eb5160 78%, #000000);
}
.st-frame[data-product-theme="dark"] {
  --st-card: #1f2023;
  --st-tile: #2a2b2f;
  --st-chip: #34363a;
  --st-in: color-mix(in srgb, #0c8346 70%, #ffffff);
  --st-out: color-mix(in srgb, #eb5160 80%, #ffffff);
}

/* solid cards everywhere in the app */
.st-frame :is(.st-cardx, .st-screen > .st-block, .st-screen > .st-accs, .st-screen > .st-subs, .st-screen > .st-table, .st-goal) ,
.st-frame[data-product-theme="dark"] :is(.st-cardx, .st-block, .st-accs, .st-subs, .st-table, .st-goal) {
  background: var(--st-card);
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.st-frame .st-cardx--nba.has-stack { box-shadow: none; }
.st-frame :is(.st-find, .st-recent__mark, .st-acctiles li, .st-goalcard),
.st-frame[data-product-theme="dark"] :is(.st-find, .st-recent__mark, .st-acctiles li, .st-goalcard) { background: var(--st-tile); border: 0; }
.st-frame .st-nba--solo { background: transparent; }

/* card titles: quiet, sentence case, ink */
.st-frame .st-cardx .st-label { font-size: 0.875rem; font-weight: 500; color: var(--st-ink); }
.st-frame .st-cardx__head { align-items: center; min-height: 32px; }

/* grey pill buttons in card heads */
.st-btn.st-btn--pill {
  min-height: 30px; padding: 4px 12px; border: 0; border-radius: 999px;
  background: var(--st-chip); color: var(--st-ink);
  font-size: 0.75rem; font-weight: 600;
}
.st-btn.st-btn--pill:hover { background: color-mix(in oklab, var(--st-chip) 82%, var(--st-ink)); }

/* balance */
.st-vs { display: flex; align-items: center; gap: 8px; font-family: var(--font-small); font-size: 0.75rem; color: var(--st-ink-2); }
.st-vs__pill { padding: 2px 8px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-vs__pill.is-in { background: color-mix(in oklab, #0c8346 16%, transparent); color: var(--st-in); }
.st-vs__pill.is-out { background: color-mix(in oklab, #eb5160 16%, transparent); color: var(--st-out); }
.st-acctiles__swatch { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.st-acctiles__swatch.is-aqua { background: var(--st-aqua); }
.st-acctiles__swatch.is-lime { background: var(--st-lime); }
.st-acctiles__swatch.is-coral { background: var(--st-coral); }
.st-acctiles__bank { color: var(--st-ink); font-size: 0.75rem; font-weight: 500; }
.st-acctiles__name { font-size: 0.6875rem; }
@container steady (max-width: 520px) { .st-acctiles__swatch { width: 22px; height: 22px; border-radius: 7px; } }

/* savings goals: one goal, a fat yellow bar, dots */
.st-cardx--journey { gap: 10px; }
.st-goalcard { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; flex: 1; justify-content: space-between; }
.st-goalcard__top { display: flex; align-items: center; gap: 10px; }
.st-goalcard__top b { font-size: 0.875rem; font-weight: 500; }
.st-goalcard__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--st-yellow); color: #101112; }
.st-goalcard__icon .st-hicon { width: 20px; height: 20px; }
.st-goalbar { height: 56px; border-radius: 14px; background: var(--st-chip); overflow: hidden; }
.st-goalbar__fill {
  display: flex; align-items: center; height: 100%; min-width: 64px;
  border-radius: 14px; background: var(--st-yellow); color: #101112;
  transition: width 900ms cubic-bezier(0.2, 0, 0, 1);
}
.st-goalbar__fill span { padding-left: 12px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.st-goalcard__foot { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-ink-2); }
.st-goalcard__foot b { color: var(--st-ink); font-weight: 650; border-radius: 6px; padding: 0 3px; margin: 0 -3px; }
.st-goalcard__foot b.is-new { animation: st-new 2.4s ease-out; background: color-mix(in oklab, var(--st-indigo) 14%, transparent); }
.st-goaldots { display: flex; justify-content: center; gap: 0; margin-bottom: -6px; }
.st-goaldots__dot {                    /* a 24px button, drawn as a 12px ring */
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; display: grid; place-items: center;
}
.st-goaldots__dot::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid color-mix(in oklab, var(--st-ink) 45%, transparent);
}
.st-goaldots__dot.is-on::before { background: var(--st-ink); border-color: var(--st-ink); }
.st-goaldots__dot:focus-visible { outline: 2px solid var(--st-ink); outline-offset: -2px; }

/* left to spend: what's gone in black, the runway in lime to red */
.st-cardx--left { gap: 6px; }
.st-cardx__big--sm { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.st-cardx__of { font-family: var(--font-small); font-size: 0.75rem; color: var(--st-ink-2); margin-top: -2px; }
.st-spendbar {
  position: relative; height: 22px; margin-top: auto; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, var(--st-lime) 0%, var(--st-yellow) 35%, var(--st-coral) 70%, #eb5160 100%);
}
.st-spendbar__used { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: #101112; }
.st-frame[data-product-theme="dark"] .st-spendbar__used { background: #6c5bcd; }   /* violet at night (her call) */

/* the new violet reaches the tags, hints and Why this? through --st-indigo;
   the chosen nav pill and the app-bar wordmark dot follow too */
@media (prefers-reduced-motion: reduce) { .st-goalbar__fill { transition: none; } .st-goalcard__foot b.is-new { animation: none; } }

/* each goal in its own palette colour; paging slides the next one in (her brief) */
.st-goalcard.is-yellow { --goal: var(--st-yellow); }
.st-goalcard.is-aqua { --goal: var(--st-aqua); }
.st-goalcard.is-coral { --goal: var(--st-coral); }
.st-goalcard.is-lime { --goal: var(--st-lime); }
.st-goalcard :is(.st-goalcard__icon, .st-goalbar__fill) { background: var(--goal, var(--st-yellow)); }
.st-cardx--journey { overflow: hidden; }
.st-goalcard--next { animation: st-goal-next 420ms cubic-bezier(0.2, 0, 0, 1); }
.st-goalcard--prev { animation: st-goal-prev 420ms cubic-bezier(0.2, 0, 0, 1); }
@keyframes st-goal-next { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes st-goal-prev { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }
.st-goalcard--next .st-goalbar__fill, .st-goalcard--prev .st-goalbar__fill { animation: st-goal-grow 700ms 120ms cubic-bezier(0.2, 0, 0, 1) both; transform-origin: left; }
@keyframes st-goal-grow { from { clip-path: inset(0 100% 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@media (prefers-reduced-motion: reduce) {
  .st-goalcard--next, .st-goalcard--prev, .st-goalcard--next .st-goalbar__fill, .st-goalcard--prev .st-goalbar__fill { animation: none; }
}

/* her tidy (Nov 2026): transaction avatars on the pill-button grey; the
   suggestion on show sits straight on its card, no white tile behind it */
.st-frame .st-recent li .st-recent__mark,
.st-frame[data-product-theme="dark"] .st-recent li .st-recent__mark { background: var(--st-chip); }
.st-frame .st-cardx--nba .st-nba--solo,
.st-frame[data-product-theme="dark"] .st-cardx--nba .st-nba--solo { background: transparent; padding: 0; }


/* ---------- money and violet, one source (her check, Nov 2026) --------------
   Her swatches are the truth: green #0c8346, red #eb5160, violet #6c5bcd.
   Large figures (24px and up) show them exactly; small amounts sit a touch
   deeper in light mode (green 95%, red 78% with black) because #eb5160 as
   small text on the card grey is 3.2:1 and AA needs 4.5. At night they lift. */
.st-frame:not([data-product-theme="dark"]) :is(.st-h, .st-cardx__num, .st-cardx__big, .st-cardx__line).is-out { color: #eb5160; }
.st-frame:not([data-product-theme="dark"]) :is(.st-h, .st-cardx__num, .st-cardx__big, .st-cardx__line).is-in { color: #0c8346; }
.st-vs__pill.is-in { background: color-mix(in srgb, #0c8346 16%, transparent); }
.st-vs__pill.is-out { background: color-mix(in srgb, #eb5160 16%, transparent); }
/* on tinted or base-grey ground small money text needs a step more depth */
.st-frame:not([data-product-theme="dark"]) .st-vs__pill.is-in { color: color-mix(in srgb, #0c8346 78%, #000000); }
.st-frame:not([data-product-theme="dark"]) .st-vs__pill.is-out { color: color-mix(in srgb, #eb5160 66%, #000000); }
.st-frame:not([data-product-theme="dark"]) .st-sub .is-in { color: color-mix(in srgb, #0c8346 82%, #000000); }
.st-frame:not([data-product-theme="dark"]) .st-sub .is-out { color: color-mix(in srgb, #eb5160 68%, #000000); }
/* the account squares carry the bank's monogram (her call) */
.st-acctiles__swatch {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  color: #101112; font-family: var(--font-small); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.02em;
}
@container steady (max-width: 520px) { .st-acctiles__swatch { width: 30px; height: 30px; border-radius: 9px; font-size: 0.5625rem; } }
/* the Accounts screen's bank marks get the same palette squares as My balance */
.st-frame .st-acc__bank:is(.is-aqua, .is-lime, .is-coral),
.st-frame[data-product-theme="dark"] .st-acc__bank:is(.is-aqua, .is-lime, .is-coral) {
  border: 0; border-radius: 10px; color: #101112; font-size: 0.625rem; letter-spacing: 0.02em;
}
.st-frame .st-acc__bank.is-aqua { background: var(--st-aqua); }
.st-frame .st-acc__bank.is-lime { background: var(--st-lime); }
.st-frame .st-acc__bank.is-coral { background: var(--st-coral); }

/* Accounts screen (her brief): every account is its own card on the page
   grey, the gutter between them; name and type sit closer; balance, Edit and
   Remove get more air; the hover stays, lifting the card to the tile white */
.st-frame .st-screen > .st-accs,
.st-frame[data-product-theme="dark"] .st-screen > .st-accs {
  background: transparent; padding: 0; border-radius: 0; gap: 14px;
}
.st-frame .st-screen > .st-accs .st-acc {
  background: var(--st-card); border-radius: 22px; padding: 14px 18px;
  transition: background-color 160ms ease;
}
.st-frame .st-screen > .st-accs .st-acc + .st-acc { margin-top: 0; }
.st-frame .st-screen > .st-accs .st-acc:hover { background: var(--st-tile); }
.st-screen > .st-accs .st-acc__id b { line-height: 1.25; }
.st-screen > .st-accs .st-acc__id span { display: block; margin-top: 0; line-height: 1.3; }
.st-screen > .st-accs .st-acc { column-gap: 12px; }
.st-screen > .st-accs .st-acc__acts { gap: 10px; margin-left: 12px; }
@media (prefers-reduced-motion: reduce) { .st-frame .st-screen > .st-accs .st-acc { transition: none; } }
/* narrow: name and balance share the first line, Edit and Remove go under the name */
@container steady (max-width: 520px) {
  .st-frame .st-screen > .st-accs .st-acc { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 4px; padding: 14px 16px 10px; }
  .st-screen > .st-accs .st-acc__acts { grid-column: 2 / -1; margin-left: -12px; gap: 6px; }
}

/* Income (her brief): a lone suggestion is the card itself, not a white tile
   inside a grey sheet; the transaction list gets real side padding (a
   collapsed table ignores its own) and the date column sits closer to the name */
.st-frame .st-screen > .st-block:has(> .st-nba):not(:has(> :not(.st-nba))),
.st-frame[data-product-theme="dark"] .st-screen > .st-block:has(> .st-nba):not(:has(> :not(.st-nba))) {
  background: transparent; padding: 0; border-radius: 0;
}
.st-frame .st-screen > .st-block:not(:has(> :not(.st-nba))) > .st-nba,
.st-frame[data-product-theme="dark"] .st-screen > .st-block:not(:has(> :not(.st-nba))) > .st-nba {
  background: var(--st-card); border-radius: 22px; padding: 18px 20px;
}
.st-screen > .st-table td:first-child { padding-left: 20px; }
.st-screen > .st-table td:last-child { padding-right: 20px; }
.st-screen > .st-table .st-table__date { width: 44px; padding-right: 0; }
.st-screen > .st-table tr:last-child { border-bottom: 0; }
.st-screen > .st-table .st-table__date { width: 1%; padding-right: 16px; }   /* shrink to the date */
/* "cancelled" flags on their pink tint: a step deeper for AA (was 4.18) */
.st-frame:not([data-product-theme="dark"]) .st-flag:not(.st-flag--hint) { color: color-mix(in srgb, #eb5160 66%, #000000); }
.st-frame[data-product-theme="dark"] .st-flag:not(.st-flag--hint) { color: color-mix(in srgb, #eb5160 66%, #ffffff); }
/* several suggestions (Expenses, Savings): each its own card, the gutter between */
.st-frame .st-screen > .st-block:has(> .st-nba):not(:has(> :not(.st-nba))) { display: flex; flex-direction: column; gap: 14px; }
.st-frame .st-screen > .st-block:not(:has(> :not(.st-nba))) > .st-nba + .st-nba { margin-top: 0; }

/* transaction lists (Income, Expenses, Savings): the description sits right
   under the vendor, as on the Accounts cards (her brief) */
.st-table__who b { line-height: 1.25; }
.st-table__who { font-size: 0.6875rem; line-height: 1.35; }   /* the description stays inline so its flags sit beside it */


/* Expenses (her brief): debt cards get the Left to spend treatment — big
   balance, "of" line, a bar whose black part is what's paid off — with the
   runway turned round: red at the start, green at payoff */
.st-debts { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@container steady (min-width: 761px) { .st-debts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-cardx--debt { gap: 6px; }
.st-cardx--debt .st-cardx__head .st-cardx__of { margin: 0; }
.st-cardx--debt .st-spendbar { margin-top: 10px; }
.st-cardx--debt .st-goal__foot { margin-top: 4px; }
.st-spendbar--debt {
  background: linear-gradient(90deg, #eb5160 0%, var(--st-coral) 30%, var(--st-yellow) 65%, var(--st-lime) 100%);
}


/* Savings (her brief): goals lead, each the home card's goal on its own card,
   three in a row (stacked when narrow); the accounts below match Accounts */
.st-goalrow { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@container steady (min-width: 761px) { .st-goalrow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-frame .st-goalcard.st-goalcard--solo,
.st-frame[data-product-theme="dark"] .st-goalcard.st-goalcard--solo {
  background: var(--st-card); border-radius: 22px; padding: 18px; justify-content: flex-start;
}
.st-goalcard--solo .st-goalcard__top b { flex: 1; min-width: 0; }
.st-goalcard__month { font-family: var(--font-small); font-size: 0.6875rem; color: var(--st-ink-2); white-space: nowrap; }
.st-goalcard--solo .st-hint { margin: 2px 0 0; }
.st-frame .st-screen > .st-accs--tight .st-acc { grid-template-columns: 34px minmax(0, 1fr) auto; }


/* ---------- the brand moodboard (her brief, Nov 2026) ----------------------
   A bento board on Stipje's ink, after the brand boards she sent: every tile
   is built from Stipje's own logo, palette, type and screens. Mobile first:
   one column, two from 561px, the full board from 901px. */
.st-bento {
  display: grid; gap: 12px; padding: 12px; border-radius: 28px;
  background: #101112; color: #101112;
  grid-template-columns: minmax(0, 1fr);
  font-family: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
.st-tile {
  position: relative; overflow: hidden; border-radius: 18px;
  padding: clamp(18px, 2.4vw, 32px); background: #f1f1f1;
  display: flex; flex-direction: column; gap: 10px; min-height: 180px;
}
.st-tile p { margin: 0; }
.st-tile__small { font-size: 0.8125rem; line-height: 1.4; }
.st-tile__mark .st-mark { width: 36px; height: 36px; }

/* logo on a soft wash of the palette */
.st-tile--logo {
  align-items: center; justify-content: center; min-height: 220px;
  background:
    radial-gradient(45% 70% at 12% 20%, color-mix(in srgb, #44cfcb 70%, transparent), transparent 70%),
    radial-gradient(40% 70% at 88% 85%, color-mix(in srgb, #ff8573 60%, transparent), transparent 70%),
    radial-gradient(50% 60% at 70% 10%, #e8ff80, transparent 70%),
    radial-gradient(45% 60% at 30% 95%, #abf970, transparent 70%),
    #f1f1f1;
}
.st-tile--logo .st-word { font-size: clamp(3.5rem, 8vw, 7rem); color: #101112; }

/* the greeting, with their name */
.st-tile--hello { background: #6c5bcd; color: #ffffff; justify-content: flex-end; min-height: 220px; }
.st-tile--hello .st-tile__mark { position: absolute; top: clamp(18px, 2.4vw, 32px); left: clamp(18px, 2.4vw, 32px); }
.st-tile--hello .st-mark { color: #ffffff; --st-mark-hole: #6c5bcd; }
.st-tile--hello .st-mark__dot--ai { fill: #6c5bcd; }
.st-tile__hello {
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; letter-spacing: -0.035em;
  font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.02; overflow-wrap: anywhere;
}

/* the assistant asking */
.st-tile--ask { justify-content: space-between; }
.st-tile__quote { font-size: 1.0625rem; line-height: 1.4; font-weight: 500; }
.st-tile__quote .st-tile__mark { display: block; margin-bottom: 12px; }
.st-tile__quote .st-mark { color: #101112; }
.st-tile__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.st-tile__pill { padding: 9px 16px; border-radius: 999px; background: #dcdddb; font-size: 0.8125rem; font-weight: 600; }
.st-tile__pill--go { background: linear-gradient(90deg, #abf970, #e8ff80 55%, #ff8573); }

/* a line on a wash */
.st-tile--say {
  justify-content: center; text-align: center; min-height: 260px;
  background:
    radial-gradient(70% 55% at 50% 100%, #ff8573, transparent 75%),
    radial-gradient(70% 55% at 50% 0%, #44cfcb, transparent 75%),
    #e8ff80;
}
.st-tile--say p {
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; letter-spacing: -0.035em;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.05; text-wrap: balance;
}

/* a piece of the app */
.st-tile--app { background: #dcdddb; align-items: center; justify-content: center; min-height: 300px; }
.st-tile__phone {
  width: min(100%, 260px); padding: 18px; border-radius: 26px; background: #f1f1f1;
  box-shadow: 0 0 0 6px #101112; display: flex; flex-direction: column; gap: 6px;
}
.st-tile__big { font-family: "Inter Tight", "Inter", sans-serif; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; }
.st-tile__goal { margin-top: 8px; padding: 12px; border-radius: 16px; background: #ffffff; display: flex; flex-direction: column; gap: 8px; }
.st-tile__goal > p:first-child { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 500; }
.st-tile__goalicon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e8ff80; }
.st-tile__goalicon svg { width: 16px; height: 16px; fill: #101112; }
.st-tile__bar { height: 40px; border-radius: 11px; background: #dcdddb; overflow: hidden; }
.st-tile__bar span {
  display: flex; align-items: center; width: 48%; height: 100%; padding-left: 10px; border-radius: 11px;
  background: #e8ff80; font-family: "Inter Tight", "Inter", sans-serif; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.03em;
}

/* colour */
.st-tile__stripes { display: grid; grid-template-columns: repeat(7, 1fr); flex: 1; min-height: 72px; border-radius: 12px; overflow: hidden; }
.st-tile__legend { list-style: none; margin: 0; padding: 0; font-size: 0.75rem; line-height: 1.5; }
.st-tile__legend b { font-weight: 600; }

/* type */
.st-tile--type { background: #ffffff; justify-content: space-between; }
.st-tile__aa { font-family: "Inter Tight", "Inter", sans-serif; font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.st-tile__specimen { font-family: "Inter Tight", "Inter", sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }

/* the promise */
.st-tile--promise { background: #1f2023; color: #f3f3f1; justify-content: flex-end; }
.st-tile--promise .st-tile__mark { position: absolute; top: clamp(18px, 2.4vw, 32px); left: clamp(18px, 2.4vw, 32px); }
.st-tile--promise .st-mark { color: #f3f3f1; --st-mark-hole: #1f2023; }
.st-tile--promise .st-mark__dot--ai { fill: color-mix(in srgb, #6c5bcd 62%, #ffffff); }
.st-tile__promise { font-family: "Inter Tight", "Inter", sans-serif; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; padding-top: 56px; }
.st-tile--promise .st-tile__small { color: color-mix(in srgb, #f3f3f1 78%, transparent); }

@media (min-width: 561px) {
  .st-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-tile--logo, .st-tile--hello { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
  .st-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "logo logo logo logo logo hello hello hello hello hello hello hello"
      "ask  ask  ask  ask  say  say  say  say  app  app  app  app"
      "col  col  col  col  say  say  say  say  app  app  app  app"
      "type type type type type type pro  pro  pro  pro  pro  pro";
  }
  .st-tile--logo { grid-area: logo; } .st-tile--hello { grid-area: hello; }
  .st-tile--ask { grid-area: ask; } .st-tile--say { grid-area: say; }
  .st-tile--app { grid-area: app; } .st-tile--colour { grid-area: col; }
  .st-tile--type { grid-area: type; } .st-tile--promise { grid-area: pro; }
}

/* her tweaks (Nov 2026): her background behind the logo tile, a smaller
   wordmark; a smaller greeting under the black icon (white and violet dots);
   the suggestion's yes is a black pill */
.st-tile--logo { background: url("../img/stipje/stipje-bg.webp") center / cover no-repeat, #dcdddb; }
.st-tile--logo .st-word { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
.st-tile--hello { justify-content: space-between; gap: 28px; }
.st-tile--hello .st-tile__mark { position: static; }
.st-tile--hello .st-mark { color: #101112; --st-mark-hole: #ffffff; }
.st-tile--hello .st-mark__dot--ai { fill: color-mix(in srgb, #6c5bcd 62%, #ffffff); }
.st-tile__hello { font-size: clamp(1.625rem, 2.8vw, 2.5rem); }
.st-tile__pill--go { background: #101112; color: #ffffff; }
