/* BankvsACT — design system ported 1:1 from the original app
   (the ledger at night: warm charcoal ink, metallic gold).
   Type law: BOLD = money, names, actions. ITALIC = guidance and
   bendy stuff (kept, just quieter). Display font: Archivo Black;
   body: Archivo — same faces as the original. */
:root {
  /* --- original tokens (dark) --- */
  --bg: #12100c;
  --surface: #1e1b14;
  --surface-alt: #2a251a;
  --text: #f2ead8;
  --dim: #a89a7d;
  --border: #3a3323;
  --accent: #e8b923;
  --accent-strong: #f5cd4a;
  --gold: #e8b923;
  --good: #4caf7d;
  --on-good: #0e2417;
  --load-snap: #56b6f7;
  --load-ktap: #f06ba8;
  --caution: #f59e42;
  --bad: #e0685a;
  --radius: 14px;
  --ink-on-accent: #12100c;
  /* --- stage 2 legacy aliases, re-pointed at the originals --- */
  --card: var(--surface);
  --card2: var(--surface-alt);
  --line: var(--border);
  --muted: var(--dim);
  --red: var(--bad);
  --green: var(--good);
  --sky: var(--load-snap);
  --magenta: var(--load-ktap);
  --yellow: var(--gold);
  --grey: var(--dim);
  --orange: var(--caution);
  --gold-dim: #8a6d1f;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  padding-bottom: 104px;
}
.font-display, .hero-num, .act-big, .ben-headline, .acct-name, #cal-title, h2 {
  font-family: "Archivo Black", "Arial Black", "Archivo", sans-serif;
  font-weight: 400;
}
.hidden { display: none !important; }
.gold { color: var(--gold); }
.hint { color: var(--dim); font-size: 13px; margin: 6px 0; }
.guide { font-style: italic; color: var(--dim); }
.guide-line { display: block; margin-top: 4px; font-size: 12px; font-style: italic; color: var(--dim); }

.app-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.app-header .seal { width: 34px; height: 34px; border-radius: 50%; }
.app-header h1 { margin: 0; font-size: 19px; letter-spacing: 0.01em; color: var(--text); }
.app-header h1 .vs { color: var(--dim); font-size: 0.72em; }
/* v8: Settings lives behind this button and nowhere else. */
.app-header .menu-btn {
  margin-left: auto; background: transparent; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 18px; line-height: 1;
  padding: 7px 12px; cursor: pointer; font-family: inherit;
}
.app-header .menu-btn:active { transform: scale(0.97); }
.settings-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 12px; }
.settings-top .sec-title { margin: 0; font-size: 16px; }

.view, .tabpage { padding: 14px 16px 6px; max-width: 672px; margin: 0 auto; }
h2 { color: var(--text); font-size: 22px; margin: 6px 0 8px; }
h3 { color: var(--text); font-family: "Archivo Black", "Arial Black", sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 4px 0 10px; }
h4 { color: var(--text); font-family: "Archivo Black", "Arial Black", sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin: 16px 0 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.card.danger { border-color: #6e352c; }

label { display: block; margin: 10px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: normal; text-transform: none; color: var(--text); }
input[type="text"], input[type="number"], input[type="date"], select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 4px;
}
input:focus, select:focus { border-color: var(--accent); outline: none; }
label.check input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
input[type="checkbox"] { accent-color: var(--accent); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 16px; padding: 12px 16px 16px; }
legend { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 0 6px; }
legend i { text-transform: none; letter-spacing: 0; }

.btn {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin: 4px 4px 4px 0;
}
.btn.gold { background: var(--accent); color: var(--ink-on-accent); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: var(--border); }
.btn.red { background: transparent; border-color: #6e352c; color: var(--bad); }
.btn.small { padding: 6px 12px; font-size: 13px; font-weight: 600; }
.btn.big { width: 100%; padding: 14px; font-size: 17px; margin-top: 6px; }
.btn:active { transform: scale(0.98); }

/* ---------- Ledger hero (the ACT number) ---------- */
.hero { text-align: center; padding: 24px 0 10px; }
.hero-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--dim); }
.hero-num { margin: 8px 0 0; font-size: 60px; line-height: 1.05; color: var(--accent); overflow-wrap: break-word; }
@media (min-width: 640px) { .hero-num { font-size: 72px; } }
.hero-sub { margin: 12px 0 0; font-size: 14px; color: var(--dim); }
.hero-sub b { color: var(--text); }
.hero-sub #tot-held { color: var(--gold); }
.strip { text-align: center; margin-bottom: 24px; }
.strip p { margin: 0; font-size: 14px; }
.strip .guide { font-size: 14px; }
.holiday-note { text-align: center; font-size: 12px; font-style: italic; color: var(--dim); margin: -12px 0 22px; }
.holiday-note b { color: var(--text); font-style: normal; }
.ledger-foot { text-align: center; font-size: 12px; margin: 26px 0 6px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 26px 0 10px; }
.sec-title { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin: 0; }
.add-link { background: transparent; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-family: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; cursor: pointer; }
.add-link:active { transform: scale(0.97); }

/* ---------- Account cards ---------- */
.acct-head { display: flex; justify-content: space-between; align-items: baseline; }
.acct-name { font-size: 16px; color: var(--text); }
.mini-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin: 0 0 2px; }
.acct-cols { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.acct-cols > * { min-width: 0; }
.bank-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 2px 0 0; }
.bank-edit input.bank-input {
  width: 132px; flex: none;
  background: transparent; border: none; border-bottom: 1px solid transparent; border-radius: 0;
  padding: 2px 0; margin: 0;
  font-size: 20px; font-weight: 700; color: var(--text);
}
.bank-edit input.bank-input:focus { border-bottom-color: var(--accent); outline: none; }
.held-under { font-size: 12px; color: var(--dim); margin: 5px 0 0; }
/* v8: the held line is a button — it opens the account's held editor. */
.held-edit-btn {
  display: block; background: none; border: none; padding: 0;
  font-family: inherit; text-align: left; cursor: pointer;
}
.held-edit-btn .edit-word { color: var(--accent); font-weight: 600; }
/* v8: while the BANK editor is open the card stacks — BANK row on its
   own line, ACT on a full-width line under it — so the ACT figure can
   never be shoved off the right edge the way the side-by-side row did. */
.acct.editing .acct-cols { flex-direction: column; align-items: stretch; gap: 4px; }
.acct.editing .acct-right { text-align: right; }
/* v8: the held editor (this-check amounts + split shares). */
.held-editor { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.adj-block { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 10px; }
.adj-block:first-of-type { border-top: none; margin-top: 2px; padding-top: 0; }
.adj-share-row { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; margin: 6px 0; }
.adj-share-row span { flex: 1; color: var(--text); font-size: 14px; font-weight: 600; }
.adj-share-row input { width: 110px; flex: none; margin-top: 0; }
.adj-error { color: var(--bad); font-size: 13px; margin: 6px 0; }
.acct-right { text-align: right; }
.act-big { font-size: 30px; line-height: 1.1; color: var(--accent); margin: 0; }
.heldnow { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.hn-item { font-size: 12px; color: var(--dim); padding: 1px 0; }
.dep-line { color: var(--dim); font-size: 12px; font-style: italic; margin: 6px 0 0; }
.dep-line b { color: var(--text); font-style: normal; }

/* held list (benefits cash-aid card) */
.held-list { margin: 10px 0; border-top: 1px solid var(--border); padding-top: 8px; }
.held-item { display: flex; justify-content: space-between; padding: 2px 0; font-size: 12px; color: var(--dim); }
.held-item .due { color: var(--dim); opacity: 0.75; }

/* ---------- Bills & deposits ---------- */
.bill-row { border-top: 1px solid var(--border); padding: 12px 0; }
.bill-row:first-of-type { border-top: none; }
.bill-main { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.bill-meta { color: var(--dim); font-size: 12px; margin-top: 2px; }
.bill-row.paid .bill-main, .bill-row.paid .bill-meta { text-decoration: line-through; color: var(--dim); }
.tag { font-style: italic; color: var(--dim); font-size: 12px; }
.tag.held-now { color: var(--gold); font-style: normal; font-weight: 700; }
.bill-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }

.dep-row { border-top: 1px solid var(--border); padding: 10px 0; font-size: 14px; }
.dep-row:first-of-type { border-top: none; }

.mini-form { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 4px; }
/* v8: forms that open at the TOP of their card (Add a Bill) drop the
   dashed separator — there is nothing above them to separate from. */
#bill-form-wrap .mini-form { border-top: none; margin-top: 0; padding-top: 0; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cal-head .btn { margin: 0; }
#cal-title { font-size: 16px; color: var(--text); text-transform: none; letter-spacing: 0; margin: 0; text-align: center; }
.cal-hint { font-size: 12px; margin: 6px 0 0; }
/* v8: legend runs tighter — smaller type, less padding, less air
   between lines. It stays at the top of the Calendar tab. */
.legend { margin-top: 10px; font-size: 11px; padding: 10px 12px; }
.legend p { margin: 3px 0; }
.legend .mk { font-size: 11px; }
.legend .mk.dot { width: 8px; height: 8px; margin: 0 2px; }
/* v8: the Show-loads checkboxes live directly under the grid now. */
.cal-toggles { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.cal-toggles label.check { margin: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.cal-dow { text-align: center; color: var(--dim); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 0; }
.cal-day {
  background: transparent; border: none; border-radius: 10px;
  min-height: 52px; padding: 6px 2px 4px; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.cal-day.dim { opacity: 0.35; }
.cal-day.payday { background: rgba(76, 175, 125, 0.10); }
.cal-day.selected { background: var(--surface-alt); box-shadow: inset 0 0 0 1px var(--border); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day .dnum { font-weight: 700; font-size: 14px; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; }
.cal-marks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; min-height: 12px; align-items: center; justify-content: center; }
.mk { font-size: 9px; line-height: 1; font-weight: 800; }
.mk.tri.green { color: var(--good); }
.mk.tri.sky { color: var(--load-snap); }
.mk.tri.magenta { color: var(--load-ktap); }
.mk.tri.orange { color: var(--caution); }
.mk.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.mk.dot.red { background: var(--bad); }
.mk.dot.yellow { background: var(--gold); }
.mk.dot.grey { background: var(--dim); opacity: 0.45; }
#cal-detail h3 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.detail-item { padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.detail-item:first-of-type { border-top: none; }

/* ---------- Benefits ---------- */
.ben-headline { font-size: 30px; line-height: 1.1; color: var(--accent); }
.act-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 6px 0; }
.act-line > span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.pace-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }
.pace-row span:first-child { color: var(--dim); }
.shortfall { color: var(--bad); font-size: 14px; margin: 6px 0; }
.item-row { border-top: 1px solid var(--border); padding: 12px 0; }
.item-row:first-of-type { border-top: none; }
.item-main { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item-name-input { flex: 1; }
.qty-ctrl { display: flex; align-items: center; gap: 6px; }
.qty-ctrl button { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); font-size: 18px; font-weight: 700; font-family: inherit; cursor: pointer; }
.qty-num { min-width: 24px; text-align: center; font-weight: 700; }
.price-input { width: 96px !important; }
.item-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: var(--dim); font-size: 13px; }
.activity-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.activity-row .neg { color: var(--bad); }
.activity-row .pos { color: var(--good); }
.spend-row { display: flex; gap: 8px; margin: 8px 0; }
.spend-row input { flex: 1; }
.bal-edit { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.bal-edit input { flex: 1; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}
.tabbtn {
  flex: 1; background: transparent; border: none; color: var(--dim);
  padding: 14px 2px; font-size: 14px; font-family: inherit; cursor: pointer;
}
.tabbtn b { font-weight: 700; }
.tabbtn.active { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
/* Four tabs (v8 — Settings moved behind the header menu button):
   Play-by-Play is listed first and gets a wider share so its label
   fits on one line at phone width; it may still wrap at the hyphen
   if it must. The app still opens on the Ledger. */
.tabbtn.pbp-tab { flex: 1.35; white-space: normal; line-height: 1.15; }

.set-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding: 10px 0; font-size: 14px; }
.set-row:first-of-type { border-top: none; }

/* ---------- Install banner ---------- */
.install-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.install-banner .ib-text { flex: 1; min-width: 170px; }
.install-banner .ib-title { font-size: 16px; }
.install-banner .ib-text p { margin: 2px 0 0; }
.install-banner #install-ios p { margin: 0 0 6px; }

/* ---------- Account card actions ( OG quiet text actions ) ---------- */
.acct-actions { display: flex; gap: 2px; flex: none; }
.text-action {
  background: transparent; border: none; border-radius: 8px;
  padding: 4px 8px; font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--dim); cursor: pointer;
}
.text-action:active { transform: scale(0.97); }
.text-action.danger { color: var(--bad); font-weight: 700; }
.save-note { color: var(--good); font-weight: 700; }
.rename-form { display: flex; gap: 8px; align-items: center; flex: 1; }
.rename-form input { flex: 1; margin: 0; }
.acct-activity { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
#accounts-wrap .card:last-child { margin-bottom: 0; }
#build-line { margin-top: 10px; }

/* ---- v5 parity pass additions ---- */
.hero-note { margin-top: 8px; font-size: 13px; color: var(--dim); }
.bank-display { background: none; border: none; padding: 0; font: inherit; font-size: 22px; font-weight: 800; color: var(--text); cursor: pointer; text-align: left; }
.bank-display .edit-word { font-size: 12px; font-weight: 600; color: var(--accent); }
.text-action.danger { color: var(--bad); font-weight: 700; }
.tag.overdue { color: var(--bad); font-style: normal; font-weight: 700; }
.dep-row2 { border-top: 1px solid var(--border); padding: 10px 0; }
.dep-row2:first-of-type { border-top: none; }
.card-form { margin-bottom: 12px; }
.pill { border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ben-center { text-align: center; }
.ben-big { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 44px; line-height: 1.05; color: var(--accent); margin: 6px 0 2px; }
.ben-big .ben-per { font-size: 20px; }
.ben-mid { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: 24px; color: var(--accent); margin: 4px 0 2px; }
.ben-block { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
/* v8: the first block on the SNAP card needs no separator above it,
   and the card header stacks so the pill never crashes into the
   wrapped SNAP / EBT title. */
.ben-block-first { border-top: none; margin-top: 4px; padding-top: 0; }
.ben-head-stack { flex-direction: column; align-items: flex-start; gap: 6px; }
.ben-settings { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.gold-text { color: var(--gold); }
.benefits-foot { text-align: center; margin: 18px 4px 4px; }
.legend-head { font-size: 13px; }
.legend-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cal-day.blank { background: none; box-shadow: none; cursor: default; }
.detail-line { padding: 6px 0; font-size: 14px; }
.detail-line.good { color: var(--good); }
.detail-line.snap { color: var(--load-snap, #56b6e8); }
.detail-line.aid { color: var(--load-ktap, #e056c8); }
.detail-line.holiday { color: var(--caution, #e8912d); }
.detail-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.di-main { min-width: 0; }
.di-sub { display: block; font-size: 12px; color: var(--dim); }
.struck { text-decoration: line-through; color: var(--dim); }

/* ---------- Play-by-Play (v6; forms tightened v7; whole tab
   compacted v8, add forms moved to the top of each column) ----------
   Two columns that stay two columns at phone width. Each item is a
   checkbox, its words, and a date chip ON ITS OWN ROW under the
   words (v8 — the chip used to ride inline and could cover the
   text); the chip's color is the whole due-date signal (plain far
   out, gold within 3 days, red within a day or overdue) — no
   banners, no alarm chrome. Done items strike through and tuck into
   a collapsed Done row at the column's foot. */
.pbp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; margin-top: 10px; }
.pbp-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 0;
}
.pbp-col h3 { margin-top: 0; font-size: 12px; margin-bottom: 6px; }
.pbp-col .hint { font-size: 11px; margin: 4px 0; }
.pbp-item { display: flex; gap: 7px; align-items: flex-start; border-top: 1px solid var(--border); padding: 6px 0; }
.pbp-item:first-of-type { border-top: none; padding-top: 2px; }
.pbp-item input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.pbp-main { flex: 1; min-width: 0; font-size: 13px; }
.pbp-text { display: block; overflow-wrap: break-word; }
.pbp-item.done .pbp-text { text-decoration: line-through; color: var(--dim); }
.pbp-chiprow { margin-top: 3px; }
.pbp-chip {
  display: inline-block; padding: 0 6px; line-height: 1.6;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 10px; font-weight: 700; color: var(--dim); white-space: nowrap;
}
.pbp-chip.due-yellow { background: var(--gold); border-color: var(--gold); color: var(--ink-on-accent); }
.pbp-chip.due-red { background: var(--bad); border-color: var(--bad); color: #fff; }
.pbp-actions { margin-top: 2px; }
.pbp-actions .text-action { padding: 2px 6px 2px 0; font-size: 11px; }
.pbp-done-toggle { margin-top: 4px; }
/* The add forms sit at the top of each column now, so the dashed
   separator the shared .mini-form carries comes off — and the list
   under the form gets the separator instead. Sizing stays tight
   (v7) and a touch tighter (v8): smaller labels, less padding. */
.pbp-form { margin-top: 2px; padding-top: 0; border-top: none; }
.pbp-form label { margin: 3px 0; font-size: 10px; }
.pbp-form input[type="text"], .pbp-form input[type="date"] {
  padding: 5px 8px; font-size: 14px; line-height: 1.2; margin-top: 2px;
}
.pbp-form input[type="date"] { min-height: 0; font-size: 14px; }
.pbp-form .btn { padding: 6px 12px; font-size: 14px; margin: 2px 4px 2px 0; }
#pbp-moves, #pbp-mind { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 4px; }

/* ============ TEST DUMMY additions: scan button, scan sheet, widget ============
   Only in stage2-testdummy. Same black/gold system; BOLD carries the
   money and the actions, italic carries the guidance. */
.dummy-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--ink-on-accent); background: var(--gold);
  border-radius: 6px; padding: 3px 6px; white-space: nowrap;
}
.app-header .scan-btn {
  margin-left: auto; background: transparent; border: 1px solid var(--gold-dim);
  border-radius: 10px; color: var(--text); font-size: 18px; line-height: 1;
  padding: 6px 11px; cursor: pointer; font-family: inherit;
}
.app-header .scan-btn:active { transform: scale(0.97); }
.app-header .menu-btn { margin-left: 8px; }
.scan-mode-btn { display: block; }
.scan-big-wrap { text-align: center; padding: 4px 0 10px; }
.scan-big {
  font-family: "Archivo Black", "Arial Black", sans-serif; font-weight: 400;
  font-size: 46px; margin: 0; color: var(--gold);
}
.scan-big-label { margin: 2px 0 0; color: var(--text); }
.scan-line { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.scan-line input { flex: 1; }
.widget-card {
  max-width: 340px; margin: 10px auto 14px;
  background: var(--surface); border: 1px solid var(--gold-dim);
  border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.widget-eyebrow {
  margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--dim);
}
.widget-act {
  font-family: "Archivo Black", "Arial Black", sans-serif; font-weight: 400;
  font-size: 44px; margin: 2px 0 8px; color: var(--gold);
}
.widget-rows p {
  display: flex; justify-content: space-between; gap: 10px;
  margin: 6px 0; font-size: 14px;
}
.widget-rows span { color: var(--dim); font-style: italic; }
.widget-rows b { text-align: right; }
#widget-view .btn, #widget-view .hint { display: block; margin-left: auto; margin-right: auto; max-width: 340px; text-align: center; }

/* ---- TEST DUMMY ONLY: notifications ---- */
.app-header .notif-btn {
  margin-left: auto; background: transparent; border: 1px solid var(--gold-dim);
  border-radius: 10px; color: var(--text); font-size: 18px; line-height: 1;
  padding: 6px 11px; cursor: pointer; font-family: inherit; position: relative;
}
.app-header .notif-btn:active { transform: scale(0.97); }
.app-header .scan-btn { margin-left: 8px; }
.notif-dot {
  position: absolute; top: 5px; right: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--gold); border: 1px solid var(--bg);
}
.notif-item { position: relative; padding-right: 46px; }
.notif-item.unread { border-left: 3px solid var(--gold); }
.notif-title { margin: 0 0 2px; }
.notif-item .hint { margin: 0; }
.notif-x { position: absolute; top: 8px; right: 8px; }
.notif-actions { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
