/* Paycheck Paradox — a warm editorial earth palette anchored on the
   logo terracotta (#B3533E). One coherent family: terracotta primary,
   goldenrod for caution, oxblood for danger, a single muted spruce for
   "good". Neutrals carry a faint warm (brown) undertone; the ground
   stays pure white so it reads bright and professional. */
:root {
  --bg: #FBF7F2;             /* paycheckparadox.com paper */
  --surface: #ffffff;
  --panel: #F3E9E1;          /* nested tiles / inputs — sand */
  --ink: #17140F;            /* paycheckparadox.com ink */
  --muted: #6f665f;          /* warm grey */
  --line: #E6D9CF;           /* warm hairline */
  --line-soft: #f2ece8;

  --accent: #C14B36;         /* paycheckparadox.com rust (logo) — primary / brand */
  --accent-hi: #A63F2C;      /* hover / pressed */
  --accent-ink: #ffffff;
  --accent-soft: #f9efec;    /* washed terracotta fill */
  --accent-line: #e8c7bc;

  --ok: #3f6b53;             /* muted spruce — success / "ahead" */
  --ok-soft: #e9f0eb;
  --warn: #8a5a1c;           /* goldenrod — caution / "to do" */
  --warn-soft: #f5ead6;
  --hot: #9c342a;            /* oxblood — danger / "short" / delete */
  --hot-soft: #f7e6e2;
  --good: var(--ok);
  --bad: var(--hot);

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(45,30,24,.06), 0 1px 3px rgba(45,30,24,.05);
  --shadow-md: 0 4px 14px rgba(45,30,24,.08), 0 2px 5px rgba(45,30,24,.05);
}
/* No dark mode: matches paycheckparadox.com, which is light only. */

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font: 600 1.7rem/1.15 "Fraunces", Georgia, serif; margin: 0; letter-spacing: -.015em; }
h2 { font: 600 1.15rem/1.25 "Fraunces", Georgia, serif; margin: 0 0 .7rem; letter-spacing: -.01em; }

.topbar {
  display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap;
  padding: .7rem 1.1rem; background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand a { display: flex; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-app {
  font-weight: 700; font-size: .82rem; color: var(--ink); white-space: nowrap;
  padding-left: .7rem; border-left: 1px solid var(--line);
}
.topbar nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); font-weight: 500; }
.topbar nav a:hover { color: var(--ink); text-decoration: none; }
.topbar nav a.on { font-weight: 700; color: var(--accent); }

.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; padding: 2rem 0 4rem; }
.tbl, .calc-table-wrap { overflow-x: auto; }
.foot {
  max-width: 740px; margin: 0 auto; padding: 1.4rem 1.1rem 2rem; color: var(--muted);
  font-size: .8rem; display: flex; gap: .55rem; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--line-soft);
}
.foot-logo { width: 26px; height: 26px; flex: none; display: block; }
.foot .foot-name { font-weight: 700; color: var(--ink); }

/* --- engagement band ("Got an idea?" + "Sharing is caring") above the footer --- */
.engagebar {
  max-width: 740px; margin: 2.4rem auto 0; padding: 1rem 1.1rem 0;
  border-top: 1px solid var(--line-soft);
}
.engagebar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; align-items: start; }
.engage-title { color: var(--ink); font-size: .9rem; font-weight: 700; margin: 0 0 .5rem; padding: .3rem 0 0; }
.idea-form { display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.idea-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: var(--muted); }
.idea-form textarea { resize: vertical; }
.idea-form button { align-self: flex-start; }
.idea-form input[readonly] { font-size: .8rem; }
.engage-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.idea-thanks { font-size: .85rem; color: var(--ok); background: var(--ok-soft);
  padding: .5rem .8rem; border-radius: 8px; margin: 0 0 .6rem; }
@media (max-width: 560px) { .engagebar-grid { grid-template-columns: 1fr; } }

/* --- family sharing --- */
.family-cta {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap; background: var(--accent-soft); border-color: var(--accent-line); box-shadow: none;
}
.family-cta-body { display: flex; gap: .8rem; align-items: flex-start; flex: 1; min-width: 260px; }
.family-cta-icon { font-size: 1.6rem; line-height: 1; flex: none; }
.family-cta h3 { margin: 0 0 .25rem; font-size: 1rem; }
.family-cta .btn { flex: none; }
.family-explain ul { margin: .4rem 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.6; }
.family-explain ul strong, .family-explain p strong { color: var(--ink); }
.family-members { list-style: none; margin: .3rem 0 1rem; padding: 0; }
.family-members li { display: flex; justify-content: space-between; align-items: center;
  gap: .8rem; flex-wrap: wrap; padding: .5rem 0; border-top: 1px solid var(--line-soft); }
.family-members li:first-child { border-top: 0; }
.family-actions { display: inline-flex; gap: .8rem; align-items: center; }
.family-link { width: 100%; font-size: .78rem; margin-top: .25rem; }
.family-invite-form { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
  border-top: 1px solid var(--line-soft); padding-top: .9rem; }
.family-invite-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); width: 100%; max-width: 22rem; }
.hub-banner--tight { padding: 1.6rem 1.4rem; }

.idea-list { list-style: none; margin: 0; padding: 0; }
.idea-list li { padding: .6rem 0; border-top: 1px solid var(--line-soft); }
.idea-list li:first-child { border-top: 0; }
.idea-list li.is-done { opacity: .55; }
.idea-list li p { margin: 0 0 .2rem; white-space: pre-wrap; }
.idea-actions { display: inline-flex; gap: .8rem; margin-left: .6rem; }

/* --- offers page: pitch + legal disclaimer --- */
.offers-pitch { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 85%);
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  padding: .9rem 1.1rem; margin: 0 0 1rem; line-height: 1.5; }
.offers-pitch strong { color: var(--ink); }
.disclaimer { margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line-soft);
  border-radius: var(--radius); background: var(--panel); color: var(--muted); font-size: .8rem; line-height: 1.55; }
.disclaimer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .5rem; color: var(--muted); }
.disclaimer p { margin: .5rem 0; }
.disclaimer strong { color: var(--ink); }

@media (max-width: 560px) {
  .brand-app { padding-left: 0; border-left: 0; font-size: .78rem; }
  .topbar nav { gap: .9rem; font-size: .92rem; }
}

.pagehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; gap: 1rem; }
.head-actions { display: flex; gap: .5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.hot { color: var(--hot); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.2rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm);
}
.card.attn { border-color: var(--accent-line); }
.card.attn > h2::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: .5rem; vertical-align: middle;
}
.card.danger { border-color: var(--line); box-shadow: none; }

.totals {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1.1rem;
}
.totals > div {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: .7rem .8rem; display: flex; flex-direction: column; gap: .2rem;
}
.totals .k { font-size: .72rem; color: var(--muted); letter-spacing: .01em; }
.totals .v { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }

.card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .5rem; }

.attn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.attn-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.credit { background: var(--hot); }
.dot.perk { background: var(--muted); }
.dot.offer { background: var(--accent); }
.a-card { font-weight: 600; }
.a-detail { width: 100%; padding-left: 1rem; }

.brow { padding: .6rem 0; border-top: 1px solid var(--line); }
.brow:first-of-type { border-top: 0; }
.brow-head { display: flex; align-items: center; gap: .5rem; justify-content: space-between; }
.bname { font-weight: 600; }
a.bname { color: var(--ink); }
a.bname:hover { text-decoration: underline; color: var(--accent); }

/* --- "is this card worth its fee?" strip --- */
.worthit { margin: .1rem 0 .2rem; }
.wi-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .9rem; }
.wi-row + .wi-row { border-top: 1px solid var(--line); }
.wi-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wi-net { font-weight: 700; border-top: 2px solid var(--ink) !important; margin-top: .1rem; }
.worthit.is-good .wi-net { color: var(--good); }
.worthit.is-bad .wi-net { color: var(--bad); }
.wi-foot { margin: .5rem 0 0; }

/* --- dashboard summary header --- */
.dash-summary {
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 78%);
  border-color: var(--accent-line);
}
.dash-summary .totals { margin-bottom: .7rem; }
.dash-summary .totals > div { background: var(--surface); box-shadow: var(--shadow-sm); border-color: var(--line-soft); }
.dash-net { margin: 0 0 .35rem; font-size: .95rem; }

/* Benefit tiles — each credit / perk is its own carded row that pops off
   the section behind it. Used on the tracker "Log by card" (.benefit-list
   .brow) AND the card-settings Benefits list (.benefit-block) — identical. */
.benefit-list { display: flex; flex-direction: column; gap: .85rem; margin-top: .5rem; }
.benefit-list .brow,
.benefit-block {
  border-top: 0;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.benefit-block { margin-bottom: .85rem; }
.benefit-block:last-child { margin-bottom: 0; }
.benefit-list .brow.auto,
.benefit-block.inactive {
  background: var(--surface); border-left-color: var(--line);
  box-shadow: none;
}
.benefit-list .brow.auto { border-style: dashed; }
.benefit-block.inactive { opacity: .65; }
.benefit-list .brow .quicklog { margin-top: .7rem; }
.benefit-list .hist { margin-top: .55rem; }
.benefit-list .brow .bname, .benefit-block .bname { font-size: .98rem; }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: .45rem 0 .3rem; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar > span.full { background: var(--ok); }
.bar > span.risk { background: var(--hot); }
.bmeta { display: flex; justify-content: space-between; font-size: .85rem; gap: .5rem; }

.badge { font-size: .72rem; padding: .12rem .5rem; border-radius: 999px; background: var(--panel); border: 0; color: var(--muted); white-space: nowrap; font-weight: 600; }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.signup-table { width: 100%; }
.signup-table th, .signup-table td { padding: 8px 10px; text-align: left; }
.signup-table tr.row-warn td { background: var(--warn-soft); }
.signup-table td.nowrap, .signup-table .nowrap { white-space: nowrap; }
.signup-table { table-layout: fixed; font-size: .88rem; }
.signup-table td { vertical-align: top; overflow-wrap: anywhere; }
.signup-table th:nth-child(1) { width: 34px; }
.signup-table th:nth-child(2) { width: 25%; }
.signup-table th:nth-child(3) { width: 15%; }
.signup-table th:nth-child(4) { width: 13%; }
.signup-table th:nth-child(6) { width: 16%; }
.su-gift { margin-top: 4px; font-size: .8rem; }
.su-gift .linkish:not(.danger) { color: var(--muted); }
.people-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.people-nav a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; }
.people-nav a.on { border-color: var(--accent, #C14B36); box-shadow: inset 0 -3px 0 var(--accent, #C14B36); }
.people-nav span { display: block; font-size: .8rem; color: var(--muted); }
.user-edit { margin: 0 0 8px; }
.user-edit summary { cursor: pointer; overflow-wrap: anywhere; }
.user-edit[open] summary { margin-bottom: 12px; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { margin: 0 0 6px; }
@media (max-width: 560px) { .people-nav { grid-template-columns: 1fr; } }
.signup-table th:nth-child(7) { width: 76px; }
.signup-table .su-act, .signup-table .su-act button, .signup-table .su-nowrap { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 760px) { /* each person becomes a stacked block, so the page never scrolls sideways */
  .signup-table, .signup-table tbody, .signup-table tr, .signup-table td { display: block; width: 100%; box-sizing: border-box; }
  .signup-table thead { display: none; }
  .signup-table tr { position: relative; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .signup-table td { padding: 3px 0; border: 0; }
  .signup-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
  .signup-table td.su-pick { position: absolute; right: 0; top: 10px; width: auto; }
  .signup-table td.su-who { padding-right: 30px; }
}
.badge.hot { color: var(--hot); background: var(--hot-soft); font-weight: 700; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.dim { color: var(--muted); background: var(--panel); }

.quicklog { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }
.quicklog input[type=number] { width: 6rem; }
.quicklog input[type=text] { flex: 1; min-width: 8rem; }

.brow-actions {
  display: flex; gap: .9rem; font-size: .82rem; margin-top: .7rem;
  padding-top: .7rem; border-top: 1px solid var(--line-soft);
  align-items: center; flex-wrap: wrap;
}

.hist { margin-top: .4rem; font-size: .82rem; }
.hist ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.hist li { display: flex; gap: .6rem; align-items: baseline; padding: .15rem 0; }

details.perks summary, details.archived summary, details.hist summary,
details.autopilot summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
details.perks, details.autopilot { margin-top: .9rem; }
details.autopilot summary { color: var(--ok); font-weight: 600; }

/* segmented Manual / Auto / Hidden control on the settings page */
.trk { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.trk .inline { display: flex; }
.trk-opt {
  background: transparent; color: var(--muted); border: 0; border-right: 1px solid var(--line);
  padding: .34rem .7rem; font-size: .78rem; font-weight: 600; border-radius: 0; box-shadow: none;
}
.trk form:last-child .trk-opt { border-right: 0; }
.trk-opt.on { background: var(--accent); color: var(--accent-ink); }
.trk-opt:hover { filter: none; }

/* legend that explains the control, using the same pills so they're
   instantly recognisable next to the ones on each benefit below */
.trk-legend { display: flex; flex-direction: column; gap: .55rem; margin: .2rem 0 1rem; }
.trk-legend-row { display: flex; gap: .7rem; align-items: baseline; }
.trk-legend .pill {
  flex: none; display: inline-block; min-width: 4.2rem; text-align: center;
  padding: .34rem .7rem; font-size: .78rem; font-weight: 600; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
}
.trk-legend .pill.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.trk-legend .trk-legend-row p { margin: 0; font-size: .88rem; color: var(--muted); }
.trk-legend .trk-legend-row p strong { color: var(--ink); }

.offer { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.offer:first-of-type { border-top: 0; }
.offer.expiring { }
.offer.expiring strong::before { content: "● "; color: var(--hot); }
.offer-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.arow { display: flex; justify-content: space-between; padding: .4rem 0; border-top: 1px solid var(--line); gap: .5rem; }

form.stack { display: flex; flex-direction: column; gap: .7rem; }
form.stack label, label.fm { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
label.chk { flex-direction: row !important; align-items: center; gap: .5rem; }
input, select, textarea {
  font: inherit; padding: .5rem .65rem; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button, .btn {
  cursor: pointer; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  border-radius: 10px; padding: .52rem .9rem; font-weight: 600; font: inherit; display: inline-block;
  box-shadow: 0 1px 2px rgba(179,83,62,.25);
}
.btn.primary { background: var(--accent); }
.btn.ghost { background: var(--surface); color: var(--accent); border-color: var(--accent-line); box-shadow: none; }
.btn:hover, button:hover { text-decoration: none; background: var(--accent-hi); }
.btn.ghost:hover { background: var(--accent-soft); }
.linkish { background: none; border: none; color: var(--accent); padding: 0; font-weight: 600; box-shadow: none; }
.linkish:hover { background: none; text-decoration: underline; }
.linkish.danger { color: var(--hot); }
button.danger, .danger .linkish { color: var(--hot); }
.chip { background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; font-size: .78rem; font-weight: 600; box-shadow: none; }
.chip.on { background: var(--ok); color: #fff; border-color: var(--ok); }
form.inline { display: inline; }

fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; display: flex; flex-direction: column; gap: .7rem; }

.tpl-row { display: flex; flex-direction: column; gap: .5rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.tpl-row:first-of-type { border-top: 0; }

.row-between { display: flex; justify-content: space-between; margin-top: .8rem; }
.login {
  max-width: 360px; margin: 3.5rem auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 1.6rem; box-shadow: var(--shadow-md);
}
.login h1 { font-size: 1.25rem; }
.login form { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.1rem; text-align: left; }
.login form button { margin-top: .2rem; }
.error { color: var(--hot); }
.empty {
  text-align: center; padding: 3rem 1.4rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
}

@media (min-width: 560px) {
  .totals { grid-template-columns: repeat(4, 1fr); }
}

/* --- navigation crumbs --- */
.crumb { margin: 0 0 .6rem; }
.back { font-size: .9rem; font-weight: 600; }
.eyebrow { margin: 0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* --- quicklog date field --- */
.quicklog input[type=date] { width: auto; flex: 0 0 auto; color-scheme: light dark; }

/* --- card face: evokes the real card's palette, no logos or art --- */
.cardface {
  display: block; text-decoration: none; color: inherit;
  width: 100%; max-width: 340px; aspect-ratio: 1.586 / 1;
  border-radius: 14px; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  --cf-ink: #f7fafc;
}
.cardface:hover { text-decoration: none; filter: brightness(1.04); }
.cardface .cf-row { display: flex; justify-content: space-between; align-items: center; }
.cf-issuer { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; color: var(--cf-ink); opacity: .95; }
.cf-name { font-size: 1.05rem; font-weight: 700; color: var(--cf-ink); line-height: 1.2; }
.cf-num { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; font-size: .78rem; color: var(--cf-ink); opacity: .9; }
.cf-exp { font-size: .7rem; color: var(--cf-ink); opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.cf-chip {
  width: 34px; height: 26px; border-radius: 5px;
  background: linear-gradient(135deg, #d9c37a, #b8963f 55%, #e7d79a);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.cf-net { display: flex; }
.cf-net i { width: 15px; height: 15px; border-radius: 50%; display: block; }
.cf-net i:first-child { background: rgba(255,255,255,.55); }
.cf-net i:last-child { background: rgba(255,255,255,.3); margin-left: -7px; }

.cardface--default { background: linear-gradient(135deg, #3b4757, #232c39); }
.cardface--platinum { background: linear-gradient(135deg, #e9ebee, #b9bfc9 45%, #d6dae1); --cf-ink: #1f2733; border-color: rgba(0,0,0,.12); }
.cardface--platinum .cf-net i:first-child { background: rgba(0,0,0,.28); }
.cardface--platinum .cf-net i:last-child { background: rgba(0,0,0,.16); }
.cardface--gold { background: linear-gradient(135deg, #e7c66b, #b98f34 55%, #f0d994); --cf-ink: #2a2410; border-color: rgba(0,0,0,.15); }
.cardface--gold .cf-net i:first-child { background: rgba(0,0,0,.28); }
.cardface--gold .cf-net i:last-child { background: rgba(0,0,0,.16); }
.cardface--green { background: linear-gradient(135deg, #1f5c46, #123a2c); }
.cardface--sapphire-reserve { background: linear-gradient(135deg, #0b1c40, #16294f 55%, #223a6b); }
.cardface--sapphire-preferred { background: linear-gradient(135deg, #12467e, #0f2f57); }
.cardface--midnight { background: linear-gradient(135deg, #22262c, #0c0e11); }
.cardface--slate { background: linear-gradient(135deg, #5a6472, #39414d); }
.cardface--emerald { background: linear-gradient(135deg, #0f7a5a, #0a4f3c); }
.cardface--rose { background: linear-gradient(135deg, #9d4557, #6d2b3b); }

.cardface--mini { max-width: 260px; aspect-ratio: 1.9 / 1; padding: .7rem .8rem; border-radius: 11px; }
.cardface--mini .cf-name { font-size: .92rem; }
.cardface--mini .cf-chip { width: 26px; height: 20px; }

/* --- dashboard card header --- */
.card-top { align-items: flex-start; }
.card-top-meta { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; text-align: right; }
.card-top-meta p { margin: 0; }
@media (max-width: 480px) {
  .card-top { flex-direction: column; }
  .card-top-meta { align-items: flex-start; text-align: left; }
}

/* --- card detail header --- */
.detail-head { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1rem; }
.detail-head-meta { flex: 1; min-width: 200px; }
.detail-head-meta h1 { margin: .1rem 0 .6rem; }

/* --- additional cards editor --- */
.addl-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.addl-row input:not(.narrow):not([type=checkbox]) { flex: 1; min-width: 9rem; }
.addl-row input.narrow { width: 6rem; }
.addl-new { border-top: 1px dashed var(--line); padding-top: .8rem; margin-top: .4rem; }

/* --- dashboard: expiring-soon rows --- */
.exp { padding: .7rem 0; border-top: 1px solid var(--line); }
.exp:first-of-type { border-top: 0; }
.exp-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.exp-card { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.exp .bar { margin: .4rem 0 .2rem; }

/* --- dashboard: log-by-card --- */
.logcard-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .7rem; }
.logcard-head h3 { margin: 0; font-size: 1.05rem; }
.logcard-title { display: flex; flex-direction: column; gap: .1rem; }
.logcard-head .cardface--mini { max-width: 96px; aspect-ratio: 1.586/1; padding: .4rem .45rem; border-radius: 8px; flex: none; }
.logcard-head .cardface--mini .cf-name { font-size: .5rem; line-height: 1.1; }
.logcard-head .cardface--mini .cf-issuer { font-size: .42rem; }
.logcard-head .cardface--mini .cf-num, .logcard-head .cardface--mini .cf-exp { font-size: .38rem; }
.logcard-head .cardface--mini .cf-chip { width: 16px; height: 12px; }
.logcard-head .cardface--mini .cf-net i { width: 8px; height: 8px; }
.pagehead h2 { margin: 0; }

/* --- cards page: wallet cards --- */
.walletcard { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: flex-start; }
.walletcard-body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: .35rem; }
.walletcard-body h2 { margin: 0; }
.walletcard-body .btn { align-self: flex-start; margin-top: .3rem; }

/* --- offers: filter bar + grouped grid --- */
.offer-filters { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; margin-bottom: .8rem; }
.offer-filters label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--muted); }
.offer-filters label.grow { flex: 1; min-width: 140px; }
.offer-filters select, .offer-filters input { padding: .35rem .5rem; }
.offer-cat { margin: 1rem 0 .3rem; font-size: .95rem; }
.offer-cat:first-of-type { margin-top: .2rem; }

.flash { padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--hot-soft); color: var(--hot); }

.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { text-align: left; color: var(--muted); font-weight: 600; padding: .3rem .5rem; border-bottom: 1px solid var(--line); }
.admin-table td { padding: .3rem .5rem; border-bottom: 1px solid var(--line-soft); }
.admin-table tr.is-dim td { color: var(--muted); }

.offer-grid { display: flex; flex-direction: column; }
.offer2 { display: grid; grid-template-columns: 40px 1fr auto; gap: .5rem .75rem; align-items: start;
  padding: .7rem 0; border-top: 1px solid var(--line); }
.offer-grid .offer2:first-child { border-top: 0; }
.offer2-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.offer2-top { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.offer2-top strong { color: var(--ink); }
.offer2-card { font-size: .7rem; font-weight: 600; padding: .08rem .45rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
  white-space: nowrap; }
.offer2-card.is-none { background: var(--panel); color: var(--muted); border-color: var(--line); }
.offer2-deal { font-size: .9rem; }
.offer2.is-expiring .offer2-top strong::before { content: "● "; color: var(--hot); }
.offer2-more { margin-top: .1rem; }
.offer2-more summary { color: var(--muted); font-size: .8rem; cursor: pointer; }
.offer2-more p { margin: .3rem 0 0; color: var(--muted); white-space: pre-line; }
.offer2-actions { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; white-space: nowrap; }

.mlogo { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: var(--panel);
  border: 1px solid var(--line-soft); display: grid; place-items: center; }
.mlogo--mono { font-weight: 700; color: var(--muted); font-size: 1.05rem; }

.bm-drop { display: flex; gap: .7rem; flex-wrap: wrap; margin: .6rem 0; }
.bm-drop .btn { cursor: grab; }

h3.sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .3rem; }

/* --- public header extras --- */
.topbar nav a.linky { color: var(--accent); font-weight: 600; }
.topbar nav a.linky:hover { color: var(--accent-hi); }
/* the "Create account" button — .topbar nav a would otherwise win the
   colour cascade and leave grey text on the terracotta fill */
.topbar nav .btn { padding: .4rem .85rem; font-size: .9rem; color: #fff; }
.topbar nav .btn:hover { color: #fff; }

/* --- landing: Smart Money Hub --- */
.hub-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  color: #fff; border-radius: var(--radius);
  margin: 0 0 1.6rem; padding: 2.4rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.hub-banner-inner { max-width: 640px; }
.hub-eyebrow { margin: 0 0 .4rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hub-banner h1 { font-size: 2rem; line-height: 1.1; margin: 0 0 .6rem; }
.hub-lede { margin: 0 0 1.3rem; font-size: 1rem; line-height: 1.5; opacity: .95; }
.hub-cta { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.hub-btn { background: #fff; color: var(--accent); border-color: #fff; box-shadow: none; }
.hub-btn:hover { background: #fff; filter: brightness(.96); }
.hub-btn-ghost { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.5); }
.hub-btn-ghost:hover { text-decoration: none; border-color: #fff; }

.hub-h2 { margin: 0 0 .8rem; }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.hub-tiles--compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: .4rem; }
.hub-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .12s ease, transform .12s ease;
}
.hub-tile:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hub-icon { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: .5rem; }
.hub-tile h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.hub-tile p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.hub-tile-cta { display: inline-block; margin-top: .7rem; color: var(--accent); font-weight: 600; font-size: .9rem; }

.hub-why { margin-top: 1.6rem; }
.hub-why h2 { margin: 0 0 .6rem; }
.hub-why ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); line-height: 1.7; }
.hub-why ul strong { color: var(--ink); }
section.card.hub-why { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: none; }

/* --- calculators --- */
.calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem 1rem; }
.calc-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.calc-form-actions { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .2rem; }
.calc-more { grid-column: 1 / -1; margin-top: .2rem; }
.calc-more > summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: .85rem; padding: .3rem 0; }
.calc-more[open] > summary { margin-bottom: .5rem; }
.calc-more-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem 1rem; }
.rename-form { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.rename-form input { flex: 1; min-width: 12rem; }

.calc-summary { margin-top: 1.1rem; }
.calc-adjusted { grid-template-columns: minmax(240px, 360px); margin-top: .6rem; }
.calc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: .6rem; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--surface); }
.calc-table th, .calc-table td { padding: .5rem .8rem; text-align: left; white-space: nowrap; }
.calc-table thead th { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-weight: 600;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
.calc-table tbody tr:nth-child(even) { background: var(--panel); }
.calc-table td.num, .calc-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.calc-table td.strong { font-weight: 700; }
.calc-assumptions { margin: .3rem 0 0; }

.savebar { border-color: var(--accent-line); }
.save-form, .dup-form { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.save-form label, .dup-form { flex: 1; min-width: 12rem; }
.save-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }

.editor-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.editor-actions form { width: 100%; }
.dup-form input { flex: 1; min-width: 12rem; }
.share-url { width: 100%; }
.share-url-row { display: flex; gap: .5rem; margin-top: .3rem; }
.share-url-row input { flex: 1; font-size: .82rem; }

.saved-list { list-style: none; margin: .3rem 0 0; padding: 0; }
.saved-list li { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap;
  padding: .55rem 0; border-top: 1px solid var(--line-soft); }
.saved-list li:first-child { border-top: 0; }
.saved-name { font-weight: 600; }
.saved-actions { margin-left: auto; display: inline-flex; gap: .8rem; align-items: baseline; }

.user-danger { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); }

ul.kv { list-style: none; margin: .4rem 0 0; padding: 0; }
ul.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0;
  border-top: 1px solid var(--line-soft); font-size: .9rem; }
ul.kv li:first-child { border-top: 0; }
ul.kv li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .hub-banner { padding: 1.8rem 1.2rem; }
  .hub-banner h1 { font-size: 1.6rem; }
}

/* Trades (members) */
.calc-table tbody tr.is-recent td:first-child { box-shadow: inset 3px 0 0 var(--accent, #C14B36); }
.trades-table .d-short { display: none; }
@media (max-width: 560px) {
  /* five columns on a phone: compact date, tighter cells, so nothing scrolls sideways */
  .trades-table { font-size: .8rem; }
  .trades-table th, .trades-table td { padding: .5rem .45rem; }
  .trades-table th:first-child, .trades-table td:first-child { padding-left: .7rem; }
  .trades-table th:last-child, .trades-table td:last-child { padding-right: .7rem; }
  .trades-table thead th { font-size: .68rem; letter-spacing: .02em; }
  .trades-table .d-long { display: none; }
  .trades-table .d-short { display: inline; }
}

/* Admin: website subscribers */
.sub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: 1rem 0 1.4rem; }
.sub-stats .card { padding: .8rem 1rem; margin: 0; }
.sub-stats strong { display: block; font-size: 1.6rem; color: var(--accent); }
.sub-stats span { font-size: .8rem; color: var(--muted); }
.msg-body { white-space: pre-wrap; }

/* ------------------------------------------------------------------ site shell
   The paycheckparadox.com header/footer come from app/shell.py (styles scoped under
   .pp-shell, served by the website). This is the app's own bar under that header. */
.appbar { background: #F3E9E1; border-bottom: 1px solid var(--line); }
.appbar { display: flex; align-items: center; gap: 1.4rem; padding: .55rem max(16px, calc((100% - 1200px) / 2)); flex-wrap: wrap; }
.appbar-brand { font: 600 1.05rem "Fraunces", Georgia, serif; color: var(--ink); white-space: nowrap; }
.appbar-brand::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); margin-right: .5rem; vertical-align: .1rem; }
.appbar-brand:hover { color: var(--accent); text-decoration: none; }
.appbar-tag { font-size: .85rem; color: var(--muted); }
.appbar-nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; margin-left: auto; font-size: .92rem; }
.appbar-nav a { color: var(--muted); font-weight: 600; }
.appbar-nav a:hover { color: var(--ink); text-decoration: none; }
.appbar-nav a.on { color: var(--accent); }
.appbar-nav a.linky { color: var(--accent); }
.appbar-nav .btn { padding: .35rem .85rem; font-size: .88rem; color: #fff; border-radius: 999px; }
.appbar-nav .linkish { font-weight: 600; font-size: .92rem; }
.has-shell main.wrap { padding-top: 1.6rem; }
.build-label { text-align: center; font-size: .72rem; color: var(--muted); margin: 2rem 0 0; }
.has-shell .ftr { margin-top: 1rem; }
@media (max-width: 680px) {
  .appbar { gap: .4rem; padding-block: .5rem; }
  .appbar-tag { display: none; }
  .appbar-nav { margin-left: 0; gap: .35rem 1rem; font-size: .86rem; }
}

/* ------------------------------------------------------------------ sign in / create account */
.auth { width: min(940px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); margin: 2.5rem 0 1rem; display: grid; grid-template-columns: 1fr 1.05fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); }
.auth-pitch { padding: 2.6rem 2.4rem; color: #fff;
  background: linear-gradient(150deg, #8A3322 0%, var(--accent) 65%, #CF6A4F 100%); }
.auth-kicker { margin: 0 0 1rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #F7CDBF; }
.auth-pitch h2 { font: 600 1.9rem/1.15 "Fraunces", Georgia, serif; color: #fff; margin: 0 0 .7rem; }
.auth-pitch > p { color: #FBE6DD; margin: 0 0 1.4rem; }
.auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.auth-pitch li { position: relative; padding-left: 1.7rem; color: #fff; font-weight: 500; line-height: 1.4; }
.auth-pitch li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: rgba(255,255,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.auth-card { padding: 2.6rem 2.4rem; }
.auth-card h1 { font-size: 1.85rem; margin: 0; }
.auth-sub { margin: .3rem 0 1.4rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-social { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin: 0 0 1.1rem; }
.auth-social .g_id_signin { min-height: 44px; }
.auth-or { display: flex; align-items: center; gap: .75rem; width: 100%; margin: 0; color: var(--muted); font-size: .88rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(0,0,0,.12)); }
.auth-error { margin: 0 0 1.1rem; padding: .7rem .9rem; border-radius: 10px; background: var(--hot-soft); color: var(--hot);
  border: 1px solid #EBC3BB; font-weight: 600; font-size: .92rem; }
.auth-form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.field input { width: 100%; height: 46px; padding: 0 .9rem; font-size: 1rem; border: 1.5px solid #DDCFC4; border-radius: 10px; background: #fff; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-hint { margin: 0; font-size: .8rem; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.4rem; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 .7rem;
  background: transparent; color: var(--accent); border: 0; box-shadow: none; font-size: .82rem; font-weight: 700; border-radius: 8px; }
.pw-toggle:hover { background: var(--accent-soft); }
.auth-submit { width: 100%; height: 48px; margin-top: .35rem; border-radius: 999px; font-size: 1rem; font-weight: 700;
  box-shadow: 0 6px 18px -8px rgba(193,75,54,.8); }
.auth-alt { margin: 1.1rem 0 0; font-size: .86rem; color: var(--muted); }
.auth-switch { margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); text-align: center; }
.auth-switch a, .auth-alt a { font-weight: 700; }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; margin-top: 1.2rem; border-radius: 18px; }
  .auth-pitch { padding: 1.5rem 1.4rem; }
  .auth-pitch h2 { font-size: 1.35rem; }
  .auth-pitch > p { margin-bottom: .9rem; font-size: .92rem; }
  .auth-pitch ul { gap: .45rem; font-size: .9rem; }
  .auth-card { padding: 1.6rem 1.4rem 1.8rem; order: -1; }
  .auth-card + .auth-pitch, .auth-pitch { order: 2; }
}

/* ------------------------------------------------------------------ Free vs Pro (lists come from the website's shell.json) */
.pp-pro-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 7px 6px 13px; border-radius: 999px;
  background: #2B231F; border: 1px solid rgba(255,255,255,.15); color: #F3D9CF; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pp-pro-badge b { background: linear-gradient(135deg, #E6B566, #C8923A); color: #17140F; padding: 2px 8px; border-radius: 6px; letter-spacing: .08em; }
.pro-tag { display: inline-block; vertical-align: middle; margin-left: 6px; background: linear-gradient(135deg, #E6B566, #C8923A);
  color: #17140F; padding: 2px 8px; border-radius: 6px; font-size: .72rem; letter-spacing: .08em; }
.locked-cards .locked-list { margin: .4rem 0 1rem; padding-left: 1.1rem; }
.locked-note { padding: .7rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: .6rem 0 1.4rem; }
.plan { display: grid; align-content: start; gap: .5rem; padding: 1.5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.plan-pro { background: #17140F; color: #EFE6DF; border-color: #17140F; }
.plan-pro h2 { color: #fff; }
.plan-k { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ok); }
.plan h2 { margin: .1rem 0 0; font-size: 1.35rem; }
.plan-lede { margin: 0 0 .3rem; color: var(--muted); }
.plan-pro .plan-lede { color: #CFC3BA; }
.plan-list { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .7rem; }
.plan-list li { display: grid; gap: .1rem; padding-left: 1.4rem; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.plan-pro .plan-list li::before { color: #E6B566; }
.plan-list strong { font-size: .95rem; }
.plan-pro .plan-list strong { color: #fff; }
.plan-list span { font-size: .85rem; color: var(--muted); }
.plan-pro .plan-list span { color: #BFB2A8; }
.plan .btn { justify-self: start; }
.plan-cta { background: var(--accent); color: #fff; }
.pro-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin: 0 0 1rem; padding: .8rem 1rem;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.pro-teaser p { margin: 0; font-size: .88rem; color: var(--ink); }
.auth-list-k { margin: 0 0 .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #F7CDBF; }
.auth-pro { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.2); display: grid; gap: .6rem; justify-items: start; }
.auth-pro p { margin: 0; font-size: .88rem; color: #FBE6DD; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Moves That Matter */
.mv-kicker { margin: 0 0 .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mv-head h1 { font-size: 2rem; }
.mv-head p.muted { max-width: 640px; margin: .4rem 0 1rem; }
.mv-tickers { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .2rem 0 1.2rem; }
.mv-tk { display: inline-block; padding: .12rem .5rem; border-radius: 6px; background: var(--panel); border: 1px solid var(--line);
  font-size: .75rem; font-weight: 800; letter-spacing: .03em; color: var(--ink); }
.mv-tk:hover, .mv-tk.on { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.mv-feed { display: grid; gap: .9rem; }
.mv-day { margin: 1.1rem 0 0; font-size: .78rem; font-family: inherit; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mv { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); scroll-margin-top: 140px; }
.mv-heads { background: #FFFBF3; border-color: #EFDDB8; }
.mv-top { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .55rem; }
.mv-badge { font-size: .72rem; font-weight: 800; padding: .14rem .5rem; border-radius: 999px; }
.mv-badge.positive { background: var(--ok-soft); color: var(--ok); }
.mv-badge.negative { background: var(--hot-soft); color: var(--hot); }
.mv-badge.mixed { background: var(--warn-soft); color: var(--warn); }
.mv-badge.heads { background: #2B231F; color: #F3D9CF; }
.mv h3 { margin: 0 0 .6rem; font: 600 1.12rem/1.3 "Fraunces", Georgia, serif; color: var(--ink); }
.mv-sec { margin-top: .55rem; }
.mv-sec p, .mv-sec li { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink); }
.mv-sec ul { margin: .1rem 0 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.mv-k { font-size: .7rem !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: .15rem !important; }
.mv-more { margin-top: .7rem; border-top: 1px solid var(--line-soft); padding-top: .55rem; }
.mv-more summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--accent); }
.mv-src { display: flex; flex-wrap: wrap; gap: .5rem; }
.mv-src a { font-size: .85rem; font-weight: 600; }
.mv-pager { display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0; }
.mv-pager a { font-weight: 700; }
.pro-tag { display: inline-block; vertical-align: .12rem; margin-left: .3rem; padding: .05rem .4rem; border-radius: 5px; font: 800 .62rem/1.4 inherit; letter-spacing: .08em;
  background: linear-gradient(135deg, #E6B566, #C8923A); color: #17140F; }
.mv-clamp .mv-sec p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mv-clamp .mv-sec ul { max-height: 4.8em; overflow: hidden; }
.mv-clamp .mv-more { display: none; }
.mv-expand { margin-top: .6rem; font-size: .85rem; }
.mv:not(.mv-clamp) .mv-expand { display: none; }
.mv-time { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--muted); }

/* Moves audio: Listen buttons, Play all, sticky player */
.mv-listen { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: -.2rem 0 1.1rem; }
.mv-listen p { margin: 0; }
.mv-playall { display: inline-flex; align-items: center; gap: .45rem; }
.mv-playall-n { font-size: .72rem; font-weight: 800; padding: .05rem .4rem; border-radius: 999px; background: rgba(255,255,255,.22); }
.mv-play { display: inline-flex; align-items: center; gap: .3rem; margin-left: .35rem; padding: .22rem .65rem .22rem .5rem; border-radius: 999px;
  border: 1px solid var(--accent-line); background: var(--surface); color: var(--accent); font-size: .76rem; font-weight: 800; }
.mv-play:hover { background: var(--accent-soft); text-decoration: none; }
.mv-top .mv-play { margin-left: auto; }              /* right-aligned; the time (when shown) sits just before it */
.mv-top .mv-time + .mv-play { margin-left: .5rem; }
.mv-play .i-pause, .mv-player .i-pause { display: none; }
.mv-play.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.mv-play.is-on.is-playing .i-play, .mv-player.is-playing .i-play { display: none; }
.mv-play.is-on.is-playing .i-pause, .mv-player.is-playing .i-pause { display: inline; }
.mv-player.is-playing .mvp-btn .i-pause { display: block; }
.mv-play.is-loading span::after { content: "…"; }
.mv.mv-playing { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm); }
body.has-mv-player { padding-bottom: 92px; }
.mv-player { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; width: min(720px, calc(100% - 24px));
  background: #211B18; color: #fff; border-radius: 16px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); overflow: hidden; }
.mv-player[hidden] { display: none; }
.mvp-bar { height: 3px; background: rgba(255,255,255,.14); cursor: pointer; }
.mvp-fill { display: block; height: 100%; width: 0; background: #E07A5F; transition: width .25s linear; }
.mvp-row { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; }
.mvp-ctrl { display: flex; align-items: center; gap: .15rem; }
.mvp-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer;
  /* iOS Safari pads buttons by default: without this the circle stretches into an oval and the icon sits off-centre */
  padding: 0; margin: 0; box-sizing: border-box; flex: none; line-height: 0; -webkit-appearance: none; appearance: none; }
.mvp-btn svg { display: block; flex: none; }
.mvp-btn:hover { background: rgba(255,255,255,.1); }
.mvp-btn:disabled { opacity: .35; cursor: default; }
.mvp-main { width: 42px; height: 42px; background: #C14B36; }
.mvp-main:hover { background: #A63F2C; }
.mvp-info { min-width: 0; flex: 1; }
.mvp-k { margin: 0; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #F3B7A5; }
.mvp-title { margin: .1rem 0 0; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvp-time { font-size: .76rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .mvp-time { display: none; }
  .mvp-row { gap: .5rem; padding: .5rem .55rem; }
}

/* ------------------------------------------------------------------ Pro membership */
.pro-head { display: grid; gap: .6rem; justify-items: start; margin-bottom: 1rem; }
.pro-head h1 { font-size: 1.9rem; }
.pro-status h2 { font-size: 1.25rem; margin: .1rem 0 .3rem; }
.ps-k { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pro-status form { margin-top: .8rem; }
.flash.warn-soft { background: var(--warn-soft); color: var(--warn); }
.pro-buy { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1rem 0 1.4rem; }
.pro-opt { position: relative; display: grid; gap: .3rem; justify-items: start; padding: 1.3rem; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); }
.pro-opt-best { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.po-price { margin: 0; font: 600 2rem/1 "Fraunces", Georgia, serif; }
.po-price small { font: 600 .95rem var(--body-font, inherit); color: var(--muted); margin-left: .2rem; }
.po-tag { position: absolute; top: -.7rem; right: 1rem; background: linear-gradient(135deg, #E6B566, #C8923A); color: #17140F; font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; }
.pro-opt .btn { margin-top: .4rem; }
.pro-secure, .pro-terms { grid-column: 1 / -1; margin: 0; }
.plan-list-light li::before { color: var(--accent); }
.pro-locked { max-width: 560px; margin: 3rem auto; text-align: center; display: grid; gap: .8rem; justify-items: center; }
.pro-locked h1 { font-size: 1.8rem; }
.pl-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
@media (max-width: 640px) { .pro-buy { grid-template-columns: 1fr; } }

/* --- admin: Pro members --- */
.pro-pill { display: inline-block; font-size: .74rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.pro-pill-pro { background: #C14B36; color: #fff; }
.pro-pill-trial { background: #F6E7C9; color: #6B4A0E; }
.pro-pill-free { background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.pro-actions { white-space: nowrap; }
.pro-actions form.inline { display: inline; }
.btn.btn-sm { padding: .25rem .6rem; font-size: .76rem; }
.btn.danger { color: #A63F2C; }
.pro-give { align-items: flex-end; }

/* --- Moves: free to read, analysis + audio are Pro --- */
.mv h3 a.mv-h { color: inherit; text-decoration: none; }
.mv h3 a.mv-h:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.mv-day a { color: inherit; text-decoration: none; }
.mv-day a:hover { color: var(--accent); }
.mv-pro-band { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin: 0 0 1.1rem; padding: .85rem 1rem;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.mv-pro-band p { margin: 0; flex: 1 1 320px; font-size: .9rem; color: var(--ink); }
.mv-locked { position: relative; margin-top: .55rem; border-radius: 12px; overflow: hidden; border: 1px dashed var(--accent-line, #E7B9AE); }
.mv-locked-fake { padding: .6rem .8rem; filter: blur(4px); opacity: .55; user-select: none; pointer-events: none; }
.mv-locked-fake p { margin: 0 0 .3rem; font-size: .93rem; line-height: 1.55; }
.mv-locked-cta { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .8rem;
  padding: .7rem 1rem; text-align: center; background: linear-gradient(180deg, rgba(255,250,246,.55), rgba(255,250,246,.92)); }
.mv-locked-cta p { margin: 0; font-size: .88rem; color: var(--ink); max-width: 420px; }
.mv-clamp .mv-locked { display: block; }
.mv-play-locked { border-style: dashed; color: var(--muted); }
.mv-play-locked:hover { color: var(--accent); }
.mv-play-free { background: var(--accent-soft); }
.mv-item { margin-top: .4rem; }
.mv-item-h { margin: .2rem 0 .7rem; font: 600 1.6rem/1.25 "Fraunces", Georgia, serif; color: var(--ink); }
.mv-related-h { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.mv-related { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.mv-related a { font-weight: 600; }
@media (max-width: 560px) { .mv-locked-cta { position: static; background: none; } .mv-locked-fake { display: none; } }

/* No account / Free / Pro comparison (website PLANS["compare"] via shell.json) */
.auth-compare { width: min(940px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); margin: 0 0 2.5rem; }
.cmp { margin: 1.6rem 0; scroll-margin-top: 80px; }
.cmp-title { font: 600 1.5rem/1.2 "Fraunces", Georgia, serif; margin: 0 0 .8rem; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp-table thead th { font-weight: 800; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 14px 10px; text-align: center; width: 17%; }
.cmp-table thead th.cmp-pro { color: var(--accent); }
.cmp-table tbody th { text-align: left; font-weight: 600; padding: 11px 14px; }
.cmp-table tbody th[scope=row], .cmp-table td { border-top: 1px solid var(--line); }
.cmp-table td { text-align: center; padding: 11px 8px; }
.cmp-table td:last-child { background: #FBF1EE; }
.cmp-yes { color: #2F6D4F; font-weight: 800; font-size: 1.1rem; }
.cmp-no { color: #D9C8BC; }
.cmp-txt { font-size: .8rem; font-weight: 600; }
.cmp-group th { background: var(--panel); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 9px 14px; text-align: left; }
.cmp-note { color: var(--muted); font-size: .9rem; margin: .7rem .2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .cmp-table { font-size: .84rem; }
  .cmp-table tbody th { padding: 9px 9px; }
  .cmp-table td, .cmp-table thead th { padding: 9px 3px; }
  .cmp-txt { font-size: .72rem; }
}

/* Freedom Date result */
.fd-result { text-align: left; }
.fd-big { font: 700 2.6rem/1 "Fraunces", Georgia, serif; margin: .2rem 0 .4rem; color: var(--accent); }
.fd-big small { font: 600 1rem "Manrope", sans-serif; color: var(--muted); margin-left: .2rem; }
.fd-chart { width: 100%; height: auto; display: block; margin-top: 1rem; }
.calc-table tr.hl td { background: #E3EFE8; font-weight: 700; }
.field-hint { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .25rem; }


/* ======================================================================
   Website look (paycheckparadox.com): same width, type scale, cards,
   pill buttons and inputs, so the Hub feels like one site.
   ====================================================================== */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sh: 0 1px 2px rgba(23,20,15,.06), 0 8px 24px -12px rgba(23,20,15,.18);
}
body { font-size: 16.5px; line-height: 1.6; background-color: var(--bg); background-image: var(--grain); -webkit-font-smoothing: antialiased; }
h1 { font: 600 clamp(2rem, 3.6vw, 2.9rem)/1.1 "Fraunces", Georgia, serif; letter-spacing: -.02em; font-variation-settings: "SOFT" 50; }
h2 { font: 600 clamp(1.25rem, 2vw, 1.55rem)/1.2 "Fraunces", Georgia, serif; letter-spacing: -.015em; margin-bottom: .8rem; }
h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
.pagehead { margin-bottom: 1.6rem; }
.pagehead + .muted, .wrap > p.muted:first-of-type { font-size: 1.05rem; max-width: 70ch; }
.crumb { margin: 0 0 .8rem; font-weight: 700; font-size: .9rem; }
.card { border-radius: 18px; padding: 1.5rem 1.6rem; margin-bottom: 1.4rem; box-shadow: var(--sh); }
.totals > div { border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--sh); }
.totals .k { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.totals .v { font: 700 1.6rem/1.15 "Fraunces", Georgia, serif; }
@media (min-width: 760px) { .totals { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }

button, .btn { border-radius: 999px; padding: .72rem 1.35rem; font-weight: 700; font-size: .95rem; line-height: 1.2; box-shadow: 0 6px 18px -8px rgba(193,75,54,.8); transition: background .15s, transform .15s; }
button:hover, .btn:hover { transform: translateY(-1px); }
.btn.ghost, button.ghost { box-shadow: none; }
.linkish, .chip { transform: none !important; }
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: 12px; padding: .72rem .9rem; font-size: 1rem; border-color: var(--line); background: #fff; }
label { font-weight: 700; font-size: .9rem; }

/* Wide pages: keep forms and reading text at a comfortable width inside wide cards. */
.card form.stack, .card .save-form, .card .rename-form, .card .dup-form, .card > p, .card > ul.kv { max-width: 720px; }
.hub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.hub-tile { border-radius: 18px; padding: 1.5rem; box-shadow: var(--sh); }

/* Calculators: inputs on the left, results on the right on wide screens. */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.calc-layout > * { min-width: 0; }
@media (min-width: 980px) {
  .calc-layout { grid-template-columns: minmax(320px, 400px) 1fr; }
  .calc-layout > .calc-inputs { position: sticky; top: 84px; }
  .calc-layout .calc-form { grid-template-columns: 1fr; }
}
.calc-layout > .calc-results > .card:first-child, .calc-layout > .calc-results > .totals:first-child { margin-top: 0; }

.card form button[type=submit], .card form .btn { width: auto; align-self: flex-start; }
.calc-results .totals { margin-bottom: 1.4rem; }

/* Parents Hub calculators */
.calc-group { margin-top: 1.6rem; }
.kids-kicker { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kids-ms { margin: .6rem 0 0; }
.kids-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.kids-legend span { display: inline-block; width: 18px; height: 0; margin-right: -.55rem; vertical-align: middle; }
.kids-legend .k-bal { border-top: 3px solid #C14B36; }
.kids-legend .k-in { border-top: 2px dashed #2F6D4F; }
.kids-legend .k-dot { width: 10px; height: 10px; border-radius: 50%; background: #2F6D4F; }
.kids-late { border-left: 4px solid #2F6D4F; }
.kids-late p { margin: 0; }
.kids-more { margin-top: .4rem; }

/* Spec calculators (generic view) */
.v-stats { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.v-stats li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.v-stats span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.v-stats strong { font: 700 1.2rem/1.2 "Fraunces", Georgia, serif; font-variant-numeric: tabular-nums; }
.v-stats small { font-size: .78rem; color: var(--muted); }
.v-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.v-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.v-callout { border-left: 4px solid #2F6DB5; }
.v-callout.v-good { border-left-color: #2F6D4F; }
.v-callout.v-warn { border-left-color: #C14B36; }
.v-callout p { margin: 0; }
.v-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.v-checks li { display: flex; gap: .7rem; align-items: flex-start; }
.v-checks li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: #2F6D4F; }
.v-checks li.no > span { background: #C14B36; }
.v-checks p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.v-explainer h3 { margin: 1rem 0 .25rem; font-size: 1rem; }
.v-explainer p { margin: 0; }

/* Admin: podcast studio */
.pod-list { display: grid; gap: .8rem; }
.pod-row { display: block; color: inherit; text-decoration: none; }
.pod-row h2 { margin: .4rem 0 .2rem; }
.pod-status { display: inline-block; border-radius: 999px; padding: .15rem .7rem; font-size: .78rem; font-weight: 700; background: var(--panel); color: var(--muted); }
.pod-review, .pod-qa-check { background: #F6EAD3; color: #8a5a12; }
.pod-published, .pod-qa-ready { background: #E3EFE8; color: #2F6D4F; }
.pod-publishing, .pod-drafting { background: #E5ECF6; color: #2F6DB5; }
.pod-failed, .pod-qa-redo { background: #F8E3DC; color: #C14B36; }
.pod-checks { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .45rem; }
.pod-checks li { display: flex; gap: .6rem; align-items: center; }
.pod-checks li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; background: #2F6D4F; }
.pod-checks li.no span { background: #C14B36; }
.pod-actions { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pod-actions textarea { width: 100%; margin: .4rem 0 .6rem; }
.pod-note { border-left: 4px solid #2F6D4F; }
.pod-articles { display: grid; gap: 0; padding-top: .4rem; padding-bottom: .4rem; }
.pod-article { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--line); }
.pod-article:first-child { border-top: 0; }
.pod-article p { margin: .15rem 0 0; }
.pod-article button { flex: none; }
@media (max-width: 560px) { .pod-article { flex-direction: column; align-items: stretch; } }

/* Trades: performance charts (drawn by the website's live.js, styled by shell.css under .pp-shell) */
.perf-in-app { margin: 1.2rem 0 1.6rem; }
.perf-loading { color: var(--muted); font-size: .9rem; padding: 2rem 0; text-align: center; }
.trades-log-h { margin: 1.4rem 0 .6rem; }

/* --- legal links in the fallback footer; account danger zone --- */
.foot .foot-legal { flex-basis: 100%; }
.danger-zone { border-color: var(--hot); }
.danger-zone h2 { color: var(--hot); }
.danger-zone ul { margin: .4rem 0 .9rem 1.1rem; padding: 0; font-size: .9rem; }
.danger-zone li { margin: .25rem 0; }
button.btn-danger { background: var(--hot); border-color: var(--hot); color: #fff; }

/* --- Card Offers: chip filters, sort, grouped list (static/js/offers.js) --- */
.ofx { display: grid; gap: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); margin: 1rem 0 .6rem; }
.ofx-search { display: flex; align-items: center; gap: .55rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--muted); }
.ofx-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ofx-search input { flex: 1; border: 0; background: transparent; padding: .7rem 0; font-size: 1rem; outline: none; min-width: 0; box-shadow: none; }
.ofx-row { display: grid; gap: .4rem; }
.ofx-k { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ofx-hint { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); opacity: .8; margin-left: .3rem; }
.ofx-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ofx-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .88rem/1.2 inherit; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; }
.ofx-chip b { font-size: .72rem; font-weight: 800; color: var(--muted); background: var(--panel); border-radius: 999px; padding: .08rem .45rem; }
.ofx-chip:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.ofx-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ofx-chip.on b { background: rgba(255,255,255,.22); color: #fff; }
.ofx-chip.is-zero { opacity: .45; }
.ofx-row-split { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: flex-end; }
.ofx-group { display: grid; gap: .4rem; }
.ofx-seg { display: inline-flex; flex-wrap: wrap; background: var(--panel); border-radius: 999px; padding: 3px; gap: 2px; }
.ofx-seg-b { border: 0; background: transparent; border-radius: 999px; min-height: 34px; padding: .3rem .85rem; font: 600 .86rem/1.2 inherit;
  color: var(--ink); cursor: pointer; }
.ofx-seg-b.on { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--accent); }
.ofx-soon { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem .9rem; border-radius: 999px;
  border: 1px dashed var(--hot); background: var(--hot-soft); color: var(--hot); font: 700 .86rem/1.2 inherit; cursor: pointer; margin-left: auto; }
.ofx-soon b { font-size: .72rem; background: rgba(156,52,42,.12); border-radius: 999px; padding: .08rem .45rem; }
.ofx-soon.on { background: var(--hot); color: #fff; border-style: solid; }
.ofx-soon.on b { background: rgba(255,255,255,.22); }
.ofx-status { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin: .2rem .2rem .4rem; }
.ofx-status p { margin: 0; color: var(--muted); font-size: .9rem; }
.ofx-status strong { color: var(--ink); }
.ofx-list { display: grid; gap: .55rem; }
.ofx-gh { display: flex; align-items: baseline; gap: .6rem; margin: 1.1rem .2rem .1rem; font-size: 1.05rem; }
.ofx-gh:first-child { margin-top: .3rem; }
.ofx-gh small { font: 600 .78rem/1 inherit; color: var(--muted); }
.ofx-item { display: grid; grid-template-columns: 44px 1fr; gap: .4rem .85rem; align-items: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow-sm); }
.ofx-item[hidden] { display: none; }
.ofx-item .mlogo { width: 44px; height: 44px; }
.ofx-body { min-width: 0; display: grid; gap: .3rem; }
.ofx-top { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem .8rem; flex-wrap: wrap; }
.ofx-top h3 { margin: 0; font-size: 1rem; color: var(--ink); }
.ofx-exp { font-size: .76rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ofx-item.is-near .ofx-exp { color: var(--warn); }
.ofx-item.is-soon .ofx-exp { color: #fff; background: var(--hot); border-radius: 999px; padding: .12rem .55rem; }
.ofx-deal { margin: 0; font-size: .95rem; color: var(--ink); line-height: 1.45; }
.ofx-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ofx-tag { font-size: .72rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; background: var(--panel); color: var(--ink); }
.ofx-tag-card { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.ofx-tag-card.is-none { background: var(--panel); color: var(--muted); border-color: var(--line); }
.ofx-tag-plain { background: transparent; color: var(--muted); padding-left: .2rem; }
.ofx-more summary { color: var(--accent); font-size: .82rem; font-weight: 700; cursor: pointer; }
.ofx-more p { margin: .35rem 0 0; color: var(--muted); font-size: .86rem; white-space: pre-line; }
.ofx-empty { padding: 1rem; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 640px) {
  .ofx { padding: .85rem; }
  .ofx-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -.85rem; padding: 0 .85rem .1rem; scroll-snap-type: x proximity; }
  .ofx-chips::-webkit-scrollbar { display: none; }
  .ofx-chip { flex: none; scroll-snap-align: start; }
  .ofx-soon { margin-left: 0; }
  .ofx-item { grid-template-columns: 38px 1fr; padding: .75rem .8rem; }
  .ofx-item .mlogo { width: 38px; height: 38px; }
}
@media (min-width: 900px) {
  .ofx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .7rem; align-items: start; }
  .ofx-gh, .ofx-empty { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ofx-row-split { display: grid; gap: .8rem; }
  .ofx-group { min-width: 0; }
  .ofx-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; justify-self: start; }
  .ofx-seg::-webkit-scrollbar { display: none; }
  .ofx-seg-b { flex: none; padding: .3rem .75rem; }
  .ofx-soon { justify-self: start; }
}

/* Weekly Market Brief */
.brief { margin-top: .4rem; }
.brief-head { margin-bottom: 1.4rem; }
.brief-listen { margin: .3rem 0 0; font-weight: 600; }
.brief-preview { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--rust-soft, #F6E3DC); border: 1px solid #EFC9BB; border-radius: 16px; padding: 1rem 1.2rem; margin: 0 0 2rem; }
.brief-preview p { margin: .2rem 0; }
.brief-preview-t { font-weight: 800; }
.brief-section { margin: 0 0 2.6rem; padding-top: 1.6rem; border-top: 2px solid var(--line, #E6D9CF); }
.brief-section:first-of-type { border-top: 0; padding-top: 0; }
.brief-h { font-size: 1.45rem; margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; }
.brief-count { font: 700 .8rem/1 var(--f-body, sans-serif); color: var(--muted, #6E645B); background: var(--sand, #F3E9E1); border-radius: 999px; padding: .35rem .6rem; }
.brief-lock { font: 700 .8rem/1 var(--f-body, sans-serif); color: var(--rust-600, #A63F2C); }
.brief-pulse { font-size: 1.05rem; line-height: 1.7; max-width: 90ch; }
.brief-card { background: #fff; border: 1px solid var(--line, #E6D9CF); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 0 0 1rem; }
.brief-card h3 { font-size: 1.1rem; line-height: 1.35; margin: 0 0 .5rem; }
.brief-card p { margin: .4rem 0; line-height: 1.65; }
.brief-card .mv-src { margin-top: .7rem; }
.brief-heads { margin: 0; padding-left: 1.4rem; display: grid; gap: .65rem; }
.brief-heads li { font-weight: 400; line-height: 1.5; padding-left: .2rem; }
.brief-heads li::marker { color: var(--rust, #C14B36); font-weight: 700; }
.brief-stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.brief-stock-grid .brief-card { margin: 0; display: flex; flex-direction: column; }
.brief-stock-grid h3 { font-weight: 600; font-size: 1.02rem; }
.brief-card-lock { margin-top: auto !important; padding-top: .6rem; font-size: .85rem; color: var(--muted, #6E645B); }
.brief-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .6rem !important; }
.brief-sector { font-size: .78rem; font-weight: 700; color: var(--muted, #6E645B); text-transform: uppercase; letter-spacing: .06em; margin-left: .2rem; }
.brief-tags .tk-up { color: var(--pos, #2F6D4F); }
.brief-tags .tk-down { color: var(--neg, #A63F2C); }
.brief-table-wrap { overflow-x: auto; margin: 1rem 0 0; background: #fff; border: 1px solid var(--line, #E6D9CF); border-radius: 14px; }
.brief-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.brief-table th, .brief-table td { padding: .6rem .8rem; text-align: right; border-bottom: 1px solid var(--line, #E6D9CF); white-space: nowrap; }
.brief-table tr:last-child td { border-bottom: 0; }
.brief-table th:first-child, .brief-table td:first-child { text-align: left; }
.brief-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #6E645B); }
.brief-table .dir-up td:nth-child(n+3) { color: var(--pos, #2F6D4F); }
.brief-table .dir-down td:nth-child(n+3) { color: var(--neg, #A63F2C); }
.brief details summary { cursor: pointer; font-weight: 600; color: var(--rust, #C14B36); margin-top: .4rem; }
.brief-end { margin-top: 1rem; }
.brief-intro { max-width: 720px; color: var(--ink-2, #3D352E); }
.brief-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .9rem; }
.brief-list .brief-card h2 { font-size: 1.15rem; margin: .1rem 0 .35rem; }
.brief-list .brief-card h2 a { color: inherit; text-decoration: none; }
.brief-latest { border-color: var(--rust, #C14B36); border-width: 2px; }
.brief-meta { font-size: .9rem; }

/* --- Donation Tracker (Pro) --- */
.dn-lede { max-width: 680px; }
.dn-years { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
.dn-years a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.dn-years a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 760px) { .dn-totals { grid-template-columns: repeat(4, 1fr); } }
.dn-note { margin: .4rem 0 0; padding: .6rem .8rem; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .9rem; }
.dn-export { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.dn-export h2 { margin: 0 0 .2rem; }
.dn-export p { margin: 0; }
.dn-export-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.dn-empty { text-align: center; padding: 2rem 1.2rem; }
.dn-empty p { margin-inline: auto; max-width: 460px; }
.dn-list { list-style: none; margin: 0; padding: 0; }
.dn-list > li { border-top: 1px solid var(--line-soft); }
.dn-list > li:first-child { border-top: 0; }
.dn-row { display: flex; gap: .9rem; align-items: flex-start; padding: .75rem .2rem; color: inherit; text-decoration: none; }
a.dn-row:hover { background: var(--accent-soft); text-decoration: none; border-radius: 10px; }
.dn-just { animation: dn-flash 2s ease-out; border-radius: 10px; }
@keyframes dn-flash { from { background: var(--ok-soft); } to { background: transparent; } }
.dn-date { flex: none; width: 3.6rem; font-weight: 700; color: var(--muted); font-size: .85rem; padding-top: .1rem; }
.dn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.dn-org { font-weight: 700; }
.dn-amt { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.dn-flag { display: block; color: var(--warn); font-size: .82rem; font-weight: 600; }
.dn-flag-box { background: var(--warn-soft); padding: .6rem .8rem; border-radius: 10px; margin: 0 0 .8rem; }
.dn-orgs td.num, .dn-orgs th.num { text-align: right; white-space: nowrap; }
.dn-chips { list-style: none; padding: 0; margin: .3rem 0 .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.dn-chips li { background: var(--panel); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; font-weight: 600; }
.dn-form .card h2 { margin-top: 0; }
.dn-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-bottom: .8rem; }
@media (min-width: 640px) { .dn-grid { grid-template-columns: 1fr 1fr; } .dn-grid-3 { grid-template-columns: 2fr 1fr 1fr; } }
.dn-form label { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; }
.dn-form .dn-grid label { margin-bottom: 0; }
.dn-form label.chk { flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; }
.dn-seg { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.dn-seg label { flex-direction: row !important; align-items: center; margin: 0 !important; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 700; }
.dn-seg label.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.dn-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dn-seg label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dn-form .k-money, .dn-form .k-items, .dn-form .k-stock, .dn-form .k-mileage { display: none; }
.dn-form[data-kind=money] .k-money, .dn-form[data-kind=items] .k-items,
.dn-form[data-kind=stock] .k-stock, .dn-form[data-kind=mileage] .k-mileage { display: revert; }
.dn-form[data-kind=money] label.k-money, .dn-form[data-kind=items] label.k-items, .dn-form[data-kind=stock] label.k-stock,
.dn-form[data-kind=mileage] label.k-mileage, .dn-form[data-kind=money] div.k-money, .dn-form[data-kind=items] div.k-items,
.dn-form[data-kind=stock] div.k-stock { display: flex; }
.dn-form[data-kind=money] div.dn-grid.k-money, .dn-form[data-kind=stock] div.dn-grid.k-stock { display: grid; }
.dn-form div.k-money, .dn-form div.k-items { flex-direction: column; }
.dn-more { margin: 0 0 1rem; }
.dn-more summary { cursor: pointer; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.dn-chosen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--ok-soft); border: 1px solid #cfe0d5; }
.dn-chosen > div { display: flex; flex-direction: column; gap: .15rem; }
.dn-chosen[hidden], #finder[hidden], .dn-manual[hidden] { display: none; }
.dn-manual { border: 0; padding: 0; margin: .8rem 0 0; }
.dn-results { list-style: none; margin: .4rem 0 .6rem; padding: 0; border-radius: 12px; overflow: hidden; }
.dn-results:not(:empty) { border: 1px solid var(--line); }
.dn-rhead { padding: .45rem .8rem; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.dn-hit { display: flex; align-items: stretch; border-top: 1px solid var(--line-soft); background: var(--surface); }
.dn-hit:first-child, .dn-rhead + .dn-hit { border-top: 0; }
.dn-pick { flex: 1; text-align: left; background: none; color: var(--ink); border: 0; box-shadow: none; border-radius: 0; padding: .65rem .8rem; display: flex; flex-direction: column; gap: .15rem; font-weight: 400; }
.dn-pick:hover, .dn-pick:focus-visible { background: var(--accent-soft); }
.dn-star { flex: none; width: 2.8rem; background: none; border: 0; box-shadow: none; border-radius: 0; color: var(--muted); font-size: 1.25rem; padding: 0; }
.dn-star:hover { background: var(--accent-soft); color: var(--accent); }
.dn-star.on { color: #c98a14; }
.dn-tag { display: inline-block; margin-top: .2rem; font-size: .75rem; font-weight: 700; color: var(--hot); }
.dn-none { padding: .7rem .8rem; color: var(--muted); font-size: .9rem; }
.dn-files { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .8rem; }
.dn-files li { display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.dn-thumb { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.dn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-pdf { display: grid; place-items: center; height: 100%; font-weight: 800; color: var(--accent); }
.dn-drop { border: 1.5px dashed var(--accent-line); border-radius: 12px; padding: .9rem; background: var(--accent-soft); cursor: pointer; }
.dn-drop input { font-size: .85rem; }
.dn-pending { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .9rem; }
.dn-actions { display: flex; gap: .6rem; margin: 0 0 1.4rem; }
.dn-favs .dn-row { align-items: center; }
.dn-picker #finder label { display: block; margin-bottom: .35rem; }
.dn-picker input[type=search] { width: 100%; box-sizing: border-box; }
.dn-orgs { width: 100%; border-collapse: collapse; }
.dn-orgs th { text-align: left; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: .4rem .3rem; border-bottom: 1px solid var(--line); }
.dn-orgs td { padding: .6rem .3rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.pod-video-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.pod-video-row > div:last-child { flex: 1; min-width: 220px; }

/* --- Portfolio allocation (trades page) --- */
.alloc h2 { margin-bottom: .2rem; }
.al-list { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.al-row { display: grid; grid-template-columns: 4.6rem 1fr 4.4rem; align-items: center; gap: .8rem; }
.al-sym { font-weight: 800; letter-spacing: .01em; }
.al-bar { height: 14px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.al-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); min-width: 6px; }
.al-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.al-more summary { cursor: pointer; font-weight: 700; color: var(--accent); margin-top: .9rem; }

/* On Our Radar (templates/radar.html) */
.rd-when { margin: -.4rem 0 1.4rem; }
.rd-criteria { margin: .6rem 0 .8rem; padding-left: 1.4rem; display: grid; gap: .45rem; }
.rd-criteria li::marker { color: var(--accent); font-weight: 800; }
.rd-funnel { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rd-funnel li { display: flex; align-items: baseline; gap: .45rem; background: var(--panel); border-radius: 10px; padding: .45rem .7rem; font-size: .85rem; }
.rd-funnel li:last-child { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.rd-n { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.rd-deep-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.rd-deep-h h3 { margin: 0; display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.rd-rank { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; align-self: center; }
.rd-name { font-weight: 400; font-size: .88rem; }
.rd-conv { font-size: .78rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.rd-conv-high { background: var(--ok-soft); color: var(--ok); }
.rd-conv-medium { background: var(--warn-soft); color: var(--warn); }
.rd-conv-low { background: var(--panel); color: var(--muted); }
.rd-stats { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .88rem; color: var(--muted); }
.rd-stats strong { color: var(--ink); }
.rd-k { margin: .9rem 0 .1rem !important; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hi); }
.rd-pos { color: var(--ok) !important; }
.rd-neg { color: var(--hot) !important; }
.rd-tag { display: inline-block; font-size: .7rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.rd-table td:first-child { white-space: normal; min-width: 11rem; }
.rd-near { margin-top: 1rem; }
.rd-near summary { cursor: pointer; font-weight: 700; }
/* On Our Radar banner at the top of /trades */
.rd-banner { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 1.6rem; padding: 1.4rem 1.6rem; border-radius: 18px;
  background: var(--ink); color: #FBF7F2; text-decoration: none; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.rd-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193,75,54,.45), rgba(193,75,54,0) 70%); pointer-events: none; }
.rd-banner:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(23,20,15,.25); }
.rd-banner-ic { flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 14px; background: var(--accent); font-size: 1.7rem; }
.rd-banner-txt { flex: 1; display: grid; gap: .2rem; position: relative; z-index: 1; }
.rd-banner-txt strong { font: 600 1.75rem/1.1 "Fraunces", Georgia, serif; letter-spacing: -.015em; color: #fff; }
.rd-banner-txt > span:last-child { font-size: 1.02rem; color: #E8DDD3; line-height: 1.45; }
.rd-banner-k { justify-self: start; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #F7CDBF; }
.rd-banner-cta { flex: none; position: relative; z-index: 1; background: var(--accent); color: #fff; font-weight: 800; padding: .75rem 1.2rem; border-radius: 999px; white-space: nowrap; }
.rd-banner:hover .rd-banner-cta { background: var(--accent-hi); }
@media (max-width: 640px) {
  .rd-banner { flex-wrap: wrap; padding: 1.2rem; gap: .8rem; }
  .rd-banner-txt { flex-basis: calc(100% - 4.4rem); }
  .rd-banner-txt strong { font-size: 1.45rem; }
  .rd-banner-cta { width: 100%; text-align: center; }
}
.rd-updated { font: 600 .8rem/1 var(--f-body, "Manrope", sans-serif); color: var(--muted); background: var(--panel); border-radius: 999px; padding: .3rem .6rem; letter-spacing: 0; }

/* ---------- Stocks (templates/stocks.html, stock.html) ---------- */
.sk-up { color: var(--ok) !important; }
.sk-down { color: var(--hot) !important; }
.sk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: .4rem 0 1.4rem; }
.sk-head h1 { font-size: 2rem; }
.sk-tick { margin: 0; font-weight: 800; letter-spacing: .06em; color: var(--muted); font-size: .85rem; }
.sk-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 0; }
.sk-tag { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--panel); color: var(--muted); }
.sk-tag-hot { background: var(--accent-soft); color: var(--accent-hi); }
.sk-price { text-align: right; }
.sk-price p { margin: .1rem 0; font-weight: 700; }
.sk-last { font: 600 2.2rem/1 "Fraunces", Georgia, serif; }
.sk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .sk-grid { grid-template-columns: 1fr; } .sk-side { order: -1; } .sk-price { text-align: left; } }
.sk-chart { padding: 1rem 1rem .6rem; }
.sk-periods { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-bottom: .5rem; }
.sk-periods button, .sk-seg button, .sk-tabs button { border: 0; background: transparent; font: 700 .85rem var(--f-body, "Manrope", sans-serif); color: var(--muted);
  padding: .4rem .7rem; border-radius: 999px; cursor: pointer; }
.sk-periods button.on, .sk-seg button.on { background: var(--ink); color: #fff; }
.sk-pchange { margin-left: auto; font-weight: 800; font-size: .9rem; }
.sk-svg { position: relative; }
.sk-svg svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.sk-grid-l { stroke: var(--line); stroke-width: 1; }
.sk-ax { font: 600 11px "Manrope", sans-serif; fill: var(--muted); }
.sk-hover-l { stroke: var(--muted); stroke-dasharray: 3 3; }
.sk-hover-d { fill: var(--ink); }
.sk-tip { position: absolute; top: 0; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; padding: .3rem .55rem; border-radius: 8px; white-space: nowrap; pointer-events: none; }
circle.sk-buy, .sk-dot.sk-buy { fill: var(--ok); background: var(--ok); stroke: #fff; stroke-width: 2; }
circle.sk-sell, .sk-dot.sk-sell { fill: var(--hot); background: var(--hot); stroke: #fff; stroke-width: 2; }
.sk-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: -1px; }
.sk-legend { margin: .3rem 0 0; }
.sk-tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin: 1.2rem 0 1rem; overflow-x: auto; }
.sk-tabs button { border-radius: 0; padding: .7rem .9rem; border-bottom: 3px solid transparent; }
.sk-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.sk-pane { display: none; }
.sk-pane.on { display: block; }
.sk-pane h2 { font-size: 1.15rem; }
.sk-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 1.4rem; margin: 0 0 1.4rem; }
.sk-stats div, .sk-keys div, .sk-facts div { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.sk-stats dt, .sk-keys dt, .sk-facts dt { color: var(--muted); font-size: .88rem; }
.sk-stats dd, .sk-keys dd, .sk-facts dd { margin: 0; font-weight: 700; text-align: right; }
.sk-about p { line-height: 1.65; }
.sk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.sk-two ul { padding-left: 1.1rem; line-height: 1.55; }
.sk-consensus { font: 600 1.6rem/1.1 "Fraunces", Georgia, serif; margin: .2rem 0; }
.sk-ratebar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin: .8rem 0 .5rem; }
.sk-r-buy { background: var(--ok); } .sk-r-hold { background: #c9a227; } .sk-r-sell { background: var(--hot); }
.sk-ratekey { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; font-weight: 700; font-size: .88rem; }
.sk-ratekey span { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.sk-targets { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .55rem; }
.sk-targets li { display: grid; grid-template-columns: 4.6rem 1fr 5.2rem 4.4rem; align-items: center; gap: .5rem; font-size: .9rem; }
.sk-tbar { height: 10px; background: var(--panel); border-radius: 999px; overflow: hidden; }
.sk-tbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.sk-tbar i.sk-now { background: var(--ink); }
.sk-targets em { font-style: normal; font-weight: 700; text-align: right; font-size: .82rem; }
.sk-summary { line-height: 1.65; }
.sk-fin-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.sk-seg { display: inline-flex; background: var(--panel); border-radius: 999px; padding: .2rem; }
.sk-fin { display: none; }
.sk-fin.on { display: block; }
.sk-bars { display: flex; align-items: flex-end; gap: .6rem; height: 150px; padding: .4rem 0 0; border-bottom: 1px solid var(--line); }
.sk-barcol { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: .3rem; }
.sk-barcol span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.sk-barpair { display: flex; align-items: flex-end; gap: 3px; height: 100%; width: 100%; justify-content: center; }
.sk-barpair i { width: 38%; max-width: 26px; border-radius: 4px 4px 0 0; min-height: 2px; }
.sk-b-rev { background: #2C5BA8; } .sk-b-ni { background: var(--ok); } .sk-b-ni.neg { background: var(--hot); }
.sk-barkey span { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin: 0 .3rem 0 .6rem; vertical-align: -1px; }
.sk-ftable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sk-ftable th, .sk-ftable td { padding: .55rem .6rem; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.sk-ftable th:first-child, .sk-ftable td:first-child { text-align: left; white-space: normal; min-width: 11rem; }
.sk-ftable th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sk-side .card { padding: 1.1rem 1.2rem; position: sticky; top: 1rem; }
.sk-view .eyebrow { margin: 0 0 .5rem; color: var(--accent); font-weight: 800; letter-spacing: .1em; font-size: .75rem; text-transform: uppercase; }
.sk-conv { display: inline-block; font-size: .78rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; margin: 0 0 .6rem; }
.sk-conv-high { background: var(--ok-soft); color: var(--ok); } .sk-conv-medium { background: var(--warn-soft); color: var(--warn); } .sk-conv-low { background: var(--panel); color: var(--muted); }
.sk-moat { display: flex; justify-content: space-between; align-items: baseline; background: var(--accent-soft); border-radius: 12px; padding: .7rem .9rem; margin: .2rem 0 .4rem; }
.sk-moat span { font-weight: 700; color: var(--accent-hi); font-size: .85rem; }
.sk-moat strong { font: 600 1.4rem "Fraunces", Georgia, serif; }
.sk-k { margin: .9rem 0 .1rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-hi); }
.sk-own { background: var(--accent-soft); border-radius: 12px; padding: .8rem 1rem; }
.sk-moves { padding-left: 1.1rem; line-height: 1.6; }
.sk-disc { margin-top: 1.4rem; }
.sk-search { position: relative; max-width: 640px; margin: 0 0 1rem; }
.sk-search input { width: 100%; font-size: 1.05rem; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.sk-results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); }
.sk-results a { display: block; padding: .55rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sk-results a:hover { background: var(--panel); }
.sk-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; margin: 0 0 1.4rem; }
.sk-links a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.4; }
.sk-links a strong { display: block; color: var(--ink); font-size: 1rem; }
.sk-links a:hover { border-color: var(--accent); }
.sk-sec { margin: 1.6rem 0; }
.sk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.sk-tile { display: grid; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; color: var(--ink); text-decoration: none; }
.sk-tile:hover { border-color: var(--accent); text-decoration: none; }
.sk-tile-sym { font-weight: 800; letter-spacing: .03em; }
.sk-tile-name { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1em; }
.sk-tile-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; }
.sk-tile-row em { font-style: normal; font-weight: 700; }
.sk-tile .sk-conv { margin: 0; font-size: .68rem; padding: .15rem .45rem; }
.sk-pct { font-size: .75rem; color: var(--accent-hi); font-weight: 700; }
.sk-periods button, .sk-seg button, .sk-tabs button { box-shadow: none !important; transform: none !important; }

/* A ticker that opens its stock page (radar, trades, holdings): reads as the ticker, shows it's a link on hover. */
a.sk-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
a.sk-link:hover { color: var(--accent); border-bottom-style: solid; }

/* Admin -> Costs */
.cost-total { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.cost-big { font-family: var(--display, inherit); font-size: 2.4rem; font-weight: 700; margin: .1rem 0; }
.cost-big span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.cost-split { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .4rem 1.2rem; min-width: min(100%, 420px); }
.cost-split li { display: flex; justify-content: space-between; gap: .8rem; font-size: .9rem; border-bottom: 1px solid var(--line); padding: .25rem 0; }
.cost-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .8rem 0 1.2rem; }
.cost-table th, .cost-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cost-table .cost-group th { background: var(--accent-soft, #f6ece8); font-size: .95rem; }
.cost-table tfoot th { font-size: 1rem; border-top: 2px solid var(--ink, #17140f); }
.cost-src { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--line); white-space: nowrap; }
.cost-measured { background: #e3efe8; color: #2f6d4f; }
.cost-estimate, .cost-waiting { background: #fbf0d9; color: #8a5a1c; }
.cost-confirm { background: #f6e3dc; color: #a63f2c; }

/* Admin → Analytics */
.ga-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; }
.ga-range { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.ga-range a { padding: .35rem .85rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.ga-range a + a { border-left: 1px solid var(--line); }
.ga-range a:hover { text-decoration: none; color: var(--ink); }
.ga-range a[aria-current] { background: var(--ink); color: #fff; }
.ga-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin: 1rem 0; }
.ga-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; }
.ga-kpi p { margin: 0; }
.ga-kpi__label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.ga-kpi__value { font-family: "Fraunces", Georgia, serif; font-size: 1.7rem; font-weight: 600; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.ga-delta { font-size: .78rem; font-weight: 700; }
.ga-delta.is-good { color: var(--ok); }
.ga-delta.is-bad { color: var(--hot); }
.ga-section { margin: 1rem 0; overflow: hidden; }
.ga-section h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.ga-sub { font-size: .95rem; margin: 1.2rem 0 .2rem; }
.ga-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 1rem; }
.ga-table { margin: .6rem 0 0; font-size: .86rem; }
.ga-table td.ga-text { max-width: 26rem; overflow-wrap: anywhere; }
.ga-barcell { min-width: 9rem; }
.ga-bar { display: inline-block; vertical-align: middle; width: 5rem; height: 6px; margin-right: .5rem; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.ga-bar span { display: block; height: 100%; background: var(--accent); border-radius: 0 3px 3px 0; }
.ga-empty { margin: .6rem 0 0; }
.ga-code { display: inline-block; padding: .3rem .55rem; background: var(--panel); border-radius: 6px; font-size: .9rem; user-select: all; }
.ga-trend { width: 100%; height: auto; display: block; margin-top: .5rem; }
.ga-grid { stroke: var(--line); stroke-width: 1; }
.ga-axis { font-size: 14px; fill: var(--muted); }
.ga-area { fill: var(--accent); opacity: .1; }
.ga-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.ga-line--sessions { stroke: var(--accent); }
.ga-line--users { stroke: var(--ink); }
.ga-hit rect { fill: transparent; }
.ga-hit line, .ga-hit circle { opacity: 0; }
.ga-hit line { stroke: var(--muted); stroke-dasharray: 3 3; }
.ga-hit circle { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.ga-hit:hover line, .ga-hit:hover circle { opacity: 1; }
.ga-key { display: inline-block; width: 14px; height: 3px; vertical-align: middle; border-radius: 2px; }
.ga-key--sessions { background: var(--accent); }
.ga-key--users { background: var(--ink); }

/* Dashboard: Pro first, sections, category filters */
.hub-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.4rem; }
.hub-filters[hidden] { display: none; }
.hub-chip { background: var(--panel, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; box-shadow: none;
  padding: .45rem .9rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 38px; }
.hub-chip:hover { border-color: var(--accent); background: var(--panel, #fff); color: var(--ink); transform: none; }
.hub-chip[aria-pressed="true"], .hub-chip[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hub-chip-n { font-weight: 500; opacity: .65; margin-left: .15rem; }
.hub-group { margin: 0 0 2.2rem; }
.hub-group[hidden], [data-sub][hidden], .hub-tile[hidden] { display: none; }
.hub-group--pro { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 20px; padding: 1.4rem; }
.hub-sub { margin: 1.3rem 0 .7rem; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; font-family: inherit; }
.hub-h2 + [data-sub] > .hub-sub { margin-top: .4rem; }
.hub-tiles--calc { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.hub-tiles--calc .hub-tile { padding: 1.1rem 1.2rem; }
.hub-tiles--calc .hub-tile p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .hub-group--pro { padding: 1rem; } }

/* Weekly Market Brief: earnings and key dates ahead (from the Market Calendar) */
.brief-ahead { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem 1.4rem; }
.brief-ahead .ba-d { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .35rem; }
.brief-ahead ul { list-style: none; margin: 0; padding: 0; }
.brief-ahead li { display: block; padding: .32rem 0; font-size: .9rem; line-height: 1.35; border-bottom: 1px solid var(--line-soft); }
.brief-ahead li:last-child { border-bottom: 0; }
.brief-ahead .ba-logo { vertical-align: -5px; margin-right: .35rem; width: 20px; height: 20px; border-radius: 5px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px rgba(23,20,15,.08); }
.brief-ahead li > a { font-weight: 800; margin-right: .2rem; } .brief-ahead .ba-mine strong { color: var(--accent); }
.brief-ahead .ba-dot { display: inline-block; margin-right: .4rem; vertical-align: 1px; width: 8px; height: 8px; border-radius: 50%; background: #3f6b53; flex: none; }
.brief-ahead .ba-fed .ba-dot { background: #2F5D8A; } .brief-ahead .ba-ipo .ba-dot { background: #7A4E9C; }
.brief-ahead .ba-closed .ba-dot, .brief-ahead .ba-early .ba-dot { background: #8C8279; }
.brief-ahead .ba-closed, .brief-ahead .ba-ipo { font-weight: 700; }
.brief-ahead .ba-t { font-weight: 800; font-size: .78rem; color: var(--muted); }
.brief-ahead .ba-more { grid-column: 1 / -1; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: .3rem 0 0; }
