/* =========================================================
   20 Minutes Fit — Design C · Gamified Energy
   Dark near-black base, electric-lime primary accent,
   gold kept as a secondary (badges / intermediate level).
   RTL-first (logical properties).
   ========================================================= */
:root {
  --bg: #0a0b0d;
  --surface: #14161a;
  --surface-2: #1c1f25;
  --border: #282c33;
  --text: #f4f6f8;
  --text-dim: #9aa0aa;
  --text-faint: #6b727c;

  --lime: #c8ff00;
  --lime-dark: #a4d400;
  --gold: #e8b400;
  --gold-dark: #b98f00;

  --radius: 16px;
  --maxw: 820px;

  /* level signature colours */
  --lc-foundation: #14e0c4;
  --lc-beginner: #3b82f6;
  --lc-intermediate: #e8b400;
  --lc-advanced: #ef4444;

  /* category accents */
  --cat-push: #ff7a2f;
  --cat-core: #26d366;
  --cat-pull: #38bdf8;
  --cat-legs: #b490ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 11, 13, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 14px;
}
.app-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
}
.app-back:hover { color: var(--lime); }
.app-back svg { width: 22px; height: 22px; }
.app-back[hidden] { display: none; }
.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  color: var(--text);
}
.wordmark {
  direction: ltr;
  color: var(--text);
  font-weight: 900;
  letter-spacing: .5px;
  font-size: 20px;
  line-height: 1.05;
}
.wordmark .m { color: var(--lime); }
.brand-tag { color: var(--text-dim); font-size: 12px; }
.streak-chip {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 13px;
  font-weight: 900;
}
.streak-chip .n { color: var(--lime); }
.streak-chip[hidden] { display: none; }

/* ---------- app shell ---------- */
.app {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 16px 70px;
}

/* ---------- headings / breadcrumb ---------- */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.crumb a { color: var(--text-dim); text-decoration: none; }
.crumb a:hover { color: var(--lime); }
.crumb .sep { opacity: .5; }
.page-title { font-size: 32px; font-weight: 900; margin: 0 0 2px; letter-spacing: -.5px; }
.page-sub { color: var(--text-dim); margin: 0 0 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(200, 255, 0, .14), transparent 55%),
    linear-gradient(160deg, #16181d, #0a0b0d);
  padding: 30px 26px;
  margin-bottom: 20px;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--lime);
  color: #0a0b0d;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.hero-title { font-size: 42px; font-weight: 900; line-height: 1.06; margin: 0 0 12px; }
.hero-title .hl { color: var(--lime); }
.hero-sub { color: var(--text-dim); font-size: 15px; margin: 0 0 22px; max-width: 42ch; }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--lime);
  color: #0a0b0d;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 900;
  font-size: 17px;
  padding: 14px 30px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(200, 255, 0, .22);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn-ghost {
  background: none;
  color: var(--lime);
  border: 1px solid var(--lime-dark);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(200, 255, 0, .08); filter: none; }
.hero-cta { font-size: 18px; padding: 15px 30px; }
.hero-cta .cta-where { display: block; font-size: 12px; font-weight: 600; opacity: .78; margin-top: 2px; }
.start-over {
  background: none; border: none; color: var(--text-faint);
  font-family: inherit; font-size: 13px; cursor: pointer; text-decoration: underline;
  padding: 4px;
}
.start-over:hover { color: var(--text-dim); }
.levels-toggle {
  display: block;
  background: none; border: none; color: var(--lime);
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 12px 0 0; text-decoration: none;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.hstat {
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}
.hstat .n { font-size: 28px; font-weight: 900; line-height: 1; color: var(--lime); }
.hstat .l { font-size: 12px; color: var(--text-dim); margin-top: 5px; }

/* ---------- dashboard (ring + badges) ---------- */
.dash {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.ring { position: relative; width: 96px; height: 96px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring .val {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring .val b { font-size: 24px; font-weight: 900; color: var(--lime); line-height: 1; }
.ring .val small { font-size: 11px; color: var(--text-dim); }
.dash-info .t { font-weight: 900; font-size: 17px; margin-bottom: 4px; }
.dash-info .s { color: var(--text-dim); font-size: 13px; margin-bottom: 12px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-i {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
}
.badge-i.on { background: color-mix(in srgb, var(--lime) 16%, var(--surface)); border-color: var(--lime-dark); }
.badge-i.lock { opacity: .38; }

/* ---------- latest video ---------- */
.latest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 4px 0 8px;
}
.latest-title { font-size: 15px; font-weight: 900; margin: 0 0 12px; color: var(--lime); }
.latest-cover {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  max-width: 250px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
}
.latest-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-play {
  position: absolute; inset: 0; margin: auto;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--lime);
  color: #0a0b0d;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.latest-caption { color: var(--text-dim); font-size: 14px; text-align: center; margin: 12px 0 0; }
.latest-actions { display: flex; gap: 8px; margin-top: 12px; }
.soc-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  direction: ltr;
  border-radius: 12px;
  padding: 11px;
  font-weight: 900; font-size: 13px;
  color: #0a0b0d;
  background: var(--lime);
  text-decoration: none;
}
.soc-btn svg { width: 18px; height: 18px; }
.soc-btn span { line-height: 1; }
@media (max-width: 380px) { .soc-btn span { display: none; } .soc-btn svg { width: 22px; height: 22px; } }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-1 { grid-template-columns: 1fr; }

.card {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--c, var(--lime)); }
.card-num { color: var(--c, var(--lime)); font-size: 13px; font-weight: 900; }
.card-title { font-size: 20px; font-weight: 900; }
.card-meta { color: var(--text-dim); font-size: 13px; }
.hdr-check { color: var(--cat-core); }

/* levels grid card */
.card-level::after {
  content: "";
  position: absolute; inset-inline-end: -30px; bottom: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%);
  pointer-events: none;
}
.card-level .card-title { margin: 2px 0; font-size: 22px; }
.lvl-bar { height: 5px; border-radius: 6px; background: var(--surface-2); margin-top: 12px; overflow: hidden; position: relative; z-index: 1; }
.lvl-bar i { display: block; height: 100%; background: var(--c); }

/* ---------- level accordion ---------- */
.month-sect { margin-bottom: 12px; }
.month-header {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  border: none; cursor: pointer;
  font-family: inherit;
  color: #0a0b0d;
  font-weight: 900; font-size: 19px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--c, var(--lime));
  text-align: start;
}
.month-header .hdr-check { color: #0a0b0d; }
.month-body { padding: 10px 0 2px; }
.month-body.collapsed, .week-body.collapsed { display: none; }
.week-sect { margin: 10px 12px; }
.week-header {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  border: none; cursor: pointer;
  font-family: inherit;
  color: var(--text);
  font-weight: 900; font-size: 15px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border-inline-start: 4px solid var(--c, var(--lime));
  text-align: start;
  margin-bottom: 10px;
}
.week-header .hdr-check { color: var(--cat-core); }
.week-body { padding: 2px 0 4px; }
.chevron { color: currentColor; opacity: .7; font-size: 14px; transition: transform .15s; }
.month-header .chevron, .week-header .chevron { opacity: .8; }
.open > .chevron { transform: rotate(180deg); }

/* day card */
.day-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}
.day-card .d-ring {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  color: var(--text-dim);
}
.day-card .day-main { min-width: 0; }
.day-card .card-title { font-size: 16px; }
.day-card .cats { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.day-card .chip {
  font-size: 10px; font-weight: 700;
  padding: 1px 8px; border-radius: 6px;
  color: #0a0b0d;
}
.chip.c-push { background: var(--cat-push); }
.chip.c-core { background: var(--cat-core); }
.chip.c-pull { background: var(--cat-pull); }
.chip.c-legs { background: var(--cat-legs); }
.day-card .tail { margin-inline-start: auto; color: var(--text-dim); font-weight: 900; }
.day-card .check { color: var(--cat-core); }
.badge {
  margin-inline-start: auto;
  font-size: 11px; font-weight: 900;
  color: var(--lime);
  border: 1px solid var(--lime-dark);
  border-radius: 20px;
  padding: 3px 10px;
}
.day-card.done { border-color: var(--cat-core); background: color-mix(in srgb, var(--cat-core) 8%, var(--surface)); }
.day-card.done .d-ring { border-color: var(--cat-core); color: var(--cat-core); }
.day-card.current { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.day-card.current .d-ring { border-color: var(--lime); color: var(--lime); }
.day-card.skipped { opacity: .55; }
.day-card.skipped .d-ring { border-color: var(--text-faint); color: var(--text-faint); }
.day-card.skipped .card-title::after { content: " (تخطّيت)"; color: var(--text-faint); font-weight: 700; font-size: 13px; }

.rest-note { color: var(--text-dim); font-size: 13px; text-align: center; padding: 8px 0 2px; }
.week-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 6px 0 2px; }
.add-days-btn, .extra-remove {
  background: none;
  border: 2px dashed var(--lime-dark);
  color: var(--lime);
  border-radius: 12px;
  font-family: inherit; font-weight: 900; font-size: 13px;
  padding: 9px 18px; cursor: pointer;
}
.extra-remove { border-color: var(--border); color: var(--text-dim); }
.add-days-btn:hover { background: rgba(200, 255, 0, .08); }
.month-rest-note {
  color: var(--text-dim); font-size: 13px; text-align: center;
  border-top: 1px dashed var(--border);
  margin-top: 14px; padding-top: 10px;
}

/* ---------- workout ---------- */
.rounds-note {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--lime) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--lime-dark);
  border-radius: 16px;
  padding: 16px 20px;
  font-weight: 700;
  margin-bottom: 22px;
}
.rounds-note .big { color: var(--lime); font-size: 34px; font-weight: 900; line-height: 1; }
.rounds-note .rn-sub { color: var(--text-dim); font-size: 14px; font-weight: 400; }

.exercise {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}
.exercise-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.exercise-num {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: #0a0b0d;
  border-radius: 10px; font-weight: 900;
}
.exercise-name { font-size: 19px; font-weight: 900; margin: 0; }
.cat-tag {
  margin-inline-start: auto;
  border-radius: 10px;
  padding: 4px 12px;
  font-size: 12px; font-weight: 900;
  color: #0a0b0d;
}
.cat-tag.cat-push { background: var(--cat-push); }
.cat-tag.cat-core { background: var(--cat-core); }
.cat-tag.cat-pull { background: var(--cat-pull); }
.cat-tag.cat-legs { background: var(--cat-legs); }
.demo {
  position: relative;
  margin: 14px 18px;
  background: #e9e9ea;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.demo-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.demo-badge {
  position: absolute; top: 10px; inset-inline-start: 10px;
  background: var(--lime); color: #0a0b0d;
  font-size: 11px; font-weight: 900;
  border-radius: 20px; padding: 4px 10px;
}
.cue { padding: 0 18px 16px; color: var(--text-dim); }
.ex-note {
  margin: 0 18px 16px;
  background: color-mix(in srgb, var(--lime) 8%, var(--surface));
  border-inline-start: 3px solid var(--lime-dark);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px; font-size: 14px;
}
.complete-bar { margin-top: 22px; position: sticky; bottom: 14px; display: flex; gap: 12px; }
.complete-bar .btn { flex: 1; }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  max-width: 420px;
  width: 100%;
}
.modal p { font-size: 16px; margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions button { flex: 1; min-width: 120px; }

.empty { color: var(--text-dim); text-align: center; padding: 40px 0; }

/* ---------- calculator ---------- */
/* home entry card */
.calc-home {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  text-decoration: none; color: var(--text); margin-bottom: 20px;
}
.calc-home:hover { border-color: var(--lime); }
.calc-home .ch-icon { font-size: 26px; flex: 0 0 auto; }
.calc-home .ch-main { flex: 1; }
.calc-home .ch-title { font-weight: 900; font-size: 16px; }
.calc-home .ch-sub { color: var(--text-dim); font-size: 13px; }
.calc-home .ch-arrow { margin-inline-start: auto; color: var(--text-dim); font-weight: 900; }
.calc-home.has { flex-direction: column; align-items: stretch; gap: 10px; }
.calc-home .ch-head { display: flex; justify-content: space-between; align-items: center; }
.calc-home .ch-edit { color: var(--lime); font-size: 13px; font-weight: 700; }
.calc-home .ch-cal { font-size: 26px; font-weight: 900; color: var(--lime); }
.calc-home .ch-cal span { font-size: 13px; color: var(--text-dim); font-weight: 400; }
.calc-home .ch-macros { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-home .chm { font-size: 12px; font-weight: 700; border-radius: 8px; padding: 3px 10px; }
.chm.p { background: color-mix(in srgb, #56c5f0 18%, var(--surface)); color: #8fd6f6; }
.chm.c { background: color-mix(in srgb, var(--gold) 18%, var(--surface)); color: var(--gold); }
.chm.f { background: color-mix(in srgb, #ff7a2f 18%, var(--surface)); color: #ff9d63; }

/* form */
.calc-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 18px;
}
.calc-field { margin-bottom: 16px; }
.calc-field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.calc-field .unit { color: var(--text-dim); font-weight: 400; font-size: 12px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.calc-form input {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit;
  font-size: 16px; font-weight: 700; padding: 11px 10px; text-align: center;
}
.calc-form input:focus { outline: none; border-color: var(--lime); }
.seg { display: flex; gap: 8px; }
.seg-opt {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-dim); font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 11px; cursor: pointer;
}
.seg-opt.active { background: color-mix(in srgb, var(--lime) 16%, var(--surface)); border-color: var(--lime); color: var(--lime); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-opt {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text-dim); font-family: inherit; font-weight: 700; font-size: 13px;
  padding: 9px 14px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.3;
}
.chip-opt span { font-size: 11px; opacity: .8; font-weight: 400; }
.chip-opt.active { background: color-mix(in srgb, var(--lime) 16%, var(--surface)); border-color: var(--lime); color: var(--lime); }
.chips-goal .chip-opt { flex: 1; }
.calc-btn { width: 100%; margin-top: 4px; }

/* results */
.calc-card {
  background: var(--surface); border: 1px solid var(--lime-dark);
  border-radius: var(--radius); padding: 22px 18px;
}
.calc-goal-tag {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 700;
  color: var(--text-dim); margin-bottom: 14px;
}
.calc-cal { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 18px; }
.calc-cal .ccl { color: var(--text-dim); font-size: 14px; }
.calc-cal .ccn { font-size: 52px; font-weight: 900; line-height: 1; color: var(--lime); }
.calc-cal .ccu { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.macro-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; margin-bottom: 16px; background: var(--surface-2); }
.macro-bar i { display: block; height: 100%; }
.macro-bar .mb-p { background: #56c5f0; }
.macro-bar .mb-c { background: var(--gold); }
.macro-bar .mb-f { background: #ff7a2f; }
.macro-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.macro-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center; }
.macro-card .mc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-bottom: 6px; }
.macro-card .mc-n { font-size: 24px; font-weight: 900; }
.macro-card .mc-n small { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-inline-start: 2px; }
.macro-card .mc-l { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.mc-p .mc-dot { background: #56c5f0; } .mc-p .mc-n { color: #8fd6f6; }
.mc-c .mc-dot { background: var(--gold); } .mc-c .mc-n { color: var(--gold); }
.mc-f .mc-dot { background: #ff7a2f; } .mc-f .mc-n { color: #ff9d63; }
.food-guide { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 16px; }
.fg-title { font-weight: 900; font-size: 15px; margin-bottom: 12px; }
.fg-title span { color: var(--text-dim); font-weight: 400; font-size: 12px; }
.fg-row { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.fg-row:last-child { border-bottom: none; padding-bottom: 0; }
.fg-macro { font-weight: 900; font-size: 14px; }
.fg-macro.p { color: #8fd6f6; }
.fg-macro.c { color: var(--gold); }
.fg-macro.f { color: #ff9d63; }
.fg-eq { color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.fg-eq em { color: var(--text-faint); font-style: normal; }

.calc-meta { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 16px; }
.calc-disc { color: var(--text-faint); font-size: 12px; text-align: center; margin: 12px 0 0; line-height: 1.5; }
.calc-error {
  background: color-mix(in srgb, var(--cat-push) 12%, var(--surface));
  border: 1px solid var(--cat-push); border-radius: 12px;
  padding: 12px 16px; color: #ffb38a; font-weight: 700;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .hero-title { font-size: 34px; }
  .page-title { font-size: 28px; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .badges { justify-content: center; }
  .wordmark { font-size: 18px; }
}
