/* Piggie Brand Portal — draft render (substitute type)
   Brand tokens per Design Reference/01_Brand_System_Tokens.md:
   Pine #10241A · Coin #E5A524 (reward moments only) · Cream #F9F4EB · Stone #8A8A85 · Deep #1A1A1A
   Portal density: 6px cards / 8px buttons / 4px inputs / 1px borders / 32-36px rows / 4px grid */

:root {
  --pine: #10241A;
  --coin: #E5A524;
  --cream: #F9F4EB;
  --stone: #8A8A85;
  --deep: #1A1A1A;
  --success: #2E9E5F;
  --error: #D94848;
  --info: #4B8DC4;
  --line: #E2DDD2;            /* hairline derived from Cream/Stone family */
  --pine-08: rgba(16,36,26,.08);
  --display: 'Eurostile', 'Helvetica Neue', Arial, sans-serif; /* substitute for Eurostile Black Extended */
  --body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--body);
  font-size: 12px; line-height: 18px;       /* Body 12/18 per type scale */
  color: var(--deep);
  background: var(--cream);
  display: flex;
}

/* ---------- Sidebar (Pine — the ~30%) ---------- */
.sidebar {
  width: 232px; min-width: 232px;
  background: var(--pine);
  color: var(--cream);
  display: flex; flex-direction: column;
  height: 100vh; position: sticky; top: 0;
}
.wordmark {
  padding: 20px 16px 4px;
  color: var(--cream);
}
/* Real wordmark asset — white on transparent, so it sits on Pine as-is.
   The typed fallback below only shows if the image fails to load. */
.wordmark .mark {
  display: block;
  height: 22px; width: auto; max-width: 100%;
}
.wordmark .fallback {
  display: none;
  font-family: var(--display);
  font-weight: 900; letter-spacing: .14em;
  font-size: 20px; line-height: 24px;
}
.wordmark .mark:not([src]),
.wordmark .mark[src=""] { display: none; }
.wordmark .sub {
  display: block;
  font-family: var(--body); font-weight: 500;
  font-size: 10px; line-height: 14px; letter-spacing: .08em;
  color: rgba(249,244,235,.55); text-transform: uppercase; margin-top: 4px;
}
.brandname {
  padding: 8px 16px 12px; font-size: 12px; color: rgba(249,244,235,.8);
  border-bottom: 1px solid rgba(249,244,235,.14);
}
.nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.nav-group {
  font-size: 10px; line-height: 14px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(249,244,235,.45);
  padding: 12px 16px 4px;
}
.nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 16px;                          /* 32px rows */
  color: rgba(249,244,235,.85); text-decoration: none;
  font-size: 12px;
  border-left: 2px solid transparent;
}
.nav a:hover { background: rgba(249,244,235,.06); }
.nav a.active {
  background: rgba(249,244,235,.1);
  border-left-color: var(--coin);
  color: #fff;
}
.nav .count { background: var(--coin); color: var(--pine); border-radius: 999px; font-size: 9px; font-weight: 700; padding: 0 5px; min-width: 16px; text-align: center; }
.nav .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(249,244,235,.25); }
.nav .dot.done { background: var(--success); }
.nav .dot.partial { background: rgba(249,244,235,.6); }
.sidebar .foot {
  padding: 12px 16px; font-size: 10px; line-height: 14px;
  color: rgba(249,244,235,.5);
  border-top: 1px solid rgba(249,244,235,.14);
}
.sidebar .foot button {
  margin-top: 8px; width: 100%;
  background: transparent; color: rgba(249,244,235,.7);
  border: 1px solid rgba(249,244,235,.3); border-radius: 8px;
  padding: 6px; font-family: var(--body); font-size: 10px; cursor: pointer;
}
.sidebar .foot button:hover { color: #fff; border-color: rgba(249,244,235,.6); }

/* ---------- Main (Cream — the ~60%) ---------- */
.main { flex: 1; padding: 24px 28px 64px; max-width: 1080px; }
.page-head { margin-bottom: 16px; }
.page-head h1 {
  font-family: var(--display); font-weight: 900;
  font-size: 28px; line-height: 32px;        /* H1 28/32 */
  color: var(--pine); letter-spacing: .02em;
}
.page-head .crumb { font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.page-head .lede { font-size: 14px; line-height: 20px; color: var(--deep); margin-top: 8px; max-width: 720px; }
.page-head .lede.muted { color: var(--stone); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 16px; margin-bottom: 16px;
}
.card h2 {
  font-family: var(--display); font-weight: 900;
  font-size: 16px; line-height: 24px; color: var(--pine);
  margin-bottom: 4px; letter-spacing: .02em;
}
.card h3 { font-size: 16px; line-height: 20px; font-weight: 700; margin: 12px 0 8px; }
.card .hint { font-size: 12px; color: var(--stone); margin-bottom: 12px; }

/* ---------- Forms ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; grid-column: span 4; }
.field.s6 { grid-column: span 6; } .field.s12 { grid-column: span 12; } .field.s3 { grid-column: span 3; } .field.s8 { grid-column: span 8; }
.field label { font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--stone); }
.field label .gate {
  display: inline-block; margin-left: 4px; padding: 0 4px;
  background: var(--pine); color: var(--cream); border-radius: 4px;
  font-size: 9px; letter-spacing: .06em;
}
input[type=text], select, textarea {
  font-family: var(--body); font-size: 12px; line-height: 18px;
  padding: 7px 8px;                            /* ~32px control height */
  border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--deep); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 2px var(--pine-08); }
/* Placeholders are real examples from a filled-in portal, ghosted so nobody reads them as an answer. */
input::placeholder, textarea::placeholder { color: #B9B7B0; opacity: 1; }
select:invalid, select.unset { color: #B9B7B0; }
textarea { resize: vertical; min-height: 56px; }
.field .help { font-size: 10px; line-height: 14px; color: var(--stone); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body); font-size: 12px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--pine); background: var(--pine); color: var(--cream);
}
.btn:hover { background: #1a3527; }
.btn.ghost { background: transparent; color: var(--pine); }
.btn.ghost:hover { background: var(--pine-08); }
.btn.sm { padding: 4px 12px; font-size: 10px; }
.btn.danger { border-color: var(--error); color: var(--error); background: transparent; }

/* ---------- Pills & badges ---------- */
.pill {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.pill.live { background: var(--coin); color: var(--pine); }      /* reward moment — Coin earned here */
.pill.locked { background: var(--success); color: #fff; }
.pill.review { background: var(--info); color: #fff; }
.pill.pending { background: transparent; color: var(--stone); border: 1px solid var(--line); }
.pill.silent { background: var(--error); color: #fff; }
.pill.inferred { background: transparent; color: var(--info); border: 1px solid var(--info); }
.pill.tap { background: var(--coin); color: var(--pine); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }   /* ~34px rows */
tr:last-child td { border-bottom: none; }
td input[type=text] { border-color: transparent; padding: 4px; }
td input[type=text]:hover { border-color: var(--line); }
td input[type=text]:focus { border-color: var(--pine); }

/* ---------- Runbook ---------- */
.phase { display: flex; gap: 12px; margin-bottom: 4px; }
.phase .rail { display: flex; flex-direction: column; align-items: center; width: 24px; }
.phase .node {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  border: 1px solid var(--stone); color: var(--stone); background: #fff;
}
.phase.done .node { background: var(--success); border-color: var(--success); color: #fff; }
.phase.current .node { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.phase .rail .bar { flex: 1; width: 1px; background: var(--line); min-height: 12px; }
.phase .body { flex: 1; padding-bottom: 16px; }
.phase .body .ptitle { font-size: 14px; line-height: 20px; font-weight: 700; }
.phase .body .pweeks { font-size: 10px; color: var(--stone); text-transform: uppercase; letter-spacing: .06em; }
.gatelist { margin-top: 8px; }
.gatecheck { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 12px; }
.gatecheck .mark { font-weight: 700; }
.gatecheck.ok .mark { color: var(--success); }
.gatecheck.no .mark { color: var(--stone); }
.gatecheck.no { color: var(--stone); }

/* ---------- Custody timeline ---------- */
.stage { display: flex; gap: 12px; }
.stage .rail { display: flex; flex-direction: column; align-items: center; width: 28px; }
.stage .snum {
  width: 28px; height: 28px; border-radius: 50%; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--pine); color: var(--cream);
}
.stage.empty .snum { background: #fff; color: var(--stone); border: 1px solid var(--line); }
.stage.tapstage .snum { background: var(--coin); color: var(--pine); }   /* stage 12 — the reward moment */
.stage .rail .bar { flex: 1; width: 1px; background: var(--line); min-height: 8px; }
.stage .body { flex: 1; padding-bottom: 12px; }
.stage .stitle { font-size: 12px; font-weight: 700; padding-top: 5px; }
.stage .sowner { font-size: 10px; color: var(--stone); margin-left: 8px; font-weight: 400; }
.event { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; margin-top: 8px; }
.event .ets { font-size: 10px; color: var(--stone); }
.event .etitle { font-size: 12px; font-weight: 700; }
.event .edetail { font-size: 12px; color: var(--deep); }
.event .esrc { font-size: 10px; color: var(--stone); margin-top: 4px; }
.event.tap { border-color: var(--coin); }

/* ---------- Dashboard ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; }
.metric .mlabel { font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.metric .mval {
  font-family: var(--display); font-weight: 900;
  font-size: 28px; line-height: 36px; color: var(--pine); letter-spacing: .02em;
}
.metric .mval.coin { color: var(--coin); }     /* coin/escrow numerics — reward moments */
.metric .msub { font-size: 10px; color: var(--stone); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 8px 0; }
.bars .bcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .b { width: 100%; max-width: 48px; background: var(--pine); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .blabel { font-size: 10px; color: var(--stone); }
.bars .bval { font-size: 10px; font-weight: 700; color: var(--pine); }
.alert { border: 1px solid var(--coin); background: rgba(229,165,36,.08); border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; font-size: 12px; }
.alert.error { border-color: var(--error); background: rgba(217,72,72,.06); }
.banner-warn { border: 1px solid var(--error); background: rgba(217,72,72,.06); border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 12px; color: var(--error); }
.banner-info { border: 1px solid var(--line, #E2DDD2); background: rgba(16,36,26,.03); border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 12px; color: var(--stone); }

/* ---------- Misc ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.muted { color: var(--stone); }
.small { font-size: 10px; line-height: 14px; }
.derived {
  background: var(--cream); border: 1px dashed var(--stone); border-radius: 6px;
  padding: 8px 12px; font-size: 12px; margin-top: 8px;
}
.derived .dlabel { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); font-weight: 500; }
/* Marked-up dieline attachment (under "Where the sticker goes") */
.attach { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); }
.attach.empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.attach .dlabel { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); font-weight: 500; }
.attach:not(.empty) .dlabel { margin-bottom: 6px; }
.attach .arow { display: flex; align-items: center; gap: 10px; }
.attach .athumb { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: #fff; flex: 0 0 44px; }
.attach .aicon { display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--pine); }
.attach .ameta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attach .aname { font-size: 12px; font-weight: 500; word-break: break-all; }
.attach .afile { cursor: pointer; }
.attach .apreview { margin-top: 8px; }
.attach .athumb.wide { width: 120px; flex-basis: 120px; height: 44px; }
.brandassets { display: grid; grid-template-columns: 1fr 200px; gap: 16px 24px; align-items: start; }
.brandassets .attach + .attach { margin-top: 12px; }
.brandassets .realphone-wrap { justify-self: center; }
.attach .apreview img { max-width: 100%; max-height: 520px; border: 1px solid var(--line); border-radius: 4px; background: #fff; display: block; }
.attach.stores { margin-top: 4px; }
.attach .needed { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: var(--deep); color: #fff; font-size: 9px; letter-spacing: .06em; }
.attach .asum { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.attach .stores .arow + .arow, .attach.stores .arow + .arow { margin-top: 6px; }
.attach .storetable { margin-top: 8px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.attach .storetable table { font-size: 11px; }
.itemcard { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin-bottom: 12px; background: #fff; }
.itemcard .ihead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.itemcard .ihead .iname { font-weight: 700; font-size: 14px; }
/* ---------- Notification bell + panel ---------- */
.bell-wrap { position: relative; }
.bell {
  position: relative; width: 100%; text-align: left;
  background: rgba(249,244,235,.06); color: rgba(249,244,235,.9);
  border: 1px solid rgba(249,244,235,.18); border-radius: 8px;
  padding: 8px 10px; font-family: var(--body); font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.bell:hover { background: rgba(249,244,235,.12); }
.bell .count {
  background: var(--coin); color: var(--pine); border-radius: 999px;
  font-size: 10px; font-weight: 700; padding: 0 6px; min-width: 18px; text-align: center;
}
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif {
  display: flex; gap: 10px; padding: 10px 12px; background: #fff;
  border: 1px solid var(--line); border-left-width: 3px; border-radius: 6px;
}
.notif.unread { background: #fffdf7; }
.notif.warn { border-left-color: var(--coin); }
.notif.error { border-left-color: var(--error); }
.notif.info { border-left-color: var(--info); }
.notif .ntitle { font-size: 12px; font-weight: 700; }
.notif .nbody { font-size: 12px; color: var(--deep); }
.notif .nmeta { font-size: 10px; color: var(--stone); margin-top: 2px; }
.notif a.nlink { font-size: 10px; color: var(--info); text-decoration: none; }

/* ---------- State funnel (sticker / coin lifecycle) ---------- */
.funnel { display: flex; flex-direction: column; gap: 4px; }
.frow { display: flex; align-items: center; gap: 8px; }
.frow .flabel { width: 130px; font-size: 11px; color: var(--deep); text-align: right; }
.frow .ftrack { flex: 1; background: var(--cream); border-radius: 4px; height: 22px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.frow .ffill { height: 100%; background: var(--pine); border-radius: 3px 0 0 3px; display: flex; align-items: center; }
.frow .ffill.coin { background: var(--coin); }
.frow .ffill.muted { background: var(--stone); }
.frow .ffill.success { background: var(--success); }
.frow .ffill.error { background: var(--error); }
.frow .fval { width: 92px; font-size: 11px; font-weight: 700; color: var(--pine); }
.frow .fpct { font-size: 10px; color: var(--stone); font-weight: 400; }

/* ---------- State pills (EPCIS / coin states) ---------- */
.spill { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 10px; font-weight: 500; letter-spacing: .03em; }
.spill.active, .spill.received, .spill.redeemed, .spill.delivered, .spill.confirmed, .spill.ok { background: rgba(46,158,95,.12); color: var(--success); }
.spill.applied, .spill.at_shelf, .spill.activated, .spill.in_process, .spill.candidate { background: rgba(75,141,196,.12); color: var(--info); }
.spill.in_transit, .spill.pending, .spill.need_info, .spill.invited, .spill.low, .spill.sent { background: rgba(229,165,36,.14); color: #9a6e10; }
.spill.expired, .spill.decommissioned, .spill.voided, .spill.error_s, .spill.reorder { background: rgba(217,72,72,.1); color: var(--error); }
.spill.written_off, .spill.closed, .spill.muted { background: var(--cream); color: var(--stone); border: 1px solid var(--line); }
.spill.tapped, .spill.breakage { background: rgba(229,165,36,.14); color: #9a6e10; }

/* ---------- Geo map: a real pan and zoom surface ----------
   Tiles at the bottom, the ghost outline (offline fallback) over them, pins on top, then the key,
   the zoom buttons and the credits. Every pin is placed in px by makeMap(), so the basemap keeps
   its true aspect and nothing is stretched to fill the box. */
.geomap { position: relative; width: 100%; height: 300px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.geomap.dragging { cursor: grabbing; }
.geomap:focus-visible { outline: 2px solid var(--pine); outline-offset: -2px; }
.geomap .tiles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .92; filter: saturate(.85); }
.geomap .tiles img { -webkit-user-drag: none; }
.geomap.notiles .tiles { display: none; }
.geomap .ghost { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; transition: opacity .25s; }
.geomap.hastiles:not(.notiles) .ghost { opacity: 0; }
.geomap .ghost .land { fill: var(--pine-08); stroke: var(--stone); stroke-width: 1; stroke-opacity: .5; vector-effect: non-scaling-stroke; }
.geomap .ghost .borders polyline { fill: none; stroke: var(--stone); stroke-width: 1; stroke-opacity: .3; vector-effect: non-scaling-stroke; }

.geomap .pins { position: absolute; inset: 0; z-index: 4; }
.geomap .pin { position: absolute; width: 0; height: 0; text-decoration: none; -webkit-user-drag: none; }
.geomap .pin.link { cursor: pointer; }
.geomap .pin .dot2 { position: absolute; left: 0; top: 0; width: var(--r, 20px); height: var(--r, 20px); margin-left: calc(var(--r, 20px) / -2); margin-top: calc(var(--r, 20px) / -2); border-radius: 50%; background: var(--c, var(--coin)); border: 2px solid var(--pine); opacity: .85; display: flex; align-items: center; justify-content: center; }
/* the tier rung, written inside the collect. White on six different hues, so it carries its own shadow. */
.geomap .pin .dot2 i { font-style: normal; font-weight: 800; font-size: 8px; line-height: 1; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.6); }
.geomap .pin.cold .dot2 { background: var(--stone); border-color: var(--stone); opacity: .55; }
.geomap .pin .plabel { position: absolute; left: 0; top: var(--ldy, 14px); transform: translateX(-50%); font-size: 9px; line-height: 13px; color: var(--pine); font-weight: 700; white-space: nowrap; background: rgba(249,244,235,.86); box-shadow: 0 0 0 1px rgba(255,255,255,.6); padding: 0 3px; border-radius: 3px; }
.geomap .pin.link:hover .dot2 { opacity: 1; box-shadow: 0 0 0 4px rgba(229,165,36,.25); }
.geomap .pin.link:hover .plabel { text-decoration: underline; }
/* one collect: colour is the retailer, and nothing else */
.geomap .pin.collect { z-index: 2; }
.geomap .pin.collect .dot2 { border: 1.5px solid #fff; opacity: 1; box-shadow: 0 0 0 1px rgba(16,36,26,.28); }
.geomap .pin.collect.link:hover .dot2 { box-shadow: 0 0 0 3px rgba(16,36,26,.22); }
/* on the ladder: a pine ring instead of a white one, so loyal shoppers read at a glance */
.geomap .pin.collect.loyal { z-index: 4; }
.geomap .pin.collect.loyal .dot2 { border: 2px solid var(--pine); box-shadow: 0 0 0 1.5px rgba(255,255,255,.95); }
.geomap .pin.collect.loyal .dot2 i { font-size: 10px; }
/* the one collect being pointed at: their latest, or the coin you opened */
.geomap .pin.collect.latest { z-index: 6; }
.geomap .pin.collect.latest .dot2 { border: 2px solid var(--pine); box-shadow: 0 0 0 3px rgba(229,165,36,.6), 0 0 0 4.5px rgba(16,36,26,.3); }
.geomap .pin.collect.latest .dot2 i { font-size: 11px; }
.geomap .pin.mute .dot2 { background: var(--stone); box-shadow: 0 0 0 1px rgba(16,36,26,.12); opacity: .3; }
/* the store the collects sit around */
.geomap .pin.store { z-index: 5; }
.geomap .pin.store .dot2 { background: #fff; border: 3px solid var(--c, var(--pine)); opacity: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.9); }

.geomap .mapctl { position: absolute; top: 8px; right: 8px; z-index: 6; display: flex; flex-direction: column; gap: 4px; }
.geomap .mapctl button { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--pine); border-radius: 4px; font-size: 13px; line-height: 1; cursor: pointer; }
.geomap .mapctl button:hover { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.geomap .maplegend { position: absolute; top: 8px; left: 8px; z-index: 6; max-width: 46%; display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; }
.geomap .maplegend .ltitle { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); font-weight: 700; margin-bottom: 2px; }
.geomap .legitem { display: flex; align-items: center; gap: 6px; padding: 1px 0; border: 0; background: none; font: inherit; font-size: 10px; line-height: 15px; color: var(--pine); cursor: pointer; text-align: left; }
.geomap .legitem .lsw { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(16,36,26,.28); }
.geomap .legitem .lc { color: var(--stone); font-variant-numeric: tabular-nums; }
.geomap .legitem.offkey { opacity: .45; }
.geomap .legitem.offkey .ln { text-decoration: line-through; }
.geomap .maplegend .lnote { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); font-size: 9px; line-height: 12px; color: var(--stone); max-width: 190px; }
.geomap .mapnote { position: absolute; bottom: 6px; right: 8px; z-index: 6; font-size: 9px; color: var(--stone); background: rgba(255,255,255,.7); padding: 0 3px; border-radius: 2px; }
.geomap .attrib { position: absolute; bottom: 4px; left: 6px; z-index: 6; font-size: 8px; color: var(--stone); opacity: .8; background: rgba(255,255,255,.6); padding: 0 3px; border-radius: 2px; }
.geomap:not(.hastiles) .attrib, .geomap.notiles .attrib { display: none; }
.drillhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; margin: -4px 0 8px; }
.drillhead a { color: var(--pine); font-weight: 600; }
.drillhead .sep { color: var(--stone); }
.drillhead .here { font-weight: 700; }
.drillhead .back { margin-left: auto; }
.wallet { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.wallet .wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--coin); border: 1px solid var(--pine); }
.coinrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--deep); }
.coinrow:last-child { border-bottom: none; }
.coinrow:hover { background: var(--cream); }
.coinrow .cicon { width: 26px; height: 26px; border-radius: 50%; background: var(--coin); border: 2px solid var(--pine); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; }
.coinrow .cicon i { width: 9px; height: 9px; background: var(--deep); display: block; }
.coinrow .cicon.pending { opacity: .5; }
.coinrow .cmeta { display: flex; flex-direction: column; font-size: 12px; }
.coinrow .cmeta .muted { font-size: 10px; }
.bigcoin { width: 64px; height: 64px; border-radius: 50%; background: var(--coin); border: 3px solid var(--pine); display: inline-flex; align-items: center; justify-content: center; }
.bigcoin i { width: 22px; height: 22px; background: var(--deep); display: block; }
.offerbox { border: 1px dashed var(--coin); background: rgba(229,165,36,.06); border-radius: 6px; padding: 10px 12px; margin-top: 12px; }
.offerbox .dlabel { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); font-weight: 500; display: block; margin-bottom: 6px; }
.tierbar { display: flex; gap: 3px; margin-top: 4px; }
.tierbar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.tierbar span.on { background: var(--coin); }
.clicky tbody tr { cursor: pointer; }
.clicky tbody tr:hover { background: var(--cream); }
.mapcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 12px 0 8px; color: var(--stone); }
.mapcrumb a { color: var(--pine); font-weight: 500; }
.storehead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.storehead .sname { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--pine); }
.storehead .saddr { font-size: 12px; color: var(--stone); }

/* ---------- Tier: the badge in tables and the rung filter ---------- */
.tierbadge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 800; background: var(--cream); color: var(--stone); border: 1px solid var(--line); }
.tierbadge.on { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--pine); text-decoration: none; background: #fff; }
.tchip:hover { border-color: var(--pine); }
.tchip.on { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.tchip .tn { font-variant-numeric: tabular-nums; color: var(--stone); font-weight: 700; }
.tchip.on .tn { color: var(--coin); }
.tchip.empty { opacity: .55; }

/* ---------- Tier ladder (engagement) ---------- */
.tier { display: flex; gap: 10px; padding: 8px 0; align-items: baseline; border-bottom: 1px solid var(--line); }
.tier:last-child { border-bottom: none; }
.tier .tnum { width: 52px; font-size: 10px; font-weight: 700; color: var(--pine); }
.tier.off .tnum, .tier.off { color: var(--stone); }
.tier .tbody { flex: 1; font-size: 12px; }
.tier .ttitle { font-weight: 700; }

/* ---------- Inline import affordance ---------- */
.importbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(75,141,196,.06); border: 1px dashed var(--info); border-radius: 6px; margin-bottom: 12px; font-size: 11px; }
.importbar .btn { margin-left: auto; }

/* ---------- Consent / legal callout ---------- */
.legal { border: 1px solid var(--stone); background: var(--cream); border-radius: 6px; padding: 10px 12px; font-size: 11px; color: var(--deep); margin-top: 8px; }
.legal .lhead { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); font-weight: 700; margin-bottom: 4px; }

input[type=range] { accent-color: var(--pine); }
.checkrow { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }

/* ---------- Consumer phone preview (the tapper's view) ---------- */
.phones { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.phone {
  width: 230px; min-height: 470px; background: var(--cream); border-radius: 28px;
  border: 8px solid var(--deep); box-shadow: 0 6px 24px rgba(16,36,26,.18);
  padding: 22px 16px 18px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 70px; height: 5px; background: var(--deep); border-radius: 3px; }
.phone .pcaption { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--stone); font-weight: 500; }
.phone-wrap { position: relative; margin-bottom: 32px; }
.phone .pbrand { font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .12em; color: var(--pine); text-align: center; margin-bottom: 4px; }
.phone .coinbig {
  width: 120px; height: 120px; border-radius: 50%; margin: 14px auto;
  background: radial-gradient(circle at 38% 32%, #f2c456, var(--coin) 62%, #c8881a);
  border: 3px solid #b9810f; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(229,165,36,.4); position: relative;
}
.phone .coinbig .amt { font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--pine); }
.phone .stickerface {
  width: 96px; height: 96px; border-radius: 50%; margin: 18px auto;
  background: radial-gradient(circle at 38% 32%, #f2c456, var(--coin) 60%, #c8881a);
  border: 3px solid #b9810f; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(229,165,36,.4);
}
.phone .stickerface .tf { font-family: var(--display); font-weight: 900; font-size: 11px; letter-spacing: .04em; color: var(--pine); text-align: center; line-height: 1.1; }
.phone .phead { font-family: var(--display); font-weight: 900; font-size: 16px; line-height: 20px; color: var(--pine); text-align: center; margin: 4px 0; }
.phone .psub { font-size: 11px; line-height: 15px; color: var(--deep); text-align: center; margin-bottom: 10px; }
.phone .pcta { background: var(--coin); color: var(--pine); font-weight: 700; text-align: center; border-radius: 16px; padding: 9px; font-size: 12px; margin-top: auto; }
.phone .pcta.dark { background: var(--pine); color: var(--cream); }
.phone .pbar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 8px 0; }
.phone .pbar .ptrack2 { height: 6px; background: var(--cream); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.phone .pbar .pfill2 { height: 100%; width: 60%; background: var(--coin); }
.phone .pnote { font-size: 9px; color: var(--stone); text-align: center; margin-top: 8px; }
.phone .pchip { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px; font-size: 10px; color: var(--deep); margin: 4px 0; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   v2 additions: tabs, checklist, stepper, builder, switches, Piggie theme
   ===================================================================== */
.nav a .nlabel { display: flex; align-items: center; gap: 10px; }
.nav a .nicon { width: 16px; text-align: center; opacity: .7; font-size: 13px; }
.nav a { padding: 10px 16px; font-size: 13px; }
.nav .count.muted { background: rgba(249,244,235,.18); color: rgba(249,244,235,.85); }
.nav .dot.live { background: var(--coin); box-shadow: 0 0 0 3px rgba(229,165,36,.25); }
.sidebar .foot a { color: rgba(249,244,235,.85); }
.main { max-width: 1160px; }
.page-head h1 { font-size: 24px; line-height: 30px; }

/* header tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 0; flex-wrap: wrap; }
.tab { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--stone); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--pine); }
.tab.active { color: var(--pine); border-bottom-color: var(--coin); font-weight: 700; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; }
.subtab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--deep); font-size: 12px; text-decoration: none; }
.subtab.active { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.subtab .dot, .tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.subtab .dot.done, .tab .dot.done { background: var(--success); }
.subtab .dot.partial, .tab .dot.partial { background: var(--coin); }
.subtab.active .dot { outline: 1px solid rgba(249,244,235,.5); }
.sechead { margin: 16px 0 12px; }
.sechead h2 { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--pine); }
.sechead .hint { max-width: 720px; font-size: 13px; }
.card h3 { font-family: var(--display); font-size: 13px; color: var(--pine); letter-spacing: .02em; }
.setupfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.setupfoot .btn { text-decoration: none; display: inline-block; }

/* home checklist */
.progress { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--pine); }
.pbarwrap { display: inline-block; width: 120px; height: 8px; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.pbarwrap .pfill { display: block; height: 100%; background: var(--success); }
.checkgroup { margin-top: 12px; }
.checkgroup .cghead { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone); font-weight: 700; padding: 6px 0; display: flex; gap: 8px; align-items: center; }
.check { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; text-decoration: none; color: var(--deep); background: #fff; }
.check:hover { border-color: var(--pine); }
.check .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--stone); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; color: #fff; flex: none; }
.check.ok .box { background: var(--success); border-color: var(--success); }
.check.ok { background: rgba(46,158,95,.06); border-color: rgba(46,158,95,.3); }
.check .ctext { flex: 1; display: flex; flex-direction: column; }
.check .clabel { font-size: 13px; font-weight: 700; }
.check.ok .clabel { color: var(--success); }
.check .cnext { font-size: 11px; color: var(--stone); }
.check .cgo { font-size: 11px; font-weight: 700; color: var(--pine); }
.check.ok .cgo { color: var(--success); }
div.check { cursor: default; }

/* stepper */
.stepper { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.step { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.step .snode { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border: 1px solid var(--stone); color: var(--stone); background: #fff; }
.step.done .snode { background: var(--success); border-color: var(--success); color: #fff; }
.step.current .snode { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.step.current { border-color: var(--pine); }
.step .stitle { font-size: 13px; font-weight: 700; }
.step.done .stitle { color: var(--success); }
.step .splain { font-size: 11px; color: var(--stone); }
.step .sopen { grid-column: 2; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.step .sopen a { font-size: 11px; color: var(--pine); text-decoration: none; }
.step .sopen a:hover { text-decoration: underline; }
.notif.mini { text-decoration: none; color: inherit; }

/* live controls */
.nowgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nowcard { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--cream); }
.nowcard.paused { border-color: var(--error); background: rgba(217,72,72,.05); }
.nowcard .nowname { font-size: 12px; font-weight: 700; }
.nowcard .nowval { font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--coin); line-height: 32px; }
.nowcard .nowsub { font-size: 11px; color: var(--stone); }
.builder { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.builder .field.s2 { grid-column: span 2; }
.card.disabled { opacity: .55; pointer-events: none; }
input[type=date] { font-family: var(--body); font-size: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; width: 100%; }
.statement { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--pine); padding: 12px 14px; background: var(--cream); border-radius: 6px; border: 1px solid var(--line); }
.field .ro { font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); min-height: 28px; }
.field .ro.empty { color: var(--error); font-style: italic; }
.legal { margin-bottom: 16px; }

/* Piggie Portal theme */
body.piggie .sidebar { background: var(--deep); }
body.piggie .nav a.active { border-left-color: var(--coin); }
body.piggie .wordmark .sub { color: var(--coin); }
.brandhead, .brandrow { display: grid; grid-template-columns: 2fr 1fr 1.6fr 1.6fr 1fr 1fr 1.4fr; gap: 12px; align-items: center; padding: 10px 8px; }
.card.hqgrid .brandhead, .card.hqgrid .brandrow { grid-template-columns: 1.6fr .9fr 2.4fr 1fr 1.3fr .7fr 1.2fr .9fr; }
.brandhead { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); font-weight: 500; border-bottom: 1px solid var(--line); }
.brandrow { border-bottom: 1px solid var(--line); text-decoration: none; color: var(--deep); font-size: 12px; }
a.brandrow:hover { background: var(--cream); }
.brandrow .bname { font-weight: 700; font-size: 13px; }
.brandrow.dim { color: var(--stone); }
.brandrow:last-child { border-bottom: none; }
.switchrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line); }
.switchrow.on { border-color: rgba(46,158,95,.5); background: rgba(46,158,95,.06); }
.switchrow.off { border-color: var(--error); background: rgba(217,72,72,.06); }
.switchrow .swtitle { font-size: 14px; font-weight: 700; }
.btn.danger { background: var(--error); color: #fff; border-color: var(--error); }
tr.flagged td { background: rgba(217,72,72,.06); }
@media (max-width: 900px) { .nowgrid { grid-template-columns: 1fr; } .builder .field { grid-column: span 6; } }

/* builder preview: the shopper card */
.previewrow { margin-top: 12px; padding: 12px; background: var(--cream); border: 1px dashed var(--stone); border-radius: 6px; display: flex; gap: 16px; align-items: flex-start; }
.previewrow .pvlabel { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); font-weight: 700; width: 120px; display: flex; flex-direction: column; gap: 4px; }
.previewrow .pvlabel .small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.scard { width: 230px; background: #fff; border-radius: 20px; border: 6px solid var(--deep); padding: 16px 14px; box-shadow: 0 6px 20px rgba(16,36,26,.15); }
.scard .sbrand { font-family: var(--display); font-weight: 900; font-size: 11px; letter-spacing: .12em; color: var(--pine); text-align: center; }
.scard .stag { font-size: 9px; letter-spacing: .1em; color: #9a6e10; font-weight: 700; text-align: center; margin-top: 8px; }
.scard .stitle { font-family: var(--display); font-weight: 900; font-size: 15px; color: var(--pine); text-align: center; margin: 4px 0; }
.scard .scoin { width: 84px; height: 84px; border-radius: 50%; margin: 10px auto; background: radial-gradient(circle at 38% 32%, #f2c456, var(--coin) 62%, #c8881a); border: 3px solid #b9810f; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--pine); }
.scard .sline { font-size: 11px; line-height: 15px; color: var(--deep); text-align: center; margin: 6px 0 10px; }
.scard .sbtn { background: var(--coin); color: var(--pine); font-weight: 700; text-align: center; border-radius: 14px; padding: 8px; font-size: 12px; }
.scard .snote { font-size: 9px; color: var(--stone); text-align: center; margin-top: 8px; }
.scard .sopts { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.scard .sopt { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; font-size: 11px; text-align: center; }

/* real app screens, framed like the gallery (390x844 scaled to 0.5) */
.realphones { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.realphone-wrap { position: relative; margin-bottom: 30px; }
.realphone { width: 194px; height: 398px; border-radius: 28px; background: #1A1A1A; padding: 9px; box-shadow: 0 10px 30px rgba(16,36,26,.25); position: relative; overflow: hidden; }
.realphone .rnotch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 60px; height: 16px; background: #1A1A1A; border-radius: 10px; z-index: 2; }
.realphone iframe { width: 390px; height: 844px; border: 0; border-radius: 22px; transform: scale(.45); transform-origin: 0 0; background: #F9F4EB; display: block; }
.realphone-wrap .pcaption { position: absolute; bottom: -24px; left: 0; right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-size: 10px; color: var(--stone); font-weight: 500; }

/* From shelf to sale funnel (Campaign dashboard overview) */
.funnel { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.frow { display: grid; grid-template-columns: 170px 1fr 70px 220px; gap: 12px; align-items: center; }
.flabel { font-weight: 600; font-size: 13px; }
.fbarwrap { background: #F1EEE6; border-radius: 6px; height: 22px; overflow: hidden; }
.fbar { height: 100%; border-radius: 6px; }
.fbar.f1 { background: #10241A; }
.fbar.f2 { background: #E5A524; }
.fbar.f3 { background: #C4BFB3; }
.fnum { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.fnote { line-height: 1.3; }
@media (max-width: 900px) { .frow { grid-template-columns: 110px 1fr 60px; } .fnote { display: none; } }

/* Getting set up: step bar at top and bottom (2026-08-21) */
.setupfoot.top { border-top: 0; border-bottom: 1px solid var(--line); padding: 8px 0 12px; margin: 0 0 8px; }

/* Sticker placement: product files, real size, coin mock */
.prodfiles .attach + .attach { margin-top: 6px; }
.dimrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--cream); font-size: 12px; }
.dimrow .dlabel { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); font-weight: 500; }
.dimrow label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.dimrow input[type=text] { width: 64px; padding: 4px 6px; text-align: right; }
.mockwrap { margin-top: 10px; }
.mock { position: relative; display: inline-block; max-width: 100%; line-height: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; user-select: none; }
.mock img { max-width: 100%; max-height: 460px; display: block; }
.mock.placing { cursor: crosshair; }
.mockcoin { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1 / 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F2C04D, #E5A524 60%, #B9831B); border: 2px solid var(--deep); box-shadow: 0 2px 6px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; pointer-events: none; box-sizing: border-box; }
.mockcoin span { font-weight: 800; font-size: 11px; line-height: 1; color: var(--deep); }

/* Coupon offer page */
.coupontbl td { vertical-align: top; }
.coupontbl .couponin { width: 84px; font-size: 16px; font-weight: 700; padding: 6px 8px; }
.whyrec { margin-top: 4px; font-size: 11px; color: var(--stone); }
.whyrec summary { cursor: pointer; color: var(--pine); font-weight: 500; }
.whyrec ul { margin: 4px 0 0 16px; padding: 0; line-height: 1.45; }
.banner-warn.small { font-size: 11px; padding: 6px 8px; }

/* Ladder page */
.ldial { margin-bottom: 18px; }
.ldial label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.ldial label span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.ldial label b { font-size: 26px; font-weight: 900; color: var(--coin); font-variant-numeric: tabular-nums; }
.ldial input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 2px; background: var(--line); outline: none; }
.ldial input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--coin); border: 3px solid var(--pine); cursor: pointer; }
.ldial .hint { margin-top: 6px; }
.lcard { background: linear-gradient(160deg, #F9F4EB, #EFE7D8); }
.llogo { width: 32px; height: 32px; background: var(--pine); color: var(--cream); display: inline-grid; place-items: center; font-weight: 900; border-radius: 4px; }
.lrows { margin-top: 12px; }
.lrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px dashed rgba(16,36,26,.35); }
.lrow:last-child { border-bottom: 1px dashed rgba(16,36,26,.35); }
.lslots { display: flex; gap: 8px; flex-wrap: wrap; }
.lslot { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed rgba(16,36,26,.25); box-sizing: border-box; }
.lslot.f { border: 0; background: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.ldial label b input[type=text] { width: auto; display: inline-block; padding: 0 2px; font: inherit; color: var(--coin); border: 0; border-bottom: 1px dashed var(--line); background: transparent; text-align: right; padding: 0 2px; }
.ltier .lp { display: inline-flex; align-items: baseline; gap: 1px; }
.ltier input.tierin[type=text] { width: 52px; display: inline-block; padding: 0 2px; font: inherit; color: inherit; border: 0; border-bottom: 1px dashed var(--line); background: transparent; text-align: right; padding: 0; }
.ltier { text-align: right; }
.ltier .lt { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.ltier .lp { font-size: 20px; font-weight: 900; color: var(--pine); }
.lrow.done .ltier .lp { color: var(--coin); }

/* Setup intros: a quiet word before the first page and before the coupon. Full bleed Pine, one hairline, text left, one object right. */
.intro { margin: 0 0 28px; } .intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; background: var(--pine); color: var(--cream); padding: 56px 58px 48px; margin: 4px 0 28px; overflow: hidden; }
.intro::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--coin); }
.intro-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--coin); font-weight: 600; margin-bottom: 18px; }
.intro-title { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1.12; letter-spacing: -.01em; color: var(--cream); margin: 0 0 22px; }
.intro-body p { font-size: 17px; line-height: 1.65; color: rgba(249,244,235,.72); margin: 0 0 14px; }
.intro-body .intro-sign { color: var(--cream); font-weight: 500; }
.intro-text { min-width: 0; }
.intro-rule { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.intro-rule .line { flex: 1; height: 1px; background: rgba(249,244,235,.18); }
.intro-go { position: relative; background: var(--coin); color: var(--pine); border: 0; cursor: pointer; font-family: var(--body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; white-space: nowrap; padding: 14px 26px; animation: introbeat 2.6s ease-in-out infinite; }
.intro-go::before { content: ""; position: absolute; inset: -6px; border: 2px solid var(--coin); opacity: 0; animation: introring 2.6s ease-out infinite; pointer-events: none; }
.intro-go:hover { background: var(--cream); animation: none; }
.intro-go:hover::before { animation: none; }
@keyframes introbeat { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229,165,36,.45); } 40% { transform: scale(1.04); box-shadow: 0 10px 30px rgba(229,165,36,.35); } }
@keyframes introring { 0% { opacity: .7; transform: scale(.96); } 70% { opacity: 0; transform: scale(1.12); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .intro-go, .intro-go::before { animation: none; } }
.intro-art { display: flex; justify-content: center; align-items: center; min-width: 0; }
/* first page: ring + legend */
.intro-lead { font-size: 18px; line-height: 1.6; color: rgba(249,244,235,.78); margin: 0 0 22px; max-width: 520px; }
.intro-tenets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 24px; }
.intro-tenets li { display: flex; gap: 10px; align-items: flex-start; }
.intro-tenets svg { width: 26px; height: 26px; flex: 0 0 26px; fill: none; stroke: var(--coin); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.intro-tenets span { font-size: 14px; line-height: 1.45; color: rgba(249,244,235,.6); }
.intro-tenets strong { display: block; color: var(--cream); font-size: 15.5px; }
.intro-first .intro-rule { margin-top: 32px; }
.intro-first .intro-sign { font-size: 15px; white-space: nowrap; }
.ring-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; justify-content: flex-end; }
.ring { width: 220px; height: 220px; flex: 0 0 220px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.ring-big { font-family: var(--display); font-weight: 900; font-size: 34px; fill: var(--cream); letter-spacing: -.02em; }
.ring-small { font-size: 9px; letter-spacing: .28em; fill: var(--coin); font-weight: 600; }
.ring-legend { list-style: none; margin: 0; padding: 0; }
.ring-legend { flex: 0 0 auto; width: 230px; }
.ring-legend li span:not(.rn) { white-space: nowrap; }
.ring-legend li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; font-size: 15.5px; color: var(--cream); border-top: 1px solid rgba(249,244,235,.1); }
.ring-legend li:first-child { border-top: 0; }
.ring-legend .rn { font-family: var(--display); font-weight: 900; font-size: 13px; color: rgba(249,244,235,.4); }
.ring-legend li.done .rn { color: var(--coin); }
.ring-legend em { white-space: nowrap; font-style: normal; font-size: 13px; color: rgba(249,244,235,.5); }
/* table of contents, first page (unused after ring) */
.toc { width: 100%; max-width: 380px; border: 1px solid rgba(249,244,235,.16); padding: 22px 24px; background: linear-gradient(180deg, rgba(249,244,235,.04), rgba(249,244,235,0)); }
.toc-head { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(249,244,235,.5); font-weight: 600; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(249,244,235,.12); }
.toc-n { font-family: var(--display); font-weight: 900; color: var(--coin); font-size: 13px; }
.toc-t strong { display: block; font-size: 14px; color: var(--cream); }
.toc-t small { display: block; font-size: 11px; color: rgba(249,244,235,.5); margin-top: 2px; line-height: 1.4; }
.toc-m { font-size: 11px; color: rgba(249,244,235,.6); white-space: nowrap; }
.toc-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--coin); font-size: 11px; color: var(--coin); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
/* paper coupon + coin, coupon page */
.cpn-scene { position: relative; width: 400px; height: 290px; }
.cpn { position: absolute; left: 0; top: 10px; width: 310px; background: var(--cream); color: var(--pine); padding: 16px 18px 14px; transform: rotate(-4deg); box-shadow: 0 24px 50px rgba(0,0,0,.45); -webkit-mask: radial-gradient(circle at 0 50%, transparent 7px, #000 7.5px) 0 0 / 100% 100%, radial-gradient(circle at 100% 50%, transparent 7px, #000 7.5px); -webkit-mask-composite: source-in; mask-composite: intersect; }
.cpn::after { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(16,36,26,.4); pointer-events: none; }
.cpn-top { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.cpn-save { font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .2em; margin-top: 10px; }
.cpn-amt { font-family: var(--display); font-weight: 900; font-size: 62px; line-height: 1; letter-spacing: -.02em; margin: 2px 0 4px; }
.cpn-on { font-size: 11px; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpn-bar { display: flex; gap: 2px; align-items: flex-end; height: 22px; margin-top: 10px; }
.cpn-bar i { display: block; height: 100%; background: var(--pine); }
.cpn-coin { position: absolute; right: 0; bottom: 30px; width: 180px; height: 180px; display: grid; place-items: center; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.cpn-coin img { width: 180px; height: 180px; object-fit: contain; grid-area: 1 / 1; }
.cpn-coin span { grid-area: 1 / 1; font-family: var(--display); font-weight: 900; font-size: 24px; color: #5a3d05; text-shadow: 0 1px 0 rgba(255,235,180,.6); }
.cpn-cap { position: absolute; left: 0; bottom: 0; font-size: 11px; color: rgba(249,244,235,.55); letter-spacing: .04em; }
@media (max-width: 1500px) { .intro { gap: 36px; } .ring { width: 170px; height: 170px; flex-basis: 170px; } .ring-big { font-size: 30px; } .ring-legend { width: 200px; } .ring-legend li { font-size: 14px; padding: 7px 0; } }
@media (max-width: 1180px) { .intro { grid-template-columns: 1fr; } .intro-art { justify-content: flex-start; } .ring-wrap { justify-content: flex-start; } .cpn-scene { transform: scale(.9); transform-origin: left top; } }
@media (max-width: 900px) { .intro { padding: 32px 24px 28px; } .intro-title { font-size: 24px; } }

/* Getting set up: chapter rail + sub-steps (2026-08-21) */
.snav { margin: 4px 0 18px; }
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ch { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--deep); border-top: 3px solid var(--line); background: transparent; transition: background .15s; }
.ch:hover { background: rgba(16,36,26,.04); }
.ch-n { grid-row: 1 / span 2; font-family: var(--display); font-weight: 900; font-size: 16px; color: var(--stone); width: 28px; }
.ch-l { font-size: 13px; font-weight: 600; line-height: 16px; }
.ch-s { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); line-height: 14px; }
.ch.active { border-top-color: var(--coin); background: #fff; }
.ch.active .ch-n { color: var(--coin); }
.ch.done { border-top-color: var(--pine); }
.ch.done .ch-n { color: var(--pine); }
.ch.done .ch-s { color: var(--pine); }
.substeps { display: flex; gap: 0; margin-top: 12px; border-bottom: 1px solid var(--line); }
.ss { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 0; margin-right: 20px; text-decoration: none; color: var(--stone); font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ss-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--stone); background: #fff; }
.ss.active { color: var(--deep); font-weight: 600; border-bottom-color: var(--pine); }
.ss.active .ss-dot { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.ss.done .ss-dot { background: var(--cream); border-color: var(--pine); color: var(--pine); }
.ss.done { color: var(--deep); }
.setupfoot.top { border-top: 0; border-bottom: 0; padding: 0 0 14px; margin: 0; }
@media (max-width: 900px) { .chapters { grid-template-columns: repeat(2, 1fr); } }

/* The setup header as its own island: white, one hairline, a soft lift, square corners. */
.sethead { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--pine); padding: 22px 28px 14px; margin: 0 0 28px; box-shadow: 0 14px 36px rgba(16,36,26,.08); }
.sethead .page-head { margin-bottom: 14px; }
.sethead .snav { margin-bottom: 6px; }
.sethead .ch { background: var(--cream); }
.sethead .ch.active { background: var(--pine); color: var(--cream); border-top-color: var(--coin); }
.sethead .ch.active .ch-l { color: var(--cream); }
.sethead .ch.active .ch-s { color: rgba(249,244,235,.6); }
.sethead .ch:hover { background: #F2ECE0; }
.sethead .ch.active:hover { background: var(--pine); }
.sethead .setupfoot.top { padding: 10px 0 0; border-top: 1px solid var(--line); margin-top: 10px; }

/* Section heads on setup pages: defined, with Back / Next on the right. */
#company-start { scroll-margin-top: 28px; }
.sechead { display: flex; align-items: center; gap: 20px; padding: 18px 0 12px; margin: 4px 0 14px; border-bottom: 1px solid var(--line); }
.sechead-text { flex: 1; min-width: 0; border-left: 4px solid var(--coin); padding-left: 14px; }
.sechead h2 { font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 26px; color: var(--pine); margin: 0; letter-spacing: -.005em; }
.sechead .hint { font-size: 13px; line-height: 19px; color: var(--stone); margin-top: 4px; }
.sechead-nav { display: flex; gap: 8px; flex-shrink: 0; }
.sechead-nav .btn { text-decoration: none; }

/* Keep going nudge */
.keepgoing { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; z-index: 30; background: var(--pine); color: var(--cream); border: 0; padding: 8px 14px 8px 16px; font-family: var(--body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 26px rgba(16,36,26,.28); transition: opacity .25s, transform .25s; cursor: pointer; }
.keepgoing span { display: inline-block; color: var(--coin); animation: kgbob 1.6s ease-in-out infinite; }
.keepgoing.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
@keyframes kgbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .keepgoing span { animation: none; } }

/* "Use $x" on the coupon page: Coin, so the recommendation is one obvious click */
.btn.usebtn { background: var(--coin); color: var(--pine); border-color: var(--coin); font-weight: 700; white-space: nowrap; }
.btn.usebtn:hover { background: #F2C04D; border-color: #F2C04D; }
.whyrec { margin-top: 6px; }

/* coupon page: preview picker + prefund figure */
.pvpick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.pvbtn { background: #fff; border: 1px solid var(--line); color: var(--deep); font-family: var(--body); font-size: 12px; padding: 6px 12px; cursor: pointer; }
.pvbtn.on { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.prefund { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 12px; }
.prefund .pf-n { font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--pine); letter-spacing: -.01em; }
.prefund .pf-l { font-size: 12px; color: var(--stone); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Home: next-up card + the live setup strip ----------
   Home stopped re-listing all twelve setup rows (that list is the Getting set up tab's job now).
   It shows the one step you are actually on, and once the campaign is live it shrinks to a strip. */
.nucard {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto;
  column-gap: 16px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--pine); border-radius: 6px;
  background: var(--cream); text-decoration: none; color: var(--deep);
}
.nucard:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--pine); }
.nucard .nu-where { grid-column: 1; font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.nucard .nu-label { grid-column: 1; font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 26px; color: var(--pine); }
.nucard .nu-need { grid-column: 1; font-size: 12px; line-height: 18px; color: var(--deep); }
.nucard .nu-go {
  grid-column: 2; grid-row: 1 / span 3; align-self: center; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--cream); background: var(--pine);
  border-radius: 8px; padding: 9px 14px;
}
.nu-rest { margin-top: 10px; font-size: 11px; color: var(--stone); }
.nu-rest a { color: var(--pine); text-decoration: none; font-weight: 700; }
.nu-rest a:hover { text-decoration: underline; }

.sstrip {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; text-decoration: none; color: var(--deep);
}
a.sstrip:hover { border-color: var(--pine); }
.sstrip .sstrip-t { flex: 1; font-size: 12px; color: var(--stone); }
.sstrip .sstrip-t strong { color: var(--deep); }
.sstrip .sstrip-go { font-size: 11px; font-weight: 700; color: var(--pine); white-space: nowrap; }
.sstrip.done .sstrip-t strong { color: var(--success); }
.card.quiet { background: var(--cream); }

.grid.home { align-items: start; }
.grid.home .col7 { grid-column: span 7; display: flex; flex-direction: column; gap: 12px; }

/* =====================================================================
   HOME v2: the coin-slot page. Circles and pills only (the coin and the slot it drops into);
   nothing on this page is a rounded rectangle. Panels are square, separated by hairlines.
   Display type is Archivo Expanded here (the app's Eurostile substitute), scoped to Home.
   ===================================================================== */
@font-face { font-family: 'Archivo Expanded'; font-style: normal; font-weight: 600 900; font-display: swap; src: url(fonts/ArchivoExpanded-var.woff2) format('woff2'); }
.home { --display: 'Archivo Expanded', 'Eurostile', 'Helvetica Neue', Arial, sans-serif; --hair: var(--line); }
.home * { border-radius: 0; }
.home .muted { color: var(--stone); }
.home h2 { font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--pine); }
.home .hhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--pine); margin-bottom: 12px; }
.home .hcount { font-size: 12px; color: var(--stone); }
.home .hcount b { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--pine); }
.home .hlink { font-size: 11px; font-weight: 700; color: var(--pine); text-decoration: none; }
.home .hlink:hover { text-decoration: underline; }
.home .hsec { margin-top: 28px; }
.home .empty { font-size: 12px; color: var(--stone); padding: 8px 0; }
.home .more { font-size: 11px; color: var(--stone); padding-top: 8px; }
.home .more a { color: var(--pine); font-weight: 700; text-decoration: none; }

/* hero */
.home .hero { display: grid; grid-template-columns: 1fr 300px; gap: 24px; background: var(--pine); color: var(--cream); padding: 32px 36px 28px; position: relative; overflow: hidden; }
.home .hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid rgba(249,244,235,.035); pointer-events: none; }
.home .heye { font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(249,244,235,.62); display: flex; align-items: center; gap: 10px; }
.home .htag { display: inline-block; font-size: 9px; letter-spacing: .12em; font-weight: 800; color: var(--pine); background: var(--coin); padding: 2px 10px; border-radius: 999px !important; }
.home .htag.pre { background: transparent; color: var(--cream); border: 1px solid rgba(249,244,235,.4); }
.home .htitle { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 48px; color: var(--cream); margin: 14px 0 10px; letter-spacing: .01em; }
.home .hlede { font-size: 15px; line-height: 22px; color: rgba(249,244,235,.78); max-width: 560px; }
.home .hlede strong { color: var(--cream); font-weight: 700; }
.home .hstats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border-top: 1px solid rgba(249,244,235,.18); }
.home .hs { padding: 14px 16px 0 0; border-left: 1px solid rgba(249,244,235,.18); padding-left: 16px; }
.home .hs:first-child { border-left: 0; padding-left: 0; }
.home .hsv { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 32px; color: var(--coin); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home .hs:nth-child(-n+2) .hsv { color: var(--cream); }
.home .hsl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(249,244,235,.62); margin-top: 4px; }
.home .hss { font-size: 11px; color: rgba(249,244,235,.5); }
.home .hright { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.home .slotwrap { position: relative; width: 200px; height: 132px; }
.home .slotclip { position: absolute; left: 0; top: 0; width: 100%; height: 112px; overflow: hidden; z-index: 1; }
.home .slotbar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 150px; height: 20px; border-radius: 999px !important; background: linear-gradient(#071710, #143224); box-shadow: inset 0 3px 8px rgba(0,0,0,.85), 0 1px 0 rgba(249,244,235,.14); z-index: 2; }
.home .slotbar::after { content: ""; position: absolute; inset: 6px 18px; border-radius: 999px !important; background: rgba(0,0,0,.55); }
.home .slotcoin { position: absolute; left: 50%; top: 0; width: 64px; height: 64px; margin-left: -32px; border-radius: 50% !important; background: center/cover no-repeat; opacity: 0; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.home .hero.live .slotcoin { animation: slotin 2.2s cubic-bezier(.5,0,.6,1) infinite; }
.home .hero.pre .slotcoin { opacity: 1; animation: slothover 3s ease-in-out infinite; }
@keyframes slotin { 0% { transform: translateY(-60px) rotate(-8deg); opacity: 0 } 14% { opacity: 1 } 62% { transform: translateY(52px) rotate(4deg); opacity: 1 } 100% { transform: translateY(124px) rotate(6deg); opacity: 1 } }
@keyframes slothover { 0%, 100% { transform: translateY(8px) } 50% { transform: translateY(20px) } }
.home .slotcap { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(249,244,235,.6); margin-top: 6px; }

/* punch card */
.home .pcard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.home .pgrp { padding: 16px 16px 14px; border-left: 1px solid var(--hair); }
.home .pgrp:first-child { border-left: 0; padding-left: 0; }
.home .pgl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); font-weight: 500; margin-bottom: 14px; }
.home .pgl b { font-family: var(--display); font-weight: 800; color: var(--pine); margin-right: 6px; }
.home .pgrp.ok .pgl { color: var(--success); }
.home .pslots { display: flex; gap: 10px; }
.home .pslot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--deep); min-width: 0; }
.home .pcoin { width: 56px; height: 56px; border-radius: 50% !important; border: 2px dashed rgba(16,36,26,.35); background: var(--cream) center/cover no-repeat; display: grid; place-items: center; position: relative; transition: transform .18s; }
.home .pcoin::after { content: ""; width: 46%; height: 12%; border-radius: 999px !important; background: rgba(16,36,26,.24); }
.home .pslot:hover .pcoin { transform: scale(1.08); border-color: var(--pine); }
.home .pslot.f .pcoin { border-color: transparent; box-shadow: 0 6px 12px rgba(16,36,26,.25); animation: coinpop .55s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(var(--i) * 70ms); }
.home .pslot.f .pcoin::after { display: none; }
.home .pslot:not(.f) .pcoin { background-image: none !important; }
.home .pslot.nx .pcoin { border-style: solid; border-color: var(--pine); }
.home .pslot.nx .pcoin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--coin); animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .9 } 100% { transform: scale(1.25); opacity: 0 } }
@keyframes coinpop { 0% { transform: translateY(-40px) scale(.6); opacity: 0 } 60% { opacity: 1 } 100% { transform: none; opacity: 1 } }
.home .pslab { font-size: 10px; line-height: 13px; text-align: center; color: var(--stone); font-weight: 500; }
.home .pslot.f .pslab { color: var(--success); }
.home .pslot.nx .pslab { color: var(--pine); font-weight: 700; }
.home .pfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; }
.home .pnext { font-size: 13px; color: var(--deep); }
.home .pillbtn { display: inline-block; font-size: 12px; font-weight: 700; color: var(--cream); background: var(--pine); padding: 10px 18px; border-radius: 999px !important; text-decoration: none; white-space: nowrap; }
.home .pillbtn:hover { background: var(--coin); color: var(--pine); }
.home .pillbtn.ghost { background: transparent; color: var(--pine); border: 1px solid var(--pine); }

/* launch rail */
.home .rail { position: relative; padding-top: 4px; }
.home .railline { position: absolute; left: 8.33%; right: 8.33%; top: 22px; height: 2px; background: var(--hair); }
.home .railline i { display: block; height: 100%; background: var(--pine); width: calc((var(--cur) - 1) / 5 * 100%); max-width: 100%; transition: width .6s ease; }
.home .rail.live .railline i { width: 100%; background: var(--success); }
.home .stops { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.home .stop { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.home .snode { width: 38px; height: 38px; border-radius: 50% !important; border: 2px solid var(--hair); background: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 12px; color: var(--stone); margin-bottom: 10px; }
.home .stop.done .snode { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.home .rail.live .stop.done .snode { background: var(--success); border-color: var(--success); }
.home .stop.cur .snode { border-color: var(--pine); background: var(--cream); }
.home .scoin { width: 38px; height: 38px; border-radius: 50% !important; background: center/cover no-repeat; box-shadow: 0 5px 10px rgba(16,36,26,.3); animation: coinbob 2.4s ease-in-out infinite; }
@keyframes coinbob { 0%, 100% { transform: translateY(-4px) } 50% { transform: translateY(2px) } }
.home .stitle { font-size: 12px; font-weight: 700; color: var(--deep); }
.home .stop.done .stitle { color: var(--pine); }
.home .stop.cur .stitle { color: var(--pine); }
.home .splain { font-size: 10px; line-height: 14px; color: var(--stone); }
.home .sopen { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.home .sopen a { font-size: 10px; line-height: 14px; color: var(--pine); text-decoration: none; }
.home .sopen a:hover { text-decoration: underline; }

/* the three columns */
.home .hgrid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; margin-top: 28px; }
.home .hcol { min-width: 0; }
.home .prow, .home .nrow { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--deep); }
.home .prow:hover .pt, .home .nrow:hover .pt { text-decoration: underline; }
.home .pdot { width: 10px; height: 10px; border-radius: 50% !important; background: var(--pine); flex: none; margin-top: 4px; }
.home .prow.late .pdot, .home .nrow.error .pdot { background: var(--error); }
.home .nrow.warn .pdot { background: var(--coin); }
.home .nrow.info .pdot { background: var(--info); }
.home .ptext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home .pt { font-size: 12px; font-weight: 700; line-height: 16px; }
.home .pd { font-size: 11px; line-height: 15px; color: var(--stone); }
.home .pgo { font-size: 12px; color: var(--stone); }
.home .prow:hover .pgo { color: var(--pine); }

/* stock rows */
.home .srow { display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: auto auto; column-gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--deep); align-items: center; }
.home .srow .stext { grid-column: 1; display: flex; flex-direction: column; }
.home .srow .st { font-size: 12px; font-weight: 700; }
.home .srow .sd { font-size: 10px; color: var(--stone); }
.home .srow .sdots { grid-column: 1 / span 3; grid-row: 2; display: flex; gap: 4px; margin-top: 6px; }
.home .srow .sdots i { width: 9px; height: 9px; border-radius: 50% !important; border: 1px solid rgba(16,36,26,.3); }
.home .srow .sdots i.on { background: var(--coin); border-color: var(--coin); }
.home .srow .sn { font-size: 11px; color: var(--stone); white-space: nowrap; }
.home .srow .sn b { color: var(--deep); font-family: var(--display); font-weight: 800; font-size: 12px; }
.home .srow .sst { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px !important; color: var(--cream); background: var(--success); }
.home .srow.low .sst { background: var(--coin); color: var(--pine); }
.home .srow.reorder .sst { background: var(--error); }

/* who is tapping */
.home .whogrid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 0 28px; }
.home .lh { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); font-weight: 500; margin-bottom: 6px; }
.home .lrow { display: grid; grid-template-columns: 18px 1fr 80px 48px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 12px; }
.home .lrank { font-family: var(--display); font-weight: 800; font-size: 11px; color: var(--stone); }
.home .lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home .lbar { height: 6px; background: var(--cream); border: 1px solid var(--hair); }
.home .lbar i { display: block; height: 100%; background: var(--pine); }
.home .lval { text-align: right; font-family: var(--display); font-weight: 800; font-size: 12px; color: var(--pine); }
.home .mix { display: flex; align-items: center; gap: 16px; }
.home .mixring { width: 108px; height: 108px; border-radius: 50% !important; flex: none; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--coin) calc(var(--p) * 1%), rgba(16,36,26,.1) 0); position: relative; }
.home .mixring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--cream); }
.home .mixring b, .home .mixring span { position: relative; }
.home .mixring b { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--pine); }
.home .mixring span { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.home .mixl { font-size: 11px; line-height: 20px; color: var(--stone); }
.home .mixl b { font-family: var(--display); font-weight: 800; color: var(--pine); font-size: 12px; margin-right: 4px; }

/* feed */
.home .feed { position: relative; }
.home .frow { display: grid; grid-template-columns: 72px 14px 1fr; gap: 0 10px; padding: 7px 0; align-items: start; }
.home .fts { font-size: 10px; color: var(--stone); line-height: 16px; font-variant-numeric: tabular-nums; }
.home .fdot { width: 10px; height: 10px; border-radius: 50% !important; background: var(--stone); margin-top: 3px; position: relative; }
.home .frow.tap .fdot { background: var(--coin); box-shadow: 0 0 0 3px rgba(229,165,36,.25); }
.home .frow.offer .fdot { background: var(--pine); }
.home .fdot::after { content: ""; position: absolute; left: 4px; top: 12px; width: 2px; height: 26px; background: var(--hair); }
.home .frow:last-child .fdot::after { display: none; }
.home .ftext { display: flex; flex-direction: column; }

/* ---------- Account layer (house of brands: one login, several brands) ----------
   The switcher takes the slot the brand name used to hold, right under the wordmark.
   It reads as the account, with the brand you are in beneath it, and opens to the
   list of brands plus the way up to the account home. */
.brandswitch { position: relative; padding: 10px 12px 12px; border-bottom: 1px solid rgba(249,244,235,.14); }
.brandswitch .acct-btn {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: 6px 8px; cursor: pointer; font-family: var(--body); color: var(--cream);
}
.brandswitch .acct-btn:hover { background: rgba(249,244,235,.07); border-color: rgba(249,244,235,.16); }
.brandswitch.open .acct-btn { background: rgba(249,244,235,.1); border-color: rgba(249,244,235,.28); }
.brandswitch .ab-txt { flex: 1; min-width: 0; }
.brandswitch .ab-acct {
  display: block; font-family: var(--display); font-weight: 900; letter-spacing: .02em;
  font-size: 14px; line-height: 18px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brandswitch .ab-in {
  display: block; font-size: 11px; line-height: 15px; color: rgba(249,244,235,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brandswitch .ab-caret {
  flex: none; width: 8px; height: 5px; opacity: .65;
  background: var(--cream); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform .12s ease;
}
.brandswitch.open .ab-caret { transform: rotate(180deg); }
.acct-menu {
  position: absolute; left: 8px; right: 8px; top: calc(100% - 4px); z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16,36,26,.28); padding: 4px; overflow: hidden;
}
.acct-menu .am-item { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; }
.acct-menu .am-item:hover { background: var(--pine-08); }
.acct-menu .am-item.on { background: var(--pine); }
.acct-menu .am-n { display: block; font-size: 13px; font-weight: 600; color: var(--pine); }
.acct-menu .am-s { display: block; font-size: 10px; line-height: 14px; color: var(--stone); }
.acct-menu .am-item.on .am-n { color: #fff; }
.acct-menu .am-item.on .am-s { color: rgba(249,244,235,.7); }
.acct-menu .am-sep {
  font-size: 9px; line-height: 12px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--stone);
  padding: 8px 10px 4px; margin-top: 2px; border-top: 1px solid var(--line);
}

/* ---------- The account home: pick a company ----------
   A doorway, not a dashboard. Cream field, Pine display type, hairlines instead
   of boxes, and Coin used exactly once, on the row you are pointing at. */
/* The hero borrows the website's field: Pine with the soft radial lift, the faint
   80px grid fading out, Coin eyebrow with its rule, and the coin itself at rest. */
.acct { max-width: 760px; --display: 'Archivo Expanded', 'Eurostile', 'Helvetica Neue', Arial, sans-serif; }
.acct-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 200px; align-items: center; gap: 24px;
  background: radial-gradient(ellipse at 72% 40%, #173627 0%, var(--pine) 45%, #0b1a12 100%);
  color: var(--cream); padding: 40px 40px 36px; margin-bottom: 8px;
}
.acct-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(249,244,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(249,244,235,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 45%, #000 5%, transparent 65%); mask-image: radial-gradient(ellipse at 75% 45%, #000 5%, transparent 65%); }
.acct-copy { position: relative; z-index: 1; }
.acct-eye { display: flex; align-items: center; gap: 12px; font-size: 10px; line-height: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coin); }
.acct-eye i { width: 32px; height: 1px; background: var(--coin); }
.acct-name { font-family: var(--display); font-weight: 900; letter-spacing: .01em; font-size: 44px; line-height: 48px; color: var(--cream); margin: 18px 0 14px; }
.acct-lede { font-size: 15px; line-height: 22px; color: rgba(249,244,235,.72); max-width: 420px; }
.acct-coin { position: relative; z-index: 1; width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; background: center/cover no-repeat;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); animation: acctfloat 4s ease-in-out infinite; }
@keyframes acctfloat { 0%, 100% { transform: translateY(-4px) rotate(-3deg) } 50% { transform: translateY(6px) rotate(3deg) } }

.acct-list { border-top: 2px solid var(--pine); margin-top: 28px; }
.acct-row .ar-mark {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--pine); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(249,244,235,.12); transition: background .12s ease, color .12s ease;
}
.acct-row:hover .ar-mark { background: var(--coin); color: var(--pine); }
.acct-row {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 12px 22px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .12s ease, padding-left .12s ease;
}
.acct-row:hover { background: rgba(16,36,26,.035); padding-left: 12px; }
.acct-row .ar-main { flex: 1; min-width: 0; }
.acct-row .ar-name {
  display: block; font-family: var(--display); font-weight: 900; letter-spacing: .01em;
  font-size: 26px; line-height: 32px; color: var(--pine);
}
.acct-row .ar-sub { display: block; font-size: 12px; line-height: 18px; color: var(--stone); margin-top: 3px; }
.acct-row .ar-side { display: flex; align-items: center; gap: 16px; flex: none; }
.acct-row .ar-pre,
.acct-row .ar-live {
  font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--stone);
}
.acct-row .ar-live { color: var(--pine); display: flex; align-items: center; gap: 6px; }
.acct-row .ar-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--coin); }
/* The chevron: Stone at rest, Coin and a step to the right under the pointer. */
.acct-row .ar-go {
  width: 8px; height: 8px; border-right: 2px solid var(--stone); border-top: 2px solid var(--stone);
  transform: rotate(45deg); transition: border-color .12s ease, transform .12s ease;
}
.acct-row:hover .ar-go { border-color: var(--coin); transform: rotate(45deg) translate(2px, -2px); }

.acct-add { border-bottom: 1px solid var(--line); }
.acct-addbtn {
  display: flex; align-items: center; width: 100%; text-align: left; padding: 16px 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-size: 13px; color: var(--stone);
}
.acct-addbtn::before { content: '+'; display: inline-flex; width: 52px; height: 52px; margin-right: 20px; align-items: center; justify-content: center; border-radius: 50%; border: 1px dashed var(--stone); font-size: 20px; vertical-align: middle; }
.acct-addbtn:hover::before { border-color: var(--pine); color: var(--pine); }
.acct-addbtn:hover { color: var(--pine); }
.acct-add.open .acct-addbtn { display: none; }
.acct-form { display: flex; align-items: flex-end; gap: 10px; padding: 20px 0; flex-wrap: wrap; }
.acct-form[hidden] { display: none; }
.acct-form label {
  display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px;
  font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--stone);
}

.acct-foot { margin-top: 32px; font-size: 12px; line-height: 19px; color: var(--stone); max-width: 560px; }
.acct-reset {
  display: block; margin-top: 14px; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--body); font-size: 11px; color: var(--stone); text-decoration: underline;
  text-underline-offset: 3px;
}
.acct-reset:hover { color: var(--pine); }

/* HQ Brands: brands grouped under their account. Members indent under the account line. */
.acctgroup { border-top: 2px solid var(--pine); margin-top: 4px; }
.acctgroup .brandrow { padding-left: 24px; }

/* Factory artwork proofs on the HQ stock page. Two sheets side by side, stacking on narrow. */
.artwork-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-top:14px}
.artwork-proof{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;display:flex;flex-direction:column}
.artwork-proof .proof-cta{margin-top:auto;padding-top:10px}
.artwork-proof img{width:100%;height:auto;display:block;border-radius:6px;border:1px solid var(--line)}
