/* Codec Coffee. Brand tokens are lifted from the original codeccoffee.com
   (Elementor kit, captured 2026-07-09): charcoal ground, cream text,
   burnt-orange actions, cyan accent; Montserrat headings, Lato body. */
:root {
  --ink: #0C0C0C;
  --ground: #191919;
  --panel: #232526;
  --panel-2: #2F3234;
  --line: #3A3D40;
  --cream: #F5F5F2;
  --white: #FDFDFD;
  --muted: #8C8C91;
  --orange: #C45C24;
  --orange-hi: #E56A2A;
  --orange-lo: #BF5C23;
  --cyan: #24C9F1;
  --ok: #4CC38A;
  --warn: #E5B22A;
  --bad: #E5484D;
  /* Console colors (My Account), one job each, all from or tuned from the original palette:
     act = something you can do, hud = information and frames, good / alert / pending = status. */
  --act: #B4511B;
  --act-text: #E56A2A;
  --act-hover: #FF8C42;
  --hud: #24C9F1;
  --hud-dim: #0D98BA;
  --hud-line: #2B3438;
  --good: #4CC38A;
  --alert: #FF5C6A;
  --pending: #D3B78F;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Lato", system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  /* Short pages: the footer sits at the bottom of the screen, not halfway up. */
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-hi); text-decoration: none; }
a:hover { color: var(--cream); }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: .02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(229, 106, 42, .07), transparent 70%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.eyebrow {
  display: block;
  font: 600 .8rem/1 var(--head);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-hi);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .875rem/1 var(--head);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 4px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--orange-hi); border-color: var(--orange-hi); color: var(--white); }
.btn.ghost { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn.ghost:hover { background: var(--cream); color: var(--ink); }
.btn.light { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.btn.light:hover { background: var(--white); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 25, 25, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.bean { width: 38px; height: auto; }
.brand img.word { width: 132px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font: 600 .8rem/1 var(--head);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-hi); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--cream);
  font: 600 .8rem/1 var(--head);
}
.cart-btn .count {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: .72rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.header-actions .btn { padding: 11px 18px; font-size: .78rem; }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--cream); padding: 9px 11px; cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--ink) url("../img/hero-beans.webp") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,.55) 0%, rgba(12,12,12,.72) 70%, var(--ground) 100%);
}
.hero .wrap { position: relative; }
.hero h1 {
  font-weight: 500;
  letter-spacing: .14em;
  font-size: clamp(2.4rem, 7vw, 5rem);
  margin-bottom: .2em;
}
.hero .tag {
  font: italic 500 clamp(1.05rem, 2.2vw, 1.5rem)/1.4 var(--head);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 32px;
}
.hero .tag strong { color: var(--orange-hi); font-weight: 700; }
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font: 700 .8rem/1 var(--head);
  letter-spacing: .2em;
  color: var(--orange-hi);
  margin-bottom: 12px;
  display: block;
}
.pillar { text-align: center; }
.pillar .icon {
  width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196, 92, 36, .14);
  color: var(--orange-hi);
}

/* Product cards */
.product-card {
  color: var(--cream);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card .photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.product-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .photo img { transform: scale(1.03); }
.product-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { margin: 0; }
.product-card .origin { color: var(--muted); font-size: .9rem; letter-spacing: .04em; }
.product-card .notes { font-size: .95rem; color: var(--cream); }
.product-card:hover { border-color: var(--orange); }
.product-card .price { font: 700 1.05rem/1 var(--head); color: var(--cream); margin-top: auto; padding-top: 8px; }
.product-card .price span { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Price ladder */
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ladder .step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
}
.ladder .step.best { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; }
.ladder .bags { font: 600 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ladder .per { font: 700 1.9rem/1.1 var(--head); margin: 10px 0 4px; }
.ladder .per small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.ladder .total { font-size: .9rem; color: var(--muted); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; max-height: 600px; object-fit: cover; }

/* Testimonials */
.quote { display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote .who strong { display: block; font-family: var(--head); font-size: .9rem; }
.quote .who span { color: var(--muted); font-size: .85rem; }

/* Callout band */
.band {
  background: linear-gradient(135deg, var(--orange-lo), var(--orange));
  border-radius: var(--radius);
  padding: 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.band h2 { margin-bottom: .3em; }
.band p { margin: 0; font-size: 1.1rem; }
.band .btn-row { justify-content: flex-end; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font: 600 .75rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.hl td { background: rgba(196, 92, 36, .12); font-weight: 700; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font: 600 .78rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.inline-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.inline-form input { flex: 1; min-width: 0; }
/* The human check (human.js): empty unless Cloudflare needs a checkbox, then centered. */
.human-check { display: flex; justify-content: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; }

/* FAQ */
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  padding: 18px 0;
  font: 600 1rem/1.4 var(--head);
  list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::after { content: "+"; color: var(--orange-hi); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 0 18px; color: var(--cream); }

/* Prose (legal, blog) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; text-transform: none; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.notice {
  border-left: 3px solid var(--warn);
  background: rgba(229, 178, 42, .08);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: .95rem;
}

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product .photo img { border-radius: var(--radius); width: 100%; }
.product .origin { color: var(--orange-hi); font: 600 .9rem/1.4 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; width: max-content; }
.qty button { background: none; border: 0; color: var(--cream); width: 44px; height: 46px; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 56px; text-align: center; border: 0; background: transparent; padding: 0; height: 46px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 20px 0 10px; flex-wrap: wrap; }
.bean-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; }
.bean-card h3 { font-size: .95rem; margin-bottom: .4em; color: var(--orange-hi); }
.bean-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: .92rem; }
.bean-card dt { color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; padding-top: 3px; }
.bean-card dd { margin: 0; }

/* Cart drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--ground);
  border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .25s, visibility 0s linear .25s;
  visibility: hidden; /* closed: Tab can't reach its buttons; hides after the slide-out */
  z-index: 100;
  display: flex; flex-direction: column;
}
body.cart-open .drawer { transform: none; visibility: visible; transition: transform .25s, visibility 0s; }
body.cart-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer header h3 { margin: 0; }
.drawer .close { background: none; border: 0; color: var(--cream); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.drawer .items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer .line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer .line img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.drawer .line .name { font: 600 .9rem/1.3 var(--head); text-transform: uppercase; }
.drawer .line .qty { margin-top: 6px; }
.drawer .line .qty button { width: 32px; height: 32px; }
.drawer .line .qty input { width: 36px; height: 32px; }
.drawer .remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; }
.drawer footer { padding: 20px 22px; border-top: 1px solid var(--line); }
.drawer .sum { display: flex; justify-content: space-between; margin-bottom: 6px; }
.drawer .sum.total { font: 700 1.1rem/1.4 var(--head); margin-top: 8px; }
.drawer .hint { font-size: .88rem; color: var(--cyan); margin: 10px 0 14px; }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .16em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--cream); font-size: .95rem; }
.site-footer li a:hover { color: var(--orange-hi); }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.site-footer .legal a { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .split, .product { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .band { grid-template-columns: 1fr; padding: 36px 28px; }
  .band .btn-row { justify-content: flex-start; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); }
  .header-actions .join { display: none; }
  .brand img.word { width: 110px; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .grid.two, .grid.four { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder .step:last-child { grid-column: span 2; }
  .inline-form { flex-direction: column; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .brand img.word { display: none; }
  .hero { min-height: min(70vh, 620px); }
}

/* Grid children may not grow past their track (stops wide images overflowing on phones). */
.grid > *, .split > *, .product > *, .band > * { min-width: 0; }
@media (max-width: 820px) {
  .header-actions { margin-left: auto; }
}

/* Tier names on the price ladder (from the original Coffee Club) */
.ladder .tier-name { font: 700 .82rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--orange-hi); margin-top: 6px; }

/* Shop: one full row per roast */
.roast { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.roast:first-of-type { border-top: 0; }
.roast.flip { grid-template-columns: 1fr 420px; }
.roast.flip .photo { order: 2; }
.roast .photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.roast .origin { color: var(--orange-hi); font: 600 .85rem/1.4 var(--head); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.roast h2 { margin-bottom: .4em; }
.lede { font-size: 1.2rem; line-height: 1.55; }
details.beans { margin-top: 26px; }
details.beans > div { padding-top: 4px; }

/* Rewards and affiliate: worked examples, people chain */

.example {
  background: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  padding: 20px 24px;
  margin-top: 18px;
}
.example .tag { font: 700 .72rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: 10px; }
.example p:last-child { margin-bottom: 0; }
.example .math { font-variant-numeric: tabular-nums; color: var(--cream); font-weight: 700; }

.way { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.way:first-of-type { border-top: 0; padding-top: 0; }
.way > div:first-child .num { font: 700 3.2rem/1 var(--head); color: var(--orange); }
.way h3 { font-size: 1.4rem; margin-top: 10px; }
.way .who { color: var(--muted); font-size: .95rem; }

.chain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.chain .person { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 600 .85rem/1.2 var(--head); }
.chain .person.you { border-color: var(--orange); color: var(--orange-hi); }
.chain .arrow { color: var(--muted); }

@media (max-width: 960px) {
  .roast, .roast.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; } /* minmax: the column never grows past the screen */
  .roast.flip .photo { order: 0; }
  .roast .photo { max-width: 420px; }
  .way { grid-template-columns: 1fr; gap: 12px; }
}

/* Affiliate program: its own sub-menu so it reads as a section of its own. */
.subnav { position: sticky; top: 73px; z-index: 40; background: var(--ink); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 22px; min-height: 48px; overflow-x: auto; white-space: nowrap; }
.subnav-title { font: 700 .78rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--orange-hi); margin-right: auto; }
.subnav a { color: var(--muted); font: 600 .85rem/1 var(--head); }
.subnav a:hover { color: var(--cream); }
.aside-band { padding: 36px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .subnav-title { display: none; } .subnav .wrap { gap: 14px; } .subnav a { font-size: .8rem; } }
.subnav ~ section[id] { scroll-margin-top: 130px; }

/* Visual pieces for Rewards and Affiliate: photo heroes, icon steps, the example picture, the network diagram. */
.hero-split { text-align: left; padding: 56px 0 64px; }
.hero-split .split { align-items: center; }
.hero-split p { margin: 0; max-width: 520px; }
.hero-split img { aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.hero-split img.tall { aspect-ratio: 4 / 3; object-position: center 30%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; text-align: center; }
.step-card h3 { margin: 18px 0 8px; }
.step-card p { margin: 0; color: var(--muted); }
.icon-ring { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(229, 106, 42, .12); border: 1px solid rgba(229, 106, 42, .45); color: var(--orange-hi); }
.icon-ring .icon { width: 32px; height: 32px; }
.icon { width: 1em; height: 1em; flex: none; }

.equation { display: grid; grid-template-columns: 1.2fr auto auto 1fr; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 40px 36px; max-width: 1000px; margin: 0 auto; }
.eq-part { text-align: center; }
.eq-label { margin-top: 14px; font-size: 1.05rem; }
.eq-op { font: 700 2.6rem/1 var(--head); color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 220px; margin: 0 auto; color: var(--cream); }
.people .icon { width: 100%; height: auto; aspect-ratio: 1; }
.bags-art { display: flex; justify-content: center; }
.bags-art img { width: 82px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.bags-art img + img { margin-left: -22px; transform: rotate(6deg); }
.eq-result { text-align: center; background: linear-gradient(160deg, var(--orange), var(--orange-lo)); border-radius: 14px; padding: 26px 18px; color: var(--white); }
.eq-big { font: 800 3.6rem/1 var(--head); }
.eq-unit { font: 700 .95rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }
.eq-note { font-size: .92rem; margin-top: 10px; opacity: .92; }
.repeat-line { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px auto 0; font-size: 1.15rem; color: var(--cream); text-align: center; }
.repeat-line .icon { width: 26px; height: 26px; color: var(--cyan); }

.network-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.network { width: 100%; height: auto; display: block; }
.network .n-lines line { stroke: var(--line); stroke-width: 2; }
.network .n-you { fill: var(--orange); }
.network text { fill: var(--white); font: 800 18px var(--head); letter-spacing: .08em; }
.network .n-cust { fill: var(--cream); }
.network .n-friend { fill: var(--cyan); }
.network .n-aff { fill: var(--ground); stroke: var(--orange-hi); stroke-width: 4; }
.network .n-aff-kid { fill: var(--orange-lo); opacity: .75; }
.legend { list-style: none; padding: 0; margin: 20px 0 0; }
.legend li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legend .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 4px; }
.legend .dot.cust { background: var(--cream); }
.legend .dot.friend { background: var(--cyan); }
.legend .dot.aff { background: var(--ground); border: 3px solid var(--orange-hi); }

@media (max-width: 960px) {
  .steps.four { grid-template-columns: repeat(2, 1fr); }
  .equation { grid-template-columns: 1fr; gap: 14px; padding: 30px 22px; }
  .eq-op { font-size: 2rem; }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .hero-split { text-align: center; }
  .hero-split p { margin: 0 auto; }
  .hero-split .btn-row { justify-content: center; }
}
@media (max-width: 520px) { .steps.four { grid-template-columns: 1fr; } }
.art { width: 100%; height: auto; display: block; }
.hero-art { background: radial-gradient(circle at 50% 45%, rgba(229, 106, 42, .16), transparent 65%); }
.eq-part .art { max-width: 240px; margin: 0 auto; }
.eq-op { white-space: nowrap; }
.eq-art .art { max-width: 170px; margin: -6px auto 4px; }
.eq-result { background: linear-gradient(160deg, #2A2C2E, #1E2021); border: 2px solid var(--orange); color: var(--cream); }
.eq-big { color: var(--orange-hi); }
.story { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px 24px; max-width: 1000px; margin: 0 auto; }
.story-captions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; margin-top: 8px; color: var(--muted); font-size: .98rem; }
.story-captions strong { display: block; color: var(--cream); font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.story-captions > div:first-child strong { color: var(--orange-hi); }
@media (max-width: 640px) { .story { padding: 18px 10px; } .story-captions { font-size: .8rem; gap: 6px; } }
.eq-stage { text-align: center; margin-bottom: 14px; }
.eq-tag { display: inline-block; font: 800 .8rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: var(--cyan); padding: 8px 16px; border-radius: 999px; }
.hero-art { width: 100%; max-width: 560px; justify-self: end; }
.eq-part .art { max-width: 210px; }
.eq-art .art { max-width: 130px; }
.eq-big { font-size: 3rem; }

/* Join: who referred you (code or nearby person). */
.ref-pick { border: 0; padding: 0; margin: 6px 0 18px; min-width: 0; }
.ref-pick legend { font: 700 .85rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg-btn { background: none; border: 0; color: var(--muted); font: 700 .82rem/1 var(--head); padding: 11px 8px; border-radius: 999px; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--orange); color: var(--white); }
.zip-row { display: flex; gap: 10px; }
.zip-row input { flex: 1; min-width: 0; }
.near-list { display: grid; gap: 8px; }
.near-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.near-item:has(input:checked) { border-color: var(--orange); }
.near-name { font-weight: 700; color: var(--cream); }
.near-where { color: var(--muted); font-size: .9rem; }
.eq-mult { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.eq-x { font: 800 3.6rem/1 var(--head); color: var(--cream); }
.eq-sub { font: 700 .85rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.eq-big { font-size: 3.8rem; }
@media (max-width: 960px) { .eq-x { font-size: 2.8rem; } .eq-big { font-size: 3.2rem; } }
.eq-op { text-align: center; justify-self: center; }
@media (max-width: 640px) {
  .story-captions { grid-template-columns: 1fr; text-align: left; gap: 0; margin-top: 14px; font-size: .95rem; }
  .story-captions > div { display: flex; gap: 10px; align-items: baseline; padding: 10px 6px; border-top: 1px solid var(--line); }
  .story-captions strong { display: inline; min-width: 58px; margin: 0; }
  .seg-btn { font-size: .74rem; padding: 11px 4px; white-space: nowrap; }
  .repeat-line { font-size: 1.02rem; }
}

/* Partner Roast: one blend, choose the label. */
.grid.two.narrow { max-width: 860px; margin: 0 auto; }
.label-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.label-pick-title { font: 700 .75rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.label-btn { background: var(--ink); border: 1px solid var(--line); color: var(--cream); font: 700 .82rem/1 var(--head); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.label-btn[aria-checked="true"] { border-color: var(--orange); background: rgba(229, 106, 42, .14); color: var(--orange-hi); }
.labels-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* Hex look (matches the hexagon logo and the bag art): one continuous ground, a faint
   orange honeycomb behind everything, soft glows instead of alternating section colors. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23E56A2A' stroke-opacity='0.075' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 40%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 120% 90% at 50% 40%, #000 35%, transparent 100%);
}
.page-hero { background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(229, 106, 42, .12), transparent 70%); }

/* Hexagon icon frames with a glow. */
.icon-ring {
  position: relative; border: 0; border-radius: 0; background: rgba(229, 106, 42, .7);
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  width: 76px; height: 84px;
}
.icon-ring::before {
  content: ""; position: absolute; inset: 2px; background: linear-gradient(160deg, #2E1C12, #191919 70%);
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
.icon-ring .icon { position: relative; }
.step-card .icon-ring, .card .icon-ring { filter: drop-shadow(0 0 14px rgba(229, 106, 42, .35)); }

/* Small hex before every eyebrow label. */
.eyebrow::before {
  content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 9px; vertical-align: -1px;
  background: var(--orange-hi); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 10px var(--orange-hi);
}

/* Cards light up in brand orange. */
.card, .step-card, .equation, .story, .network-wrap { box-shadow: inset 0 1px 0 rgba(229, 106, 42, .18); transition: border-color .25s, box-shadow .25s; }
.card:hover, .step-card:hover { border-color: rgba(229, 106, 42, .55); box-shadow: inset 0 1px 0 rgba(229, 106, 42, .35), 0 0 28px rgba(229, 106, 42, .14); }
.eq-result { box-shadow: 0 0 34px rgba(229, 106, 42, .22); }
.btn { transition: box-shadow .2s, background .2s; }
.btn:not(.ghost):not(.light):hover { box-shadow: 0 0 22px rgba(229, 106, 42, .45); }
.icon-ring svg { position: relative; }
.pillar .icon-ring { margin: 0 auto 18px; filter: drop-shadow(0 0 14px rgba(229, 106, 42, .35)); }

/* Alternating dark / light sections (dark = .alt). Semi-opaque so the hex field still shows through. */
.section.alt, .page-hero.alt { background-color: rgba(10, 10, 10, .82); }

/* Living hex field (hexfx.js) replaces the static pattern when it runs. */
canvas.hexfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.hexfx-on body::before { display: none; }

/* Content eases in on scroll. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s; }
.reveal.in { opacity: 1; transform: none; }

/* A slow light sweep across the hero and the result boxes. */
@media (prefers-reduced-motion: no-preference) {
  .eq-result { position: relative; overflow: hidden; }
  .eq-result::after {
    content: ""; position: absolute; inset: -40% -60%; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 170, 110, .16) 50%, transparent 58%);
    animation: sweep 5.5s ease-in-out infinite;
  }
  .eq-result > * { position: relative; z-index: 1; }
  @keyframes sweep { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
  .icon-ring { animation: hexglow 4s ease-in-out infinite; }
  .steps > :nth-child(2) .icon-ring, .grid > :nth-child(2) .icon-ring { animation-delay: -1.3s; }
  .steps > :nth-child(3) .icon-ring, .grid > :nth-child(3) .icon-ring { animation-delay: -2.6s; }
  @keyframes hexglow { 0%, 100% { background: rgba(229, 106, 42, .55); } 50% { background: rgba(255, 140, 70, 1); } }
  .eyebrow::before { animation: blink 2.4s ease-in-out infinite; }
  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}

/* Regular hexagons: equal sides means width = 0.866 x height (pointy top), corners at 0 / 100%. */
.icon-ring { width: 72.75px; height: 84px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.icon-ring::before { inset: 2.3px 2px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.eyebrow::before { width: 9px; height: 10.39px; }

/* Match the logo: FLAT-TOP hexagons (flat edge on top and bottom, points left and right).
   Regular, so height = 0.866 x width. */
.icon-ring, .icon-ring::before { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.icon-ring { width: 84px; height: 72.75px; }
.icon-ring::before { inset: 2px 2.3px; }
.eyebrow::before { width: 10.39px; height: 9px; vertical-align: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.footer-contact { color: var(--cream); margin-top: 14px; user-select: all; }

/* Footer email: present but quiet. */
.footer-contact { color: var(--muted); opacity: .7; user-select: all; }

/* Shop: compact bag calculator under the price tiers. */
.calc-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin: 22px auto 0; padding: 14px 20px; max-width: 860px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.calc-title { font: 700 .8rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hi); }
.calc-strip label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.calc-strip input { width: 64px; padding: 8px 10px; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.calc-out { color: var(--cream); font-size: 1.05rem; }

/* Shop: Auto Supply band (dark version of .band). */
.band.band-dark { background: var(--panel); border: 1px solid var(--line); color: var(--cream); }
.band.band-dark p { color: var(--muted); }

/* Auto Supply builder. */
.sub-builder { padding: 30px; }
.sub-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sub-row h3 { margin: 0 0 4px; }
.sub-row p { margin: 0; }
.sub-every { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 20px 0 6px; }
.sub-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0; }
.sub-price { font: 800 2rem/1 var(--head); color: var(--orange-hi); }
.sub-notes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: var(--muted); }
.sub-notes strong { color: var(--cream); }
@media (max-width: 560px) { .sub-row { flex-direction: column; align-items: flex-start; } }
.sub-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px; }
.sub-thumb { width: 56px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--ink); }
.sub-name h3 { margin: 0 0 4px; }
@media (max-width: 560px) { .sub-row { grid-template-columns: 48px 1fr; } .sub-row .qty { grid-column: 2; } .sub-thumb { width: 48px; height: 62px; } }
.section-head .ships-line { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-size: 1.1rem; background: rgba(229, 106, 42, .1); border: 1px solid rgba(229, 106, 42, .45); border-radius: 999px; padding: 10px 20px; margin-top: 6px; }
.ships-line .icon { width: 20px; height: 20px; color: var(--orange-hi); }
.ships-line strong { color: var(--orange-hi); }

/* My Account */
.acct-link h2 { margin-bottom: 4px; }
.copy-row { display: flex; gap: 10px; margin-top: 12px; }
.copy-row input { flex: 1; min-width: 0; padding: 12px 14px; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.linkish { background: none; border: 0; color: var(--orange-hi); font: inherit; cursor: pointer; padding: 0 0 0 8px; text-decoration: underline; }
.acct-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.acct-stats .card { text-align: center; }
.acct-num { font: 800 2.6rem/1 var(--head); color: var(--orange-hi); }
.acct-label { font: 700 .8rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.acct-stats p { margin: 8px 0 0; }
@media (max-width: 560px) { .acct-stats { grid-template-columns: 1fr; } }

/* Account: tabs and panels */
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.acct-head h1 { font-size: 2rem; margin: 6px 0 4px; }
.acct-head p { margin: 0; }
.acct-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.acct-tab { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font: 700 .8rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 14px 10px 12px; cursor: pointer; white-space: nowrap; }
.acct-tab[aria-selected="true"] { color: var(--orange-hi); border-bottom-color: var(--orange-hi); }
.acct-panel > * + * { margin-top: 18px; }
.acct-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat .acct-num { font-size: 2.1rem; }
.notice-card { background: rgba(229, 106, 42, .1); border: 1px solid rgba(229, 106, 42, .45); border-radius: var(--radius); padding: 16px 18px; color: var(--cream); }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bar { height: 10px; background: var(--ink); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-hi)); width: 0; }
.bar.hud span { background: linear-gradient(90deg, #0D98BA, #24C9F1); box-shadow: 0 0 10px rgba(36, 201, 241, .45); }
.mis-rows { margin-top: 8px; }
.mis-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mis-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mis-count { font: 700 1rem/1 var(--head); color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mis-row.done .mis-count { color: var(--ok); }
.acct-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.acct-table th, .acct-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.acct-table th { color: var(--muted); font: 700 .75rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; }
.acct-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.acct-table tr.total td, .acct-table tr.total td.amt { font-weight: 700; color: var(--orange-hi); border-bottom: 0; }
.acct-table td.ok { color: var(--ok); }
.acct-table td.muted { color: var(--muted); }
.card.soon { opacity: .7; }
.check { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; color: var(--cream); }
.empty { margin: 6px 0 0; }
@media (max-width: 560px) { .acct-head { flex-direction: column; align-items: flex-start; } }
.acct-table td.amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--cream); }
.acct-table td { vertical-align: middle; }
.acct-panel .empty { text-align: left; padding: 0; }
.link-pick { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.link-pick label { font: 700 .75rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.link-pick select { background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; font: inherit; }
.visits { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.visit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { background: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .9rem; color: var(--muted); }
.chip strong { color: var(--orange-hi); }

/* Signed-in header; read-only fields look read-only. */
.signed-in .btn.join { display: none; }
#s-email { opacity: .6; cursor: default; }

/* Link builder pickers, link name with the site in front, QR code, who a Join code belongs to. */
.link-picks { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.prefix-row { display: flex; align-items: stretch; }
.prefix-row .prefix { display: flex; align-items: center; padding: 0 10px; background: var(--ground); border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.prefix-row input { flex: 1; min-width: 0; border-radius: 0 6px 6px 0; }
.qr-card { text-align: center; }
.qr-card canvas.qr { display: block; margin: 16px auto 8px; width: 264px; max-width: 100%; height: auto; border-radius: 6px; image-rendering: pixelated; }
.ref-who { margin: 8px 0 0; min-height: 1.2em; }
.ref-who.ok { color: var(--ok); }
.ref-who.bad { color: var(--bad); }

/* Metrics: link results in a row of steps, and a small six-month bar chart. */
.funnel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.funnel .arrow { color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; margin-top: 14px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bar-track { width: 100%; max-width: 56px; height: 120px; background: var(--ink); border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.bar-fill { width: 100%; background: var(--orange); min-height: 2px; }
.bar-amt { font-size: .78rem; color: var(--cream); white-space: nowrap; }
.bar-label { font: 700 .7rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Account on phones: every tab visible (rows of 4), number cards two across, link box full width. */
/* Tabs go four across below desktop width, so all of them show without scrolling. */
@media (max-width: 999px) {
  .acct-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: visible; }
  .acct-tab { padding: 12px 4px 10px; font-size: .74rem; letter-spacing: .06em; text-align: center; }
}
@media (max-width: 560px) {
  .acct-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .acct-stats .card { padding: 16px 10px; }
  .copy-row { flex-direction: column; }
  .copy-row .btn { width: 100%; }
}

/* ---------- My Account console (HUD) ---------- */
.acct-console .card { border-color: var(--hud-line); position: relative; box-shadow: none; }
.acct-console .card:hover { border-color: rgba(36, 201, 241, .35); box-shadow: 0 0 24px rgba(36, 201, 241, .06); }
.acct-console .card::before, .acct-console .card::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--hud-dim); pointer-events: none; }
.acct-console .card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.acct-console .card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
/* Box titles read as label strips. */
.acct-console .card h2 { display: flex; align-items: center; gap: 9px; font: 700 .8rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--hud); margin: 0 0 12px; }
.acct-console .card h2::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--hud); border-radius: 1px; }
.acct-console .card h2 .muted { color: var(--muted); letter-spacing: .08em; }
.acct-console .card.soon h2 { justify-content: center; color: var(--muted); }
.acct-console .card.soon h2::before { background: var(--muted); }
.acct-console h4.acct-label { color: var(--cream); margin: 18px 0 4px; }
/* Readouts. */
.acct-console .acct-num, .acct-console .stat .acct-num { color: var(--hud); font-variant-numeric: tabular-nums; }
.acct-console .acct-label { color: var(--cream); }
.acct-console .chip strong { color: var(--hud); }
.acct-console .acct-table td.amt, .acct-console .acct-table td { font-variant-numeric: tabular-nums; }
.acct-console .acct-table tr.total td, .acct-console .acct-table tr.total td.amt { color: var(--hud); }
.acct-console .bar span { background: linear-gradient(90deg, var(--hud-dim), var(--hud)); }
.acct-console .bar-fill { background: var(--hud); }
/* Actions. */
.acct-console .btn:not(.ghost) { background: var(--act); border-color: var(--act); }
.acct-console .btn:not(.ghost):hover { background: var(--act-hover); border-color: var(--act-hover); color: var(--ink); }
.acct-console a:not(.btn), .acct-console .linkish { color: var(--act-text); }
.acct-console .acct-tab[aria-selected="true"] { color: var(--act-text); border-color: var(--act-text); }
/* Status. */
.acct-console .acct-table td.ok, .acct-console .ok { color: var(--good); }
.acct-console .ref-who.bad, .acct-console .bad { color: var(--alert); }
.acct-console .notice-card { background: rgba(211, 183, 143, .08); border-color: rgba(211, 183, 143, .45); }
.acct-console .notice-card strong { color: var(--pending); }
.acct-console .hud-note { background: rgba(211, 183, 143, .07); border: 1px solid rgba(211, 183, 143, .4); border-radius: var(--radius); padding: 12px 16px; font-size: .92rem; color: var(--cream); }
.acct-console .hud-note strong { color: var(--pending); font: 700 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
.hist-top { display: grid; gap: 18px; }
.period-box select { width: 100%; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; }
.period-box h3 label { cursor: pointer; }
.acct-console .qr-card canvas.qr { outline: 1px solid var(--hud-dim); outline-offset: 6px; }

/* Desktop: full width, menu down the left, boxes side by side. Phone keeps one column. */
@media (min-width: 1000px) {
  .acct-wrap { max-width: var(--wrap); }
  .acct-body { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: start; }
  .acct-console .acct-tabs { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--hud-line); border-radius: var(--radius); background: var(--panel); padding: 8px; margin: 0; position: sticky; top: 96px; overflow: visible; }
  .acct-console .acct-tab { text-align: left; border: 0; border-left: 3px solid transparent; border-radius: 4px; padding: 13px 14px; letter-spacing: .1em; }
  .acct-console .acct-tab:hover { color: var(--cream); background: rgba(255, 255, 255, .03); }
  .acct-console .acct-tab[aria-selected="true"] { background: rgba(229, 106, 42, .08); border-left-color: var(--act-text); }
  /* Boxes in the same row share one height, so their edges line up. */
  .acct-panel:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; align-items: stretch; }
  .acct-panel > .acct-stats:not(.full) { grid-auto-rows: 1fr; }
  .acct-panel > p { align-self: center; }
  .acct-panel > * + * { margin-top: 0; }
  .acct-panel > .full, .acct-panel > .card:only-child { grid-column: 1 / -1; }
  .acct-panel .acct-stats { margin-top: 0; }
  .acct-panel > .acct-stats:not(.full) { grid-template-columns: 1fr 1fr; }
  .met-stats { grid-template-columns: repeat(3, 1fr); }
  .hist-top { grid-template-columns: 220px 1fr; align-items: stretch; }
  .hist-top .acct-stats { margin-top: 0; grid-template-columns: repeat(4, 1fr); }
  .acct-console .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .acct-panel[data-panel="resources"] > .qr-card { grid-column: auto; max-width: 420px; }
}

/* "i" markers: explanations stay out of the way until someone asks. Scoped to button.info:
   the Shop roast rows use a div.info for their text, and a bare .info crushed them. */
button.info { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; margin-left: 4px; padding: 0; border: 1px solid var(--hud-dim); border-radius: 50%; background: transparent; color: var(--hud); font: 700 11px/1 Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: 0; text-transform: none; vertical-align: middle; cursor: pointer; }
button.info::after { content: ""; position: absolute; inset: -9px; } /* a finger-sized tap area */
button.info:hover, button.info[aria-expanded="true"] { background: var(--hud); color: var(--ink); border-color: var(--hud); }
button.info:focus-visible { outline: 2px solid var(--hud); outline-offset: 2px; }
.info-pop { position: fixed; z-index: 1000; background: #11171A; color: var(--cream); border: 1px solid var(--hud-dim); border-radius: 8px; padding: 12px 14px; font: 400 .92rem/1.5 var(--body); letter-spacing: 0; text-transform: none; text-align: left; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(36, 201, 241, .08); }
.info-pop[hidden] { display: none; }
.label-row { display: flex; align-items: center; gap: 2px; }
.label-row label { margin: 0; }

/* Example math under the earnings examples, and the income disclaimer right beside them. */
.example-math { max-width: 760px; margin: 14px auto 0; text-align: center; font-size: .85rem; color: var(--muted); }
.income-note { max-width: 720px; margin: 40px auto 0; padding: 14px 18px; text-align: center; font-size: .95rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }

/* Phones: nothing pushes the page sideways. Roast details wrap; wide blog tables scroll inside their own box. */
/* Phones only: long roast details wrap instead of pushing the page sideways. */
@media (max-width: 700px) {
  .roast > *, .bean-card dd { min-width: 0; overflow-wrap: break-word; }
  .prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Hidden bot trap on the email forms: people never see or fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Read by screen readers, not shown. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Keyboard users: the skip link stays off screen until it has focus, then shows top left. */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; }
.skip-link:focus { left: 12px; top: 12px; padding: 10px 14px; background: var(--cream); color: var(--ink); border-radius: 6px; font: 700 .85rem/1 var(--head); text-decoration: none; }

/* ===== Members-only gear page (/members/), prefix mshop- ===== */
.mshop-section { padding-top: 20px; }
.mshop-gate { max-width: 520px; margin: 0 auto; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; }
.mshop-gate h2 { margin-bottom: .4em; }
.mshop-gate .btn-row { margin-top: 20px; }
.mshop-empty { font-size: 1.1rem; padding: 24px 0; margin: 0; }
.mshop-card:hover .photo img { transform: none; }
.mshop-kind { color: var(--muted); font-size: .9rem; }
.mshop-note { align-self: flex-start; color: var(--pending); border: 1px solid var(--pending); border-radius: 999px; padding: 4px 12px; font: 600 .75rem/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.mshop-card .btn.mshop-buy { margin-top: 12px; width: 100%; }
@media (max-width: 560px) {
  .mshop-gate { padding: 28px 18px; }
  .mshop-gate .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- Account Resources: printable flyer and logo downloads (prefix res-) ---------- */
.res-flyer { text-align: center; }
.res-flyer canvas.res-flyer-preview { display: block; margin: 16px auto 8px; width: 204px; max-width: 100%; height: auto; border-radius: 4px; outline: 1px solid var(--hud-dim); outline-offset: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.res-logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.res-logo { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.res-logo-view { display: flex; align-items: center; justify-content: center; height: 170px; padding: 24px; background: var(--ink); border: 1px solid var(--hud-line); border-radius: 6px; }
.res-logo-view img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.res-logo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.res-logo figcaption .acct-label { margin: 0; }
.res-logo figcaption .btn { padding: 10px 16px; font-size: .78rem; }
.res-logo-note { margin: 14px 0 0; }
@media (max-width: 760px) { .res-logo-grid { grid-template-columns: 1fr; } .res-logo-view { height: 150px; } }
@media (min-width: 1000px) { .acct-panel[data-panel="resources"] > .res-flyer { grid-column: auto; } }

/* Account header: Member Shop and Sign Out side by side. */
.acct-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Cookie consent (consent.js). Small bar at the bottom, two equal buttons, and the footer
   "Cookie choices" link that reopens it. Every class here starts with consent-. ===== */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 16px; background: #11171A; color: var(--cream); border: 1px solid var(--hud-line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font: 400 .92rem/1.5 var(--body); }
.consent-banner[hidden] { display: none; }
.consent-text { flex: 1 1 260px; margin: 0; }
.consent-policy { color: var(--orange-hi); text-decoration: underline; white-space: nowrap; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-btn { min-width: 104px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--cream); border-radius: 4px; background: transparent; color: var(--cream); font: 600 .8rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.consent-btn:hover { background: var(--cream); color: var(--ink); }
.consent-btn:focus-visible, .consent-policy:focus-visible, .consent-footer-link:focus-visible { outline: 2px solid var(--hud); outline-offset: 3px; }
.consent-footer-link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.consent-footer-link:hover { color: var(--cream); }
@media (max-width: 520px) {
  .consent-banner { left: 12px; right: 12px; bottom: 12px; }
  .consent-actions { flex: 1 1 100%; }
  .consent-btn { flex: 1 1 0; }
}
@media print { .consent-banner { display: none; } }

/* ===== Step 3 checkout: confirm dialog (ckout-), Auto Supply controls (supply-), pop-up packs (popup-) ===== */
dialog.ckout { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--cream); }
dialog.ckout::backdrop { background: rgba(0, 0, 0, .7); }
.ckout-box { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.ckout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ckout-head h2 { margin: 0; font-size: 1.4rem; }
.ckout-x { background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 6px; width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; }
.ckout-sum { border-top: 1px solid var(--line); padding-top: 10px; }
.ckout-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ckout-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.ckout-sum p { margin: 8px 0 0; }
.ckout-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.ckout-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--act); }
.ckout-gift { display: flex; flex-direction: column; gap: 10px; padding-left: 30px; }
.ckout-field { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: var(--muted); }
.ckout-field input, .ckout-field textarea { background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; }
.ckout-terms { border: 1px solid rgba(229, 106, 42, .45); background: rgba(229, 106, 42, .08); border-radius: 8px; padding: 12px 14px; }
.ckout-terms p { margin: 6px 0 0; font-size: .95rem; }
.ckout-msg { margin: 0; color: var(--alert); }
.ckout-flash { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3000; margin: 0; padding: 10px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--cream); max-width: calc(100vw - 32px); }
.supply-state { font: 700 .9rem/1.2 var(--head); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.supply-state.alert { color: var(--alert); }
.supply-items { margin: 0 0 6px; padding-left: 18px; }
.supply-actions { margin-top: 12px; }
.supply-actions .btn { padding: 10px 14px; font-size: .78rem; }
.supply-msg { margin: 10px 0 0; }
.acct-table td.alert { color: var(--alert); }
.popup-size { background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; margin-bottom: 12px; }
.popup-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.popup-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.popup-row input { width: 76px; background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: inherit; }
.popup-left { margin: 12px 0; }

/* Checkout shipping address (live at-cost shipping) */
.ckout-delivery { display: flex; flex-direction: column; gap: 10px; }
.ckout-addr { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ckout-addr legend { padding: 0 6px; font: 700 .8rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ckout-row3 { display: grid; grid-template-columns: 1fr 90px 100px; gap: 10px; }
.ckout-field select { background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 8px; font: inherit; }
@media (max-width: 480px) { .ckout-row3 { grid-template-columns: 1fr 1fr; } .ckout-row3 > :first-child { grid-column: 1 / -1; } }

/* Taste & Talk (tt-) and one-for-one messages (chat-) */
.tt-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tt-search input { flex: 1 1 160px; max-width: 220px; background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; }
.tt-item { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.tt-item p { margin: 0; }
.tt-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tt-acts .btn { padding: 9px 14px; font-size: .76rem; }
.tt-host { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tt-host input, .tt-host select { background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; color-scheme: dark; }
.tt-roasts { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tt-sub { margin: 6px 0 0; }
.chat-pick { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); color: var(--cream); padding: 12px 4px; font: inherit; cursor: pointer; }
.chat-pick.unread { font-weight: 700; color: var(--hud); }
.chat-pick[aria-current="true"] { background: rgba(36, 201, 241, .08); }
.chat-thread { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; margin-bottom: 12px; }
.chat-msg { max-width: 85%; align-self: flex-start; background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.chat-msg.mine { align-self: flex-end; border-color: rgba(229, 106, 42, .5); }
.chat-msg p { margin: 0 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-reply { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.chat-reply textarea { width: 100%; background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; }
.chat-start { padding: 7px 12px; font-size: .72rem; }
.tt-coming { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tt-coming p { margin: 0; flex-basis: 100%; }
.tt-rsvp { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-left: 2px solid var(--hud-dim); padding-left: 12px; }
.tt-rsvp select, .tt-rsvp input { background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; font: inherit; }
.tt-rsvp p { margin: 0; }
.tt-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-basis: 100%; border-top: 1px dashed var(--line); padding-top: 6px; }
.pay-owed { margin: 10px 0 12px; }

/* Taste & Talk tips and entry fees (tip-): host form, tip picker, tip QR, the public tip page */
.tip-host { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tip-host .check { margin: 0; }
.tip-choice { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tip-fee input { max-width: 140px; }
.tip-thanks { margin: 0 0 12px; }
.tip-paid { color: var(--good); }
.tip-line { max-width: 52ch; }
.tip-pick { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-left: 2px solid var(--act); padding-left: 12px; }
.tip-pick p { margin: 0; }
.tip-amts { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.tip-amts .tip-amt { padding: 8px 14px; font-size: .8rem; min-width: 58px; }
.tip-amts .tip-amt[aria-pressed="true"] { border-color: var(--act-text); color: var(--act-text); }
.tip-amts input { width: 96px; background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: .9rem; color-scheme: dark; }
.tip-host-extra { display: flex; flex-direction: column; gap: 10px; }
.tip-money { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--line); padding-top: 8px; }
.tip-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.tip-qr canvas { width: 132px; height: 132px; border-radius: 6px; flex: none; }
.tip-qr-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tip-qr-side .btn { padding: 8px 14px; font-size: .74rem; }
.tip-page { max-width: 460px; margin: 0 auto; }
.tip-page h1 { font-size: 1.9rem; margin: 6px 0 4px; overflow-wrap: anywhere; }
.tip-card { display: flex; flex-direction: column; gap: 14px; }
.tip-card p { margin: 0; }
.tip-card .tip-amts .tip-amt { flex: 1 1 64px; }
.tip-card .tip-amts input { flex: 1 1 96px; }
.tip-card .btn[data-tip-pay] { width: 100%; }

/* ---------- Admin back office (adm-): /admin/ only ---------- */
.adm-gate { max-width: 520px; margin: 0 auto; text-align: center; }
.adm-gate h2 { font-size: 2rem; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 12px; }
.adm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.adm-field label { font: 600 .74rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.adm-field input, .adm-field select { background: var(--ground); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; color-scheme: dark; min-width: 0; max-width: 100%; }
.adm-grow { flex: 1 1 220px; }
.adm-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-acts .btn, .adm-acts-row .btn, .adm-more .btn, .adm-table .btn { padding: 9px 14px; font-size: .76rem; }
.adm-msg { margin: 8px 0 0; color: var(--good); }
.adm-msg.bad { color: var(--alert); }
.adm-pending { color: var(--pending); }
.adm-block { display: block; }
.adm-scroll { overflow-x: auto; max-width: 100%; }
.adm-table td { overflow-wrap: break-word; }
.adm-stats .stat .acct-num { font-size: 1.7rem; overflow-wrap: anywhere; }
.adm-table td:first-child input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--act); }
.adm-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; margin: 14px 0; }
.adm-fact { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.adm-fact .acct-label { margin: 0; color: var(--muted); font-size: .72rem; }
.adm-total { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 12px 0; }
.adm-total .acct-label { margin: 0; }
.adm-total strong { color: var(--hud); font: 800 1.4rem/1 var(--head); }
.adm-form, .adm-ship { border-top: 1px solid var(--line); padding-top: 14px; }
.adm-check { align-self: center; }
.adm-check input { margin-top: 3px; }
.adm-ask { flex-basis: 100%; border: 1px solid rgba(211, 183, 143, .45); background: rgba(211, 183, 143, .07); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; }
.adm-ask p { margin: 0 0 10px; }
.adm-ask .btn { padding: 9px 14px; font-size: .76rem; }
.acct-console .card h2.adm-sub { margin-top: 26px; }
.adm-btns { gap: 10px; }
.adm-btns .btn { padding: 11px 18px; font-size: .78rem; }
.adm-btns .btn:disabled, .adm-acts .btn:disabled { opacity: .4; cursor: not-allowed; }
.adm-report { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.adm-report[hidden] { display: none; }
.adm-report > .full { grid-column: 1 / -1; }
.adm-report .acct-stats { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.adm-report .stat .acct-num { font-size: 1.5rem; }
.adm-stats .card.stat::before, .adm-stats .card.stat::after { display: none; }
.adm-stats .card.stat { padding: 14px 12px; }
.adm-slips { display: none; }
@media (max-width: 560px) {
  .adm-bar > .adm-field { flex: 1 1 100%; }
  .adm-report { grid-template-columns: 1fr; }
  .adm-report .acct-stats { grid-template-columns: 1fr 1fr; }
  .adm-stats .stat .acct-num, .adm-report .stat .acct-num { font-size: 1.25rem; }
  .adm-stats .card.stat { padding: 12px 8px; }
  /* Tables become stacked rows: each value with its column name. */
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr { display: block; width: 100%; }
  .adm-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
  .adm-table td { border: 0; padding: 3px 0; font-size: .9rem; flex: 1 1 100%; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .adm-table td.amt, .adm-table td.num { text-align: right; }
  .adm-table td[data-label]::before { content: attr(data-label); flex: none; color: var(--muted); font: 700 .7rem/1.6 var(--head); letter-spacing: .08em; text-transform: uppercase; text-align: left; }
  .adm-table td:not([data-label]) { flex: 0 0 auto; }
  .adm-table td > span { text-align: right; }
  .adm-table td:not([data-label]):last-child:not(:first-child) { order: -1; margin-left: auto; }
}
@media (max-width: 999px) { .adm-tabs { grid-template-columns: repeat(4, 1fr); } }
/* Packing slips: printed on white, one order per page; nothing else on the page prints. */
@media print {
  html.adm-printing body > *:not(.adm-slips) { display: none !important; }
  html.adm-printing, html.adm-printing body { background: #fff !important; color: #000 !important; }
  html.adm-printing .adm-slips { display: block; font: 12pt/1.4 Georgia, serif; color: #000; }
  .adm-slip { page-break-after: always; break-after: page; padding: 0.4in; }
  .adm-slip h2 { font: 700 18pt/1.2 Arial, sans-serif; margin: 0 0 4px; color: #000; }
  .adm-slip-to { margin: 18px 0; }
  .adm-slip table { width: 100%; border-collapse: collapse; margin: 12px 0; }
  .adm-slip th, .adm-slip td { background: #fff !important; border-bottom: 1px solid #999; padding: 6px 4px; text-align: left; color: #000; font: 12pt/1.4 Georgia, serif; letter-spacing: 0; text-transform: none; }
  .adm-slip th { font-weight: 700; }
  .adm-slip-note { border: 1px solid #999; padding: 10px; font-style: italic; }
}

/* ---- Agent D: Taste & Talk map (account page, tt-map.js) + blog index empty state ---- */
.map-box { margin: 14px 0 16px; }
.map-box[hidden] { display: none; }
.map-frame { height: 300px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ground); }
.map-frame.leaflet-container { font: inherit; font-size: .85rem; background: var(--ground); }
.map-frame .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
.map-box .map-frame .leaflet-control-attribution { background: rgba(25, 25, 25, .85); color: var(--muted); }
.map-box .map-frame .leaflet-control-attribution a { color: var(--hud); }
.map-pin svg { display: block; overflow: visible; }
.map-pin path { fill: var(--act); stroke: var(--ink); stroke-width: 1.5; }
.map-pin circle { fill: var(--cream); }
.map-pop { display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.map-note { margin: 6px 0 0; }
@media (max-width: 600px) { .map-frame { height: 230px; } }
.blog-empty { grid-column: 1 / -1; text-align: center; padding: 30px 0; }

/* Flat price: two cards (any order, Auto Supply). */
.ladder.two { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
.ladder.two .step:last-child { grid-column: auto; }
@media (max-width: 520px) { .ladder.two { grid-template-columns: 1fr; } }

/* Ambassador: ways to get paid (big rate on each card). */
.pay-rate { font: 800 2.4rem/1 var(--head); color: var(--orange-hi); margin-bottom: 14px; }
.pay-ways .step-card h3 { margin-top: 0; }

/* Mission Brief: the opt-in, the tempo steps and the earnings chart. */
.mission-gate { max-width: 640px; margin: 0 auto; text-align: left; }
.mission-gate h2 { font-size: 1.5rem; margin-top: 0; }
.mission-gate .btn { margin-top: 18px; }
.mission-gate .btn[disabled] { opacity: .45; cursor: not-allowed; }
.mission-step .step-when { font: 800 .8rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-hi); margin-bottom: 12px; }
.mission-step .step-num { font: 800 2.2rem/1 var(--head); color: var(--cream); margin-bottom: 6px; }
.mchart { max-width: 760px; margin: 0 auto; }
.mchart-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 22px; font-size: .95rem; color: var(--cream); }
.mchart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mchart-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.mchart-plot { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: end; height: 320px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.mchart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; outline: none; cursor: default; }
.mchart-total { font: 800 1.3rem/1 var(--head); color: var(--cream); margin-bottom: 10px; }
.mchart-bar { width: min(120px, 100%); display: flex; flex-direction: column; gap: 2px; }
.mchart-seg { display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; color: #0C0C0C; min-height: 0; }
.mchart-seg.new { background: #E56A2A; border-radius: 4px 4px 0 0; }
.mchart-seg.reg { background: #0D98BA; }
.mchart-seg.net { background: #8B6FE0; }
.mchart-seg.reg:first-child { border-radius: 4px 4px 0 0; }
.mchart-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 10px 12px 0; text-align: center; font: 700 .85rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mchart-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .88rem; color: var(--cream); white-space: nowrap; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.mchart-tip b { display: block; margin-bottom: 4px; }
.mchart-note { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: .9rem; color: var(--muted); }
.mchart-table { max-width: 560px; margin: 16px auto 0; }
.mchart-table summary { cursor: pointer; text-align: center; color: var(--orange-hi); font-size: .92rem; }
.mchart-table table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
.mchart-table th, .mchart-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.mchart-table th:first-child, .mchart-table td:first-child { text-align: left; }
.disclosure { max-width: 760px; margin: 0 auto; font-size: .95rem; color: var(--muted); }
.disclosure p { margin: 0 0 14px; }
@media (max-width: 520px) { .mchart-plot { height: 260px; gap: 14px; } .mchart-labels { gap: 14px; } .mchart-total { font-size: 1.05rem; } .pay-rate { font-size: 2rem; } }

/* Account: training code card, flag menu on the People list. */
.training-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.training-row { display: inline-flex; gap: 8px; }
.training-row input { width: 120px; text-transform: uppercase; letter-spacing: .12em; }
.flag-pick { display: flex; flex-direction: column; gap: 4px; }
.flag-pick select { max-width: 200px; }
.person-cell { display: flex; flex-direction: column; gap: 2px; }
.person-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.person-acts .flag-pick select { max-width: 190px; }
@media (max-width: 520px) { .person-acts { flex-direction: column; } .person-acts .flag-pick select { width: 100%; max-width: 140px; font-size: .85rem; padding-right: 22px; } .person-acts .flag-pick { max-width: 140px; } }
.people-seg { max-width: 420px; margin-bottom: 0; }

/* ===== Help chat (help.js). A Help button bottom right opens a small panel; on phones the panel
   is a sheet across the bottom. Every class here starts with help-. ===== */
.help-fab { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--hud-line); background: #11171A; color: var(--cream); font: 600 .85rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.help-fab svg { color: var(--hud); }
.help-fab:hover, .help-fab[aria-expanded="true"] { border-color: var(--hud-dim); }
.help-fab:focus-visible { outline: 2px solid var(--hud); outline-offset: 3px; }
body.cart-open .help-fab { display: none; }
.help-panel { position: fixed; right: 16px; bottom: 74px; z-index: 85; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--ground); border: 1px solid var(--hud-line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.help-panel[hidden] { display: none; }
.help-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.help-title { flex: 1; margin: 0; font: 700 .95rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .05em; }
.help-back, .help-close { background: none; border: 0; color: var(--cream); cursor: pointer; padding: 4px 6px; }
.help-back { color: var(--hud); font: 600 .85rem/1 var(--body); }
.help-close { font-size: 1.5rem; line-height: 1; }
.help-body { overflow-y: auto; padding: 14px; font-size: .95rem; line-height: 1.55; }
.help-body p { margin: 0 0 12px; }
.help-lead { font: 600 1.05rem/1.4 var(--head); }
.help-muted { color: var(--muted); }
.help-list { display: grid; gap: 8px; margin-bottom: 14px; }
.help-item { text-align: left; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: 400 .93rem/1.4 var(--body); cursor: pointer; }
.help-item:hover, .help-item:focus-visible { border-color: var(--hud-dim); outline: none; }
.help-q { font-weight: 700; }
.help-a { color: var(--cream); }
.help-go { display: inline-block; margin: 0 0 14px; color: var(--hud); font-weight: 600; font-size: 1.02rem; }
.help-send-link { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 8px; border: 1px dashed var(--act); background: none; color: var(--act-text); font: 600 .9rem/1.3 var(--body); cursor: pointer; text-align: center; }
.help-send-link:hover, .help-send-link:focus-visible { border-style: solid; color: var(--act-hover); outline: none; }
.help-label { display: block; margin: 0 0 6px; font: 600 .78rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.help-ask { margin-bottom: 16px; }
.help-ask-row { display: flex; gap: 8px; }
.help-ask-row input { flex: 1; min-width: 0; }
.help-ask-row .btn { padding: 10px 16px; }
.help-body input, .help-body textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: 400 .95rem/1.4 var(--body); }
.help-ask-row input { margin-bottom: 0; }
.help-body textarea { resize: vertical; min-height: 90px; }
.help-body input:focus, .help-body textarea:focus { outline: 2px solid var(--hud-dim); outline-offset: 1px; }
.help-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.help-msg { margin-top: 10px; min-height: 1.2em; }
.help-msg.bad { color: var(--alert); }
.help-log { display: grid; gap: 8px; margin-bottom: 14px; }
.help-bubble { max-width: 88%; padding: 9px 12px; border-radius: 12px; margin: 0 !important; white-space: pre-wrap; }
.help-bubble.me { justify-self: end; background: var(--panel-2); }
.help-bubble.them { justify-self: start; background: var(--panel); border: 1px solid var(--hud-line); }
@media (max-width: 560px) {
  .help-fab { right: 12px; bottom: 12px; padding: 10px 14px; }
  .help-panel { left: 0; right: 0; bottom: 0; width: 100%; max-height: 82vh; border-radius: var(--radius) var(--radius) 0 0; }
  body.help-open .help-fab { display: none; }
}
.adm-inbox-seg { grid-template-columns: repeat(3, 1fr); max-width: 520px; }
.adm-inbox { display: grid; gap: 12px; margin-bottom: 14px; }
.adm-help { padding: 16px; }
.adm-help-who { margin: 4px 0 8px; font-weight: 700; overflow-wrap: anywhere; }
.adm-help-q, .adm-help-a { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-help-a { color: var(--muted); }
.adm-help textarea { width: 100%; box-sizing: border-box; }
/* Admin Pipeline tab: the training code sits in its own frame; sections get room between them. */
.adm-code { margin: 18px 0 8px; padding: 16px 18px; border: 1px solid var(--hud-line); border-radius: 8px; background: var(--ink); }
.adm-code .acct-num { margin: 6px 0 4px; letter-spacing: .08em; }
.adm-code p { margin: 0 0 14px; }
[data-adm-pipe] h3 { margin: 30px 0 10px; }

/* ===== Mission Brief HUD (ambassador/mission.html). Reads like a mission file: numbered sections,
   framed panels with corner brackets, label strips, a phase timeline. Colors keep one job each:
   HUD blue = frames, labels and information; orange = money and actions. Every class starts mhud-
   (plus the gauge g-, tempo t- and network n- parts inside it). ===== */
.mhud { position: relative; background: linear-gradient(180deg, rgba(36, 201, 241, .035), transparent 40%), var(--panel); border: 1px solid var(--hud-line); border-radius: var(--radius); padding: 22px 24px; text-align: left; }
.mhud::before, .mhud::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--hud-dim); pointer-events: none; }
.mhud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.mhud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.mhud h3 { margin: 6px 0 10px; font-size: 1.25rem; }
.mhud p { color: var(--muted); margin: 0; }
.mhud-strip { display: flex; justify-content: space-between; gap: 12px; margin: -4px 0 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--hud-line); font: 700 .74rem/1.2 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--hud); }
.mhud-strip span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.mhud-strip span:first-child::before { content: ""; width: 7px; height: 7px; background: var(--hud); border-radius: 1px; }
.mhud-strip span + span { color: var(--muted); }

/* Section header: index number + label on a line, then the title. */
.mhud-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 10px; max-width: 560px; font: 700 .8rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; }
.mhud-head::before, .mhud-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--hud-dim)); }
.mhud-head::after { background: linear-gradient(90deg, var(--hud-dim), transparent); }
.mhud-idx { color: var(--ink); background: var(--hud); padding: 5px 8px; border-radius: 3px; letter-spacing: .08em; }
.mhud-tag { color: var(--hud); }
.mhud-title { text-align: center; margin: 0 0 10px; }
.mhud-sub { text-align: center; color: var(--muted); font-size: 1.1rem; margin: 0 auto 36px; max-width: 620px; }
.mhud-title + .mhud-grid, .mhud-title + .mhud-display, .mhud-title + .mhud { margin-top: 34px; }
.mhud-grid { display: grid; gap: 22px; max-width: 1040px; margin: 0 auto; }
.mhud-grid.three { grid-template-columns: repeat(3, 1fr); }

/* Hero: a file header, a radar, and a status row. */
.mhud-hero { position: relative; overflow: hidden; }
.mhud-file { display: flex; justify-content: space-between; max-width: 760px; margin: 0 auto 18px; padding: 8px 0; border-top: 1px solid var(--hud-line); border-bottom: 1px solid var(--hud-line); font: 700 .72rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--hud-dim); }
.mhud-radar { display: block; width: 132px; height: 132px; margin: 6px auto 14px; fill: none; stroke: var(--hud-dim); stroke-width: 1; overflow: visible; }
.mhud-radar circle:not(.mhud-blip) { opacity: .55; }
.mhud-radar > path { opacity: .35; }
.mhud-sweep path { fill: rgba(36, 201, 241, .16); stroke: none; }
.mhud-sweep { transform-origin: 80px 80px; }
.mhud-core { fill: rgba(229, 106, 42, .25); stroke: var(--orange-hi); stroke-width: 2; }
.mhud-blip { fill: var(--hud); stroke: none; }
.mhud-status { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0; margin: 28px auto 0; border: 1px solid var(--hud-line); border-radius: var(--radius); background: rgba(12, 12, 12, .6); width: fit-content; max-width: 100%; }
.mhud-status div { padding: 12px 22px; text-align: center; }
.mhud-status div + div { border-left: 1px solid var(--hud-line); }
.mhud-status span { display: block; font: 700 .68rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--hud-dim); margin-bottom: 7px; }
.mhud-status strong { font: 700 .98rem/1.2 var(--head); color: var(--cream); }

/* Access (the opt-in). */
.mhud-gate { max-width: 660px; margin: 0 auto; }
.mhud-gate h2 { font-size: 1.5rem; margin: 4px 0 12px; }
.mhud-gate .btn { margin-top: 18px; }
.mhud-gate .btn[disabled] { opacity: .45; cursor: not-allowed; }
.mhud-lock { color: var(--pending, #D3B78F) !important; }

/* 01: gauges. The arc is the rate, out of the whole ring. */
.mhud-gauge { text-align: center; padding-top: 28px; }
.mhud-gauge svg { width: 132px; height: 132px; display: block; margin: 0 auto -98px; transform: rotate(-90deg); }
.mhud-gauge circle { fill: none; }
.g-tick { stroke: var(--hud-dim); stroke-width: 2; stroke-dasharray: 1.5 7.3; opacity: .6; }
.g-bg { stroke: var(--hud-line); stroke-width: 8; }
.g-arc { stroke: var(--orange-hi); stroke-width: 8; stroke-linecap: round; stroke-dasharray: calc(289 * var(--p)) 289; filter: drop-shadow(0 0 6px rgba(229, 106, 42, .55)); }
.g-num { position: relative; height: 98px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 800 1.9rem/1 var(--head); color: var(--cream); margin-bottom: 18px; }
.g-num small { font: 700 .62rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mhud-gauge h3 { margin-top: 0; }

/* 02: the phase timeline. A glowing line runs through hexagon nodes. */
.mhud-timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
/* A line from each phase node down to the next one (none after the last). */
.mhud-phase { position: relative; }
.mhud-phase:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: -26px; width: 2px; background: var(--hud); box-shadow: 0 0 10px rgba(36, 201, 241, .45); }
.mhud-phase:nth-last-child(2)::before { background: linear-gradient(180deg, var(--hud), var(--orange-hi)); }
.mhud-phase { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.mhud-phase + .mhud-phase { margin-top: 26px; }
.mhud-node { position: relative; width: 56px; height: 60px; display: grid; place-items: center; }
.mhud-node svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mhud-node polygon { fill: var(--ink); stroke: var(--hud); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(36, 201, 241, .5)); }
.mhud-phase:last-child .mhud-node polygon { stroke: var(--orange-hi); filter: drop-shadow(0 0 8px rgba(229, 106, 42, .55)); }
.mhud-node span { position: relative; font: 800 1.2rem/1 var(--head); color: var(--cream); }
.mhud-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 10px; }
.mhud-big strong { font: 800 2.6rem/1 var(--head); color: var(--hud); text-shadow: 0 0 18px rgba(36, 201, 241, .35); }
.mhud-big span { font: 700 .95rem/1.3 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--cream); }
.mhud-chip { display: inline-block; margin-top: 14px; padding: 7px 12px; border: 1px solid var(--hud-dim); border-radius: 999px; font: 700 .78rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--hud); background: rgba(36, 201, 241, .06); }

/* 03: tempo. */
.mhud-tempo { text-align: center; }
.mhud-tempo .mhud-strip { justify-content: center; }
.t-icon { width: 58px; height: 58px; display: block; margin: 4px auto 8px; fill: none; stroke: var(--hud); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(36, 201, 241, .35)); }
.mhud-tempo .mhud-big { justify-content: center; flex-direction: column; align-items: center; }
.mhud-tempo.hot { border-color: rgba(229, 106, 42, .55); }
.mhud-tempo.hot .mhud-big strong { color: var(--orange-hi); text-shadow: 0 0 18px rgba(229, 106, 42, .35); }
.mhud-tempo.hot .t-icon { stroke: var(--orange-hi); filter: drop-shadow(0 0 6px rgba(229, 106, 42, .4)); }

/* 04: the chart sits in a display frame with a faint grid. */
.mhud-display { max-width: 820px; margin: 0 auto; background-image: linear-gradient(rgba(36, 201, 241, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 201, 241, .05) 1px, transparent 1px); background-size: 32px 32px; background-color: var(--panel); }
.mhud-display .mchart { max-width: none; }
.mhud-display .mchart-plot { border-bottom-color: var(--hud-dim); }
.mchart-table p { margin: 10px 0 0; text-align: center; }

/* 05: network diagram. */
.mhud-net { max-width: 820px; margin: 0 auto 24px; padding: 20px 18px; }
.mhud-net svg { display: block; width: 100%; height: auto; }
.n-links path { fill: none; stroke: var(--hud-dim); stroke-width: 1.2; opacity: .6; }
.n-you { fill: rgba(229, 106, 42, .2); stroke: var(--orange-hi); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(229, 106, 42, .6)); }
.n-you-t { fill: var(--cream); font: 800 14px var(--head); letter-spacing: .1em; text-anchor: middle; }
.n-cust circle { fill: var(--ink); stroke: var(--hud); stroke-width: 2.5; }
.n-fr circle { fill: var(--cream); opacity: .85; }
.n-lab { fill: var(--hud); font: 700 12px var(--head); letter-spacing: .16em; text-anchor: middle; }
.mhud-eq { border-color: var(--hud-line); }
/* Phone only: the diagram labels sit under it as a legend (in the drawing they would be too small). */
.n-legend { display: none; justify-content: space-between; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--hud-line); font: 700 .66rem/1.25 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--hud); }
.n-legend span { flex: 1; text-align: center; }
.n-legend .you { color: var(--orange-hi); flex: .6; }

/* 06 */
.mhud.disclosure { max-width: 820px; margin: 34px auto 0; }
.mhud.disclosure p { margin: 0 0 14px; }
.mhud.disclosure p:last-child { margin: 0; }

/* Panels light up as they scroll in. */
/* Panels show at once (a fade-in made the page look half-loaded); only the gauge arcs animate. */
@media (prefers-reduced-motion: no-preference) {
  .mhud-sweep { animation: mhud-spin 4s linear infinite; }
  @keyframes mhud-spin { to { transform: rotate(360deg); } }
  .mhud-blip { animation: mhud-blip 4s ease-in-out infinite; }
  .mhud-blip.b2 { animation-delay: -1.6s; }
  .mhud-blip.b3 { animation-delay: -2.8s; }
  @keyframes mhud-blip { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
  .mhud-wait .g-arc { stroke-dasharray: 0 289; transition: stroke-dasharray 1.2s cubic-bezier(.2, .7, .2, 1) .2s; }
  .mhud-wait.on .g-arc { stroke-dasharray: calc(289 * var(--p)) 289; }
  .mhud-phase.mhud-wait .mhud-node polygon { transition: stroke .4s; }
}

@media (max-width: 860px) {
  .mhud-grid.three { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 560px) {
  .mhud { padding: 18px 16px; }
  .mhud-status { grid-template-columns: 1fr; width: 100%; }
  .mhud-status div + div { border-left: 0; border-top: 1px solid var(--hud-line); }
  .mhud-file { font-size: .62rem; letter-spacing: .14em; }
  .mhud-phase { grid-template-columns: 44px 1fr; gap: 14px; }
  .mhud-node { width: 44px; height: 48px; }
  .mhud-phase:not(:last-child)::before { left: 21px; top: 48px; }
  .mhud-big strong { font-size: 2.2rem; }
  .mhud-strip { font-size: .68rem; letter-spacing: .14em; }
  .mhud-head { font-size: .72rem; }
  .mhud-net { padding: 12px 8px; }
  .n-lab { display: none; }
  .n-you-t { font-size: 20px; }
  .n-legend { display: flex; }
}
.mhud-beyond { margin: 18px auto 0; text-align: center; font: 700 1rem/1.4 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--hud); text-shadow: 0 0 14px rgba(36, 201, 241, .35); }
/* Mission Brief: already opted in on this device -> no flash of the Access box (set before paint). */
.mission-ok [data-gate] { display: none !important; }
.mission-ok [data-brief][hidden] { display: block !important; }

/* Footnote band along the bottom of the example box (recurring commissions) */
.equation:has(.eq-foot) { padding-bottom: 0; overflow: hidden; }
.eq-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px -36px 0; padding: 18px 28px; background: rgba(36, 201, 241, .08); border-top: 1px solid rgba(36, 201, 241, .35); color: var(--cyan); font: 600 1.02rem/1.45 var(--body, inherit); text-align: center; }
.eq-foot .icon { flex: none; width: 22px; height: 22px; }
@media (max-width: 760px) { .eq-foot { margin: 8px -22px 0; padding: 16px 20px; font-size: .95rem; } }

/* Mission Brief opt-in: name + email for visitors who aren't signed in */
.mhud-gate .gate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 18px 0 4px; }
.mhud-gate .gate-fields[hidden] { display: none; }
.mhud-gate .gate-alt { margin-top: 16px; }
@media (max-width: 600px) { .mhud-gate .gate-fields { grid-template-columns: 1fr; } }

/* Mission Brief 03: each phase as math lines, ending in that phase's total */
.mnum-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.mnum-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--hud-dim); color: var(--cream); font-size: 1rem; line-height: 1.45; }
.mnum-lines b { flex: none; font: 700 1.1rem/1 var(--head); color: var(--white); }
.mnum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.mnum-total span { font: 700 .8rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--hud); }
.mnum-total strong { font: 800 2.2rem/1 var(--head); color: var(--orange-hi); }
.mhud .mfree-pay, .mhud-tempo p.mfree-pay { margin: 6px 0 0; font: 800 2rem/1 var(--head); color: var(--orange-hi); }

/* Customer network picker (10 / 25 / 50 customers covered by points) */
.net-pick { max-width: 560px; margin: 40px auto 0; padding: 28px 24px; text-align: center; background: var(--panel); border: 2px solid var(--orange); border-radius: 16px; }
.np-ask { margin: 0 0 16px; font: 700 .85rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.np-tabs { display: inline-flex; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .25); }
.np-tabs button { min-width: 64px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--cream); font: 800 1.15rem/1 var(--head); cursor: pointer; }
.np-tabs button[aria-pressed="true"] { background: var(--cyan); color: var(--ink); }
.np-tabs button:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 2px; }
.np-out { margin: 22px 0 0; font: 800 3.4rem/1 var(--head); color: var(--orange-hi); }
.np-out small { font-size: 1.3rem; margin-left: 4px; color: var(--cream); }
.np-unit { margin: 8px 0 0; font: 700 .9rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.np-math { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.net-pick { margin-top: 48px; }

/* Readability over the moving hex field (Adam 2026-10-29): math lives inside its box; loose text sits
   brighter with a dark halo so the field behind it can't break up the letters. */
.eq-math { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; font-size: .92rem; color: var(--cream); opacity: .85; }
.equation:has(.eq-math) .eq-foot { margin-top: 10px; }
.section-head p, .mhud-sub, .mchart-note, .repeat-line, .income-note, .mhud-head, .mhud-title, .section-head h2, .section-head .eyebrow {
  text-shadow: 0 0 2px #000, 0 0 10px rgba(0, 0, 0, .95), 0 0 22px rgba(0, 0, 0, .9);
}
.section-head p, .mhud-sub { color: var(--cream); }
.mhud-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
@media (max-width: 700px) { .mhud-grid.two { grid-template-columns: 1fr; } }
/* Ways to get paid: each rate as a big number over a short orange line (no shape around it, no
   partial arcs that make the rate look small). Hexes elsewhere are FLAT-TOP like the logo. */
.mhud-node { width: 60px; height: 54px; }
.mhud-rate { padding-top: 34px; }
.mhud-rate .g-num { height: auto; font-size: 3.2rem; color: var(--white); margin: 0 0 14px; }
.mhud-rate .g-num::after { content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0; border-radius: 2px; background: var(--orange-hi); box-shadow: 0 0 12px rgba(229, 106, 42, .6); }

/* Picker: "My goal" option with its own number box */
.np-tabs { flex-wrap: wrap; justify-content: center; }
.np-goal { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 0; font: 700 .85rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.np-goal[hidden] { display: none; }
.np-goal input { width: 96px; padding: 10px 12px; text-align: center; font: 800 1.3rem/1 var(--head); color: var(--white); background: var(--ink); border: 2px solid var(--cyan); border-radius: 10px; }

/* Mission Brief system: the timing labels pop (orange pill, glow) */
.mhud-phase .mhud-strip span + span { color: var(--ink); background: var(--orange-hi); padding: 5px 10px; border-radius: 999px; letter-spacing: .12em; box-shadow: 0 0 14px rgba(229, 106, 42, .55); }

/* Mission Brief: Why coffee habit loop */
.wc-loop { max-width: 980px; margin: 0 auto; padding: 28px 24px 30px; }
.wc-loop svg { display: block; width: 100%; height: auto; overflow: visible; }
.wc-node circle { fill: #14181C; stroke: var(--cyan); stroke-width: 3; filter: drop-shadow(0 0 12px rgba(36, 201, 241, .45)); }
.wc-node.hot circle { stroke: var(--orange-hi); filter: drop-shadow(0 0 14px rgba(229, 106, 42, .6)); }
.wc-ico path { fill: none; stroke: var(--cream); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.wc-bag .wc-ico path:first-child { fill: var(--orange-hi); stroke: var(--orange-hi); }
.wc-num { font: 800 22px var(--head); fill: var(--ink); }
.wc-flow { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 9 10; stroke-linecap: round; }
.wc-back { stroke: var(--orange-hi); }
.wc-headfill { fill: var(--cyan); }
.wc-arc { font: 800 13px var(--head); letter-spacing: .16em; fill: var(--orange-hi); }
.wc-caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; margin-top: 6px; color: var(--cream); font-size: 1rem; }
.wc-caps strong { display: block; font: 800 1.15rem/1.2 var(--head); color: var(--white); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
@media (max-width: 640px) { .wc-caps { grid-template-columns: 1fr; gap: 12px; } }
/* Mission Brief: The coffee, bean art + spec rows */
.cf-split { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; }
.cf-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.cf-bean { filter: drop-shadow(0 0 28px rgba(229, 106, 42, .55)); }
.cf-crease { fill: none; stroke: #2A1208; stroke-width: 9; stroke-linecap: round; }
.cf-orbit circle:first-child { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 3 9; opacity: .7; }
.cf-orbit { transform-origin: 160px 160px; }
.cf-dot { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.cf-dot.b { fill: var(--orange-hi); filter: drop-shadow(0 0 6px var(--orange-hi)); }
.cf-specs { padding: 10px 28px; }
.cf-row { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 20px 0; }
.cf-row + .cf-row { border-top: 1px dashed var(--hud-line); }
.cf-ico { width: 48px; height: 48px; fill: none; stroke: var(--orange-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(229, 106, 42, .5)); }
.cf-row h3 { margin: 0 0 4px; font-size: 1.25rem; color: var(--white); }
.cf-row p { margin: 0; color: var(--cream); }
@media (max-width: 760px) { .cf-split { grid-template-columns: 1fr; gap: 20px; } .cf-art { max-width: 240px; margin: 0 auto; } }
@media (prefers-reduced-motion: no-preference) {
  .wc-flow { animation: wc-dash 1.1s linear infinite; }
  @keyframes wc-dash { to { stroke-dashoffset: -38; } }
  .cf-orbit { animation: cf-spin 24s linear infinite; }
  .cf-orbit.slow { animation-duration: 40s; animation-direction: reverse; }
  @keyframes cf-spin { to { transform: rotate(360deg); } }
}
.wc-headfill-o { fill: var(--orange-hi); }
.wc-arc { font-size: 14px; }
.np-goal input { width: 150px; }

/* Why coffee: real facts strip above the opportunity loop */
.wc-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1040px; margin: 0 auto; }
.wc-fact { text-align: center; padding: 26px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 2px 0 rgba(229, 106, 42, .45); }
.wc-fact strong { display: block; font: 800 2.7rem/1 var(--head); color: var(--orange-hi); text-shadow: 0 0 18px rgba(229, 106, 42, .45); }
.wc-fact span { display: block; margin-top: 10px; font: 700 .82rem/1.35 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }
.wc-src { max-width: 820px; margin: 14px auto 0; text-align: center; font-size: .82rem; color: var(--muted); }
.wc-opp { font-size: 1.5rem; margin-top: 64px; }
.wc-cash { font: 800 64px var(--head); fill: var(--orange-hi); }
@media (max-width: 860px) { .wc-facts { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .wc-fact { animation: wc-rise .7s ease-out both; }
  .wc-fact:nth-child(2) { animation-delay: .12s; } .wc-fact:nth-child(3) { animation-delay: .24s; } .wc-fact:nth-child(4) { animation-delay: .36s; }
  @keyframes wc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .wc-node.hot circle { animation: wc-pulse 2.4s ease-in-out infinite; }
  @keyframes wc-pulse { 50% { filter: drop-shadow(0 0 26px rgba(229, 106, 42, .95)); } }
}

/* Ambassador enrollment: a checkout-style page, $0 today */
.enr-head { text-align: center; margin-bottom: 34px; }
.enr-head h1 { font-size: 2.4rem; margin: 6px 0 8px; }
.enr-head p { color: var(--cream); margin: 0; }
.enr-msg-box { max-width: 560px; margin: 0 auto; }
.enr-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; max-width: 1100px; margin: 0 auto; }
.enr-main { display: flex; flex-direction: column; gap: 20px; }
.enr-step { border: 1px solid var(--line); padding: 22px 24px 8px; margin: 0; }
.enr-step legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; font: 800 1.05rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--white); }
.enr-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-hi); color: var(--ink); font-size: .9rem; box-shadow: 0 0 12px rgba(229, 106, 42, .55); }
.enr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.enr-link { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--ink); }
.enr-link span { display: flex; align-items: center; padding: 0 10px 0 12px; color: var(--muted); font-size: .95rem; white-space: nowrap; background: rgba(255, 255, 255, .03); }
.enr-link input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.enr-step .ckout-check { margin-bottom: 16px; }
.enr-side { position: sticky; top: 96px; }
.enr-summary { padding: 24px; border: 2px solid var(--orange); }
.enr-summary h2 { font-size: 1.3rem; margin: 0 0 14px; }
.enr-line { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; color: var(--cream); }
.enr-line b { color: var(--white); }
.enr-included { list-style: none; margin: 6px 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.enr-included li { position: relative; padding: 5px 0 5px 24px; color: var(--cream); font-size: .95rem; }
.enr-included li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.enr-addon { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 12px; border: 1px dashed rgba(229, 106, 42, .6); border-radius: 10px; background: rgba(229, 106, 42, .06); cursor: pointer; }
.enr-addon input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--orange-hi); }
.enr-addon span { color: var(--cream); font-size: .92rem; line-height: 1.45; }
.enr-addon strong { display: block; color: var(--white); font-size: 1rem; }
.enr-total { border-top: 1px solid var(--line); margin-bottom: 16px; padding-top: 12px; font: 800 1.15rem/1 var(--head); }
.enr-total b { color: var(--orange-hi); font-size: 1.5rem; }
.enr-note { margin: 12px 0 0; }
@media (max-width: 900px) { .enr-grid { grid-template-columns: 1fr; } .enr-side { position: static; } }
@media (max-width: 560px) { .enr-row { grid-template-columns: 1fr; } }

/* Ambassador account: First steps */
.first-steps { border-color: rgba(229, 106, 42, .55); }
.fs-script { margin: 8px 0 12px; padding: 14px 16px; border-left: 3px solid var(--orange-hi); background: rgba(229, 106, 42, .06); border-radius: 0 8px 8px 0; color: var(--cream); font-style: normal; line-height: 1.55; }
.fs-facts { margin-top: 12px; }

/* Mission Brief entry (Adam 2026-10-29): after the opt-in, the hero fills the screen with one Enter
   button; Enter shrinks it back to the normal hero and lands on 01. The brief stays closed until then. */
.mission-ok [data-brief][hidden] { display: none !important; }
.mh-enter { display: none; }
.mhud-hero { transition: min-height .9s cubic-bezier(.2, .7, .2, 1); }
.mission-ok .mhud-hero:not(.mh-in) { min-height: calc(100svh - 124px); display: flex; align-items: center; }
.mission-ok .mhud-hero:not(.mh-in) .wrap { width: 100%; }
.mission-ok .mhud-hero:not(.mh-in) h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.mission-ok .mhud-hero:not(.mh-in) .mhud-radar { width: 176px; height: 176px; }
.mission-ok .mhud-hero:not(.mh-in) .mh-enter { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 34px; transition: opacity .4s, transform .4s; }
.mh-status { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 .8rem/1 var(--head); letter-spacing: .26em; text-transform: uppercase; color: var(--cyan); }
.mh-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4CC38A; box-shadow: 0 0 10px #4CC38A; }
.mh-enter-btn { min-width: 240px; padding: 18px 34px; font-size: 1.05rem; letter-spacing: .26em; box-shadow: 0 0 26px rgba(229, 106, 42, .55); }
.mhud-hero.mh-leaving .mh-enter { opacity: 0; transform: translateY(-12px); }
.mhud-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 18px var(--cyan); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .mh-enter-btn { animation: mh-pulse 2.2s ease-in-out infinite; }
  @keyframes mh-pulse { 50% { box-shadow: 0 0 44px rgba(229, 106, 42, .9); } }
  .mh-status::before { animation: blink 1.6s ease-in-out infinite; }
  .mhud-hero.mh-leaving::after { animation: mh-scan .9s ease-out forwards; }
  @keyframes mh-scan { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }
}
.mhud-hero .mh-status { color: var(--cyan); }

/* Ambassador area (Adam 2026-10-29): its own space. Header = logo (home) + the ambassador menu; footer =
   only the bottom legal line. The Mission Brief's Enter screen shows no header or footer at all. */
.amb-area .site-header .header-actions > :not(.menu-toggle) { display: none; }
.amb-area .brand { position: relative; padding-bottom: 14px; }
.amb-area .brand-tag { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 9px; overflow: visible; }
.amb-area .brand-tag text { font: 700 8.6px var(--head); fill: var(--orange-hi); }
.amb-area .brand img.word { display: block; }
.amb-area .site-footer { padding: 22px 0; }
.amb-area .site-footer .cols { display: none; }
.amb-area .site-footer .legal { margin-top: 0; border-top: 0; }
html.mission-ok:not(.mh-entered) .site-header, html.mission-ok:not(.mh-entered) .site-footer { display: none; }
html.mission-ok:not(.mh-entered) .mhud-hero:not(.mh-in) { min-height: 100svh; }

/* ---------- Ambassador account: HUD look, Mission home base, guided setup (2026-10-29) ---------- */
/* HUD tab rail: numbered tabs, cyan readouts, glowing active edge. */
.amb-acct .acct-tabs { counter-reset: acct; }
.amb-acct .acct-tab::before { counter-increment: acct; content: counter(acct, decimal-leading-zero); display: inline-block; min-width: 26px; margin-right: 8px; color: var(--hud-dim); font: 700 .72rem/1 var(--head); letter-spacing: .06em; }
.amb-acct .acct-tab[aria-selected="true"]::before { color: var(--hud); text-shadow: 0 0 8px rgba(36, 201, 241, .6); }
.amb-acct .acct-tab[aria-selected="true"] { color: var(--white); }
.amb-acct .acct-console .acct-tabs, .amb-acct .acct-tabs { box-shadow: inset 0 1px 0 rgba(36, 201, 241, .25), 0 0 22px rgba(36, 201, 241, .06); }
/* HUD cards: cyan header readout over a dashed rule, corner brackets. */
.amb-acct .acct-panel .card, .amb-acct .acct-panel .notice-card { position: relative; }
.amb-acct .acct-panel .card > h2:first-child, .amb-acct .lo-tool > h2 { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px dashed var(--hud-line); font: 700 .8rem/1.2 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--hud); }
.amb-acct .acct-panel .card > h2:first-child::before, .amb-acct .lo-tool > h2::before { content: ""; width: 7px; height: 7px; background: var(--hud); border-radius: 1px; box-shadow: 0 0 8px var(--hud); }
.amb-acct .acct-panel .card::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-right: 2px solid var(--hud); border-bottom: 2px solid var(--hud); border-radius: 0 0 6px 0; opacity: .8; pointer-events: none; }

/* Mission: sub-tabs and panes. */
.acct-panel[data-panel="mission"]:not([hidden]) { display: block; }
.mis-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.mis-sub button { padding: 10px 18px; border: 1px solid var(--hud-line); border-radius: 999px; background: transparent; color: var(--cream); font: 700 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.mis-sub button[aria-selected="true"] { background: var(--hud); border-color: var(--hud); color: var(--ink); box-shadow: 0 0 14px rgba(36, 201, 241, .45); }
.mis-sub-sm { margin-bottom: 20px; }
.mis-sub-sm button { padding: 8px 14px; font-size: .72rem; }
.mis-pane[data-mis-pane="metrics"]:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
@media (max-width: 999px) { .mis-pane[data-mis-pane="metrics"]:not([hidden]) { grid-template-columns: 1fr; } }
.pb-steps { margin: 6px 0 18px; padding-left: 22px; color: var(--cream); line-height: 1.8; }
.pb-steps li::marker { color: var(--orange-hi); font-weight: 800; }
.lo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lo-tool { display: flex; flex-direction: column; gap: 12px; }
.lo-tool > h2 { margin: 0; }
.lo-tool p { margin: 0; }
.lo-tool .btn { align-self: flex-start; }
.fs-script { margin: 8px 0 12px; padding: 14px 16px; border-left: 3px solid var(--orange-hi); background: rgba(229, 106, 42, .06); border-radius: 0 8px 8px 0; color: var(--cream); font-style: normal; line-height: 1.55; }

/* Guided setup: a floating HUD panel until it's finished. */
.ob { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto; background: #12161A; border: 1px solid var(--hud); border-radius: 14px; box-shadow: 0 0 0 1px rgba(36, 201, 241, .15), 0 18px 50px rgba(0, 0, 0, .6), 0 0 28px rgba(36, 201, 241, .18); }
.ob[hidden] { display: none; }
.ob-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px dashed var(--hud-line); }
.ob-title { font: 800 .82rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--hud); }
.ob-count { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--orange-hi); color: var(--ink); font: 800 .75rem/1 var(--head); }
.ob-min { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--cream); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.ob-steps { list-style: none; margin: 0; padding: 6px 0; }
.ob-steps li { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.ob-step-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; background: none; border: 0; color: var(--white); font: 700 .95rem/1.3 var(--head); text-align: left; cursor: pointer; }
.ob-step-h i { flex: none; width: 20px; height: 20px; border: 2px solid var(--hud-dim); border-radius: 50%; }
.ob-steps li.done .ob-step-h { color: var(--muted); }
.ob-steps li.done .ob-step-h i { border-color: #4CC38A; background: #4CC38A; box-shadow: inset 0 0 0 3px #12161A; }
.ob-body { display: none; padding: 0 16px 16px 48px; color: var(--cream); font-size: .92rem; }
.ob-steps li.open .ob-body { display: block; }
.ob-body p { margin: 0 0 10px; }
.ob-body .fs-script { font-size: .9rem; }
.ob-done { padding: 16px; border-top: 1px dashed var(--hud-line); color: var(--cream); }
.ob-done p { margin: 0 0 12px; }
.ob.min { width: auto; }
.ob.min .ob-steps, .ob.min .ob-done { display: none; }
.ob.min .ob-head { cursor: pointer; }
@media (max-width: 640px) { .ob { right: 8px; left: 8px; bottom: 8px; width: auto; } }
.ob { bottom: 84px; }

/* Mission Brief header: the menu is the presentation's sections */
.nav-brief { gap: 22px; }
.nav-brief a { font-size: .72rem; letter-spacing: .12em; }
@media (max-width: 1150px) and (min-width: 821px) { .nav-brief { gap: 14px; } .nav-brief a { font-size: .66rem; letter-spacing: .08em; } }
section[id] { scroll-margin-top: 84px; }
.mhud-sub.cn-earn { margin-top: -24px; font-weight: 700; color: var(--hud); }
/* Mission > Metrics: the metrics boxes moved under Mission keep their layout (stats and link results span
   the full width, the two smaller cards share a row with matching heights). */
.mis-pane[data-mis-pane="metrics"]:not([hidden]) { align-items: stretch; }
.mis-pane[data-mis-pane="metrics"] > .full { grid-column: 1 / -1; }
.mis-pane[data-mis-pane="metrics"] > * { margin-top: 0; min-width: 0; }
.mis-pane[data-mis-pane="metrics"] .acct-stats { margin-top: 0; }

/* Playbook: each tab is a conversation; numbered steps, yes / no branches, a button to the next tab. */
.pb-note { margin: -6px 0 18px; }
.pb-flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.pb-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--hud-line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.pb-step h4 { margin: 6px 0 10px; font: 800 .82rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.pb-n { width: 40px; height: 35px; display: grid; place-items: center; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--orange-hi); color: var(--ink); font: 800 .95rem/1 var(--head); }
.pb-msg { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: start; }
.pb-who { padding-top: 22px; font: 700 .68rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--hud); }
.pb-msg .pb-copy { margin-top: 10px; padding: 8px 14px; font-size: .72rem; }
.pb-msg:not(:has(.pb-copy)) .fs-script { grid-column: 2 / 4; border-left-color: var(--hud); background: rgba(36, 201, 241, .05); }
.pb-branch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.pb-branch p { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .03); font-size: .92rem; line-height: 1.5; }
.pb-yes, .pb-no { display: block; margin-bottom: 4px; font: 800 .7rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; }
.pb-yes { color: var(--hud); } .pb-no { color: var(--orange-hi); }
.pb-next { margin-top: 4px; }
@media (max-width: 640px) {
  .pb-step { grid-template-columns: 1fr; gap: 6px; }
  .pb-msg { grid-template-columns: 1fr auto; }
  .pb-who { grid-column: 1 / -1; padding-top: 4px; }
  .pb-msg:not(:has(.pb-copy)) .fs-script { grid-column: 1 / -1; }
  .pb-branch { grid-template-columns: 1fr; }
}

/* Tracker rows: label, the count, the goal under it (goals are minimums, never "0 of 30"). */
.mis-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 6px; }
.mis-row .mis-count { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; color: var(--hud); }
.mis-row .mis-goal { grid-column: 1; }
.mis-row .bar { grid-column: 1 / -1; }
.mis-row.done .mis-count { color: var(--ok); }

/* Loadout: the link box runs wide with the QR code beside it; tools sit in a row under it. */
.lo-grid > .lo-link { grid-column: 1 / -1; }
.lo-link-body { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.lo-link-url { width: 100%; padding: 16px 18px; background: var(--ink); color: var(--hud); border: 1px solid var(--hud-line); border-radius: 8px; font: 700 1.15rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .02em; box-shadow: inset 0 0 18px rgba(36, 201, 241, .06); }
.lo-link .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.lo-link .btn { align-self: auto; }
.lo-qr { width: 132px; height: 132px; background: #fff; border-radius: 6px; outline: 1px solid var(--hud-dim); outline-offset: 6px; }
@media (max-width: 640px) { .lo-link-body { grid-template-columns: 1fr; } .lo-qr { justify-self: start; } }

/* Ambassador account = a full-screen workspace on a laptop or desktop: edge to edge, the menu pinned
   down the left, the marketing footer reduced to the legal line. Customers keep the normal page. */
@media (min-width: 1000px) {
  .amb-acct .site-header .wrap, .amb-acct .acct-wrap { max-width: none; padding: 0 32px; }
  .amb-acct .section:has(.acct-wrap) { padding: 26px 0 40px; }
  .amb-acct .acct-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--hud-line); }
  .amb-acct .acct-head h1 { font-size: 1.7rem; }
  .amb-acct .acct-body { grid-template-columns: 236px 1fr; gap: 26px; }
  .amb-acct .acct-console .acct-tabs { top: 88px; min-height: calc(100vh - 120px); }
  .amb-acct .mis-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
  .amb-acct .mis-row, .amb-acct .mis-row:last-child { padding: 16px 18px; border: 1px solid var(--hud-line); border-radius: 8px; background: rgba(36, 201, 241, .03); align-content: start; }
  .amb-acct .lo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) and (max-width: 1299px) { .amb-acct .lo-grid { grid-template-columns: repeat(2, 1fr); } }
.amb-acct .site-footer { padding: 22px 0; }
.amb-acct .site-footer .cols { display: none; }
.amb-acct .site-footer .legal { margin-top: 0; border-top: 0; }
@media (min-width: 1000px) { .amb-acct .site-footer .wrap { max-width: none; padding: 0 32px; } }
/* Tracker tiles: label, then the count on its own line, then the goal and the bar (same spot in every tile). */
.amb-acct .mis-row { grid-template-columns: 1fr; }
.amb-acct .mis-row .mis-count { grid-column: 1; grid-row: auto; font-size: 2.2rem; margin: 4px 0 0; }
.amb-acct .mis-row .mis-goal, .amb-acct .mis-row .bar { grid-column: 1; }
@media (max-width: 640px) {
  .pb-msg { grid-template-columns: 1fr; gap: 6px; }
  .pb-msg .fs-script, .pb-msg:not(:has(.pb-copy)) .fs-script { grid-column: 1; margin-bottom: 0; }
  .pb-msg .pb-copy { margin-top: 0; justify-self: start; }
  .lo-link-url { font-size: .9rem; padding: 14px; }
}

/* People table headers with an "i". */
.th-info { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.acct-table .flag-pick select { max-width: 220px; }

/* Playbook on a wide screen: the directives sit in their own panel on the left, the conversation reads in a
   comfortable column on the right; each step is its own block with room between them. */
.pb-steps { position: relative; }
@media (min-width: 1000px) {
  .amb-acct [data-pb-pane]:not([hidden]) { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 860px); column-gap: 40px; align-items: start; }
  .amb-acct [data-pb-pane] > * { grid-column: 1; }
  .amb-acct [data-pb-pane] > .pb-flow { grid-column: 2; grid-row: 1 / span 8; margin-top: 0; gap: 22px; }
  .amb-acct [data-pb-pane] > .pb-steps { margin: 0 0 14px; padding: 18px 18px 18px 40px; border: 1px solid var(--hud-line); border-radius: 10px; background: rgba(36, 201, 241, .03); }
  .amb-acct [data-pb-pane] > .pb-steps::before { content: "Directives"; position: absolute; top: -9px; left: 14px; padding: 0 8px; background: var(--panel); font: 700 .66rem/1.2 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--hud); }
  .amb-acct [data-pb-pane] > .pb-note { margin: 0 0 14px; }
  .amb-acct [data-pb-pane] > h2 { margin-bottom: 18px; }
  .amb-acct .pb-step { padding: 20px 22px; }
}
.person-acts { align-items: center; }
.person-acts .btn { padding: 9px 14px; font-size: .72rem; line-height: 1; }

/* People (ambassadors): filters and sort above the list. */
.ppl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; }
.ppl-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ppl-filter button { padding: 8px 14px; border: 1px solid var(--hud-line); border-radius: 999px; background: transparent; color: var(--cream); font: 700 .7rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.ppl-filter button[aria-pressed="true"] { background: var(--hud); border-color: var(--hud); color: var(--ink); }
.ppl-sort { display: flex; align-items: center; gap: 8px; font: 700 .7rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ppl-sort select { background: var(--ink); color: var(--cream); border: 1px solid var(--hud-line); border-radius: 6px; padding: 8px 10px; font: inherit; letter-spacing: .04em; text-transform: none; }
[data-people-list] { overflow-x: auto; }
/* Taste & Talk registration page (/taste.html?host=CODE). */
.tt-reg { max-width: 720px; }
.tt-reg-dates { display: grid; gap: 12px; margin-top: 26px; }
.tt-reg-date { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tt-reg-date > div { display: flex; flex-direction: column; gap: 4px; }
.tt-reg-date.on { border-color: var(--orange-hi); }
.tt-reg-form { margin-top: 18px; }
.tt-reg [data-reg-done] { margin-top: 22px; }
@media (max-width: 560px) { .tt-reg-date { flex-direction: column; align-items: flex-start; } }
.tt-reg-link .btn { align-self: flex-start; }
/* Focus pages (meta "focus"): one job, no marketing footer. "bare" also drops the header menu. */
.focus .site-footer { padding: 22px 0; }
.focus .site-footer .cols { display: none; }
.focus .site-footer .legal { margin-top: 0; border-top: 0; }
.focus-bare .site-header .nav, .focus-bare .site-header .header-actions { display: none; }
.tt-private { display: inline-flex; gap: 8px; align-items: center; }
.tt-private select { background: var(--ink); color: var(--cream); border: 1px solid var(--hud-line); border-radius: 6px; padding: 9px 10px; font: 600 .82rem/1 var(--body, inherit); }
/* Ambassador Taste & Talk tab: hosting gets the full width so the dates and their buttons sit in a row. */
@media (min-width: 1000px) { .amb-acct [data-tt-host-card] { grid-column: 1 / -1; } .amb-acct .tt-host { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; align-items: end; } .amb-acct .tt-host > .tt-roasts, .amb-acct .tt-host > .tip-host, .amb-acct .tt-host > p, .amb-acct .tt-host > button { grid-column: 1 / -1; } .amb-acct .tt-host > button { justify-self: start; min-width: 220px; } }
/* Network map (/ambassador/network.html): the whole window is the map; tools float on top. */
.nm { position: relative; height: calc(100vh - 73px); height: calc(100dvh - 73px); overflow: hidden; background: radial-gradient(circle at 50% 55%, rgba(36, 201, 241, .07), transparent 60%), #0d0f12; }
.focus-bare:has(.nm) .site-footer { display: none; }
.nm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.nm-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.nm-top > * { pointer-events: auto; }
.nm-title { display: flex; flex-direction: column; gap: 4px; }
.nm-title strong { font: 800 1.25rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--white); }
.nm-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-stats span { padding: 8px 12px; border: 1px solid var(--hud-line); border-radius: 8px; background: rgba(13, 15, 18, .85); font-size: .85rem; color: var(--muted); }
.nm-stats b { font: 800 1rem/1 var(--head); color: var(--hud); margin-right: 2px; }
.nm-tools { display: flex; gap: 8px; }
.nm-tools input { width: 180px; padding: 10px 12px; background: rgba(13, 15, 18, .9); color: var(--cream); border: 1px solid var(--hud-line); border-radius: 8px; font: inherit; }
.nm-legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: calc(100% - 32px); padding: 10px 14px; border: 1px solid var(--hud-line); border-radius: 8px; background: rgba(13, 15, 18, .85); font-size: .8rem; color: var(--muted); pointer-events: none; }
.nm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.nm-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lg-you { background: transparent; border: 2px solid var(--orange-hi); border-radius: 2px !important; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--orange-hi); }
.lg-on { background: rgb(36, 201, 241); box-shadow: 0 0 8px rgb(36, 201, 241); }
.lg-off { background: rgba(36, 201, 241, .35); }
.lg-never { border: 1.5px solid rgb(120, 126, 134); }
.lg-auto { border: 2px solid var(--orange-hi); }
.lg-amb { background: var(--orange-hi); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); border-radius: 0 !important; }
.nm-note { position: absolute; top: 50%; left: 50%; transform: translate(-50%, 90px); max-width: 420px; margin: 0; padding: 12px 16px; text-align: center; border: 1px solid var(--hud-line); border-radius: 8px; background: rgba(13, 15, 18, .9); color: var(--cream); }
.nm-card { position: absolute; top: 96px; right: 16px; width: 300px; max-width: calc(100% - 32px); padding: 20px; border: 1px solid var(--hud-line); border-radius: 10px; background: rgba(16, 18, 22, .96); box-shadow: 0 0 30px rgba(36, 201, 241, .12); }
.nm-card h2 { margin: 6px 0 4px; font-size: 1.5rem; }
.nm-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.nm-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 16px 0 18px; font-size: .92rem; }
.nm-facts dt { color: var(--muted); font: 700 .7rem/1.6 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.nm-facts dd { margin: 0; color: var(--cream); }
@media (max-width: 640px) {
  .nm-tools input { width: 130px; }
  .nm-stats span { font-size: .75rem; padding: 6px 9px; }
  .nm-legend { font-size: .7rem; gap: 4px 10px; }
  .nm-card { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; }
}
.ppl-map { margin-left: auto; padding: 9px 14px; font-size: .72rem; }
.nm-note { top: auto; bottom: 72px; transform: translateX(-50%); font-size: .9rem; }
.lg-amb { background: rgb(236, 228, 214) !important; }
.lg-cov { background: rgb(242, 193, 78); box-shadow: 0 0 8px rgb(242, 193, 78); }
.lg-half { background: rgba(242, 193, 78, .45); border: 1.5px solid rgb(242, 193, 78); }

/* Mission tracker: Growth Bonus card. */
.gb { margin: 16px 0 6px; padding: 16px 18px; border: 1px solid var(--hud-line); border-radius: 10px; background: rgba(242, 193, 78, .04); }
.gb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.gb-rate { font: 800 1.05rem/1 var(--head); color: var(--cream); letter-spacing: .04em; }
.gb-rate.on { color: rgb(242, 193, 78); text-shadow: 0 0 12px rgba(242, 193, 78, .5); }
.gb-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.gb-note { margin: 12px 0 0; color: var(--cream); }
@media (max-width: 640px) { .gb-bars { grid-template-columns: 1fr; } }

.gb-foot strong { color: rgb(242, 193, 78); }

/* Ambassador-made orders: the Send Order dialog and the customer's order page. */
.offer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offer-row input { width: 80px; padding: 8px 10px; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.offer-total { margin: 12px 0; font-weight: 700; color: var(--cream); }
.ckout-off span:last-child { color: rgb(242, 193, 78); }
.ord { max-width: 640px; }
.ord-card, .ord-signin { margin-top: 24px; }
.ord-card .btn.block { margin-top: 18px; }
.ord-auto { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.ord-auto p { margin: 6px 0 12px; }
.acct-tab-out { text-decoration: none; display: block; }
/* Overview: the network map box. */
.ov-net { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; }
.ov-net h2 { margin-bottom: 6px; }
.ov-net-art svg { width: 120px; height: 80px; display: block; }
.ov-net-lines path { stroke: rgba(36, 201, 241, .45); stroke-width: 1.2; fill: none; }
.ov-net-dots circle { fill: rgb(36, 201, 241); filter: drop-shadow(0 0 4px rgba(36, 201, 241, .8)); animation: ovpulse 2.4s ease-in-out infinite; }
.ov-net-dots circle:nth-child(2n) { animation-delay: .8s; } .ov-net-dots circle:nth-child(3n) { animation-delay: 1.6s; }
.ov-net-you { fill: #16181b; stroke: var(--orange-hi); stroke-width: 2; }
@keyframes ovpulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ov-net-dots circle { animation: none; } }
@media (max-width: 640px) { .ov-net { grid-template-columns: 1fr; } .ov-net .btn { justify-self: start; } }
/* Overview on a laptop: link, numbers and the network side by side in one row (an overview tool).
   From 1360px: at 1200px the stat cards were wider than their column and ran under the network card. */
@media (min-width: 1360px) {
  .amb-acct [data-panel="overview"]:not([hidden]) { grid-template-columns: 1.35fr 1.25fr 0.9fr; }
  .amb-acct [data-panel="overview"] > .acct-link { grid-column: 1; grid-row: 1; }
  .amb-acct [data-panel="overview"] > [data-stats] { grid-column: 2; grid-row: 1; }
  .amb-acct [data-panel="overview"] > .ov-net { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; text-align: center; gap: 14px; }
  .amb-acct .ov-net-art svg { width: 100%; max-width: 220px; height: auto; margin: 6px auto 0; }
  .amb-acct .ov-net > div:not(.ov-net-art) h2 { justify-content: center; }
  .amb-acct .ov-net .btn { width: 100%; }
}
@media (min-width: 1000px) and (max-width: 1359px) { .amb-acct [data-panel="overview"] > .ov-net { grid-column: 1 / -1; } }
.amb-acct [data-panel="overview"] > * { min-width: 0; }
@media (min-width: 1360px) { .amb-acct .ov-net .btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; } }

/* Mission Brief 06 New and recurring: two cards, then a model chart (orange = new, cyan = recurring). */
.nr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.nr-card { padding: 26px; }
.nr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.nr-top h3 { margin: 0; }
.nr-rate { font: 800 2.2rem/1 var(--head); text-align: right; }
.nr-rate small { display: block; margin-top: 6px; font: 600 .72rem/1.3 var(--body, inherit); letter-spacing: .04em; color: var(--muted); }
.nr-new .nr-rate { color: #E56A2A; } .nr-rec .nr-rate { color: #24C9F1; }
.nr-pros { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.nr-pros li { display: flex; gap: 10px; align-items: center; color: var(--cream); }
.nr-pros svg { width: 18px; height: 18px; flex: none; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nr-new .nr-pros svg { stroke: #E56A2A; } .nr-rec .nr-pros svg { stroke: #24C9F1; }
.nr-trade { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.nr-trade b { display: block; margin-bottom: 4px; font: 700 .7rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.nr-chart-card { margin-top: 26px; padding: 26px; }
.nr-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.nr-chart-head h3 { margin: 0; }
.nr-legend { display: flex; gap: 18px; font-size: .88rem; color: var(--cream); }
.nr-legend span, .nr-tip span { display: inline-flex; align-items: center; gap: 8px; }
.nr-k-new, .nr-k-rec { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.nr-k-new { background: #E56A2A; } .nr-k-rec { background: #1A9CC2; }
.nr-chart { position: relative; margin-top: 14px; }
.nr-svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.nr-grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.nr-ax { fill: var(--muted); font: 500 11px var(--body, sans-serif); }
.nr-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 0; }
.nr-l-new { stroke: #E56A2A; } .nr-l-rec { stroke: #1A9CC2; }
.nr-wait .nr-line { stroke-dashoffset: 2000; }
.nr-go .nr-line { transition: stroke-dashoffset 2.2s ease-out; } .nr-go .nr-l-rec { transition-delay: .5s; }
.nr-end { fill: var(--cream); font: 700 12px var(--body, sans-serif); }
.nr-cross { stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.nr-dot { stroke: #16181b; stroke-width: 2; } .nr-d-new { fill: #E56A2A; } .nr-d-rec { fill: #1A9CC2; }
.nr-hit { fill: transparent; cursor: crosshair; }
.nr-tip { position: absolute; top: 8px; display: grid; gap: 6px; padding: 10px 12px; min-width: 210px; border: 1px solid var(--line); border-radius: 8px; background: rgba(16, 18, 22, .96); font-size: .85rem; color: var(--cream); pointer-events: none; }
.nr-table { margin-top: 14px; } .nr-table summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.nr-table table { margin-top: 10px; }
.nr-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .nr-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .nr-wait .nr-line { stroke-dashoffset: 0; } .nr-go .nr-line { transition: none; } }

/* Ambassador account sub-tabs: a panel's parts, one at a time. */
.acct-subnav { grid-column: 1 / -1; margin-bottom: 4px; }
.sub-off { display: none !important; }
.seg .seg-map { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
/* Mission > Ranks: Rank 1 to Rank 10, scroll sideways; where you are glows. */
.rank-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding: 6px 2px 14px; margin-top: 12px; scroll-snap-type: x proximity; }
.rank-card { scroll-snap-align: center; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--hud-line); border-radius: 10px; background: rgba(255, 255, 255, .02); min-height: 190px; }
.rank-card.done { border-color: rgba(36, 201, 241, .45); }
.rank-card.now { border-color: var(--hud); box-shadow: 0 0 22px rgba(36, 201, 241, .25); background: rgba(36, 201, 241, .06); }
.rank-n { font: 700 .7rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.rank-card.now .rank-n { color: var(--hud); }
.rank-rate { font: 800 2rem/1 var(--head); color: var(--cream); margin-top: 6px; }
.rank-sub { font-size: .8rem; color: var(--muted); }
.rank-req { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; color: var(--cream); line-height: 1.35; }
.rank-next { margin-top: 10px; display: grid; gap: 12px; max-width: 620px; }
.rank-next h4 { margin: 0; }
/* Keep wide rows (Ranks) inside the page: grid children may shrink, the row scrolls on its own. */
.acct-body > *, .acct-panel > *, .mis-pane > * { min-width: 0; }
[data-mis-pane="ranks"] .card { overflow: hidden; }
.rank-row { scrollbar-width: thin; scrollbar-color: rgba(36, 201, 241, .5) transparent; }
.rank-row::-webkit-scrollbar { height: 6px; } .rank-row::-webkit-scrollbar-thumb { background: rgba(36, 201, 241, .5); border-radius: 3px; } .rank-row::-webkit-scrollbar-track { background: transparent; }

/* Account pages: no cart, account icon, Join or mobile menu; just the two new-tab links. */
.focus-account .site-header .header-actions { display: none; }
.focus-account .nav-acct { display: flex; gap: 22px; margin-left: auto; }
@media (max-width: 820px) { .focus-account .nav-acct { position: static; display: flex; background: none; padding: 0; border: 0; box-shadow: none; flex-direction: row; } .focus-account .nav-acct a { padding: 6px 0; font-size: .78rem; } }
@media (max-width: 820px) { .focus-account .nav-acct a { border: 0 !important; } }

/* Ranks, one at a time: arrows, a ring with how close you are, a bar per requirement. */
.rank-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.rank-nav strong { font: 800 1.05rem/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--cream); text-align: center; }
.rank-arrow { width: 40px; height: 40px; border: 1px solid var(--hud-line); border-radius: 8px; background: transparent; color: var(--hud); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rank-arrow:disabled { opacity: .25; cursor: default; }
.rank-body { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center; padding-top: 20px; }
.rank-ring { position: relative; width: 180px; height: 180px; }
.rank-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rr-bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.rr-fg { fill: none; stroke: var(--hud); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s ease; filter: drop-shadow(0 0 6px rgba(36, 201, 241, .5)); }
.rank-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 2.4rem/1 var(--head); color: var(--cream); }
.rank-reqs h4 { margin: 0 0 12px; }
.rank-reqs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rank-reqs li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; row-gap: 8px; align-items: center; }
.rank-reqs .bar { grid-column: 2; }
.rq-mark { font-weight: 800; color: #e0605a; }
.rank-reqs li.ok .rq-mark { color: var(--ok, #4cc38a); }
.rank-reqs li.ok .bar span { background: var(--ok, #4cc38a); }
.rq-label { color: var(--cream); }
.rq-count { grid-column: 2; justify-self: end; font-size: .8rem; color: var(--muted); margin-top: -4px; }
.rank-foot { margin: 16px 0 0; }
@media (max-width: 640px) { .rank-body { grid-template-columns: 1fr; justify-items: center; } .rank-reqs { width: 100%; } .rank-ring { width: 150px; height: 150px; } }
/* ---- Account accents and contrast (Adam 2026-10-30: "bland, dry, flat"). One color, one job:
   cyan = your numbers and progress, gold = money, orange = actions and where you are. ---- */
.focus-account .acct-console .card { background: linear-gradient(180deg, #2A2F34 0%, #202326 100%); border-color: rgba(36, 201, 241, .28); box-shadow: inset 0 2px 0 rgba(36, 201, 241, .55), 0 14px 32px rgba(0, 0, 0, .45); }
.focus-account .acct-console .card:hover { border-color: rgba(36, 201, 241, .55); box-shadow: inset 0 2px 0 rgba(36, 201, 241, .85), 0 0 26px rgba(36, 201, 241, .12), 0 14px 32px rgba(0, 0, 0, .45); }
.focus-account .acct-console .card.stat .acct-num { font-size: 2.3rem; color: #4FD8F8; text-shadow: 0 0 18px rgba(36, 201, 241, .45); }
.focus-account .acct-console .card.stat.is-money { box-shadow: inset 0 2px 0 rgba(242, 193, 78, .75), 0 14px 32px rgba(0, 0, 0, .45); border-color: rgba(242, 193, 78, .3); }
.focus-account .acct-console .card.stat.is-money .acct-num { color: #F2C14E; text-shadow: 0 0 18px rgba(242, 193, 78, .4); }
.focus-account .acct-console .acct-label { color: var(--white); }
/* Bars: a visible track, a bright fill. */
.focus-account .bar { height: 12px; background: #0E1114; border-color: #3B444A; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.focus-account .bar span, .focus-account .acct-console .bar span, .focus-account .bar.hud span { background: linear-gradient(90deg, #0FA3C7, #4FD8F8); box-shadow: 0 0 12px rgba(36, 201, 241, .6); }
/* Menu: where you are glows orange. */
.focus-account .acct-console .acct-tabs { background: linear-gradient(180deg, #24282C, #1C1F22); border-color: rgba(36, 201, 241, .3); }
.focus-account .acct-console .acct-tab[aria-selected="true"] { background: linear-gradient(90deg, rgba(229, 106, 42, .28), rgba(229, 106, 42, .04)); border-left-color: var(--orange-hi); color: var(--white); box-shadow: inset 0 0 0 1px rgba(229, 106, 42, .25); }
.focus-account .acct-console .acct-tab:hover { color: var(--white); background: rgba(36, 201, 241, .06); }
/* Sub-tabs. */
.focus-account .mis-sub button { background: #24282C; border-color: #3B444A; }
.focus-account .mis-sub button:hover { border-color: var(--hud); }
.focus-account .mis-sub button[aria-selected="true"] { background: linear-gradient(90deg, #1BB4DC, #4FD8F8); border-color: #4FD8F8; color: #071318; box-shadow: 0 0 16px rgba(36, 201, 241, .5); }
/* Tables: a tinted header, striped rows. */
.focus-account .acct-table th { background: rgba(36, 201, 241, .1); color: #9BE7FA; }
.focus-account .acct-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.focus-account .acct-table tbody tr:hover td { background: rgba(36, 201, 241, .06); }
/* Inputs. */
.focus-account input:focus, .focus-account select:focus, .focus-account textarea:focus { outline: none; border-color: var(--hud); box-shadow: 0 0 0 3px rgba(36, 201, 241, .25); }
.focus-account .acct-console .info { color: var(--hud); border-color: rgba(36, 201, 241, .6); }
/* Tracker tiles and Growth Bonus. */
.focus-account .mis-row { background: linear-gradient(180deg, rgba(36, 201, 241, .07), rgba(36, 201, 241, .02)) !important; border-color: rgba(36, 201, 241, .3) !important; }
.focus-account .gb { background: linear-gradient(135deg, rgba(242, 193, 78, .1), rgba(242, 193, 78, .02)); border-color: rgba(242, 193, 78, .35); }
/* ---- Account, a fuller pass: every card gets a header band, number boxes get their own color,
   switches match the sub-tabs, buttons have weight. ---- */
.focus-account .acct-console .card > h2:first-child { margin: -28px -28px 18px; padding: 16px 28px; border-bottom: 1px solid rgba(36, 201, 241, .25); border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, rgba(36, 201, 241, .2), rgba(36, 201, 241, .04) 70%, transparent); }
.focus-account .acct-console .card.stat { text-align: center; background: radial-gradient(120% 90% at 50% 0%, rgba(36, 201, 241, .16), transparent 60%), linear-gradient(180deg, #2A2F34, #202326); }
.focus-account .acct-console .card.stat.is-money { background: radial-gradient(120% 90% at 50% 0%, rgba(242, 193, 78, .18), transparent 60%), linear-gradient(180deg, #2A2F34, #202326); }
.focus-account .acct-console .card.stat .acct-label { letter-spacing: .14em; }
/* The Customers / Ambassadors switch looks like the sub-tabs. */
.focus-account .seg { display: inline-flex; gap: 6px; background: none; border: 0; padding: 0; }
.focus-account .seg-btn { padding: 10px 18px; border: 1px solid #3B444A; border-radius: 999px; background: #24282C; color: var(--cream); font: 700 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; }
.focus-account .seg-btn[aria-pressed="true"] { background: linear-gradient(90deg, #1BB4DC, #4FD8F8); border-color: #4FD8F8; color: #071318; box-shadow: 0 0 16px rgba(36, 201, 241, .5); }
.focus-account .people-seg { max-width: none; }
/* Buttons: actions are orange and lit, secondary ones read clearly. */
.focus-account .acct-console .btn:not(.ghost) { background: linear-gradient(180deg, #F07A36, #C9581F); border-color: #F07A36; color: #fff; box-shadow: 0 6px 18px rgba(229, 106, 42, .3); }
.focus-account .acct-console .btn:not(.ghost):hover { background: linear-gradient(180deg, #FF8C42, #E56A2A); }
.focus-account .acct-console .btn.ghost { border-color: rgba(255, 255, 255, .55); }
.focus-account .acct-console .btn.ghost:hover { border-color: var(--hud); color: var(--hud); }
/* Chips (visits, joined, bought) and the notice strip. */
.focus-account .visit-chips > * { background: rgba(36, 201, 241, .08); border-color: rgba(36, 201, 241, .35); }
.focus-account .acct-console .notice-card { background: linear-gradient(90deg, rgba(242, 193, 78, .14), rgba(242, 193, 78, .03)); border-color: rgba(242, 193, 78, .5); }
/* The header: name and role read stronger. */
.focus-account .acct-head .eyebrow { color: var(--orange-hi); }
.focus-account .acct-head h1 { text-shadow: 0 0 24px rgba(36, 201, 241, .25); }
/* Money is gold everywhere in the account, totals brightest. */
.focus-account .acct-console .acct-table td.amt { color: #F2C14E; font-weight: 700; }
.focus-account .acct-console .acct-table tr.total td, .focus-account .acct-console .acct-table tr.total td.amt { color: #FFD36B; text-shadow: 0 0 12px rgba(242, 193, 78, .35); border-top: 1px solid rgba(242, 193, 78, .4); }
/* Account on a phone: the menu is one row you swipe (no wrapping past the edge), and nothing can push
   the page wider than the screen. */
@media (max-width: 999px) {
  body.focus-account { overflow-x: clip; }
  .focus-account .acct-console .acct-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 6px; border: 1px solid rgba(36, 201, 241, .3); border-radius: 12px; scrollbar-width: none; scroll-snap-type: x proximity; position: sticky; top: 0; z-index: 20; }
  .focus-account .acct-console .acct-tabs::-webkit-scrollbar { display: none; }
  .focus-account .acct-console .acct-tab { flex: none; white-space: nowrap; scroll-snap-align: start; padding: 10px 14px; border: 0; border-radius: 8px; }
  .focus-account .acct-console .acct-tab[aria-selected="true"] { border-bottom: 0; }
  .focus-account .acct-head-actions { display: flex; gap: 10px; }
  .focus-account .acct-head-actions .btn { flex: 1; padding-left: 10px; padding-right: 10px; }
  .focus-account .acct-wrap, .focus-account .acct-console, .focus-account .acct-body { max-width: 100%; min-width: 0; }
}
.focus-account [data-pts-balance] { color: #F2C14E; text-shadow: 0 0 18px rgba(242, 193, 78, .4); }
/* ---- Public pages, the same lift as the account (Adam 2026-10-30): cards rise off the section with a
   lit orange top edge, body text reads clearly, cards answer the mouse. Supportive, not loud. ---- */
body:not(.focus-account) .step-card { background: linear-gradient(180deg, #2B2E31 0%, #212325 100%); border-color: rgba(229, 106, 42, .22); box-shadow: inset 0 2px 0 rgba(229, 106, 42, .6), 0 16px 34px rgba(0, 0, 0, .4); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
body:not(.focus-account) .step-card:hover { transform: translateY(-4px); border-color: rgba(229, 106, 42, .5); box-shadow: inset 0 2px 0 rgba(229, 106, 42, .9), 0 0 28px rgba(229, 106, 42, .14), 0 20px 40px rgba(0, 0, 0, .45); }
body:not(.focus-account) .step-card p { color: #C9C9CC; }
body:not(.focus-account) .step-card h3 { color: var(--white); }
body:not(.focus-account) .step-card .pay-rate { text-shadow: 0 0 22px rgba(229, 106, 42, .45); }
/* Section labels and small print a step brighter. */
.section-head .eyebrow, .eyebrow { color: var(--orange-hi); }
.income-note { color: #B5B5BA; }
@media (prefers-reduced-motion: reduce) { body:not(.focus-account) .step-card, body:not(.focus-account) .step-card:hover { transition: none; transform: none; } }

/* Bulk pack: each roast in its own small box, name left, bags right (10-30 audit). */
.popup-rows { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 4px; }
.popup-row { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.popup-row span { font-size: .95rem; }
.popup-row input { flex: none; text-align: center; }
/* Small text that sits on the moving hex field gets a backing so it reads clean. */
.focus-account [data-acct-ref] { display: table; margin: 18px auto 0; padding: 6px 14px; border-radius: 999px; background: rgba(20,22,24,.88); border: 1px solid var(--line); color: var(--cream); }
.nr-sub { margin: 4px 0 0; color: var(--muted, #9aa0a6); font-size: .95rem; }

/* Brief 06 chart (10-30): pick new customers a month, a third line for customers who stop, two income sources + total. */
.nr-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 4px; }
.nr-pick-label { font: 700 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); margin-right: 6px; }
.nr-pick button { min-width: 48px; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink, #16181b); color: var(--cream); font: 700 .9rem/1 var(--head); cursor: pointer; }
.nr-pick button:hover { border-color: #E56A2A; }
.nr-pick button[aria-pressed="true"] { background: #E56A2A; border-color: #E56A2A; color: #fff; }
.nr-k-lost { display: inline-block; width: 18px; height: 0; border-top: 3px dashed #8B9099; }
.nr-l-lost { stroke: #8B9099; stroke-dasharray: 6 5; }
.nr-wait .nr-l-lost, .nr-go .nr-l-lost { stroke-dashoffset: 0; transition: none; }
.nr-d-lost { fill: #8B9099; }
.nr-tip-sum { font-weight: 700; color: var(--white, #fff); border-top: 1px solid var(--line); padding-top: 6px; }
.nr-tot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 14px; }
.nr-tot > i { font-style: normal; font: 700 1.4rem/1 var(--head); color: var(--cream); }
.nr-t { display: grid; justify-items: center; gap: 4px; min-width: 170px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.nr-t span { font: 700 .74rem/1.2 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--cream); }
.nr-t b { font: 800 1.7rem/1 var(--head); }
.nr-t small { color: var(--muted, #9aa0a6); font-size: .82rem; }
.nr-t-new { border-top: 3px solid #E56A2A; } .nr-t-rec { border-top: 3px solid #1A9CC2; }
.nr-t-new b, .nr-t-rec b { color: var(--white, #fff); }
.nr-t-sum { border-color: #D9A441; background: rgba(217,164,65,.08); } .nr-t-sum b { color: #E8B84E; }
@media (max-width: 640px) { .nr-tot > i { display: none; } .nr-t { min-width: 0; flex: 1 1 100%; } }
@media (max-width: 640px) {
  .nr-pick-label { flex: 1 1 100%; margin: 0 0 2px; }
  .nr-pick button { flex: 1 1 0; min-width: 0; padding: 10px 0; }
  .nr-legend { flex-wrap: wrap; gap: 6px 14px; }
}

/* Brief 06: customer network line (green, validated with orange + cyan on the dark card). */
.nr-k-ref { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: #6E9F3C; }
.nr-l-ref { stroke: #6E9F3C; } .nr-d-ref { fill: #6E9F3C; } .nr-go .nr-l-ref { transition-delay: .8s; }
.nr-t-ref { border-top: 3px solid #6E9F3C; } .nr-t-ref b { color: var(--white, #fff); }
.nr-tip-you { color: var(--white, #fff); font-weight: 700; }
.nr-pick + .nr-pick { margin-top: 6px; }
.nr-pick-label .info { vertical-align: middle; margin-left: 4px; }
.nr-narrow .nr-ax { font-size: 15px; } .nr-narrow .nr-end { font-size: 15px; }
@media (max-width: 640px) { .nr-tot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .nr-t { padding: 12px 8px; } .nr-t b { font-size: 1.4rem; } .nr-t span { font-size: .66rem; } }
.nr-t span { text-align: center; }
.nr-pick-ref button { display: inline-grid; gap: 3px; text-align: center; padding: 8px 14px; border-radius: 12px; font: 600 .78rem/1.1 var(--body, sans-serif); }
.nr-pick-ref button b { font: 700 .82rem/1.1 var(--head); letter-spacing: .04em; }
.nr-note + .nr-note { margin-top: 8px; }
.nr-lead { margin: 14px 0 0; color: var(--white, #fff); font-weight: 600; } .nr-lead + .nr-pick { margin-top: 6px; }

/* Team comparison page: expansion bonus line (purple, dotted + end label as the second cue). */
.nr-k-exp { display: inline-block; width: 18px; height: 0; border-top: 3px dotted #A77BD9; }
.nr-l-exp { stroke: #A77BD9; stroke-dasharray: 2 5; } .nr-wait .nr-l-exp, .nr-go .nr-l-exp { stroke-dashoffset: 0; transition: none; }
.nr-d-exp { fill: #A77BD9; } .nr-t-exp { border-top: 3px solid #A77BD9; } .nr-t-exp b { color: var(--white, #fff); }
.nr-tot-5 .nr-t { min-width: 140px; padding: 12px 12px; } .nr-tot-5 { gap: 10px; }

/* Brief chart settings (10-31): boxes with the value showing, not rows of pills. */
.nr-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.nr-set-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nr-box { display: grid; gap: 10px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.nr-box-l { font: 700 .72rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.nr-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nr-step b { font: 800 1.9rem/1 var(--head); color: var(--white, #fff); min-width: 2.5ch; text-align: center; }
.nr-step button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink, #16181b); color: var(--white, #fff); font: 700 1.3rem/1 var(--head); cursor: pointer; }
.nr-step button:hover { border-color: #E56A2A; color: #E56A2A; }
.nr-seg { display: flex; gap: 6px; }
.nr-seg button { flex: 1 1 0; display: grid; gap: 3px; justify-items: center; padding: 9px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--ink, #16181b); color: var(--cream); font: 700 .82rem/1.1 var(--head); cursor: pointer; }
.nr-seg button small { font: 500 .72rem/1.1 var(--body, sans-serif); color: var(--muted, #9aa0a6); }
.nr-seg button[aria-pressed="true"] { background: #E56A2A; border-color: #E56A2A; color: #fff; }
.nr-seg button[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .nr-set-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .nr-set, .nr-set-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .nr-tot .nr-t-sum { grid-column: 1 / -1; } }

/* Mission Brief v2: four ways to get paid. */
.mhud-grid.four { grid-template-columns: repeat(4, 1fr); max-width: 1200px; }
.g-num .g-upto { display: block; font-size: .32em; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 2px; }
.mhud-foot { max-width: 1040px; margin: 14px auto 0; text-align: center; color: var(--muted, #9aa0a6); font-size: .88rem; }
@media (max-width: 1100px) { .mhud-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mhud-grid.four { grid-template-columns: 1fr; max-width: 460px; } }
.mhud-foot { display: table; padding: 8px 16px; border-radius: 8px; background: rgba(20,22,24,.9); border: 1px solid var(--line); color: var(--cream); }

/* Brief v2: a third "how it builds" box for ambassadors (purple, matches the expansion line). */
.nr-cards-3 { grid-template-columns: repeat(3, 1fr); }
.nr-amb .nr-rate { color: #A77BD9; } .nr-amb .nr-pros svg { stroke: #A77BD9; }
@media (max-width: 1000px) { .nr-cards-3 { grid-template-columns: 1fr; } }

/* Chart settings: the number is a field you can type in (no upper limit). */
.nr-step input { width: 100%; min-width: 0; flex: 1 1 auto; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--white, #fff); font: 800 1.9rem/1 var(--head); text-align: center; padding: 4px 2px; -moz-appearance: textfield; }
.nr-step input:hover { border-color: var(--line); }
.nr-step input:focus { outline: none; border-color: #E56A2A; background: rgba(0,0,0,.25); }
.nr-step input::-webkit-outer-spin-button, .nr-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nr-step button { flex: none; }

/* Brief 05: every part the same (pill, short heading, one line, card). Menu: smaller. */
.m5-h { margin: 14px 0 6px; text-align: center; font-size: 1.45rem; }
.m5-sub { margin: 0 auto 22px; max-width: 640px; text-align: center; color: var(--cream); }
.eq-stage.m5-next { margin-top: 80px; }
.nav-brief a { font-size: .78rem; letter-spacing: .12em; }
.nav-brief { gap: 22px; }

/* Brief v2 ambassador example: duplication map + plain math (not the coffee-covered box). */
.amb-ex { max-width: 900px; margin: 0 auto; padding: 26px 28px; }
.amb-ex-tabs { margin: 0 auto 6px; width: max-content; }
.amb-ex-goal { display: block; text-align: center; margin: 8px 0 0; }
.amb-ex-goal[hidden] { display: none; }
.amb-ex-row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 10px; }
.amb-ex-map svg { width: 100%; height: auto; display: block; }
.ae-link { stroke: rgba(36, 201, 241, .45); stroke-width: 1.5; }
.ae-amb { fill: #2a2d31; stroke: #EDE6D6; stroke-width: 2; }
.ae-num { fill: #EDE6D6; font: 700 13px var(--head, sans-serif); text-anchor: middle; }
.ae-you { fill: #2a1a10; stroke: #E56A2A; stroke-width: 3; }
.ae-you-t { fill: #E56A2A; font: 800 13px var(--head, sans-serif); text-anchor: middle; letter-spacing: .08em; }
.ae-more { fill: var(--muted, #9aa0a6); font: 600 13px var(--body, sans-serif); text-anchor: middle; }
.amb-ex-calc { display: grid; gap: 10px; }
.amb-line { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.amb-line span { color: var(--cream); } .amb-line b { color: var(--white, #fff); text-align: right; }
.amb-total { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.amb-total b { font: 800 2.8rem/1 var(--head); color: #E56A2A; }
.amb-total small { color: var(--cream); font-weight: 700; }
.amb-total span { flex-basis: 100%; font: 700 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); margin-top: 6px; }
.amb-ex-note { margin: 18px 0 0; text-align: center; color: var(--muted, #9aa0a6); font-size: .88rem; }
@media (max-width: 760px) { .amb-ex-row { grid-template-columns: 1fr; } .amb-ex-map { max-width: 300px; margin: 0 auto; } }
.amb-ex-tabs { display: flex; margin-left: auto; margin-right: auto; }

/* Brief v2 section 06 Ambassadors: settings, then the same equation as new customers, then both together. */
.amb-set { max-width: 620px; margin: 28px auto 22px; }
.amb-eq-map { width: 210px; margin: 0 auto; } .amb-eq-map svg { width: 100%; height: auto; display: block; }
.amb-both { margin-top: 26px; }

/* Brief v2 (10-31 PM): editable new customers, customers total, darker setting boxes, add-it-all-up. */
.m5-set { grid-template-columns: minmax(0, 300px); justify-content: center; margin: 4px auto 18px; }
.m5-people { margin: 14px auto 0; max-width: 560px; text-align: center; color: var(--cream); font-size: .95rem; }
.m5-total { margin: 56px auto 0; max-width: 980px; padding: 22px 22px 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14,16,18,.9); }
.m5-total-h { margin: 0; text-align: center; font: 700 .8rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.m5-total .nr-tot { margin: 16px 0 14px; }
.amb-set .nr-box, .m5-box { background: rgba(14,16,18,.92); border-color: rgba(255,255,255,.12); }
.all-tot { max-width: 1100px; margin: 30px auto 0; }
.all-tot .nr-t { background: rgba(14,16,18,.92); padding: 18px 16px; }
.all-tot .nr-t b { font-size: 2rem; }
.all-tot .all-sum { padding: 22px 26px; } .all-tot .all-sum b { font-size: 2.6rem; }
.nr-t-ref { border-top: 3px solid #6E9F3C; }
.m5-people { display: table; max-width: 760px; padding: 8px 16px; border-radius: 8px; background: rgba(14,16,18,.9); border: 1px solid var(--line); }

.amb-stages { max-width: 760px; margin: 14px auto 0; text-align: center; color: var(--muted, #9aa0a6); font-size: .86rem; }
.amb-eq .amb-stages { grid-column: 1 / -1; margin: 0 auto; padding: 14px 24px 18px; }
.nr-t { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 2px; } .nr-t span { flex-basis: 100%; text-align: center; } .nr-t small { font-size: .9rem; font-weight: 700; color: var(--cream); }
.nr-t { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; column-gap: 2px; } .nr-t span { grid-column: 1 / -1; }
.nr-t { display: grid; grid-template-columns: none; justify-items: center; } .nr-t span { grid-column: auto; } .nr-v { display: flex; align-items: baseline; gap: 3px; } .nr-v small { font-size: .85rem; font-weight: 700; color: var(--cream); }
.all-tot { max-width: 1240px; gap: 12px; flex-wrap: nowrap; } @media (max-width: 1100px) { .all-tot { flex-wrap: wrap; } }

/* Training (10-31): join live / watch this month's video. */
.train-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.adm-train { display: grid; gap: 10px; max-width: 560px; }
.adm-train .adm-field label { display: grid; gap: 4px; }

/* Boot camp + weekly training links (10-31). */
.train-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.train-btns:empty { display: none; }
.adm-train { display: grid; gap: 10px; max-width: 560px; }
.adm-train .adm-field label { display: grid; gap: 4px; }

.train-when { flex-basis: 100%; color: var(--cream); font-weight: 600; font-size: .92rem; }
/* Public ambassador page: four ways to get paid; the fourth is in the Mission Brief (10-31). */
.pay-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pay-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pay-four { grid-template-columns: 1fr; } }

/* "i" bubbles in headings on public pages (10-31). */
h2 button.info, h3 button.info { vertical-align: middle; margin-left: 8px; width: 20px; height: 20px; font-size: .72rem; }
.mhud-title button.info { transform: translateY(-4px); }

/* Payment on the checkout itself (Stripe Elements), 11-02. */
.ckout-pay { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.ckout-pay h3 { margin: 0; font-size: 1.1rem; }
.ckout-card { min-height: 220px; }
.ckout-back { align-self: center; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 6px 10px; }
.ckout-back:hover { color: var(--cream); }

/* Checkout page (11-02): one centered column, the checkout panel lifted off the page. */
.ckout-page .wrap { max-width: 620px; }
.ckout-page .ckout-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.ckout-page .ckout-head h1, .ckout-page .ckout-box > h1 { margin: 0; font-size: 1.6rem; }
.ckout-backlink { color: var(--muted); text-decoration: underline; padding: 8px 4px; }
.ckout-backlink:hover { color: var(--cream); }

.ckout-acct { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.ckout-acct h3, .ckout-sent h3 { margin: 0; font-size: 1.1rem; }
.ckout-sent { border-top: 1px solid var(--line); padding-top: 14px; }
.ckout-acct .ref-who { margin: 6px 0 0; }
/* Who referred you? on the checkout (11-02): assign the nearest, pick someone near, or a code. */
.ckout-ref { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ckout-ref legend { font-family: var(--head); font-weight: 700; margin-bottom: 4px; padding: 0; }
.ckout-pick { display: flex; flex-direction: column; gap: 10px; }
.ckout-pick .btn { align-self: flex-start; }
/* A quiet second action under a form's main button (e.g. "Forgot it? Email me a sign-in link"). */
.link-btn { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 6px 10px; }
.link-btn:hover { color: var(--cream); }
/* Customer-only Brief chart: three settings (11-02, coffee covered in place of ambassadors). */
.nr-set-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .nr-set-3 { grid-template-columns: 1fr; } }

/* Brief version 4 chart: five settings, and the coffee-covered line (11-02). */
.nr-set-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .nr-set-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .nr-set-5 { grid-template-columns: 1fr; } }
.nr-k-cov { display: inline-block; width: 18px; height: 0; border-top: 3px dashed #D3B78F; }
.nr-l-cov { stroke: #D3B78F; stroke-dasharray: 8 5; } .nr-wait .nr-l-cov, .nr-go .nr-l-cov { stroke-dashoffset: 0; transition: none; }
.nr-d-cov { fill: #D3B78F; } .nr-t-cov { border-top: 3px solid #D3B78F; } .nr-t-cov b { color: var(--white, #fff); }
/* One-line box labels (11-02); an "i" sits inline at the end. */
.nr-box-l { white-space: nowrap; }
.nr-box-l button.info { vertical-align: middle; margin-left: 6px; width: 18px; height: 18px; font-size: .68rem; transform: translateY(-1px); }
.nr-sumgrp { display: inline-flex; align-items: center; gap: 14px; }
.nr-sumgrp > i { font-style: normal; font: 700 1.4rem/1 var(--head); color: var(--cream); }
@media (max-width: 640px) { .nr-sumgrp { grid-column: 1 / -1; justify-content: center; } }
.nr-seg button { white-space: nowrap; }
.nr-box-l button.info { height: 15px; width: 15px; font-size: .6rem; line-height: 1; padding: 0; }

/* An "i" inside an income box label (11-02). */
.nr-t span button.info { vertical-align: middle; margin-left: 4px; width: 15px; height: 15px; font-size: .6rem; line-height: 1; padding: 0; transform: translateY(-1px); }
/* Income row (11-02): every income box on one line, "= Total" centered on the line below. */
.nr-tot { gap: 10px; }
.nr-tot .nr-t { padding: 12px 12px; }
.nr-tot .nr-t span { font-size: .62rem; letter-spacing: .08em; white-space: nowrap; }
.nr-sumgrp { flex-basis: 100%; justify-content: center; }

/* Brief + ambassador page fixes (11-02) */
/* "See the numbers": the table scrolls inside its own box, the page never scrolls sideways. */
.nr-chart-card, .nr-table { min-width: 0; max-width: 100%; }
.nr-table [data-nr-table] { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nr-table [data-nr-table] table { margin-top: 10px; }
.nr-table [data-nr-table] th, .nr-table [data-nr-table] td { white-space: nowrap; }
/* Chart end labels readable on phones. */
.nr-narrow .nr-end { font-size: 18px; }
/* Why coffee stat cards: the big number never breaks; labels share one height. */
.wc-fact strong { white-space: nowrap; }
.wc-fact span { min-height: 1.35em; }
@media (max-width: 860px) {
  .wc-fact { padding: 22px 10px; }
  .wc-fact strong { font-size: 2.1rem; }
  .wc-fact span { min-height: 2.7em; }
}
/* An "i" stays on the line with the last word of its heading. */
.h-keep { white-space: nowrap; }
/* Coffee-covered picker: 10 / 25 / 50 / My goal on one row on phones. */
@media (max-width: 640px) {
  .net-pick .np-tabs { flex-wrap: nowrap; gap: 4px; padding: 5px; max-width: 100%; }
  .net-pick .np-tabs button { min-width: 0; padding: 10px 12px; font-size: 1rem; white-space: nowrap; }
}
/* "Your customers every month" on phones: one column, the + and = kept. */
@media (max-width: 640px) {
  .m5-total .nr-tot { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .m5-total .nr-tot > i { display: block; text-align: center; font-size: 1.2rem; line-height: 1; }
  .m5-total .nr-tot .nr-t { flex: none; width: 100%; }
}
/* Ways to get paid: card titles on one line. */
.pay-four .step-card h3 { white-space: nowrap; font-size: clamp(1rem, 1.5vw, 1.2rem); }
/* Ways to get paid (11-02, refined): four across only when every title fits on one line. */
.pay-four .step-card h3 { white-space: normal; font-size: inherit; }
@media (min-width: 1241px) { .pay-four .step-card h3 { white-space: nowrap; font-size: min(1.1rem, 1.18vw); } }
@media (max-width: 1240px) and (min-width: 561px) { .pay-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-four .step-card h3 { font-size: 1.15rem; }
@media (min-width: 1241px) { .pay-four .step-card h3 { font-size: min(1.1rem, 1.18vw); } }

/* Account + network fixes (11-02) */
/* Overview stat cards: the label stays on one line with its "i" at the end. */
.acct-console .card.stat .acct-label { white-space: nowrap; }
.acct-console .card.stat .acct-label button.info { vertical-align: middle; }
/* Header buttons: one line each, on a solid panel so the text reads over the hex field. */
.acct-head-actions .btn { white-space: nowrap; }
.acct-head-actions .btn.ghost { background: var(--panel); }
.acct-head-actions .btn.ghost:hover { background: var(--panel-2); }
@media (max-width: 560px) {
  .focus-account .acct-head-actions { width: 100%; }
  .focus-account .acct-head-actions .btn { font-size: .8rem; letter-spacing: .06em; padding-top: 13px; padding-bottom: 13px; }
}
/* Your link: the two pickers share one label column, so the dropdowns line up. */
.link-picks { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 10px; margin-top: 14px; }
.link-pick { display: contents; }
.link-pick[hidden] { display: none; }
.link-pick label { white-space: nowrap; }
.link-pick select { width: 100%; max-width: 280px; min-width: 0; }
.link-pick .linkish { grid-column: 2; justify-self: start; padding: 0; font-size: .9rem; }
/* Mission tracker tiles: the same framed tile on every screen size. */
.amb-acct .mis-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-top: 16px; }
.amb-acct .mis-row, .amb-acct .mis-row:last-child { padding: 16px 18px; border: 1px solid var(--hud-line); border-radius: 8px; align-content: start; }
/* Growth Bonus header: label and rate each stay whole; they stack when there isn't room. */
.gb-head { flex-wrap: wrap; row-gap: 8px; }
.gb-head .acct-label, .gb-head .gb-rate { white-space: nowrap; }
.gb-head .acct-label { margin-top: 0; }
/* Customers table: headers and cells on one line on a laptop. */
.ppl-table th, .ppl-table td:nth-child(2), .ppl-table td:nth-child(3), .ppl-table td:nth-child(4), .ppl-table .person-cell .small { white-space: nowrap; }
.ppl-table .person-acts { flex-wrap: nowrap; gap: 6px; }
.ppl-table .person-acts .btn { padding: 8px 11px; font-size: .74rem; }
.ppl-table .flag-pick select { max-width: 170px; }
/* Phones: each customer is a stacked card (label, then value). */
@media (max-width: 640px) {
  .ppl-table, .ppl-table tbody, .ppl-table tr, .ppl-table td { display: block; width: 100%; }
  .ppl-table thead { display: none; }
  .ppl-table tr { border: 1px solid var(--hud-line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
  .ppl-table td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 0; border-bottom: 0; white-space: normal; }
  .ppl-table td::before { content: attr(data-label); font: 700 .68rem/1.25 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .ppl-table td:first-child { display: block; padding-top: 0; }
  .ppl-table td:first-child::before { content: none; }
  .ppl-table td:nth-child(5), .ppl-table td:nth-child(6) { grid-template-columns: 1fr; gap: 6px; }
  .ppl-table .person-acts { flex-direction: row; flex-wrap: wrap; }
  .ppl-table .flag-pick, .ppl-table .flag-pick select { max-width: 100%; width: 100%; }
  .focus-account .acct-table.ppl-table tbody tr td, .focus-account .acct-table.ppl-table tbody tr:nth-child(even) td, .focus-account .acct-table.ppl-table tbody tr:hover td { background: transparent; }
  [data-people-list] { overflow-x: visible; }
}

/* Brief chart span toggle, 18 months | 4 years (11-02). */
.nr-chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nr-chart-head .nr-span { order: 2; flex: none; }
.nr-chart-head .nr-span button { padding: 8px 14px; }
/* Account + network fixes (11-02), cont.: table buttons keep their words on one line. */
.ppl-table .person-acts .btn { white-space: nowrap; }
@media (min-width: 641px) { .ppl-table .flag-pick select { max-width: 150px; } .ppl-table th, .ppl-table td { padding-left: 5px; padding-right: 5px; } }

/* Public page fixes (11-02) */
/* Enrollment on phone: the form fits the screen (no sideways scroll). */
.enr-step, .enr-main, .enr-side, .enr-grid > * { min-width: 0; }
@media (max-width: 900px) { .enr-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .enr-row { grid-template-columns: minmax(0, 1fr); } .enr-step { padding: 18px 16px 6px; } }
/* Text over the moving hex field reads clean: a soft dark halo behind hero and section text. */
.page-hero h1, .page-hero p, .hero-split h1, .section-head h2, .section-head p, .section > .wrap > h1, .section > .wrap > h2, .center > h1, .center > p, .enr-head h1, .enr-head p {
  text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .85), 0 0 28px rgba(0, 0, 0, .7);
}
/* An "i" inside a heading sits on the text line. */
h1 button.info, h2 button.info, .page-hero p button.info { vertical-align: middle; margin-left: 8px; transform: translateY(-2px); text-shadow: none; }
/* Keep a word or link on one line. */
.nobr { white-space: nowrap; }
.site-footer .legal a, .site-footer .legal button { white-space: nowrap; }
/* About: the Taste & Talk form lines up with the text above it. */
.split .inline-form { margin-left: 0; }
/* Join: three referral choices like checkout; no empty gap above the 18+ box. */
.ref-modes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
[data-join] .ref-who:empty { display: none; }
[data-join] .ref-pick { margin-bottom: 8px; }
[data-join] .ref-pick .field:last-child { margin-bottom: 8px; }
/* Home roast cards: the label line sits in the same place on every card. */
.product-card .labels-note { margin-top: 0; }
/* Help pill on phone: icon only, small, and nothing sits under it at the end of the page. */
@media (max-width: 700px) {
  .help-fab { right: 12px; bottom: 12px; padding: 10px; gap: 0; }
  .help-fab span { display: none; }
  .site-footer { padding-bottom: 72px; }
  .focus .site-footer { padding-bottom: 72px; }
  main { padding-bottom: 8px; }
}
.ppl-table th { letter-spacing: .05em; }
.ppl-table .person-acts { flex-wrap: wrap; }

/* Months chooser (11-02): quiet, findable, never the loudest thing in the card. */
.nr-span { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.nr-span > span { font: 700 .62rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 8px 0 6px; }
.nr-chart-head .nr-span button { background: none; border: 0; color: var(--muted); font: 700 .78rem/1 var(--head); padding: 7px 9px; border-radius: 6px; cursor: pointer; }
.nr-chart-head .nr-span button:hover { color: var(--cream); }
.nr-chart-head .nr-span button[aria-pressed="true"] { background: var(--panel-2); color: var(--cream); }

/* Chart hover (11-02): the line you point at stands out, the rest fade. */
.nr-svg .nr-line { transition: opacity .15s, stroke-width .15s; }
.nr-svg .nr-line.nr-dim { opacity: .22; }
.nr-svg .nr-line.nr-on { stroke-width: 4; }
/* Checkout: who is signed in, with a way out (11-02). */
.ckout-who { margin: -6px 0 0; }
.link-inline { background: none; border: 0; padding: 0; color: var(--act-text); text-decoration: underline; cursor: pointer; font: inherit; }

/* One price box (home + shop): the price, and Auto Supply's points as the one link. */
.price-one { max-width: 420px; margin: 0 auto; text-align: center; background: var(--panel); border: 1px solid var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; border-radius: var(--radius); padding: 26px 24px 22px; }
.po-price { font: 700 2.4rem/1.1 var(--head); }
.po-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.po-supply { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--cream); font-size: .95rem; text-decoration: none; }
.po-supply:hover { color: var(--orange-hi); }
.po-tag { font: 700 .72rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hi); border: 1px solid rgba(229, 106, 42, .5); border-radius: 4px; padding: 6px 8px; }

/* Brief chart settings, six boxes (Taste & Talk version, 2026-11-03): three across, then one column on phones. */
.nr-set-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .nr-set-6 { grid-template-columns: 1fr; } }
.nr-seg-4 button { min-width: 0; }

/* Brief chart from the work (2026-11-03): what the settings add up to, and the 6-figure plan. */
.nr-derived { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 14px 0 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 12, 12, .5); }
.nr-dl { font: 700 .7rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nr-dv { font-size: .95rem; color: var(--cream); display: inline-flex; align-items: center; gap: 6px; }
.nr-dv b { font: 700 1.05rem/1 var(--head); color: var(--cyan); }
.nr-planline { margin: 10px 0 0; padding: 12px 16px; border: 1px solid var(--orange); border-radius: 10px; background: rgba(229, 106, 42, .08); color: var(--cream); font-size: .95rem; }
.nr-planline b { color: var(--orange-hi); }
.nr-plan { margin-right: 10px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--orange); background: transparent; color: var(--orange-hi); font: 700 .72rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.nr-plan[aria-pressed="true"] { background: var(--orange); color: #fff; }

/* Ambassador account: the enrollment pack countdown line (first 24 hours only). */
.pack-line { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--orange); border-radius: 10px; background: rgba(229, 106, 42, .08); }
.pack-line a { color: var(--cream); text-decoration: none; }
.pack-line a:hover { color: var(--orange-hi); }
.pack-line b { color: var(--orange-hi); font-variant-numeric: tabular-nums; }
.pack-line .pack-note { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* Ambassador pickup card (2026-11-04) */
.pickup-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 6px; }
.pickup-days .check { flex-direction: column; align-items: center; gap: 4px; font-size: .85rem; }
@media (max-width: 420px) { .pickup-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pickup-days .check { margin: 4px 0; }
.pickup-list ul { list-style: none; margin: 0; padding: 0; }
.pickup-list li { padding: 8px 0; border-top: 1px solid var(--line); }

/* Admin pickup boxes (2026-11-04) */
.adm-box { border-top: 1px solid var(--line); padding: 16px 0; }
.adm-box h3 { margin: 0 0 6px; }
.adm-box-list { margin: 8px 0 12px; padding-left: 18px; }

/* Brief chart pace (2026-11-09): Slow / Steady / Fast next to the 6-figure plan. */
.nr-pace { margin-right: 10px; }
.nr-pace .info { margin-left: 6px; }

/* Brief chart (2026-11-09): custom guests box. */
.nr-custom { margin-top: 8px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(12,12,12,.6); color: var(--cream); font: 600 1rem var(--head); }

/* Mission Brief version 2 (2026-11-10): Coffee covered picture, you in the middle, a bean in each hexagon. */
.cov-map { width: min(260px, 70vw); margin: 8px auto 28px; }
.cov-map svg { display: block; width: 100%; height: auto; }
.cov-bean { fill: #8a4a24; stroke: #E56A2A; stroke-width: 1; }
.cov-crease { fill: none; stroke: #2a1a10; stroke-width: 1.6; stroke-linecap: round; }
.pay-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pay-three { grid-template-columns: 1fr; } }

/* No lonely last words (Adam 2026-11-11: "for." alone on its own line). Headings split into even lines;
   paragraphs and subtitles avoid a single-word last line. Applies site-wide. */
h1, h2, h3, h4, .mhud-title, .mhud-sub, .lead { text-wrap: balance; }
p, li, figcaption, .info-pop { text-wrap: pretty; }

/* Coffee covered (Adam 2026-11-11): the two 5% cards on top, then one box with the picker beside the map. */
.cov-cards { margin-top: 8px; }
.cov-cards .mhud-strip button.info { margin-left: 6px; vertical-align: middle; }
.cov-box { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; max-width: 960px; margin: 28px auto 0; padding: 28px; background: var(--panel); border: 2px solid var(--orange); border-radius: 16px; }
.cov-box .net-pick { margin: 0; max-width: none; padding: 0; background: none; border: 0; }
.cov-box .cov-map { width: min(300px, 70vw); margin: 0 auto; }
@media (max-width: 820px) { .cov-box { grid-template-columns: 1fr; gap: 20px; padding: 22px 16px; } .cov-box .cov-map { order: -1; width: min(240px, 64vw); } }
/* Compounding chart totals: one row on laptop, total last with a glow (Adam 2026-11-11). */
@media (min-width: 900px) {
  .nr-tot-5 { flex-wrap: nowrap; gap: 8px; }
  .nr-tot-5 .nr-t { min-width: 0; flex: 1 1 0; padding: 12px 8px; }
  .nr-tot-5 > i { font-size: 1.1rem; }
  .nr-tot-5 .nr-sumgrp { display: flex; align-items: center; gap: 8px; flex: 1.15 1 0; }
  .nr-tot-5 .nr-sumgrp .nr-t { flex: 1 1 auto; }
}
.nr-tot-5 .nr-t-sum { box-shadow: 0 0 22px rgba(232,184,78,.28), inset 0 0 12px rgba(232,184,78,.08); }
.np-math { text-wrap: balance; }
@media (max-width: 820px) { .cov-cards { grid-template-columns: 1fr 1fr; gap: 10px; } .cov-cards .mhud { padding: 14px 8px; } .cov-cards .mhud-strip span { font-size: .62rem; letter-spacing: .06em; } .cov-cards .mhud-big strong { font-size: 2rem; } .cov-cards .mhud-big span { font-size: .7rem; } }
@media (max-width: 820px) { .mhud-grid.two.cov-cards { grid-template-columns: 1fr 1fr; display: grid; } }
@media (max-width: 820px) { .cov-cards .mhud-strip span { white-space: nowrap; font-size: .56rem; letter-spacing: .04em; } .cov-cards .mhud-strip span::before { display: none; } .cov-cards .mhud-strip button.info { margin-left: 4px; } }
/* Section 05: the number you change sits in the equation itself (Adam 2026-11-11). */
.eq-xrow { display: flex; align-items: center; gap: 6px; }
.eq-step { gap: 6px; }
.eq-step input { width: 3ch; flex: none; font: 800 3.2rem/1 var(--head); color: var(--cream); padding: 0; }
.eq-step button { width: 34px; height: 34px; font-size: 1.1rem; }
@media (max-width: 960px) { .eq-step input { font-size: 2.6rem; } }
.mhud-eq .eq-big { font-size: clamp(2.4rem, 4.2vw, 3.6rem); white-space: nowrap; } .mhud-eq .eq-step input { width: 2.6ch; }
.mhud-eq .eq-big { font-size: 2.7rem; } @media (max-width: 960px) { .mhud-eq .eq-big { font-size: clamp(2.2rem, 11vw, 3rem); } }
#system .mhud-title { margin-bottom: 36px; }
.equation .eq-big { font-size: 2.7rem; white-space: nowrap; } @media (max-width: 960px) { .equation .eq-big { font-size: clamp(2.2rem, 11vw, 3rem); } } .equation .eq-step input { width: 2.6ch; }
/* Graph footnote (Adam 2026-11-11): quiet, readable, inside the chart box. */ .nr-note { margin: 16px 0 0; font-size: .9rem; line-height: 1.5; color: #9AA0A6; text-align: center; }
@media (max-width: 640px) { .nr-tot .nr-t span { white-space: normal; } .nr-tot .nr-t { align-content: center; } }

/* v3 checkout: the account made on the same screen (Adam 2026-11-19). */
.ckout-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .ckout-row2 { grid-template-columns: 1fr; } }
.ckout-acct-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* Rewards brief (Adam 2026-11-19): Mission Brief parts on the Rewards page. The value panel, and the
   coffee-covered sum (your bags + people you refer = the total) as one row. */
.rw-value { max-width: 460px; margin: 0 auto; }
.rw-value .mhud-big { margin-bottom: 4px; }
.equation.eq-sum { grid-template-columns: 1fr auto 1fr auto 1fr; }
.eq-num { font: 800 3rem/1 var(--head); color: var(--hud); text-shadow: 0 0 18px rgba(36, 201, 241, .35); }
.eq-sum .eq-label { margin-top: 10px; color: var(--muted); }
.eq-sum .eq-label strong { color: var(--cream); }
.eq-sum .eq-unit button.info { margin-left: 4px; vertical-align: middle; }
@media (max-width: 960px) { .equation.eq-sum { grid-template-columns: 1fr; } .eq-num { font-size: 2.6rem; } }

/* Points this order earns, under the Build your supply total (auto-supply.html). */
.sub-earn { margin: -6px 0 16px; color: var(--cyan); font-weight: 600 }

/* Shop: a small "Learn about points" link under the price card (jumps to the Auto Supply band). */
.pts-line { text-align: center; margin: 10px 0 0; font-size: .95rem; }
/* Auto Supply console (Adam 2026-11-19 10:58): the title, a compact how-it-works strip, then ONE framed HUD
   console, wide on a desktop. Order box = solid panel (orange actions, gold money, cyan numbers);
   perks = holographic panel. Overlays sit over existing space and add no height. Phones stack. */
.as-top { padding: 34px 0 56px; }
.as-top > .wrap { max-width: none; width: min(1600px, 92vw); padding: 0; }
.as-top h1 { margin-bottom: 22px; }
.as-top .as-console p { max-width: none; margin-left: 0; margin-right: 0; text-shadow: none; }
.as-how { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; padding: 0; text-align: left; }
.as-how li { display: flex; align-items: center; gap: 14px; padding: 11px 18px; background: rgba(35, 37, 38, .72); border: 1px solid var(--line); border-radius: var(--radius); }
.as-how-ic { flex: none; display: grid; place-items: center; width: 42px; height: 36.4px; color: var(--orange-hi); background: rgba(229, 106, 42, .16); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.as-how-ic .icon { width: 20px; height: 20px; }
.as-how h3 { margin: 0 0 3px; font-size: .86rem; letter-spacing: .08em; }
.as-how p { margin: 0; font-size: .92rem; color: var(--muted); }

.as-console { position: relative; text-align: left; padding: 0 28px 28px; border: 1px solid rgba(36, 201, 241, .24); border-radius: 4px; background: linear-gradient(180deg, rgba(36, 201, 241, .05), transparent 160px), rgba(12, 12, 12, .9); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 90px rgba(36, 201, 241, .04); }
.as-console > * { position: relative; z-index: 1; }
/* Corner brackets, just outside the frame. */
.as-console::before { content: ""; position: absolute; inset: -6px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--hud), var(--hud)) top left / 28px 2px no-repeat, linear-gradient(var(--hud), var(--hud)) top left / 2px 28px no-repeat,
    linear-gradient(var(--hud), var(--hud)) top right / 28px 2px no-repeat, linear-gradient(var(--hud), var(--hud)) top right / 2px 28px no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom left / 28px 2px no-repeat, linear-gradient(var(--hud), var(--hud)) bottom left / 2px 28px no-repeat,
    linear-gradient(var(--hud), var(--hud)) bottom right / 28px 2px no-repeat, linear-gradient(var(--hud), var(--hud)) bottom right / 2px 28px no-repeat;
  filter: drop-shadow(0 0 6px rgba(36, 201, 241, .55)); }
/* Faint grid and scan lines inside the frame, fading out toward the edges. */
.as-console::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(36, 201, 241, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(36, 201, 241, .045) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 100%); }
.as-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 -28px 22px; padding: 12px 28px; border-bottom: 1px solid rgba(36, 201, 241, .24); background: rgba(36, 201, 241, .06); font: 700 .74rem/1.3 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--hud); }
.as-bar-id { display: inline-flex; align-items: center; gap: 10px; }
.as-bar-id::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--hud); box-shadow: 0 0 8px var(--hud); }
.as-bar-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); letter-spacing: .12em; }
.as-bar-status strong { color: var(--cream); font-weight: 700; }
.as-bar-status .icon { width: 16px; height: 16px; flex: none; color: var(--hud); }
@media (prefers-reduced-motion: no-preference) { .as-bar-id::before { animation: blink 2.4s ease-in-out infinite; } }

.as-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.as-order, .as-perks { display: flex; flex-direction: column; min-width: 0; }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.as-head, .as-perks > .as-h { min-height: 34px; margin: 0 0 12px; }
.as-h { display: flex; align-items: center; font-size: 1.25rem; margin: 0; }
.as-price { font: 700 .9rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #F2C14E; padding: 8px 12px; border: 1px solid rgba(242, 193, 78, .4); border-radius: 3px; background: rgba(242, 193, 78, .06); white-space: nowrap; }
.as-order .sub-builder { flex: 1; padding: 18px 24px 22px; background: linear-gradient(180deg, #25282b, #1c1e20); }
.as-order .qty input { color: var(--hud); font-weight: 700; }
.as-order .sub-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 14px; }
.as-order .sub-price { font-size: 2.2rem; color: #F2C14E; text-shadow: 0 0 18px rgba(242, 193, 78, .35); }
/* The live points readout under the total. */
.as-order .sub-earn { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid rgba(36, 201, 241, .3); border-left: 3px solid var(--hud); border-radius: 3px; background: rgba(36, 201, 241, .07); color: var(--hud); font-weight: 600; font-size: 1.02rem; }
.as-order .sub-earn b { color: #F2C14E; font-weight: 800; text-shadow: 0 0 12px rgba(242, 193, 78, .35); }
.as-order .sub-earn button.info { margin-left: auto; }
/* Wide screens: the three roasts sit side by side as tiles. */
@media (min-width: 1100px) {
  .as-order .sub-roasts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .as-order .sub-row { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 14px; margin-bottom: 10px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(12, 12, 12, .35); }
  .as-order .sub-thumb { width: 64px; height: 84px; }
  .as-order .sub-name { flex: 1; }
  .as-order .sub-name h3 { font-size: 1rem; }
  .as-order .sub-name p { font-size: .88rem; line-height: 1.4; }
  .as-order .qty button { width: 40px; height: 40px; } .as-order .qty input { width: 44px; height: 40px; }
}

/* The perks: a holographic panel (translucent cyan, glowing edge, scan lines, a slow light sweep). */
.as-holo { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 26px 30px; overflow: hidden; border: 1px solid rgba(36, 201, 241, .5); border-radius: 6px; background: linear-gradient(160deg, rgba(36, 201, 241, .16), rgba(36, 201, 241, .04) 48%, rgba(36, 201, 241, .11)), rgba(6, 22, 28, .6); box-shadow: 0 0 28px rgba(36, 201, 241, .16), inset 0 0 40px rgba(36, 201, 241, .12); color: #D3F3FB; text-shadow: 0 0 10px rgba(36, 201, 241, .3); }
.as-holo > * { position: relative; z-index: 1; }
.as-holo::before, .as-holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.as-holo::before { background: repeating-linear-gradient(0deg, rgba(36, 201, 241, .07) 0 1px, transparent 1px 3px); }
.as-holo::after { background: linear-gradient(105deg, transparent 42%, rgba(210, 245, 255, .09) 50%, transparent 58%) 0 0 / 260% 100% no-repeat; }
@media (prefers-reduced-motion: no-preference) { .as-holo::after { animation: as-sweep 7s linear infinite; } }
@keyframes as-sweep { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
.as-perk-list { list-style: none; margin: 0; padding: 0; }
.as-perk-list li { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px dashed rgba(36, 201, 241, .35); }
.as-perk-list li:first-child { padding-top: 0; }
.as-amt { font: 800 3.3rem/1 var(--head); color: #F2C14E; text-align: center; text-shadow: 0 0 22px rgba(242, 193, 78, .5); }
.as-perk-list span { font: 700 1.04rem/1.35 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--cream); }
.as-refer { margin: 20px 0 0; font-size: 1.08rem; line-height: 1.45; color: #D3F3FB; }
.as-more { margin: 14px 0 0; text-align: left; }
.as-perks-link { display: none; }

@media (max-width: 1099px) {
  .as-split { grid-template-columns: 1fr; gap: 24px; max-width: 620px; margin: 0 auto; }
  .as-perks-link { display: block; text-align: center; margin-top: 14px; }
}
@media (max-width: 860px) {
  .as-how { grid-template-columns: 1fr; gap: 8px; max-width: 620px; margin-left: auto; margin-right: auto; }
  .as-how li { padding: 8px 14px; }
}
@media (max-width: 640px) {
  .as-top { padding-top: 24px; }
  .as-console { padding: 0 14px 18px; }
  .as-bar { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 -14px 18px; padding: 10px 14px; }
  .as-order .sub-builder { padding: 6px 16px 18px; }
  .as-holo { padding: 18px; }
  .as-perk-list li { grid-template-columns: 72px 1fr; }
  .as-amt { font-size: 2.2rem; }
  .as-perk-list span { font-size: .9rem; }
}

/* Shop (Adam 2026-11-19 11:03): each roast shows its own price above the quantity. */
.roast-price { flex-basis: 100%; font: 800 1.7rem/1 var(--head); color: var(--cream); }
.roast-price span { font: 400 .95rem/1 var(--body); color: var(--muted); margin-left: 4px; }

/* Cart drawer and checkout (Adam 2026-11-19 11:03): switch to Auto Supply, with what it earns back right now. */
.as-switch { margin: 14px 0; padding: 12px 14px; border: 1px solid rgba(36, 201, 241, .3); border-left: 3px solid var(--hud); border-radius: 4px; background: rgba(36, 201, 241, .06); }
.as-switch p { margin: 0 0 10px; color: var(--hud); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.as-switch p[hidden] + .btn { margin-top: 0; }
.as-switch b { color: #F2C14E; }
.as-switch .btn { margin: 0; }
.ckout-switch-back { margin: 8px 0 4px; }
/* Points colors by where they come from (Adam 2026-11-19 11:19): your own order = gold ($1 duller, $2 bright),
   people you refer = cyan. Same scheme on Auto Supply perks, Rewards rate boxes and the calculator. */
:root { --pt-own1: #C9A24A; --pt-own2: #FFC94D; --pt-ref: #4FD8F8; }
.mhud-rate.pt-own1 .g-num { color: var(--pt-own1); }
.mhud-rate.pt-own2 .g-num { color: var(--pt-own2); text-shadow: 0 0 18px rgba(255, 201, 77, .35); }
.mhud-rate.pt-ref .g-num { color: var(--pt-ref); text-shadow: 0 0 18px rgba(36, 201, 241, .4); }
.mhud-rate.pt-own1 .g-num::after { background: var(--pt-own1); box-shadow: none; }
.mhud-rate.pt-own2 .g-num::after { background: var(--pt-own2); box-shadow: 0 0 12px rgba(255, 201, 77, .5); }
.mhud-rate.pt-ref .g-num::after { background: var(--pt-ref); box-shadow: 0 0 12px rgba(36, 201, 241, .5); }
.as-perk-list .pt-own1 .as-amt { color: var(--pt-own1); text-shadow: none; }
.as-perk-list .pt-own2 .as-amt { color: var(--pt-own2); }
.as-perk-list .pt-ref .as-amt { color: var(--pt-ref); text-shadow: 0 0 22px rgba(36, 201, 241, .5); }
.as-perk-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.as-holo { justify-content: space-evenly; }
.as-perk-list { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.as-perk-list li:first-child { padding-top: 14px; }
/* Slim footer (meta "footer": "slim", Auto Supply): one line. */
.site-footer.footer-slim { padding: 18px 0; }
.footer-slim .legal { margin-top: 0; padding-top: 0; border: 0; align-items: center; }
/* Auto Supply (Adam 2026-11-19 11:22): the label is the page h1; desktop header auto-hides (nav-autohide.js)
   so the whole console fits one laptop screen. */
.as-bar h1.as-bar-id { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-shadow: none; }
.as-top { padding-top: 20px; }
@media (min-width: 821px) {
  .nav-autohide .site-header { position: fixed; top: 0; left: 0; right: 0; transition: transform .35s ease; }
  html.nav-hidden .nav-autohide .site-header { transform: translateY(-101%); }
  .nav-autohide .as-top { padding-top: 92px; transition: padding-top .35s ease; }
  html.nav-hidden .nav-autohide .as-top { padding-top: 20px; }
}
@media (min-width: 1100px) and (max-height: 860px) {
  .as-how { margin-bottom: 18px; } .as-how li { padding: 8px 16px; }
  .as-bar { margin-bottom: 16px; padding-top: 10px; padding-bottom: 10px; }
  .as-head, .as-perks > .as-h { margin-bottom: 10px; }
  .as-order .sub-builder { padding: 14px 20px 16px; }
  .as-order .sub-row { padding: 12px 10px 10px; gap: 8px; }
  .as-order .sub-thumb { width: 50px; height: 66px; }
  .as-order .sub-total { padding: 10px 0 10px; }
  .as-order .sub-price { font-size: 1.9rem; }
  .as-order .sub-earn { margin-bottom: 12px; padding: 8px 12px; }
  .as-console { padding-bottom: 20px; }
  .as-amt { font-size: 2.8rem; }
}
@media (min-width: 1100px) and (max-width: 1500px) { .as-how p { font-size: .84rem; } .as-how li { gap: 12px; padding-left: 14px; padding-right: 12px; } }
.as-holo .as-more { margin-top: 18px; }
/* Rewards calculator (Adam 2026-11-23): the Mission Brief's 06 Coffee covered panel (.cov-box, .net-pick, .np-*,
   .cov-map) with three small steppers on top, styled like the 07 Rendezvous/week box (.nr-box, .nr-step).
   Left: steppers, the points total, the gold/cyan split, the effective-cost line. Right: the YOU network.
   Gold = yours, cyan = referrals, the total bright gold. Phones stack it with the network last. */
.rw-box { max-width: 1080px; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; padding: 34px 40px; }
.rw-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: left; }
.rw-st { grid-template-rows: 1fr auto; gap: 8px; min-width: 0; padding: 10px 12px 12px; }
.rw-st .nr-box-l { font-size: .66rem; white-space: normal; }
.rw-st .nr-step { gap: 6px; }
.rw-st .nr-step button { width: 30px; height: 30px; font-size: 1rem; }
.rw-st .nr-step input { font-size: 1.5rem; padding: 2px 0; }
.rw-st-own .nr-step input { color: var(--pt-own2); }
.rw-st-ref .nr-step input { color: var(--pt-ref); }
.rw-st-own { border-color: rgba(255, 201, 77, .55); background: linear-gradient(180deg, rgba(255, 201, 77, .10), rgba(255, 201, 77, .03)); box-shadow: inset 0 2px 0 rgba(255, 201, 77, .7); }
.rw-st-own .nr-box-l { color: var(--pt-own2); }
.rw-st-ref { border-color: rgba(34, 196, 230, .55); background: linear-gradient(180deg, rgba(34, 196, 230, .10), rgba(34, 196, 230, .03)); box-shadow: inset 0 2px 0 rgba(34, 196, 230, .7); }
.rw-st-ref .nr-box-l { color: var(--pt-ref); }
.rw-map .ae-amb { stroke: var(--pt-ref); }
.rw-out { margin-top: 28px; font-size: 3.8rem; color: #FFD36B; text-shadow: 0 0 22px rgba(255, 201, 77, .35); }
.rw-split { margin: 12px 0 0; font: 600 .98rem/1.4 var(--body); color: var(--muted); }
.rw-split i { font-style: normal; margin: 0 4px; }
.rw-own { color: var(--pt-own2); }
.rw-ref { color: var(--pt-ref); }
.rw-split b { font-weight: 800; }
.rw-line { margin-top: 20px; padding-top: 16px; font-size: 1rem; color: var(--cream); }
.rw-line b { color: var(--pt-own2); }
.rw-line.rw-covered { color: #FFD36B; font-weight: 700; }
.rw-box .rw-map { width: min(340px, 70vw); }
.rw-map svg { overflow: visible; }
.rw-new { transform-box: fill-box; transform-origin: center; animation: rw-pop .4s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0ms) both; }
@keyframes rw-pop { from { opacity: 0; transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) { .rw-new { animation: none; } }
@media (max-width: 820px) {
  .rw-box { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 22px; padding: 22px 14px; }
  .rw-box .rw-map { order: 0; width: min(260px, 66vw); }
  .rw-steps { gap: 6px; }
  .rw-st { padding: 8px 6px 10px; text-align: center; }
  .rw-st .nr-box-l { font-size: .6rem; letter-spacing: .08em; }
  .rw-st .nr-step { gap: 2px; }
  .rw-st .nr-step button { width: 26px; height: 26px; font-size: .9rem; }
  .rw-st .nr-step input { font-size: 1.3rem; }
  .rw-out { margin-top: 22px; font-size: 3.2rem; }
  .rw-split { font-size: .9rem; }
  .rw-line { font-size: .95rem; }
}
/* Rewards calculator milestones (rewards.html): 3 people half your coffee, 6 all of it, 9 all of it + a bag to gift */
.rw-tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; }
.rw-tiers span { font: 700 .78rem/1 var(--body); letter-spacing: .04em; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(34, 196, 230, .35); color: var(--muted); }
.rw-tiers span.on { color: #0b0f14; background: var(--pt-ref); border-color: var(--pt-ref); }
/* Referral levels (plan B, Adam 2026-11-23) as signal strength (Codec = a radio link): more bars, brighter cyan.
   Used on Rewards, the Auto Supply perks and the account Points tab. */
.mhud-rate.tier-1 { --sigc: rgba(36, 201, 241, .55); } .mhud-rate.tier-2 { --sigc: rgba(36, 201, 241, .8); } .mhud-rate.tier-3 { --sigc: #4FE3FF; }
.mhud-rate[class*="tier-"] .g-num { color: var(--sigc); }
.mhud-rate.tier-1 .g-num { text-shadow: none; } .mhud-rate.tier-1 .g-num::after { opacity: .5; box-shadow: none; }
.mhud-rate.tier-3 { border-color: rgba(79, 227, 255, .6); box-shadow: 0 0 34px rgba(36, 201, 241, .22), inset 0 0 24px rgba(36, 201, 241, .08); }
.mhud-rate.tier-3 .g-num { text-shadow: 0 0 26px rgba(79, 227, 255, .7); }
.sig { display: inline-flex; align-items: flex-end; gap: 4px; height: 22px; margin-bottom: 10px; }
.sig i { width: 7px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.sig i:nth-child(1) { height: 8px; } .sig i:nth-child(2) { height: 15px; } .sig i:nth-child(3) { height: 22px; }
.sig[data-lvl="1"] i:nth-child(-n+1), .sig[data-lvl="2"] i:nth-child(-n+2), .sig[data-lvl="3"] i:nth-child(-n+3) { background: var(--pt-ref); box-shadow: 0 0 8px rgba(36, 201, 241, .6); }
.sig[data-lvl="3"] i { background: #4FE3FF; animation: sig-pulse 2.4s ease-in-out infinite; }
@keyframes sig-pulse { 50% { box-shadow: 0 0 14px rgba(79, 227, 255, .9); } }
@media (prefers-reduced-motion: reduce) { .sig i { animation: none !important; } }
.sig-sm { height: 14px; gap: 3px; margin: 0 4px 0 0; vertical-align: -1px; } .sig-sm i { width: 4px; }
.sig-sm i:nth-child(1) { height: 5px; } .sig-sm i:nth-child(2) { height: 9px; } .sig-sm i:nth-child(3) { height: 14px; }
.rw-ref.tier-t1, .rw-ref.tier-t2, .rw-ref.tier-t3 { color: var(--pt-ref); }
.rw-split .sig i { margin: 0; display: block; }
/* Rewards calculator: fields take up to 999 (Adam 2026-11-23 17:11). 3-digit values shrink to fit the stepper;
   long totals ($10,000 and up) shrink so they stay on one line. */
.rw-st .nr-step input.rw-3d { font-size: 1.15rem; letter-spacing: -.02em; }
.rw-out.rw-long { font-size: 2.9rem; }
@media (max-width: 820px) {
  .rw-st .nr-step input.rw-3d { font-size: .98rem; }
  .rw-out.rw-long { font-size: 2.3rem; }
}
/* Auto Supply perks, plan B (Adam 2026-11-23): $2 / $3 / $4 per referral bag, signal bars over each number. */
.as-perk-list .pt-lv .as-amt { display: flex; flex-direction: column; align-items: center; color: var(--sigc); }
.as-perk-list .pt-lv .sig { margin-bottom: 8px; }
.as-perk-list .tier-1 { --sigc: rgba(79, 216, 248, .7); } .as-perk-list .tier-2 { --sigc: rgba(79, 216, 248, .9); } .as-perk-list .tier-3 { --sigc: #4FE3FF; }
.as-perk-list .tier-1 .as-amt { text-shadow: none; } .as-perk-list .tier-2 .as-amt { text-shadow: 0 0 16px rgba(36, 201, 241, .35); } .as-perk-list .tier-3 .as-amt { text-shadow: 0 0 24px rgba(79, 227, 255, .7); }
@media (max-width: 820px) { .as-perk-list .pt-lv .sig { height: 16px; gap: 3px; margin-bottom: 6px; } .as-perk-list .pt-lv .sig i { width: 5px; } .as-perk-list .pt-lv .sig i:nth-child(1) { height: 6px; } .as-perk-list .pt-lv .sig i:nth-child(2) { height: 11px; } .as-perk-list .pt-lv .sig i:nth-child(3) { height: 16px; } }
/* Account Points tab: your referral level (plan B, Adam 2026-11-23). */
.acct-level-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; }
.acct-level-row .sig { margin: 0; }
.acct-level-rate { font: 800 1.6rem/1 var(--head); color: var(--pt-ref); }
.acct-level [data-pts-next] { margin: 0; }
.rw-cap { margin: 8px 0 0; }
/* Rewards 01: the level (referrals) is the headline, the points per bag secondary (Adam 2026-11-23) */
.mhud-rate .lvl-pay { margin: 10px 0 0; font: 600 1.02rem/1.35 var(--body); color: var(--cream); }
.mhud-rate .lvl-pay b { color: var(--pt-ref); font-weight: 800; }
.mhud-rate.tier-3 .lvl-pay b { color: #4FE3FF; }
/* Levels pop (Adam 2026-11-24): level numbers crisp white, the top level gold; signal bars carry the climb. */
.mhud-rate.tier-1, .mhud-rate.tier-2 { --sigc: #F4F1EA; }
.mhud-rate.tier-1 .g-num, .mhud-rate.tier-2 .g-num { color: #F4F1EA; text-shadow: 0 0 18px rgba(244, 241, 234, .25); }
.mhud-rate.tier-1 .g-num::after { opacity: 1; }
.mhud-rate.tier-3 { --sigc: #FFD36B; border-color: rgba(255, 211, 107, .55); box-shadow: 0 0 34px rgba(255, 201, 77, .18), inset 0 0 24px rgba(255, 201, 77, .06); }
.mhud-rate.tier-3 .g-num { color: #FFD36B; text-shadow: 0 0 26px rgba(255, 201, 77, .6); }
.mhud-rate.tier-3 .lvl-pay b { color: #FFD36B; }
.as-perk-list .tier-1, .as-perk-list .tier-2 { --sigc: #F4F1EA; }
.as-perk-list .tier-3 { --sigc: #FFD36B; }
.as-perk-list .pt-lv .as-amt { font-size: 3rem; text-shadow: 0 0 18px rgba(244, 241, 234, .25); }
.as-perk-list .tier-3 .as-amt { text-shadow: 0 0 24px rgba(255, 201, 77, .6); }
.as-perk-list .pt-lv span em { display: block; margin-top: 6px; font: 600 1rem/1.35 var(--body); letter-spacing: 0; text-transform: none; font-style: normal; color: var(--cream); }
.as-perk-list .pt-lv span em b { color: var(--pt-ref); font-weight: 800; }
.as-perk-list .tier-3 span em b { color: #FFD36B; }
@media (max-width: 760px) { .as-perk-list .pt-lv .as-amt { font-size: 2.3rem; } .as-perk-list .pt-lv span em { font-size: .92rem; } }
