/* ============================================================
   BillMove — Design System
   Mobile-first. One-handed use. Fast before fancy.
   ============================================================ */

:root {
  /* Brand */
  --brand:        #2563eb;   /* trust blue */
  --brand-dark:   #1d4ed8;
  --brand-tint:   #eff4ff;
  --accent:       #0ea5e9;

  /* Status colors (match the blueprint status chips) */
  --ok:           #16a34a;
  --ok-tint:      #e8f7ee;
  --warn:         #d97706;
  --warn-tint:    #fdf3e3;
  --danger:       #dc2626;
  --danger-tint:  #fdeaea;
  --review:       #7c3aed;
  --review-tint:  #f1ebfe;

  /* Neutrals */
  --ink:          #0f172a;
  --ink-2:        #475569;
  --ink-3:        #94a3b8;
  --line:         #e2e8f0;
  --bg:           #f6f8fb;
  --card:         #ffffff;

  /* Shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.16);

  /* Layout */
  --max: 480px;            /* mobile-first column */
  --header-h: 56px;
  --claimbar-h: 76px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }

/* ---------- App column ---------- */
.app-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}

/* ---------- Top bar ---------- */
.topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .back {
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--ink); cursor: pointer; padding: 6px; border-radius: 8px;
}
.topbar .back:active { background: var(--line); }
.topbar h1 { font-size: 17px; font-weight: 700; margin: 0; flex: 1; }
.topbar .spacer { flex: 1; }

/* ---------- Brand mark ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
.brand .eye {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 14px;
}

/* ---------- Content ---------- */
.screen { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.screen.has-claimbar { padding-bottom: calc(var(--claimbar-h) + 24px); }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12.5px; color: var(--ink-3); }
.center { text-align: center; }

h2.section { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 4px 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card.tap { cursor: pointer; transition: transform .08s ease, box-shadow .12s ease; }
.card.tap:active { transform: scale(.99); box-shadow: var(--shadow-lg); }

.choice {
  display: flex; gap: 14px; align-items: flex-start;
}
.choice .ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--brand-tint); color: var(--brand);
}
.choice h3 { margin: 0 0 4px; font-size: 17px; }
.choice p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 0 18px;
  border: none; border-radius: var(--r);
  font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff;
  transition: filter .12s ease, transform .06s ease;
}
.btn:active { transform: translateY(1px); filter: brightness(.96); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.sm { min-height: 40px; font-size: 14px; width: auto; padding: 0 14px; border-radius: 10px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { width: auto; flex: 1; }

/* ---------- Status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.matched, .chip.correct      { color: var(--ok);     background: var(--ok-tint); }
.chip.missing, .chip.missing_item { color: var(--danger); background: var(--danger-tint); }
.chip.overcharged, .chip.mrp_overcharge { color: var(--danger); background: var(--danger-tint); }
.chip.quantity_mismatch, .chip.quantity_short { color: var(--warn); background: var(--warn-tint); }
.chip.pack_size_mismatch { color: var(--warn); background: var(--warn-tint); }
.chip.wrong_item, .chip.wrong_item_delivered { color: var(--warn); background: var(--warn-tint); }
.chip.double_scanned { color: var(--danger); background: var(--danger-tint); }
.chip.needs_review, .chip.item_not_visible { color: var(--review); background: var(--review-tint); }
.chip.suggested { color: var(--ink-2); background: #f1f5f9; border-style: dashed; border-color: var(--ink-3); }
.chip.fee, .chip.tax, .chip.discount, .chip.coupon, .chip.other { color: var(--ink-3); background: #f1f5f9; }

/* "AI suggested" badge */
.sugg-tag { font-size: 10.5px; font-weight: 700; color: var(--review); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Upload / dropzone ---------- */
.dropzone {
  border: 2px dashed var(--brand); border-radius: var(--r);
  background: var(--brand-tint);
  padding: 26px 16px; text-align: center; cursor: pointer;
}
.dropzone .big { font-size: 34px; }
.dropzone strong { display: block; margin-top: 6px; font-size: 16px; color: var(--brand-dark); }
.dropzone span { font-size: 12.5px; color: var(--ink-2); }
.dropzone.drag { background: #dbe7ff; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border-radius: 50%; border: none; background: rgba(15,23,42,.7); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
}
.thumb .tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: 10px; font-weight: 700; text-align: center;
  background: rgba(15,23,42,.65); color: #fff; padding: 3px;
}

/* ---------- Bill item rows ---------- */
.item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px;
}
.item + .item { margin-top: 10px; }
.item .row1 { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.item .name { font-weight: 700; font-size: 15px; }
.item .meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.item .price { font-weight: 700; white-space: nowrap; }
.item .row2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.item .editbtn { margin-left: auto; }

.qtybox { display: flex; align-items: center; gap: 6px; }
.qtybox button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 18px; cursor: pointer; color: var(--ink);
}
.qtybox input {
  width: 46px; text-align: center; height: 30px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px;
}

/* status picker */
.statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.statuses .chip { cursor: pointer; opacity: .55; }
.statuses .chip.active { opacity: 1; outline: 2px solid currentColor; outline-offset: 1px; }

/* ---------- Sticky claim bar ---------- */
.claimbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-width: var(--max); margin: 0 auto;
  height: calc(var(--claimbar-h) + env(safe-area-inset-bottom));
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -8px 24px rgba(15,23,42,.08);
}
.claimbar .amt { flex: 1; }
.claimbar .amt small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.claimbar .amt b { font-size: 22px; color: var(--danger); letter-spacing: -.02em; }
.claimbar .btn { width: auto; min-width: 150px; }

/* ---------- Summary band ---------- */
.summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px;
}
.summary div { text-align: center; }
.summary b { display: block; font-size: 20px; }
.summary small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .02em; }
.summary .m-ok b { color: var(--ok); }
.summary .m-issue b { color: var(--danger); }
.summary .m-review b { color: var(--review); }

/* ---------- Processing ---------- */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: none; }
.steps .dot {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; color: var(--ink-3);
}
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.active .dot { border-color: var(--brand); color: var(--brand); animation: pulse 1.1s infinite; }
.steps li.active span { color: var(--ink); font-weight: 700; }
.steps li span { color: var(--ink-3); }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(37,99,235,.4);} 50%{ box-shadow: 0 0 0 7px rgba(37,99,235,0);} }
.spinner {
  width: 42px; height: 42px; margin: 8px auto; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Dispute message ---------- */
.msgbox {
  background: #0f172a; color: #e2e8f0; border-radius: var(--r);
  padding: 14px; font-size: 13.5px; white-space: pre-wrap; line-height: 1.55;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  max-height: 320px; overflow: auto;
}

/* ---------- History rows ---------- */
.hist {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
}
.hist + .hist { margin-top: 10px; }
.hist .v { flex: 1; min-width: 0; }
.hist .v b { font-size: 15px; display: block; }
.hist .v small { color: var(--ink-3); font-size: 12px; }
.hist .claim { text-align: right; }
.hist .claim b { color: var(--danger); }
.hist .claim small { display: block; font-size: 11px; color: var(--ink-3); }

/* ---------- Forms ---------- */
label.fl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input {
  width: 100%; min-height: 50px; padding: 0 14px; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field + .field { margin-top: 14px; }

/* ---------- Toast & banners ---------- */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: 90px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: rise .25s ease; max-width: 90%;
}
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

.banner {
  border-radius: var(--r); padding: 12px 14px; font-size: 13.5px;
  display: flex; gap: 10px; align-items: flex-start;
}
.banner.info { background: var(--brand-tint); color: var(--brand-dark); }
.banner.warn { background: var(--warn-tint); color: #92400e; }
.banner.review { background: var(--review-tint); color: #5b21b6; }

/* ---------- Native bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  max-width: var(--max); margin: 0 auto; display: none;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar.show { display: grid; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 8px 0 9px; color: var(--ink-3); font-size: 11px; font-weight: 600; cursor: pointer;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.tabbar a .ic { font-size: 21px; line-height: 1; filter: grayscale(.4); opacity: .7; }
.tabbar a.active { color: var(--brand); }
.tabbar a.active .ic { filter: none; opacity: 1; transform: translateY(-1px); }
.app-shell.tabbar-on .screen { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); }
.empty .big { font-size: 44px; }

/* ============================================================
   LANDING PAGE  (wider, marketing)
   ============================================================ */
.land { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav .links { display: flex; gap: 22px; align-items: center; }
.nav .links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
@media (max-width: 640px) { .nav .links a:not(.btn) { display: none; } }

.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(30px, 7vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; }
.hero h1 .g { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(16px, 2.4vw, 20px); color: var(--ink-2); max-width: 620px; margin: 0 auto 26px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { width: auto; min-width: 190px; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.phone {
  max-width: 320px; margin: 26px auto 0; background: #fff; border-radius: 28px;
  border: 8px solid #0f172a; box-shadow: var(--shadow-lg); overflow: hidden;
}
.phone .ph-top { background: var(--brand); color: #fff; padding: 14px 16px; font-weight: 700; }
.phone .ph-body { padding: 14px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.sec { padding: 56px 0; }
.sec h2 { font-size: clamp(24px, 4vw, 34px); text-align: center; letter-spacing: -.02em; margin: 0 0 6px; }
.sec .sub { text-align: center; color: var(--ink-2); max-width: 560px; margin: 0 auto 34px; }

.steps-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 820px) { .steps-h { grid-template-columns: 1fr 1fr; } }
.steps-h .st { text-align: center; }
.steps-h .st .n { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.steps-h .st h4 { margin: 0 0 4px; font-size: 16px; }
.steps-h .st p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

.proof-demo { background: linear-gradient(135deg, var(--brand-dark), #0b1f4d); color: #fff; border-radius: var(--r-lg); padding: 30px; }
.proof-demo h3 { margin: 0 0 4px; font-size: 22px; }
.proof-demo .demo-table { background: rgba(255,255,255,.06); border-radius: var(--r); overflow: hidden; margin-top: 16px; }
.proof-demo .drow { display: grid; grid-template-columns: 1.6fr .7fr .7fr 1.1fr; gap: 6px; padding: 11px 14px; font-size: 13px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.proof-demo .drow.h { font-weight: 700; color: #cbd5e1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.proof-demo .drow:last-child { border-bottom: none; }
.proof-demo .drow .res { font-weight: 700; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--brand); position: relative; }
.plan.hot .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 4px; }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan .price small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 16px 0; flex: 1; }
.plan ul li { padding: 7px 0 7px 26px; position: relative; font-size: 14px; color: var(--ink-2); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--ink-3); font-size: 13.5px; }
.footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ---------- Bill items table ---------- */
.tablewrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table.bt { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
table.bt thead th {
  position: sticky; top: 0; background: var(--brand-tint); color: var(--brand-dark);
  font-size: 11px; text-transform: uppercase; letter-spacing: .03em; font-weight: 700;
  text-align: left; padding: 9px 8px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
table.bt th.c, table.bt td.c { text-align: center; }
table.bt th.r, table.bt td.r { text-align: right; white-space: nowrap; }
table.bt td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.bt tbody tr:last-child td { border-bottom: none; }
table.bt td.num { color: var(--ink-3); width: 26px; }
table.bt td.pname { min-width: 150px; }
table.bt td.pname span { font-weight: 600; }
table.bt tr.muted td { color: var(--ink-3); background: #fafbfc; }
table.bt tr.editrow td { background: var(--brand-tint); padding: 4px 12px 12px; }
table.bt .chip { font-size: 11px; padding: 4px 8px; }
.linkbtn { background: none; border: none; color: var(--brand); font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 4px; white-space: nowrap; }
.linkbtn:active { opacity: .6; }
.rowact { white-space: nowrap; }
.okbtn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; cursor: pointer; line-height: 1; margin: 0 1px; color: var(--ink-2);
}
.okbtn:active { transform: scale(.92); }
.okbtn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
table.bt tr.ticked td { background: var(--ok-tint); }
table.bt tr.ticked .pname span { color: var(--ink-2); }

/* utilities */
.hide { display: none !important; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap8 { gap: 8px; }
.mt0 { margin-top: 0; }
.w-auto { width: auto; }


/* ---------- BillMove public landing design ---------- */
.public-page { background: radial-gradient(circle at top left, #eaf2ff 0, #f6f8fb 38%, #ffffff 100%); }
.public-shell { max-width: 1080px; background: transparent; }
.public-main { padding-top: 26px; }
.public-topbar { border: 1px solid rgba(226,232,240,.8); border-radius: 0 0 22px 22px; margin: 0 10px; }
.brand-img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; box-shadow: var(--shadow); }
.public-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; }
.public-nav a { color: var(--ink-2); }
.public-nav .nav-pill { color: #fff; background: var(--brand); padding: 9px 13px; border-radius: 999px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 22px; align-items: center; padding: 18px 0 10px; }
.hero-copy h1 { font-size: clamp(34px, 5vw, 58px); line-height: .98; letter-spacing: -.06em; margin: 10px 0 14px; }
.hero-text { color: var(--ink-2); font-size: 17px; max-width: 650px; }
.eyebrow { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-weight: 800; font-size: 13px; }
.hero-actions { justify-content: flex-start; margin-top: 22px; }
.hero-card { display: grid; gap: 12px; }
.hero-logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow-lg); object-fit: cover; }
.metric { display: flex; justify-content: space-between; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.metric b { font-size: 18px; }
.metric span { color: var(--ink-2); font-size: 13px; text-align: right; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.module-card { position: relative; overflow: hidden; }
.module-card .btn { margin-top: 14px; }
.module-badge { display: inline-flex; margin-bottom: 12px; padding: 6px 10px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); font-size: 12px; font-weight: 800; }
.muted-badge { background: var(--warn-tint); color: var(--warn); }
.clean-list { margin: 0; padding-left: 18px; color: var(--ink-2); }
.clean-list li + li { margin-top: 8px; }
.public-footer { text-align: center; border: none; padding: 24px 16px 30px; }
.coming-page { max-width: 760px; margin: 24px auto; }
@media (max-width: 760px) {
  .public-topbar { margin: 0; border-radius: 0; }
  .public-nav { gap: 8px; font-size: 12px; }
  .public-nav a:nth-child(1), .public-nav a:nth-child(2) { display: none; }
  .hero-grid, .module-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   BillMove UI Refresh v2
   Purpose: fresh SaaS landing + better app frame without breaking
   the original JS-rendered checker screens.
   ============================================================ */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-2: #7c3aed;
  --accent: #06b6d4;
  --brand-tint: #eef5ff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: rgba(148, 163, 184, .28);
  --bg: #f8fbff;
  --card: rgba(255,255,255,.88);
  --glass: rgba(255,255,255,.74);
  --shadow: 0 14px 40px rgba(15,23,42,.08);
  --shadow-lg: 0 22px 70px rgba(15,23,42,.16);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --max: 500px;
  --site-max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body.site-body,
body.public-page {
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.16), transparent 30rem),
    radial-gradient(circle at 85% 12%, rgba(124,58,237,.13), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f5f7fb 100%);
}
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 12px;
}
.skip-link:focus { left: 10px; }

/* Global header/footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248,251,255,.78);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(226,232,240,.75);
}
.site-header-inner,
.site-main,
.site-footer-inner {
  width: min(var(--site-max), calc(100% - 32px));
  margin: 0 auto;
}
.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff, #eff6ff);
  border: 1px solid rgba(37,99,235,.16);
  box-shadow: 0 10px 25px rgba(37,99,235,.12);
  overflow: hidden;
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 20px; letter-spacing: -.04em; }
.brand-copy small { color: var(--ink-2); font-size: 11px; margin-top: 4px; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a,
.mobile-nav a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 750;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); background: rgba(15,23,42,.055); }
.site-nav a:active { transform: translateY(1px); }
.site-nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(37,99,235,.22);
}
.site-nav .nav-cta:hover { color: #fff; background: linear-gradient(135deg, var(--brand-dark), #6d28d9); }
.site-nav .nav-logout { background: linear-gradient(135deg, #0f172a, #334155); }
.nav-user {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  max-width: 210px;
}
.nav-user span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  display: block;
}
.mobile-nav {
  position: absolute;
  top: 56px;
  right: 0;
  width: min(270px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 4px;
}
.mobile-nav a { border-radius: 14px; }
.site-main { padding: 42px 0 54px; }
.site-footer {
  border-top: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
}
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}
.site-footer p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.footer-brand { color: var(--ink); font-weight: 900; font-size: 18px; letter-spacing: -.03em; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.site-footer nav a,
.footer-bottom a { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.site-footer nav a:hover,
.footer-bottom a:hover { color: var(--brand); }
.footer-bottom {
  width: min(var(--site-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(226,232,240,.9);
  color: var(--ink-3);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .fb-links a { color: var(--ink-3); text-decoration: none; margin-left: 14px; font-weight: 600; }
.footer-bottom .fb-links a:hover { color: var(--brand); }

/* Organized 4-column footer */
.site-footer-inner.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 34px 0 24px;
}
.footer-brand-col p { max-width: 320px; }
.footer-made { font-weight: 600 !important; color: #16a34a !important; }
.footer-mail { display: inline-block; margin-top: 10px; color: var(--ink-2); font-weight: 800; text-decoration: none; }
.footer-mail:hover { color: var(--brand); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); font-weight: 800; margin: 2px 0 12px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: var(--brand); }
@media (max-width: 860px) { .site-footer-inner.footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 480px) { .site-footer-inner.footer-grid { grid-template-columns: 1fr; } .footer-bottom { justify-content: center; text-align: center; } .footer-bottom .fb-links a { margin: 0 8px; } }

/* Generic refreshed components */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.12);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 5px rgba(37,99,235,.12);
}
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  text-decoration: none;
}
.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 0;
  box-shadow: 0 14px 30px rgba(37,99,235,.24);
}
.btn-secondary,
.btn.btn-secondary,
.btn.secondary {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border: 1px solid rgba(148,163,184,.35);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.btn-ghost,
.btn.btn-ghost,
.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid rgba(148,163,184,.38);
}
.btn.danger { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.card,
.card-pro,
.auth-panel,
.tool-card,
.workspace-card,
.roadmap-grid article,
.feature-grid article {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-pro { padding: clamp(22px, 3vw, 34px); }
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #065f46;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.18);
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.muted-pill { color: #6d28d9; background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.16); }
.text-link { font-weight: 850; color: var(--brand-dark); }
.text-link:hover { color: var(--brand-2); }
.tool-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid rgba(37,99,235,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  flex: none;
}
.tool-icon.large { width: 70px; height: 70px; font-size: 34px; border-radius: 24px; }

/* Home */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: calc(100dvh - 180px);
  padding: 18px 0 56px;
}
.hero-content h1,
.dashboard-hero h1,
.maker-hero h1,
.auth-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .92;
  letter-spacing: -.065em;
}
.hero-text,
.hero-content p,
.dashboard-hero p,
.maker-hero p,
.auth-copy p {
  color: var(--ink-2);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 680px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-actions .btn { width: auto; min-width: 174px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-points span {
  font-size: 13px;
  color: var(--ink-2);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
}
.hero-preview { display: grid; place-items: center; }
.phone-card {
  width: min(360px, 100%);
  border-radius: 36px;
  padding: 16px;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  box-shadow: 0 35px 80px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.12);
  color: #fff;
  transform: rotate(2deg);
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 14px;
}
.phone-top span { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }
.phone-top b { flex: 1; }
.phone-top em { font-style: normal; color: #bfdbfe; font-size: 12px; font-weight: 800; }
.scan-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 22px;
  text-align: center;
}
.scan-card img { width: 74px; height: 74px; object-fit: contain; margin: 0 auto 12px; border-radius: 18px; }
.scan-card strong { display: block; font-size: 18px; }
.scan-card small { color: #cbd5e1; display: block; margin-top: 6px; }
.metric-row {
  margin-top: 12px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
}
.metric-row span { color: #cbd5e1; }
.metric-row b { color: #fff; }
.metric-row.good b { color: #22c55e; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tool-card {
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.tool-card h2 { margin: 12px 0 8px; font-size: 24px; letter-spacing: -.04em; }
.tool-card p { margin: 0 0 16px; color: var(--ink-2); }
.feature-section { margin-top: 58px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-head h2 { margin: 0; max-width: 620px; font-size: clamp(28px, 4vw, 46px); line-height: 1; letter-spacing: -.055em; }
.feature-grid,
.roadmap-grid,
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid article,
.roadmap-grid article { padding: 22px; }
.feature-grid b,
.roadmap-grid b { color: var(--brand); font-size: 13px; }
.feature-grid h3,
.roadmap-grid h3 { margin: 10px 0 6px; font-size: 18px; }
.feature-grid p,
.roadmap-grid p { margin: 0; color: var(--ink-2); }

/* Auth */
.auth-layout {
  min-height: calc(100dvh - 220px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 460px);
  gap: clamp(22px, 5vw, 60px);
  align-items: center;
}
.reverse-auth .auth-copy { order: 2; }
.auth-panel { padding: clamp(22px, 4vw, 34px); }
.auth-copy { background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(239,246,255,.84)); }
.auth-card { background: rgba(255,255,255,.94); }
.auth-card h2 { margin: 12px 0 6px; font-size: 28px; letter-spacing: -.04em; }
.auth-logo-wrap img { width: 62px; height: 62px; object-fit: contain; border-radius: 20px; }
.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.auth-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.auth-list li { color: var(--ink-2); display: flex; gap: 10px; }
.auth-list li::before { content: "✓"; color: #16a34a; font-weight: 900; }
.auth-switch { font-size: 14px; margin-bottom: 0; }
.input,
select.input {
  min-height: 52px;
  border-radius: 15px;
  border: 1px solid rgba(148,163,184,.38);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus,
select.input:focus { border-color: rgba(37,99,235,.66); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.fl { font-size: 13px; font-weight: 850; color: var(--ink-2); }

/* Dashboard / Maker */
.dashboard-hero,
.maker-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}
.dashboard-hero h1,
.maker-hero h1 { font-size: clamp(34px, 5vw, 58px); }
.workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workspace-card { padding: 26px; display: grid; gap: 14px; }
.workspace-card h2 { margin: 0; font-size: 25px; }
.workspace-card p { margin: 0; color: var(--ink-2); }
.workspace-card.disabled { opacity: .78; }
.auth-notice { max-width: 560px; padding: 28px; }
.roadmap-grid { margin-top: 18px; }
.compact-actions { margin-top: 18px; }

/* Original app frame refresh */
body.checker-app-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(37,99,235,.18), transparent 28rem),
    radial-gradient(circle at 90% 15%, rgba(124,58,237,.13), transparent 26rem),
    #f8fbff;
}
.checker-stage {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(360px, 500px);
  gap: 34px;
  align-items: start;
  justify-content: center;
}
.checker-side-card {
  position: sticky;
  top: 98px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(15,23,42,.96), rgba(30,41,59,.96));
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.checker-side-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(37,99,235,.35);
  filter: blur(10px);
}
.checker-side-card h1 { position: relative; margin: 18px 0 10px; font-size: 42px; line-height: .95; letter-spacing: -.055em; }
.checker-side-card p { position: relative; color: #cbd5e1; }
.side-steps { position: relative; display: grid; gap: 10px; margin-top: 24px; }
.side-steps span {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
}
.checker-shell,
.app-shell {
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(148,163,184,.32);
  box-shadow: 0 28px 70px rgba(15,23,42,.14);
}
.checker-app-page .app-shell { min-height: min(760px, calc(100dvh - 156px)); }
.checker-topbar,
.topbar {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px) saturate(1.3);
}
.topbar h1 { letter-spacing: -.02em; }
.mini-logout {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ef4444;
  background: rgba(239,68,68,.09);
  border: 1px solid rgba(239,68,68,.15);
  font-weight: 900;
}
.screen { padding: 18px 18px calc(30px + env(safe-area-inset-bottom)); }
.dropzone {
  border-color: rgba(37,99,235,.44);
  background: linear-gradient(135deg, rgba(239,246,255,.92), rgba(245,243,255,.92));
  border-radius: 24px;
}
.item,
.summary,
.card {
  border-color: rgba(148,163,184,.28);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
}
.tabbar {
  border-top: 1px solid rgba(148,163,184,.28);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px) saturate(1.3);
}
.tabbar a {
  border-radius: 16px;
  margin: 7px 2px;
}
.tabbar a.active {
  color: var(--brand);
  background: rgba(37,99,235,.1);
}
.claimbar {
  border-top-color: rgba(148,163,184,.28);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.checker-footer { background: transparent; border: 0; }
.checker-footer .footer-bottom { text-align: center; }

/* Toasts */
.toast-wrap { z-index: 120; }
.toast {
  border-radius: 16px;
  background: rgba(15,23,42,.92);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.toast.ok { background: #047857; }
.toast.err { background: #b91c1c; }

/* Logged-in quick sub-menu: hidden on desktop (links already in top nav),
   shown on mobile so My Invoice / Money Tracker are one tap away — no hamburger. */
.quick-subnav { display: none; }

/* Responsive */
@media (max-width: 940px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .site-header-inner { min-height: 66px; }
  .quick-subnav {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
  }
  .quick-subnav a {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
  }
  .quick-subnav a.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
  }
  .hero-section,
  .auth-layout,
  .checker-stage { grid-template-columns: 1fr; }
  .hero-section { min-height: auto; padding-top: 8px; }
  .hero-preview { order: -1; }
  .phone-card { width: min(310px, 100%); transform: rotate(0deg); }
  .checker-side-card { display: none; }
  .checker-stage { width: min(540px, calc(100% - 20px)); padding-top: 16px; }
  .checker-app-page .site-footer { display: none; }
}
@media (max-width: 720px) {
  .site-main { width: min(100% - 24px, var(--site-max)); padding-top: 26px; }
  .site-footer-inner { flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
  .hero-content h1,
  .auth-copy h1 { font-size: clamp(38px, 13vw, 58px); }
  .tool-grid,
  .workspace-grid,
  .feature-grid,
  .roadmap-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 20px; }
  .dashboard-hero,
  .maker-hero { flex-direction: column; align-items: flex-start; }
  .auth-copy { display: none; }
  .auth-layout { min-height: auto; }
  .hero-actions .btn { width: 100%; }
  .checker-stage { width: 100%; padding: 0; }
  .checker-shell,
  .checker-app-page .app-shell {
    max-width: none;
    min-height: calc(100dvh - 66px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .checker-global-header .brand-copy small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   BillMove UX patch v24 — mobile review table + Warranty Drive
   ============================================================ */
.brand-mark { border-radius: 13px; background: #fff; }
.brand-mark img { object-fit: contain; padding: 0; }
.checker-global-header .brand-mark { width: 46px; height: 46px; }

.bill-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(37,99,235,.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.92));
}
.bill-tools b { display: block; font-size: 14px; letter-spacing: -.01em; }
.bill-tools small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.bill-tools-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.warranty-save-btn { width: auto; min-height: 40px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; border: 0; }
.warranty-save-btn.saved { background: linear-gradient(135deg, #16a34a, #047857); }

.tablewrap { overflow: visible; }
table.bt { min-width: 0; table-layout: fixed; }
table.bt th:nth-child(1), table.bt td.num { width: 34px; }
table.bt th:nth-child(2), table.bt td.pname { width: auto; }
table.bt th:nth-child(3), table.bt td.qtycol { width: 54px; }
table.bt th:nth-child(4), table.bt td.unitcol { width: 74px; }
table.bt th:nth-child(5), table.bt td.totalcol { width: 82px; }
.product-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.product-actions .okbtn { margin: 0; }
.mobile-money { display: none; }

.warranty-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
}
.warranty-hero h2 { margin: 8px 0 4px; font-size: 24px; letter-spacing: -.04em; }
.warranty-hero p { margin: 0; color: var(--ink-2); }
.warranty-list { display: grid; gap: 12px; }
.warranty-doc { display: grid; gap: 12px; }
.warranty-doc-main { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.warranty-file-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-tint); font-size: 22px; }
.warranty-doc-main b { display: block; word-break: break-word; }
.warranty-doc-main small, .warranty-date { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.warranty-date { color: var(--ok); font-weight: 800; }
.warranty-doc-main p { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; }
.warranty-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; margin: 0 auto 10px; background: var(--brand-tint); font-size: 28px; }

@media (max-width: 560px) {
  .checker-global-header .brand-mark { width: 42px; height: 42px; }
  .site-brand { gap: 8px; }
  .brand-copy strong { font-size: 18px; }
  .screen { padding: 14px 12px calc(26px + env(safe-area-inset-bottom)); }
  .card { padding: 14px; border-radius: 18px; }
  .btn-row { gap: 8px; flex-wrap: wrap; }
  .btn-row .btn { min-width: calc(50% - 4px); flex: 1; }

  .bill-tools { align-items: stretch; flex-direction: column; padding: 12px; }
  .bill-tools-actions { justify-content: stretch; }
  .bill-tools-actions .btn { flex: 1; min-width: 0; padding-inline: 10px; }

  .tablewrap { border: 0; background: transparent; border-radius: 0; }
  table.bt, table.bt tbody, table.bt tr, table.bt td { display: block; width: 100%; }
  table.bt thead { display: none; }
  table.bt tr {
    margin-bottom: 10px;
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 18px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 22px rgba(15,23,42,.06);
    overflow: hidden;
  }
  table.bt td { border-bottom: 0; padding: 0; }
  table.bt td.num, table.bt td.qtycol, table.bt td.unitcol, table.bt td.totalcol { display: none; }
  table.bt td.pname { padding: 12px; min-width: 0; }
  table.bt td.pname span { display: block; font-size: 14px; line-height: 1.3; padding-right: 0; }
  .product-actions { margin-top: 10px; }
  .okbtn { width: 36px; height: 34px; border-radius: 11px; }
  .mobile-money {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(148,163,184,.45);
  }
  .mobile-money small { background: #f8fafc; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--ink-2); }
  .mobile-money b { margin-left: auto; font-size: 15px; }
  table.bt tr.editrow { margin-top: -8px; border-top: 0; border-radius: 0 0 18px 18px; }
  table.bt tr.editrow td { padding: 12px; }

  .tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tabbar a { font-size: 10.5px; padding: 6px 2px; }
  .tabbar a .ic { font-size: 18px; }
  .app-shell.tabbar-on .screen { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

  .warranty-hero { grid-template-columns: 1fr; }
  .warranty-hero .btn { width: 100%; }
  .warranty-actions-top .btn { min-width: calc(50% - 4px); }
  .warranty-doc-actions .btn { flex: 1; }
}
.tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ============================================================
   BillMove UX patch v25 — cleaner app header + persistent edits
   ============================================================ */
.logo-only-brand { gap: 0; }
.logo-only-brand .brand-copy { display: none !important; }
.logo-only-brand .brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.logo-only-brand .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.checker-global-header .site-header-inner { min-height: 78px; }
.checker-global-header .brand-mark { width: 58px; height: 58px; }
.checker-topbar .mini-logout { display: none !important; }
.checker-footer .footer-bottom a[href="/logout"] { display: none; }
.scan-intro-card {
  padding: 18px;
  background: linear-gradient(135deg, rgba(239,246,255,.96), rgba(255,255,255,.96));
}
.scan-intro-card h2 {
  margin: 10px 0 6px;
  font-size: 24px;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.scan-intro-card p { margin: 0; font-size: 13.5px; }
.bill-total-box { text-align: right; display: grid; justify-items: end; gap: 1px; }
.bill-total-box [data-bill-total] { font-size: 19px; letter-spacing: -.025em; }
.bill-total-box .linkbtn { padding: 0; font-size: 11.5px; }
.editrow .btn[data-save-edit] { width: 100%; margin-top: 2px; }
.editrow .input { min-height: 46px; }
@media (max-width: 720px) {
  .checker-global-header .site-header-inner { min-height: 62px; }
  .checker-global-header .brand-mark,
  .logo-only-brand .brand-mark { width: 52px; height: 52px; border-radius: 14px; }
  .site-nav .nav-user { max-width: 120px; }
}
@media (max-width: 560px) {
  .checker-global-header .brand-mark,
  .logo-only-brand .brand-mark { width: 48px; height: 48px; }
  .scan-intro-card { padding: 14px; }
  .scan-intro-card h2 { font-size: 21px; }
  .bill-total-box [data-bill-total] { font-size: 17px; }
  .bill-total-box .linkbtn { font-size: 11px; }
  .product-actions { display: flex; width: 100%; }
  .product-actions .okbtn { flex: 0 0 auto; }
}

/* ============================================================
   BillMove SEO landing pages — v26
   ============================================================ */
.seo-home-page .site-main,
.seo-product-page .site-main,
.maker-page .site-main{overflow:hidden}
.seo-hero{max-width:1180px;margin:0 auto;padding:72px 22px 44px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:34px;align-items:center}
.product-landing-hero{padding-top:58px}
.seo-hero-copy h1{font-size:clamp(2.35rem,5vw,5.15rem);line-height:.95;letter-spacing:-.065em;margin:16px 0 18px;color:#0f172a;max-width:860px}
.product-landing-hero .seo-hero-copy h1{font-size:clamp(2.1rem,4.25vw,4.35rem)}
.seo-hero-copy .hero-text{font-size:clamp(1.02rem,1.8vw,1.25rem);line-height:1.75;color:#475569;max-width:760px}
.seo-product-card{position:relative;border:1px solid rgba(148,163,184,.28);background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(248,250,252,.88));border-radius:34px;padding:26px;box-shadow:0 30px 90px rgba(15,23,42,.12);min-height:390px;display:grid;align-content:center;gap:16px;overflow:hidden}
.seo-product-card:before{content:"";position:absolute;inset:-90px -50px auto auto;width:240px;height:240px;border-radius:999px;background:rgba(37,99,235,.16);filter:blur(24px)}
.seo-card-logo{width:76px;height:76px;object-fit:contain;border-radius:18px;background:#fff;box-shadow:0 14px 36px rgba(37,99,235,.14);position:relative;z-index:1}
.invoice-mini,.bill-mini{position:relative;z-index:1;border:1px solid rgba(148,163,184,.24);background:#fff;border-radius:24px;padding:18px;box-shadow:0 16px 42px rgba(15,23,42,.08)}
.invoice-mini.large{padding:24px}.invoice-mini div{display:flex;justify-content:space-between;gap:14px;align-items:center}.invoice-mini span,.bill-mini span{color:#64748b;font-weight:750}.invoice-mini p{margin:12px 0;color:#475569}.invoice-mini b{font-size:2rem;color:#0f172a}.bill-mini{display:flex;justify-content:space-between;gap:14px;align-items:center}.bill-mini b{color:#0f172a}.bill-mini.good{background:#ecfdf5;border-color:#bbf7d0}.bill-mini.good b{color:#047857}
.seo-two-tools,.seo-section,.faq-section{max-width:1180px;margin:0 auto;padding:36px 22px}.seo-two-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.seo-two-tools.seo-tri-tools{grid-template-columns:repeat(3,minmax(0,1fr))}.seo-two-tools.compact-tools{grid-template-columns:repeat(4,minmax(0,1fr))}.seo-tool-panel{border:1px solid rgba(148,163,184,.24);border-radius:28px;background:rgba(255,255,255,.82);box-shadow:0 18px 50px rgba(15,23,42,.07);padding:26px}.seo-tool-panel h2{margin:14px 0 10px;font-size:1.6rem;letter-spacing:-.03em;color:#0f172a}.seo-tool-panel p{color:#475569;line-height:1.7}.seo-check-list{display:grid;gap:10px;margin:18px 0 0;padding:0;list-style:none}.seo-check-list li{position:relative;padding-left:30px;color:#334155;font-weight:750}.seo-check-list li:before{content:"✓";position:absolute;left:0;top:-1px;width:20px;height:20px;border-radius:999px;background:#dcfce7;color:#047857;display:grid;place-items:center;font-size:.8rem;font-weight:900}.seo-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.faq-list{display:grid;gap:14px}.faq-list details{border:1px solid rgba(148,163,184,.28);background:rgba(255,255,255,.86);border-radius:22px;padding:0 18px;box-shadow:0 12px 34px rgba(15,23,42,.055)}.faq-list summary{cursor:pointer;font-weight:900;color:#0f172a;padding:18px 4px;list-style:none}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:"+";float:right;color:#2563eb}.faq-list details[open] summary:after{content:"–"}.faq-list p{margin:0 0 18px;color:#475569;line-height:1.7}.checker-preview-card{gap:12px}.app-preview-top{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;border-radius:20px;padding:18px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff}.app-preview-top b{font-size:2rem}.review-row{position:relative;z-index:1;display:grid;grid-template-columns:1fr 70px 100px;gap:10px;align-items:center;background:#fff;border:1px solid rgba(148,163,184,.22);border-radius:16px;padding:14px;color:#334155}.review-row strong{color:#0f172a}.review-action-row{position:relative;z-index:1;display:flex;gap:10px;flex-wrap:wrap}.review-action-row button{border:0;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-weight:900;padding:9px 14px}.maker-public-hero .seo-product-card{background:linear-gradient(180deg,#fff,#f8fafc)}
@media (max-width:980px){.seo-hero{grid-template-columns:1fr;padding-top:44px}.seo-product-card{min-height:0}.seo-two-tools,.seo-two-tools.seo-tri-tools,.seo-two-tools.compact-tools,.seo-feature-grid{grid-template-columns:1fr 1fr}.seo-hero-copy h1{font-size:clamp(2rem,9vw,3.4rem)}}
@media (max-width:640px){.seo-hero,.seo-two-tools,.seo-section,.faq-section{padding-left:16px;padding-right:16px}.seo-hero{padding-top:30px;gap:22px}.seo-two-tools,.seo-two-tools.seo-tri-tools,.seo-two-tools.compact-tools,.seo-feature-grid{grid-template-columns:1fr}.seo-product-card{border-radius:24px;padding:18px}.seo-hero-copy h1{letter-spacing:-.045em}.hero-actions{display:grid;grid-template-columns:1fr;gap:10px}.hero-points{gap:8px}.hero-points span{font-size:.84rem}.review-row{grid-template-columns:1fr;gap:6px}.app-preview-top b{font-size:1.4rem}.seo-tool-panel{border-radius:22px;padding:20px}.faq-list details{border-radius:18px}}

/* v27 checker cleanup: history now stores bills, not claim/dispute status */
.hist .hist-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-shrink:0;
}
.hist .hist-actions .back{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
}
@media (max-width: 560px){
  .hist{
    align-items:flex-start;
    gap:10px;
    padding:13px;
  }
  .hist .v b{
    font-size:14.5px;
    line-height:1.25;
  }
  .hist .hist-actions{
    margin-left:auto;
  }
  .bill-total-box .linkbtn#editBillTotal{display:none!important;}
}

/* v28 focused checker cleanup */
.claimbar .btn.is-saved,
.claimbar .btn:disabled.is-saved {
  background: #e8f7ee !important;
  color: #087443 !important;
  border-color: #bbf7d0 !important;
  box-shadow: none !important;
  cursor: default;
}
.tabbar a[data-tab="cart"],
.tabbar a[data-tab="prices"] { display:none !important; }
@media (min-width: 900px) {
  .checker-side-card p { max-width: 420px; }
}

/* v30: business checker footer + total calculation feedback */
.tabbar { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.tabbar a[data-nav-home] { text-decoration: none; }
.bill-head-simple { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.calc-ok { background:#ecfdf5 !important; border-color:#bbf7d0 !important; color:#065f46 !important; font-size:12.5px; }
.calc-warn { background:#fff7ed !important; border-color:#fed7aa !important; color:#9a3412 !important; font-size:12.5px; }
.calc-warn small { color:#7c2d12; font-weight:700; }
@media (max-width: 560px) {
  .tabbar { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .tabbar a { font-size: 10.5px; }
  .tabbar a .ic { font-size: 18px; }
}

/* v34: PDF invoice upload preview */
.thumb.pdf-thumb{
  min-height:120px;
  padding:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.thumb.pdf-thumb .pdf-icon{font-size:34px;line-height:1}
.thumb.pdf-thumb strong{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--ink)}
.thumb.pdf-thumb small{color:var(--ink-3);font-weight:700}

/* ============================================================
   BillMove rebrand v38 — solid white header, wide logo, ™ mark
   ============================================================ */
.site-header {
  background: #ffffff;
  backdrop-filter: none;
}
/* Show the logo as a wide image on white — no framed icon box */
.logo-only-brand { gap: 3px; align-items: center; }
.logo-only-brand .brand-mark,
.checker-global-header .brand-mark {
  width: auto;
  height: 46px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  padding: 0;
}
.logo-only-brand .brand-mark img,
.checker-global-header .brand-mark img {
  width: auto;
  height: 100%;
  object-fit: contain;
  padding: 0;
}
@media (max-width: 720px) {
  .logo-only-brand .brand-mark,
  .checker-global-header .brand-mark { width: auto; height: 42px; }
}
@media (max-width: 560px) {
  .logo-only-brand .brand-mark,
  .checker-global-header .brand-mark { width: auto; height: 38px; }
}

/* Pro Header Action Buttons with Big Icons & Best-Practice Typography */
.site-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  max-width: 1180px !important;
  width: calc(100% - 24px) !important;
  margin: 0 auto !important;
  min-height: 64px !important;
}
.site-brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 50% !important;
  overflow: hidden !important;
}
.site-brand .brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  height: 42px !important;
  max-width: 100% !important;
}
.site-brand .brand-mark img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
.site-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

.header-action-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 900 !important;
  font-size: 13.5px !important;
  letter-spacing: -0.1px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}
.header-action-btn svg {
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
  stroke-width: 2.2px !important;
}

/* Account Button */
.account-btn {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
/* Active section marker. Colour only - identical padding, font size and
   radius to the inactive state, so the row never shifts. */
.header-action-btn.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #2563eb !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.32) !important;
}
.header-action-btn.is-active:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}
.header-action-btn.is-active svg {
  color: #ffffff !important;
  stroke: currentColor !important;
}

.account-btn:hover {
  background: #e2e8f0 !important;
  color: #0284c7 !important;
  border-color: #94a3b8 !important;
}

/* Logout Button */
.logout-btn {
  background: linear-gradient(135deg, #0f172a, #334155) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 2px 6px rgba(15,23,42,0.18) !important;
}
.logout-btn:hover {
  background: linear-gradient(135deg, #1e293b, #475569) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Login Button */
.login-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: -0.2px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.38) !important;
}
.login-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(37,99,235,0.48) !important;
}

/* Mobile Responsiveness - Guarantee Zero Overlap */
@media (max-width: 640px) {
  .site-header-inner {
    width: calc(100% - 16px) !important;
    min-height: 56px !important;
    gap: 6px !important;
  }
  .site-brand {
    max-width: 45% !important;
  }
  .site-brand .brand-mark img {
    height: 32px !important;
    max-height: 32px !important;
  }
  .header-action-btn {
    padding: 5px 9px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }
  .header-action-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}

@media (max-width: 380px) {
  .site-brand {
    max-width: 40% !important;
  }
  .site-brand .brand-mark img {
    height: 28px !important;
    max-height: 28px !important;
  }
  .site-nav {
    gap: 4px !important;
  }
  .header-action-btn {
    padding: 5px 7px !important;
    font-size: 11px !important;
  }
  .header-action-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ============================================================
   Header overlap fix — small-screen guarantee
   The legacy v24 / v25 / v38 header patches above disagree with
   each other on the logo's rendered width (fixed square box vs.
   auto-width wordmark), which makes it unpredictable across
   devices/fonts. Meanwhile the two nav buttons (MyAccount, Logout)
   are locked to nowrap + flex-shrink:0 with no flex-wrap anywhere
   in the header row — so when the logo + both full-text buttons
   don't all fit, they overflow into each other instead of
   wrapping or shrinking.
   Fix: collapse the buttons to icon-only below 480px. This removes
   the variable-width text as a factor entirely, so the row always
   fits regardless of how the logo-sizing cascade above resolves.
   Labels stay available to screen readers via the existing
   title/aria-label attributes on each <a>.
   ============================================================ */
@media (max-width: 480px) {
  .site-header-inner {
    flex-wrap: nowrap !important;
  }
  .site-brand {
    min-width: 0 !important;
    max-width: 55% !important;
  }
  .site-brand .brand-mark img {
    max-width: 100% !important;
    width: auto !important;
    height: 26px !important;
    max-height: 26px !important;
  }
  .site-nav {
    flex-shrink: 0 !important;
    gap: 4px !important;
  }
  .header-action-btn {
    padding: 4px 6px !important;
    font-size: 11.5px !important;
  }
  .header-action-btn:not(.logout-btn):not(.login-btn) svg {
    display: none !important;
  }
  .header-action-btn.logout-btn span {
    display: none !important;
  }
  .header-action-btn.logout-btn svg {
    display: block !important;
    margin: 0 !important;
  }
}
