/* Tea Break: shared styles for the order form, the order page and the admin.
   Brand: navy and white from the Tea Break badge, gold hairlines from the logo, a high-contrast serif for
   headlines, and a soft display serif for flavour names (like the lettering on the boxes).
   Change the colours in the tokens below. */
:root {
  color-scheme: light;
  --bg: #FDFCFA;
  --surface: #FFFFFF;
  --surface-2: #EEF0F6;
  --ink: #0E1B4D;
  --ink-2: #4F587C;
  --line: #DCDFEA;
  --band: #0E1B4D;
  --band-ink: #FFFFFF;
  --gold: #C4A062;
  --cta: #0E1B4D;
  --cta-ink: #FFFFFF;
  --accent: #2B58B0;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3EAF8;
  --ok: #17703F;   --ok-soft: #DCF0E4;
  --warn: #8F5600; --warn-soft: #FAEACB;
  --bad: #A8261E;  --bad-soft: #F8DDDA;
  --f-display: 'Playfair Display', Georgia, serif;
  --f-flavor: 'Fraunces', 'Playfair Display', Georgia, serif;
  --f-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.45;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.12; font-weight: 700; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

.band { background: var(--band); color: var(--band-ink); padding-top: env(safe-area-inset-top, 0px); }
.band .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 14px; flex-wrap: wrap; }
.mark { font-family: var(--f-display); font-weight: 700; font-size: 24px; }
.band.light { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--gold); }
.band.light .wrap { align-items: center; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 60px; width: auto; border-radius: 6px; }
.foot { margin-top: 28px; border-top: 1px solid var(--gold); padding-block: 22px; text-align: center; }
.foot .wrap { display: grid; justify-items: center; gap: 10px; }
.foot img { height: 56px; width: auto; background: #fff; border-radius: 8px; padding: 4px 10px; }
.by { font-size: 13px; opacity: .72; }
.wrap { max-width: 560px; margin-inline: auto; padding-inline: 16px; }
.wrap.wide { max-width: 1040px; }

.page-head { padding-block: 22px 14px; display: grid; gap: 6px; }
.lead { color: var(--ink-2); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.card > h2 { margin-bottom: 12px; }
.stack { display: grid; gap: 12px; }
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }

label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); min-width: 0; }
input, select, textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; width: 100%; min-width: 0; font-size: 16px;
}
textarea { resize: vertical; min-height: 78px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .step button:focus-visible,
.tab:focus-visible, .chip:focus-visible, .row:focus-visible, .linkish:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.field-bad input, .field-bad select, .field-bad textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: 13px; }
.err:empty { display: none; }
input[type="checkbox"], input[type="radio"] { width: auto; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 11px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; min-height: 46px;
}
.btn:hover { background: var(--surface-2); }
.btn.block { display: flex; width: 100%; }
.btn.cta { letter-spacing: .01em; background: var(--cta); border-color: var(--cta); color: var(--cta-ink); min-height: 52px; font-size: 17px; }
.btn.cta:hover { filter: brightness(1.05); background: var(--cta); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkish { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; cursor: pointer; color: var(--ink); }

.note { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.ok { background: var(--ok-soft); color: var(--ok); }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.pending_payment, .pill.expired { background: var(--surface-2); color: var(--ink-2); }
.pill.paid { background: var(--accent-soft); color: var(--accent); }
.pill.booked { background: var(--warn-soft); color: var(--warn); }
.pill.delivered { background: var(--ok-soft); color: var(--ok); }
.pill.cancelled, .pill.needs_attention { background: var(--bad-soft); color: var(--bad); }

/* ---------- order form */
.flavor { --fc: #888; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: var(--surface); }
.flavor:last-child { margin-bottom: 0; }
.flavor-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 3px solid var(--fc); }
.flavor-h .pic { height: 74px; width: auto; max-width: 64px; object-fit: contain; flex: none; border-radius: 4px; }
.flavor-h .who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.flavor-h h3 { font-family: var(--f-flavor); font-weight: 800; font-size: 26px; line-height: 1; }
.tagline { font-size: 13px; color: var(--ink-2); }
.cthumb { width: 72px; height: auto; border-radius: 4px; margin-bottom: 6px; display: block; background: #fff; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); }
.tag.out { background: var(--bad-soft); color: var(--bad); }
.size { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.size .pick { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.size select { width: auto; max-width: 100%; font-weight: 600; padding: 9px 10px; }
.size .rm { font-size: 13px; color: var(--bad); font-weight: 500; }
.addrow { padding: 10px 14px; border-top: 1px solid var(--line); }
.addrow .linkish { color: var(--accent); }
.size .sub { font-size: 13px; color: var(--ink-2); }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.step button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 12px; }
.step button:hover:not([disabled]) { background: var(--surface-2); }
.step button[disabled] { opacity: .3; cursor: not-allowed; }
.step span { min-width: 30px; text-align: center; font-family: var(--f-mono); font-size: 17px; }
.size.on { background: var(--accent-soft); }

.sum { display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .tot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; font-size: 20px; font-weight: 700; }
.fine { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 12px; }

/* ---------- order page */
.pay-box { display: grid; gap: 14px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.pay-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-row .v { font-family: var(--f-mono); font-size: 22px; font-weight: 500; overflow-wrap: anywhere; }
.pay-row .k { font-size: 13px; color: var(--ink-2); display: block; }
.timer { font-family: var(--f-mono); font-weight: 600; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.big-ok { display: grid; gap: 6px; }
.rider { display: grid; gap: 10px; }
.rider .who { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.lines { display: grid; gap: 6px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- admin */
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; color: var(--band-ink); opacity: .75; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--band-ink); color: var(--band); opacity: 1; }
.admin-main { padding-block: 20px; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.strip div { background: var(--surface); padding: 12px 14px; }
.strip span { display: block; font-size: 12px; color: var(--ink-2); }
.strip b { font-family: var(--f-mono); font-weight: 500; font-size: 20px; }
.strip .alert b { color: var(--warn); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 13px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.row:hover { border-color: var(--ink-2); }
.row .l { min-width: 0; }
.row .l b { display: block; }
.row .l span { display: block; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r { display: grid; justify-items: end; gap: 4px; }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 28px 18px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 17px; margin-bottom: 4px; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-family: var(--f-mono); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-bottom: 16px; }
.stock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; border-left: 8px solid var(--fc, #888); padding: 14px; display: grid; gap: 4px; }
.stock-card .big { font-family: var(--f-mono); font-size: 30px; line-height: 1.1; }
.stock-card.low { background: var(--warn-soft); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }

#scrim { position: fixed; inset: 0; background: rgba(6, 11, 34, .6); z-index: 20; }
#sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--bg); z-index: 21; display: flex; flex-direction: column; border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(0, 0, 0, .2); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; border-bottom: 1px solid var(--line); }
#sheet-body { overflow-y: auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; align-content: start; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.copyrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: end; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.q-row { display: grid; grid-template-columns: minmax(104px, auto) minmax(0, 1fr) 88px; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.q-row.cheap { border-color: var(--ok); background: var(--ok-soft); }
.q-row .pick { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.q-row .cheap-tag { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--ok); }
.kv { display: grid; gap: 6px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv .tot { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.zone { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.login { max-width: 380px; margin: 12vh auto 0; }

#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-size: 14px; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .15s; max-width: calc(100% - 32px); text-align: center; }
#toast.on { opacity: 1; }

@media (max-width: 520px) {
  h1 { font-size: 26px; }
  .q-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .q-row .pick { grid-column: 1 / -1; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .r { justify-items: start; grid-auto-flow: column; justify-content: space-between; }
}
@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fadein .25s ease-out; }
  @keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* size dropdown must show the whole "Half pack · ₦3,000" label on a small phone */
.size { gap: 4px 8px; }
.size select { width: 100%; font-size: 15px; padding: 9px 6px 9px 8px; }
.size .pick { justify-items: stretch; }
.size .step button { width: 38px; }
.size .step span { min-width: 24px; }

/* ======================================================================
   Customer pages: minimal and airy. Everything below is scoped to body.clean,
   so the admin keeps its denser layout.
   ====================================================================== */
.clean { --bg: #FDFCFA; --line: #ECEDF3; --ink-2: #6B7392; }
.clean .wrap { max-width: 480px; padding-inline: 24px; }
.clean .band.light { border-bottom: 1px solid var(--line); }
.clean .band .wrap { padding-block: 18px; justify-content: flex-start; }
.clean .brand img { height: 40px; }
.clean .page-head { padding-block: 44px 28px; gap: 10px; }
.clean h1 { font-size: 34px; font-weight: 600; line-height: 1.1; }
.clean .lead { font-size: 16px; color: var(--ink-2); }
.clean h2 { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.clean main > form > section, .clean main > section, .clean main > .summary { margin-bottom: 44px; }
.clean .summary { margin-top: 36px; }
.clean .summary h2 { margin-bottom: 14px; }

/* flavour cards */
.clean .flavor { border: 1px solid var(--line); border-radius: 20px; margin-bottom: 18px; padding: 22px 20px 14px; background: var(--surface); }
.clean .flavor-h { border: 0; padding: 0; gap: 18px; align-items: center; }
.clean .flavor-h .pic { height: 96px; max-width: 84px; border-radius: 6px; }
.clean .flavor-h h3 { font-size: 30px; }
.clean .tagline { font-size: 14px; }
.clean .tag { align-self: flex-start; }
.clean .size { border: 0; padding: 18px 0 0; gap: 8px 14px; background: transparent; }
.clean .size.on { background: transparent; }
.clean .size .sub { font-size: 13px; }
.clean .addrow { border: 0; padding: 12px 0 8px; }
.clean .addrow .linkish { font-size: 14px; font-weight: 500; }
.clean .size select { border-radius: 12px; background: var(--bg); }
.clean .step { border-radius: 12px; background: transparent; }

/* form */
.clean .stack { gap: 20px; }
.clean label.f { font-size: 13px; gap: 8px; }
.clean input, .clean select, .clean textarea { background: var(--surface); border-radius: 12px; padding: 14px; border-color: var(--line); }
.clean textarea { min-height: 84px; }
.clean .note { background: transparent; padding: 0; font-size: 14px; }
.clean .sum { gap: 12px; }
.clean .sum .tot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; font-size: 20px; }
.clean .btn { border-radius: 14px; }
.clean .btn.cta { min-height: 56px; font-weight: 600; }
.clean .fine { margin-top: 16px; font-size: 13px; }

/* payment and status pages */
.clean .pay-box { gap: 0; margin-bottom: 28px; }
.clean .pay-row { padding-block: 18px; border-bottom: 1px solid var(--line); }
.clean .pay-row:first-child { border-top: 1px solid var(--line); }
.clean .pay-row:last-child { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.clean .pay-row .v { font-size: 24px; }
.clean .pay-row .v2 { font-size: 18px; font-weight: 600; display: block; }
.clean .pay-row .k { margin-bottom: 4px; }
.clean .fineprint { margin-top: 28px; line-height: 1.6; }
.clean .lines { gap: 10px; font-size: 15px; }
.clean .chat { margin-top: 12px; }
.clean .tick { width: 44px; height: 44px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 22px; margin-bottom: 10px; }

/* loading sign */
.spin { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.waiting { display: flex; align-items: center; gap: 16px; padding: 18px 0 22px; }
.waiting b { display: block; font-weight: 600; }
.waiting span { color: var(--ink-2); font-size: 14px; }
.waiting.on { background: var(--accent-soft); border-radius: 16px; padding: 18px; margin-bottom: 22px; }

/* flavour accent: a short bar under the name, and a soft tint on the card border while you are choosing */
.clean .flavor-h h3::after { content: ''; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--fc); margin: 9px 0 7px; }
.clean .flavor { transition: border-color .15s; }
.clean .flavor:focus-within { border-color: color-mix(in srgb, var(--fc) 50%, var(--line)); }

/* order page spacing between the cards and the buttons around them */
main > .waiting { margin-bottom: 4px; }
main > .btn.block, main > .stack { margin-bottom: 14px; }
.fineprint { margin: 14px 0; line-height: 1.6; }

/* "Your tea": no outer box, each flavour card floats on the page */
.plain { margin-bottom: 14px; }
.plain > h2 { margin: 6px 2px 12px; }

/* "by Vantage" in the header, top right */
.by { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.by b { color: var(--ink); font-weight: 600; }

/* saved details and the small location map */
.welcome { margin: 0; font-size: 14px; color: var(--ink-2); }
.welcome b { color: var(--ink); font-weight: 600; }
.pinbox { display: grid; gap: 8px; }
.pin-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pin-state { margin: 0; font-size: 13px; color: var(--ink-2); }
.pin-state.ok { color: var(--ok); }
.pin-state .linkish { font-size: 13px; color: var(--accent); }
.map { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.map-search { display: flex; gap: 8px; padding: 8px; }
.map-search input { flex: 1; min-width: 0; padding: 9px 10px; font-size: 14px; }
.map-view { position: relative; height: 200px; overflow: hidden; background: #e9e7e1; touch-action: none; cursor: grab; user-select: none; }
.map-tiles { position: absolute; inset: 0; }
.map-tiles .tile { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -24px 0 0 -10px; background: #C8281F; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); pointer-events: none; }
.map-pin::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.map-ctl { position: absolute; right: 8px; top: 8px; display: grid; gap: 4px; }
.map-ctl button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.map-attr { position: absolute; left: 6px; bottom: 4px; font-size: 10px; padding: 1px 5px; background: rgba(255,255,255,.75); color: #444; border-radius: 4px; pointer-events: none; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; }
.map-foot .small { flex: 1; }

/* admin: the customer's pin */
.pinrow { display: grid; gap: 8px; margin: 4px 0 12px; }

/* discount code */
.promo { margin-top: 14px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.promo-msg { font-size: 14px; margin-top: 6px; min-height: 0; }
.promo-msg:empty { display: none; }
.promo-msg.bad { color: var(--bad); }
.promo-msg.ok { color: var(--ink-2); }
.sum .promo-on { font-size: 14px; color: var(--ink-2); }
.sum .promo-on .linkish { font-size: 14px; font-weight: 500; color: var(--accent); }
.sum s.was { color: var(--ink-2); margin-right: 4px; }
.promo-adm { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.promo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.promo-new { margin-top: 12px; }
.promo-new .btns { margin-top: 12px; }

/* insights */
.rank { display: grid; gap: 12px; }
.rank-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rank-bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.rank-bar i { display: block; height: 100%; border-radius: 99px; }
.chart { width: 100%; height: auto; display: block; margin-top: 6px; }
.chart .ax { font-size: 12px; fill: var(--ink-2); font-family: var(--f-body); }
@media (max-width: 560px) {
  .bar .tabs { order: 3; flex-basis: 100%; padding-block: 0 10px; }
  .bar .mark { margin-right: auto; }
  .tab { padding: 8px 12px; }
}

.sched { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 15px; }
.pill.sch { background: var(--accent-soft); color: var(--accent); }
.nrow { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; margin-bottom: 10px; }
