/* ==========================================================================
   GSSMCS — member app (app.html)
   Phone-first: one column, bottom tab bar. From 960px: two columns, tab bar floats.
   ========================================================================== */

:root {
  --app-bg: #F1F5F9;
  --card: #FFFFFF;
  --card-line: rgba(12, 34, 64, 0.06);
  --card-shadow: 0 1px 2px rgba(12, 34, 64, 0.04), 0 8px 24px -12px rgba(12, 34, 64, 0.12);
  --text: #0C2240;
  --text-2: #475569;
  --text-3: #64748B;
  --track: #E2E8F0;
  --pill-bg: #E7EDF4;
  --pill-on-bg: #0C2240;
  --pill-on-text: #FFFFFF;

  /* Tinted icon tiles */
  --sky-bg: #E0F2FE;   --sky-fg: #0369A1;
  --green-bg: #DCFCE7; --green-fg: #15803D;
  --amber-bg: #FEF3C7; --amber-fg: #B45309;
  --rose-bg: #FFE4E6;  --rose-fg: #BE123C;
  --violet-bg: #EDE9FE; --violet-fg: #6D28D9;
  --slate-bg: #E2E8F0; --slate-fg: #475569;

  --radius-lg: 1.5rem;
  --radius-md: 1.125rem;
  --tabbar-h: 4.25rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

html.dark {
  --app-bg: #070B14;
  --card: #0E1626;
  --card-line: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  --text: #F1F5F9;
  --text-2: #A5B4C8;
  --text-3: #7C8BA1;
  --track: #1E293B;
  --pill-bg: #111C2E;
  --pill-on-bg: #F1F5F9;
  --pill-on-text: #0C2240;

  --sky-bg: rgba(56, 189, 248, 0.14);   --sky-fg: #7DD3FC;
  --green-bg: rgba(34, 197, 94, 0.14);  --green-fg: #86EFAC;
  --amber-bg: rgba(245, 158, 11, 0.14); --amber-fg: #FCD34D;
  --rose-bg: rgba(244, 63, 94, 0.14);   --rose-fg: #FDA4AF;
  --violet-bg: rgba(139, 92, 246, 0.16); --violet-fg: #C4B5FD;
  --slate-bg: rgba(148, 163, 184, 0.14); --slate-fg: #CBD5E1;
}

html.light, html.light body, html.dark, html.dark body { background-color: var(--app-bg); color: var(--text); }
html.sheet-open, html.sheet-open body { overflow: hidden; }

.tone-sky { background: var(--sky-bg); color: var(--sky-fg); }
.tone-green { background: var(--green-bg); color: var(--green-fg); }
.tone-amber { background: var(--amber-bg); color: var(--amber-fg); }
.tone-rose { background: var(--rose-bg); color: var(--rose-fg); }
.tone-violet { background: var(--violet-bg); color: var(--violet-fg); }
.tone-slate { background: var(--slate-bg); color: var(--slate-fg); }

/* ---------- Shell ---------- */
.shell {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 0.5rem) 1rem calc(var(--tabbar-h) + var(--safe-b) + 1.5rem);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}
.topbar__brand img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.topbar__actions { display: flex; align-items: center; gap: 0.5rem; }

.round-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--text);
  transition: background-color 150ms ease, transform 150ms ease;
}
.round-btn:hover { background: var(--pill-bg); }
.round-btn:active { transform: scale(0.94); }
.round-btn .icon { width: 1.25rem; height: 1.25rem; }
.round-btn__badge {
  position: absolute;
  top: 0.2rem;
  right: 0.15rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--color-crimson);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px var(--app-bg);
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #39A7FF, #1954EC);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 150ms ease;
}
.avatar:active { transform: scale(0.94); }
.avatar--lg { width: 3.25rem; height: 3.25rem; font-size: 1rem; }

/* ---------- Greeting ---------- */
.greeting { padding: 0.75rem 0 1rem; }
.greeting__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.greeting__sub { margin-top: 0.375rem; font-size: 0.875rem; color: var(--text-3); }

/* ---------- Pills ---------- */
.pills {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--pill-bg);
  overflow-x: auto;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 1 0 auto;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}
.pill.is-active { background: var(--pill-on-bg); color: var(--pill-on-text); box-shadow: 0 2px 8px -2px rgba(12, 34, 64, 0.35); }
.pill:focus-visible, .round-btn:focus-visible, .avatar:focus-visible, .quick__item:focus-visible,
.task__action:focus-visible, .segmented button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Hero card ---------- */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(57, 167, 255, 0.55) 0%, rgba(57, 167, 255, 0) 55%),
    linear-gradient(160deg, #12305A 0%, #0C2240 55%, #081830 100%);
  box-shadow: 0 18px 40px -20px rgba(12, 34, 64, 0.65);
  isolation: isolate;
}
html.dark .hero-card { box-shadow: 0 0 0 1px rgba(125, 200, 255, 0.12) inset, 0 18px 40px -20px rgba(0, 0, 0, 0.8); }
.hero-card__glow {
  position: absolute;
  inset: auto -20% -45% 20%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(25, 84, 236, 0.55), rgba(25, 84, 236, 0));
  z-index: -1;
  pointer-events: none;
}
.hero-card__body { padding: 1.125rem 1.125rem 1rem; transition: opacity 160ms ease, transform 160ms ease; }
.hero-card__body.is-swapping { opacity: 0.35; transform: translateY(2px); }

.hero-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.hero-card__label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }
.hero-card__open {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background-color 150ms ease;
}
.hero-card__open:hover { background: rgba(255, 255, 255, 0.2); }

.hero-card__amount {
  margin-top: 0.625rem;
  font-size: clamp(2.25rem, 10vw, 2.875rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.hero-card__chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.875rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.625rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.chip--up .icon { color: #86EFAC; }
.chip--warm .icon { color: #FDBA74; }

.hero-card__chart { position: relative; height: 6.5rem; margin: 1rem -0.25rem 0; }
.hero-card__chart svg { width: 100%; height: 5.25rem; overflow: visible; }
.hero-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-line 900ms var(--ease-out-expo) both; }
@keyframes draw-line { from { stroke-dashoffset: 1; } }
.hero-dot {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  border-radius: 999px;
  background: #39A7FF;
  box-shadow: 0 0 0 3px #fff, 0 0 18px 4px rgba(57, 167, 255, 0.8);
  animation: dot-in 400ms 600ms var(--ease-out-expo) both;
}
@keyframes dot-in { from { transform: scale(0); } }
.hero-months { position: relative; height: 1rem; margin-top: 0.25rem; }
.hero-months span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
}
.hero-months span:last-child { transform: translateX(-100%); }

.hero-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-card__stats dt { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.6); }
.hero-card__stats dd { margin: 0.125rem 0 0; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Services under the selected heading (or the headings under "All") */
.hero-card__list {
  list-style: none;
  margin: 0.875rem 0 0;
  padding: 0.375rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-card__list[hidden] { display: none; }
.hero-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem 0.25rem;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hero-row:hover, .hero-row:focus-visible { background: rgba(255, 255, 255, 0.08); }
.hero-row__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hero-row__text strong { font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-row__text small { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.hero-row__amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-row__chev { color: rgba(255, 255, 255, 0.5); flex: none; }
.hero-card__empty { padding: 0.75rem 0.25rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 1.25rem 0 0.5rem; }
.quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  border-radius: var(--radius-md);
}
.quick__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  transition: transform 150ms ease;
}
.quick__icon .icon { width: 1.375rem; height: 1.375rem; }
.quick__item:active .quick__icon { transform: scale(0.94); }

/* ---------- Blocks ---------- */
.block { margin-top: 1.5rem; }
.block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.block__head h2 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.block__link { font-size: 0.8125rem; font-weight: 600; color: var(--color-sapphire); }
html.dark .block__link { color: var(--color-accent); }
.count {
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--pill-bg);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
}

.tile {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
}
.tile .icon { width: 1.25rem; height: 1.25rem; }
.tile--sm { width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; }
.tile--sm .icon { width: 1rem; height: 1rem; }

.card-list { display: flex; flex-direction: column; gap: 0.625rem; }

/* Waiting-on-you tasks */
.task {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.task__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.task__eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; }
.task__eyebrow--rose { color: var(--rose-fg); }
.task__eyebrow--sky { color: var(--sky-fg); }
.task__eyebrow--amber { color: var(--amber-fg); }
.task__text strong { margin-top: 0.125rem; font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.task__text small { margin-top: 0.125rem; font-size: 0.75rem; color: var(--text-3); }
.task__action {
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--pill-on-bg);
  color: var(--pill-on-text);
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 150ms ease, opacity 150ms ease;
}
.task__action:active { transform: scale(0.95); }

/* Facilities */
.stack { display: flex; flex-direction: column; gap: 0.625rem; }
.facility {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.facility__head { display: flex; align-items: center; gap: 0.75rem; }
.facility__head strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.facility__head small { display: block; margin-top: 0.0625rem; font-size: 0.75rem; color: var(--text-3); }
.facility__progress { margin-top: 0.875rem; }
.facility__row { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-3); }
.facility__row b { font-size: 0.875rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 0.375rem; margin-top: 0.5rem; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #39A7FF, #1954EC);
  transform-origin: left;
  animation: grow 900ms 150ms var(--ease-out-expo) both;
}
@keyframes grow { from { transform: scaleX(0); } }
.facility__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0.875rem 0 0; }
.facility__facts div { padding: 0.5rem 0.625rem; border-radius: 0.75rem; background: var(--app-bg); }
.facility__facts dt { font-size: 0.6875rem; color: var(--text-3); }
.facility__facts dd { margin: 0.125rem 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* Patronage refund banner */
.dividend {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  color: #3B2300;
  background: linear-gradient(120deg, #FFE7B8 0%, #FFD38A 100%);
  box-shadow: 0 10px 24px -16px rgba(180, 83, 9, 0.6);
  transition: transform 150ms ease;
}
.dividend:active { transform: scale(0.99); }
.dividend__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.55);
  color: #B45309;
}
.dividend__icon .icon { width: 1.25rem; height: 1.25rem; }
.dividend__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dividend__text strong { font-size: 0.9375rem; font-weight: 700; }
.dividend__text small { font-size: 0.75rem; opacity: 0.75; }
.dividend__chev { opacity: 0.6; }

/* Flat lists (activity, updates) */
.card-list--flat {
  gap: 0;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; }
.row + .row { border-top: 1px solid var(--card-line); }
.row__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.row__text strong { font-size: 0.875rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__text small { font-size: 0.75rem; color: var(--text-3); }
.row__amount { font-size: 0.875rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row__amount.is-credit { color: var(--green-fg); }
.row__when { align-self: flex-start; padding-top: 0.125rem; font-size: 0.6875rem; color: var(--text-3); white-space: nowrap; }
.row--update .row__text strong { white-space: normal; }
.row--update.is-unread .row__text strong::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--color-accent);
}

/* Bottom tab bar: css/tabbar.css */

/* ---------- Bottom sheets ---------- */
.bsheet { position: fixed; inset: 0; z-index: 100; }
.bsheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.45);
  opacity: 0;
  transition: opacity 260ms ease;
}
.bsheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 34rem;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 0.5rem 1.25rem calc(var(--safe-b) + 1.25rem);
  border-radius: 1.75rem 1.75rem 0 0;
  background: var(--card);
  color: var(--text);
  transform: translate(-50%, 100%);
  transition: transform 280ms var(--ease-out-expo);
  overscroll-behavior: contain;
}
.bsheet__panel--tall { min-height: 60dvh; }
.bsheet.is-open .bsheet__scrim { opacity: 1; }
.bsheet.is-open .bsheet__panel { transform: translate(-50%, 0); }
.bsheet__handle { width: 2.5rem; height: 0.3rem; margin: 0.25rem auto 1rem; border-radius: 999px; background: var(--track); }
.bsheet__titlebar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.bsheet__titlebar h2 { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 700; }
.bsheet .card-list--flat { box-shadow: none; padding: 0; background: transparent; }
.bsheet__label { margin: 1.25rem 0 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--text-3); }

.profile { display: flex; align-items: center; gap: 0.875rem; }
.profile__name { font-size: 1.0625rem; font-weight: 700; }
.profile__id { font-size: 0.8125rem; color: var(--text-3); }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--pill-bg); }
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.55rem 0;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background-color 200ms ease, color 200ms ease;
}
.segmented button.is-active { background: var(--pill-on-bg); color: var(--pill-on-text); }

.menu-list { margin-top: 1rem; }
.menu-list a { display: flex; align-items: center; gap: 0.875rem; padding: 0.9rem 0.25rem; font-size: 0.9375rem; font-weight: 500; }
.menu-list li + li a { border-top: 1px solid var(--card-line); }
.menu-list a > .icon:first-child { width: 1.125rem; height: 1.125rem; color: var(--text-2); }
.menu-list span { flex: 1; }
.menu-list__chev { color: var(--text-3); }

.bsheet__signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: 999px;
  background: var(--rose-bg);
  color: var(--rose-fg);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- "Coming soon" toast ---------- */
.soon-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 0.75rem);
  z-index: 120;
  max-width: calc(100% - 2rem);
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: #0C2240;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out-expo);
  pointer-events: none;
}
html.dark .soon-toast { background: #F1F5F9; color: #0C2240; }
.soon-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Savings screen (savings.html)
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-title { padding: 0.75rem 0 1rem; }
.page-title__eyebrow { font-size: 0.75rem; font-weight: 600; color: var(--text-3); }
.page-title__h1 {
  margin-top: 0.125rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-card--compact .hero-card__amount { margin-top: 0.5rem; }
.hero-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1.125rem; }
.hero-card__actions[hidden] { display: none; }
.hero-card__actions:has(> :only-child) { grid-template-columns: 1fr; }
.hero-card__actions:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease;
}
.hero-btn:hover { background: rgba(255, 255, 255, 0.2); }
.hero-btn:active { transform: scale(0.97); }
.hero-btn--solid, .hero-btn--solid:hover { background: #fff; color: #0C2240; }
.hero-btn:focus-visible { outline: 2px solid #7CC8FF; outline-offset: 2px; }

/* Three small stat cards */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.stat-tile .tile { margin-bottom: 0.5rem; }
.stat-tile strong { font-size: 0.9375rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-tile small { font-size: 0.6875rem; color: var(--text-3); line-height: 1.3; }

/* Plan cards: two per row */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.plan__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.plan__pct, .plan__lock {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
}
.plan__pct { background: var(--sky-bg); color: var(--sky-fg); }
.plan__lock { background: var(--slate-bg); color: var(--slate-fg); }
.plan__name { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.plan__balance { margin-top: 0.125rem; font-size: 1.125rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.plan__balance small { font-size: 0.75rem; font-weight: 600; color: var(--text-3); }
.bar--thin { height: 0.3rem; margin-top: 0.625rem; }
.plan__meta { display: flex; flex-direction: column; gap: 0.125rem; margin-top: auto; padding-top: 0.625rem; font-size: 0.6875rem; line-height: 1.35; color: var(--text-3); }
.plan__status { font-weight: 600; color: var(--green-fg); }

/* Panel with a chart */
.block--first { margin-top: 1.5rem; }
.panel {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.panel__head h2 { font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.panel__head small { font-size: 0.75rem; color: var(--text-3); }
.tag { flex-shrink: 0; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--pill-bg); font-size: 0.6875rem; font-weight: 600; color: var(--text-2); }

.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.bars__col { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; min-width: 0; }
.bars__value { font-size: 0.625rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars__track { display: flex; align-items: flex-end; width: 100%; height: 6.5rem; }
.bars__track i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 0.5rem;
  background: var(--pill-bg);
  transform-origin: bottom;
  animation: rise 700ms var(--d, 0ms) var(--ease-out-expo) both;
}
@keyframes rise { from { transform: scaleY(0); } }
.bars__col.is-current .bars__track i { background: linear-gradient(180deg, #39A7FF, #1954EC); }
.bars__col.is-current .bars__value { color: var(--color-sapphire); }
html.dark .bars__col.is-current .bars__value { color: var(--color-accent); }
.bars__label { font-size: 0.625rem; color: var(--text-3); white-space: nowrap; }
.bars__col.is-current .bars__label { font-weight: 700; color: var(--text); }

/* Tip card */
.insight {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: var(--sky-bg);
  color: var(--text);
}
.insight strong { display: block; font-size: 0.875rem; font-weight: 700; }
.insight p { margin-top: 0.125rem; font-size: 0.8125rem; line-height: 1.45; color: var(--text-2); }
.insight .tile { background: var(--card); }

.pills--sm { margin-bottom: 0.75rem; }
.pills--sm .pill { padding: 0.4rem 0.75rem; font-size: 0.75rem; }
.row--empty { justify-content: center; font-size: 0.8125rem; color: var(--text-3); }

/* Add money sheet */
.amount-field {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0 0.25rem;
  color: var(--text);
}
.amount-field__currency { font-size: 1.75rem; font-weight: 700; color: var(--text-3); }
.amount-field input {
  width: 9ch;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.amount-field input::placeholder { color: var(--track); }
.quick-amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-top: 0.5rem; }
.quick-amounts button {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--pill-bg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  transition: transform 150ms ease;
}
.quick-amounts button:active { transform: scale(0.95); }

.plan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.plan-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem;
  border-radius: 1rem;
  border: 1.5px solid var(--card-line);
  background: var(--app-bg);
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.plan-option.is-active { border-color: var(--color-accent); background: var(--card); }
.plan-option__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.plan-option__text strong { font-size: 0.8125rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-option__text small { font-size: 0.6875rem; color: var(--text-3); }
.plan-option__dot { flex-shrink: 0; width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid var(--track); }
.plan-option.is-active .plan-option__dot { border: 5px solid var(--color-accent); }
.plan-option:focus-visible, .quick-amounts button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.bsheet__note { display: flex; gap: 0.5rem; margin-top: 1rem; font-size: 0.75rem; line-height: 1.45; color: var(--text-3); }
.bsheet__note .icon { margin-top: 0.1rem; color: var(--green-fg); }
.btn-block {
  width: 100%;
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 999px;
  background: var(--pill-on-bg);
  color: var(--pill-on-text);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: opacity 150ms ease, transform 150ms ease;
}
.btn-block:disabled { opacity: 0.4; }
.btn-block:not(:disabled):active { transform: scale(0.99); }
.btn-block:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Text fields in sheets (facility application) and the sheet error line */
.sheet-fields { display: grid; gap: 0.625rem; }
.sheet-field { display: grid; gap: 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--text-3); }
.sheet-field input, .sheet-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming into the field */
  font-weight: 500;
}
.sheet-field textarea { min-height: 4.5rem; resize: vertical; }
.sheet-field input:focus-visible, .sheet-field textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.sheet-fields--split { grid-template-columns: 1fr 1fr; }
@media (max-width: 380px) { .sheet-fields--split { grid-template-columns: 1fr; } }
.sheet-error {
  margin-top: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--rose-bg);
  color: var(--rose-fg);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.sheet-error[hidden] { display: none; }

/* ==========================================================================
   Facilities screen (facilities.html)
   ========================================================================== */
a.hero-btn { text-decoration: none; }
.block__hint { font-size: 0.75rem; font-weight: 600; color: var(--text-3); }

/* Progress ring */
.ring { position: relative; flex-shrink: 0; width: 4.5rem; height: 4.5rem; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__track { stroke: var(--track); }
.ring__fill {
  stroke: var(--color-sapphire);
  stroke-linecap: round;
  stroke-dashoffset: var(--off);
  animation: ring-in 1000ms 100ms var(--ease-out-expo) both;
}
html.dark .ring__fill { stroke: var(--color-accent); }
@keyframes ring-in { from { stroke-dashoffset: var(--full); } }
.ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ring__label strong { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.ring__label small { font-size: 0.5625rem; color: var(--text-3); }

/* Active facility card */
.loan {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: transform 150ms ease;
}
.loan:active { transform: scale(0.99); }
.loan:focus-visible, .product:focus-visible, .tenures button:focus-visible, .detail__action:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.loan__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.loan__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.loan__name { margin-top: 0.25rem; font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.loan__left { font-size: 0.75rem; color: var(--text-3); }
.loan__left b { font-size: 0.875rem; color: var(--text); font-variant-numeric: tabular-nums; }
.loan__meta { margin-top: 0.125rem; font-size: 0.6875rem; color: var(--text-3); }
.loan__chev { color: var(--text-3); }

/* Product tiles */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: transform 150ms ease;
}
.product:active { transform: scale(0.98); }
.product .tile { margin-bottom: 0.5rem; }
.product strong { font-size: 0.875rem; font-weight: 700; color: var(--text); line-height: 1.25; }
.product small { font-size: 0.6875rem; line-height: 1.35; color: var(--text-3); }
.product__rate { margin-top: auto; padding-top: 0.5rem; font-size: 0.75rem; font-weight: 700; color: var(--color-sapphire); }
html.dark .product__rate { color: var(--color-accent); }

/* Borrowing power */
.power__amount { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.checks { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.875rem; padding-top: 0.875rem; border-top: 1px solid var(--card-line); }
.checks li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-2); }
.checks li .icon { margin-top: 0.15rem; }
.checks .is-ok .icon { color: var(--green-fg); }
.checks .is-note .icon { color: var(--amber-fg); }

/* Guarantees */
.guarantees { margin-top: 0.625rem; }
.avatar--sm { width: 2.25rem; height: 2.25rem; font-size: 0.6875rem; flex-shrink: 0; }
.avatar--xs { width: 1.5rem; height: 1.5rem; font-size: 0.5625rem; }
.row--guarantee .bar { margin-top: 0.4rem; }
.row--guarantee .row__amount { align-self: flex-start; }

/* Detail sheet */
.detail__summary { display: flex; align-items: center; gap: 1rem; }
.detail__summary .ring { width: 5.5rem; height: 5.5rem; }
.detail__name { display: block; margin-top: 0.25rem; font-size: 1.0625rem; font-weight: 700; }
.detail__sub { display: block; font-size: 0.75rem; color: var(--text-3); }
.detail__left { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--text-3); }
.detail__left b { font-size: 1.25rem; color: var(--green-fg); font-variant-numeric: tabular-nums; }

.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1.125rem 0 0; }
.facts-grid div { padding: 0.75rem; border-radius: 0.875rem; background: var(--app-bg); }
.facts-grid dt { display: flex; align-items: center; gap: 0.375rem; font-size: 0.6875rem; color: var(--text-3); }
.facts-grid dd { margin: 0.25rem 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

.detail__actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 1rem; }
.detail__action { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; font-size: 0.6875rem; font-weight: 600; color: var(--text-2); text-align: center; }
.detail__action .icon {
  box-sizing: content-box;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.8rem;
  border-radius: 1rem;
  background: var(--app-bg);
  color: var(--text);
}
.detail__action.is-primary .icon { background: var(--pill-on-bg); color: var(--pill-on-text); }

.people { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.person { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.75rem 0.3rem 0.3rem; border-radius: 999px; background: var(--app-bg); font-size: 0.8125rem; font-weight: 600; }

.breakdown { margin: 0; padding: 0.25rem 0.875rem; border-radius: 0.875rem; background: var(--app-bg); }
.breakdown div, .estimate__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; font-size: 0.8125rem; }
.breakdown div + div, .estimate__rows div + div { border-top: 1px solid var(--card-line); }
.breakdown dt, .estimate__rows dt { color: var(--text-3); }
.breakdown dd, .estimate__rows dd { margin: 0; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown .is-total dd, .estimate__rows .is-total dd { color: var(--green-fg); }
.breakdown .is-total dt, .estimate__rows .is-total dt { font-weight: 600; color: var(--text); }

.segmented--schedule { margin: 1.25rem 0 0.25rem; grid-template-columns: 1fr 1fr; }
.schedule .row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.125rem; }
.status { font-size: 0.6875rem; font-weight: 700; }
.status--paid { color: var(--green-fg); }
.status--due { color: var(--rose-fg); }
.status--upcoming { color: var(--text-3); }

/* Estimator sheet */
.estimate__blurb { margin-top: -0.25rem; font-size: 0.8125rem; color: var(--text-3); }
.estimate__amount { margin-top: 1.25rem; padding: 1rem; border-radius: 1rem; background: var(--app-bg); }
.estimate__amount label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-3); }
.estimate__amount output { display: block; margin: 0.25rem 0 0.75rem; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.estimate__range { display: flex; justify-content: space-between; margin-top: 0.375rem; font-size: 0.6875rem; color: var(--text-3); }

input[type="range"][data-estimate-range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #39A7FF, #1954EC) 0 / var(--fill, 0%) 100% no-repeat, var(--track);
  outline: none;
  cursor: pointer;
}
input[type="range"][data-estimate-range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #1954EC;
  box-shadow: 0 2px 8px rgba(12, 34, 64, 0.3);
}
input[type="range"][data-estimate-range]::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #1954EC;
}
input[type="range"][data-estimate-range]:focus-visible { box-shadow: 0 0 0 3px var(--sky-bg); }

.tenures { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tenures button {
  flex: 1 0 auto;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: var(--app-bg);
  border: 1.5px solid var(--card-line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background-color 150ms ease, color 150ms ease;
}
.tenures button.is-active { background: var(--pill-on-bg); color: var(--pill-on-text); border-color: transparent; }

.estimate__result { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.donut { position: relative; flex-shrink: 0; width: 7.5rem; height: 7.5rem; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 12; transition: stroke-dasharray 300ms ease; }
.donut__interest { stroke: #FDBA74; }
.donut__principal { stroke: #1954EC; }
html.dark .donut__principal { stroke: #38BDF8; }
.donut__centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut__centre small { font-size: 0.625rem; color: var(--text-3); }
.donut__centre strong { font-size: 0.9375rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.estimate__rows { flex: 1; min-width: 0; margin: 0; }
.estimate__rows dt { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; }
.estimate__rows dt small { flex-basis: 100%; padding-left: 0.875rem; font-size: 0.625rem; }
.dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 999px; }
.dot--principal { background: #1954EC; }
html.dark .dot--principal { background: #38BDF8; }
.dot--interest { background: #FDBA74; }

/* ==========================================================================
   Investments screen (investments.html)
   ========================================================================== */
.block--tight:not(:empty) { margin-top: 0.75rem; }
button.task__action { cursor: pointer; }

/* Allocation bar */
.mix { display: flex; gap: 3px; height: 0.75rem; border-radius: 999px; overflow: hidden; }
.mix i { display: block; width: var(--w); background: var(--c); transform-origin: left; animation: grow 900ms var(--ease-out-expo) both; }
.mix-legend { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.875rem; }
.mix-legend li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-2); }
.mix-legend i { width: 0.625rem; height: 0.625rem; border-radius: 0.2rem; background: var(--c); flex-shrink: 0; }
.mix-legend span { flex: 1; }
.mix-legend b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* Holding card */
.holding {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.holding__title { flex: 1; min-width: 0; }
.holding__value { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.holding__value b { font-size: 0.9375rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.holding__gain { font-size: 0.6875rem; font-weight: 600; color: var(--green-fg); white-space: nowrap; }
.holding__note { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.75rem; font-size: 0.6875rem; color: var(--amber-fg); }

/* Product offers */
.offer {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: transform 150ms ease;
}
.offer:active { transform: scale(0.99); }
.offer:focus-visible, .choice:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.offer__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.offer__text strong { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.offer__text small { margin-top: 0.125rem; font-size: 0.75rem; line-height: 1.4; color: var(--text-3); }
.offer__meta { margin-top: 0.375rem; font-size: 0.75rem; color: var(--text-3); }
.offer__meta b { color: var(--color-sapphire); }
html.dark .offer__meta b { color: var(--color-accent); }

/* Invest sheet */
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.invest__blurb { margin-top: 0.75rem; }
.invest__hint { margin-top: 0.25rem; text-align: center; font-size: 0.75rem; color: var(--text-3); }
.invest__rows { margin-top: 1.25rem; padding: 0.25rem 0.875rem; border-radius: 0.875rem; background: var(--app-bg); }

/* Maturity choice list */
.choice-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1.5px solid var(--card-line);
  background: var(--app-bg);
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.choice.is-active { border-color: var(--color-accent); background: var(--card); }
.choice.is-active .plan-option__dot { border: 5px solid var(--color-accent); }
.choice__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.choice__text strong { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.choice__text small { font-size: 0.75rem; color: var(--text-3); }

/* ---------- Wider screens: two columns ---------- */
@media (min-width: 960px) {
  .shell { max-width: 64rem; padding-left: 2rem; padding-right: 2rem; }
  .greeting__title { font-size: 2.25rem; }
  .pills { display: inline-flex; }
  .home__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
  .home__side > .block:first-child { margin-top: 0; }
  .page-title__h1 { font-size: 2.5rem; }
  .hero-card__body { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line, .hero-dot, .bar i, .bars__track i, .ring__fill { animation: none; }
  .bsheet__panel, .bsheet__scrim, .hero-card__body { transition: none; }
}

/* ---------- Facility application: guarantors (facilities.html) ---------- */
.guarantor-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.guarantor-head .bsheet__label small { font-weight: 500; opacity: 0.8; }
.guarantor-head .bsheet__label { margin-bottom: 0.5rem; }
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--color-accent);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.text-btn--muted { margin-top: 0; background: none; color: var(--text-3); }
.text-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.guarantor-list { display: grid; gap: 0.625rem; }
.guarantor-row { padding: 0.625rem 0.75rem 0.75rem; border: 1px solid var(--track); border-radius: var(--radius-md); }
.guarantor-row__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.375rem; font-size: 0.75rem; font-weight: 700; color: var(--text-2); }
.guarantor-hint { margin: 0; font-size: 0.75rem; color: var(--text-3); }
.guarantor-hint[hidden] { display: none; }

/* Payout requests under a dashboard heading (facility applications in Approval I / II) */
.hero-request { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.25rem; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.hero-request__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hero-request__text strong { font-size: 0.8125rem; font-weight: 600; }
.hero-request__text small { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.hero-request.is-rejected .hero-request__text small { color: #FDA4AF; }

/* ---------- Shared bits for profile, statement and security pages ---------- */
.btn-block { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-block--auto { width: auto; margin-top: 0; padding: 0.8rem 1.25rem; }
.btn-block--ghost { background: var(--pill-bg); color: var(--text); }
.btn-block--whatsapp { background: #25D366; color: #06240F; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sheet-actions .btn-block { margin-top: 1rem; }
.sheet-count { margin: 0; text-align: right; font-size: 0.6875rem; color: var(--text-3); }
.menu-list__hint { margin-left: auto; font-size: 0.75rem; color: var(--text-3); }
.menu-list__hint + .menu-list__chev { margin-left: 0.25rem; }
.segmented--two { grid-template-columns: 1fr 1fr; }

/* Membership details (view only) */
.details { display: grid; gap: 0.875rem; }
.details__card { padding: 1rem 1.125rem; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--card-shadow); }
.details__heading { margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.details__rows { display: grid; margin: 0; }
.details__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--card-line); }
.details__rows > div:first-child { border-top: 0; }
.details__rows dt { font-size: 0.8125rem; color: var(--text-3); }
.details__rows dd { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.details__empty { font-weight: 400; color: var(--text-3); }
.correction-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.125rem; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--card-shadow); }
.correction-cta__text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 14rem; }
.correction-cta__text strong { font-size: 0.9375rem; color: var(--text); }
.correction-cta__text small { font-size: 0.8125rem; color: var(--text-3); }

/* Statements */
.stmt-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; align-items: end; margin-bottom: 0.75rem; }
.stmt-range .sheet-field input { min-width: 0; width: 100%; }
.stmt-range .btn-block { grid-column: 1 / -1; width: 100%; }
@media (min-width: 600px) { .stmt-range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .stmt-range .btn-block { grid-column: auto; width: auto; } }
.stmt-select select { padding: 0.7rem 0.85rem; border: 1px solid var(--track); border-radius: 0.875rem; background: var(--card); color: var(--text); font: inherit; font-size: 0.875rem; }
.stmt-summary { margin: 0.75rem 0; padding: 1rem 1.125rem; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--card-shadow); }
.stmt-summary:empty, .stmt-summary[hidden] { display: none; }
.stmt-summary__title { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.stmt-summary__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1rem; margin: 0; }
.stmt-summary__grid dt { font-size: 0.6875rem; color: var(--text-3); }
.stmt-summary__grid dd { margin: 0.1rem 0 0; font-size: 1rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.is-credit { color: var(--green-fg); }
.stmt-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; }
.stmt-row + .stmt-row { border-top: 1px solid var(--card-line); }
.stmt-row__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.stmt-row__text strong { font-size: 0.875rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stmt-row__text small { font-size: 0.75rem; color: var(--text-3); }
.stmt-row__figures { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.875rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stmt-row__figures small { font-size: 0.6875rem; font-weight: 500; color: var(--text-3); }
.stmt-print[hidden] { display: none; }
@media (min-width: 960px) { .stmt-summary__grid { grid-template-columns: repeat(4, 1fr); } }
@media print {
  .topbar, .tabbar, .segmented, .stmt-range, .stmt-print, .page-title__eyebrow, [data-panel="facility"] { display: none !important; }
  .stmt-summary, .card-list--flat { box-shadow: none; border: 1px solid #ccc; }
  .shell { padding: 0 !important; }
}

/* Security */
.security-card { padding: 1rem 1.125rem 1.125rem; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--card-shadow); }
.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; padding-right: 2.75rem; }
.pw-toggle { position: absolute; top: 50%; right: 0.5rem; display: grid; place-items: center; width: 2rem; height: 2rem; transform: translateY(-50%); border: 0; border-radius: 999px; background: none; color: var(--text-3); cursor: pointer; }
.pw-rules { display: grid; gap: 0.3rem; margin: 0.875rem 0 0; padding: 0; list-style: none; font-size: 0.75rem; color: var(--text-3); }
.pw-rules li::before { content: '○'; display: inline-block; width: 1.1rem; }
.pw-rules li.is-met { color: var(--green-fg); }
.pw-rules li.is-met::before { content: '✓'; }
