/* =====================================================================
   Car loan / Consumer loan / Personal advance — calculator styles
   (the home loan calculator's stylesheet, calculators/home-loan/style.css,
   plus a few additions at the end)
   Self-contained (works from file:// too), but dressed in the homepage's
   theme: same palette, page glow, glass result panel and buttons.
   Tokens first; components below; phone rules at the end.
   ===================================================================== */

/* Colours, type, radius, glass and glow follow the RKY Finance homepage
   (css/home.css), so the calculator and the homepage read as one product. */
:root {
  /* colour — light (homepage light palette) */
  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --line: #e3e6ed;
  --line-strong: #cdd3de;
  --text: #111827;
  --text-2: #5b6475;
  --text-3: #6b7383;
  --accent: #3559d6;
  --accent-hover: #2f4fc4;
  --accent-ink: #ffffff;
  --accent-soft: rgba(53, 89, 214, .10);
  --btn-grad: linear-gradient(160deg, #4a6cf0, #2f4fc4);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -8px rgba(53, 89, 214, .7);
  --principal: #3559d6;
  --interest: #c27c1a;
  --spare: #e6e9f0;
  --good: #0d7a4e;
  --good-soft: #eaf6f0;
  --good-line: #bfe3d0;
  --warn: #a86500;
  --warn-soft: #fff7e8;
  --warn-line: #f0d6a2;
  --error: #b42318;
  --error-soft: #fef3f2;
  --error-line: #f6c9c4;
  --focus: rgba(53, 89, 214, .30);
  --shadow: 0 1px 2px rgba(17, 24, 39, .04);
  --shadow-pop: 0 12px 28px -14px rgba(17, 24, 39, .22), 0 2px 6px rgba(17, 24, 39, .06);

  /* glass and page glow (homepage) */
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .66));
  --glass-border: rgba(17, 24, 39, .08);
  --glass-hi: rgba(255, 255, 255, .7);
  --glass-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(17, 24, 39, .05), 0 18px 40px -22px rgba(17, 24, 39, .28), 0 40px 80px -50px rgba(53, 89, 214, .35);
  --glow-a: rgba(99, 132, 255, .34);
  --glow-b: rgba(245, 166, 35, .22);
  --glow-c: rgba(20, 184, 166, .20);
  --glow-d: rgba(236, 72, 153, .18);
  --glow-e: rgba(139, 92, 246, .20);
  --bar-bg: rgba(245, 246, 249, .72);

  /* shape and rhythm */
  --r-xl: 20px;
  --r-lg: 14px;
  --r-md: 12px;
  --r-sm: 10px;
  --r-xs: 8px;
  --gutter: 20px;
  --max: 1040px;
  --field-h: 46px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

:root[data-scheme="dark"] {
  /* homepage dark palette */
  --bg: #0a0d14;
  --surface: #11151f;
  --surface-2: #151a26;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #e9edf5;
  --text-2: #a7b0c0;
  --text-3: #8b95a8;
  --accent: #8aa4ff;
  --accent-hover: #a3b7ff;
  --accent-ink: #0a0d14;
  --accent-soft: rgba(138, 164, 255, .14);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 18px -8px rgba(74, 108, 240, .8);
  --principal: #7d98ff;
  --interest: #e3a94f;
  --spare: rgba(255, 255, 255, .09);
  --good: #52c690;
  --good-soft: rgba(82, 198, 144, .10);
  --good-line: rgba(82, 198, 144, .25);
  --warn: #f2b44b;
  --warn-soft: rgba(242, 180, 75, .09);
  --warn-line: rgba(242, 180, 75, .25);
  --error: #ff8f86;
  --error-soft: rgba(255, 143, 134, .09);
  --error-line: rgba(255, 143, 134, .28);
  --focus: rgba(138, 164, 255, .35);
  --shadow: none;
  --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, .6);
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02) 42%), rgba(17, 21, 31, .62);
  --glass-border: rgba(255, 255, 255, .11);
  --glass-hi: rgba(255, 255, 255, .07);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8), 0 40px 80px -48px rgba(74, 108, 240, .5);
  --glow-a: rgba(74, 108, 240, .50);
  --glow-b: rgba(245, 166, 35, .26);
  --glow-c: rgba(45, 212, 160, .24);
  --glow-d: rgba(236, 72, 153, .26);
  --glow-e: rgba(139, 92, 246, .30);
  --bar-bg: rgba(10, 13, 20, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color .25s ease, color .25s ease;
}
::selection { background: var(--accent); color: #fff; }
html { overflow-x: clip; }

/* the homepage's slow, blurred colour glow behind the page */
.page-glow { position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; overflow: hidden; }
.page-glow::before {
  content: ""; position: absolute; inset: -20% -15%; filter: blur(70px);
  background:
    radial-gradient(34% 40% at 74% 22%, var(--glow-a), transparent 70%),
    radial-gradient(30% 36% at 16% 16%, var(--glow-b), transparent 70%),
    radial-gradient(30% 36% at 48% 62%, var(--glow-c), transparent 70%),
    radial-gradient(28% 34% at 88% 78%, var(--glow-d), transparent 70%),
    radial-gradient(28% 34% at 10% 86%, var(--glow-e), transparent 70%);
  animation: glowdrift 16s ease-in-out infinite alternate;
}
.page-glow::after {
  content: ""; position: absolute; inset: -25% -20%; filter: blur(80px);
  background: conic-gradient(from 0deg at 55% 45%, transparent, var(--glow-a) 10%, transparent 22%,
    var(--glow-d) 34%, transparent 46%, var(--glow-c) 58%, transparent 70%,
    var(--glow-e) 80%, transparent 90%, var(--glow-b) 96%, transparent);
  animation: aurora 26s linear infinite;
}
@keyframes glowdrift { 50% { transform: translate(4%, 3%) rotate(-5deg) scale(1.08); } to { transform: translate(-4%, -3%) rotate(6deg) scale(1.04); } }
@keyframes aurora { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .page-glow::before, .page-glow::after { animation: none; } }

/* frosted glass, as on the homepage hero */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* numbers line up everywhere */
.big-v, .kf dd, .dl dd, .tbl td, .sticky-v, .entry-val, .fig-v, .cmp-row span, .inp input { font-variant-numeric: tabular-nums; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--btn-grad); border-color: transparent; color: #fff; box-shadow: var(--btn-shadow); transition: filter .15s ease, transform .15s ease; }
.btn-primary:hover { background: var(--btn-grad); filter: brightness(1.08); transform: translateY(-1px); }
.btn-danger { background: var(--error); border-color: var(--error); color: #fff; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--text); }
.btn-icon { width: 40px; padding: 0; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

.link {
  display: inline-block; margin-top: 6px; padding: 2px 0;
  border: 0; background: none; color: var(--accent);
  font-size: 14px; font-weight: 600; text-align: left;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-inline { margin: 0; padding: 0; font-size: inherit; }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-3); font-size: 12px; font-weight: 500; line-height: 18px; vertical-align: 2px;
}
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 600; line-height: 20px;
}
.eyebrow { color: var(--text-3); font-size: 13px; font-weight: 600; }
.eyebrow.is-alert { color: var(--error); }

.chev {
  flex: none; width: 8px; height: 8px; margin: 0 4px 3px 2px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg); transition: transform .15s;
}
details[open] > summary .chev { transform: rotate(-135deg); margin-bottom: -3px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* ---------- app bar ---------- */
.bar { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar-in {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bar-back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px;
  color: var(--text-2); text-decoration: none; border-radius: 8px;
}
.bar-back:hover { color: var(--text); }
.bar-mark {
  width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #2a5bd7, #123b72); color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.bar-site { color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: -.01em; }

/* homepage theme switch */
.themesw { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.themebtn {
  appearance: none; border: 0; background: transparent; color: var(--text-3);
  width: 28px; height: 26px; border-radius: 7px; display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.themebtn:hover { color: var(--text); }
.themebtn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong); }
.bar-acts { display: flex; align-items: center; gap: 4px; }

.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 240px;
  padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-pop);
}
.menu-item {
  display: block; width: 100%; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: var(--r-xs); background: none; text-align: left; font-size: 14px;
}
.menu-item:hover { background: var(--surface-2); }

/* ---------- sticky summary ---------- */
.sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: var(--bar-bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.sticky-in {
  max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 36px;
}
.sticky-item { display: flex; flex-direction: column; min-width: 0; }
.sticky-k { color: var(--text-3); font-size: 11px; font-weight: 500; }
.sticky-v { font-size: 15px; font-weight: 600; white-space: nowrap; }
.sticky { cursor: pointer; }

/* ---------- phone / tablet: two tabs, loan details | result ---------- */
.mtabs, .see-result { display: none; }
@media (max-width: 959px) {
  .sticky { display: none !important; }
  html { scroll-padding-top: 72px; }
  .mtabs {
    display: block; position: sticky; top: 0; z-index: 30;
    margin: 10px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter);
    background: var(--bar-bg);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  }
  .mtabs-track { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--spare); }
  .mtab {
    min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent;
    color: var(--text-2); font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  }
  .mtab.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(17, 24, 39, .12); }
  .mtab-v { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }
  .mtab-v:empty { display: none; }

  .see-result { display: block; }
  .btn-block { width: 100%; min-height: 48px; font-size: 15px; }

  /* one view at a time */
  #app[data-view="details"] .calc-result,
  #app[data-view="details"] .for-result { display: none; }
  #app[data-view="result"] #step1,
  #app[data-view="result"] #step2,
  #app[data-view="result"] .see-result,
  #app[data-view="result"] .example-slot { display: none; }
  #app[data-view="result"] .calc-result .example-bar { display: flex; margin: -4px -4px 18px; }
}

/* ---------- intro ---------- */
/* title and save status share one line; the status is quiet text */
.intro { padding: 18px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.intro h1 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.intro .save-note { flex: 0 0 100%; margin-top: 6px; margin-right: calc(100% - 680px); }
@media (max-width: 760px) { .intro .save-note { margin-right: 0; } }
.lede { margin-top: 10px; max-width: 68ch; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.lede b { color: var(--text); }
.intro-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.intro-for { color: var(--text-3); font-size: 14px; }

.save-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0;
  border: 0; background: none; color: var(--text-3); font-size: 13px; font-weight: 500;
}
.save-pill:hover { color: var(--text); }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.save-pill[data-save="cloud"] .save-dot { background: var(--good); }
.save-pill[data-save="saving"] .save-dot { background: var(--accent); }
.save-pill[data-save="failed"] .save-dot,
.save-pill[data-save="signin"] .save-dot,
.save-pill[data-save="conflict"] .save-dot { background: var(--warn); }
.save-pill[data-save="off"] .save-dot { background: var(--error); }
.save-note {
  margin-top: 10px; padding: 12px 14px; max-width: 680px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--text-2); font-size: 14px;
}
.save-note-text, .save-note-who { display: block; }
.save-note-who { margin-top: 4px; color: var(--text-3); font-size: 13px; }
.save-note-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.save-note .btn-sm { min-height: 32px; }

/* ---------- layout: inputs + pinned result on wide screens ---------- */
.calc { margin-top: 20px; display: flex; flex-direction: column; gap: 20px; }
.example-slot { order: 0; grid-area: ex; }
.example-slot:empty { display: none; }
#step1 { order: 1; grid-area: s1; }
#step2 { order: 2; grid-area: s2; }
.see-result { order: 3; grid-area: go; }
.calc-result { order: 4; grid-area: res; }
.calc > .card { margin: 0; }
/* on a phone or tablet the example note sits above the form, not in the result */
.calc-result .example-bar { display: none; }
.example-slot .example-bar { margin: 0; }

@media (min-width: 960px) {
  .calc { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "s1 res" "s2 res"; align-items: start; }
  .example-slot { display: none; }
  .calc-result .example-bar { display: flex; }
  .calc-result { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: var(--r-xl); scrollbar-width: thin; }
  .calc .res-top { grid-template-columns: 1fr; }
  .calc .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc .res { padding: 22px; }
  .calc .example-bar .btn { width: 100%; }
  .calc .big-v { font-size: 42px; }
}

/* wide screens: use the room instead of leaving large empty margins */
@media (min-width: 1200px) {
  :root { --max: 1200px; }
  .calc { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); }
  .calc .res { padding: 26px; }
  .calc .big-v { font-size: 46px; }
}
@media (min-width: 1440px) {
  :root { --max: 1320px; }
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
}
@media (min-width: 1760px) {
  :root { --max: 1480px; }
  .calc { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }
  .calc .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .calc .res { padding: 30px; }
  .calc .big-v { font-size: 50px; }
}

/* ---------- result ---------- */
.result { margin: 0; }
.res {
  padding: 24px; border-radius: var(--r-xl);
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.example-bar {
  display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap;
  margin: -6px -6px 22px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--accent-soft);
}
.example-bar p { flex: 1 1 280px; color: var(--text); font-size: 14px; }
.ex-short { display: none; }

.res-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.big { margin-top: 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.big-v { font-size: 46px; line-height: 1.05; font-weight: 700; letter-spacing: -.025em; }
.big-u { color: var(--text-2); font-size: 18px; font-weight: 500; }
.big-l { margin-top: 4px; font-size: 16px; font-weight: 600; }
.big-sub { margin-top: 10px; max-width: 46ch; color: var(--text-2); font-size: 14px; }

.kf { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.kf-item { padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.kf dt { color: var(--text-3); font-size: 13px; font-weight: 500; }
.kf dd { margin-top: 2px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.kf-note { margin-top: 2px; color: var(--text-3); font-size: 13px; }
.kf-item.is-warn dd, .kf-item.is-warn .kf-note { color: var(--warn); }

.notices { display: grid; gap: 10px; margin-top: 20px; }
.notice { padding: 12px 14px; border: 1px solid; border-radius: var(--r-sm); font-size: 14px; }
.notice ul { margin-top: 4px; padding-left: 18px; list-style: disc; }
.notice li + li { margin-top: 4px; }
.notice-title { font-weight: 600; margin-bottom: 2px; }
.notice.is-warn { background: var(--warn-soft); border-color: var(--warn-line); }
.notice.is-warn .notice-title { color: var(--warn); }
.notice.is-error { margin-top: 16px; background: var(--error-soft); border-color: var(--error-line); }
.notice.is-error .notice-title { color: var(--error); }
.notice-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.benefit {
  margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface-2);
}
.benefit.is-good { background: var(--good-soft); border-color: var(--good-line); }
.benefit-main { font-size: 15px; }
.benefit.is-good .benefit-main b { color: var(--good); }
.benefit-sub { margin-top: 4px; color: var(--text-2); font-size: 13px; }

.why { margin: -8px 0 14px; }
.why summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  color: var(--accent); font-size: 14px; font-weight: 600;
}
.why summary::after {
  content: ""; width: 7px; height: 7px; margin: 0 0 3px 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.why[open] summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.why p { margin-top: 6px; max-width: 72ch; color: var(--text-2); font-size: 14px; }

.res-more { margin-top: 22px; }
.res:not(.is-more) .dl-more { display: none; }
.res-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 14px; padding: 0;
  border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600;
}
.res-toggle .chev { border-color: currentColor; }
.res.is-more .res-toggle .chev { transform: rotate(-135deg); margin-bottom: -3px; }

.tl { padding-top: 20px; border-top: 1px solid var(--line); }
.tl-title { font-size: 14px; font-weight: 600; }
.tl-bar { display: flex; gap: 2px; height: 12px; margin-top: 12px; border-radius: 6px; overflow: hidden; }
.tl-seg { display: block; height: 100%; }
.tl-p { background: var(--principal); }
.tl-i { background: var(--interest); }
.tl-s { background: var(--spare); }
.tl-scale { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--text-3); font-size: 12px; }
.tl-end { color: var(--text); font-weight: 600; }
.tl-legend { display: grid; gap: 6px; margin-top: 14px; }
.tl-legend li { display: grid; grid-template-columns: 12px auto 1fr; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.tl-k { font-weight: 600; }
.tl-v { color: var(--text-3); font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 3px; transform: translateY(1px); }
.dot-p { background: var(--principal); }
.dot-i { background: var(--interest); }
.dot-s { background: var(--spare); box-shadow: inset 0 0 0 1px var(--line-strong); }

.dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--text-2); font-size: 14px; }
.dl dd { font-size: 14px; font-weight: 600; text-align: right; }
.dl dd.blank { color: var(--text-3); font-weight: 500; }
.dl-more { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.dl-empty { padding: 10px 0; color: var(--text-3); font-size: 14px; }

.res-empty-title { margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.res-empty-text { margin-top: 6px; max-width: 60ch; color: var(--text-2); }
.res-empty .btn { margin-top: 16px; }
.need-label { margin-top: 16px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.need { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.need-btn {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600;
}
.need-btn:hover { border-color: var(--accent); color: var(--accent); }
.need-btn.is-bad { border-color: var(--error-line); background: var(--error-soft); color: var(--error); text-align: left; white-space: normal; padding: 6px 12px; }

/* ---------- cards and steps ---------- */
.card {
  margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.step { padding: 24px; }
.step-head { display: flex; gap: 12px; align-items: flex-start; }
.step-no {
  flex: none; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 700;
}
.step-head h2 { font-size: 19px; line-height: 1.35; font-weight: 700; }
.step-head .tag { margin-left: 6px; }
.step-sub { margin-top: 2px; color: var(--text-2); font-size: 14px; }

/* ---------- fields ---------- */
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 20px; margin-top: 22px; }
.fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.field { min-width: 0; }
.field > label, .lbl-row label { display: block; font-size: 14px; font-weight: 600; }
.lbl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.req { color: var(--text-3); font-size: 12px; font-weight: 500; }
.inp {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  height: var(--field-h); padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color .12s, box-shadow .12s;
}
.inp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.inp:has(.is-invalid) { border-color: var(--error); }
.inp:has(.is-invalid):focus-within { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.inp input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; /* 16px keeps iOS from zooming the page on focus */
}
.inp input::placeholder { color: var(--text-3); opacity: .8; }
.inp input[type="date"] { min-height: 100%; -webkit-appearance: none; appearance: none; }
.inp input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.inp-pre, .inp-suf { flex: none; color: var(--text-3); font-size: 15px; }
.inp-suf { font-size: 14px; }
.inp.is-fixed { background: var(--surface-2); border-style: dashed; }
.inp.is-fixed output { flex: 1; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lbl { font-size: 14px; font-weight: 600; }
.hint { margin-top: 6px; color: var(--text-3); font-size: 13px; line-height: 1.45; }
.err { margin-top: 6px; color: var(--error); font-size: 13px; font-weight: 500; }
.field-narrow { max-width: 260px; margin-top: 12px; }
.tick { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.tick input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.applied { margin-top: 6px; font-size: 13px; font-weight: 500; }
.applied.is-applied { color: var(--good); }
.applied.is-notapplied { color: var(--warn); }
.inline-warn {
  margin-top: 10px; padding: 10px 12px; border: 1px solid var(--warn-line); border-radius: var(--r-sm);
  background: var(--warn-soft); font-size: 13px;
}
.inline-warn .btn { margin-top: 8px; }

/* collapsible rows inside a step */
.sub { margin-top: 22px; border-top: 1px solid var(--line); }
.sub + .sub { margin-top: 0; }
.sub > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; }
.sub-title { font-size: 15px; font-weight: 600; }
.sub-peek { margin-left: auto; color: var(--text-3); font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sub-peek.is-set { color: var(--accent); font-weight: 600; }
.sub-peek.is-warn { color: var(--warn); font-weight: 600; }
.sub-body { padding: 0 0 12px; }
.sub-intro { max-width: 72ch; color: var(--text-2); font-size: 14px; }
.sub .dl { margin-top: 10px; }

/* ---------- step 2 ---------- */
.changes { display: grid; gap: 10px; margin-top: 20px; }
.chg { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.chg[open] { border-color: var(--line-strong); }
.chg > summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; }
.chg-text { flex: 1; min-width: 0; }
.chg-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.count {
  min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}
.chg-purpose { display: block; margin-top: 1px; color: var(--text-3); font-size: 13px; }
.chg-act { color: var(--accent); font-size: 13px; font-weight: 600; }
.chg[open] .chg-act { visibility: hidden; }
.chg-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }

.le { padding-top: 14px; }
.le + .le { margin-top: 10px; border-top: 1px dashed var(--line); }
.le-title { font-size: 14px; font-weight: 600; }
.le-note { margin-top: 2px; color: var(--text-3); font-size: 13px; }
.le-empty { margin-top: 10px; color: var(--text-3); font-size: 14px; }
.entries { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.entry {
  display: grid; grid-template-columns: minmax(96px, 1fr) minmax(90px, auto) minmax(0, 1.4fr) auto;
  align-items: center; gap: 12px; padding: 8px 8px 8px 14px;
}
.entry + .entry { border-top: 1px solid var(--line); }
.entry.is-editing { background: var(--accent-soft); }
.entry.is-old { color: var(--text-3); }
.entry-date { font-size: 14px; }
.entry-val { font-size: 14px; font-weight: 600; text-align: right; }
.entry-tag { font-size: 12px; font-weight: 600; color: var(--text-3); }
.entry.is-on .entry-tag { color: var(--good); }
.entry.is-later .entry-tag { color: var(--accent); }
.entry-acts { display: flex; gap: 4px; }
.entry-fixed { width: 76px; justify-content: center; color: var(--text-3); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--r-xs); background: none; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.icon-del:hover { color: var(--error); }
.le-form { margin-top: 12px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.le-form-title { font-size: 13px; font-weight: 600; color: var(--text-2); }
.le-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 8px; }
.le-grid .field > label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.le-grid .inp { height: 44px; }
.le-btns { display: flex; gap: 8px; }
.le-btns .btn { min-height: 44px; }
.le-cap, .le-full { margin-top: 8px; color: var(--text-3); font-size: 13px; }
.le-total { margin-top: 12px; color: var(--text-2); font-size: 14px; }

/* ---------- detail ---------- */
.section-title { margin: 40px 0 0; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.fold { margin: 12px 0; }
.fold > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 20px; }
.fold-text { flex: 1; min-width: 0; }
.fold-title { display: block; font-size: 16px; font-weight: 600; }
.fold-sub { display: block; margin-top: 1px; color: var(--text-3); font-size: 13px; }
.fold-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }

.tabs { display: flex; gap: 4px; margin: 12px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 42px; padding: 0 12px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.is-on { color: var(--accent); border-bottom-color: var(--accent); }
.panel { display: none; }
.panel.is-on { display: block; }
.panel-intro { max-width: 72ch; color: var(--text-2); font-size: 14px; }
.panel .btn { margin-top: 12px; }
#position { margin-top: 12px; }

.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fig { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.fig.is-good { background: var(--good-soft); border-color: var(--good-line); }
.fig-k { color: var(--text-2); font-size: 13px; }
.fig-v { margin-top: 2px; font-size: 22px; font-weight: 700; }
.fig.is-good .fig-v { color: var(--good); }
.cmp { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 1fr; gap: 12px; padding: 9px 14px; font-size: 14px; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-row span:not(:first-child) { text-align: right; }
.cmp-head { background: var(--surface-2); color: var(--text-3); font-size: 12px; font-weight: 600; }
.cmp-row .was { color: var(--text-2); }
.cmp-row .now { font-weight: 600; }

/* ---------- schedules ---------- */
.tbl-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.table-scroll { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th {
  position: sticky; top: 0; z-index: 1; padding: 10px 12px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  color: var(--text-2); font-size: 12px; font-weight: 600; text-align: right; vertical-align: bottom; line-height: 1.3;
}
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:nth-child(-n+2), .tbl td:nth-child(-n+2) { text-align: left; }
.tbl td.zero { color: var(--text-3); }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr.is-start td { color: var(--text-3); font-style: italic; }
.tbl tr.is-final td { font-weight: 600; }
.tbl tr.is-event td:first-child { box-shadow: inset 3px 0 0 var(--interest); }
.tbl tr.is-now td { background: var(--accent-soft); }
.tbl tr.is-picked td { background: var(--warn-soft); }
.tbl .c-x { display: none; }
.tbl.show-cols .c-x { display: table-cell; }
.tbl-note { margin-top: 10px; color: var(--text-3); font-size: 13px; }
.tbl .v0 { display: none; }

.foot { margin: 36px 0 48px; color: var(--text-3); font-size: 13px; }

/* ---------- dialogs: guide and confirmation ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sheet-back { position: absolute; inset: 0; background: rgba(12, 17, 26, .5); }
.sheet-panel {
  position: relative; width: 100%; max-width: 720px; max-height: min(88vh, 860px);
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-pop);
}
.sheet-panel.is-narrow { max-width: 480px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin-top: 2px; font-size: 19px; font-weight: 700; }
.sheet-body { overflow: auto; padding: 18px 20px 24px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.sheet-body p + p, .sheet-body p + ul, .sheet-body ul + p { margin-top: 10px; }
.sheet-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.guide h3 { margin: 24px 0 6px; color: var(--text); font-size: 16px; font-weight: 600; }
.g-lede { padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text); }
.g-list { padding-left: 20px; list-style: disc; }
.g-list li + li { margin-top: 6px; }
.g-dl dt { margin-top: 10px; color: var(--text); font-weight: 600; }
.g-dl dd { margin-top: 2px; }

/* ---------- tablet: result stacked above the form, kept short ---------- */
@media (max-width: 959px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res:not(.is-more) .res-more { display: none; }
}
@media (max-width: 700px) {
  .res-top { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .bar-site { display: none; }

  /* compact header on phones: one-line title, quiet save status */
  .intro { padding: 14px 0 0; display: block; }
  .intro h1 { font-size: 20px; letter-spacing: -.01em; }
  .intro-meta { margin-top: 4px; }
  .save-pill { font-size: 12.5px; }
  .lede { font-size: 15px; }
  .intro-for { font-size: 13px; }

  .res { padding: 18px 16px; }
  /* the example note: one compact row */
  .example-bar { margin: -4px -4px 16px; padding: 8px 8px 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .example-bar p { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.3; }
  .example-bar .btn { width: auto; min-height: 36px; padding: 0 12px; font-size: 13px; flex: none; }
  .ex-long { display: none; }
  .ex-short { display: inline; }
  .calc { margin-top: 12px; gap: 14px; }
  .big-sub { margin-top: 6px; font-size: 13.5px; }
  .kf-note { font-size: 12.5px; }
  .big-v { font-size: 38px; }
  .kf { gap: 14px 16px; }
  .kf dd { font-size: 18px; }
  .res-toggle {
    display: flex; justify-content: center;
    width: 100%; min-height: 44px; margin-top: 16px;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
    color: var(--text); font-size: 14px; font-weight: 600;
  }
  .res:not(.is-more) .kf-more,
  .res:not(.is-more) .res-more { display: none; }
  .tl-scale { font-size: 11.5px; }
  .tl-scale span { white-space: nowrap; }
  .tl-legend li { grid-template-columns: 12px 1fr; }
  .tl-v { grid-column: 2; }

  .card { margin: 16px 0; }
  .step { padding: 18px 16px; }
  .step-head .tag { display: none; }
  .fields, .fields-2 { grid-template-columns: 1fr; gap: 18px; }
  .sub-peek { display: none; }
  .sub-peek.is-warn { display: block; }

  .chg > summary { padding: 12px 14px; }
  .chg-body { padding: 0 14px 14px; }
  .entry { grid-template-columns: 1fr auto auto; grid-template-areas: "date val acts" "tag tag acts"; gap: 2px 10px; padding: 8px 6px 8px 12px; }
  .entry-date { grid-area: date; }
  .entry-val { grid-area: val; }
  .entry-tag { grid-area: tag; }
  .entry-tag:empty { display: none; }
  .entry-acts { grid-area: acts; }
  .le-grid { grid-template-columns: 1fr; }
  .le-btns .btn { flex: 1; }

  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: visible; }
  .tab { min-height: 48px; padding: 6px 4px; white-space: normal; line-height: 1.25; font-size: 13px; text-align: center; }
  .fold > summary { padding: 14px 16px; }
  .fold-body { padding: 4px 16px 16px; }
  .cmp-row { padding: 9px 10px; gap: 8px; font-size: 13px; }
  .figs { grid-template-columns: 1fr 1fr; }
  .fig-v { font-size: 18px; }

  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 8px 7px; }
  .tbl th { font-size: 11.5px; white-space: normal; }
  .tbl:not(.show-cols) .c-d { display: none; }
  .tbl:not(.show-cols) .v2 { display: none; }
  .tbl:not(.show-cols) .v0 { display: inline; }
  .table-scroll { max-height: 70vh; }


  .sheet { padding: 0; align-items: flex-end; }
  .sheet-panel { max-width: none; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .sheet-panel.is-narrow { max-width: none; }
  .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- car / consumer / personal additions ---------- */
.entry-tag.is-flag { color: var(--warn); }
.now-tag {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; font-style: normal; vertical-align: 1px;
}
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.le + .le .fields-2 { margin-top: 10px; }
.chg-body .fields-2 { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
@media (max-width: 640px) {
  .now-tag { display: table; margin: 2px 0 0; }
}

/* ---------- result header: EMI details toggle + total interest headline ---------- */
.emi-more { margin-top: 6px; }
.emi-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--accent); font-size: 14px; font-weight: 600; }
.emi-more summary::after {
  content: ""; width: 7px; height: 7px; margin: 0 0 3px 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.emi-more[open] summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.emi-more p { margin-top: 4px; max-width: 54ch; color: var(--text-2); font-size: 14px; }
.hero2 { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.hero2-v { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--interest); font-variant-numeric: tabular-nums; }
.hero2-l { margin-top: 4px; font-size: 16px; font-weight: 600; }
.hero2-n { margin-top: 2px; color: var(--text-3); font-size: 13px; }
@media (max-width: 640px) { .hero2-v { font-size: 30px; } }

/* ---------- pensioner home loan additions ---------- */
.calc .fields.fields-1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-top: 20px; }
.inp-row { display: flex; gap: 8px; align-items: stretch; }
.inp-row .inp { flex: 1 1 auto; min-width: 0; }
.inp-row .btn { flex: 0 0 auto; min-height: 46px; }
.tl-p2 { background: color-mix(in srgb, var(--principal) 45%, transparent); }
.dot-p2 { background: color-mix(in srgb, var(--principal) 45%, transparent); }
.src-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600;
}
.notice.is-info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.notice.is-info .notice-title { color: var(--accent); }
.now-tag.is-ret { background: var(--warn-soft); color: var(--warn); }
.tbl tr.is-final td { font-weight: 600; }
/* three input steps: salary, pension, optional changes */
#step3 { order: 3; grid-area: s3; }
.see-result { order: 4; }
.calc-result { order: 5; }
@media (min-width: 960px) {
  .calc { grid-template-areas: "s1 res" "s2 res" "s3 res"; }
  .calc-result { grid-row: 1 / span 3; }
}
@media (max-width: 959px) {
  #app[data-view="result"] #step3 { display: none; }
}

/* ---------- what the last change did (toast + line under Total interest) ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center; gap: 10px; width: min(460px, calc(100% - 32px));
  padding: 12px 8px 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow-pop);
  transform: translate(-50%, 16px); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.toast[hidden] { display: none; }
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.toast.is-up { border-left-color: var(--warn); }
.toast-main { flex: 1; min-width: 0; }
.toast-k { color: var(--text-3); font-size: 12px; font-weight: 500; }
.toast-v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.toast-was { color: var(--text-3); font-size: 13px; font-weight: 500; text-decoration: line-through; }
.toast-sub { margin-top: 2px; font-size: 13px; font-weight: 600; }
.toast.is-down .toast-sub { color: var(--good); }
.toast.is-up .toast-sub { color: var(--warn); }
.toast-go { flex: 0 0 auto; }
.toast-x {
  flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: none; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer;
}
.toast-x:hover { color: var(--text); }
@media (min-width: 960px) { .toast { display: none !important; } }
.hero2-d { margin-top: 10px; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; animation: hero2d-in .3s ease; }
.hero2-d.is-down { background: var(--good-soft); color: var(--good); }
.hero2-d.is-up { background: var(--warn-soft); color: var(--warn); }
@keyframes hero2d-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } .hero2-d { animation: none; } }
/* phones and tablets: the EMI speaks for itself; the label stays on desktop */
@media (max-width: 959px) {
  .big-l:not(.has-src) { display: none; }
  .big-l-t { display: none; }
  .big-l .src-tag { margin-left: 0; }
}
.fd-title { margin-top: 18px; }
.chg-body > .fields-2 { margin-top: 0; margin-bottom: 14px; }
