/* The Golden Hub's styles, split by the original file's sections. The files are in source order
   (the cascade depends on it), not in the order of the section numbers. *//* ── 1. Brand tokens (McDonald's Feel-Good Design, digital) ─── */
:root {
  --gold: #FFBC0D;          /* McDonald's Gold */
  --red: #DB0007;           /* McDonald's Red */
  --black: #000;            /* type only */
  --charcoal: #2D2D2D;      /* functional, internal comms */
  --gray: #F7F7F7;          /* functional, internal comms */
  --kraft: #B69A81;
  --muted: rgba(45, 45, 45, .7);
  --faint: rgba(45, 45, 45, .36);
  --line: rgba(45, 45, 45, .12);
  --font: "Speedee", "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 3.4vw, 56px);
  --col: clamp(380px, 40vw - 20px, 660px);   /* the story column on wide screens (the restaurant's box starts beside it: cacheKeys) */
  --r-card: 28px;
  --focus-line: .5;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: #fff; color: var(--black); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
html.lenis.lenis-stopped, html.is-exploring { overflow: hidden; }
body { margin: 0; font: 400 17px/1.5 var(--font); background: #fff; overflow-x: clip; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button { font: inherit; color: inherit; }
/* ── 2. Type ──────────────────────────────────────────────── */
h1, h2, h3 { color: var(--black); margin: 0; font-weight: 800; line-height: .95; letter-spacing: -.02em; }
.head { font-size: clamp(40px, 5.2vw, 80px); }
.label { display: block; font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--red); margin: 0 0 16px; letter-spacing: .01em; }
.lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; color: var(--charcoal); margin: 20px 0 0; max-width: 40ch; }
.rule { border-top: 3px solid var(--gold); padding-top: 18px; }
/* Gold highlight bar behind black type (allowed on internal communications). */
mark, .hl { color: var(--black); background: linear-gradient(transparent 9%, var(--gold) 9% 91%, transparent 91%) no-repeat 0 0 / var(--hlw, 100%) 100%; padding: 0 .1em; margin: 0 -.02em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* ── 3. Buttons, chips, badges ───────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: var(--black); }
.btn.gold:hover { box-shadow: 0 8px 22px rgba(255, 188, 13, .45); }
.btn.line { background: #fff; color: var(--black); box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.btn.round { width: 44px; padding: 0; font-size: 20px; line-height: 1; }
.btn svg { width: 16px; height: 16px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-weight: 700; font-size: 13.5px; padding: 8px 13px; border-radius: 999px; background: var(--gray); color: var(--black); box-shadow: inset 0 0 0 1px var(--line); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; line-height: 1; padding: 7px 12px 7px 10px; border-radius: 999px; }
.badge.cx { background: var(--gold); color: var(--black); }
.badge.mod { background: var(--red); color: #fff; }
.badge.star, .badge.conv { background: var(--charcoal); color: #fff; }
.mk { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mk.mod { border-radius: 1px; }
.mk.star, .mk.conv { border-radius: 1px; transform: rotate(45deg); }
.token { display: block; flex: none; width: 32px; height: 32px; }
/* ── 4. Floating nav pill (Token sits in the top-left corner) ─ */
.pill { position: fixed; z-index: 20; top: 14px; left: 14px; display: flex; align-items: center; gap: 4px; height: 56px; padding: 6px 6px 6px 8px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .08); }
.brand { display: flex; align-items: center; gap: 10px; padding-right: 10px; color: var(--black); text-decoration: none; font-weight: 900; font-size: 19px; letter-spacing: -.02em; }
.pill nav { display: flex; gap: 2px; }
.pill nav a { color: var(--charcoal); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 13px; border-radius: 999px; transition: background .2s; }
.pill nav a:hover { background: var(--gray); }
.pill nav a[aria-current="true"] { background: var(--gray); color: var(--black); box-shadow: inset 0 -3px 0 var(--gold); }
.pill .btn { height: 44px; margin-left: 6px; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 300px; padding: 6px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .14); }
.menu[hidden] { display: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 8px 13px 4px; font-weight: 700; font-size: 13px; color: var(--muted); }
.menu-head kbd { font: inherit; font-size: 12px; min-width: 22px; padding: 2px 6px; text-align: center; border-radius: 6px; color: var(--charcoal); background: var(--gray); box-shadow: inset 0 -1px 0 var(--line); }
.menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; background: none; border: 0; padding: 11px 13px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--black); }
.menu button small { font-weight: 400; font-size: 13px; color: var(--muted); }
.menu button:hover, .menu button:focus-visible { background: var(--gray); }
.status { position: fixed; z-index: 21; top: 80px; left: 22px; margin: 0; font-weight: 600; font-size: 13px; color: var(--charcoal); background: #fff; border-radius: 999px; padding: 0; box-shadow: none; }
.status:not(:empty) { padding: 8px 14px; box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(0, 0, 0, .08); }
/* ── 5. Fixed 3D stage and its labels ────────────────────── */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .25s linear; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: auto; touch-action: pan-y pinch-zoom; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; opacity: 0; transition: opacity .8s ease; }
#gl.is-ready { opacity: 1; }
#gl.is-hover { cursor: pointer; }
#gl.is-drag { cursor: grabbing; }
.stage.is-hidden #gl { pointer-events: none; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag, .callout { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform, opacity; }
.tag { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12.5px; color: var(--charcoal); }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders path { fill: none; stroke: var(--charcoal); stroke-width: 1.25; opacity: 0; }
.tag .n { color: var(--faint); }
.tag .t { padding: 4px 8px; border-radius: 6px; transition: background .25s, color .25s; }
.tag.is-active .t { background: var(--c); color: var(--on-c); }
.tag.is-active .n { color: var(--black); }
.callout { font-weight: 700; font-size: 13px; color: #fff; background: var(--charcoal); padding: 6px 11px; border-radius: 999px; }
.callout::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: var(--ly, 22px); background: var(--charcoal); opacity: .5; }
.callout.under::after { top: auto; bottom: 100%; }
.viewer { position: fixed; z-index: 5; right: 18px; bottom: 18px; display: flex; gap: 6px; padding: 6px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(0, 0, 0, .08); transition: opacity .3s, transform .3s; }
.viewer .btn { height: 40px; }
.viewer .btn.round { width: 40px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.viewer .btn.round:hover { background: var(--gray); }
html.model-hidden .viewer, html.is-exploring .viewer { opacity: 0; transform: translateY(12px); pointer-events: none; }
/* ── 6. Page flow: content floats above the fixed 3D stage ── */
main { position: relative; z-index: 1; pointer-events: none; }
main :is(a, button, input, .card, .rule, .reveal) { pointer-events: auto; }
[data-key] { --safe: .46 .12 .97 .9; }

/* The hero: the headline on top, the restaurant big in the middle, one control pill below.
   heroSafe() frames the model (--safe) between the headline and the pill, at every width. */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 24px; padding: 92px var(--pad) 24px; text-align: center; --safe: .05 .3 .95 .88; }
.hero-head { max-width: min(1320px, 100%); }
.hero-head .label { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; min-height: 30px; margin: 0 0 12px; }
.hero-head .label .pinav { --size: 30px; }
.hero .head { font-size: clamp(34px, 3.4vw, 56px); line-height: 1; letter-spacing: -.028em; text-wrap: balance; }
.hero-lead { margin: 12px auto 0; max-width: 46em; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.45; color: var(--charcoal); text-wrap: balance; }
.cue { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; color: var(--charcoal); text-decoration: none; }
.cue i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--black); font-style: normal; font-size: 18px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero-row { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(0, 0, 0, .08); pointer-events: auto; }
.hero-row .cue { padding-right: 14px; }
/* Why NEXT, the first chapter: why we need you, then the statement, word by word, beside the hero's building. */
.layer.why { min-height: 200svh; display: block; padding: 0; }
.why .pin { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; }
.why .why-title { font-size: clamp(36px, 3.4vw, 58px); line-height: 1.02; letter-spacing: -.028em; margin: 0; text-wrap: balance; }
/* The statement reads like a lead (not bold under the bold headline); its words still darken and its phrases still grow a Gold bar. */
.why .reveal { margin-top: 16px; font-weight: 400; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; letter-spacing: 0; max-width: 36ch; color: var(--charcoal); }
.why-after { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); opacity: clamp(0, calc((var(--p, 0) - .85) * 8), 1); }
.why-after .long { margin-top: 0; font-size: 16px; }
.why-after .vid { margin-top: 14px; }
.why-after .ladder-go { margin-top: 14px; }
html.rm .why { --p: 1; }
/* 04 The foundation holds while the bricks fill in. */
.layer.bricks { min-height: 180svh; display: block; padding: 0; }
.bricks .pin { position: sticky; top: 0; min-height: 100svh; display: grid; align-content: center; padding: 6svh 0; }
.reveal { font-weight: 800; font-size: clamp(30px, 4.3vw, 70px); line-height: 1.06; letter-spacing: -.028em; margin: 0; max-width: 23ch; color: var(--black); }
.reveal .w { opacity: clamp(.12, calc((var(--p, 0) * (var(--n) + 8) - var(--i)) / 8), 1); }
.reveal .w.hl { --hlw: calc(clamp(0, (var(--p, 0) * (var(--n) + 8) - var(--i) - 4) / 4, 1) * 100%); }
html.rm .reveal { --p: 1; }

.framework { position: relative; display: grid; grid-template-columns: minmax(0, var(--col)); padding: 20svh var(--pad) 0; }
.layer { grid-column: 1; min-height: 100svh; display: grid; align-content: center; padding: 6svh 0; }
.layer .top { display: flex; align-items: center; gap: 12px; }
.layer h2 { font-size: clamp(38px, 3.7vw, 62px); margin-top: 20px; }
.soft { font-weight: 500; color: var(--muted); }
.layer .long { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--charcoal); margin: 16px 0 0; max-width: 38ch; }
.layer h2.long-title { font-size: clamp(34px, 3vw, 50px); line-height: 1; }
.layer .kicker { margin: 16px 0 -8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.layer .label.pl { margin: 18px 0 -10px; }
/* Story links down to the next chapter (Why NEXT to Make It Golden, Make It Golden on to (Re)Imagine). */
.layer .ladder-go { margin: 18px 0 0; }
.layer .ladder-go a { font-weight: 800; font-size: 15px; color: var(--black); text-underline-offset: 4px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.layer .ladder-go i { font-style: normal; }
.layer .long.body { color: var(--black); }
.tag .n:empty { display: none; }
/* A public figure with its source (black type, never Gold). */
/* A pillar's target: "Our goal" opens the rule on its own row, then the figure and its line (or a line alone). */
.fig { margin: 18px 0 0; max-width: 44ch; }
.fig-k { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fig-k::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.fig-v { display: flex; align-items: baseline; gap: 14px; }
.fig b { flex: none; font-weight: 900; font-size: clamp(26px, 2.2vw, 36px); letter-spacing: -.03em; line-height: 1; color: var(--black); }
.fig span { font-size: 14.5px; line-height: 1.4; color: var(--charcoal); }
.fig.text span { font-weight: 700; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.35; color: var(--black); }
/* A Worldwide 2026 talk (sample thumbnail; opens the room's Watch tab). */
.vid { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; width: 100%; max-width: 420px; margin: 18px 0 0; padding: 6px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; font: inherit; color: inherit; transition: box-shadow .2s; }
.vid:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.vid .thumb { border-radius: 12px; }
.vid .thumb .play { width: 30px; height: 30px; }
.vid b { display: block; font-size: 14.5px; line-height: 1.25; }
.vid small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.layer .acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 22px; }
/* The gold button, with its proof caption under it. */
.layer .bridge-col { display: flex; flex-direction: column; align-items: flex-start; }
.layer .acts .btn.deeper { margin-top: 0; }
/* 04 The foundation: the golden bricks (sample). */
.bricks-block { margin: 18px 0 0; max-width: 44ch; }
.bricks-block .bcount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 0; font-weight: 700; font-size: 15px; }
.bricks-block .bn { font-weight: 900; font-size: clamp(30px, 2.6vw, 42px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bricks-block .kick { margin: 14px 0 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
.brows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.brows li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; }
.brows small { display: block; color: var(--muted); font-size: 12.5px; }
.bk { flex: none; display: inline-block; width: 22px; height: 11px; border-radius: 2px; background: var(--gold); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.bricks-block .legend { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 700; font-size: 12.5px; color: var(--charcoal); }
.deflist { margin: 20px 0 0; display: grid; gap: 0; max-width: 44ch; border-top: 1px solid var(--line); }
.deflist div { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 800; font-size: 15px; }
.deflist dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--charcoal); }
.values { margin: 0; max-width: 44ch; border-bottom: 1px solid var(--line); }
.values summary { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 4px 16px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 800; font-size: 15px; }
.values summary::-webkit-details-marker { display: none; }
.values summary span { font-weight: 500; color: var(--charcoal); }
.values summary span::after { content: " +"; font-weight: 800; color: var(--red); }
.values[open] summary span::after { content: " −"; }
.values .deflist { margin: 0 0 8px; border-top: 0; }
.values .deflist div { padding: 6px 0; border-bottom: 0; }
.values .deflist dt, .values .deflist dd { font-size: 14px; }
.panel-gray { background: var(--gray); }
.card.panel { padding: clamp(26px, 3vw, 46px); border-radius: var(--r-card); }
.card.panel h2 { font-size: clamp(34px, 3.2vw, 54px); }

/* 05: a tall scroll range whose sticky pin holds the headline; the canvas shows through. */
.finale { position: relative; height: 300svh; pointer-events: none; --safe: .06 .28 .94 .86; }
.fin-pin { position: sticky; top: 0; height: 100svh; padding: 92px var(--pad) 30px; text-align: center; opacity: var(--fo, 1); }
.finale.fin-gone .fin-pin { visibility: hidden; }
.fin-card { height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.fin-head { max-width: 900px; pointer-events: auto; }
.fin-head .head { font-size: clamp(40px, 5vw, 78px); }
.fin-a, .fin-b { display: inline-block; opacity: var(--fa, 0); transform: translateY(calc((1 - var(--fa, 0)) * 14px)); }
.fin-b { --fa: var(--fbb, 0); }
.btn[hidden] { display: none; }

/* Your part: the camera comes down to street level; the card waits beside it. Its safe area equals Your part's. */
.descend { position: relative; height: 160svh; --safe: .5 .12 .97 .9; }
.ds-pin { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; grid-template-columns: minmax(0, min(40vw, 560px)); padding: 0 var(--pad); }
.descend .head { font-size: clamp(40px, 4.2vw, 68px); }
.descend .fact { margin: 16px 0 0; font-weight: 700; font-size: 15px; color: var(--charcoal); max-width: 42ch; }
.descend .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.descend .ds-x { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.seg button { height: 44px; padding: 0 17px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, box-shadow .2s; }
.seg button:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.seg button[aria-pressed="true"] { background: var(--gold); box-shadow: none; }
.note { margin: 20px 0 0; font-size: 17px; line-height: 1.5; color: var(--charcoal); min-height: 3.1em; max-width: 42ch; }
.cycle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 26px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: 14px; }
.cycle li { padding: 7px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cycle li.arrow { padding: 0; background: none; box-shadow: none; color: var(--red); }

.foot { position: relative; min-height: 78svh; margin: 14svh 12px 12px; padding: clamp(28px, 5vw, 80px); background: var(--gray); border-radius: var(--r-card); display: grid; align-content: space-between; gap: 48px; pointer-events: auto; }
.foot h2 { font-size: clamp(44px, 6vw, 96px); }
.foot .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.foot .learn { margin: 18px 0 0; }
.foot .learn a { color: var(--black); font-weight: 700; font-size: 15px; text-underline-offset: 4px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.foot .legal { display: flex; align-items: flex-end; gap: 14px; font-size: 13.5px; color: var(--muted); }
.foot .legal .token { width: 40px; height: 40px; }
/* ── 7. Explore dialog ───────────────────────────────────── */
.explorer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--black); overflow: hidden; }
.explorer::backdrop { background: #fff; }
.explorer .stage { position: absolute; }
.explorer #gl { touch-action: none; }
.xbar { position: absolute; left: 14px; right: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .08); }
.xbar.top { top: 14px; }
.xbar.top h2 { font-size: 18px; letter-spacing: -.01em; margin-right: auto; }
.xbar.bottom { bottom: 14px; flex-wrap: wrap; border-radius: 26px; padding: 10px 12px; }
.xbar .menu { top: calc(100% + 8px); }
.xrange { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; padding: 0 8px; }
.xrange input { accent-color: var(--gold); width: min(220px, 34vw); }
.xchips { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.xchips button { height: 36px; padding: 0 13px; border-radius: 999px; border: 0; background: var(--gray); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.xchips button[aria-pressed="true"] { background: var(--c, var(--gold)); color: var(--on-c, var(--black)); box-shadow: none; }
.xhint { font-size: 13px; color: var(--muted); padding: 0 8px; }
.fallback { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: #fff; text-align: center; font-size: 17px; }
.fallback[hidden] { display: none; }
/* ── 8. Tablet portrait and phones: model on top, cards below ─ */
@media (max-width: 1023.98px) {
  [data-key] { --safe: .03 .1 .97 .54; }
  .finale { --safe: .06 .09 .94 .56; }
  .fin-pin { padding: 0 14px 5svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .fin-card { height: auto; width: 100%; padding: 18px 18px 20px; gap: 10px; background: rgba(255, 255, 255, .97); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .1); transition: opacity .35s; }
  .finale:not(.fin-on) .fin-card { opacity: 0; pointer-events: none; }        /* the card arrives with "Every layer." */
  .fin-head .head { font-size: clamp(30px, 8vw, 46px); }
  .tag, .leaders { display: none; }
  .pill nav { display: none; }
  .pill { height: 52px; }
  .viewer { top: 14px; bottom: auto; right: 12px; }
  .viewer .zoom { display: none; }
  /* Phones and tablets: the headline, the restaurant, then the control pill above the tab bar (heroSafe measures the gap). */
  .hero { padding: 84px 14px calc(92px + env(safe-area-inset-bottom)); gap: 14px; --safe: .03 .36 .97 .8; }
  .hero .head { font-size: clamp(30px, 8.6vw, 44px); }
  .hero-lead { font-size: 16px; margin-top: 10px; }
  .framework { display: block; padding: 0 14px; }
  .layer.why { min-height: 200svh; }
  .bricks .pin { align-content: end; padding-top: 0; }
  .why .pin { align-content: end; padding-bottom: 5svh; }
  .why .card { padding: 20px; background: rgba(255, 255, 255, .97); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .1); }
  .why .why-title { font-size: clamp(26px, 7.4vw, 36px); }
  .why .reveal { margin-top: 10px; font-size: 15px; }
  .why-after .long { font-size: 14px; }
  .layer .vid, .layer .long.body { display: none; }
  .layer .ladder-go { margin-top: 12px; }
  .layer .acts { margin-top: 14px; }
  .fig { margin-top: 10px; }
  .fig-k { margin-bottom: 8px; }
  .fig b { font-size: 24px; }
  .fig span { font-size: 13px; }
  .fig.text span { font-size: 15px; }
  .bricks-block .kick, .brows, .layer.bricks .long { display: none; }
  .layer { min-height: 100svh; align-content: end; padding: 0 0 5svh; }
  .layer .card { padding: 22px; background: rgba(255, 255, 255, .97); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .1); }
  .layer h2 { font-size: clamp(30px, 7.5vw, 46px); margin-top: 14px; }
  .layer .long { font-size: 16px; margin-top: 10px; }
  .layer .kicker { margin-top: 10px; }
  .deflist { margin-top: 12px; }
  .deflist div, .values summary { grid-template-columns: minmax(84px, 30%) 1fr; padding: 6px 0; }
  .deflist dt, .deflist dd, .values summary { font-size: 13px; line-height: 1.35; }
  .descend { --safe: .03 .1 .97 .44; }
  .ds-pin { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px 5svh; }
  .ds-pin .card { padding: 22px; background: rgba(255, 255, 255, .97); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .1); }
  .descend .head { font-size: clamp(30px, 8vw, 44px); }
  .descend .lead { font-size: 16px; margin-top: 10px; }
  .descend .ds-x { display: inline-flex; }
  .foot { margin-top: 30svh; }
}
@media (max-width: 560px) {
  /* Small phones: a smaller badge line ("Change" may wrap below it; on the narrowest phones the badge may sit
     alone above its seat), and a tighter hero pill, still on one line. */
  .hero-head .label { gap: 4px 8px; font-size: 13px; }
  .hero-head .label .pinav { --size: 26px; }
  .hero-row { gap: 2px; padding: 4px; }
  .hero-row .cue { gap: 8px; padding-right: 10px; }
  .hero-row .cue i { width: 36px; height: 36px; }
  .hero-row .btn { padding: 0 14px; font-size: 14.5px; }
  .pill .btn.gold { display: none; }
  .xbar.top h2 { font-size: 16px; }
  .xhint { display: none; }
  .xbar.top :is([data-view="in"], [data-view="out"]) { display: none; }
}
/* The narrowest phones: the cue is its arrow alone (its link keeps the words as its name). */
@media (max-width: 340px) { .hero-row .cue span { display: none; } .hero-row .cue { padding-right: 2px; } }
/* ── 9. Pins: living enamel pin avatars ──────────────────── */
.pinav { --size: 48px; position: relative; display: inline-block; flex: none; width: var(--size); height: var(--size); vertical-align: middle; }
.pinav > svg, .pinav > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pinav > img { object-fit: contain; }
.pinav .eyes { position: absolute; inset: 0; pointer-events: none; animation: pv-look 7.2s var(--dl, 0s) ease-in-out infinite; }
.pinav .eyes i { position: absolute; width: calc(var(--ew) * 100%); height: calc(var(--eh) * 100%); top: calc((var(--v) - var(--eh) / 2) * 100%); background: #1C1A19; border-radius: 50%; animation: pv-blink 5.3s var(--dl, 0s) infinite; }
.pinav .eyes i:first-child { left: calc((var(--u) - var(--sp) / 2 - var(--ew) / 2) * 100%); }
.pinav .eyes i:last-child { left: calc((var(--u) + var(--sp) / 2 - var(--ew) / 2) * 100%); }
.pinav .eyes i::after { content: ""; position: absolute; left: 20%; top: 16%; width: 36%; height: 28%; border-radius: 50%; background: #fff; opacity: .92; }
.pinav[data-state="sleep"] .eyes { animation: none; }
.pinav[data-state="sleep"] .eyes i { height: calc(var(--eh) * 18%); top: calc(var(--v) * 100%); border-radius: 0 0 999px 999px; animation: none; }
.pinav[data-state="sleep"] .eyes i::after { display: none; }
.pinav[data-state="sleep"]::after { content: "z"; position: absolute; left: calc((var(--u) + var(--sp)) * 100%); top: calc((var(--v) - .3) * 100%); font: 800 calc(var(--size) * .2)/1 var(--font); color: var(--charcoal); opacity: 0; animation: pv-z 3.2s var(--dl, 0s) ease-out infinite; }
.pinav.is-lock .eyes i { background: #C4C4C4; }
.pinav.is-lock::after { color: #B8B8B8; }
.pinav.hop { animation: pv-hop .72s cubic-bezier(.3, .7, .4, 1.3); }
.aux-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline-offset: -3px; }
.aux-canvas:active { cursor: grabbing; }
/* ── 10. Pins and check-in bar (top right) ─────────────── */
.crew { position: fixed; z-index: 20; top: 14px; right: 14px; display: flex; align-items: center; gap: 2px; height: 56px; padding: 6px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, .08); }
.crew[hidden], html.present .crew, html.present .toasts, html.present .here { display: none !important; }
.crew > button:not(.btn) { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: none; font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .2s; }
.crew > button:not(.btn):hover { background: var(--gray); }
.crew .btn { height: 44px; margin-left: 4px; }
.crew .btn.is-done { background: var(--gray); box-shadow: inset 0 0 0 1px var(--line); }
.live-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: live-pulse 2.2s ease-out infinite; }
.crew-pins .me .pinav { --size: 34px; }
.crew-pins b { font-variant-numeric: tabular-nums; }
.crew-pins.bump b { animation: n-pop .5s cubic-bezier(.3, 1.6, .5, 1); display: inline-block; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(219, 0, 7, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(219, 0, 7, 0); } }
@keyframes n-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .crew-pins .lbl { display: none; }
  /* Six nav items and the pins bar share the top edge: tighter items, the Token without its word. */
  .pill #navLinks > a, .pill #navLinks > button { padding: 9px 9px; font-size: 14px; }
  .pill .brand span { display: none; }
  .pill .brand { padding-right: 2px; }
}
/* ── 11. Toasts ───────────────────────────────────────────── */
.toasts { position: fixed; z-index: 30; left: 18px; bottom: 18px; display: grid; gap: 8px; justify-items: start; pointer-events: none; transition: bottom .3s ease; }
.toast { display: flex; align-items: center; gap: 12px; max-width: min(400px, calc(100vw - 36px)); padding: 8px 18px 8px 8px; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .14); pointer-events: auto; cursor: pointer; animation: toast-in .5s cubic-bezier(.2, .9, .3, 1.2) both; }
.toast .pinav { --size: 54px; }
.toast b { display: block; font-size: 15px; line-height: 1.2; }
.toast span.t { display: block; font-size: 13.5px; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.toast.out { animation: toast-out .32s ease-in forwards; }
.explorer .toasts { top: 84px; bottom: auto; }
/* On the hero, the toasts sit above its control pill (a tap must not open Check-in instead). */
html.tab-next.on-hero body > .toasts { bottom: 92px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
/* ── 12. Sheets: Pins, pin detail, Check in ───────────────── */
html.is-modal { overflow: hidden; }
.sheet { position: fixed; inset: 0; margin: auto; width: min(980px, calc(100vw - 32px)); height: min(880px, calc(100dvh - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--black); box-shadow: 0 30px 90px rgba(0, 0, 0, .28); overflow: hidden; }
.sheet[open] { display: grid; grid-template-rows: auto 1fr; }
.sheet.narrow { width: min(600px, calc(100vw - 32px)); height: fit-content; max-height: min(880px, calc(100dvh - 32px)); }
.sheet::backdrop, .celebrate::backdrop { background: rgba(30, 28, 26, .34); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 26px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 22px; letter-spacing: -.01em; margin-right: auto; }
.sheet-head .btn.round { flex: none; }
.sheet-head .btn.round:first-child { margin-left: -14px; }
.sheet-body { overflow: auto; overscroll-behavior: contain; padding: 24px 26px 36px; }
.fine { font-size: 13px; color: var(--muted); margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.fine button { font: inherit; font-weight: 700; color: var(--charcoal); background: none; border: 0; padding: 4px 0; text-decoration: underline; cursor: pointer; }
.sample { display: inline-flex; align-items: center; gap: 6px; font: 400 10.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--gray); color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--line); }
.chip { display: inline-block; font: 400 10.5px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; background: var(--gray); color: var(--charcoal); }
.chip.on { background: var(--gold); color: var(--black); }
.chip.new { background: var(--red); color: #fff; }
.bar { position: relative; width: 100%; height: 5px; border-radius: 3px; background: #E7E7E7; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--red); border-radius: 3px; }

.stats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.stats li { padding: 8px 12px; border-radius: 12px; background: var(--gray); font-size: 13.5px; font-weight: 600; }
.stats b { font-size: 17px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.burger { margin: 30px 0 0; padding: 20px 22px; border-radius: 22px; background: var(--gray); }
.burger header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.burger h3 { font-size: 20px; }
.burger header p { margin: 0; color: var(--charcoal); font-weight: 600; }
.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin-top: 12px; }
.stack button { display: grid; justify-items: center; gap: 4px; padding: 6px 4px; border: 0; border-radius: 14px; background: none; cursor: pointer; font-weight: 700; font-size: 12px; min-width: 76px; }
.stack button:hover { background: #fff; }
.stack .pinav { --size: 62px; }
.stack .op { font-weight: 900; font-size: 22px; color: var(--faint); padding: 0 2px 16px; }
.stack .goal .pinav { --size: 78px; }
.pin-cat { margin: 34px 0 0; }
.pin-cat h3 { font-size: 20px; }
.pin-cat > p { margin: 4px 0 12px; color: var(--muted); font-size: 14.5px; }
.pin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 6px; }
.pin-tile { display: grid; justify-items: center; align-content: start; gap: 7px; min-height: 196px; padding: 16px 10px 14px; border: 0; background: none; border-radius: 20px; cursor: pointer; text-align: center; color: var(--black); transition: background .2s; }
.pin-tile:hover { background: var(--gray); }
.pin-tile .pinav { --size: 100px; }
.pin-tile b { font-size: 15px; line-height: 1.15; }
.pin-tile small { font-size: 12.5px; line-height: 1.3; color: var(--muted); max-width: 16ch; }
.pin-tile .bar { width: 78%; }

.pin-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.pin-stage { position: relative; aspect-ratio: 1; border-radius: 24px; background: radial-gradient(closest-side, #fff 62%, var(--gray)); }
.pin-stage > .pinav { position: absolute; inset: 14%; width: auto; height: auto; }
.pin-meta h3 { font-size: clamp(32px, 3.4vw, 48px); margin: 12px 0 0; }
.pin-meta .about { margin: 22px 0 0; }
.kv { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 0; border-top: 1px solid var(--line); }
.kv div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.kv div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.kv dt, .about dt { font: 400 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv dd, .about dd { margin: 6px 0 0; font-size: 16px; line-height: 1.4; }
.about dd { font-size: 17.5px; line-height: 1.5; color: var(--charcoal); }
.tiers { margin: 18px 0 0; }
.tiers p { margin: 8px 0 0; font-size: 14px; color: var(--charcoal); font-weight: 600; }
.pin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.pin-actions .btn { min-width: 150px; }
.pin-actions .btn.dark { background: var(--black); color: #fff; }

.ci-form { display: grid; gap: 18px; }
.ci-form .lead { margin: 0; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 700; font-size: 14.5px; padding: 0; }
.field small { font-size: 13px; color: var(--muted); }
.field input[type="text"] { height: 48px; padding: 0 16px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 16px; background: #fff; }
.field input[type="text"]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--charcoal); }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--charcoal); }
.ci-form .seg { margin-top: 0; }
.ci-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.ci-done { text-align: center; padding: 10px 0 4px; }
.ci-done .pinav { --size: 150px; }
.ci-done h3 { font-size: 30px; margin-top: 10px; }

.celebrate { width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 30px; padding: 0 26px 28px; text-align: center; background: #fff; color: var(--black); box-shadow: 0 30px 90px rgba(0, 0, 0, .3); overflow: hidden; }
.celebrate::backdrop { background: rgba(255, 255, 255, .72); }
.cele-stage { position: relative; height: 300px; margin: 0 -26px 6px; background: radial-gradient(closest-side, #FFF7E0, #fff); }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.celebrate .label { margin: 0 0 8px; }
.celebrate h2 { font-size: clamp(32px, 7vw, 44px); }
.cele-text { margin: 12px auto 0; max-width: 34ch; color: var(--charcoal); line-height: 1.5; }
.celebrate .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

.here { display: flex; align-items: center; gap: 6px; margin: 8px 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.here .live-dot { width: 7px; height: 7px; }
.here:empty { display: none; }
/* ── 13. Phones and tablets: pins and check-in in the header, the three tabs in a bottom bar ── */
@media (max-width: 1023.98px) {
  .crew { top: 14px; right: 12px; height: 52px; padding: 4px; }
  .crew > button:not(.btn) { padding: 0 10px 0 8px; height: 44px; }
  .crew .btn { height: 44px; padding: 0 16px; }
  .layer, .fin-pin, .ds-pin, .why .pin, .bricks .pin { padding-bottom: calc(5svh + 74px + env(safe-area-inset-bottom)); }
  .foot { margin-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toasts { left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); justify-items: stretch; }
  .toast { max-width: none; }
  .sheet, .sheet.narrow { inset: auto 0 0; margin: 0; width: 100vw; height: 94dvh; max-height: none; border-radius: 26px 26px 0 0; }
  .sheet-head { padding-left: 20px; }
  .sheet-body { padding: 20px 18px calc(30px + env(safe-area-inset-bottom)); }
  .stats { justify-content: center; }
  .pin-detail { grid-template-columns: 1fr; }
  .pin-stage { width: min(360px, 100%); justify-self: center; }
  .pin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pin-tile { min-height: 170px; padding: 12px 4px; }
  .pin-tile .pinav { --size: 82px; }
  .stack .pinav { --size: 46px; }
  .stack button { min-width: 0; }
  .stack .goal .pinav { --size: 58px; }
  dialog .toasts { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .explorer .toasts { top: auto; bottom: calc(118px + env(safe-area-inset-bottom)); }
  html.tab-next.on-hero body > .toasts { bottom: calc(156px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .crew-pins .lbl { display: none; }
  .pill .brand span { display: none; }   /* phones: the Token without its word, so the pins bar fits once checked in */
  .kv { grid-template-columns: 1fr; }
  .kv div:nth-child(even) { padding-left: 0; border-left: 0; }
}
/* ── 15. Your dashboard: the header, the tab strip, its panes' shared parts (ideas, the share form, ripples), and pins on your restaurant ── */
.part .p-head { padding: 0 0 4px; }
#partTitle:focus, #libTitle:focus { outline: none; }
.part .p-head h1 { font-size: clamp(40px, 4.2vw, 64px); font-weight: 900; letter-spacing: -.035em; line-height: .92; margin: 10px 0 0; }
.meter b { display: block; font-weight: 900; font-size: 16px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.meter span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.2; font-weight: 600; }
.meter .bar { margin-top: 6px; background: rgba(0, 0, 0, .14); }
.meter .bar i { background: var(--black); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.ptabs { display: flex; gap: 4px; padding: 4px; margin-top: 4px; border-radius: 999px; background: var(--gray); position: sticky; top: -26px; z-index: 2; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.ptabs::-webkit-scrollbar { display: none; }
/* When the tabs don't fit, the strip scrolls sideways; the edge with more tabs past it fades (syncTabFade). */
.ptabs.fr { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.ptabs.fl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.ptabs.fl.fr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.ptabs button { position: relative; flex: 1 0 auto; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--charcoal); white-space: nowrap; cursor: pointer; }
.ptabs button:hover { color: var(--black); }
.ptabs button[aria-selected="true"] { background: var(--black); color: #fff; }
.ptabs button:focus-visible { outline-offset: -3px; }                 /* inside the strip, which clips what spills out */
.ptabs button[aria-selected="true"]:focus-visible { outline-color: var(--gold); }
.ptabs .newdot { position: absolute; top: 7px; right: 10px; width: 8px; height: 8px; }
/* Desktop: every tab in view (20-dashboard-v2.css fits the track to its four tabs). */
@media (min-width: 1024px) {
  .ptabs { flex-wrap: wrap; gap: 2px; border-radius: 24px; }
  .ptabs button { padding: 0 9px; font-size: 13.5px; }
  .ptabs .newdot { top: 5px; right: 4px; }
}
.ppane { display: grid; gap: 12px; min-width: 0; }
.ppane > * { min-width: 0; }
.ppane:focus { outline: none; }
.part .btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.part .btn.dark { background: var(--black); color: #fff; }
.part .fine { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.p-fine { margin: 6px 0 40px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
/* Pillar dots (brand colors only). */
[data-p="menu"] { --pc: var(--red); } [data-p="consumer"] { --pc: var(--gold); } [data-p="restaurant"] { --pc: var(--charcoal); } [data-p="people"] { --pc: #B69A81; }
.pd { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--charcoal)); }
.ptag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; color: var(--black); }
.ptag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pc, var(--charcoal)); }
.pfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pfilters .sep { width: 4px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-weight: 700; font-size: 13px; color: var(--black); cursor: pointer; }
.fchip:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.fchip[aria-pressed="true"], .fchip.on { background: var(--black); color: #fff; box-shadow: none; }
.ideas { display: grid; gap: 10px; }
.idea { padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(0, 0, 0, .05); }
.idea .itop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.idea .where { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.chip-s { font: 400 10px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; background: var(--black); color: #fff; }
.chip-s.near { background: var(--red); }
.idea h3 { margin: 8px 0 0; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.idea h3:focus { outline: none; }
.idea .from { margin: 5px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.idea .istory { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--charcoal); }
.idea .spread { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--charcoal); }
.spark { flex: none; display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.spark i { width: 4px; border-radius: 1px; background: var(--gold); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.idea .acts, .rip .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pform { display: grid; gap: 16px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pform .lead { margin: 0; font-size: 15.5px; }
.pform .field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.pform .field > span, .pform legend { padding: 0; font-weight: 700; font-size: 14px; }
.pform textarea { width: 100%; min-height: 84px; padding: 12px 14px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; background: #fff; color: var(--black); }
.pform textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--black); }
.pform textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-weight: 700; font-size: 13.5px; color: var(--black); cursor: pointer; }
.opts button:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.opts button[aria-pressed="true"] { background: var(--gold); box-shadow: none; }
.from-idea { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--gray); font-size: 13.5px; }
.from-idea b { display: block; font-size: 14px; }
.from-idea button { margin-left: auto; flex: none; border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; color: var(--black); }
.rip { padding: 16px 18px; border-radius: 20px; background: var(--gray); }
.rip .rtop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.rip .rstat { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--charcoal); }
.rip .rstat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--charcoal); }
.rip .rstat.review::before { background: var(--gold); box-shadow: 0 0 0 1px var(--charcoal); }
.rip .rstat.live::before { background: var(--red); }
.rip h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.2; }
.ladder { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin: 14px 0 0; padding: 0; }
.ladder li { position: relative; padding-top: 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.15; }
.ladder li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .1); }
.ladder li.on { color: var(--black); }
.ladder li.on::before { background: var(--gold); }
.ladder li.now::before { background: var(--black); }
.ladder li small { display: block; font-weight: 600; font-size: 10.5px; color: var(--muted); }
.rip .said { margin: 10px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--charcoal); }
.rip.brick { background: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.bk.mine { box-shadow: 0 0 0 2px var(--red); }
.toast .tic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gold); color: var(--black); font-weight: 900; font-size: 18px; margin-left: 6px; }
/* Pins on your restaurant: one per station with ideas this month. */
.part-marks { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; }
.part-marks.on { opacity: 1; }
.part-marks:not(.on) .spin { visibility: hidden; }
.spin { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 5px; border: 0; border-radius: 999px; background: var(--gold); color: var(--black); font: inherit; font-weight: 700; font-size: 13px; white-space: nowrap; box-shadow: 0 0 0 2px #fff, 0 8px 18px rgba(0, 0, 0, .18); translate: -50% calc(-100% - 12px - var(--lift, 0px)); cursor: pointer; }
.spin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: calc(12px + var(--lift, 0px)); margin-left: -1px; background: var(--charcoal); }
.spin b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; font-size: 12.5px; }
.spin[aria-pressed="true"] { background: var(--black); color: #fff; }
.spin[aria-pressed="true"] b { color: var(--black); }
.spin:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 2px; }
.part-marks.compact .spin { gap: 0; padding: 0 5px; }
.part-marks.compact .spin span { display: none; }
.part-marks.compact .spin:hover, .part-marks.compact .spin:focus-visible { z-index: 1; gap: 6px; padding-right: 12px; }
.part-marks.compact .spin:hover span, .part-marks.compact .spin:focus-visible span { display: inline; }
@media (max-width: 1023.98px) {
  .part .p-head { padding: 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, .97); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .1); }
  .part .p-head h1 { font-size: clamp(32px, 9vw, 46px); }
  .ptabs { top: 70px; }
  .ptabs button { font-size: 13.5px; }
  .spin { height: 34px; width: 34px; padding: 0; justify-content: center; }
  .spin span { display: none; }
  .spin b { background: none; width: auto; }
}

/* Reading a golden brick: a small card by the brick, and the list. */
.brick-tip { position: fixed; z-index: 7; left: 0; top: 0; width: max-content; max-width: min(300px, calc(100vw - 24px)); padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .16); pointer-events: none; }
.brick-tip.sticky { pointer-events: auto; }
:is(.brick-tip, .brick-detail) .bt-chip { display: inline-block; margin: 0 0 6px; padding: 4px 7px; border-radius: 6px; background: var(--gold); color: var(--black); font: 400 10px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; }
:is(.brick-tip, .brick-detail) .bt-t { margin: 0; font-weight: 800; font-size: 15.5px; line-height: 1.2; }
:is(.brick-tip, .brick-detail) .bt-m { margin: 4px 0 0; font-size: 13px; line-height: 1.3; color: var(--charcoal); }
.brick-tip .bt-nav { display: flex; gap: 6px; margin-top: 10px; }
.brick-tip .bt-nav .btn { width: 36px; height: 36px; padding: 0; }
.brick-list { list-style: none; margin: 10px 0 14px; padding: 0; }
.brick-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.brick-row:hover, .is-sel > .brick-row { background: var(--gray); }
/* The row the model outlines (pointer or focus): its brick swatch takes the Red outline too. */
.brick-row:is(:hover, :focus-visible) .bk, .is-sel > .brick-row .bk { box-shadow: 0 0 0 2px var(--red); }
.brick-detail { padding: 4px 4px 14px 38px; }
.brick-row b { display: block; font-size: 14.5px; line-height: 1.25; }
.brick-row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.bricks-dlg .lib-search { position: sticky; top: 0; margin: 0 0 8px; }
/* Reading the bricks: a drawer over the story column; the model stays sharp beside it (the camera moves over). Phones:
   a sheet from the bottom, the model above it. */
.sheet.bricks-dlg { inset: 0 auto 0 0; margin: 0; width: calc(var(--col) + 2 * var(--pad)); height: 100dvh; max-height: none; border-radius: 0 28px 28px 0; box-shadow: 0 0 0 1px var(--line), 24px 0 60px rgba(0, 0, 0, .14); }
.sheet.bricks-dlg::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet.bricks-dlg[open] { animation: drawer-in .34s cubic-bezier(.2, .8, .2, 1); }
@keyframes drawer-in { from { translate: -100% 0; } }
@media (max-width: 1023.98px) {
  .sheet.bricks-dlg { inset: auto 0 0; width: 100vw; height: 52dvh; border-radius: 26px 26px 0 0; }
  .sheet.bricks-dlg[open] { animation-name: sheet-up; }
  .callout.hi { max-width: 170px; }
  @keyframes sheet-up { from { translate: 0 100%; } }
}
html.rm .sheet.bricks-dlg[open] { animation: none; }
html.is-reading .viewer, html.is-reading #golden-bricks .card { opacity: 0; transform: translateY(12px); pointer-events: none; }   /* phones: the card would cover the model */
.callout.hi { background: var(--red); color: #fff; max-width: 240px; white-space: normal; text-align: center; }
/* "Read the bricks", in the foundation's row of buttons (40px, like Go deeper). */
.layer .bricks-read { height: 40px; padding: 0 16px; font-size: 14.5px; }
.callout.room { background: #fff; color: var(--black); box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.callout.mine { background: var(--red); color: #fff; }

/* Your part zooms out: the World stop (a globe of restaurant dots) and the zoom rail. */
.world { position: fixed; z-index: -1; top: 0; bottom: 0; right: 0; left: calc(var(--split, .6) * 100vw); background: #fff; opacity: 0; transition: opacity .5s; pointer-events: none; }
.world.on { opacity: 1; pointer-events: auto; }
.world .aux-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.wmarks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wmk { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; translate: -10px -50%; white-space: nowrap; font-weight: 700; font-size: 12.5px; }
.wmk i { width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #fff, 0 3px 10px rgba(0, 0, 0, .3); }
.wmk b { padding: 5px 9px; border-radius: 999px; background: var(--red); color: #fff; }
.wmk.origin i { background: var(--gold); box-shadow: 0 0 0 3px var(--black), 0 0 0 5px #fff; }
.wmk.origin b { background: var(--black); }
.wchip { position: absolute; left: 22px; bottom: 22px; margin: 0; }
/* Wide screens: a row across the top of the restaurant's side, centered on it, so the model gets the full width. */
.zrail { position: fixed; z-index: 3; pointer-events: auto; top: 84px; left: calc((1 + var(--split, .6)) * 50vw); translate: -50% 0; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(0, 0, 0, .08); transition: opacity .3s; }
.zrail button { height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--charcoal); cursor: pointer; white-space: nowrap; }
.zrail button:hover { background: var(--gray); color: var(--black); }
.zrail button[aria-pressed="true"] { background: var(--black); color: #fff; }
.zrail button[data-zoom="vision"] { color: var(--red); }
.zrail.dim { opacity: 0; pointer-events: none; }
@media (max-width: 1023.98px) {
  .world { left: 0; bottom: auto; height: 46svh; }
  .wchip { left: 12px; bottom: 10px; }
  .zrail { top: 76px; right: auto; left: 12px; translate: none; display: flex; padding: 4px; border-radius: 999px; }
  .zrail button { height: 34px; padding: 0 11px; font-size: 12.5px; white-space: nowrap; }
}

/* The divider between the dashboard and the restaurant (wide screens). Drag it, or focus it and use the arrow
   keys (Home/End for the ends); a double-click or Enter resets it. */
.dsplit { position: absolute; z-index: 4; top: 0; bottom: 0; left: calc(var(--split, .6) * 100vw); width: 20px; cursor: col-resize; pointer-events: auto; touch-action: none; }
.dsplit::before { content: ""; position: absolute; top: 88px; bottom: 24px; left: 9px; width: 2px; border-radius: 1px; background: var(--line); transition: background .2s; }
.dsplit::after { content: ""; position: absolute; top: 50%; left: 3px; width: 14px; height: 48px; translate: 0 -50%; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--line), 0 6px 16px rgba(0, 0, 0, .1); transition: box-shadow .2s;
  background: linear-gradient(var(--charcoal), var(--charcoal)) 4.5px 50% / 1.5px 18px no-repeat, linear-gradient(var(--charcoal), var(--charcoal)) 8px 50% / 1.5px 18px no-repeat, #fff; }
.dsplit:hover::before, .dsplit.is-drag::before, .dsplit:focus-visible::before { background: var(--gold); }
.dsplit:hover::after, .dsplit.is-drag::after { box-shadow: 0 0 0 2px var(--gold), 0 6px 16px rgba(0, 0, 0, .12); }
.dsplit:focus-visible { outline: none; }
.dsplit:focus-visible::after { box-shadow: 0 0 0 2px var(--gold), 0 0 0 4.5px var(--charcoal); }
html.is-splitting, html.is-splitting * { cursor: col-resize !important; user-select: none; -webkit-user-select: none; }
@media (max-width: 1023.98px) { .dsplit { display: none; } }

/* Near you: tags on the stylized map, and a place card. */
.nb-marks { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s; }
.nb-marks.on { opacity: 1; }
.nb-marks:not(.on) > * { visibility: hidden; }
.nmk { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; pointer-events: auto; translate: -7px -50%; white-space: nowrap; }
.nmk i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0, 0, 0, .3); }
.nmk b { padding: 5px 9px; border-radius: 999px; background: #fff; color: var(--black); font-weight: 700; font-size: 12.5px; box-shadow: 0 3px 12px rgba(0, 0, 0, .16); }
.nmk.dot b, .nmk[data-quiet] b { display: none; }
.nmk[data-quiet] i { width: 10px; height: 10px; background: #fff; box-shadow: 0 0 0 2px var(--charcoal); }
.nmk.you { pointer-events: none; }
.nmk.you i { width: 18px; height: 18px; background: var(--red); box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #fff, 0 3px 10px rgba(0, 0, 0, .3); }
.nmk.you b { background: var(--red); color: #fff; }
.nmk:focus-visible { outline: none; }
.nmk:focus-visible b { outline: 3px solid var(--charcoal); outline-offset: 2px; }
.nlake { position: absolute; left: 0; top: 0; translate: -50% -50%; font-style: italic; font-weight: 600; font-size: 13px; color: #7F8F95; white-space: nowrap; }
.nbchip { position: fixed; z-index: 3; right: 18px; bottom: 18px; margin: 0; opacity: 0; transition: opacity .35s; pointer-events: none; }
.nb-marks.on + .nbchip { opacity: 1; }
.ncard { position: fixed; z-index: 6; left: 0; top: 0; width: min(320px, calc(100vw - 24px)); padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .2); pointer-events: auto; }
.ncard .x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; }
.ncard .k { margin: 0; font: 400 10.5px/1 var(--font); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ncard h3 { margin: 6px 40px 0 0; font-size: 20px; line-height: 1.1; }
.ncard h3:focus { outline: none; }
.ncard p { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--charcoal); }
.ncard .nq { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--gray); font-size: 13.5px; color: var(--charcoal); }
.ncard .nq b { display: block; font-size: 14.5px; color: var(--black); }
.ncard .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ncard .btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.ncard .btn.dark { background: var(--black); color: #fff; }
@media (max-width: 1023.98px) {
  .ncard { top: calc(46svh - 150px); left: 12px; right: 12px; width: auto; }
  .nbchip { right: auto; left: 12px; top: calc(46svh - 30px); bottom: auto; }
}

/* Proof stories that link to their idea. */
.story .pidea { justify-self: start; height: 36px; padding: 0 14px; font-size: 13.5px; }
/* ── 14. The Hub: Go deeper, Today, rooms, Library, Moments, Huddle ── */
.pill nav button { font: inherit; font-weight: 600; font-size: 15px; color: var(--charcoal); background: none; border: 0; padding: 10px 13px; border-radius: 999px; cursor: pointer; transition: background .2s; }
.pill nav button:hover { background: var(--gray); }
.pill nav button[aria-current="page"] { background: var(--gray); color: var(--black); box-shadow: inset 0 -3px 0 var(--gold); }
.brand { padding-right: 4px; }
.brand span { margin-right: 6px; }
.layer .top .deeper-mini { display: none; }
.deeper { height: 40px; margin-top: 20px; padding: 0 16px; font-size: 14.5px; }
.deeper i { font-style: normal; transition: transform .2s; }
.deeper:hover i { transform: translateX(3px); }
.deflist.go div { position: relative; grid-template-columns: minmax(96px, 34%) 1fr 14px; border-radius: 8px; transition: background .2s; }
.deflist.go div::after { content: "›"; align-self: center; font-weight: 800; font-size: 20px; line-height: 1; color: var(--red); }
.deflist.go div:hover { background: var(--gray); }
.deflist.go dt :is(button, a) { font: inherit; font-weight: 800; color: var(--black); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-decoration: none; }
.deflist.go dt :is(button, a)::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.deflist.go dt :is(button, a):focus-visible { outline: none; }
.deflist.go dt :is(button, a):focus-visible::after { outline: 3px solid var(--charcoal); outline-offset: 2px; }
.done-note { font-weight: 700; font-size: 14.5px; color: var(--charcoal); align-self: center; }

/* The three tabs. NEXT is the scroll story in <main>; the other two are fixed views over it. */
[hidden] { display: none !important; }
.view { position: fixed; inset: 0; z-index: 4; }
html.tab-locked { overflow: hidden; }
html:not(.tab-next) main { visibility: hidden; }
html:not(.tab-next) .viewer { display: none; }
.tabbar { display: none; }
/* Your dashboard: a column of cards; the restaurant beside it is the map. On wide screens the column leads
   (--split, its share of the width, set from JS) and the restaurant is framed in what's left (partSafe). */
.today-view { pointer-events: none; --safe: .5 .12 .97 .9; }
.today-map { display: none; }
.today-col { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--split, .6) * 100vw); background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 104px 22px 0 var(--pad); pointer-events: auto; scrollbar-width: thin; }
.today { display: grid; gap: 12px; }
.today > * { min-width: 0; }
html.tab-part #gl { touch-action: none; }
.tcard.picker { box-shadow: inset 0 4px 0 var(--gold), 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .06); }
.tcard.picker .seg { margin-top: 16px; }
/* The dashboard and the Library: once they scroll, a frosted band under the floating header, so what scrolls up
   behind the nav blurs instead of showing through. Its fade sits behind the sticky tab strip (or search bar); it
   ends where the dashboard's column does (the restaurant stays clear), and spares the scrollbar. */
.today-view::before, .lib-view::before { content: ""; position: fixed; z-index: 1; top: 0; left: 0; width: calc(var(--split, .6) * 100vw - 12px); height: 112px; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), transparent); mask-image: linear-gradient(#000 calc(100% - 20px), transparent); }
.today-view.is-scrolled::before, .lib-view.is-scrolled::before { opacity: 1; }
.lib-view::before { width: calc(100% - 12px); }
@media (max-width: 1023.98px) {
  .today-view::before, .lib-view::before { width: 100%; height: 96px;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent); mask-image: linear-gradient(#000 calc(100% - 16px), transparent); }
}
/* Library: a full page. */
.lib-view { overflow-y: auto; overscroll-behavior: contain; background: #fff; padding: 0 var(--pad) 56px; scroll-padding-top: 150px; }
.lib-page { max-width: 1040px; margin: 0 auto; padding-top: 84px; }
.today-col { scroll-padding-top: 138px; }               /* below the nav and the dashboard's sticky tab strip */
.lib-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 0 0; }
.lib-head h1 { font-size: clamp(40px, 4.6vw, 68px); font-weight: 900; letter-spacing: -.035em; line-height: .95; margin-right: auto; }
.lib-view .lib-search { top: 76px; margin: 0 -26px; }

.today .label { margin: 0; }
.today .t-head h1 { font-size: clamp(40px, 4.4vw, 68px); font-weight: 900; letter-spacing: -.035em; line-height: .92; margin: 10px 0 0; }
.today .t-head .promise { margin: 12px 0 0; font-weight: 700; font-size: clamp(16px, 1.2vw, 18px); color: var(--charcoal); }
.tbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 2px; }
.tsel { position: relative; display: inline-flex; align-items: center; }
.tsel select { appearance: none; -webkit-appearance: none; height: 36px; padding: 0 30px 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-weight: 700; font-size: 14px; color: var(--black); cursor: pointer; }
.tsel select:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.tsel::after { content: "▾"; position: absolute; right: 12px; font-size: 11px; color: var(--charcoal); pointer-events: none; }
.tcard { padding: 20px 22px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .06); }
.tcard .label { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tcard :is(h2, h3) { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.05; letter-spacing: -.02em; }
.tcard > p { margin: 8px 0 0; color: var(--charcoal); line-height: 1.45; }
.tcard .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.tcard .btn, .room .btn:not(.round), .lib .btn:not(.round), .huddle .btn:not(.round) { height: 40px; font-size: 14.5px; padding: 0 16px; }
.tcard.bite { box-shadow: inset 0 4px 0 var(--gold), 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .06); }
.tcard ul.pts { margin: 10px 0 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--charcoal); line-height: 1.4; font-size: 15.5px; }
.tcard .kick { font-weight: 700; font-size: 13.5px; color: var(--muted); }
.pq { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.ask-lead { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--charcoal); }
.newdot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1.5px var(--charcoal); }
.fchips button { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--gray); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-weight: 700; font-size: 13.5px; color: var(--black); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fchips button:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }

/* Polls (Today pulse and room polls) */
.poll { display: grid; gap: 6px; margin-top: 12px; }
.poll button, .poll .opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--gray); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-weight: 700; font-size: 15px; color: var(--black); cursor: pointer; text-align: left; }
.poll button:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.poll .opt { position: relative; overflow: hidden; cursor: default; background: #fff; }
.poll .opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: #EDEDED; }
.poll .opt.mine::before { background: var(--gold); }
.poll .opt > * { position: relative; }
.poll .pct { font-variant-numeric: tabular-nums; font-weight: 800; }
.poll-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }

/* Rooms */
.room .sheet-body { padding-top: 0; }
.room-top { padding: 22px 0 0; }
.room-top .kicker { font-weight: 700; font-size: 14px; color: var(--muted); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.room-top h3 { font-size: clamp(32px, 3.6vw, 52px); }
.room-top .know { margin: 12px 0 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--charcoal); max-width: 56ch; }
.room-top .deflist { max-width: 60ch; }
.room-tabs { position: sticky; top: 0; z-index: 2; margin: 18px -26px 0; padding: 12px 26px 12px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.room-tabs button[aria-selected="true"], .lib-tabs button[aria-selected="true"] { background: var(--gold); box-shadow: none; }
.room-pane { padding-top: 22px; }
.room-pane[hidden] { display: none; }
.room-pane h4, .lib h4 { margin: 0 0 12px; font: 400 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.room-foot { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.watch { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
.leader { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: linear-gradient(170deg, #4A4745, #2D2D2D 62%); color: #fff; display: grid; align-content: end; gap: 3px; padding: 14px; }
.leader::before { content: ""; position: absolute; left: 50%; top: 30%; width: 34%; aspect-ratio: 1; border-radius: 50%; translate: -50% 0; background: rgba(255, 255, 255, .12); box-shadow: 0 64px 0 22px rgba(255, 255, 255, .08); }
.leader .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.leader .play::after, .thumb .play::after, .player .play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--black); }
.leader b { position: relative; font-size: 15px; line-height: 1.2; }
.leader small { position: relative; font-size: 12px; line-height: 1.3; opacity: .82; }
.leader .sample { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); }
.leader-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.talks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px 12px; }
.talk { display: grid; align-content: start; gap: 8px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--black); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(var(--a, 135deg), #1D1B1A, #3B3836 70%, #2D2D2D); display: grid; place-items: center; }
.thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255, 188, 13, .18), transparent 55%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 9px); }
.thumb .play { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.thumb .play::after { border-width: 7px 0 7px 11px; margin-left: 3px; }
.thumb .ww { position: absolute; left: 10px; top: 9px; font: 400 9.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.talk b { font-size: 15px; line-height: 1.25; }
.talk small { font-size: 13px; line-height: 1.35; color: var(--muted); }
.talk[aria-pressed="true"] .thumb { box-shadow: 0 0 0 3px var(--gold); }
.player { position: relative; aspect-ratio: 16 / 9; margin: 0 0 18px; border-radius: 18px; overflow: hidden; background: #141312; color: #fff; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 20px; }
.player .play { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; justify-self: center; }
.player b { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.2; max-width: 30ch; }
.player small { font-size: 13px; opacity: .78; max-width: 40ch; }
.player .sample { position: absolute; left: 12px; top: 12px; }
.proof { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.story { padding: 22px; border-radius: 20px; background: var(--gray); display: grid; align-content: space-between; gap: 14px; }
.story blockquote { margin: 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.story .who { font-size: 14px; color: var(--charcoal); font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.stat { padding: 22px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; align-content: space-between; gap: 10px; }
.stat .big { font-weight: 900; font-size: clamp(48px, 5vw, 72px); letter-spacing: -.04em; line-height: .9; }
.stat p { margin: 0; color: var(--charcoal); line-height: 1.4; }
.stat small { font-size: 12.5px; color: var(--muted); }
.photo { min-height: 160px; border-radius: 20px; background: linear-gradient(135deg, #E9E4DC, #D8D0C4); display: grid; place-items: end start; padding: 14px; }
.do-card { padding: 24px; border-radius: 22px; background: var(--gray); max-width: 640px; }
.do-card h5 { margin: 0; font-size: clamp(24px, 2.3vw, 32px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.do-card p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--charcoal); }
.do-card .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.do-seg { margin: 0 0 16px; }
.do-seg button { height: 38px; font-size: 14px; }
.kits { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.qlist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.q { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.vote { display: grid; justify-items: center; align-content: center; gap: 2px; width: 54px; height: 54px; border: 0; border-radius: 12px; background: var(--gray); font: inherit; font-weight: 800; font-size: 14px; color: var(--black); cursor: pointer; font-variant-numeric: tabular-nums; }
.vote i { font-style: normal; font-size: 11px; line-height: 1; }
.vote[aria-pressed="true"] { background: var(--gold); }
.q b { display: block; font-size: 15.5px; line-height: 1.3; }
.q .meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.q .ans { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--charcoal); }
.askform { display: flex; gap: 8px; margin-top: 12px; }
.askform input, .goldform textarea, .lib-search input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 16px; background: #fff; color: var(--black); }
.askform input:focus, .goldform textarea:focus, .lib-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--charcoal); }
.askform .btn { height: 48px; }
.goldform { margin: 26px 0 0; padding: 20px; border-radius: 20px; background: var(--gray); }
.goldform h5 { margin: 0; font-size: 20px; font-weight: 800; }
.goldform p { margin: 6px 0 12px; font-size: 14.5px; color: var(--charcoal); line-height: 1.45; }
.goldform textarea { display: block; width: 100%; height: 96px; padding: 12px 16px; resize: vertical; }
.goldform .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: center; }

/* Library + Moments */
.lib .sheet-body { padding-top: 0; }
.lib-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 16px; }
.lib-filters { display: grid; gap: 10px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.lib-top p { margin: 0; color: var(--charcoal); flex: 1 1 24ch; }
.lib-tabs { margin: 0; }
.lib-tabs button { height: 38px; font-size: 14px; }
.lib-search { display: flex; position: sticky; top: 0; z-index: 2; margin: 0 -26px; padding: 10px 26px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -7px -26px; padding: 7px 26px; }
.fchips::-webkit-scrollbar { display: none; }
.fchips .lbl { flex: none; align-self: center; font: 400 10.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 4px; min-width: 56px; }
.fchips button { height: 32px; font-size: 13px; }
.fchips button[aria-pressed="true"] { background: var(--charcoal); color: #fff; box-shadow: none; }
.lib-count { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.items { list-style: none; margin: 4px 0 0; padding: 0; }
.item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .thumb { border-radius: 10px; }
.item .thumb .play { width: 30px; height: 30px; }
.item .thumb .play::after { border-width: 6px 0 6px 9px; margin-left: 2px; }
.item .glyph { aspect-ratio: 16 / 9; border-radius: 10px; background: var(--gray); display: grid; place-items: center; font: 400 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal); box-shadow: inset 0 0 0 1px var(--line); }
.item .glyph.doc { background: #fff; }
.item .glyph.kit { background: var(--gold); color: var(--black); box-shadow: none; }
.item .glyph.d3 { background: var(--charcoal); color: #fff; }
.item b { display: block; font-size: 16px; line-height: 1.25; }
.item .sub { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.stamps { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.chip.official { background: var(--gold); color: var(--black); }
.item .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.item .note { grid-column: 2 / -1; margin: -4px 0 0; font-size: 13px; font-weight: 600; color: var(--charcoal); }
.item .note:empty { display: none; }
.empty { padding: 30px 0; color: var(--muted); }
.moments { list-style: none; margin: 18px 0 0; padding: 0; }
.moment { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.moment time { font-weight: 800; font-size: 15px; line-height: 1.25; }
.moment time small { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.moment b { display: block; font-size: 17px; line-height: 1.25; }
.moment p { margin: 3px 0 0; color: var(--charcoal); font-size: 14.5px; }
.moment.past time, .moment.past p { color: var(--muted); }
.moment.next { box-shadow: inset 4px 0 0 var(--gold); padding-left: 14px; }
.moment .chip { margin-left: 6px; vertical-align: 2px; }
.rhythm { margin: 22px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--gray); display: grid; gap: 6px; font-size: 14.5px; }
.rhythm p { margin: 0; }

/* Huddle mode */
.huddle .sheet-body { display: grid; justify-items: center; text-align: center; gap: 4px; }
.huddle h3 { font-size: clamp(28px, 4vw, 40px); }
.huddle .lead { margin: 8px auto 0; }
.ring { position: relative; width: 190px; height: 190px; margin: 18px 0 6px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .trk { stroke: var(--gray); }
.ring .arc { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.ring .sec { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 56px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hpoints { list-style: none; counter-reset: hp; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; max-width: 46ch; }
.hpoints li { counter-increment: hp; display: grid; grid-template-columns: 32px 1fr; gap: 10px; font-size: 16.5px; line-height: 1.4; }
.hpoints li::before { content: counter(hp); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); font-weight: 900; font-size: 15px; }
.huddle .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.huddle .done-note { margin: 14px 0 0; max-width: 40ch; }

@media (max-width: 1023.98px) {
  /* The three tabs move to a bottom bar; the 3D toolbar goes (Explore is at the end of the NEXT scroll). */
  .pill nav { display: none; }
  .viewer { display: none !important; }
  .tabbar { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgba(0, 0, 0, .06); }
  .tabbar button { height: 46px; border: 0; border-radius: 14px; background: none; font: inherit; font-weight: 800; font-size: 15px; color: var(--charcoal); cursor: pointer; }
  .tabbar button[aria-current="page"] { background: var(--gold); color: var(--black); }
  /* Layer cards keep their V3 height: "Go deeper" is a round button in the card's top row. */
  .layer .deeper { display: none; }
  .layer .top .deeper-mini { display: inline-flex; margin: -4px 0 -4px auto; width: 34px; height: 34px; font-size: 16px; }
  /* Your dashboard on phones: just the cards, the whole view scrolls. No 3D: the restaurant, the globe, the map's
     tags and the buttons that open them stay hidden (setStop and showSpread hold too). */
  .today-view { pointer-events: auto; overflow-y: auto; overscroll-behavior: contain; --safe: .03 .1 .97 .44; }
  .today-col { position: static; width: auto; overflow: visible; padding: 80px 14px calc(90px + env(safe-area-inset-bottom)); }
  html.tab-part .stage { visibility: hidden; }
  .today-view .part-marks, .today-view .zrail, .today-view .world, .today-view .nb-marks, .today-view .nbchip, .today-view .ncard, [data-spread], [data-rspread] { display: none !important; }
  .lib-view { padding: 0 18px calc(90px + env(safe-area-inset-bottom)); scroll-padding: 140px 0 calc(78px + env(safe-area-inset-bottom)); }
  .lib-page { padding-top: 70px; }
  .today-view { scroll-padding: 130px 0 calc(78px + env(safe-area-inset-bottom)); }     /* the nav and the sticky tab strip */
  /* Phones: a tighter footer, so its label clears the header at the very end of the page. */
  .foot { gap: 28px; margin-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .foot .row { gap: 8px; margin-top: 20px; }
  .lib-view .lib-search { top: 66px; margin: 0 -18px; }
  .lib-top p { display: none; }
  .today .t-head { padding: 18px 20px; border-radius: 22px; background: rgba(255, 255, 255, .97); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .1); }
  .today .t-head h1 { font-size: clamp(34px, 9vw, 48px); }
  .room-tabs { margin: 18px -18px 0; padding: 10px 18px; }
  .room-tabs button { height: 38px; padding: 0 14px; font-size: 14px; }
  .watch { grid-template-columns: 1fr; }
  .leader { aspect-ratio: auto; min-height: 150px; grid-template-columns: 1fr; padding: 16px 16px 14px 96px; }
  .leader::before { left: 46px; top: 50%; width: 52px; translate: -50% -50%; box-shadow: none; }
  .leader .play { left: 46px; width: 44px; height: 44px; }
  .proof, .ask-grid { grid-template-columns: 1fr; }
  .lib-search, .fchips { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .item { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .item .acts { grid-column: 2; justify-content: flex-start; }
  .item .note { grid-column: 2; }
  .moment { grid-template-columns: 96px minmax(0, 1fr); }
  .moment .acts { grid-column: 2; }
}
/* Your dashboard with the restaurant side off (DASH_MAP in features/dashboard/split.ts): the column takes the full
   width (--split is 1) and, as on phones, no 3D: the restaurant, the divider, the zoom rail, the globe, the map's
   tags and the buttons that open them stay hidden. */
html.no-dash-map.tab-part .stage { visibility: hidden; }
html.no-dash-map :is(.dsplit, .today-view .part-marks, .today-view .zrail, .today-view .world, .today-view .nb-marks, .today-view .nbchip, .today-view .ncard, [data-spread], [data-rspread]) { display: none !important; }
@media (min-width: 1024px) { html.no-dash-map .today-col { padding-right: var(--pad); } }
@media (max-width: 767.98px) {
  .crew-pins .lbl { display: none; }
  .pill .btn.gold { display: none; }                    /* Export stays in the footer's row */
}
@media (max-width: 480px) {
  .ci-long { display: none; }        /* narrow phones: "✓" for checked in */
}
@media (max-width: 374.98px) {
  .crew-pins .me { display: none; }
}
@media (max-width: 340px) {
  .crew > button:not(.btn) { padding: 0 7px 0 6px; }
  .crew .btn { padding: 0 12px; }
}
/* Short phones: the hero drops its lead, so the restaurant keeps its room between the headline and the pill. */
@media (max-width: 1023.98px) and (max-height: 700px) { .hero-lead { display: none; } .hero { padding-top: 76px; --safe: .03 .3 .97 .84; } }
/* Landscape phones: a one-line headline and a lower pill, so the restaurant still has a band between them. */
@media (max-width: 1023.98px) and (max-height: 500px) {
  .hero { padding-top: 72px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hero .head { font-size: 24px; }
  .hero-head .label { margin-bottom: 4px; }
}
@media (max-width: 1023.98px) and (max-height: 760px) { .descend .lead { display: none; } }
/* Off NEXT, the export status sits at the foot of the page, not over the tab's heading. */
html:not(.tab-next) body > .status { top: auto; bottom: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
@media (max-width: 1023.98px) { html:not(.tab-next) body > .status { bottom: calc(86px + env(safe-area-inset-bottom)); } }
/* A status line inside a sheet sits at its foot, not over its title. */
dialog .status { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 31; white-space: nowrap; }
/* ?rm (reduced motion) behaves like the system setting. */
html.rm *, html.rm *::before, html.rm *::after { transition-duration: .01ms !important; animation: none !important; }

@keyframes pv-blink { 0%, 46%, 52%, 100% { transform: scaleY(1); } 49% { transform: scaleY(.08); } }
@keyframes pv-look { 0%, 16% { translate: 0 0; } 22%, 38% { translate: 3% -1.5%; } 44%, 60% { translate: -3% 1%; } 66%, 100% { translate: 0 0; } }
@keyframes pv-z { 0% { opacity: 0; translate: 0 0; } 20% { opacity: .7; } 100% { opacity: 0; translate: 40% -90%; } }
@keyframes pv-hop { 0% { transform: none; } 18% { transform: translateY(3%) scale(1.1, .88); } 48% { transform: translateY(-24%) scale(.94, 1.07); } 78% { transform: translateY(0) scale(1.06, .94); } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ── V6: the System. "Viewing as", leg badges, Ask, the share form, Your channel, the Brief and the Town Hall. ── */
.p-head .back { margin: 0 0 12px; height: 36px; padding: 0 14px 0 12px; font-size: 13.5px; }
.p-head .seat { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.pins-stats { list-style: none; display: flex; gap: 22px; margin: 0 0 12px; padding: 0; }
.pins-stats li { display: grid; font-size: 13px; font-weight: 600; color: var(--muted); }
.pins-stats b { font-size: 24px; font-weight: 900; color: var(--black); font-variant-numeric: tabular-nums; }
.viewas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.viewas .va { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.viewas .tsel select { height: 40px; font-size: 14.5px; max-width: min(78vw, 360px); text-overflow: ellipsis; }
.leg { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; line-height: 1; white-space: nowrap; background: var(--gray); color: var(--black); box-shadow: inset 0 0 0 1px var(--line); }
.leg[data-leg="franchisee"] { background: var(--gold); box-shadow: none; }
.leg[data-leg="corporate"] { background: var(--charcoal); color: #fff; box-shadow: none; }
.leg[data-leg="supplier"] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.leg[data-leg="official"], .leg[data-leg="comms"] { background: var(--red); color: #fff; box-shadow: none; }
.idea .from b { color: var(--black); }
.idea .result, .rip .result, .dres .result { margin: 8px 0 0; font-size: 14px; line-height: 1.35; font-weight: 700; color: var(--black); }
.idea .result::before, .rip .result::before, .dres .result::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 0 1px var(--charcoal); vertical-align: 1px; }
.rip .byline { margin-top: 6px; }
.rip .byline a { color: var(--black); font-weight: 700; }
.pfilters + .pfilters { margin-top: 8px; }
.tcard .src { font-weight: 600; }
.tcard.hard { box-shadow: inset 0 4px 0 var(--red), 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .06); }
.stream { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.stream li + li { border-top: 1px solid var(--line); }
.stream button { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; width: 100%; padding: 12px 2px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.stream button:hover b { text-decoration: underline; text-underline-offset: 3px; }
.stream b { flex-basis: 100%; font-size: 16px; line-height: 1.25; }
.stream small { flex-basis: 100%; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--muted); }
.sk { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.sim { min-height: 0; }
.sim .lbl { margin: 2px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sim ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sim button { padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--black); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pask { margin-top: 4px; }
.fine.lock { padding: 10px 12px; border-radius: 12px; background: var(--gray); }
.threads { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.th { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(0, 0, 0, .04); }
.th.crit { box-shadow: 0 0 0 1px var(--line), inset 4px 0 0 var(--charcoal), 0 10px 26px rgba(0, 0, 0, .04); }
.th-meta, .rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.th h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.005em; }
.th-q { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.th-q:hover { text-decoration: underline; text-underline-offset: 3px; }
.th-q[aria-expanded="true"] { text-decoration: none; }
.th-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--charcoal); }
.th-body { display: grid; gap: 10px; margin-top: 12px; }
.rep { padding: 12px 14px; border-radius: 14px; background: var(--gray); }
.rep.acc { box-shadow: inset 0 0 0 2px var(--gold); background: #fff; }
.rep.off { box-shadow: inset 4px 0 0 var(--red); background: #fff; }
.rep .rtext { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--black); }
.rep .src { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.racts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.racts:empty { display: none; }
.racts .btn { height: 34px; padding: 0 12px; font-size: 13px; }
.rform input { min-width: 0; }
.hearing { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hearing li { display: grid; gap: 3px; padding: 12px 14px; border-radius: 16px; background: var(--gray); }
.hearing b { font-size: 15.5px; line-height: 1.25; }
.hearing span { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
.hearing small { font-size: 12px; color: var(--muted); font-weight: 600; }
.hearing .btn { justify-self: start; margin-top: 6px; }
.rules { padding: 12px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.rules summary { font-weight: 800; cursor: pointer; }
.rules ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.4; color: var(--charcoal); }
.posting { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; font-weight: 700; color: var(--charcoal); }
.pform input[type="text"], .pform input[type="date"] { width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; font-size: 16px; background: #fff; color: var(--black); }
.pform input[type="text"]:focus, .pform input[type="date"]:focus { outline: none; box-shadow: inset 0 0 0 2px var(--black); }
.pform input[aria-invalid="true"], .pform input[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 2px var(--red); }   /* still red while focused */
.pform .field > .sub { font-weight: 600; font-size: 13px; color: var(--muted); }
.pform .tsel { justify-self: start; max-width: 100%; }
.pform .tsel select { height: 44px; font-size: 15px; max-width: 100%; }
.filebtn { position: relative; justify-self: start; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 36px; cursor: pointer; }
.filebtn:focus-within { outline: 2px solid var(--black); outline-offset: 2px; }
.lkprev { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--gray); }
.lkprev b { font-size: 15.5px; line-height: 1.25; }
.lkprev small { font-size: 12.5px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rates .meter { padding: 12px; border-radius: 14px; background: var(--gray); }
.rates .meter .bar i { background: var(--charcoal); }
.part .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.here { flex-wrap: wrap; row-gap: 0; }
.hub-hits { margin-top: 26px; display: grid; gap: 6px; }
.hits-h { margin: 12px 0 0; font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.hits-h span { font-size: 12px; color: var(--muted); }
.item .glyph.thall { background: var(--charcoal); color: #fff; }
.item .glyph.cr { background: var(--gold); color: var(--black); }
.item .glyph.ln { background: #fff; color: var(--black); box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.chip.due { background: var(--red); color: #fff; }
.goldform .row { margin-top: 12px; }
/* The Brief: an email, one photo, five things. */
.brief { display: grid; gap: 16px; }
.brief .bmeta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 13.5px; color: var(--charcoal); }
.brief .bmeta div { display: flex; gap: 6px; }
.brief .bmeta dt { font-weight: 800; }
.brief .bmeta dd { margin: 0; font-weight: 600; }
.bphoto { position: relative; min-height: 170px; border-radius: 18px; background: linear-gradient(135deg, #E9E4DC, #D8D0C4 60%, #C9BBA7); display: grid; place-items: end start; padding: 14px; overflow: hidden; }
.bphoto .token { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; }
.blead { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.bitems { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: b; }
.bitems li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.bitems h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.25; }
.bitems p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--charcoal); }
.bitems .sk { color: var(--red); }
.bitems .btn { justify-self: start; margin-top: 6px; }
.brief-dlg .btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.brief .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* The Town Hall. */
.th-seg { margin: 16px 0 0; }
.th-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.th-grid h4 { margin: 22px 0 8px; }
.th-grid .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.th-player.live::after { content: ""; position: absolute; right: 14px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(219, 0, 7, .25); }
.live-now { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chapters button { display: grid; grid-template-columns: 56px 1fr; gap: 0 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--gray); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.chapters time { grid-row: span 2; font-weight: 800; font-variant-numeric: tabular-nums; }
.chapters small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.chapters button:hover b { text-decoration: underline; }
@media (max-width: 1023.98px) {
  .th-grid { grid-template-columns: 1fr; }
  .th-leader { display: none; }
  .rates { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .rates .meter { padding: 10px; }
}
@media (max-width: 1023.98px), (pointer: coarse) {
  .tsel select, .viewas .tsel select, .pform .tsel select, .pform input[type="date"] { font-size: 16px; }
}
@media (max-width: 420px) {
  .th { grid-template-columns: 46px minmax(0, 1fr); padding: 12px 12px; gap: 10px; }
  .th .vote { width: 46px; height: 50px; }
  .ptabs button { font-size: 13px; padding: 0 12px; }
}
/* Who are you? Three enamel pins, one tap each. A light backdrop: the restaurant shows through. */
.who-dlg::backdrop { background: rgba(255, 255, 255, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.sheet.who-dlg[open] { grid-template-rows: minmax(0, 1fr); }
.who-x { position: absolute; top: 12px; right: 12px; z-index: 1; }
.who-body { padding: 34px 30px 26px; text-align: center; }
.who-body .label { margin-bottom: 10px; }
.who-body .head { font-size: clamp(34px, 3.4vw, 48px); }
.who-body .lead { margin: 12px auto 0; }
.who-body .fine { justify-content: center; gap: 6px 8px; margin: 20px 0 0; }
/* The note's "i", and its tip over the note (open on click or tap; a mouse also shows it on hover). */
.who-foot { position: relative; }
.fine .who-info { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); font: 800 12px/1 var(--font); color: var(--charcoal); text-decoration: none; }
.fine .who-info:hover, .fine .who-info[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--charcoal); background: var(--gray); }
.who-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 2; width: min(340px, 92%); margin: 0; padding: 12px 16px; translate: -50% 0; border-radius: 14px; background: var(--black); color: #fff; font-size: 13.5px; line-height: 1.45; text-align: left; box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
@media (hover: hover) { .who-foot:has(.who-info:hover) .who-tip[hidden] { display: block !important; } }   /* over the global [hidden] rule */
#whoTitle:focus { outline: none; }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; }
.who-opt { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 18px 14px 20px; border: 0; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; text-align: center; font: inherit; color: var(--black); transition: box-shadow .2s, background .2s, opacity .2s; }
.who-opt:hover { background: var(--gray); box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.who-opt:focus-visible { border-radius: 22px; }
.who-opt[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--charcoal), inset 0 -4px 0 var(--gold); }
.who-opt .pinav { --size: 116px; }
.who-opt b { font-size: 17px; line-height: 1.25; }
.who-opt small { font-size: 13.5px; line-height: 1.4; color: var(--muted); max-width: 24ch; }
.who-opt .chip { position: absolute; top: 10px; right: 10px; }
.who-opt:focus-visible .pinav { animation: pv-hop .72s cubic-bezier(.3, .7, .4, 1.3); }
@media (hover: hover) { .who-opt:hover .pinav { animation: pv-hop .72s cubic-bezier(.3, .7, .4, 1.3); } }
.who-dlg.is-picked .who-opt:not(.is-pick) { opacity: .35; }
/* "Change" on the hero, and "Not you? Change" (or "Who are you?" before a pick) on the dashboard. */
.who-change { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--black); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; }
.who-change:hover { text-decoration-color: var(--red); }
/* ── 15c. Your dashboard: your badge, your month's list (the Scorecard), a result's number, your tiles and the pack picker. ── */
/* The greeting with your badge beside it, about as tall as the words. */
.p-hi { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; }
.part .p-hi h1 { margin: 0; min-width: 0; }
.p-hi .pinav { --size: clamp(48px, 4.4vw, 68px); }
.p-head .seat { line-height: 1.45; }
.p-head .seat .who-change { font-size: 13px; }
.dacts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.dact { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 0; }
.dact + .dact { border-top: 1px solid var(--line); }
.dact .dk { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.dact.on .dk { box-shadow: inset 0 0 0 2px var(--black); }
.dact.done .dk { display: grid; place-items: center; background: var(--gold); box-shadow: none; }
.dact.done .dk::after { content: "✓"; font-weight: 900; font-size: 12px; line-height: 1; color: var(--black); }
.dact b { display: block; font-size: 15.5px; line-height: 1.25; }
.dact small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--muted); }
.dact.done b { color: var(--charcoal); }
.dact .da { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.dact .done-note { font-size: 13px; white-space: nowrap; }
/* A result's number (Share what worked), and the form row that makes it. */
p.roi { margin: 8px 0 0; font-size: 14px; line-height: 1.5; font-weight: 800; color: var(--black); }
.pform .roi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px 10px; }
.pform .roi-row .tsel { justify-self: stretch; }
.pform .roi-row .tsel select { width: 100%; height: 46px; border-radius: 14px; }
/* Your progress: three across, black bars on gray. */
.dprog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
.dprog .meter span { color: var(--charcoal); }
.dprog .meter .bar { background: rgba(0, 0, 0, .1); }
.dprog .meter .bar i { background: var(--black); }
/* Share: the pack picker (the phone that previews it is in 20-dashboard-v2.css). */
.pk { display: grid; gap: 8px; min-width: 0; margin: 6px 0 0; padding: 0; border: 0; }
.pk-g { padding: 0; margin: 8px 0 0; font-weight: 700; font-size: 14px; }
.pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pk-list label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s; }
.pk-list label:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.pk-list label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--black); }
.pk-list input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
.pk-list span { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.pk-list b { font-size: 15px; line-height: 1.3; }
.pk-list small { font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--muted); }
.pk-list .chip-s { margin-top: 4px; }
.pk-note-f { margin-top: 8px; }
#pkMsg { display: grid; gap: 8px; }
#pkMsg:empty { margin-bottom: -10px; }        /* nothing to say yet: no double gap (still rendered, so it's announced when it fills) */
#pkMsg .pk-url { width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--charcoal); font: inherit; font-size: 14px; font-weight: 600; background: #fff; color: var(--black); }
.do-team { margin: 26px 0 0; }
@media (max-width: 560px) {
  /* Phones: a row's buttons sit under its words. */
  .dact { grid-template-columns: 22px minmax(0, 1fr); align-items: start; }
  .dact .da { grid-column: 2; justify-content: flex-start; }
}
@media (min-width: 1024px) {
  .sheet.who-dlg { width: min(880px, calc(100vw - 32px)); height: fit-content; max-height: min(880px, calc(100dvh - 32px)); }
}
@media (max-width: 1023.98px) {
  .p-hi { gap: 12px; }
  .p-hi .pinav { --size: 44px; }
  .sheet.who-dlg { height: auto; max-height: 94dvh; }       /* a bottom sheet that hugs its content */
  .who-body { padding: 26px 16px calc(22px + env(safe-area-inset-bottom)); }
  .who-x:not([hidden]) + .who-body { padding-top: 40px; }                  /* the title clears the close button */
  .who-body .head { font-size: clamp(30px, 8vw, 40px); }
  .who-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .who-opt { grid-template-columns: 76px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; column-gap: 14px; row-gap: 2px; padding: 12px 14px; }
  .who-opt .pinav { --size: 76px; grid-row: span 2; }
  .who-opt[aria-current="true"] .pinav { grid-row: span 3; }
  .who-opt .chip { position: static; grid-column: 2; margin-top: 4px; }       /* under the sub-line: the row is too narrow to float it */
}
/* ── 16. The team page (?pack=…): only #packView, on white. Its own rules are PACK_CSS (shared with the download). ── */
html.pack-mode body > :not(#packView):not(svg) { display: none !important; }
html.pack-mode, html.pack-mode body { background: #fff; }
/* The opening build (engine/intro.ts). On a load at the top the hero's headline and pill wait while "Who are you?"
   asks (html.intro-wait); then, as the restaurant builds itself, the words rise in turn, the Gold highlight sweeps
   across Make It Golden, the last word pops, and the label, the lead and the pill follow (html.intro-play). Reduced
   motion never sets either class. */
.hero .head .hw { display: inline-block; }
.hero .head .hw-keep { white-space: nowrap; }
html.intro-wait .hero-head, html.intro-wait .hero-row { opacity: 0; }
html.intro-play .hero .head .hw { animation: hw-in .7s cubic-bezier(.2, .8, .3, 1.2) both; animation-delay: calc(.25s + var(--i) * .11s); }
html.intro-play .hero .head mark { animation: hw-sweep .6s cubic-bezier(.6, 0, .2, 1) 1s both; }
html.intro-play .hero .head > .hw:last-child { animation: hw-pop .75s cubic-bezier(.3, 1.6, .5, 1) 1.3s both; }
html.intro-play .hero-head .label, html.intro-play .hero-lead { animation: hw-up .6s ease-out 1.6s both; }
html.intro-play .hero-row { animation: hw-up .6s ease-out 1.85s both; }
@keyframes hw-in { from { opacity: 0; transform: translateY(.5em) rotate(3deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hw-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes hw-pop { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.12) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes hw-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* ── 16. Your dashboard, four tabs (Home · Ideas · Ask · Share; Global Comms: Pull a story), the header's progress card,
   the NEXT Scorecard and Share what worked. Last in the cascade: it builds on 14-17. Panels are white cards or flat
   gray; Gold is a fill (never type on white); numbers are black, weight 900. ── */

/* The header: who you are on the left, your progress on the right (under it on phones). */
.part .p-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: end; gap: 20px 40px; }
.p-who { min-width: 0; }
.p-prog { position: relative; display: grid; gap: 14px; padding: 18px 20px 16px; border-radius: 22px; background: var(--gray); transition: background .2s; }
.p-prog:hover { background: #F0F0F0; }
.p-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.p-prog .k { margin: 0; font: 400 10.5px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); }
/* Its one button, stretched over the card: the whole card opens the Scorecard. */
.p-score { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--black); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; white-space: nowrap; }
.p-score::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.p-score:hover { text-decoration-color: var(--red); }
.p-score:focus-visible { outline: none; }
.p-score:focus-visible::after { outline: 3px solid var(--charcoal); outline-offset: 3px; }
.p-score i { font-style: normal; }
.p-score .newdot { width: 8px; height: 8px; }
.p-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.p-meters .meter b { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1; font-variant-numeric: proportional-nums; }
.p-meters .meter span { margin-top: 5px; font-size: 13px; color: var(--charcoal); }
.p-meters .meter .bar { height: 6px; margin-top: 10px; background: rgba(0, 0, 0, .1); }
.p-best { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; color: var(--charcoal); }
.p-best b { color: var(--black); }

/* Four tabs: a track that fits them, under the header, with room around the modules. */
.part.today { gap: 28px; }
.part .ptabs { justify-self: start; max-width: 100%; }
.part .ppane { gap: 56px; }
@media (min-width: 1024px) {
  .part .ptabs { flex-wrap: nowrap; gap: 4px; border-radius: 999px; }
  .part .ptabs button { flex: 0 0 auto; height: 44px; padding: 0 24px; font-size: 15px; }
  .part .ptabs .newdot { top: 7px; right: 10px; }
}

/* A module: its heading, and a link to the rest ("See all ideas →"). Text links share one look. */
.hsec { display: grid; gap: 18px; min-width: 0; }
.hsec-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.hsec-h { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ilink { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--black); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; }
.ilink i { font-style: normal; }
.ilink:hover { text-decoration-color: var(--red); }

/* Home: this month's ask, in Gold, with how it works beside it. */
.dask { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 32px 48px; padding: clamp(26px, 3.4vw, 48px); border-radius: var(--r-card); background: var(--gold); color: var(--black); }
.dask .k { margin: 0 0 14px; font: 400 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.dask h2 { font-size: clamp(30px, 3.3vw, 48px); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; max-width: 22ch; }
.dask .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.dask .btn { height: 50px; padding: 0 24px; font-size: 16px; }
.dask .btn.line { background: transparent; box-shadow: inset 0 0 0 2px var(--black); }
.dask .btn:focus-visible { outline-color: var(--black); }
.dask-how { padding-left: 36px; border-left: 1.5px solid rgba(0, 0, 0, .2); }
.dask-how ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; }
.dask-how li { counter-increment: s; position: relative; padding-left: 30px; font-size: 17px; line-height: 1.4; }
.dask-how li::before { content: counter(s); position: absolute; left: 0; top: 0; font-weight: 900; }
/* Three cards in a row: also this month, from Global Communications, what others are trying. */
.hcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; align-items: stretch; }
.hcard { display: flex; flex-direction: column; min-width: 0; padding: 24px; }
.tcard.hcard h3 { font-size: clamp(21px, 1.7vw, 24px); line-height: 1.12; }
.hcard > p { font-size: 15.5px; }
.hcard .row { margin-top: auto; padding-top: 18px; }
.hcard .kick { margin: 10px 0 0; font-size: 13.5px; }
.hcard .row + .kick { margin-top: 12px; }
.hcard .label .kick { margin: 0; font-size: 13px; }
.hcard .poll { margin-top: 16px; }
.doors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.part .doors .btn.sm { height: 34px; padding: 0 13px; }
.hidea { gap: 10px; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.hidea:hover { transform: translateY(-1px); box-shadow: 0 0 0 1.5px var(--charcoal), 0 12px 32px rgba(0, 0, 0, .08); }
.hi-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hi-t { font-size: 19px; line-height: 1.2; letter-spacing: -.01em; color: var(--black); }
.hidea .kick { margin-top: auto; padding-top: 6px; }
/* An idea's ripple level (Ripple · Wave · Swell · Golden brick). */
.lvl { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--gray); font-weight: 800; font-size: 12px; color: var(--black); white-space: nowrap; }
.lvl i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--charcoal); }
.lvl[data-lvl="brick"] { background: var(--gold); }
.lvl[data-lvl="brick"] i { background: #fff; }

/* Ideas: the call to share, in Gold and bigger than what follows; then how an idea becomes a brick, one filter row and
   the ideas, two across. */
.hsec-lead { margin: 8px 0 0; font-size: 16px; line-height: 1.45; color: var(--charcoal); }
.dhero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(26px, 3.6vw, 52px); border-radius: var(--r-card); background: var(--gold); color: var(--black); }
.dhero > div { flex: 1 1 520px; min-width: 0; }
.dhero .k { margin: 0 0 14px; font: 400 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.dhero h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.dhero .lead { margin: 14px 0 0; max-width: 52ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: var(--black); }
.dhero .btn { flex: none; height: 56px; padding: 0 30px; font-size: 17px; }
.dhero .btn:focus-visible { outline-color: var(--black); }
.howbrick { border-radius: 18px; background: var(--gray); }
.howbrick summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 800; font-size: 16px; }
.howbrick summary::-webkit-details-marker { display: none; }
.howbrick summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--charcoal); font-weight: 800; font-size: 15px; line-height: 1; align-self: center; }
.howbrick[open] summary::before { content: "−"; }
.howbrick summary small { font-weight: 600; font-size: 13.5px; color: var(--muted); }
.howbrick > p { margin: 0 20px; font-size: 15px; line-height: 1.5; color: var(--charcoal); max-width: 72ch; }
.howbrick .lsteps { margin: 16px 20px 20px; }
.part .pfilters { gap: 8px; }
.part .pfilters .sep { width: 6px; }
.fsel select { height: 32px; font-size: 13px; }
.part .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.part .idea { display: flex; flex-direction: column; padding: 22px 24px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .05); }
.part .idea h3 { margin-top: 12px; font-size: 21px; line-height: 1.15; }
.part .idea .istory { font-size: 15px; }
.idea .acts { margin-top: auto; padding-top: 16px; }
.inums { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.inum { display: grid; gap: 2px; margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--gray); min-width: 120px; }
.inum b { font-weight: 900; font-size: 28px; letter-spacing: -.02em; line-height: 1.05; }
.inum span { font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--charcoal); }
.isrc { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.idea .result.nonum::before { display: none; }
.nonum .chip { margin-right: 6px; vertical-align: 1px; }

/* Ask: the questions, and "We're listening" beside them (gray, never a dark panel). */
.ask-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: start; gap: 28px 40px; }
.ask-main .threads { margin: 0; gap: 12px; }
.part .th { padding: 16px 18px; border-radius: 22px; }
.listen { display: grid; gap: 14px; }
.listen > section { padding: 22px 22px 20px; border-radius: 22px; background: var(--gray); }
.listen .k { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 400 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); }
.listen .k i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.listen h2 { font-size: 22px; line-height: 1.12; letter-spacing: -.015em; }
.listen h3 { font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.listen .lead, .listen p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--charcoal); }
.listen .hearing { margin-top: 16px; gap: 8px; }
.listen .hearing li { gap: 4px; padding: 14px 14px 12px; border-radius: 16px; background: #fff; }
.listen .hearing b { font-size: 15px; }
.hearing .hstat { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--black); }
.hearing .hstat::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--charcoal); translate: 0 -1px; }
.hearing [data-kind="agenda"] .hstat::before { background: var(--gold); box-shadow: 0 0 0 1px var(--charcoal); }
.hearing [data-kind="done"] .hstat::before { background: #fff; box-shadow: inset 0 0 0 2px var(--charcoal); }
.hearing [data-kind="fixing"] { box-shadow: inset 4px 0 0 var(--red); }
.hearing [data-kind="fixing"] .hstat { color: var(--red); }
.hearing [data-kind="fixing"] .hstat::before { background: var(--red); }
.listen .th-mini .row { margin-top: 14px; }
.listen .rules { padding: 14px 18px; background: #fff; }

/* Share: who it's for, what goes in (beside a phone), how it goes; how others rolled it out; posts in your own name. */
.pk-step { display: grid; gap: 14px; min-width: 0; }
.pk-step h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.pk-aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pk-aud button { display: grid; align-content: start; gap: 6px; padding: 18px 20px 20px; border: 0; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; text-align: left; color: var(--black); cursor: pointer; transition: box-shadow .2s, background .2s; }
.pk-aud button:hover { box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.pk-aud button[aria-pressed="true"] { background: var(--gray); box-shadow: inset 0 0 0 2px var(--charcoal), inset 0 -4px 0 var(--gold); }
.pk-aud b { font-size: 17px; line-height: 1.2; }
.pk-aud span { font-size: 14px; line-height: 1.4; color: var(--charcoal); }
.pk-build { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px 40px; }
.pk-pick { display: grid; gap: 14px; min-width: 0; }
.pk-phone-col { display: grid; justify-items: center; gap: 22px; }
.pk-phone-col .k { margin: 0; font: 400 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pk-phone { flex: none; width: 300px; height: 630px; overflow: auto; overscroll-behavior: contain; border-radius: 40px; background: #fff; box-shadow: 0 0 0 10px #EDEDED, 0 0 0 11px var(--line), 0 24px 50px rgba(0, 0, 0, .12); scrollbar-width: none; }
.pk-phone::-webkit-scrollbar { display: none; }
/* The screen: a 390px phone, scaled down to the 300px mockup (its big type follows its own width: cqi). */
.pk-screen { width: 390px; zoom: .7692; container-type: inline-size; }
.pk-screen .pk-page { padding-top: 34px; }
.pk-send { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pk-go { display: grid; justify-items: start; align-content: start; gap: 12px; padding: 16px 16px 18px; border: 0; border-radius: 18px; background: var(--gray); font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.25; color: var(--black); text-decoration: none; text-align: left; cursor: pointer; transition: box-shadow .2s, background .2s; }
.pk-go:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--charcoal); }
.glyph-i { flex: none; width: 24px; height: 24px; }
.pk-safe { display: flex; align-items: flex-start; gap: 10px; margin: 0; max-width: 70ch; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--charcoal); }
.pk-safe .glyph-i { width: 20px; height: 20px; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quotes .story { margin: 0; }
.quotes blockquote { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.4; }
.pk-pick .pk-g { margin: 6px 0 -4px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, .05); }
.post-art { display: grid; align-content: end; gap: 6px; min-height: 170px; padding: 18px; border-radius: 16px; background: var(--gold); }
.post-art small { font: 400 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.post-art b { font-size: 24px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.post > p { margin: 0 4px; font-size: 14.5px; line-height: 1.45; color: var(--charcoal); }
.post-to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: auto 4px 0; }
.post-to > span { margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.part .post-to .btn.round { width: 36px; height: 36px; padding: 0; }
.post-to .glyph-i { width: 18px; height: 18px; }
.post-photo .post-art { background: var(--gray); }
.post-photo .post-art small { font: 600 14px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--charcoal); }
.post-photo .filebtn { align-self: flex-start; margin: auto 4px 0; }
/* The QR for the back room. */
.qr-dlg .sheet-body { display: grid; justify-items: center; gap: 18px; text-align: center; }
.qr-dlg .lead { margin: 0; max-width: 40ch; }
.qr { width: min(280px, 70vw); height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.qr-dlg .fine { justify-content: center; margin: 0; }
.qr-dlg .btn svg { width: 18px; height: 18px; }

/* Pull a story (Global Comms): the stories, ranked, beside how to package them; then your channel. */
.pull-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; gap: 24px 32px; }
.pull-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pull-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.pull-list li.on { box-shadow: inset 0 0 0 2px var(--charcoal); }
.pull-pick { width: 26px; height: 26px; margin-top: 2px; border: 0; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.pull-pick[aria-pressed="true"] { background: var(--gold); box-shadow: none; }
.pull-pick[aria-pressed="true"]::after { content: "✓"; font-weight: 900; font-size: 14px; color: var(--black); }
.pull-list .k { margin: 0 0 4px; font: 400 10.5px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pull-list li > div b { display: block; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.pull-list small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--muted); }
.pull-n { display: grid; justify-items: end; gap: 2px; margin: 0; text-align: right; }
.pull-n b { font-weight: 900; font-size: 22px; line-height: 1; font-variant-numeric: proportional-nums; }
.pull-n span { font-size: 12px; font-weight: 600; color: var(--muted); }
.pull-n mark { margin-top: 4px; padding: 1px 6px; border-radius: 4px; font-weight: 800; font-size: 13px; }
.pkg { display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: var(--gray); }
.pkg h3 { font-size: 19px; letter-spacing: -.01em; }
.pkg .opts button[aria-pressed="true"] { background: var(--gold); }
.pkg-prev { padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pkg-prev .k { margin: 0; font: 400 10.5px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pkg-t { display: block; margin: 6px 0 0; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.pkg-mail dl { display: grid; gap: 2px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pkg-mail dl div { display: flex; gap: 6px; }
.pkg-mail dt { font-weight: 800; }
.pkg-mail dd { margin: 0; color: var(--charcoal); }
.pkg-prev ol, .pkg-prev ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.4; }
.pkg-prev li b { display: block; }
.pkg-prev li span { color: var(--charcoal); }
.pkg-prev .fine { margin: 12px 0 0; }
.pkg-card, .pkg-post { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--gray); font-size: 14px; line-height: 1.4; font-weight: 700; }
.pkg-post span { display: block; margin-top: 4px; font-weight: 600; color: var(--charcoal); }
.pkg-slide { aspect-ratio: 16 / 9; display: grid; align-content: center; padding: 18px 20px; border-radius: 12px; background: var(--gold); }
.pkg-prev:has(.pkg-slide) { padding: 10px; }
.pkg-slide .k { color: var(--black); }
.pkg-slide ul { gap: 4px; font-size: 13px; font-weight: 700; }
.publish > .pform { margin: 0 20px 20px; }
.hcard .rates { margin-top: 14px; gap: 8px; }
.hcard .rates .meter { padding: 10px; background: var(--gray); }

/* Sheets with buttons that stay in view (Share what worked). */
.sheet[open]:has(> .sheet-foot) { grid-template-rows: auto minmax(0, 1fr) auto; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 26px; border-top: 1px solid var(--line); background: #fff; }
/* The dashboard's small controls, in its sheets too. */
:is(.score-dlg, .share-dlg) .btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
:is(.score-dlg, .share-dlg) .btn.dark { background: var(--black); color: #fff; }
:is(.score-dlg, .share-dlg) .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* The NEXT Scorecard. */
.score-dlg .sheet-body { display: grid; align-content: start; gap: 44px; padding: 28px 32px 44px; }
.sc-top h3 { font-size: clamp(36px, 3.6vw, 52px); font-weight: 900; letter-spacing: -.035em; line-height: .95; }
.sc-top p { margin: 10px 0 0; font-weight: 600; color: var(--charcoal); }
.sc-sec { display: grid; gap: 14px; min-width: 0; }
.sc-sec h4 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.sc-sec h5 { margin: 14px 0 0; font: 400 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sc-fine { margin: -6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.sc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.sc-tile { display: grid; align-content: start; gap: 4px; padding: 18px 18px 16px; border-radius: 20px; background: var(--gray); }
.sc-tile b { font-weight: 900; font-size: clamp(30px, 3vw, 40px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: proportional-nums; }
.sc-tile span { margin-top: 2px; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.sc-tile small { font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--muted); }
.sc-tile .bar { height: 6px; margin: 8px 0 2px; background: rgba(0, 0, 0, .1); }
.sc-tile .bar i { background: var(--black); }
.sc-chart { padding: 18px 18px 14px; border-radius: 20px; background: var(--gray); }
.sc-chart p { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: 15px; }
.sc-chart p b { font-weight: 900; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sc-chart .weeks { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 14px; }
.sc-chart .weeks i { flex: 1; border-radius: 4px 4px 0 0; background: rgba(0, 0, 0, .13); }
.sc-chart .weeks i:last-child { background: var(--gold); }
.sc-chart small { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sc-sec .brows { display: grid; gap: 0; }
.sc-sec .brows li { padding: 10px 0; border-top: 1px solid var(--line); }
.sc-sec .brows li > span { flex: 1; }
.sc-sec .brows b { font-size: 15px; }
.sc-you .dprog { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 16px; padding: 18px; border-radius: 20px; background: var(--gray); }
.sc-you .dprog .meter b { font-size: 24px; letter-spacing: -.02em; }
.sc-you .rip { margin-top: 2px; }
.sc-you .rip + .rip { margin-top: 8px; }

/* How an idea becomes a golden brick: five steps, Gold deepening toward the brick. */
.lsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lsteps li { position: relative; display: grid; align-content: start; gap: 4px; padding-top: 16px; }
.lsteps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: var(--gold); }
.lsteps li:nth-child(1)::before { opacity: .3; }
.lsteps li:nth-child(2)::before { opacity: .5; }
.lsteps li:nth-child(3)::before { opacity: .7; }
.lsteps li:nth-child(4)::before { opacity: .85; }
.lsteps li:last-child::before { box-shadow: 0 0 0 1.5px var(--charcoal); }
.lsteps b { font-size: 14.5px; line-height: 1.25; }
.lsteps span { font-size: 13.5px; line-height: 1.4; color: var(--charcoal); }

/* Share what worked. */
.share-dlg .sheet-body { padding-top: 20px; }
.sform { gap: 20px; padding: 0; box-shadow: none; }
.sform .from-idea div { display: grid; gap: 2px; font-size: 13px; font-weight: 600; color: var(--charcoal); }
.sform .from-idea b { font-size: 15px; color: var(--black); }
.sform .roi-f { gap: 14px; }
.sform .fine { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sform .roi-f > .field > span { font-weight: 600; font-size: 13.5px; color: var(--charcoal); }
.sform .tsel { justify-self: stretch; }
.sform .tsel select { width: 100%; height: 46px; border-radius: 14px; }
.sform .roi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.num-u { position: relative; display: block; }
.sform .num-u input { padding-right: 54px; }
.num-u small { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-size: 13px; font-weight: 700; color: var(--muted); pointer-events: none; }
.archiq { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 16px; background: var(--gray); }
.archiq .aq-mark { display: grid; place-items: center; height: 28px; padding: 0 9px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--charcoal); font-weight: 800; font-size: 12px; letter-spacing: .01em; }
.archiq b { display: block; font-size: 15px; line-height: 1.25; }
.archiq div span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--charcoal); }
.archiq.on { background: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.after-box { padding: 16px 18px; border-radius: 16px; background: var(--gray); }
.after-box h3 { margin: 0; font-size: 16px; line-height: 1.25; letter-spacing: 0; }
.after-box p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--charcoal); }
.after-box .ladder { margin-top: 12px; }
.after-box .ladder li::before { background: rgba(0, 0, 0, .12); }
.after-box .ladder li:last-child::before { background: var(--gold); }
p.roi .src-aq { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--charcoal); white-space: nowrap; }

@media (max-width: 1279.98px) {
  .part .p-head { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 20px 24px; }
  .ask-cols { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); gap: 24px; }
}
@media (max-width: 1023.98px) {
  .part .p-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .part.today { gap: 20px; }
  .part .ppane { gap: 36px; }
  .dask { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .part .ideas { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ask-cols, .pull-cols { grid-template-columns: minmax(0, 1fr); }
  .pk-aud, .pk-build, .quotes, .posts { grid-template-columns: minmax(0, 1fr); }
  .pk-send { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .part .idea { padding: 18px; }
  .dhero .btn { height: 50px; }
  .dask-how { padding: 22px 0 0; border-left: 0; border-top: 1.5px solid rgba(0, 0, 0, .2); }
  .hcards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .score-dlg .sheet-body { gap: 34px; padding: 22px 18px calc(36px + env(safe-area-inset-bottom)); }
  .lsteps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lsteps li { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 0 0 0 16px; }
  .lsteps li::before { right: auto; bottom: 0; width: 6px; height: auto; }
  .sheet-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .sform .roi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sform .roi-row > :last-child { grid-column: 1 / -1; }
  .archiq { grid-template-columns: auto minmax(0, 1fr); }
  .archiq .btn { grid-column: 1 / -1; justify-self: start; }
}
/* ── 21. The Consumer chapter: fans' posts over the neighborhood (engine/fan-feed.ts) ── */
/* The engine places each post at its place (a transform on .fan) and adds .on (shown), .is-in (it pops up),
   .is-out (it goes) and .dot (no room: just its dot). White cards, black type; Gold only as a fill. */
.feed { position: absolute; inset: 0; pointer-events: none; }
.fan { position: absolute; left: 0; top: 0; visibility: hidden; will-change: transform; }
.fan.on { visibility: visible; }
.fan-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(45, 45, 45, .35); }
.fan-card { position: absolute; left: 0; bottom: 22px; translate: calc(-50% + var(--sh, 0px)) 0; width: 216px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: start; padding: 10px 12px 10px 10px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(0, 0, 0, .12); transform-origin: calc(50% - var(--sh, 0px)) 100%; }
.fan-card::after { content: ""; position: absolute; left: calc(50% - var(--sh, 0px)); top: 100%; width: 1.5px; height: 16px; background: var(--charcoal); opacity: .5; }
.fan-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--av); color: var(--av-on); font-weight: 800; font-size: 14px; line-height: 1; }
.fan-main { display: grid; gap: 2px; min-width: 0; }
.fan-who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.3; color: var(--black); }
.fan-who b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fan-kind { flex: none; width: 15px; height: 15px; margin-left: auto; fill: none; stroke: var(--charcoal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fan-text { font-size: 12.5px; line-height: 1.3; color: var(--black); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fan-meta { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.fan-heart { color: var(--red); }
.fan-sep { margin: 0 5px; }
.fan.is-in .fan-card { animation: fan-in .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.fan.is-in .fan-dot { animation: fan-dot .45s ease-out both; }
.fan.is-out .fan-card { animation: fan-out .35s ease-in forwards; }
.fan.is-out .fan-dot { animation: fan-dot-out .35s ease-in forwards; }
.fan.dot .fan-card { display: none; }
.fan.below .fan-card { bottom: auto; top: 22px; transform-origin: calc(50% - var(--sh, 0px)) 0; }
.fan.below .fan-card::after { top: auto; bottom: 100%; }
@keyframes fan-in { from { opacity: 0; transform: translateY(10px) scale(.6); } to { opacity: 1; transform: none; } }
.fan.below.is-in .fan-card { animation-name: fan-in-below; }
@keyframes fan-in-below { from { opacity: 0; transform: translateY(-10px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fan-out { to { opacity: 0; transform: translateY(-6px) scale(.92); } }
@keyframes fan-dot { from { transform: scale(0); } 60% { transform: scale(1.5); } to { transform: none; } }
@keyframes fan-dot-out { to { transform: scale(0); } }
html.is-exploring .feed { display: none; }
@media (max-width: 1023.98px) {
  .fan-card { width: 164px; grid-template-columns: 24px minmax(0, 1fr); gap: 7px; padding: 8px 10px 8px 8px; border-radius: 12px; }
  .fan-av { width: 24px; height: 24px; font-size: 12px; }
  .fan-who, .fan-text { font-size: 12px; }
  .fan-meta { display: none; }
}
html.rm .fan-card, html.rm .fan-dot { animation: none !important; }
