/* St. George THRIVE companion (LOCALHOST DEMO ONLY, branch thrive-demo). Everything is scoped under .tr-* / .tm-*.
   Red-rock accents mark the event's own content; gold stays for actions (the app's rule), blue halo stays the app's. */
/* QC round 1 tokens. Fill colors are kept apart from text colors (white on --tr-live-fill is 5.3:1 in both themes).
   Draft is ONE cool violet everywhere, always a dashed outline or a word, never a fill: warm colors = THRIVE's own
   content, gold = actions (the app's rule), violet = our plan. Type steps: badge 12px, meta 15px (the older tester's
   floor for times, rooms, addresses), source lines 13.4px, h3 17px, h2 20px. */
:root {
  --tr-rock: #b8461f;      /* vermilion cliff, text-safe on light (5.0:1 on #fff) */
  --tr-rock-ink: #9a3a17;  /* rock text on tints and sand (5.6:1 and up) */
  --tr-rock-fill: #b8461f;
  --tr-sun: #e9894a;
  --tr-dusk: #6b2f4a;      /* QC round 2: wine, not plum, so violet means Draft and nothing else (white 9.86:1) */
  --tr-sand: #f6e7d6;
  --tr-live: #c23a28;
  --tr-live-fill: #c23a28;
  --tr-ok-ink: #1f6b43;    /* 5.2:1 on its 16% tint */
  --tr-draft: #5a4fb0;     /* 6.6:1 on white, 5.8:1 on the map floor */
  --tr-grad-a: #c0471d;    /* white 5.05:1 */
  --tr-grad-b: #8f3a1a;    /* white 7.5:1 */
  --tr-sky-1: #2c1a3d; --tr-sky-2: #6b2f4a; --tr-sky-3: #c0532e; --tr-sky-4: #e98a4a;
  --tr-fs-badge: .75rem; --tr-fs-meta: .9375rem; --tr-fs-src: .84rem; --tr-fs-body: 1rem; --tr-fs-h3: 1.0625rem; --tr-fs-h2: 1.25rem;
  --tr-fs-h1: clamp(1.6rem, 4.5vw, 2.25rem);
}
:root[data-theme="dark"] { --tr-rock: #ff9b6e; --tr-rock-ink: #ff9b6e; --tr-rock-fill: #b8461f; --tr-sand: #2a1b16; --tr-live: #ff6a4d; --tr-live-fill: #c23a28; --tr-ok-ink: #6fcf97; --tr-draft: #b9b2ff; --tr-dusk-line: #d99ab4; --tm-live-tint: #3b2320; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tr-rock: #ff9b6e; --tr-rock-ink: #ff9b6e; --tr-rock-fill: #b8461f; --tr-sand: #2a1b16; --tr-live: #ff6a4d; --tr-live-fill: #c23a28; --tr-ok-ink: #6fcf97; --tr-draft: #b9b2ff; --tr-dusk-line: #d99ab4; --tm-live-tint: #3b2320; } }

main:has(> div > .tr-page), main:has(> .tr-page) { max-width: 1040px; }
/* Room under the last item for the app's floating orb (64 px at the bottom center) and the phone's safe area. */
.tr-page { padding-bottom: calc(120px + var(--safe-b, 0px)); }
/* The pass page has its own way back (to the event); the orb sat on its buttons at 390 px (QC round 1). */
body:has(.tr-page .tr-pass) .orbnav { display: none; }
.tr-page .muted { color: var(--ink-soft); }
.tr-meta { font-size: var(--tr-fs-meta); color: var(--ink-soft); }
.tr-lead { font-size: 1.06rem; margin: 6px 0; }

/* Top bar */
.tr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 10px; flex-wrap: wrap; }
.tr-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 700; min-width: 0; flex: 0 1 auto; } /* QC round 3: was 1 1 0, so empty space in the top bar went back */
.tr-back span { color: var(--ink-soft); font-weight: 600; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-top:not(:has(.tr-clock)) { margin-bottom: 4px; }
.tr-clock { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font: inherit; font-size: .875rem; cursor: pointer; }
.tr-clock b { color: var(--ink); }
.tr-clock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
/* A made-up time looks like the demo tool it is: dashed, in the draft violet. */
.tr-clock.demo { border: 1.5px dashed var(--tr-draft); color: var(--tr-draft); font-weight: 700; }
.tr-clock.demo .tr-clock-dot { background: var(--tr-draft); }
.tr-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 6px; padding: 0 16px 2px; position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.tr-nav::-webkit-scrollbar { display: none; }
.tr-nav a { flex: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; text-decoration: none;
  color: color-mix(in srgb, var(--ink) 80%, var(--ink-soft)); font-weight: 600; font-size: .9375rem; }
.tr-nav a[aria-current="page"] { color: var(--ink); font-weight: 800; background: var(--surface); box-shadow: var(--shadow); }
.tr-h1 { font-size: var(--tr-fs-h1); line-height: 1.15; margin: 6px 0 6px; letter-spacing: -.01em; }
.tr-sub { color: var(--ink-soft); margin: 0 0 14px; }

/* Labels */
.tr-draft { display: inline-block; font-size: var(--tr-fs-badge); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px;
  border: 1.5px dashed var(--tr-draft); color: var(--tr-draft); vertical-align: middle; line-height: 1.5; white-space: nowrap; justify-self: start; width: max-content; }
/* The draft marker as a word on the item that is our plan ("draft room"). */
/* QC round 2: plain "(room not confirmed)" in quiet ink, no underline (the violet dotted word read as a link and as a
   second room). The violet stays on the Draft tag and the map's planned-use names. */
.tr-dr { color: var(--ink-soft); font-weight: 400; white-space: nowrap; }
.tr-violet { color: var(--tr-draft); font-weight: 700; }
.tr-key-line { font-size: var(--tr-fs-meta); color: var(--ink-soft); margin: 4px 0 10px; line-height: 1.7; }
.tr-plan-line { font-size: .9375rem; color: var(--ink-soft); margin: 8px 0 10px; }
.tr-plan-line .tr-draft { margin-right: 6px; }
.tr-draft-note { font-size: var(--tr-fs-src); color: var(--ink-soft); margin: 18px 0 6px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--tr-draft) 45%, var(--line)); border-radius: 12px; }
.tr-src { font-size: var(--tr-fs-src); color: var(--ink-soft); margin: 10px 0; }
.tr-badge { display: inline-flex; align-items: center; gap: 5px; font-size: var(--tr-fs-badge); font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px;
  vertical-align: middle; line-height: 1.3; white-space: nowrap; justify-self: start; width: max-content; }
.tr-badge.live { background: var(--tr-live-fill); color: #fff; }
.tr-badge.next { border: 1.5px solid var(--tr-rock); color: var(--tr-rock-ink); }
.tr-badge.tonight { border: 1.5px solid var(--tr-dusk-line, var(--tr-dusk)); color: var(--ink); }
.tr-badge.now { border: 1.5px solid var(--line); color: var(--ink-soft); }
.tr-badge.open { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--tr-ok-ink); }
.tr-badge.key { background: var(--tr-dusk); color: #fff; }
.tr-badge.ex { background: color-mix(in srgb, var(--tr-rock) 15%, transparent); color: var(--tr-rock-ink); }
.tr-org { justify-self: start; width: max-content; }
.tr-pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tr-pulse 1.6s ease-in-out infinite; }
.tr-pulse.tr-still { animation: none; } /* r198: while a find is lit on the map, only the find pulses */
@keyframes tr-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* Hearts and icon buttons */
.tr-icon-btn { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-soft); padding: 0; }
.tr-icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tr-link { background: none; border: 0; padding: 0 0 0 6px; min-height: 44px; display: inline-flex; align-items: center; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; opacity: .95; }

/* Avatars: initials on one of four desert gradients (picked by name), white text 4.5:1 or better at the start of each;
   speaker photos for the nine speakers only. Every avatar gets a thin ring so pale photos don't melt into the page. */
.tr-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .95rem; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--tr-grad-a), var(--tr-grad-b)); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px color-mix(in srgb, var(--tr-rock) 35%, var(--line)); }
.tr-av.g-wine { background: linear-gradient(135deg, #7a2f4f, #4a1f36); }   /* white 8.95:1 */
.tr-av.g-slate { background: linear-gradient(135deg, #3d4f6b, #26344a); }  /* white 8.30 to 12.56:1 */
.tr-av.g-juniper { background: linear-gradient(135deg, #2f6b5a, #1d4a40); }
.tr-av.big { width: 84px; height: 84px; font-size: 1.6rem; }

/* Entry card on the event page: the event's sunset as a 6 px band on top */
.tr-entry { border: 1px solid color-mix(in srgb, var(--tr-rock) 35%, var(--line));
  background: linear-gradient(90deg, var(--tr-sky-1), var(--tr-sky-2) 35%, var(--tr-sky-3) 70%, var(--tr-sky-4)) top / 100% 6px no-repeat,
    linear-gradient(140deg, color-mix(in srgb, var(--tr-sun) 14%, var(--surface)), var(--surface) 65%); margin: 14px 0; }
.tr-entry-k { margin: 0 0 4px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tr-rock-ink); }
.tr-entry .btn.primary { margin-top: 6px; }

/* Home */
.tr-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 22px 20px; color: #fff; margin-bottom: 14px; isolation: isolate; }
.tr-hero-sky { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 70% at 78% 105%, rgb(255 196 120 / .95), transparent 55%),
  linear-gradient(180deg, var(--tr-sky-1) 0%, var(--tr-sky-2) 38%, var(--tr-sky-3) 72%, var(--tr-sky-4) 100%); }
.tr-hero-sky::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: #3a1610; clip-path: polygon(0 62%, 9% 48%, 15% 52%, 22% 30%, 34% 30%, 38% 44%, 47% 46%, 52% 22%, 66% 22%, 70% 40%, 79% 42%, 84% 58%, 92% 54%, 100% 64%, 100% 100%, 0 100%); opacity: .82; }
.tr-kicker { margin: 0; font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .92; text-wrap: balance; }
.tr-hero h1 { margin: 6px 0 2px; font-size: clamp(2rem, 7vw, 3.1rem); line-height: 1; letter-spacing: -.02em; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.tr-hero h1 span { letter-spacing: .06em; font-family: system-ui, sans-serif; font-weight: 900; }
.tr-tag { margin: 6px 0 18px; font-style: italic; opacity: .92; }
.tr-in { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 700; font-size: .92rem; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
/* Checked in: a shorter hero, so Map and Schedule sit on the first screen (QC round 2). */
.tr-hero.compact { padding: 16px 18px 12px; }
.tr-hero.compact h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); }
.tr-hero.compact .tr-tag { margin: 4px 0 8px; }
.tr-check { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: rgb(255 255 255 / .22); }
.tr-now { padding: 14px 16px; }
.tr-now h2 { margin: 0 0 8px; font-size: var(--tr-fs-h3); font-weight: 800; }
.tr-now-item, .tr-next-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 8px 0; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.tr-now-item:first-of-type { border-top: 0; }
.tr-now-item .small, .tr-next-item .small { flex-basis: 100%; }
.tr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.tr-tiles.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tr-tile { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 104px; align-content: start; transition: transform .15s, border-color .15s; }
@media (hover: hover) { .tr-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tr-rock) 45%, var(--line)); } } /* QC round 3: no sticky hover on touch */
.tr-tile b { font-size: 1rem; font-weight: 800; margin-top: 6px; }
.tr-tile span { font-size: .9rem; color: var(--ink-soft); }
.tr-tile.draft { border-style: dashed; box-shadow: none; }
.tr-ico { width: 28px; height: 28px; fill: none; stroke: var(--tr-rock); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tr-foot { margin-top: 10px; }
@media (max-width: 420px) { .tr-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; } .tr-tile { padding: 12px; min-height: 96px; } }

/* Pass */
.tr-pass { text-align: center; max-width: 440px; margin: 0 auto; }
.tr-qr { display: inline-block; padding: 22px 16px 16px; border-radius: 20px; box-shadow: var(--shadow); margin: 10px 0 6px; border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--tr-sky-1), var(--tr-sky-2) 35%, var(--tr-sky-3) 70%, var(--tr-sky-4)) top / 100% 6px no-repeat, #fff; }
.tr-qr svg { display: block; width: min(240px, 62vw); height: auto; }
.tr-code { font: 800 1.15rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; margin: 6px 0 0; }
.tr-who { margin: 2px 0 12px; color: var(--ink-soft); font-weight: 600; }
.tr-ok { color: var(--ok); font-weight: 800; }
.tr-pass-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.tr-scan-frame { position: relative; aspect-ratio: 4/3; max-width: 420px; margin: 0 auto 16px; border-radius: 18px; background: #11151d; overflow: hidden; }
.tr-scan-frame span { position: absolute; inset: 18%; border: 3px solid rgb(255 255 255 / .85); border-radius: 14px; }
.tr-scan-frame i { position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; background: var(--tr-live); box-shadow: 0 0 12px var(--tr-live); animation: tr-scanline 2.2s ease-in-out infinite alternate; }
@keyframes tr-scanline { from { top: 22%; } to { top: 78%; } }
.tr-scan-form { max-width: 420px; margin: 0 auto; }
.tr-scan-res { max-width: 420px; margin: 14px auto; padding: 14px; border-radius: 14px; display: grid; gap: 2px; }
.tr-scan-res.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border: 1px solid var(--ok); }
.tr-scan-res.no { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid var(--danger); }

/* Map */
/* Floor and day switches: one row that scrolls inside itself if it must, never the page (QC round 1: 391 px at 390,
   458 px at 125% text). Every pill 44 px tall. */
.tr-floors, .tr-days { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tr-floors::-webkit-scrollbar, .tr-days::-webkit-scrollbar { display: none; }
.tr-floors a, .tr-days a, .tr-days button { flex: none; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.tr-days a span, .tr-days button span { font-weight: 500; opacity: 1; } /* QC round 2: .8 took the number to 3.4:1 */
.tr-days button { border: 0; background: none; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.tr-days button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tr-map-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 10px; }
.tr-map-bar .segments { margin-bottom: 0; }
.tr-map-wrap { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 8px; overflow: hidden; }
.tr-map-wrap svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.tr-map-wrap.small svg { max-height: 46vh; }
.tr-map-foot { margin: 8px 2px; font-size: var(--tr-fs-meta); color: var(--ink-soft); }
.tr-map-foot a { display: inline-block; padding: 11px 4px; margin: -11px 0; }
.tr-hl-key { width: 14px; height: 14px; border-radius: 4px; border: 3px solid var(--tr-rock-fill); display: inline-block; vertical-align: -2px; margin-right: 4px; box-sizing: border-box; }
/* The floor map pinches, drags and double-taps (r182, thrive-panzoom.js; it replaced the "Zoom in" button). Only .tr-pz's
   transform moves. At fit size one finger scrolls the page (pan-y); zoomed in, the map has the finger. */
.tr-map-wrap.pz { position: relative; padding: 0; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.tr-map-wrap.pz.zoomed { touch-action: none; cursor: grab; }
.tr-map-wrap.pz.grabbing { cursor: grabbing; }
.tr-map-wrap.pz:focus-visible { outline: 3px solid var(--tr-rock-fill, #c0532a); outline-offset: 2px; }
.tr-pz { padding: 8px; transform-origin: 0 0; }
.tr-pz-fit { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); box-shadow: var(--shadow); }
.tr-pz-fit[hidden] { display: none; }
.tr-pz-fit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Phones: at fit size the small print waits (it was 4 to 8 px); pinch in and it comes back (.pz-big from 1.6x). */
@media (max-width: 699px) {
  .tr-map-wrap:not(.pz-big) .tm-legend, .tr-map-wrap:not(.pz-big) .tm-note, .tr-map-wrap:not(.pz-big) .tm-sublabel { display: none; }
}
/* Room, booth and restroom crops: always fitted, centered, under about half the screen, sized to the crop's own shape so
   nothing shows past it (QC round 2). */
.tr-map-wrap.focus svg.tm-focus { width: min(100%, calc(52vh * var(--ar, 1.4))); max-height: none; margin-inline: auto; }
.tr-map-wrap.focus .tm-legend, .tr-map-wrap.focus .tm-note { display: none; }
.tr-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--ink); }
.tr-toggle input { width: 20px; height: 20px; accent-color: var(--tr-rock-fill); }
.tr-live-list, .tr-parking { margin-top: 6px; }
.tr-room-row { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tr-room-now { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; }
.tr-room-next { flex-basis: 100%; }
.tr-room-card { margin-top: 12px; }
.tr-room-card p { margin: 6px 0; }
.tr-room-sched h2 { font-size: var(--tr-fs-h3); font-weight: 800; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tr-room-sched h2 a { color: inherit; }

/* Schedule rows */
.tr-sched-head { gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 4px; }
.tr-sched-head .segments { margin-bottom: 0; }
.tr-sched { list-style: none; margin: 0; padding: 0; }
/* The whole row is one target (the title's ::after covers it); the speaker and room links sit on top as their own
   padded targets. */
.tr-row { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.tr-row:first-child { border-top: 0; }
.tr-time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: .9375rem; padding-top: 2px; white-space: nowrap; }
.tr-what { display: grid; gap: 3px; min-width: 0; }
.tr-title { font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.3; }
a.tr-title:hover { text-decoration: underline; }
.tr-title.plain { font-weight: 650; color: var(--ink); }
button.tr-title { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 650; text-align: left; cursor: pointer; justify-self: start; }
.tr-stretch::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.tr-stretch:focus-visible { outline: none; } .tr-stretch:focus-visible::after { outline: 2px solid var(--halo, var(--tr-rock)); outline-offset: -2px; }
.tr-by { font-size: var(--tr-fs-meta); } .tr-by a, .tr-row .tr-meta a, .tr-row .tr-badges { position: relative; z-index: 1; }
.tr-by a { color: var(--tr-rock-ink); font-weight: 700; text-decoration: none; display: inline-block; padding: 11px 0; margin: -11px 0; } /* 44 px (QC round 3) */
.tr-row .tr-meta a { display: inline-block; padding: 11px 2px; margin: -11px -2px; }
.tr-talk-when .tr-room-a { display: inline-block; padding: 11px 2px; margin: -11px -2px; }
.tr-meta a { color: inherit; }
.tr-room-a { color: inherit; }
.tr-row.k-talk .tr-time { color: var(--tr-rock-ink); }
.tr-row.is-live { background: linear-gradient(90deg, color-mix(in srgb, var(--tr-live) 10%, transparent), transparent 70%); border-radius: 12px; padding-left: 8px; margin-left: -8px; }
/* Finished items are muted by color, not opacity, so they stay readable (QC round 1: opacity took links to 2.9:1). */
.tr-row.is-past .tr-title, .tr-row.is-past .tr-time, .tr-row.is-past .tr-by a { color: var(--ink-soft); }
.tr-row.is-past .tr-badge { filter: saturate(.4); }
.tr-earlier { margin: 4px 0 8px; }
.tr-earlier summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--ink-soft); }
/* Every THRIVE disclosure shows it opens (QC round 2: flex summaries lose the marker). The app's pattern (app.css .fy-editor). */
.tr-earlier summary, .tr-org-menu > summary, .tr-more > summary, .tr-hours summary, .tr-suggest .ev-more > summary { list-style: none; }
.tr-earlier summary::-webkit-details-marker, .tr-org-menu > summary::-webkit-details-marker, .tr-more > summary::-webkit-details-marker,
  .tr-hours summary::-webkit-details-marker, .tr-suggest .ev-more > summary::-webkit-details-marker { display: none; }
.tr-earlier summary::after, .tr-org-menu > summary::after, .tr-more > summary::after, .tr-hours summary::after, .tr-suggest .ev-more > summary::after {
  content: '\25BE'; margin-left: 8px; color: var(--ink-soft); font-weight: 400; }
.tr-earlier[open] summary::after, .tr-org-menu[open] > summary::after, .tr-more[open] > summary::after, .tr-hours[open] summary::after,
  .tr-suggest .ev-more[open] > summary::after { content: '\25B4'; }
.tr-row.k-break, .tr-row.k-end { padding: 6px 0; }
.tr-row.k-break .tr-time, .tr-row.k-end .tr-time { font-weight: 600; color: var(--ink-soft); }
.tr-day-h { font-size: .9375rem; margin: 14px 0 4px; color: var(--ink-soft); }

/* Live */

/* My schedule, people, booths */
.tr-empty { display: flex; gap: 12px; align-items: flex-start; } .tr-empty .tr-ico { flex: none; }
.tr-people, .tr-booths, .tr-committee, .tr-places, .tr-spaces { list-style: none; margin: 0; padding: 0; }
.tr-person { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.tr-person > a { flex: 1; display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); min-width: 0; }
.tr-person > a > span { display: grid; gap: 2px; min-width: 0; }
.tr-person-row, .tr-booth-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.tr-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.tr-person-row > span:not(.tr-av), .tr-booth-link > span:not(.tr-draft) { display: grid; gap: 2px; flex: 1; }
.tr-booths { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
.tr-booths li { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tr-booths li > a { flex: 1; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; min-height: 48px; }
.tr-booth-no { flex: none; min-width: 44px; height: 32px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: .9rem; background: var(--tr-sand); color: var(--tr-rock-ink); }
.tr-booth-no.big { min-width: 84px; height: 84px; border-radius: 20px; font-size: 1.6rem; }
.tr-bio-head { display: flex; gap: 16px; align-items: center; margin: 4px 0 6px; }
.tr-bio-head .tr-h1 { margin-top: 0; }
.tr-bio-head p { margin: 0 0 8px; }
.tr-bio p { line-height: 1.6; }
.tr-media { margin: 4px 0; padding-left: 20px; }
.tr-placeholder { border-style: dashed; }
.tr-more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.tr-talk-when { margin: 6px 0 12px; }
.tr-items { padding-left: 0; list-style: none; } .tr-items li { padding: 6px 0; }
.tr-items .tr-time { color: var(--tr-rock); margin-right: 6px; }

/* Calendar: 3 columns, scrolls sideways on narrow screens */
.tr-cal { position: relative; display: grid; grid-template-columns: 44px repeat(3, minmax(150px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.tr-cal-axis { position: relative; margin-top: 40px; height: var(--cal-h); }
.tr-cal-axis span { position: absolute; right: 2px; transform: translateY(-50%); font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.tr-cal-day h2 { height: 32px; margin: 0 0 8px; font-size: var(--tr-fs-h3); display: flex; align-items: baseline; gap: 6px; }
.tr-cal-day h2 .tr-cal-dn span { color: var(--ink-soft); font-weight: 600; }
.tr-cal-day h2 em { font-style: normal; font-size: .875rem; color: var(--ink-soft); font-weight: 600; }
.tr-cal-day h2 em::before { content: '\00b7\00a0'; }
.tr-cal-day.today h2 { color: var(--tr-rock-ink); }
.tr-cal-pick { display: none; }
.tr-cal-col { position: relative; height: var(--cal-h); border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tr-cal-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.tr-cal-b { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 3px 7px; overflow: hidden; text-decoration: none; color: var(--ink-soft); font-size: .8rem; line-height: 1.25;
  border: 1px dashed var(--line); background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); display: block; }
.tr-cal-b .t { display: block; font-weight: 700; font-size: .85rem; }
.tr-cal-b b, .tr-cal-b .s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-cal-b b { color: var(--ink); font-weight: 700; }
.tr-cal-b .s { margin-top: 2px; }
.tr-cal-b.k-talk { border-style: solid; border-color: color-mix(in srgb, var(--tr-rock) 35%, var(--line)); }
.tr-cal-b.filled { background: linear-gradient(160deg, var(--tr-grad-a), var(--tr-grad-b)); border: 0; color: #fff; box-shadow: 0 6px 16px rgb(143 58 26 / .3); }
.tr-cal-b.filled b { color: #fff; }
.tr-cal-b.is-live { outline: 2px solid var(--tr-live); outline-offset: 1px; }
.tr-cal-now { position: absolute; left: -4px; right: 0; height: 2px; background: var(--tr-live); z-index: 2; }
.tr-cal-now span { position: absolute; right: 4px; top: -18px; font-size: .75rem; font-weight: 800; color: var(--tr-live); background: var(--surface); padding: 0 3px; border-radius: 4px; }
/* Phones: one day, picked with the day switch (the other two columns are hidden, not squeezed). */
@media (max-width: 560px) {
  .tr-cal-pick { display: block; }
  .tr-cal { grid-template-columns: 44px minmax(0, 1fr); overflow: visible; }
  .tr-cal-day:not(.picked) { display: none; }
  .tr-cal-b { font-size: .875rem; }
}

/* Venue pages */
.tr-places li, .tr-spaces li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.tr-places li > b { font-size: var(--tr-fs-h3); }
.tr-places .chip-row { margin-top: 4px; }
.tr-deal { justify-self: start; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 18px; line-height: 1.2; margin-top: 4px; }
.tr-deal span { font-size: .8rem; font-weight: 600; }
.tr-committee { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 14px; }
.tr-committee li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.tr-committee li > span { display: grid; }
.tr-committee .tr-av { width: 38px; height: 38px; font-size: .8rem; }
.tr-emergency { border-color: color-mix(in srgb, var(--care) 45%, var(--line)); border-left: 4px solid var(--care-fill); }
.tr-emergency a { color: var(--care); }
.tr-todo { margin: 6px 0 0; padding-left: 20px; }
.tr-cols { columns: 2 200px; padding-left: 18px; }
.tr-books { padding-left: 18px; } .tr-books li { margin: 4px 0; }
.tr-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) { .tr-pulse, .tr-scan-frame i { animation: none; } .tr-tile { transition: none; } }

/* Floor map theme (thrive-maps.js reads these; its MAP_CSS has light fallbacks) */
.tm-map { --tm-floor: color-mix(in srgb, var(--tr-sand) 70%, var(--surface)); --tm-wall: color-mix(in srgb, var(--ink) 55%, var(--surface));
  --tm-room: #e6ebf2; --tm-room-hover: color-mix(in srgb, var(--tr-sun) 22%, var(--surface));
  --tm-ink: var(--ink); --tm-soft: var(--ink-soft); --tm-live: var(--tr-live); --tm-live-fill: var(--tr-live-fill); --tm-ok: var(--tr-ok-ink); --tm-next: var(--tr-rock); --tm-draft: var(--tr-draft);
  --tm-accent: var(--tr-rock-fill); --tm-park: color-mix(in srgb, var(--ink) 9%, var(--surface)); --tm-ada: #2563d6;
  --tm-sand: var(--tr-sand); --tm-rock-ink: var(--tr-rock-ink); }
/* Dark map: a cool floor with rooms a step lighter and walls that read (QC round 1: brown floor and navy rooms were
   1.06:1 apart). */
:root[data-theme="dark"] .tm-map { --tm-floor: #161d29; --tm-room: #222c3d; --tm-wall: #6f7a8e; --tm-room-hover: color-mix(in srgb, var(--tr-sun) 22%, #222c3d); --tm-accent: #e9894a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tm-map { --tm-floor: #161d29; --tm-room: #222c3d; --tm-wall: #6f7a8e; --tm-room-hover: color-mix(in srgb, var(--tr-sun) 22%, #222c3d); --tm-accent: #e9894a; } }
.tm-room { cursor: pointer; }

/* App cards are flat rows; inside the event app they are boxed. */
.tr-page .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); }
.tr-page .card h2 { margin: 0 0 6px; font-size: var(--tr-fs-h3); font-weight: 800; }
.tr-page .card.tr-placeholder { border-style: dashed; box-shadow: none; }
.tr-entry.card { border-radius: 16px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--tr-rock) 35%, var(--line)); }

/* No-ticket mode: the secondary way in on the check-in screen, and its card on the menu. */
.tr-remote-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px auto 8px; padding-top: 14px; border-top: 1px solid var(--line); max-width: 360px; }
.tr-page .card.tr-remote { border-style: dashed; box-shadow: none; margin: 12px 0; }
.tr-remote h2 { margin: 0 0 6px; font-size: var(--tr-fs-h3); }

/* 11/17: speaker photos (THRIVE's Speakers page, local copies); everyone else keeps initials. */
.tr-av.photo { object-fit: cover; padding: 0; background: color-mix(in srgb, var(--tr-sun) 22%, var(--surface)); }
/* An organizer's change from THRIVE admin: their word, not THRIVE's site and not our draft. */
.tr-org { display: inline-block; font-size: var(--tr-fs-badge); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px;
  color: var(--tr-rock-ink); background: color-mix(in srgb, var(--tr-rock) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tr-rock) 35%, var(--line)); vertical-align: middle; }
.tr-place-links { gap: 14px; flex-wrap: wrap; }
.tr-tile.admin { border-style: dashed; }
/* Before/After Community Meetups (member events around the weekend). */
.tr-meets { list-style: none; margin: 0; padding: 0; }
.tr-meets li > a { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tr-meets .tr-time { display: grid; color: var(--tr-rock); }
.tr-meets b { display: block; }
/* THRIVE admin: big targets, one column, plain words. */
/* Admin tabs are underline tabs, so they don't read as a second copy of the public sub-nav (QC round 2). */
.tr-nav.tr-adm-tabs { position: static; margin: 8px -16px 10px; background: none; backdrop-filter: none; gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tr-nav.tr-adm-tabs a { border-radius: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tr-nav.tr-adm-tabs a[aria-current="page"] { background: none; box-shadow: none; border-bottom-color: var(--tr-rock-fill); }
.tr-adm-cmp { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: .95rem; }
.tr-adm-cmp th, .tr-adm-cmp td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tr-adm-cmp td { font-variant-numeric: tabular-nums; }
.tr-adm-diff th, .tr-adm-diff td { font-weight: 800; color: var(--ink); }
.tr-adm-note { margin: 6px 0 12px; }
.tr-adm-probs { border: 1px solid color-mix(in srgb, var(--tr-live) 45%, var(--line)); background: color-mix(in srgb, var(--tr-live) 8%, var(--surface)); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.tr-adm-probs ul { margin: 6px 0 0; padding-left: 18px; }
.tr-adm-ok { color: var(--ink-soft); margin: 0 0 12px; }
.tr-adm-warn { color: var(--tr-live); font-weight: 700; margin: 6px 0; }
.tr-adm-list { list-style: none; margin: 12px 0; padding: 0; }
.tr-adm-item { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.tr-adm-item.bad { border-left: 3px solid var(--tr-live); padding-left: 10px; }
.tr-adm-main { display: grid; grid-template-columns: 86px 1fr; gap: 10px; }
.tr-adm-main .tr-time { display: grid; }
.tr-adm-main b + .small, .tr-adm-main .small { display: block; }
.tr-adm-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-adm-acts .btn.del { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); margin-left: auto; }
.tr-adm-acts .btn, .tr-adm-bar .btn { min-height: 40px; }
.tr-adm-bar { gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.tr-adm-booth { gap: 8px; align-items: flex-end; }
.tr-adm-no { width: 5.5em; flex: none; }
.tr-adm-hours { gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.tr-adm-hours > label { min-width: 4.2em; }
.tr-adm-hours .input { width: auto; flex: 1; min-width: 7em; }
.tr-adm-in { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.tr-adm-in li { display: grid; gap: 4px; }
.tr-adm-room { margin: 0 0 12px; }
.tr-adm-people .chip { font-size: .85rem; }
.tr-adm-file { cursor: pointer; }
.tr-adm-days { margin: 4px 0 6px; }

/* ---------- QC round 1 additions ---------- */
/* Menu: three groups. Big tiles for the event, a compact list for logistics, the organizers' tools folded away. */
.tr-group-h { font-size: var(--tr-fs-h2); font-weight: 800; margin: 20px 0 8px; }
.tr-tiles { margin: 8px 0 14px; }
.tr-tile.feature .tr-ico { width: 32px; height: 32px; }
.tr-tile.feature b { font-size: 1.125rem; }
@media (min-width: 700px) { .tr-tile.feature { grid-column: span 2; min-height: 132px; } .tr-event-tiles { grid-template-columns: repeat(4, 1fr); } }
.tr-list { list-style: none; margin: 0 0 12px; padding: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tr-list li + li { border-top: 1px solid var(--line); }
.tr-list-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 56px; text-decoration: none; color: var(--ink); }
.tr-list-row > span { display: grid; gap: 1px; flex: 1; min-width: 0; }
.tr-list-row > span > span { font-size: var(--tr-fs-meta); color: var(--ink-soft); }
.tr-list-row > i { font-style: normal; font-size: 1.4rem; color: var(--ink-soft); }
.tr-list-row:hover b { text-decoration: underline; }
.tr-org-menu { margin: 18px 0 8px; border-top: 1px solid var(--line); padding-top: 4px; }
.tr-org-menu > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 800; color: var(--ink); font-size: var(--tr-fs-h3); }
.tr-org-menu .tr-list { border-style: dashed; }
/* No-ticket */
.tr-remote-list { margin: 6px 0 10px; padding-left: 20px; }
.tr-remote-list li { margin: 2px 0; }
.tr-remote-list a { display: inline-flex; align-items: center; min-height: 44px; }
.tr-remote-btn { white-space: normal; text-align: center; max-width: 100%; }
.tr-share-remote svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Demo controls sit in their own dashed box under the real instruction (QC round 1). */
.tr-demo-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 16px auto 6px; padding: 12px 14px; max-width: 380px;
  border: 1.5px dashed color-mix(in srgb, var(--tr-draft) 60%, var(--line)); border-radius: 14px; }
.tr-demo-box .tr-pass-acts { margin: 4px 0 0; }
/* Speakers | Creators jump */
.tr-jump { grid-template-columns: 1fr 1fr; max-width: 420px; }
.tr-jump button { border: 0; background: none; border-radius: 999px; min-height: 44px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.tr-jump button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tr-people .tr-badges { margin: 2px 0; }
#tr-speakers, #tr-creators { scroll-margin-top: calc(var(--tr-top, 65px) + 64px); } /* QC r182: clear the app bar AND the sticky THRIVE nav */
/* A creator's listed items, each with THRIVE's own link */
.tr-listed { list-style: none; margin: 4px 0; padding: 0; }
.tr-listed li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tr-booth-link > i { font-style: normal; font-size: 1.4rem; color: var(--ink-soft); }
/* 11/18 bio pages (views/thrive-bio.js): Sustain + Send kudos + the star, On MoNomo rows, their links, the discussion */
.tr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; }
.tr-acts .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.tr-sus.on { color: var(--halo-ink); border-color: var(--halo-ink); }
.tr-sus.on .sus-fill { fill: currentColor; }
.tr-sus-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.tr-follow { display: inline-flex; align-items: center; gap: 2px; }
.tr-act-note { margin: 4px 0 10px; }
.tr-mono { list-style: none; margin: 4px 0; padding: 0; }
.tr-mono-row > a { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 48px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.tr-mono-row > a > span:not(.tr-av) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tr-mono-row > a > i { font-style: normal; font-size: 1.4rem; color: var(--ink-soft); }
.tr-mono-row.main > a { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); box-shadow: var(--shadow); }
.tr-out { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.tr-board { margin-top: 6px; }
.tr-kudos-who { margin: 0 0 12px; line-height: 1.5; }
.tr-kudos-form textarea { width: 100%; box-sizing: border-box; }
.tr-hero-booth { color: var(--ink); font-weight: 700; text-decoration: none; display: inline-block; padding: 10px 0; }
.tr-hero-booth .tr-meta { font-weight: 400; }
.tr-hero-booth i { font-style: normal; font-size: 1.2rem; color: var(--ink-soft); }
/* Resources: each link is a padded row */
.tr-links { list-style: none; margin: 6px 0 0; padding: 0; columns: 2 260px; column-gap: 24px; }
.tr-links li { break-inside: avoid; border-top: 1px solid var(--line); }
.tr-links a, .tr-links li > span { display: block; padding: 11px 0; min-height: 44px; box-sizing: border-box; }
/* Booth hours */
.tr-hours { display: inline; }
.tr-hours summary { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; color: var(--ink-soft); font-size: var(--tr-fs-meta); text-decoration: underline; margin-left: 6px; }
.tr-hours-line { margin: 10px 0; }
/* Suggest a meetup (Gather's form, opened from THRIVE): the agreement checkbox gets a real target. */
.tr-suggest label.row:has(> input[name="agree"]) { min-height: 44px; align-items: center; cursor: pointer; }
.tr-suggest input[name="agree"] { width: 22px; height: 22px; }
/* Calendar blocks: never half a line. A short block is one line (time, then the name cut with an ellipsis). */
.tr-cal-b .s { -webkit-line-clamp: 1; }
.tr-cal-b.short { display: flex; gap: 6px; align-items: baseline; }
.tr-cal-b.short .t { flex: none; }
.tr-cal-b.short b { -webkit-line-clamp: 1; }

/* ---------- QC round 2 additions ---------- */
/* Readable small buttons on THRIVE pages (QC round 2: 13.6 px on Bypass, Staff scanner, Send this...). */
.tr-page .btn.small { font-size: .9375rem; }
/* Labeled Share button, same size as Add to calendar. */
.tr-share-btn { display: inline-flex; align-items: center; gap: 6px; }
.tr-share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tr-share-main { display: grid; gap: 8px; margin: 12px 0; }
.tr-share-more { margin-top: 6px; }
/* The demo clock on attendee pages: a quiet dashed line at the end of the page (QC round 2). */
.tr-demo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 18px 0 0; padding: 10px 2px 0; font-size: var(--tr-fs-src); color: var(--ink-soft);
  border: 0; border-top: 1.5px dashed color-mix(in srgb, var(--tr-draft) 55%, var(--line)); border-radius: 0; } /* QC round 3: a footer rule, not another dashed box */
.tr-demo-foot .tr-link { padding: 0 4px; color: var(--ink); font-weight: 700; }
/* A row that scrolls sideways fades at the edge it continues past (QC round 2). */
.tr-nav.more { mask-image: linear-gradient(90deg, #000 86%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); }
@media (max-width: 420px) { .tr-nav a:not(.tr-adm-tabs a) { padding: 10px 11px; } }
/* Resources: the org names in card headings are real targets. */
.tr-page .card h2 > a { display: inline-block; padding: 12px 0; margin: -12px 0; } /* 44 px (QC round 3) */
/* THRIVE's creators paragraph, folded after its first sentence. */
/* Suggest a meetup: the optional parts folded. */
.tr-suggest .ev-more > summary { min-height: 44px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; cursor: pointer; font-weight: 700; }
.tr-suggest .ev-more[open] { display: grid; gap: 14px; }
/* The orb on THRIVE pages: 48 px instead of 64 (QC round 2: it covered rows in the thumb zone); it still slides away
   while you scroll down (app.js) and opens the same fan. */
body:has(.tr-page):not(.fan-open) .orb { transform: scale(.75); }
body:has(.tr-page) .orbnav { bottom: calc(10px + var(--safe-b)); }

/* ---------- QC round 3 additions ---------- */
/* Tokens: a deal is sand and rock (green means "open now" on the map, rooms and booths); a plain outlined label. */
.tr-badge.deal { background: var(--tr-sand); color: var(--tr-rock-ink); }   /* 5.79:1 light, 8.02:1 dark */
.tr-badge.plain { border: 1.5px solid var(--line); color: var(--ink-soft); }
/* "What do these tags mean?": one folded line under the list, the plain words inside. */
.tr-key { margin: 6px 0 10px; }
.tr-key > summary { font-size: var(--tr-fs-meta); color: var(--ink-soft); font-weight: 700; }
.tr-key-list { margin: 2px 0 6px; display: grid; gap: 8px; }
.tr-key-list > div { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; align-items: baseline; }
.tr-key-list dt { margin: 0; }
.tr-key-list dd { margin: 0; font-size: var(--tr-fs-meta); color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 420px) { .tr-key-list > div { grid-template-columns: 1fr; } }
/* Speakers list: when each one is on; photos sit level with the name. */
.tr-person .tr-av { margin-top: 2px; }
.tr-person-when { font-size: var(--tr-fs-meta); font-weight: 700; color: var(--tr-rock-ink); }
/* A schedule row that also says the day (a bio's Talk row). */
.tr-row.with-day { grid-template-columns: 96px 1fr; }
.tr-time-d { display: block; font-weight: 600; color: var(--ink-soft); font-size: .875rem; }
/* Emergency: the teal edge now wins over .tr-page .card (look-r2-13 never rendered); calls are real buttons. */
.tr-page .card.tr-emergency { border-color: color-mix(in srgb, var(--care) 45%, var(--line)); border-left: 4px solid var(--care-fill); }
.tr-emergency a.btn { color: #fff; }
.tr-emergency a.btn.ghost { color: var(--ink); }
.tr-emergency .tr-call { margin: 4px 0 8px; font-size: 1.0625rem; font-weight: 800; min-height: 48px; }
.tr-call-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.tr-call-row .btn, .tr-call-venue { min-height: 44px; }
.tr-call-venue { display: flex; justify-content: center; width: 100%; box-sizing: border-box; }
/* Check-in: one Demo box (the pass note inside), then the no-ticket way as a quiet link. */
.tr-pass-note { display: block; margin-top: 4px; font-size: var(--tr-fs-src); }
.tr-remote-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); text-align: left; }
.tr-remote-btn, .tr-share-remote { border-radius: 14px; text-align: left; justify-content: flex-start; line-height: 1.3; padding-block: 10px; white-space: normal; }
.tr-share-remote { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.tr-share-remote svg { flex: none; }
/* Menu: tonight as a quiet third line; the event's own faces. */
.tr-tonight-item { font-size: .95rem; }
.tr-faces { margin: 4px 0 6px; }
.tr-faces-row { list-style: none; margin: 0 -16px; padding: 4px 16px 8px; display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.tr-faces-row::-webkit-scrollbar { display: none; }
.tr-faces-row li { flex: none; }
.tr-faces-row a { display: grid; justify-items: center; gap: 4px; width: 92px; text-align: center; text-decoration: none; color: var(--ink); padding: 4px 0; }
.tr-faces-row .tr-av { width: 64px; height: 64px; }
.tr-faces-row b { font-size: .875rem; line-height: 1.25; }
.tr-faces-row a > span:not(.tr-av) { font-size: .8125rem; color: var(--ink-soft); }
/* Map: what's on stage above the map. Facilities (r182): restrooms, check-in and the quiet room as one row of three
   compact tiles beside the floor switch (they were three buttons that wrapped onto rows of their own). */
.tr-facs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1 1 340px; min-width: 0; max-width: 520px; }
.tr-fac { display: grid; align-content: center; gap: 1px; min-height: 52px; padding: 7px 10px; border-radius: 14px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.tr-fac b { font-size: .9375rem; line-height: 1.2; overflow-wrap: anywhere; }
.tr-fac > span { display: flex; align-items: center; gap: 5px; font-size: .8125rem; line-height: 1.2; color: var(--ink-soft); }
.tr-fac-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tr-ok-ink, #2f7a4f); }
@media (hover: hover) { .tr-fac:hover { border-color: var(--line-strong, var(--ink-soft)); } }
@media (max-width: 699px) { .tr-map-bar .tr-facs { flex-basis: 100%; max-width: none; } }
.tr-live-strip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 48px; margin: 0 0 10px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--tr-live) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tr-live) 35%, var(--line)); }
.tr-live-strip > span:not(.tr-badge) { flex: 1; min-width: 0; font-size: var(--tr-fs-meta); }
.tr-live-strip > .tr-badge { flex: none; }
.tr-live-strip > i { font-style: normal; font-size: 1.4rem; color: var(--ink-soft); }
/* Phones, fitted floor map: labels under 9 px (tm-tiny, measured in views/thrive.js) and the 5 px status pills wait for
   "Zoom in"; the room fills, the legend and the strip above carry the status. */
@media (max-width: 699px) {
  .tr-map-wrap:not(.pz-big):not(.focus) .tm-tiny, .tr-map-wrap:not(.pz-big):not(.focus) .tm-pills { display: none; }
}
/* Talk page: minutes left and a thin progress bar under LIVE. */
.tr-left { display: grid; gap: 6px; margin: 2px 0 8px; font-size: var(--tr-fs-meta); font-weight: 700; color: var(--tr-live); max-width: 420px; }
.tr-prog { display: block; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--tr-live) 16%, var(--surface)); overflow: hidden; }
.tr-prog > i { display: block; height: 100%; background: var(--tr-live-fill); border-radius: inherit; }
/* Room and booth pages on wide screens: card and map side by side (the crop sat alone in a 1000 px card). */
.tr-room-map .tr-map-wrap { margin-top: 10px; }
@media (min-width: 900px) {
  .tr-room-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
}
/* Calendar: the day switch stays in view while the grid scrolls; outlined items' times at full ink. */
@media (max-width: 560px) {
  .tr-cal-pick { position: sticky; top: 46px; z-index: 4; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); margin: 0 -16px; padding: 4px 16px; }
}
.tr-cal-b:not(.filled) .t { color: var(--ink); }
/* Suggest a meetup: the type as one line, its chips folded. */
.tr-suggest .ev-type-line { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
/* THRIVE admin: readable widths on desktop, quieter field labels, Earlier | Later as one segmented control. */
.tr-adm-room { max-width: 760px; }
.tr-adm-in { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); column-gap: 16px; }
.tr-adm-hours .input { flex: 0 1 11em; }
.tr-adm-room .field > span { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.tr-adm-move { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.tr-adm-move .btn { border: 0; border-radius: 0; margin: 0; }
.tr-adm-move .btn + .btn { border-left: 1px solid var(--line); }

/* ---------- Feature batch (11/17) ---------- */
/* Schedule rows: a compact Add to calendar button (44 px target) in a third column, above the row's stretched link. */
.tr-row.with-ics { grid-template-columns: 80px minmax(0, 1fr) 44px; }
.tr-row.with-day.with-ics { grid-template-columns: 96px minmax(0, 1fr) 44px; }
.tr-ics { position: relative; z-index: 1; width: 44px; height: 44px; margin: -6px -4px 0 0; display: inline-grid; place-items: center; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-soft); cursor: pointer; padding: 0; }
.tr-ics .tr-ico { width: 22px; height: 22px; }
.tr-ics:focus-visible { outline: 2px solid var(--halo, var(--tr-rock)); outline-offset: -2px; }
@media (hover: hover) { .tr-ics:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); } }
.tr-row.k-break .tr-ics, .tr-row.k-end .tr-ics { margin-top: -10px; }
.tr-ics-all { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 10px; }
.tr-ics-all .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.tr-ics-all .btn .tr-ico { width: 18px; height: 18px; }
/* The menu's last line: THRIVE admin as a plain link. */
.tr-admin-link { margin: 4px 0 0; font-size: var(--tr-fs-meta, .95rem); }
.tr-admin-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }
/* Getting there & venue: section jumps; sections clear the app bar when jumped to. */
.tr-vjump { margin: 4px 0 6px; }
.tr-vjump .chip { min-height: 44px; }
.tr-vsec { scroll-margin-top: calc(var(--tr-top, 65px) + 64px); }
.tr-vsec .card h3 { margin: 0 0 4px; }
/* Help: Who to find (Message / Not on MoNomo yet, a third line under the role) and Ask for help. */
.tr-committee li { align-items: flex-start; }
.tr-committee li > span { min-width: 0; }
.tr-committee .tr-who-msg { justify-self: start; margin-top: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.tr-who-none { font-size: .85rem; color: var(--ink-soft); font-style: italic; }
.tr-ask-form textarea { min-height: 88px; resize: vertical; }
.tr-ask-err:empty { display: none; }
/* THRIVE admin > Who to find */
.tr-adm-who .tr-adm-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.tr-adm-who .tr-adm-main > span:first-child { display: grid; }
.tr-adm-whoform { align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tr-adm-whoform .field { min-width: 12em; margin: 0; }
.tr-adm-whoform .btn { min-height: 44px; }

/* =====================================================================================================================
   DUSK TO STARS (11/17, the operator's pick: web/thrive-proto/dusk-to-stars.html). The sky follows the event clock.
   views/thrive.js sets data-tsky="morning|afternoon|golden|night" on <html> while a THRIVE page is open (thrive-sky.js
   phaseAt); the event page's window carries its own data-tsky. Morning is bright and airy, the afternoon gold, golden
   hour glows over the mesas, and from 6:30 PM it is deep indigo with twinkling stars. Dark mode is always the night
   sky, but the horizon keeps glowing the colour of the hour (--tr-hz). Every colour below is a token; the app's own
   tokens (--bg, --surface, --ink...) are re-pointed while THRIVE is open, so the header, sheets and orb follow too.
   Contrast (AA or better): body ink on paper 13:1+, soft ink on paper 7:1+, soft on night cards 9:1.
   ===================================================================================================================== */
:root {
  --tr-serif: "Palatino Linotype", "Book Antiqua", Palatino, P052, "URW Palladio L", Georgia, serif;
  --tr-geo: "Century Gothic", "URW Gothic", "Avenir Next", Futura, "Trebuchet MS", sans-serif;
  --tr-sans: system-ui, -apple-system, "Segoe UI", Ubuntu, "Noto Sans", Roboto, sans-serif;
  --tr-fs-meta: 1rem; --tr-fs-badge: .8125rem; --tr-fs-src: .9375rem; /* Dusk: meta lines up to 16 px, badges 13 px */
}

/* ---------- Light phases ---------- */
html[data-tsky="morning"], [data-tsky="morning"] {
  --bg: #fbf7ef; --surface: #ffffff; --surface-2: #f1e9dc; --ink: #1d1630; --ink-soft: #4b4262; --line: rgba(29,22,48,.13); --tr-line-strong: rgba(29,22,48,.3);
  --tr-sky1: #6fb0e2; --tr-sky2: #b6daf1; --tr-sky3: #fde3bd; --tr-glow: rgba(255,226,170,.7); --tr-sunc: #fff6d6; --tr-band: #cfe6f5;
  --tr-m1: #e3ae90; --tr-m2: #c86d46; --tr-m3: #933b1b;
  --tr-hero-ink: #1d1630; --tr-hero-kick: #3b2a55; --tr-hero-shadow: none; --tr-thrive: linear-gradient(#8f2f12, #8f2f12); --tr-ring: rgba(59,42,85,.3);
  --tr-tile-tint: color-mix(in srgb, #b6daf1 55%, #fff);
}
html[data-tsky="afternoon"], [data-tsky="afternoon"] {
  --bg: #fffaf2; --surface: #ffffff; --surface-2: #f5ecdd; --ink: #221628; --ink-soft: #4f4256; --line: rgba(34,22,40,.13); --tr-line-strong: rgba(34,22,40,.3);
  --tr-sky1: #5a9fd6; --tr-sky2: #a8cde6; --tr-sky3: #f6cf8e; --tr-glow: rgba(255,206,130,.72); --tr-sunc: #fff3c8; --tr-band: #f5e2bf;
  --tr-m1: #dc9a72; --tr-m2: #b9582f; --tr-m3: #873216;
  --tr-hero-ink: #1d1630; --tr-hero-kick: #2e2147; --tr-hero-shadow: none; --tr-thrive: linear-gradient(#8f2f12, #8f2f12); --tr-ring: rgba(59,42,85,.3);
  --tr-tile-tint: color-mix(in srgb, #f6cf8e 45%, #fff);
}
html[data-tsky="golden"], [data-tsky="golden"] {
  --bg: #fff5e8; --surface: #fffdf9; --surface-2: #f6e6d2; --ink: #24140f; --ink-soft: #573f33; --line: rgba(60,25,10,.14); --tr-line-strong: rgba(60,25,10,.32);
  --tr-sky1: #4e2445; --tr-sky2: #b8502f; --tr-sky3: #f7b664; --tr-glow: rgba(255,190,110,.75); --tr-sunc: #fff1c4; --tr-band: #f7cfa0;
  --tr-m1: #c0623d; --tr-m2: #8f3a1a; --tr-m3: #5a2216;
  --tr-hero-ink: #fff; --tr-hero-kick: #ffe9c4; --tr-hero-shadow: 0 1px 10px rgba(40,10,30,.65); --tr-scrim: linear-gradient(180deg, rgba(40,10,30,.28), rgba(40,10,30,.12) 70%, transparent);
  --tr-ring: rgba(255,240,210,.45); --tr-tile-tint: color-mix(in srgb, #f7b664 40%, #fffdf9);
}
html[data-tsky], [data-tsky] {
  --tr-accent: #b8461f; --tr-accent-ink: #9a3a17; --tr-chip: #fff;
  --tr-sun-d: block; --tr-stars-d: none; --tr-m1s: transparent; --tr-m2s: transparent;
  --tr-glow-bg: radial-gradient(ellipse 50% 60% at 50% 100%, var(--tr-glow), transparent 70%);
  --tr-track: linear-gradient(90deg, #f7b664, #e9894a); --tr-knob: radial-gradient(circle, #fff6d6 0 40%, #f7b664 42%);
  --tr-thrive-gold: linear-gradient(100deg, #ffc35a 0%, #ffe3a0 30%, #fffaf0 48%, #ffe3a0 62%, #ffb547 100%);
  --tr-strata: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='36'><path d='M0 9 Q65 3 130 9 T260 9 M0 21 Q65 15 130 21 T260 21 M0 31 Q65 27 130 31 T260 31' fill='none' stroke='%23b8461f' stroke-opacity='.22' stroke-width='1.1'/></svg>");
  --tr-card-shadow: 0 16px 34px -22px rgba(30,15,40,.45);
}
html[data-tsky="golden"], [data-tsky="golden"] { --tr-thrive: var(--tr-thrive-gold); }
/* The hour's colour on the horizon: the glow under a night sky (dark mode, or after dusk). */
html[data-tsky="morning"], [data-tsky="morning"] { --tr-hz: rgba(150,200,240,.6); --tr-hz2: rgba(110,140,220,.3); }
html[data-tsky="afternoon"], [data-tsky="afternoon"] { --tr-hz: rgba(255,200,120,.62); --tr-hz2: rgba(200,120,90,.3); }
html[data-tsky="golden"], [data-tsky="golden"] { --tr-hz: rgba(255,140,80,.8); --tr-hz2: rgba(200,80,110,.4); }
html[data-tsky="night"], [data-tsky="night"] { --tr-hz: rgba(255,130,80,.55); --tr-hz2: rgba(150,60,120,.3); }

/* ---------- Night: after dusk, and always in dark mode ---------- */
html[data-tsky="night"], [data-tsky="night"], :root[data-theme="dark"][data-tsky], :root[data-theme="dark"] [data-tsky] {
  --bg: #0b0e2e; --surface: #1a1e52; --surface-2: #252a68; --ink: #f7f2e8; --ink-soft: #cbc6e8; --line: rgba(255,255,255,.15); --tr-line-strong: rgba(255,255,255,.36);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 22px rgb(0 0 0 / .35); color-scheme: dark;
  --danger: #ff6b55; --care: #6fd1c4; --ok: #6fcf97; --halo-ink: #8cc2ff; --brand-ink: #f9ebd0;
  --tr-rock: #ff9b6e; --tr-rock-ink: #ffab85; --tr-rock-fill: #b8461f; --tr-sand: #3a2440; --tr-live: #ff6a4d; --tr-live-fill: #c23a28; --tr-ok-ink: #6fcf97;
  --tr-draft: #b9b2ff; --tr-dusk-line: #d99ab4; --tm-live-tint: #3b2320;
  --tr-sky1: #04061c; --tr-sky2: #121852; --tr-sky3: #33277a; --tr-sunc: #fff; --tr-band: #1d2366;
  --tr-m1: #2c1f55; --tr-m2: #1b1339; --tr-m3: #0e0a24; --tr-m1s: rgba(255,170,110,.55); --tr-m2s: rgba(255,150,100,.3);
  --tr-hero-ink: #f7f2e8; --tr-hero-kick: #ffe2a8; --tr-hero-shadow: 0 1px 10px rgba(0,0,0,.55); --tr-scrim: none; --tr-thrive: var(--tr-thrive-gold); --tr-ring: rgba(255,240,210,.42);
  --tr-accent: #ffc35a; --tr-accent-ink: #ffd27a; --tr-chip: #1a1e52;
  --tr-sun-d: none; --tr-stars-d: block;
  --tr-glow-bg: radial-gradient(ellipse 62% 38% at 50% 74%, var(--tr-hz), var(--tr-hz2) 42%, rgba(90,50,150,.12) 68%, transparent 82%);
  --tr-track: linear-gradient(90deg, #6b2f4a, #8a6cf0); --tr-knob: radial-gradient(circle, #fff 0 35%, #c9b8ff 40%);
  --tr-strata: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='36'><path d='M0 9 Q65 3 130 9 T260 9 M0 21 Q65 15 130 21 T260 21 M0 31 Q65 27 130 31 T260 31' fill='none' stroke='%23ffd27a' stroke-opacity='.16' stroke-width='1.1'/></svg>");
  --tr-tile-tint: #2b2470; --tr-card-shadow: 0 16px 40px -20px #000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-tsky], :root:not([data-theme="light"]) [data-tsky] {
    --bg: #0b0e2e; --surface: #1a1e52; --surface-2: #252a68; --ink: #f7f2e8; --ink-soft: #cbc6e8; --line: rgba(255,255,255,.15); --tr-line-strong: rgba(255,255,255,.36);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 22px rgb(0 0 0 / .35); color-scheme: dark;
    --danger: #ff6b55; --care: #6fd1c4; --ok: #6fcf97; --halo-ink: #8cc2ff; --brand-ink: #f9ebd0;
    --tr-rock: #ff9b6e; --tr-rock-ink: #ffab85; --tr-rock-fill: #b8461f; --tr-sand: #3a2440; --tr-live: #ff6a4d; --tr-live-fill: #c23a28; --tr-ok-ink: #6fcf97;
    --tr-draft: #b9b2ff; --tr-dusk-line: #d99ab4; --tm-live-tint: #3b2320;
    --tr-sky1: #04061c; --tr-sky2: #121852; --tr-sky3: #33277a; --tr-sunc: #fff; --tr-band: #1d2366;
    --tr-m1: #2c1f55; --tr-m2: #1b1339; --tr-m3: #0e0a24; --tr-m1s: rgba(255,170,110,.55); --tr-m2s: rgba(255,150,100,.3);
    --tr-hero-ink: #f7f2e8; --tr-hero-kick: #ffe2a8; --tr-hero-shadow: 0 1px 10px rgba(0,0,0,.55); --tr-scrim: none; --tr-thrive: var(--tr-thrive-gold); --tr-ring: rgba(255,240,210,.42);
    --tr-accent: #ffc35a; --tr-accent-ink: #ffd27a; --tr-chip: #1a1e52;
    --tr-sun-d: none; --tr-stars-d: block;
    --tr-glow-bg: radial-gradient(ellipse 62% 38% at 50% 74%, var(--tr-hz), var(--tr-hz2) 42%, rgba(90,50,150,.12) 68%, transparent 82%);
    --tr-track: linear-gradient(90deg, #6b2f4a, #8a6cf0); --tr-knob: radial-gradient(circle, #fff 0 35%, #c9b8ff 40%);
    --tr-strata: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='36'><path d='M0 9 Q65 3 130 9 T260 9 M0 21 Q65 15 130 21 T260 21 M0 31 Q65 27 130 31 T260 31' fill='none' stroke='%23ffd27a' stroke-opacity='.16' stroke-width='1.1'/></svg>");
    --tr-tile-tint: #2b2470; --tr-card-shadow: 0 16px 40px -20px #000;
  }
}
/* After dusk in light mode the whole screen goes to night: the header's M turns cream and the floor map goes dark. */
html[data-tsky="night"] .mark-light { display: none; }
html[data-tsky="night"] .mark-dark { display: block; }
html[data-tsky="night"] .tm-map { --tm-floor: #161d29; --tm-room: #222c3d; --tm-wall: #6f7a8e; --tm-room-hover: color-mix(in srgb, var(--tr-sun) 22%, #222c3d); --tm-accent: #e9894a; }

/* The page itself: warm paper by day; a night sky with a faint field of stars after dusk. */
html[data-tsky] body { background: var(--bg); color: var(--ink); }
html[data-tsky="night"] body, :root[data-theme="dark"][data-tsky] body {
  background: radial-gradient(1.2px 1.2px at 23px 41px, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 141px 87px, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 77px 160px, #ffe2a8aa 50%, transparent 51%), radial-gradient(1px 1px at 188px 19px, #fff6 50%, transparent 51%), var(--bg);
  background-size: 210px 210px, 210px 210px, 210px 210px, 210px 210px, auto;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-tsky] body {
    background: radial-gradient(1.2px 1.2px at 23px 41px, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 141px 87px, #fff7 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 77px 160px, #ffe2a8aa 50%, transparent 51%), radial-gradient(1px 1px at 188px 19px, #fff6 50%, transparent 51%), var(--bg);
    background-size: 210px 210px, 210px 210px, 210px 210px, 210px 210px, auto;
  }
}

/* ---------- The sky (thrive-sky.js skyHtml) ---------- */
.tr-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--tr-sky1) 0%, var(--tr-sky2) 58%, var(--tr-sky3) 100%); }
.tr-sky::before { content: ""; position: absolute; inset: 0; background: var(--tr-scrim, none); }
.tr-sun { display: var(--tr-sun-d); position: absolute; left: var(--sx); top: var(--sy); width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: radial-gradient(circle, var(--tr-sunc) 0 34%, rgba(255,226,160,.75) 36%, rgba(255,200,120,.25) 52%, transparent 70%); animation: tr-sunsink 14s ease-in-out infinite alternate; }
@keyframes tr-sunsink { to { transform: translateY(8px) scale(1.04); } }
.tr-glow { position: absolute; left: -30%; right: -30%; bottom: 0; height: 85%; background: var(--tr-glow-bg); animation: tr-breathe-glow 7s ease-in-out infinite; }
@keyframes tr-breathe-glow { 50% { opacity: .78; } }
.tr-mesa { position: absolute; left: 0; bottom: -1px; width: 100%; height: 92px; display: block; }
.tr-mesa .m1 { fill: var(--tr-m1); stroke: var(--tr-m1s); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tr-mesa .m2 { fill: var(--tr-m2); stroke: var(--tr-m2s); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tr-mesa .m3 { fill: var(--tr-m3); }
/* Stars: two tiled layers that twinkle out of step, three four-point sparks, a shooting star now and then. */
.tr-stars { display: var(--tr-stars-d); position: absolute; inset: 0; }
.tr-stars::before, .tr-stars::after { content: ""; position: absolute; inset: 0; }
.tr-stars::before { background-image: radial-gradient(1.3px 1.3px at 23px 41px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 141px 87px, #fff6dc 50%, transparent 51%),
    radial-gradient(1.7px 1.7px at 77px 160px, #ffe2a8 50%, transparent 51%), radial-gradient(1px 1px at 188px 19px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 52px 119px, #dfe4ff 50%, transparent 51%), radial-gradient(1px 1px at 116px 206px, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 170px 140px, #fff6dc 50%, transparent 51%);
  background-size: 210px 230px; animation: tr-tw 4.6s ease-in-out infinite; }
.tr-stars::after { background-image: radial-gradient(2px 2px at 61px 33px, #fff6dc 50%, transparent 51%), radial-gradient(1.6px 1.6px at 233px 121px, #dfe4ff 50%, transparent 51%),
    radial-gradient(2.4px 2.4px at 150px 220px, #ffe2a8 50%, transparent 51%), radial-gradient(1.4px 1.4px at 20px 180px, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 270px 60px, #fff 50%, transparent 51%);
  background-size: 290px 270px; animation: tr-tw 6.8s 1.4s ease-in-out infinite; filter: drop-shadow(0 0 2px #ffe2a8); }
@keyframes tr-tw { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.tr-spark { position: absolute; left: var(--x); top: var(--y); width: 16px; height: 16px; background: #fff6dc; filter: drop-shadow(0 0 5px #ffd27a);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: tr-spark 4.2s var(--d) ease-in-out infinite; }
@keyframes tr-spark { 0%, 100% { transform: scale(.55) rotate(0); opacity: .6; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.tr-shoot { position: absolute; top: 9%; left: -40%; width: 130px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff6dc 80%, #fff); transform: rotate(16deg); animation: tr-shoot 11s 3s linear infinite; }
@keyframes tr-shoot { 0% { transform: translate(0,0) rotate(16deg); opacity: 0; } 1.5% { opacity: 1; } 8% { transform: translate(560px,160px) rotate(16deg); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Page chrome ---------- */
.tr-page { position: relative; isolation: isolate; font-size: 1.0625rem; }
/* The band of sky every page opens under; it fades into the paper. */
.tr-pagesky { position: absolute; z-index: -1; top: -16px; left: -16px; right: -16px; height: 300px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.tr-pagesky .tr-sky { background: linear-gradient(180deg, var(--tr-band) 0%, color-mix(in srgb, var(--tr-band) 45%, var(--bg)) 55%, var(--bg) 100%); }
.tr-pagesky .tr-sky::before { display: none; }
.tr-pagesky .tr-glow { height: 60%; opacity: .55; }
.tr-pagesky .tr-sun { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.tr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tr-top { position: relative; z-index: 4; }
.tr-back { font-size: 1.0625rem; color: var(--ink); }
.tr-back span { color: var(--ink); font-weight: 700; font-size: 1.0625rem; }
.tr-clock { gap: 8px; padding: 4px 14px 4px 10px; font-size: 1rem; color: var(--ink); border: 1px solid var(--tr-line-strong);
  background: color-mix(in srgb, var(--tr-chip) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.tr-clock b { color: var(--ink); }
.tr-clock-k { font-size: .9375rem; }
.tr-clock.demo { border: 1.5px dashed var(--tr-draft); color: var(--tr-draft); }
.tr-clock-g { width: 34px; height: 20px; overflow: visible; flex: none; }
.pill-arc { fill: none; stroke: var(--ink-soft); stroke-width: 1.4; stroke-dasharray: 2 2.4; }
.pill-hz { stroke: var(--ink-soft); stroke-width: 1.3; }
.pill-sun { display: var(--tr-sun-d); fill: #f2a23a; stroke: #fff; stroke-width: 1; animation: tr-pillsun 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pill-star { display: var(--tr-stars-d); fill: var(--tr-accent); animation: tr-spark 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tr-pillsun { 50% { transform: scale(1.25); } }
.tr-nav { background: color-mix(in srgb, var(--bg) 80%, transparent); }
.tr-nav a { font-size: 1rem; color: var(--ink); }
.tr-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: 0 6px 14px -8px rgba(30,15,40,.8); }
.tr-h1 { font-family: var(--tr-serif); font-weight: 700; font-size: clamp(1.95rem, 6.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.005em; }
.tr-sub { color: var(--ink-soft); font-size: 1.0625rem; }
.tr-page .section-title, .tr-group-h { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; font: 700 1.25rem/1.2 var(--tr-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.tr-page .section-title::before, .tr-group-h::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--tr-accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.tr-ico { stroke: var(--tr-accent); }
.tr-meta { color: var(--ink-soft); }
.tr-page .card { border-radius: 20px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tr-card-shadow); }
.tr-page .card h2 { font: 700 1.1875rem/1.25 var(--tr-serif); }
.tr-page .btn.primary { background: linear-gradient(180deg, #ffe08f, #f7b64c); border-color: #f0a83e; color: #2a1600; }
.tr-page .btn.ghost { border-color: var(--tr-line-strong); color: var(--ink); }
.tr-page .btn.small { font-size: 1rem; }
.tr-page .chip { font-size: 1rem; }
.tr-page .segments { background: color-mix(in srgb, var(--ink) 7%, var(--bg)); border: 1px solid var(--line); }
.tr-page .segments a { font-size: 1rem; color: var(--ink); font-weight: 800; }
.tr-page .segments a[aria-current="page"], .tr-days button[aria-pressed="true"], .tr-jump button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 6px 14px -8px rgba(30,15,40,.8); }
.tr-days button, .tr-jump button { font-size: 1rem; color: var(--ink); }
.tr-days a span, .tr-days button span { opacity: .85; }
.tr-tile span, .tr-list-row > span > span, .tr-legend, .tr-room-now { font-size: 1rem; }
.tr-draft-note { font-size: .9375rem; }
:is(.tr-page, .tr-portal) .tr-badge { font-family: var(--tr-geo); letter-spacing: .1em; padding: 4px 10px; }

/* ---------- Menu: the hero sky, Right now, tiles, faces, list ---------- */
.tr-hero, .tr-hero.compact { position: relative; isolation: isolate; overflow: hidden; margin: 0 -16px 0; padding: 22px 20px 108px; border-radius: 0; color: var(--tr-hero-ink); text-shadow: var(--tr-hero-shadow); }
.tr-hero .tr-sky { z-index: -1; }
.tr-hero-sky { display: none; }
.tr-kicker { font: 700 .875rem/1.35 var(--tr-geo); letter-spacing: .12em; color: var(--tr-hero-kick); opacity: 1; }
.tr-hero h1, .tr-hero.compact h1 { margin: 8px 0 4px; font: 700 clamp(2.1rem, 8vw, 3.2rem)/1.04 var(--tr-serif); letter-spacing: -.01em; }
.tr-hero h1 span { font-family: var(--tr-geo); font-weight: 700; letter-spacing: .12em; font-size: .92em; background: var(--tr-thrive); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: tr-glint 7s ease-in-out infinite; }
@keyframes tr-glint { 0%, 60% { background-position: 100% 0; } 85%, 100% { background-position: 0% 0; } }
.tr-tag, .tr-hero.compact .tr-tag { margin: 4px 0 12px; font: italic 1.25rem/1.3 var(--tr-serif); opacity: 1; }
.tr-in { font-size: 1.0625rem; text-shadow: var(--tr-hero-shadow); gap: 4px 10px; }
.tr-in .tr-link { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.tr-check { width: 28px; height: 28px; background: #2f8a5a; color: #fff; text-shadow: none; }
.tr-hero + .card, .tr-hero + .tr-now { position: relative; z-index: 3; margin-top: -26px; }
.tr-now { padding: 18px 18px 8px; border-radius: 22px; }
.tr-page .tr-now h2 { font: 700 .875rem/1.3 var(--tr-geo); letter-spacing: .14em; text-transform: uppercase; color: var(--tr-accent-ink); margin: 0 0 10px; }
.tr-now-item, .tr-next-item { padding: 14px 0; gap: 6px 10px; }
.tr-now-item.lead { display: grid; gap: 6px; padding-top: 4px; }
.tr-now-item.lead .tr-badges { gap: 6px; }
.tr-now-t { font: 700 clamp(1.4rem, 5vw, 1.6rem)/1.18 var(--tr-serif); }
.tr-track { position: relative; display: block; height: 8px; margin: 8px 9px 2px 0; border-radius: 8px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.tr-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: 8px; background: var(--tr-track); }
.tr-track i::after { content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--tr-knob); box-shadow: 0 0 0 4px rgba(247,182,76,.25); animation: tr-pulse2 2.4s ease-in-out infinite; }
@keyframes tr-pulse2 { 50% { box-shadow: 0 0 0 9px rgba(247,182,76,0); } }
.tr-now-left { font-weight: 700; font-size: 1rem; }
.tr-next-item b, .tr-now-item b { font-size: 1.0625rem; line-height: 1.3; }
.tr-tonight-item { font-size: 1rem; }
.tr-badge.tonight { background: #1d2160; color: #ffd27a; border-color: #1d2160; }
.tr-badge.next { border-color: var(--tr-line-strong); color: var(--ink); }
.tr-tiles { gap: 12px; }
.tr-tile { border-radius: 20px; padding: 16px; min-height: 124px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 24px -20px rgba(30,15,40,.6); }
.tr-tile b { font-size: 1.125rem; line-height: 1.25; }
.tr-tile .tr-ico { width: 30px; height: 30px; }
.tr-tile.feature { min-height: 140px; padding-bottom: 30px; background: var(--tr-strata) right bottom -14px / 260px 36px repeat-x, linear-gradient(165deg, var(--tr-tile-tint) 0%, var(--surface) 70%); }
@media (max-width: 420px) { .tr-tile { padding: 14px; min-height: 116px; } .tr-tiles { gap: 10px; } }
.tr-faces-row { gap: 14px; }
.tr-faces-row a { width: 100px; }
.tr-faces-row .tr-av { width: 76px; height: 76px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #f7b664, 0 6px 16px -6px rgba(120,40,10,.6); margin-bottom: 6px; }
.tr-faces-row li.on .tr-av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--tr-live), 0 0 0 11px rgba(194,58,40,.18); animation: tr-ring 2.4s ease-in-out infinite; }
@keyframes tr-ring { 50% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--tr-live), 0 0 0 14px rgba(194,58,40,0); } }
.tr-faces-row b { font-size: 1rem; }
.tr-faces-row a > span:not(.tr-av) { font-size: .9375rem; font-weight: 700; color: var(--ink-soft); }
.tr-faces-row li.on a > span:not(.tr-av) { color: var(--tr-live); }
.tr-list { border-radius: 20px; background: var(--surface); box-shadow: var(--tr-card-shadow); }
.tr-list-row { min-height: 66px; padding: 10px 16px; }
.tr-list-row b { font-size: 1.125rem; }
.tr-list-row > i { font-size: 1.75rem; }

/* Wide screens: the hero skies sit in the column as rounded windows. */
@media (min-width: 700px) { .tr-hero, .tr-hero.compact, .tr-talk-hero { margin-left: 0; margin-right: 0; border-radius: 28px; } }
@media (min-width: 700px) { .tr-pagesky { -webkit-mask-image: linear-gradient(#000 40%, transparent), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(#000 40%, transparent), linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; } }

/* ---------- Schedule: the day's sky as the timeline's thread ---------- */
.tr-sched .tr-row { --tc: 80px; border-top: 0; padding: 8px 0; }
.tr-sched .tr-row.with-day { --tc: 96px; }
.tr-sched .tr-row .tr-what { padding-left: 24px; }
@media (max-width: 480px) {
  .tr-sched .tr-row { --tc: 70px; gap: 8px; grid-template-columns: var(--tc) minmax(0, 1fr); }
  .tr-sched .tr-row.with-ics { grid-template-columns: var(--tc) minmax(0, 1fr) 44px; }
  .tr-sched .tr-row.with-day { --tc: 88px; }
  .tr-sched .tr-row .tr-time { font-size: .9375rem; }
  .tr-sched .tr-row.k-talk .tr-what, .tr-sched .tr-row.k-social .tr-what, .tr-sched .tr-row.is-live .tr-what { padding: 12px; }
  .tr-sched .tr-row .tr-ics { margin-right: -8px; }
}
.tr-sched .tr-row::before { content: ""; position: absolute; left: calc(var(--tc) + 9px); top: 17px; width: 14px; height: 14px; border-radius: 50%; z-index: 1;
  background: var(--c1); border: 3px solid var(--bg); box-shadow: 0 0 0 1.5px var(--c1), 0 0 10px var(--c1); box-sizing: border-box; }
.tr-sched .tr-row::after { content: ""; position: absolute; left: calc(var(--tc) + 14.5px); top: 32px; bottom: -14px; width: 3px; border-radius: 3px; background: linear-gradient(var(--c1), var(--c2)); }
.tr-sched .tr-row:last-child::after { display: none; }
.tr-sched .tr-row.k-talk .tr-what, .tr-sched .tr-row.k-social .tr-what, .tr-sched .tr-row.is-live .tr-what {
  margin-left: 24px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 22px -20px rgba(30,15,40,.7); }
.tr-sched .tr-row.k-talk .tr-title { font-family: var(--tr-serif); font-size: 1.1875rem; }
.tr-sched .tr-row.is-live { background: none; margin-left: 0; padding-left: 0; }
.tr-sched .tr-row.is-live .tr-what { border: 2px solid var(--tr-live); box-shadow: 0 0 0 5px rgba(194,58,40,.1), 0 14px 26px -18px rgba(194,58,40,.6); }
.tr-sched .tr-row.is-live::before { width: 18px; height: 18px; top: 15px; left: calc(var(--tc) + 7px); animation: tr-ring2 2.2s ease-in-out infinite; }
@keyframes tr-ring2 { 50% { box-shadow: 0 0 0 1.5px var(--c1), 0 0 22px var(--c1); } }
.tr-sched .tr-row.is-past::before { background: var(--bg); }
.tr-sched .tr-row.is-past .tr-what { box-shadow: none; background: transparent; }
.tr-time { font-size: 1rem; padding-top: 8px; text-align: right; }
.tr-sched .tr-row .tr-ics { margin-top: 2px; }

/* ---------- A talk: its own sky ---------- */
.tr-talk-hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 -16px 14px; padding: 18px 20px 104px; color: var(--tr-hero-ink); text-shadow: var(--tr-hero-shadow); }
.tr-talk-hero .tr-sky { z-index: -1; }
.tr-talk-hero .tr-h1 { margin: 10px 0 8px; font-size: clamp(1.9rem, 6.5vw, 2.6rem); }
.tr-talk-hero .tr-talk-when { margin: 0; font-size: 1.125rem; }
.tr-page .tr-talk-hero a, .tr-talk-hero .tr-dr { color: inherit; }
.tr-talk-hero .tr-badge, .tr-talk-hero .tr-org { text-shadow: none; }
.tr-talk-hero .tr-badge.ex { background: #fff6e4; color: #7a2c12; }
.tr-talk-hero .tr-org { background: #fff6e4; color: #7a2c12; border-color: #7a2c12; }
.tr-talk-hero .tr-badges { margin: 0; }
.tr-talk-acts { margin: 6px 0 4px; flex-wrap: wrap; }
.tr-talk .tr-person { padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--tr-card-shadow); }
.tr-talk .tr-person .tr-av, .tr-bio-head .tr-av.big { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px #f7b664, 0 0 0 7px rgba(184,70,31,.35); }
.tr-talk .tr-person .tr-av { width: 64px; height: 64px; }
.tr-talk .tr-person b { font: 700 1.25rem/1.2 var(--tr-serif); }

/* ---------- People, booths, calendar, help, venue ---------- */
.tr-person { border-top-color: var(--line); }
.tr-person b { font-size: 1.0625rem; }
.tr-booths li { border-radius: 18px; box-shadow: var(--tr-card-shadow); }
.tr-booth-no { background: var(--tr-sand); }
.tr-cal-col { border-radius: 14px; }
.tr-cal-b.filled { background: linear-gradient(160deg, var(--tr-grad-a), var(--tr-grad-b)); }
.tr-page .card.tr-emergency { border: 1.5px solid rgba(255,122,102,.55); border-left: 4px solid var(--care-fill); }
.tr-emergency .tr-call { min-height: 60px; font-size: 1.3125rem; border-radius: 999px; }
.tr-call-row .btn, .tr-call-venue { border-radius: 999px; }
.tr-places li > b { font: 700 1.1875rem/1.25 var(--tr-serif); }
.tr-qr { background: linear-gradient(90deg, var(--tr-sky1), var(--tr-sky2) 50%, var(--tr-sky3)) top / 100% 8px no-repeat, #fff; border-radius: 24px; }
.tr-qr svg { color: #10141c; }
.tr-code { color: var(--ink); }
.tr-demo-box, .tr-draft-note { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.tr-map-wrap { border-radius: 20px; box-shadow: var(--tr-card-shadow); }

/* ---------- The event page's window (thrive-sky.js entryCard) and the PIN screen ---------- */
.tr-portal { max-width: 440px; margin: 18px auto; color: var(--ink); }
.tr-arch { position: relative; isolation: isolate; height: 420px; overflow: hidden; color: var(--tr-hero-ink);
  border-radius: min(calc(50vw - 16px), 220px) min(calc(50vw - 16px), 220px) 30px 30px;
  box-shadow: 0 28px 50px -24px rgba(107,47,74,.7), 0 0 0 1px rgba(255,255,255,.25) inset; }
.tr-arch .tr-sky { z-index: -1; }
.tr-arch.small { height: 300px; }
.tr-arch-ring { position: absolute; left: 50%; top: 34px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%; border: 1px dashed var(--tr-ring); animation: tr-spin 90s linear infinite; }
.tr-arch-ring::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; border: 1px solid var(--tr-ring); opacity: .55; }
.tr-arch-ring::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; background: #ffe2a8;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 4px #ffd27a); }
.tr-arch.small .tr-arch-ring { width: 220px; height: 220px; margin-left: -110px; top: 26px; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
.tr-arch-copy { position: absolute; z-index: 2; top: 88px; left: 0; right: 0; padding: 0 12px; text-align: center; text-shadow: var(--tr-hero-shadow); }
.tr-arch.small .tr-arch-copy { top: 60px; }
.tr-eyebrow { margin: 0 0 6px; font: 700 .875rem/1.35 var(--tr-geo); letter-spacing: .14em; text-transform: uppercase; color: var(--tr-hero-kick); }
.tr-display { margin: 0; font: italic 600 2.375rem/1.02 var(--tr-serif); }
.tr-display span { display: block; font: normal 700 3.875rem/1.05 var(--tr-geo); letter-spacing: .1em; padding-left: .1em; margin-top: 2px; text-shadow: none;
  background: var(--tr-thrive); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tr-glint 7s ease-in-out infinite; }
.tr-arch.small .tr-display { font-size: 1.875rem; }
.tr-arch.small .tr-display span { font-size: 3rem; }
.tr-arch-tag { margin: 10px 0 0; font: italic 1.3125rem/1.3 var(--tr-serif); }
.tr-enter-card { position: relative; z-index: 3; margin: -46px 10px 0; padding: 22px 20px 20px; text-align: center; border-radius: 26px;
  background: var(--tr-strata) bottom center / 260px 36px repeat-x, var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(60,20,10,.45); }
.tr-enter-h { margin: 0; font: 700 .875rem var(--tr-geo); letter-spacing: .14em; text-transform: uppercase; color: var(--tr-accent-ink); }
.tr-enter-p { margin: 6px 0 16px; font-size: 1.125rem; line-height: 1.4; color: var(--ink); }
.tr-enter { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; border-radius: 999px;
  font: 800 1.3125rem var(--tr-sans); color: #2a1600; text-decoration: none; letter-spacing: .01em;
  background: linear-gradient(180deg, #ffe08f 0%, #f7b64c 55%, #ee9a36 100%); box-shadow: 0 12px 26px -10px rgba(220,110,40,.9), inset 0 1px 0 #fff8; animation: tr-halo 3s ease-out infinite; }
.tr-enter svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: tr-nudge 3s ease-in-out infinite; }
.tr-enter::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg); animation: tr-sweep 4.5s 1s ease-in-out infinite; }
.tr-enter:focus-visible { outline: 3px solid var(--halo); outline-offset: 3px; }
@keyframes tr-halo { 0% { box-shadow: 0 0 0 0 rgba(247,182,76,.55), 0 12px 26px -10px rgba(220,110,40,.9), inset 0 1px 0 #fff8; }
  70%, 100% { box-shadow: 0 0 0 16px rgba(247,182,76,0), 0 12px 26px -10px rgba(220,110,40,.9), inset 0 1px 0 #fff8; } }
@keyframes tr-sweep { 0%, 55% { left: -80px; } 85%, 100% { left: 110%; } }
@keyframes tr-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(4px); } }
.tr-enter-note { margin: 14px 0 0; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
:root[data-theme="dark"] .tr-arch, [data-tsky="night"] .tr-arch, html[data-tsky="night"] .tr-arch { box-shadow: 0 0 0 1px rgba(255,210,122,.35), 0 0 60px -10px rgba(110,90,220,.55), 0 30px 60px -20px #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-arch { box-shadow: 0 0 0 1px rgba(255,210,122,.35), 0 0 60px -10px rgba(110,90,220,.55), 0 30px 60px -20px #000; } }

.tr-pin { max-width: 440px; margin: 0 auto; text-align: center; }
.tr-pin-card { position: relative; z-index: 3; margin: -40px 10px 0; padding: 22px 18px 16px; border-radius: 26px;
  background: var(--tr-strata) bottom center / 260px 36px repeat-x, var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(60,20,10,.45); }
.tr-pin .tr-h1 { font-size: clamp(1.6rem, 6vw, 2rem); margin: 0 0 6px; }
.tr-pin-lead { margin: 0 0 4px; font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.45; }
.tr-pin-form { margin: 14px 0 0; }
.tr-pin-field { position: relative; width: min(272px, 100%); height: 70px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tr-pin-box { display: grid; place-items: center; border-radius: 16px; border: 2px solid var(--tr-line-strong); background: var(--bg); font: 800 2rem var(--tr-geo); color: var(--ink); transition: border-color .15s, transform .15s; }
.tr-pin-box.on { border-color: var(--tr-accent); transform: translateY(-2px); }
.tr-pin-field:focus-within .tr-pin-box.cur { outline: 3px solid var(--halo); outline-offset: 2px; }
.tr-pin-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; color: transparent; background: transparent; caret-color: transparent; cursor: text; }
.tr-pin-msg { min-height: 1.6em; margin: 10px 0 6px; font-weight: 700; font-size: 1.0625rem; }
.tr-pin-msg.bad { color: var(--tr-live); }
.tr-pin-msg.ok { color: var(--tr-ok-ink); }
.tr-pin.shake .tr-pin-field { animation: tr-shake .45s cubic-bezier(.36,.07,.19,.97); }
.tr-pin.shake .tr-pin-box { border-color: var(--tr-live); }
.tr-pin.ok .tr-pin-box { border-color: var(--tr-ok-ink); }
@keyframes tr-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.tr-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 6px auto 10px; }
.tr-pad-k { min-height: 62px; border-radius: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 5%, var(--surface)); color: var(--ink);
  font: 700 1.75rem/1 var(--tr-sans); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .08s, background .15s; }
.tr-pad-k.fn { font-size: 1.0625rem; color: var(--ink-soft); }
.tr-pad-k:active { transform: scale(.95); background: color-mix(in srgb, var(--tr-accent) 18%, var(--surface)); }
.tr-pad-k:focus-visible { outline: 3px solid var(--halo); outline-offset: 2px; }
@media (hover: hover) { .tr-pad-k:hover { background: color-mix(in srgb, var(--tr-accent) 10%, var(--surface)); } }
.tr-pin .tr-src { margin: 4px 0 0; }

/* ---------- The welcome (thrive-welcome.js): the sun sets, the stars come out, THRIVE rises ---------- */
.tw-ov { position: fixed; inset: 0; z-index: 1000; overflow: hidden; background: #04061c; color: #fff; opacity: 0; transition: opacity .55s ease; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tw-ov.tw-in { opacity: 1; }
.tw-ov.tw-out { opacity: 0; transition-duration: var(--tw-fade, .65s); }
.tw-sky { position: absolute; inset: 0; overflow: hidden; }
.tw-grad { position: absolute; inset: 0; background: linear-gradient(180deg, #04061c 0%, #121852 17%, #33277a 30%, #6b2f4a 46%, #c0532e 60%, #f08a4b 72%, #f7b664 84%, #ffe6b8 100%);
  background-size: 100% 300%; background-position: 0 0; }
.tw-ov .tr-stars { display: block; }
.tw-sun { position: absolute; left: 50%; top: 71%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff6d6 0 36%, rgba(255,214,140,.8) 38%, rgba(255,170,90,.3) 55%, transparent 70%); }
.tw-glow { position: absolute; left: -30%; right: -30%; bottom: 0; height: 80%; transform-origin: bottom;
  background: radial-gradient(ellipse 62% 36% at 50% 76%, rgba(255,128,70,.6), rgba(150,60,120,.25) 45%, transparent 78%); }
.tw-ov .tr-mesa { height: 30%; }
.tw-ov .m1 { fill: #2c1f55; stroke: rgba(255,170,110,.55); }
.tw-ov .m2 { fill: #1b1339; stroke: rgba(255,150,100,.3); }
.tw-ov .m3 { fill: #0e0a24; }
.tw-con { position: absolute; left: 50%; top: 6vh; width: min(100%, 560px); height: auto; margin-left: max(-50%, -280px); overflow: visible; }
.tw-cl { fill: none; stroke: rgba(255,226,168,.7); stroke-width: 1.3; stroke-dasharray: 420; stroke-dashoffset: 0; }
.tw-cs circle { fill: #fff6dc; filter: drop-shadow(0 0 3px #ffd27a); }
.tw-cbig { fill: #ffd27a; filter: drop-shadow(0 0 6px #ffd27a) drop-shadow(0 0 14px #ffb347); transform-box: fill-box; transform-origin: center; }
.tw-copy { position: absolute; left: 0; right: 0; top: 37%; text-align: center; padding: 0 16px; pointer-events: none; }
.tw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tw-small { margin: 0; font: 700 17px var(--tr-geo); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: #ffe9c4; }
.tw-sg { margin: 4px 0 0; font: italic 600 clamp(34px, 6vmin, 54px)/1.1 var(--tr-serif); color: #fff3dc; }
.tw-title { margin: 2px 0 0; font: 700 clamp(62px, 12vmin, 128px)/1.05 var(--tr-geo); letter-spacing: .08em; padding-left: .08em; white-space: nowrap; filter: drop-shadow(0 0 18px rgba(255,190,110,.45)); }
.tw-l { display: inline-block; background: linear-gradient(100deg, #ffc35a 0%, #ffe3a0 30%, #fffaf0 48%, #ffe3a0 62%, #ffb547 100%); background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tw-title em { display: inline-block; font-style: normal; color: #ffc35a; }
.tw-tag { margin: 12px 0 0; font: italic clamp(22px, 3.4vmin, 32px)/1.3 var(--tr-serif); color: #fff3dc; }
.tw-name { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 10px 20px 10px 12px; border-radius: 999px; font: 700 19px var(--tr-sans);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,226,168,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tw-tick { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2f8a5a; color: #fff; font-size: 16px; }
.tw-skip { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  font: 700 17px var(--tr-sans); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.tw-skip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* The timeline starts when .tw-go lands (about 6 s in all). */
.tw-go .tw-grad { animation: tw-grad 3.6s .2s cubic-bezier(.45,.05,.4,1) both; }
.tw-go .tw-stars { animation: tw-fade 2.4s 1.6s ease-out both; }
.tw-go .tw-sun { animation: tw-sun 3.4s .1s cubic-bezier(.5,0,.6,1) both; }
.tw-go .tw-glow { animation: tw-glow 3.6s .2s ease-out both; }
.tw-go .m1 { animation: tw-m1 3.6s .2s ease both; }
.tw-go .m2 { animation: tw-m2 3.6s .2s ease both; }
.tw-go .m3 { animation: tw-m3 3.6s .2s ease both; }
.tw-go .tw-cl { animation: tw-cl 1.8s 2.3s ease-in-out both; }
.tw-go .tw-cs circle { animation: tw-fade .9s 2.1s ease-out both; }
.tw-go .tw-cbig { animation: tw-cbig .9s 3.8s cubic-bezier(.2,1.6,.4,1) both, tr-spark 4s 5s ease-in-out infinite; }
.tw-go .tw-small { animation: tw-up .9s 1.9s ease-out both; }
.tw-go .tw-sg { animation: tw-up .9s 2.2s ease-out both; }
.tw-go .tw-l { animation: tw-rise .8s calc(2.6s + var(--i) * 95ms) cubic-bezier(.2,.9,.25,1.25) both, tw-glint 5s calc(4.6s + var(--i) * 110ms) ease-in-out infinite; }
.tw-go .tw-title em { animation: tw-rise .8s 3.17s cubic-bezier(.2,.9,.25,1.25) both; }
.tw-go .tw-tag { animation: tw-up .9s 3.7s ease-out both; }
.tw-go .tw-name { animation: tw-up .9s 4.3s ease-out both; }
@keyframes tw-grad { from { background-position: 0 100%; } }
@keyframes tw-fade { from { opacity: 0; } }
@keyframes tw-sun { from { transform: translateY(-32vh); opacity: 1; } 85% { opacity: 1; } to { transform: translateY(80px); opacity: 0; } }
@keyframes tw-glow { from { opacity: 1; transform: scaleY(1.9); filter: saturate(1.6) brightness(1.4); } }
@keyframes tw-m1 { from { fill: #d07a52; transform: translateY(18px); } }
@keyframes tw-m2 { from { fill: #a2462a; transform: translateY(28px); } }
@keyframes tw-m3 { from { fill: #6a2a18; transform: translateY(40px); } }
@keyframes tw-cl { from { stroke-dashoffset: 420; } }
@keyframes tw-cbig { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
@keyframes tw-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes tw-rise { from { opacity: 0; transform: translateY(36px) scale(.7); filter: blur(8px); } }
@keyframes tw-glint { 0%, 55% { background-position: 100% 0; } 80%, 100% { background-position: 0 0; } }

/* ---------- Reduced motion: every sky rests on its final frame ---------- */
@media (prefers-reduced-motion: reduce) {
  :is(.tr-page, .tr-portal, .tw-ov) *, :is(.tr-page, .tr-portal, .tw-ov) *::before, :is(.tr-page, .tr-portal, .tw-ov) *::after { animation: none !important; transition: none !important; }
  .tr-shoot { display: none; }
}
.tw-calm *, .tw-calm *::before, .tw-calm *::after { animation: none !important; }
.tw-calm .tr-shoot { display: none; }

/* =====================================================================================================================
   DUSK TO STARS, fix round 1 (11/17): the creative, motion and mobile/older-user reviews. Overrides only; a later
   @keyframes of the same name replaces the earlier one.
   ===================================================================================================================== */
/* The afternoon turns gold (it read the same as the morning: clear blue with a brick-red word). */
html[data-tsky="afternoon"], [data-tsky="afternoon"] {
  --tr-sky1: #7fa9cf; --tr-sky2: #e9d3a6; --tr-sky3: #f4b25e; --tr-glow: rgba(255,190,90,.85); --tr-sunc: #ffe9a8; --tr-band: #f6dcab;
  --tr-thrive: linear-gradient(#b4561a, #8f2f12);
}
[data-tsky="afternoon"] .tr-hero .tr-sun { width: 134px; height: 134px; margin: -67px 0 0 -67px; }
/* Night: the ridge reads as a silhouette against the glow; hero words get a soft sky-coloured halo. */
html[data-tsky="night"], [data-tsky="night"], :root[data-theme="dark"][data-tsky], :root[data-theme="dark"] [data-tsky] {
  --tr-m1: #221a4e; --tr-m2: #160f36; --tr-m3: #0b0820; --tr-m1s: rgba(255,180,120,.85); --tr-m2s: rgba(255,150,100,.4);
  --tr-hero-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 18px rgba(18,24,82,.95);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-tsky], :root:not([data-theme="light"]) [data-tsky] {
    --tr-m1: #221a4e; --tr-m2: #160f36; --tr-m3: #0b0820; --tr-m1s: rgba(255,180,120,.85); --tr-m2s: rgba(255,150,100,.4);
    --tr-hero-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 18px rgba(18,24,82,.95);
  }
}

/* The mesas: a third of the scene, as in the prototype (a fixed 92 px hid them). A wide screen gets the wide ridge. */
.tr-mesa.wide { display: none; }
@media (min-width: 700px) {
  :is(.tr-hero, .tr-talk-hero, .tw-ov) .tr-mesa.narrow { display: none; }
  :is(.tr-hero, .tr-talk-hero, .tw-ov) .tr-mesa.wide { display: block; }
}
.tr-arch .tr-mesa { height: 36%; }
.tr-hero .tr-mesa { height: clamp(96px, 34%, 150px); }
.tr-talk-hero .tr-mesa { height: clamp(88px, 30%, 140px); }
.tw-ov .tr-mesa { height: 34%; }
.tr-enter-card { margin: -28px 10px 0; }

/* Stars: the bright layer stays in the top right of the sky, over no words; a gentler twinkle; no "x" from a turned
   spark; the page's own star field only behind the top of the page, not across long paragraphs. */
.tr-stars::after { inset: 0 0 52% 58%; }
@keyframes tr-tw { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes tr-spark { 0%, 100% { transform: scale(.55) rotate(0); opacity: .6; } 50% { transform: scale(1) rotate(12deg); opacity: 1; } }
html[data-tsky] body { background-repeat: repeat-x; }

/* The sub-nav: see-through at rest (the band of sky stays whole), frosted only while stuck (views/thrive.js stickyNav). */
.tr-nav-s { height: 1px; margin-bottom: -1px; }
.tr-nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .2s, box-shadow .2s; }
.tr-nav.stuck { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 18px -16px rgba(0,0,0,.55); }
.tr-nav.tr-adm-tabs { background: none; }
.tr-page > .tr-h1 { margin-top: 18px; }
/* The band's sun: small, at the far right, level with the back link (it sat behind the nav and the words). */
.tr-pagesky .tr-sun { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: radial-gradient(circle, var(--tr-sunc) 0 36%, rgba(255,226,160,.6) 40%, rgba(255,200,120,.18) 58%, transparent 72%); }
.tr-page:has(.tr-clock) .tr-pagesky .tr-sun { display: none; }
/* Wide screens: the band is sky from edge to edge (it read as a boxed panel). */
@media (min-width: 700px) {
  .tr-pagesky { left: calc(50% - 50vw); right: calc(50% - 50vw);
    -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-composite: source-over; mask-composite: add; }
  html[data-tsky] body { overflow-x: clip; }
}
/* A talk's hero: a smaller sun, in the corner above the title. */
.tr-talk-hero .tr-sun { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
/* Golden hour on a page band (Check-in): the cream kicker on the pale peach band was 1.1:1. */
html[data-tsky="golden"] .tr-page:has(> .tr-pagesky) .tr-kicker { color: var(--ink-soft); text-shadow: none; }

/* Menu: the Right now title is the biggest line in the card (a more specific rule made it 17 px). */
.tr-now .tr-now-t { font: 700 clamp(1.5rem, 5.4vw, 1.75rem)/1.18 var(--tr-serif); display: block; margin: 4px 0 6px; }
.tr-in-acts { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tr-in-dot { opacity: .75; }
/* 11/19: the venue on its own line under the date, a directions link with the pin (views/thrive.js home). */
.tr-kick-venue { margin: 2px 0 0; font: 600 .9375rem/1.35 var(--tr-geo); }
.tr-venue-a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; }
.tr-venue-a .ev-pin { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.tr-hero .tr-kick-venue { color: var(--tr-hero-kick); }
html[data-tsky="golden"] .tr-page:has(> .tr-pagesky) .tr-kick-venue { color: var(--ink-soft); }

/* Schedule: the add-to-calendar button sits inside the card, top right (the live card was squeezed to 210 px). */
.tr-row.with-ics { grid-template-columns: 80px minmax(0, 1fr); }
.tr-row.with-day.with-ics { grid-template-columns: 96px minmax(0, 1fr); }
.tr-sched .tr-row.with-ics { grid-template-columns: var(--tc) minmax(0, 1fr); }
.tr-what { position: relative; }
.tr-row .tr-what > .tr-ics, .tr-sched .tr-row .tr-what > .tr-ics { position: absolute; z-index: 2; top: 4px; right: 4px; width: 44px; height: 44px; margin: 0; }
.tr-row.with-ics .tr-what, .tr-sched .tr-row.with-ics .tr-what { padding-right: 52px; }
.tr-sched .tr-row.k-social .tr-title { font-family: var(--tr-serif); font-size: 1.1875rem; }
/* The day as a bar of sky (thrive-sky.js dayBarHtml), under the day switch. */
.tr-daybar { margin: 12px 0 6px; }
.tr-daybar-b { position: relative; height: 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.tr-daybar-now { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d6 0 42%, #f7b664 46%); box-shadow: 0 0 0 3px var(--bg), 0 0 14px #f7b664; }
.tr-daybar-now.night { border-radius: 0; background: #fff6dc; box-shadow: none; filter: drop-shadow(0 0 4px #ffd27a);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.tr-daybar-l { position: relative; height: 22px; margin-top: 4px; font-size: .9375rem; color: var(--ink-soft); }
.tr-daybar-l span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tr-daybar-l span:first-child { transform: none; }
.tr-daybar-l span:last-child { transform: translateX(-100%); }

/* Dark: the EXCLUSIVE tag as a gold outline (orange on brown was low contrast). */
:is(html[data-tsky="night"], :root[data-theme="dark"]) :is(.tr-page, .tr-portal) .tr-badge.ex { background: transparent; border: 1.5px solid #f2c063; color: #ffd98a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.tr-page, .tr-portal) .tr-badge.ex { background: transparent; border: 1.5px solid #f2c063; color: #ffd98a; } }

/* Secondary lines inside THRIVE: 15 px at least. Calendar: bigger times and names, titles on two lines, a solid now chip. */
.tr-page .small { font-size: .9375rem; }
.tr-page .tr-cal-b, .tr-page .tr-cal-b .t { font-size: .9375rem; }
.tr-page .tr-cal-b .s { -webkit-line-clamp: 2; }
.tr-page .tr-cal-now span { top: -22px; font-size: .875rem; font-style: normal; color: #fff; background: var(--tr-live-fill, #c23a28); padding: 1px 7px; }

/* ---------- Motion: rings as scaled pseudo-elements (transform and opacity only), fewer loops ---------- */
.tr-track i::after { animation: none; box-shadow: 0 0 0 4px rgba(247,182,76,.25); }
.tr-track i::before { content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: rgba(247,182,76,.5); animation: tr-ringout2 2.4s ease-out infinite; }
@keyframes tr-ringout2 { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.tr-faces-row li.on .tr-av { animation: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--tr-live); }
.tr-faces-row li.on a { position: relative; }
.tr-faces-row li.on a::before { content: ""; position: absolute; left: 50%; top: 0; width: 76px; height: 76px; margin-left: -38px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 9px rgba(194,58,40,.3); animation: tr-ringout 2.4s ease-out infinite; }
@keyframes tr-ringout { from { transform: scale(1); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.tr-sched .tr-row.is-live::before { animation: tr-dotpulse 2.2s ease-in-out infinite; box-shadow: 0 0 0 1.5px var(--c1), 0 0 16px var(--c1); }
@keyframes tr-dotpulse { 50% { transform: scale(1.2); } }
/* The Enter pill: the halo three times, the sweep and the arrow's nudge once, then it rests. */
.tr-enter { overflow: visible; animation: none; }
.tr-enter::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(247,182,76,.55); opacity: 0; pointer-events: none;
  animation: tr-halo2 3s .4s ease-out 3; }
@keyframes tr-halo2 { from { transform: scale(1); opacity: .9; } to { transform: scale(1.08, 1.5); opacity: 0; } }
.tr-enter::after { display: none; }
.tr-enter-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.tr-enter-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60px; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: translateX(-80px) skewX(-20deg); animation: tr-sweep2 2s 1.2s ease-in-out 1 both; }
@keyframes tr-sweep2 { from { transform: translateX(-80px) skewX(-20deg); } to { transform: translateX(520px) skewX(-20deg); } }
.tr-enter svg { animation: tr-nudge 3s .6s ease-in-out 1; }
/* The THRIVE word's glint: three times, then it rests. */
.tr-hero h1 span, .tr-display span { animation-iteration-count: 3; }
/* Page changes: the words fade in, the sky band stays (it blinked when moving between THRIVE pages); the live tick's
   rare real redraw doesn't fade at all (views/thrive.js tr-quiet). */
main > .tr-page { animation: none; }
.tr-page > :not(.tr-pagesky) { animation: page-in .28s ease-out; }
.tr-page.tr-quiet > * { animation: none; }
/* The PIN card fades out before THRIVE opens (it was a hard cut). */
.tr-pin .tr-arch, .tr-pin-card { transition: opacity .25s ease, transform .25s ease; }
.tr-pin.out .tr-arch, .tr-pin.out .tr-pin-card { opacity: 0; transform: translateY(-6px); }

/* ---------- The PIN screen on a phone: the whole pad on the first screen, nothing over it ---------- */
body:has(.tr-pin) .orbnav { display: none; }
@media (max-width: 480px), (max-height: 760px) {
  .tr-arch.small { height: 150px; border-radius: 50% 50% 22px 22px / 110px 110px 22px 22px; }
  .tr-arch.small .tr-arch-ring, .tr-arch.small .tr-eyebrow { display: none; }
  .tr-arch.small .tr-arch-copy { top: 30px; }
  .tr-arch.small .tr-display { font-size: 1.375rem; }
  .tr-arch.small .tr-display span { font-size: 2.25rem; }
  .tr-pin-card { margin-top: -22px; padding: 16px 14px 12px; }
  .tr-pin .tr-h1 { font-size: 1.5rem; margin: 0 0 4px; }
  .tr-pin-lead { font-size: 1rem; line-height: 1.4; }
  .tr-pin-form { margin-top: 10px; }
  .tr-pin-field { height: 60px; width: min(248px, 100%); }
  .tr-pin-box { font-size: 1.75rem; }
  .tr-pin-msg { margin: 6px 0 4px; min-height: 1.5em; }
  .tr-pad { gap: 8px; margin: 4px auto 8px; }
  .tr-pad-k { min-height: 56px; }
}
/* A short screen (an iPhone SE, or Safari's bars on a big phone): a thinner strip of sky, the lead on two lines. */
@media (max-height: 700px) {
  .tr-arch.small { height: 100px; border-radius: 50% 50% 20px 20px / 80px 80px 20px 20px; }
  .tr-arch.small .tr-arch-copy { top: 14px; }
  .tr-arch.small .tr-display { font-size: 1.125rem; }
  .tr-arch.small .tr-display span { font-size: 1.875rem; }
  .tr-pin-card { margin-top: -18px; padding-top: 14px; }
  .tr-pin-once { display: none; }
  .tr-pin-field { height: 56px; }
}
/* The event page on a phone: Enter THRIVE on the first screen (it started below the fold). The dates are right above
   the window on the event page, so its eyebrow goes; the arch is shorter and the ring smaller. */
@media (max-width: 480px) {
  .tr-portal { margin-top: 10px; }
  .tr-portal .tr-arch { height: 272px; }
  .tr-portal .tr-eyebrow { display: none; }
  .tr-portal .tr-arch-ring { top: 16px; width: 250px; height: 250px; margin-left: -125px; }
  .tr-portal .tr-arch-copy { top: 46px; }
  .tr-portal .tr-arch-tag { margin-top: 6px; }
  .tr-portal .tr-enter-card { margin-top: -34px; padding: 16px 16px 18px; }
  .tr-enter-p { margin: 4px 0 12px; font-size: 1.0625rem; }
}

/* ---------- The welcome: composited layers instead of full-screen repaints ---------- */
.tw-grad { inset: auto; top: 0; left: 0; right: 0; height: 300%; background-size: 100% 100%; }
@keyframes tw-grad { from { transform: translateY(-66.6667%); } to { transform: none; } }
@keyframes tw-glow { from { opacity: 1; transform: scaleY(1.9); } }
.tw-glow2 { background: radial-gradient(ellipse 62% 36% at 50% 76%, rgba(255,176,96,.9), rgba(220,96,140,.42) 45%, transparent 78%); opacity: 0; }
.tw-go .tw-glow2 { animation: tw-glow2 3.6s .2s ease-out both; }
@keyframes tw-glow2 { from { opacity: .9; transform: scaleY(1.9); } to { opacity: 0; transform: none; } }
.tw-mesas, .tw-rock { position: absolute; inset: 0; pointer-events: none; }
.tw-warm { opacity: 0; }
.tw-warm .m1 { fill: #d07a52; stroke: none; } .tw-warm .m2 { fill: #a2462a; stroke: none; } .tw-warm .m3 { fill: #6a2a18; }
.tw-go .m1, .tw-go .m2, .tw-go .m3 { animation: none; }
.tw-go .tw-mesas { animation: tw-rockup 3.6s .2s ease both; }
.tw-go .tw-warm { animation: tw-warmout 3.6s .2s ease both; }
@keyframes tw-rockup { from { transform: translateY(28px); } }
@keyframes tw-warmout { from { opacity: 1; } to { opacity: 0; } }
@keyframes tw-sun { 0% { transform: translateY(-32vh); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(80px); opacity: 0; } }
/* More stars (it had about half the prototype's), and THRIVE as wide as the prototype's. */
.tw-stars2 { position: absolute; inset: 0 0 36% 0; pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 31px 22px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 97px 71px, #fff6dc 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 150px 128px, #ffe2a8 50%, transparent 51%), radial-gradient(1px 1px at 12px 150px, #dfe4ff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 128px 18px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 64px 112px, #fff 50%, transparent 51%);
  background-size: 170px 190px; }
.tw-go .tw-stars2 { animation: tw-fade 2.4s 1.9s ease-out both; }
.tw-title { filter: none; font-size: min(19vw, 7.5rem); }
.tw-go .tw-title { animation: tw-titleglow .8s 3.4s ease-out both; }
.tw-calm .tw-title { filter: drop-shadow(0 0 18px rgba(255,190,110,.45)); }
@keyframes tw-titleglow { from { filter: none; } to { filter: drop-shadow(0 0 18px rgba(255,190,110,.45)); } }
/* "Checked in, Jordan" comes in sooner and stays longer (it was readable for about a second). */
.tw-go .tw-tag { animation: tw-up .9s 3.4s ease-out both; }
.tw-go .tw-name { animation: tw-up .9s 3.9s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .tw-ov.tw-calm { transition: opacity .6s ease !important; }
  .tr-page > :not(.tr-pagesky) { animation: none; }
}
/* A talk's hero on a wide screen: the words keep to the left 82%, so the corner sun never sits on the title. */
@media (min-width: 700px) { .tr-talk-hero > :not(.tr-sky) { max-width: 82%; } }

/* =====================================================================================================================
   DUSK TO STARS, fix round 2 (11/17): the round 2 creative and motion/mobile reviews. Overrides only, as in round 1.
   ===================================================================================================================== */
/* The sub-nav sticks just under the app's own top bar (it stuck at 0, hidden under the bar). views/thrive.js stickyNav
   keeps --tr-top at the bar's height. */
.tr-nav { top: var(--tr-top, 65px); }

/* The page's star field after dusk and in dark mode: one 320 px band at the top of the page that fades out, with four
   layers of co-prime sizes so it never reads as a grid (a 210 px tile repeated down the whole page, dots on text). */
html[data-tsky="night"] body, :root[data-theme="dark"][data-tsky] body { background: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-tsky] body { background: var(--bg); } }
html[data-tsky="night"] body::before, :root[data-theme="dark"][data-tsky] body::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 320px; pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 23px 41px, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 141px 87px, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 77px 160px, #ffe2a8bb 50%, transparent 51%), radial-gradient(1px 1px at 118px 19px, #fff7 50%, transparent 51%);
  background-size: 233px 197px, 311px 263px, 389px 241px, 173px 229px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-tsky] body::before {
    content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 320px; pointer-events: none;
    background-image: radial-gradient(1.2px 1.2px at 23px 41px, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 141px 87px, #fff8 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 77px 160px, #ffe2a8bb 50%, transparent 51%), radial-gradient(1px 1px at 118px 19px, #fff7 50%, transparent 51%);
    background-size: 233px 197px, 311px 263px, 389px 241px, 173px 229px;
    -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent);
  }
}

/* Wide screens: the dedicated broad ridge (thrive-sky.js WIDE), tall enough to read as red rock, not a fringe. */
@media (min-width: 700px) {
  .tr-hero .tr-mesa.wide, .tr-talk-hero .tr-mesa.wide { height: clamp(130px, 32%, 180px); }
  .tw-ov .tr-mesa.wide { height: 34%; }
}

/* Night ridges: solid layers with depth, the lit rim on the back layer only, a warmer ember glow. */
html[data-tsky="night"], [data-tsky="night"], :root[data-theme="dark"][data-tsky], :root[data-theme="dark"] [data-tsky] {
  --tr-m1: #3a2c6e; --tr-m2: #261d52; --tr-m3: #140e30; --tr-m1s: rgba(255,180,120,.9); --tr-m2s: transparent; --tr-on-accent: #2a1600;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-tsky], :root:not([data-theme="light"]) [data-tsky] {
    --tr-m1: #3a2c6e; --tr-m2: #261d52; --tr-m3: #140e30; --tr-m1s: rgba(255,180,120,.9); --tr-m2s: transparent; --tr-on-accent: #2a1600;
  }
}
html[data-tsky="night"], [data-tsky="night"] { --tr-hz: rgba(255,130,80,.72); --tr-hz2: rgba(170,64,110,.38); }
/* Dark mode in the morning: a cool dawn on the horizon (rose into sky blue) and a rose rim, so it is not the evening. */
:root[data-theme="dark"][data-tsky="morning"], :root[data-theme="dark"] [data-tsky="morning"] { --tr-hz: rgba(243,166,184,.66); --tr-hz2: rgba(158,197,255,.38); --tr-m1s: rgba(243,166,184,.85); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-tsky="morning"], :root:not([data-theme="light"]) [data-tsky="morning"] { --tr-hz: rgba(243,166,184,.66); --tr-hz2: rgba(158,197,255,.38); --tr-m1s: rgba(243,166,184,.85); }
}

/* Links inside THRIVE: the underline in the text's own colour (it was MoNomo blue), the hour's accent on hover. */
:is(.tr-page, .tr-portal) a { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
:is(.tr-page, .tr-portal) a:hover { text-decoration-color: var(--tr-accent); }
/* The Draft chip is always the sans (it took the serif inside card titles). */
:is(.tr-page, .tr-portal) .tr-draft { font-family: var(--tr-sans); font-style: normal; text-transform: uppercase; }

/* ---------- A talk: the prototype's composition ---------- */
/* The sky runs up behind the back link and the sub-nav (views/thrive.js pullHero sets --pull). */
.tr-talk .tr-talk-hero { margin-top: calc(-1 * var(--pull, 0px) - 16px); padding-top: calc(var(--pull, 0px) + 16px + 12px); margin-bottom: 0; }
.tr-page:has(> .tr-talk) > .tr-top .tr-back, .tr-page:has(> .tr-talk) > .tr-top .tr-back span { color: var(--tr-hero-ink); text-shadow: var(--tr-hero-shadow); }
.tr-page:has(> .tr-talk) > .tr-nav:not(.stuck) a:not([aria-current="page"]) { color: var(--tr-hero-ink); text-shadow: var(--tr-hero-shadow); }
@media (min-width: 700px) {
  .tr-talk .tr-talk-hero { margin-top: calc(-1 * var(--pull, 0px) - 4px); padding-top: calc(var(--pull, 0px) + 4px + 14px); }
  .tr-page:has(> .tr-talk) > .tr-top { padding: 0 20px; }
  .tr-page:has(> .tr-talk) > .tr-nav { margin-left: 0; margin-right: 0; padding-left: 20px; padding-right: 20px; }
}
/* Add to calendar: a filled pill in the hour's accent (rust by day, gold at night), sitting on the mesa line. */
.tr-talk .tr-talk-acts { position: relative; z-index: 3; display: flex; flex-wrap: nowrap; gap: 10px; margin: -30px 12px 18px; }
.tr-cal-pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--tr-accent); color: var(--tr-on-accent, #fff); font: 700 1.0625rem var(--tr-sans); cursor: pointer; box-shadow: 0 10px 20px -10px rgba(184,70,31,.9); }
html[data-tsky="night"] .tr-cal-pill, :root[data-theme="dark"] .tr-cal-pill { background: linear-gradient(180deg, #ffe08f, #f7b64c); box-shadow: 0 10px 24px -10px rgba(247,182,76,.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-cal-pill { background: linear-gradient(180deg, #ffe08f, #f7b64c); box-shadow: 0 10px 24px -10px rgba(247,182,76,.7); } }
.tr-cal-pill .tr-ico { width: 22px; height: 22px; stroke: currentColor; }
.tr-cal-pill:focus-visible, .tr-talk-acts .tr-share-btn:focus-visible { outline: 3px solid #e0a040; outline-offset: 3px; }
.tr-talk .tr-talk-acts .tr-share-btn { min-height: 56px; padding: 0 20px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--tr-line-strong); box-shadow: var(--tr-card-shadow); }
.tr-talk .tr-left { margin-top: 0; }
/* "After this, in Main Stage": the plum card the page ends on. */
.tr-after { margin: 18px 0 0; padding: 16px 18px; border-radius: 20px; background: linear-gradient(160deg, #2a1f5a, #4e2445 60%, #8f3a1a); color: #fff7ea; }
.tr-page .tr-after-h { margin: 0 0 4px; font: 700 .875rem/1.3 var(--tr-geo); letter-spacing: .14em; text-transform: uppercase; color: #ffd27a; }
.tr-after ul { list-style: none; margin: 0; padding: 0; }
.tr-after li { display: flex; gap: 10px; margin: 8px 0 0; font-size: 1.0625rem; line-height: 1.35; }
.tr-after li b { flex: none; min-width: 78px; color: #ffe9c4; font-variant-numeric: tabular-nums; }
.tr-page .tr-after a { color: #fff7ea; }
.tr-after-note { margin: 12px 0 0; font-size: .9375rem; color: #f1e4f2; }
.tr-page .tr-after .tr-draft { border-color: #cfc8ff; color: #ece8ff; }

/* ---------- Help: the prototype's calm, warm cards ---------- */
.tr-page .card.tr-emergency { border: 1.5px solid rgba(255,122,102,.6); }
.tr-page .card .tr-help-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 10px; font: 700 .9375rem/1.3 var(--tr-geo); letter-spacing: .12em;
  text-transform: uppercase; color: var(--tr-accent-ink); }
.tr-gl { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-help-card .btn .tr-gl { margin-right: 6px; }
.tr-page .tr-emergency a.btn.care { background: #fff1d6; color: #3a1d10; border: 1.5px solid #e6c28a; border-radius: 999px; min-height: 54px; font-weight: 800; }
.tr-page .tr-emergency a.btn.care:hover { background: #ffe8bd; }
.tr-quiet-card { position: relative; isolation: isolate; overflow: hidden; }
.tr-breath { position: absolute; z-index: -1; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(160,140,255,.38), rgba(160,140,255,0) 68%); animation: tr-breathe 8s ease-in-out infinite; }
@keyframes tr-breathe { 0%, 100% { transform: scale(.75); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }
/* The smallest text on Help was 13.6 px (the form labels, "Not on MoNomo yet"). */
.tr-ask-form .field > span, .tr-ask-form .field > span .muted, .tr-who-none { font-size: .9375rem; }

/* ---------- The event page: the window on warm ground, not on MoNomo's cool grey ---------- */
.tr-portal { box-sizing: border-box; max-width: 472px; padding: 16px; border-radius: 28px;
  background: radial-gradient(75% 55% at 50% 34%, var(--tr-portal-glow, var(--tr-glow)), transparent 78%), var(--bg); }
html[data-tsky="night"] .tr-portal, .tr-portal[data-tsky="night"], :root[data-theme="dark"] .tr-portal { --tr-portal-glow: color-mix(in srgb, var(--tr-hz) 55%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-portal { --tr-portal-glow: color-mix(in srgb, var(--tr-hz) 55%, transparent); } }
@media (max-width: 480px) { .tr-portal { padding: 8px; border-radius: 24px; } }
/* The strata lines sit below the last line of words. */
.tr-enter-card, .tr-portal .tr-enter-card, .tr-pin-card { padding-bottom: 44px; }
/* The Enter pill's shine passes behind the words (it washed out "Enter T|HRIVE"). */
.tr-enter > :not(.tr-enter-shine) { position: relative; z-index: 1; }
.tr-enter-shine::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); }

/* ---------- The menu hero on a phone: about the prototype's height ---------- */
@media (max-width: 480px) { .tr-hero .tr-tag { display: none; } .tr-hero, .tr-hero.compact { padding-bottom: 100px; } }
.tr-in { flex-wrap: wrap; }
.tr-in-who { white-space: nowrap; }
.tr-in-acts { gap: 4px; }
.tr-replay { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer; color: inherit;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent); background: color-mix(in srgb, var(--tr-chip) 28%, transparent); }
.tr-replay svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tr-replay:focus-visible { outline: 3px solid #e0a040; outline-offset: 2px; }

/* ---------- The PIN: warm keys, a gold focus ring ---------- */
.tr-pad-k { background: color-mix(in srgb, #f7b664 14%, var(--surface)); border-color: color-mix(in srgb, #e0a040 32%, var(--line)); }
.tr-pad-k:active { background: color-mix(in srgb, #f7b64c 42%, var(--surface)); }
@media (hover: hover) { .tr-pad-k:hover { background: color-mix(in srgb, #f7b664 24%, var(--surface)); } }
.tr-pad-k:focus-visible { outline: 3px solid #e0a040; outline-offset: 2px; }
.tr-pin-field:focus-within .tr-pin-box.cur { outline: 3px solid rgba(224,160,64,.55); outline-offset: 2px; border-color: #e0a040; }
.tr-pin-in:focus, .tr-pin-in:focus-visible { outline: none; }
/* views/thrive.js pinGate: a card taller than 70% of the screen drops the dome of sky and the lead's second sentence. */
.tr-pin.tight .tr-arch, .tr-pin.tight .tr-pin-once { display: none; }
.tr-pin.tight .tr-pin-card { margin-top: 4px; }

/* ---------- Smaller things ---------- */
/* Schedule cards: the meta keeps its pieces whole, titles balance their lines. */
.tr-nw { white-space: nowrap; }
.tr-sched .tr-title, .tr-now-t, .tr-talk-hero .tr-h1 { text-wrap: balance; }
/* Booths: "All the hours" on its own line, the venue name never split. */
.tr-hours { display: block; }
.tr-hours summary { margin-left: 0; }
/* The page band's sun: whole, with a solid core (it was a half-clipped pale smudge at the right edge). */
.tr-pagesky .tr-sun { left: 84%; background: radial-gradient(circle, #fff3c4 0 24%, #ffd27a 38%, rgba(247,182,100,.42) 52%, transparent 70%); }
/* Speakers and creators: serif names and the sun ring, as on a talk. */
.tr-people .tr-person b { font: 700 1.1875rem/1.2 var(--tr-serif); }
.tr-people .tr-person .tr-av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #f7b664, 0 0 0 6px rgba(184,70,31,.3); }
/* The map in warm paper and red rock by day (it was grey-blue and pink); the night floor stays as it was. */
html[data-tsky] .tm-map { --tm-floor: #f7efe3; --tm-room: #fffaf2; --tm-wall: #c9b8a6; --tm-accent: #c0532a; --tm-room-hover: color-mix(in srgb, #f7b664 26%, #fffaf2); }
html[data-tsky="night"] .tm-map, :root[data-theme="dark"][data-tsky] .tm-map { --tm-floor: #161d29; --tm-room: #222c3d; --tm-wall: #6f7a8e; --tm-room-hover: color-mix(in srgb, var(--tr-sun) 22%, #222c3d); --tm-accent: #e9894a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-tsky] .tm-map { --tm-floor: #161d29; --tm-room: #222c3d; --tm-wall: #6f7a8e; --tm-room-hover: color-mix(in srgb, var(--tr-sun) 22%, #222c3d); --tm-accent: #e9894a; } }
/* The shooting star: three times, then the sky rests (it pulled the eye every 11 s on long pages). */
:is(.tr-page, .tr-portal) .tr-shoot { animation-iteration-count: 3; }
/* The welcome's letters shine once, while the welcome is still up (an endless background-position loop). */
.tw-go .tw-l { animation: tw-rise .8s calc(2.6s + var(--i) * 95ms) cubic-bezier(.2,.9,.25,1.25) both, tw-glint 2.4s calc(4.2s + var(--i) * 110ms) ease-in-out 1 forwards; }
/* A wide screen: the calendar pill keeps a pill's width instead of running the whole column. */
@media (min-width: 700px) { .tr-talk .tr-talk-acts { margin-left: 20px; } .tr-cal-pill { flex: 0 1 auto; min-width: 260px; padding: 0 32px; } }
/* Still too tall (large text on a small phone): the lead is read out but not shown, and the title gets smaller. */
.tr-pin.tight .tr-pin-lead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tr-pin.tight .tr-h1 { font-size: 1.375rem; }
.tr-pin.tight .tr-pin-card { padding-top: 12px; }
/* Schedule cards: only the badges and the title keep clear of the calendar button (top right); the speakers and the
   "until · room" line use the card's whole width, so the meta is two lines, not three. */
.tr-row.with-ics .tr-what, .tr-sched .tr-row.with-ics .tr-what { padding-right: 12px; }
.tr-row.with-ics .tr-what > :is(.tr-badges, .tr-title), .tr-sched .tr-row.with-ics .tr-what > :is(.tr-badges, .tr-title) { padding-right: 46px; }
.tr-row.with-ics .tr-what > .tr-badges + .tr-title { padding-right: 0; }
.tr-row.with-ics .tr-what > .tr-badges { min-height: 40px; align-content: start; }

/* ---------- The welcome (11/19, operator: "what happened to the animation, it looked so good"): the 11/18 smoothness
   pass took out the look (THRIVE rising out of a blur, the gold glint, the title glow, the glass "Checked in") and put a
   flat glow band behind the title. The look is back as designed. Kept, because they change nothing you can see: the
   page under the overlay is hidden and paused while it plays, the timeline waits for the fonts (thrive-welcome.js),
   the constellation's line, dots and big star are separate layers, and the big star's pulse no longer jumps. */
.tw-ov { contain: strict; }
.tw-grad, .tw-sun, .tw-glow, .tw-mesas, .tw-warm, .tw-stars, .tw-stars2, .tw-cs, .tw-big, .tw-title em, .tw-small, .tw-sg, .tw-tag, .tw-name { will-change: transform, opacity; }
.tw-l { will-change: transform, opacity, filter; }
.tw-calm :is(.tw-grad, .tw-sun, .tw-glow, .tw-mesas, .tw-warm, .tw-stars, .tw-stars2, .tw-cs, .tw-big, .tw-l, .tw-title em, .tw-small, .tw-sg, .tw-tag, .tw-name) { will-change: auto; }
.tw-con { aspect-ratio: 390 / 300; pointer-events: none; }
.tw-con > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tw-go .tw-cs circle, .tw-go .tw-cbig { animation: none; }
.tw-go .tw-cs { animation: tw-fade .9s 2.1s ease-out both; }
.tw-big { position: absolute; left: 81.54%; top: 19.33%; width: 6.154%; aspect-ratio: 1; }
.tw-big svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px #ffd27a) drop-shadow(0 0 14px #ffb347); }
.tw-big .tw-cbig { filter: none; transform: none; }
.tw-go .tw-big { animation: tw-cbig .9s 3.8s cubic-bezier(.2,1.6,.4,1) both, tw-bigpulse 4s 4.7s ease-in-out infinite; }
@keyframes tw-bigpulse { 0%, 100% { transform: none; } 50% { transform: scale(.8) rotate(12deg); } }
html.tw-playing body > :not(.tw-ov) { visibility: hidden; }
html.tw-playing :is(.tr-page, .tr-portal), html.tw-playing :is(.tr-page, .tr-portal) *, html.tw-playing :is(.tr-page, .tr-portal) *::before, html.tw-playing :is(.tr-page, .tr-portal) *::after { animation-play-state: paused !important; }

/* ---------- 11/18 flow batch ---------- */
/* "Watch Sunrise" (was an icon-only Replay): a visible pill with its words. */
.tr-replay { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 44px; height: auto; padding: 0 14px 0 10px; border-radius: 999px; font: inherit; font-weight: 700; white-space: nowrap; }
.tr-replay svg { flex: none; width: 20px; height: 20px; }
/* No-ticket mode */
.tr-in .tr-have-ticket { min-height: 44px; text-shadow: none; }
.tr-home-card p { margin: 0 0 8px; }
.tr-home-card .tr-next-item { margin-top: 4px; }
.tr-ticket-tile { grid-column: 1 / -1; }
@media (min-width: 700px) { .tr-away-tiles .tr-ticket-tile { grid-column: span 2; } }
.tr-away-note { margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); font-size: .95rem; }
.tr-away-note .tr-link, .tr-away-line .tr-link { font-weight: 700; white-space: nowrap; }
.tr-talk-away { margin: 6px 0 0; font-weight: 700; }
.tr-enter-remote { display: flex; width: 100%; margin-top: 10px; min-height: 48px; justify-content: center; white-space: normal; text-align: center; }
.tr-enter-rnote { margin: 6px 0 0; text-align: center; font-size: .95rem; opacity: .85; }
/* Check-in: "Have a ticket? Scan it" */
.tr-scan-own { margin: 18px 0 6px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--tr-card, var(--card)); text-align: left; }
.tr-scan-h { margin: 0 0 4px; font-size: var(--tr-fs-h3, 1.25rem); }
.tr-scan-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tr-scan-acts .btn { flex: 1 1 200px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: normal; text-align: center; }
.tr-scan-acts .tr-gl { width: 20px; height: 20px; flex: none; }
.tr-cam { position: relative; max-width: 360px; margin: 12px auto 0; }
.tr-cam[hidden] { display: none; }
.tr-cam video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #000; }
.tr-cam-frame { position: absolute; left: 18%; right: 18%; top: 0; aspect-ratio: 1; margin-top: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; }
.tr-cam { overflow: hidden; border-radius: 16px; }
.tr-cam .btn { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: #1d1630; }
.tr-scan-msg { margin: 10px 0 0; min-height: 1.4em; font-weight: 700; }
.tr-scan-msg.bad { color: var(--danger, #b3261e); }
/* The constellation as large as it can be while it stays clear of "Welcome to" (a wide, short screen caps it). */
.tw-con { left: 0; right: 0; margin: 0 auto; width: min(100%, 560px, 50vh); top: 3vh; }
/* Small phones (320 to 380 px): the schedule's time column was 70 px plus the dot, leaving talk titles a word a line.
   AM / PM go under the time, so the column is 46 px. */
@media (max-width: 380px) {
  .tr-sched .tr-row:not(.with-day) { --tc: 46px; gap: 6px; }
  .tr-sched .tr-row:not(.with-day) .tr-ap { display: block; font-size: .75rem; line-height: 1.1; }
  .tr-sched .tr-row:not(.with-day) .tr-time { font-size: .875rem; }
}
@media (max-width: 380px) { .tr-row.with-ics .tr-what > :is(.tr-badges, .tr-title), .tr-sched .tr-row.with-ics .tr-what > :is(.tr-badges, .tr-title) { padding-right: 36px; } }

/* 11/19: the new red rock (thrive-sky.js MESA). The fill shapes carry no stroke now; the lit edge is the rim (skyline
   only). Haze and shade are shared paint from #tr-mesa-defs. m0 (a faint distant range) takes the far colour, half seen. */
.tr-mesa path:is(.m1, .m2, .m3):not(.rim) { stroke: none !important; }
.tr-mesa .m0 { fill: var(--tr-m1); opacity: .5; }
.tr-mesa path.rim { fill: none !important; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: .9; stroke-opacity: .6; } /* a soft edge light, not an outline */
.tr-mesa .tr-mshade { fill: url(#trmShade); }
.tr-mesa .tr-mhaze { fill: url(#trmHaze); opacity: var(--tr-haze, .9); }
.tr-mesa .tr-mhaze.lo { opacity: calc(var(--tr-haze, .9) * .4); }
.tr-mesa .tr-mcap { fill: var(--tr-capc, #fff); opacity: var(--tr-cap, .16); }
html[data-tsky="night"], [data-tsky="night"], :root[data-theme="dark"][data-tsky], :root[data-theme="dark"] [data-tsky] { --tr-haze: .35; --tr-cap: .12; --tr-capc: #ffb98a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-tsky], :root:not([data-theme="light"]) [data-tsky] { --tr-haze: .35; --tr-cap: .12; --tr-capc: #ffb98a; }
}
/* The welcome: night rock with the lit rims, and a warm sunset copy over it that fades out. */
.tw-ov { --tr-haze: .35; --tr-cap: .12; --tr-capc: #ffb98a; }
.tw-ov .m0 { fill: #2c1f55; }
.tw-warm { --tr-haze: .8; --tr-cap: .16; --tr-capc: #fff; }
.tw-warm .m0 { fill: #d07a52; }
.tw-warm .rim { stroke: none; }

/* 11/19 smoothness (operator: "the app feels glitchy"): no backdrop blur on the parts that move with the scroll. The
   stuck sub-nav and the calendar's day picker re-blurred the page under them on every scrolled frame, and the clock
   pill scrolls with the page; a nearly solid background looks the same and costs nothing. */
.tr-nav.stuck, .tr-cal-pick { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.tr-nav.stuck { background: color-mix(in srgb, var(--bg) 96%, transparent); }
.tr-cal-pick { background: color-mix(in srgb, var(--bg) 97%, transparent); }
.tr-clock { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--tr-chip) 92%, transparent); }
/* ---------- Speakers & Creators (11/19, operator: "make it 9/10") ---------- */
/* The list: one card per person, picture, name, what they make, when/where. Two columns on a wide screen. */
.tr-pcards { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tr-pcards { grid-template-columns: 1fr 1fr; } }
.tr-pcard > a { display: flex; align-items: center; gap: 14px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--tr-card-shadow); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
@media (hover: hover) { .tr-pcard > a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, #f7b664 60%, var(--line)); } }
.tr-pcard .tr-av { width: 60px; height: 60px; font-size: 1.1rem; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #f7b664; }
.tr-pcard-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tr-pcard-txt > b { font-size: 1.05rem; line-height: 1.25; }
.tr-pcard-role { font-size: var(--tr-fs-meta, .9375rem); color: var(--ink-soft); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-pcard > a > i { font-style: normal; font-size: 1.4rem; color: var(--ink-soft); flex: none; }
.tr-pcard .tr-badges { margin: 1px 0; }

/* One person: the hero (picture, name, what they make, where to find them, actions), centered on a phone. */
.tr-phero { display: grid; justify-items: center; text-align: center; gap: 12px; margin: 6px 0 4px; }
.tr-phero .tr-av.big { width: 128px; height: 128px; font-size: 2.4rem; box-shadow: 0 0 0 4px var(--surface), 0 0 0 8px #f7b664, 0 14px 30px -14px rgba(120,40,10,.55); }
.tr-phero-txt { display: grid; justify-items: center; gap: 8px; width: 100%; min-width: 0; }
.tr-phero .tr-h1 { margin: 4px 0 0; }
.tr-phero-role { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.4; }
.tr-wheres { display: grid; gap: 8px; width: 100%; max-width: 420px; }
.tr-where { display: flex; align-items: center; gap: 10px; min-height: 48px; box-sizing: border-box; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, #f7b664 12%, var(--surface)); color: var(--ink); text-decoration: none; text-align: left; }
.tr-where > span { flex: 1; min-width: 0; }
.tr-where > i { font-style: normal; font-size: 1.3rem; color: var(--ink-soft); }
.tr-phero .tr-acts { justify-content: center; margin: 2px 0 0; }
.tr-phero .tr-act-note { margin: 0; max-width: 460px; }
.tr-phero-share { justify-content: center; gap: 8px; }
@media (min-width: 760px) {
  .tr-phero { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: 28px; }
  .tr-phero .tr-av.big { width: 152px; height: 152px; font-size: 2.8rem; }
  .tr-phero-txt { justify-items: start; }
  .tr-phero .tr-acts, .tr-phero-share { justify-content: flex-start; }
}
.tr-out .tr-out-pay { border-color: color-mix(in srgb, #f7b664 70%, var(--line)); font-weight: 800; }
.tr-mono-row.tr-left-row > a { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .tr-pcard > a { transition: none; } }
.tr-tile.wide { grid-column: 1 / -1; min-height: 0; }

/* QC 11/19: no page scrollbar beside the full-screen welcome on desktop. */
html.tw-playing { overflow: hidden; }

/* ---------- 11/19 Schedule rows: the title gets the width ---------- */
/* Operator: "the left hand side is really taking up a lot of space. And so is the right hand side with the + calendar
   button." The time is a 40 px stack (time over AM/PM), the thread a 20 px lane with a slim dot, and Add to calendar is a
   small Calendar chip on the "until" line (.tr-cal-chip), so the card runs to the right edge. Phone twin: kit.tsx SchedRow.
   (.tr-row.tr-row: one class more than the older width rules above, so these win at every width.) */
.tr-sched .tr-row.tr-row { --tc: 40px; gap: 4px; grid-template-columns: var(--tc) minmax(0, 1fr); }
.tr-sched .tr-row.tr-row.with-day { --tc: 52px; }
.tr-sched .tr-row.tr-row .tr-time { font-size: .875rem; line-height: 1.15; padding-top: 2px; white-space: normal; }
.tr-sched .tr-row.tr-row .tr-ap { display: block; font-size: .6875rem; letter-spacing: .04em; color: var(--ink-soft); }
.tr-sched .tr-row.tr-row .tr-time-d { font-size: .75rem; line-height: 1.2; }
.tr-sched .tr-row.tr-row .tr-what { padding-left: 20px; padding-right: 0; }
.tr-sched .tr-row.tr-row:is(.k-talk, .k-social, .is-live) .tr-time { padding-top: 12px; }
.tr-sched .tr-row.tr-row:is(.k-talk, .k-social, .is-live) .tr-what { margin-left: 20px; padding: 12px; }
.tr-sched .tr-row.tr-row:is(.k-talk, .k-social, .is-live) .tr-what > :is(.tr-badges, .tr-title) { padding-right: 0; }
.tr-sched .tr-row.tr-row .tr-what > .tr-badges { min-height: 0; }
/* The thread: a 10 px dot (14 px when live) centred on the time's first line, a 2 px line down to the next row. */
.tr-sched .tr-row.tr-row::before { left: calc(var(--tc) + 7px); top: 13px; width: 10px; height: 10px; border-width: 2px; }
.tr-sched .tr-row.tr-row:is(.k-talk, .k-social, .is-live)::before { top: 23px; }
.tr-sched .tr-row.tr-row.is-live::before { left: calc(var(--tc) + 5px); top: 21px; width: 14px; height: 14px; }
.tr-sched .tr-row.tr-row::after { left: calc(var(--tc) + 11px); width: 2px; top: 25px; }
.tr-sched .tr-row.tr-row:is(.k-talk, .k-social, .is-live)::after { top: 35px; }
/* Add to calendar inside the row: a small chip, a 44 px target (the ::before), named for screen readers. */
.tr-cal-chip { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; height: 30px; margin: -3px 0;
  padding: 0 10px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--tr-rock-ink, var(--ink));
  font: inherit; font-size: .875rem; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; }
.tr-cal-chip::before { content: ""; position: absolute; inset: -7px -4px; }
.tr-cal-chip .tr-ico { width: 17px; height: 17px; flex: none; }
.tr-cal-chip:focus-visible { outline: 2px solid var(--halo, var(--tr-rock)); outline-offset: 2px; }
@media (hover: hover) { .tr-cal-chip:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } }
.tr-row.is-past .tr-cal-chip { color: var(--ink-soft); }
/* The "until · room" words and the chip wrap as two pieces: the chip goes under them, flush left, when they don't fit. */
.tr-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* A row that also says the day (a bio): the day sits above, so the time itself lines up with the dot. */
.tr-sched .tr-row.tr-row.with-day:is(.k-talk, .k-social, .is-live) .tr-time { padding-top: 0; }
/* ---------- 11/19 The sunrise (thrive-welcome.js kind 'sunrise'; operator: "Let's do a sunrise and sunset"). The sunset's
   scene run the other way: the night sky with its stars and the drawn constellation; the sky warms through dawn rose to
   gold (two stacked skies that fade in, so a frame only composites); the stars and the line fade, the morning star last;
   the sun comes up from behind the mesas and the rock goes from night to lit. Same words and timing for the copy.
   Phone twin: mobile/src/components/thrive/Welcome.tsx (same colours). ---------- */
.tw-sunrise .tw-grad { height: 100%; background: linear-gradient(180deg, #04061c 0%, #121852 55%, #33277a 100%); transform: none; }
.tw-dawn, .tw-morn { position: absolute; inset: 0; opacity: 0; will-change: opacity; pointer-events: none; }
.tw-dawn { background: linear-gradient(180deg, #141a52 0%, #5b3478 55%, #e0757a 100%); }
.tw-morn { background: linear-gradient(180deg, #28407f 0%, #a9587e 55%, #ffbf7e 100%); }
.tw-sunrise .tw-glow2 { background: radial-gradient(ellipse 62% 36% at 50% 80%, rgba(255,196,110,.95), rgba(240,120,110,.4) 45%, transparent 78%); }
.tw-sunrise .tw-warm { opacity: 0; }
.tw-sunrise.tw-calm :is(.tw-morn, .tw-warm, .tw-glow2) { opacity: 1; }
.tw-sunrise.tw-calm :is(.tw-stars, .tw-stars2, .tw-con) { opacity: 0; }
.tw-sunrise.tw-calm .tw-sun { opacity: 1; transform: translateY(7vh); }
.tw-go.tw-sunrise .tw-grad { animation: none; }
.tw-go.tw-sunrise .tw-dawn { animation: tw-show 2.4s .3s cubic-bezier(.45,.05,.4,1) both; }
.tw-go.tw-sunrise .tw-morn { animation: tw-show 2.4s 2s cubic-bezier(.45,.05,.4,1) both; }
.tw-go.tw-sunrise .tw-stars { animation: tw-hide 2.4s .4s ease-in both; }
.tw-go.tw-sunrise .tw-stars2 { animation: tw-hide 2.2s .3s ease-in both; }
.tw-go.tw-sunrise .tw-con-l, .tw-go.tw-sunrise .tw-cs { animation: tw-hide 1.6s .3s ease-in both; }
.tw-go.tw-sunrise .tw-cl { animation: none; }
.tw-go.tw-sunrise .tw-big { animation: tw-hide 1.6s 1.6s ease-in both; }
.tw-go.tw-sunrise .tw-sun { animation: tw-sunup 3.6s .5s cubic-bezier(.2,.6,.35,1) both; }
.tw-go.tw-sunrise .tw-glow { animation: tw-glowup 3.6s .3s ease-out both; }
.tw-go.tw-sunrise .tw-glow2 { animation: tw-show 3.2s 1.2s ease-out both; }
.tw-go.tw-sunrise .tw-warm { animation: tw-show 3.7s .3s ease both; }
@keyframes tw-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes tw-hide { from { opacity: 1; } to { opacity: 0; } }
@keyframes tw-sunup { 0% { transform: translateY(22vh); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(7vh); opacity: 1; } }
@keyframes tw-glowup { from { opacity: .3; } to { opacity: 1; } }
.tw-sunrise .tw-con-l { will-change: opacity; }
/* The risen sun sits over the glow (as on the phone; the glow dimmed it), still behind the rock; the night rock goes
   once the lit copy over it is in, so the half-seen distant range ends lit too. */
.tw-sunrise .tw-sky { z-index: 0; }
.tw-sunrise .tw-sun { z-index: 1; }
.tw-sunrise .tw-mesas { z-index: 2; }
.tw-go.tw-sunrise .tw-rock:not(.tw-warm) { animation: tw-hide .5s 3.9s ease both; }

/* r185 map clean-up (operator 11/19): the yellow live glow and the blue found outline (thrive-maps.js), the tiny key and
   the draft toggle that replaced the legend paragraph under the map. */
.tm-map { --tm-found: #1d6fe0; }
html[data-tsky="night"] .tm-map, :root[data-theme="dark"] .tm-map { --tm-found: #6aa8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tm-map { --tm-found: #6aa8ff; } }
.tr-hl-key { border-color: #1d6fe0; box-shadow: 0 0 0 3px rgba(29, 111, 224, .22); }
.tr-map-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 6px 2px 0; font-size: var(--tr-fs-meta, .9rem); color: var(--ink-soft); }
.tr-glow-note { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.tr-glow-key { width: 18px; height: 14px; border-radius: 4px; display: inline-block; background: rgba(255, 201, 40, .38); border: 2px solid #f0ad00; box-shadow: 0 0 6px 2px rgba(255, 201, 40, .55); }
.tr-map-under .tr-toggle { margin-left: auto; font-size: inherit; color: var(--ink-soft); }
/* Night sky / dark: yellow at a third over a dark room read as olive; a lighter tint and a brighter edge stay yellow. */
html[data-tsky="night"] .tm-glow-fill, :root[data-theme="dark"] .tm-glow-fill { fill: #ffe066; fill-opacity: .2; }
html[data-tsky="night"] .tm-glow-edge, :root[data-theme="dark"] .tm-glow-edge { stroke: #ffd23f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tm-glow-fill { fill: #ffe066; fill-opacity: .2; } :root:not([data-theme="light"]) .tm-glow-edge { stroke: #ffd23f; } }

/* ---------- Schedule, slim rail (11/23, operator: "the calendar date/time be slightly above the card, with the line
   hugging the left of the screen. It'll add gaps between the calendar cards, but then we'll free up a lot more space on
   the left side."): no time column. Each row = a small time label, then its card at full width; the day's thread is a
   2 px line in the page's left gutter, each dot on its time label. Phone twin: components/thrive/kit.tsx SchedRow. */
.tr-sched { margin-left: -12px; }
.tr-sched .tr-row.tr-row.tr-row { display: block; --tc: 0px; padding: 2px 0 14px 14px; margin: 0; background: none; }
.tr-sched .tr-row.tr-row.tr-row .tr-time { display: block; text-align: left; white-space: nowrap; padding: 0; margin: 0 0 5px;
  font-size: .875rem; line-height: 18px; font-weight: 800; color: var(--ink-soft); }
.tr-sched .tr-row.tr-row.tr-row.k-talk .tr-time, .tr-sched .tr-row.tr-row.tr-row.k-social .tr-time { color: var(--tr-rock-ink); }
.tr-sched .tr-row.tr-row.tr-row.is-live .tr-time { color: var(--tr-live); }
.tr-sched .tr-row.tr-row.tr-row .tr-ap { display: inline; font-size: inherit; letter-spacing: 0; color: inherit; }
.tr-sched .tr-row.tr-row.tr-row .tr-time-d { display: inline; font-size: inherit; line-height: inherit; }
.tr-sched .tr-row.tr-row.tr-row .tr-time-d::after { content: " · "; }
.tr-sched .tr-row.tr-row.tr-row .tr-what { margin-left: 0; padding-left: 0; padding-right: 0; }
.tr-sched .tr-row.tr-row.tr-row:is(.k-talk, .k-social, .is-live) .tr-what { margin-left: 0; padding: 12px 14px; }
.tr-sched .tr-row.tr-row.tr-row.is-past .tr-what { box-shadow: none; }
/* The thread: a 10 px dot on the time label (14 px when live), a 2 px line down to the next row's dot. */
.tr-sched .tr-row.tr-row.tr-row::before { left: 0; top: 6px; width: 10px; height: 10px; border-width: 2px; }
.tr-sched .tr-row.tr-row.tr-row.is-live::before { left: -2px; top: 4px; width: 14px; height: 14px; }
.tr-sched .tr-row.tr-row.tr-row::after { left: 4px; width: 2px; top: 18px; bottom: -6px; }

/* Find on the map (11/24): the lit facility tile reads pressed; Clear sits on the line under the map. */
.tr-fac.on { border-color: var(--k, #1d6fe0); box-shadow: inset 0 0 0 1px var(--k, #1d6fe0); background: color-mix(in srgb, var(--k, #1d6fe0) 12%, var(--card, transparent)); }
html[data-tsky="night"] .tr-fac.on, :root[data-theme="dark"] .tr-fac.on { --k: #6aa8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tr-fac.on { --k: #6aa8ff; } }
.tr-find-x { background: none; border: 0; padding: 11px 6px; margin: -11px 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Games and More (11/24): a plain list, each item "Coming soon" in a quiet pill (not a button, nothing to press yet). */
/* r198 (operator: "side by side"): cards in a grid, 2 across on phones, 3 from 600px, 4 from 1000px. Each card stacks
   title, Coming soon, blurb, so a 160px column never squeezes the title against the pill. */
.tr-games { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .tr-games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tr-games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tr-games > .tr-game { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; margin: 0; min-width: 0; }
.tr-game .tr-meta { overflow-wrap: anywhere; }
.tr-game-h { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tr-game-h b { font-size: 1.0625rem; }
.tr-soon { flex: none; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ink-soft); border: 1px dashed var(--line-strong, var(--ink-soft)); }

/* 11/24 r197b: stuck under the app bar, the THRIVE nav is near opaque, so content scrolling under it never reads through
   the tab names (at 80 percent the facility tiles showed through "Map Schedule Calendar People"). */
.tr-nav.stuck:not(.tr-adm-tabs) { background: color-mix(in srgb, var(--bg) 96%, transparent); }

/* 11/24 Stats (Games and More): a SAMPLE page (views/thrive-stats.js). Sample = our plan, so it wears the draft violet
   (dashed, never a fill). Bars are ONE hue (the cliff red; coral at night), the number is printed on every row, and the
   track is a quiet tint, so nothing needs a legend. Big targets: tiles, section links and Next are 48 px or more. */
.tr-page .card.tr-game-open { padding: 0; border-color: color-mix(in srgb, var(--tr-draft) 55%, var(--line)); }
.tr-game-open > a { display: grid; gap: 4px; padding: 16px 18px; color: inherit; text-decoration: none; border-radius: inherit; min-height: 44px; }
.tr-game-open > a:hover b, .tr-game-open > a:focus-visible b { text-decoration: underline; }
.tr-soon.tr-sample { color: var(--tr-draft); border: 1.5px dashed var(--tr-draft); }
/* r198 merge: in the Games grid the Stats card matches the others (same padding, stacked, full card height). */
.tr-games > .tr-game-open > a { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; flex: 1; }
.ts-sample { margin: 0 0 14px; padding: 12px 14px; border: 1.5px dashed var(--tr-draft);
  border-radius: 14px; font-size: var(--tr-fs-meta); line-height: 1.45; color: var(--ink); background: color-mix(in srgb, var(--tr-draft) 7%, transparent); }
.ts-sample b { color: var(--tr-draft); text-transform: uppercase; letter-spacing: .06em; font-size: .875rem; margin-right: 2px; }
.ts-tiles { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ts-tile { display: grid; align-content: start; gap: 2px; min-height: 48px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--tr-card-shadow); }
.ts-tile b { font: 700 clamp(1.75rem, 6vw, 2.25rem)/1.05 var(--tr-serif); color: var(--tr-rock-ink); }
.ts-tile span { font-size: var(--tr-fs-meta); color: var(--ink-soft); line-height: 1.3; }
.ts-tile:hover span, .ts-tile:focus-visible span { text-decoration: underline; }
.ts-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 6px; border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line); }
.ts-tabs a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border-radius: 14px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.ts-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: 0 6px 14px -8px rgba(30,15,40,.8); }
.ts-tabs a:not([aria-current]):hover { background: var(--surface); }
.ts-pane-h { font: 700 var(--tr-fs-h2)/1.2 var(--tr-serif); margin: 18px 0 2px; scroll-margin-top: 80px; }
.ts-pane-h:focus { outline: none; }
.ts-pane-h:focus-visible { outline: 2px solid var(--tr-rock); outline-offset: 4px; border-radius: 4px; }
.ts-pane-sub { color: var(--ink-soft); margin: 0 0 4px; }
.ts-chart-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tr-page .ts-chart h2 { margin: 0; }
.ts-tag { flex: none; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tr-draft); border: 1.5px dashed var(--tr-draft); border-radius: 6px; padding: 1px 6px; }
.ts-sub { color: var(--ink-soft); margin: 4px 0 0; }
.ts-key { margin: 8px 0 0; text-align: right; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-soft); }
.ts-bars { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.ts-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.ts-row { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; min-height: 44px; padding: 4px 6px; margin: -4px -6px; border-radius: 10px; cursor: pointer; }
.ts-row:hover { background: var(--surface-2); }
.ts-row:focus-visible { outline: 2px solid var(--tr-rock); outline-offset: 2px; }
.ts-row .ts-lab { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.ts-hint { margin: 8px 0 0; font-size: var(--tr-fs-src); color: var(--ink-soft); }
.ts-drill { margin-top: 8px; }
.ts-drill-back { min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; cursor: pointer; }
.ts-drill-h { margin: 6px 0 2px; font: 700 var(--tr-fs-h3)/1.25 var(--tr-serif); }
.ts-drill-h:focus { outline: none; }
.ts-drill-n { margin: 0 0 8px; color: var(--ink-soft); }
.ts-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ts-person { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 2px 4px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
a.ts-person:hover { background: var(--surface-2); }
.ts-person .cm-av { width: 36px; height: 36px; font-size: .8125rem; }
.ts-lab { font-size: 1rem; line-height: 1.3; }
.ts-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ts-val b { font-size: 1.0625rem; }
.ts-val span { color: var(--ink-soft); font-size: var(--tr-fs-meta); margin-left: 4px; }
.ts-track { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.ts-fill { display: block; height: 100%; border-radius: 999px; background: var(--tr-rock); }
.ts-split { margin-top: 10px; }
.ts-split-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 8px; font-size: 1rem; line-height: 1.3; }
.ts-split-nums > span { display: grid; align-content: start; gap: 2px; }
.ts-split-nums b { font: 700 2rem/1 var(--tr-serif); color: var(--tr-rock-ink); }
.ts-split-nums > span:last-child { text-align: right; justify-items: end; }
.ts-split-nums > span:last-child b { color: var(--ink); }
.ts-n { color: var(--ink-soft); font-size: var(--tr-fs-meta); }
.ts-split-bar { display: flex; gap: 3px; height: 14px; }
.ts-split-bar span { border-radius: 999px; background: var(--tr-rock); }
.ts-split-bar span:last-child { flex: 1; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.ts-note { font-size: var(--tr-fs-src); color: var(--ink-soft); margin: 10px 0 0; }
.ts-next { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; margin: 16px 0 4px; font-size: 1.0625rem; font-weight: 700; }
.ts-rules { margin: 26px 0 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.ts-rules h2 { margin: 0 0 6px; font-size: var(--tr-fs-h3); font-weight: 800; }
.ts-rules ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.ts-rules li { line-height: 1.45; }
.ts-source { margin: -6px 0 14px; font-size: var(--tr-fs-src); color: var(--ink-soft); }
.ts-cta { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tr-rock) 45%, var(--line));
  background: color-mix(in srgb, var(--tr-rock) 7%, var(--surface)); display: grid; gap: 6px; justify-items: start; }
.ts-cta-h { margin: 0; font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.ts-cta-sub { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.ts-cta .btn { margin-top: 4px; min-height: 44px; }
.ts-few { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--line); color: var(--ink-soft); line-height: 1.45; }
.ts-empty { margin: 0 0 16px; }
.ts-empty h2 { margin: 0 0 4px; font: 700 var(--tr-fs-h2)/1.2 var(--tr-serif); }
.ts-empty p { margin: 0; color: var(--ink-soft); }
.ts-loading { margin: 18px 0; color: var(--ink-soft); }
.ts-mode { margin: 18px 0 0; text-align: center; }
.ts-mode .tr-link { display: inline-flex; align-items: center; min-height: 44px; }
.ts-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; }
.ts-foot .tr-link { padding: 0; }
/* Wide windows: charts in two columns, top to bottom (bars 790 px long put the label far from its number), Next no wider than a button. */
@media (min-width: 900px) {
  .ts-charts { columns: 2; column-gap: 14px; margin-top: 10px; }
  .ts-charts > .card { break-inside: avoid; margin-top: 0; margin-bottom: 14px; }
  .ts-next { width: max-content; min-width: 260px; margin-inline: auto; padding: 0 28px; }
}
/* Phones: two big numbers a row, the four sections as a 2 x 2 pad (each half the width, easy for a thumb). */
@media (max-width: 560px) {
  .ts-tiles, .ts-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
