/* ==========================================================================
   The Paddock — channel page (ported from the sandbox mockup, 2026-11-22)

   Night top bar and channel masthead over the site's paper. Tokens follow
   meeting.css (--c-* values copied so the page stands alone).
   Sections: 1 tokens · 2 base · 3 top bar · 4 shell · 5 rail · 6 channel
   head · 7 stream · 8 messages · 9 composer · 10 race panel · 11 dialogs
   · 12 states · 13 responsive · 14 mockup controls
   ========================================================================== */

/* 1 ── tokens ──────────────────────────────────────────────────────────── */
:root {
  --pd-paper: #FAFAF7;
  --pd-card: #FFFFFF;
  --pd-warm: #F7F5EE;
  --pd-rule: #E7E5DD;
  --pd-rule-2: #D6D2C5;
  --pd-ink: #11151F;
  --pd-ink-2: #41474F;
  --pd-ink-3: #666B73;
  --pd-gold: #D4AF37;
  --pd-gold-deep: #C29E2C;
  --pd-gold-ink: #856510;
  --pd-gold-wash: #FAF1D7;
  --pd-gold-line: #E6D6A0;
  --pd-green: #1A7D4A;
  --pd-green-wash: #EDF5F0;
  --pd-red: #C0392B;
  --pd-red-wash: #FBEEEC;
  --pd-night: #0B0D14;
  --pd-night-2: #141824;
  --pd-night-3: #1E2331;
  --pd-night-line: rgb(255 255 255 / 9%);
  --pd-night-text: #C9CCD4;
  --pd-shadow-1: 0 1px 2px rgb(17 21 31 / 5%);
  --pd-shadow-2: 0 1px 2px rgb(17 21 31 / 4%), 0 6px 20px rgb(17 21 31 / 6%);
  --pd-shadow-3: 0 2px 6px rgb(17 21 31 / 8%), 0 18px 44px rgb(17 21 31 / 16%);
  --pd-serif: 'Playfair Display', Georgia, serif;
  --pd-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pd-cond: 'Barlow Condensed', 'DM Sans', sans-serif;
  --pd-top-h: 64px;
  --pd-rail-w: 284px;
  --pd-race-w: 344px;
  --pd-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 ── base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.pd {
  margin: 0;
  background: var(--pd-paper);
  color: var(--pd-ink);
  font: 400 15px/1.5 var(--pd-sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
:where(.pd) p { margin: 0; }
:where(.pd) :is(h1, h2) { margin: 0; }
:where(.pd) a { color: inherit; }
:where(.pd) button { font: inherit; color: inherit; cursor: pointer; }
:where(.pd) svg { width: 1em; height: 1em; flex: none; }
.pd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pd-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.pd-skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--pd-gold); color: var(--pd-ink); font-weight: 700; text-decoration: none;
}
.pd-skip:focus { top: 12px; }
.pd :focus-visible { outline: 2px solid var(--pd-gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.pd-live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #3DD68C; box-shadow: 0 0 0 0 rgb(61 214 140 / 55%);
  animation: pd-pulse 2.2s infinite;
}
@keyframes pd-pulse {
  70% { box-shadow: 0 0 0 7px rgb(61 214 140 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(61 214 140 / 0%); }
}

/* avatars */
.pd-av {
  --av: #41474F;
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--av) 78%, #fff) 0%, var(--av) 60%);
  color: #fff; font: 700 13px/1 var(--pd-sans); letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%), 0 1px 2px rgb(17 21 31 / 14%);
}
.pd-av--sm { width: 30px; height: 30px; font-size: 11px; }
.pd-av--xs { width: 20px; height: 20px; font-size: 8px; box-shadow: 0 0 0 2px var(--pd-paper); }
.pd-av--ghost { background: var(--pd-warm); color: var(--pd-ink-3); box-shadow: inset 0 0 0 1px var(--pd-rule); }
.pd-av--ghost svg { width: 18px; height: 18px; }

/* buttons */
.pd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
  font: 700 14px/1 var(--pd-sans); text-decoration: none; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.pd-btn:active { transform: translateY(1px); }
.pd-btn svg { width: 16px; height: 16px; }
.pd-btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.pd-btn--block { width: 100%; }
.pd-btn--gold {
  background: linear-gradient(180deg, #E2C04F 0%, var(--pd-gold) 55%, var(--pd-gold-deep) 100%);
  color: var(--pd-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 1px 2px rgb(133 101 16 / 30%);
}
.pd-btn--gold:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 4px 14px rgb(194 158 44 / 35%); }
.pd-btn--gold:disabled { background: var(--pd-rule); color: var(--pd-ink-3); box-shadow: none; cursor: not-allowed; }
.pd-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--pd-rule-2); }
.pd-btn--ghost:hover { background: var(--pd-warm); }

.pd-iconbtn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent;
}
.pd-iconbtn svg { width: 20px; height: 20px; }
.pd-iconbtn:hover { background: rgb(127 127 127 / 12%); }

.pd-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font: 700 11px/1.2 var(--pd-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--pd-ink-3);
}
.pd-link { color: var(--pd-gold-ink); font-weight: 700; font-size: 13px; text-underline-offset: 3px; }

/* 3 ── top bar ─────────────────────────────────────────────────────────── */
.pd-top {
  position: relative; z-index: 30;
  height: var(--pd-top-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px;
  background: var(--pd-night);
  color: #fff;
  border-bottom: 1px solid rgb(212 175 55 / 28%);
}
.pd-top__menu {
  display: none; border: 0; background: none; color: #fff;
  width: 40px; height: 40px; margin-left: -8px; border-radius: 50%;
}
.pd-top__menu svg { width: 22px; height: 22px; }
.pd-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.pd-brand img { border-radius: 50%; background: var(--pd-night-3); box-shadow: 0 0 0 1px rgb(212 175 55 / 45%); }
.pd-brand__text { display: grid; line-height: 1; }
.pd-brand__name { font: italic 700 21px/1 var(--pd-serif); letter-spacing: .005em; }
.pd-brand__sub { margin-top: 4px; font: 700 9.5px/1 var(--pd-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pd-gold); }

.pd-areas { display: flex; gap: 4px; margin-left: 18px; padding: 4px; border-radius: 999px; background: var(--pd-night-2); box-shadow: inset 0 0 0 1px var(--pd-night-line); }
.pd-area {
  padding: 8px 15px; border-radius: 999px; text-decoration: none;
  font: 600 13px/1 var(--pd-sans); color: var(--pd-night-text); white-space: nowrap;
  transition: color .15s, background .15s;
}
.pd-area:hover { color: #fff; }
.pd-area { display: inline-flex; align-items: center; gap: 6px; }
.pd-area svg { width: 15px; height: 15px; opacity: .7; }
.pd-area.is-current svg { color: var(--pd-gold-ink); opacity: 1; }
.pd-area.is-current { background: #fff; color: var(--pd-ink); }

.pd-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pd-online { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 13px; color: var(--pd-night-text); white-space: nowrap; }
.pd-online b { color: #fff; font-family: var(--pd-cond); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.pd-top .pd-iconbtn { color: #fff; }
.pd-dotcount {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--pd-gold); color: var(--pd-ink);
  font: 800 10px/17px var(--pd-sans); box-shadow: 0 0 0 2px var(--pd-night);
}
.pd-me .pd-av { box-shadow: 0 0 0 2px var(--pd-night), 0 0 0 3px rgb(212 175 55 / 70%); }

/* 4 ── shell ───────────────────────────────────────────────────────────── */
.pd-shell {
  height: calc(100dvh - var(--pd-top-h));
  display: grid;
  grid-template-columns: var(--pd-rail-w) minmax(0, 1fr) var(--pd-race-w);
}

/* 5 ── rail ────────────────────────────────────────────────────────────── */
.pd-rail {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--pd-night-2);
  color: var(--pd-night-text);
  border-right: 1px solid var(--pd-night-line);
}
.pd-rail__head { display: flex; align-items: center; gap: 6px; padding: 16px 14px 8px; }
.pd-rail__close { display: none; color: #fff; }
.pd-search {
  flex: 1; display: flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 12px; border-radius: 12px;
  background: var(--pd-night); box-shadow: inset 0 0 0 1px var(--pd-night-line);
  color: #8C919C;
}
.pd-search:focus-within { box-shadow: inset 0 0 0 1px rgb(212 175 55 / 60%); }
.pd-search svg { width: 17px; height: 17px; }
.pd-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  color: #fff; font: 400 13.5px var(--pd-sans);
}
.pd-search input::placeholder { color: #7D828D; }
.pd-rail__scroll { flex: 1; overflow-y: auto; padding: 6px 10px 16px; scrollbar-width: thin; scrollbar-color: var(--pd-night-3) transparent; }

.pd-group { padding-top: 14px; }
.pd-group__title {
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px 8px;
  font: 700 11px/1 var(--pd-sans); letter-spacing: .13em; text-transform: uppercase; color: #9499A4;
}
.pd-group__title svg { width: 14px; height: 14px; color: var(--pd-gold); }
.pd-group__title span { margin-left: auto; letter-spacing: .06em; font-weight: 600; text-transform: none; color: #6E7380; }
.pd-chans { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.pd-chan-link {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 6px 10px; border-radius: 10px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: #B4B8C1;
  transition: background .12s, color .12s;
}
.pd-chan-link:hover { background: rgb(255 255 255 / 5%); color: #fff; }
.pd-chan-link.is-unread { color: #fff; font-weight: 700; }
.pd-chan-link.is-done { color: #7D828D; }
.pd-chan-link.is-current { background: rgb(212 175 55 / 13%); color: #fff; font-weight: 700; }
.pd-chan-link.is-current::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--pd-gold);
}
.pd-chan-link__time {
  min-width: 40px; font: 700 15px/1 var(--pd-cond); letter-spacing: .03em; color: inherit;
}
.pd-chan-link.is-current .pd-chan-link__time { color: var(--pd-gold); }
.pd-chan-link__hash { width: 18px; text-align: center; color: #6E7380; font-weight: 500; }
.pd-chan-link__silk { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 35%)); }
.pd-chan-link__mono {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  background: var(--pd-night-3); font: 700 9px/1 var(--pd-sans); color: #B4B8C1;
}
.pd-chan-link__kind { margin-left: auto; font-size: 11px; font-weight: 500; color: #6E7380; }
.pd-chan-link__tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; }
.pd-chan-link__tag svg { width: 13px; height: 13px; }
.pd-chan-link__tag--live { color: #3DD68C; }
.pd-chan-link__tag--done { color: #7D828D; font-weight: 600; }
.pd-badge {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px;
  background: var(--pd-gold); color: var(--pd-ink);
  font: 800 11px/20px var(--pd-sans); text-align: center;
}
.pd-badge--quiet { background: var(--pd-night-3); color: #D7DAE0; }

.pd-rail__rules {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 12px 14px; padding: 12px 14px; border-radius: 12px;
  background: var(--pd-night); box-shadow: inset 0 0 0 1px var(--pd-night-line);
  font-size: 12.5px; line-height: 1.4; text-decoration: none; color: #9499A4;
}
.pd-rail__rules svg { width: 18px; height: 18px; margin-top: 1px; color: var(--pd-gold); }
.pd-rail__rules b { display: block; color: #fff; font-size: 13px; }
.pd-scrim { display: none; }

/* 6 ── channel head ────────────────────────────────────────────────────── */
.pd-chat { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--pd-paper); }
.pd-chanhead {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; gap: 24px;
  padding: 26px 28px 22px;
  background: var(--pd-night);
  color: #fff;
}
.pd-chanhead__art {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(11 13 20 / 94%) 0%, rgb(11 13 20 / 78%) 46%, rgb(11 13 20 / 45%) 100%),
    linear-gradient(0deg, rgb(11 13 20 / 70%) 0%, rgb(11 13 20 / 0%) 60%),
    url("../../races/meeting/img/masthead.737bf8cd5b2e.webp") 70% 40% / cover no-repeat;
}
.pd-chanhead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgb(212 175 55 / 0%), rgb(212 175 55 / 70%) 30%, rgb(212 175 55 / 0%));
}
.pd-chanhead__body { flex: 1; min-width: 0; }
.pd-chanhead .pd-kicker { color: #A9AEB8; }
.pd-kicker__ring { padding: 4px 8px; border-radius: 6px; background: rgb(212 175 55 / 16%); color: var(--pd-gold); box-shadow: inset 0 0 0 1px rgb(212 175 55 / 35%); }
.pd-chanhead__title { margin-top: 10px; font: 700 clamp(28px, 3.2vw, 40px)/1.02 var(--pd-serif); letter-spacing: -.01em; }
.pd-chanhead__title span { font-family: var(--pd-cond); font-weight: 700; color: var(--pd-gold); letter-spacing: .01em; }
.pd-chanhead__race { margin-top: 8px; font-size: 14px; color: #C9CCD4; }
.pd-chanhead__race span { margin: 0 4px; color: #6E7380; }
.pd-chanhead__side { display: grid; justify-items: end; gap: 12px; flex: none; }
.pd-off {
  display: grid; justify-items: end;
  padding: 8px 14px 9px; border-radius: 12px;
  background: rgb(255 255 255 / 6%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
  backdrop-filter: blur(6px);
}
.pd-off__label { font: 700 10.5px/1 var(--pd-sans); letter-spacing: .16em; text-transform: uppercase; color: #A9AEB8; }
.pd-off__clock { margin-top: 4px; font: 700 34px/1 var(--pd-cond); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #fff; }
.pd-chanhead__acts { display: flex; align-items: center; gap: 12px; }
.pd-here { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #C9CCD4; }
.pd-here svg { width: 16px; height: 16px; }
.pd-chanhead .pd-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%); }
.pd-chanhead .pd-btn--ghost:hover { background: rgb(255 255 255 / 8%); }
.pd-chanhead .pd-btn--ghost[aria-pressed="true"] svg { color: var(--pd-gold); }

.pd-tabs { display: none; }

.pd-offbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 28px; background: var(--pd-gold-wash); border-bottom: 1px solid var(--pd-gold-line);
  font-size: 13.5px; color: var(--pd-ink-2);
}
.pd-offbar svg { width: 16px; height: 16px; color: var(--pd-gold-ink); }
.pd-offbar b { color: var(--pd-ink); }

/* 7 ── stream ──────────────────────────────────────────────────────────── */
.pd-stream { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; outline: none; }
.pd-msgs { list-style: none; margin: 0 auto; padding: 22px 0 18px; max-width: 860px; }

.pd-pinned {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  margin: 0 24px 22px; padding: 16px 18px 16px 16px; border-radius: 16px;
  background: linear-gradient(180deg, #FFFDF6 0%, var(--pd-gold-wash) 100%);
  box-shadow: inset 0 0 0 1px var(--pd-gold-line), var(--pd-shadow-1);
}
.pd-pinned__pin { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; color: var(--pd-gold-ink); }
.pd-pinned__fox { border-radius: 50%; background: var(--pd-night); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--pd-gold); }
.pd-pinned__who { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14.5px; }
.pd-pinned__who span { margin-left: 4px; font: 700 10.5px/1 var(--pd-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pd-gold-ink); }
.pd-pinned__text { margin-top: 4px; padding-right: 20px; color: var(--pd-ink-2); font-size: 14.5px; }
.pd-verified { width: 16px !important; height: 16px !important; color: var(--pd-gold); }

.pd-day { display: flex; align-items: center; gap: 14px; margin: 6px 24px 10px; }
.pd-day::before, .pd-day::after { content: ""; flex: 1; height: 1px; background: var(--pd-rule); }
.pd-day span { font: 700 11px/1 var(--pd-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pd-ink-3); }

/* 8 ── messages ────────────────────────────────────────────────────────── */
.pd-msg {
  position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px;
  padding: 10px 24px 10px; border-radius: 0;
  transition: background .2s;
}
.pd-msg:hover, .pd-msg:focus-within { background: rgb(17 21 31 / 2.5%); }
.pd-msg__main { min-width: 0; }
.pd-msg__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-bottom: 2px; }
.pd-msg__name { font-weight: 800; font-size: 14.5px; letter-spacing: -.005em; }
.pd-msg__did { font-size: 13.5px; color: var(--pd-ink-3); }
.pd-msg time { font: 600 13px/1 var(--pd-cond); letter-spacing: .04em; color: #8C9098; font-variant-numeric: tabular-nums; }
.pd-msg__text { font-size: 15px; line-height: 1.55; color: var(--pd-ink); overflow-wrap: anywhere; }
.pd-msg__text + .pd-msg__text { margin-top: 4px; }
.pd-rank {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 5px;
  background: var(--pd-gold-wash); box-shadow: inset 0 0 0 1px var(--pd-gold-line);
  font: 700 11px/1 var(--pd-sans); color: var(--pd-gold-ink); cursor: help;
}
.pd-you {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 5px;
  background: #E8EEFB; font: 700 11px/1 var(--pd-sans); color: #2D5BBF;
}
.pd-entity {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 7px 0 3px; border-radius: 6px; vertical-align: baseline;
  background: var(--pd-warm); box-shadow: inset 0 0 0 1px var(--pd-rule);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.pd-entity:hover { background: var(--pd-gold-wash); box-shadow: inset 0 0 0 1px var(--pd-gold-line); }
.pd-entity img { width: 18px; height: 18px; object-fit: contain; vertical-align: -3px; }
.pd-mention { padding: 0 3px; border-radius: 4px; background: #E8EEFB; color: #2D5BBF; font-weight: 700; }
.pd-mention--me { background: var(--pd-gold-wash); color: var(--pd-gold-ink); }
.pd-msg--mentions-me { background: linear-gradient(90deg, rgb(212 175 55 / 10%), rgb(212 175 55 / 0%) 70%); }
.pd-msg--mentions-me::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pd-gold);
}

.pd-quote {
  display: block; margin: 4px 0 6px; padding: 6px 10px; border-left: 3px solid var(--pd-rule-2);
  border-radius: 0 8px 8px 0; background: var(--pd-warm);
  font-size: 13.5px; color: var(--pd-ink-3); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-quote b { color: var(--pd-ink-2); margin-right: 6px; }

.pd-msg__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 7px; }
.pd-like {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px 0 9px; border: 0; border-radius: 999px;
  background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule);
  font: 700 13px/1 var(--pd-sans); color: var(--pd-ink-3);
  transition: background .15s, box-shadow .15s, color .15s;
}
.pd-like svg { width: 17px; height: 17px; transition: transform .25s var(--pd-ease); }
.pd-like:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--pd-gold-line); color: var(--pd-gold-ink); }
.pd-like[aria-pressed="true"] { background: var(--pd-gold-wash); box-shadow: inset 0 0 0 1px var(--pd-gold); color: var(--pd-gold-ink); }
.pd-like[aria-pressed="true"] svg { color: var(--pd-gold-deep); }
.pd-like.is-pop svg { animation: pd-pop .45s var(--pd-ease); }
.pd-like:disabled { cursor: default; opacity: .75; }
.pd-like__n { font-variant-numeric: tabular-nums; min-width: 1ch; }
.pd-like.is-bump .pd-like__n { animation: pd-bump .5s var(--pd-ease); }
@keyframes pd-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-10deg); } 100% { transform: scale(1); } }
@keyframes pd-bump { 0% { transform: translateY(5px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.pd-thread {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 6px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #2D5BBF; text-decoration: none;
}
.pd-thread:hover { background: #E8EEFB; }
.pd-thread__avs { display: inline-flex; }
.pd-thread__avs .pd-av + .pd-av { margin-left: -6px; }
.pd-thread__last { font-weight: 500; color: var(--pd-ink-3); }

.pd-msg__tools {
  position: absolute; top: -14px; right: 22px;
  display: flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--pd-card); box-shadow: var(--pd-shadow-2), inset 0 0 0 1px var(--pd-rule);
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .12s, transform .12s;
}
.pd-msg:hover .pd-msg__tools, .pd-msg:focus-within .pd-msg__tools { opacity: 1; transform: none; pointer-events: auto; }
.pd-msg__tools button { display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--pd-ink-3); }
.pd-msg__tools button:hover { background: var(--pd-warm); color: var(--pd-ink); }
.pd-msg__tools svg { width: 17px; height: 17px; }

/* tip card */
.pd-tipcard {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
  max-width: 520px; margin-top: 6px; padding: 14px 16px;
  border-radius: 14px; background: var(--pd-card);
  box-shadow: inset 0 0 0 1px var(--pd-rule), var(--pd-shadow-2);
  position: relative; overflow: hidden;
}
.pd-tipcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #E2C04F, var(--pd-gold-deep)); }
.pd-tipcard__silk { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 3px rgb(17 21 31 / 18%)); }
.pd-tipcard__horse { font: 700 20px/1.1 var(--pd-serif); }
.pd-tipcard__sub { margin-top: 4px; font-size: 12.5px; color: var(--pd-ink-3); }
.pd-tipcard__bet { display: grid; justify-items: end; gap: 3px; }
.pd-tipcard__type { font: 700 10.5px/1 var(--pd-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--pd-gold-ink); }
.pd-tipcard__price { font: 700 28px/1 var(--pd-cond); letter-spacing: .02em; }
.pd-tipcard__at { font-size: 11px; color: var(--pd-ink-3); }
.pd-tipcard__why {
  grid-column: 1 / -1; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--pd-rule-2);
  font: italic 400 14.5px/1.5 var(--pd-serif); color: var(--pd-ink-2);
}

.pd-msg--removed { padding-top: 6px; padding-bottom: 6px; align-items: center; }
.pd-msg--removed .pd-av { width: 32px; height: 32px; margin-left: 4px; }
.pd-msg--removed .pd-msg__text { font-size: 13.5px; font-style: italic; color: var(--pd-ink-3); }

.pd-notice {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  margin: 10px 24px; padding: 11px 14px; border-radius: 12px;
  background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule);
  font-size: 14px; color: var(--pd-ink-2);
}
.pd-notice__tag {
  padding: 5px 8px; border-radius: 6px; background: var(--pd-red-wash); color: var(--pd-red);
  font: 700 10.5px/1 var(--pd-sans); letter-spacing: .12em; text-transform: uppercase;
}
.pd-notice b { color: var(--pd-ink); }
.pd-notice time { font: 600 13px/1 var(--pd-cond); color: #8C9098; }

/* sending / held (author only) */
.pd-msg.is-sending .pd-msg__main { opacity: .55; }
.pd-msg__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pd-ink-3); }
.pd-msg__status svg { width: 14px; height: 14px; }
.pd-msg--held .pd-msg__text { color: var(--pd-ink-3); }
.pd-held {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--pd-warm); box-shadow: inset 0 0 0 1px var(--pd-rule-2);
  font-size: 13px; color: var(--pd-ink-2); max-width: 520px;
}
.pd-held svg { width: 16px; height: 16px; margin-top: 1px; color: var(--pd-gold-ink); }
.pd-held b { color: var(--pd-ink); }

.pd-msg.is-new { animation: pd-in .35s var(--pd-ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pd-newpill {
  position: absolute; left: 50%; bottom: 128px; z-index: 5; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
  background: var(--pd-ink); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: var(--pd-shadow-3);
  animation: pd-in .25s var(--pd-ease);
}
.pd-newpill svg { width: 16px; height: 16px; color: var(--pd-gold); }

/* 9 ── composer ────────────────────────────────────────────────────────── */
.pd-compose { padding: 0 24px 18px; background: linear-gradient(180deg, rgb(250 250 247 / 0%), var(--pd-paper) 22px); }
.pd-compose > * { max-width: 812px; margin-left: auto; margin-right: auto; }
.pd-typing {
  display: flex; align-items: center; gap: 8px; height: 26px; padding-left: 4px;
  font-size: 12.5px; color: var(--pd-ink-3); opacity: 0; transition: opacity .2s;
}
.pd-typing.is-on { opacity: 1; }
.pd-typing__dots { display: inline-flex; gap: 3px; }
.pd-typing__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--pd-ink-3); animation: pd-dot 1.2s infinite; }
.pd-typing__dots i:nth-child(2) { animation-delay: .15s; }
.pd-typing__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pd-dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }

.pd-compose__box {
  border-radius: 18px; background: var(--pd-card);
  box-shadow: inset 0 0 0 1px var(--pd-rule-2), var(--pd-shadow-2);
  transition: box-shadow .15s;
}
.pd-compose__box:focus-within { box-shadow: inset 0 0 0 1.5px var(--pd-gold), 0 0 0 4px rgb(212 175 55 / 14%), var(--pd-shadow-2); }
.pd-replying {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px 0 16px;
  font-size: 13px; color: var(--pd-ink-3);
}
.pd-replying > svg { width: 15px; height: 15px; color: #2D5BBF; }
.pd-replying b { color: var(--pd-ink); }
.pd-replying button { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--pd-warm); }
.pd-replying button svg { width: 14px; height: 14px; }
.pd-compose__row { display: flex; align-items: flex-end; gap: 8px; padding: 8px; }
.pd-compose__row textarea {
  flex: 1; min-width: 0; max-height: 160px; padding: 10px 4px; border: 0; outline: none; resize: none;
  background: none; font: 400 15px/1.45 var(--pd-sans); color: var(--pd-ink);
}
.pd-compose__row textarea::placeholder { color: #9A9EA6; }
.pd-compose__tip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border: 0; border-radius: 12px;
  background: var(--pd-gold-wash); color: var(--pd-gold-ink); font-weight: 800; font-size: 13.5px;
  box-shadow: inset 0 0 0 1px var(--pd-gold-line);
}
.pd-compose__tip svg { width: 16px; height: 16px; }
.pd-compose__tip:hover { background: #F6E7BC; }
.pd-compose__tip:disabled { opacity: .45; cursor: not-allowed; }
.pd-compose__send {
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: var(--pd-ink); color: #fff; transition: background .15s, opacity .15s;
}
.pd-compose__send svg { width: 19px; height: 19px; }
.pd-compose__send:not(:disabled):hover { background: #2A2F3D; }
.pd-compose__send:disabled { background: var(--pd-rule); color: #9A9EA6; cursor: default; }
.pd-compose__hint { display: flex; justify-content: space-between; padding: 7px 6px 0; font-size: 11.5px; color: #9A9EA6; }
.pd-compose__count.is-near { color: var(--pd-red); font-weight: 700; }

.pd-gate {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px;
  background: var(--pd-night); color: #fff; box-shadow: var(--pd-shadow-3);
  background-image: radial-gradient(80% 140% at 100% 0%, rgb(212 175 55 / 18%), rgb(212 175 55 / 0%) 60%);
}
.pd-gate img { border-radius: 50%; box-shadow: 0 0 0 2px var(--pd-gold); flex: none; }
.pd-gate__copy { flex: 1; min-width: 0; font-size: 13.5px; color: #C9CCD4; }
.pd-gate__title { font: italic 700 19px/1.2 var(--pd-serif); color: #fff; margin-bottom: 2px !important; }
.pd-gate__acts { display: flex; gap: 8px; flex: none; }
.pd-gate .pd-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 28%); }
.pd-gate .pd-btn--ghost:hover { background: rgb(255 255 255 / 8%); }

/* 10 ── race panel ─────────────────────────────────────────────────────── */
.pd-race { min-height: 0; background: var(--pd-warm); border-left: 1px solid var(--pd-rule); }
.pd-race__scroll { height: 100%; overflow-y: auto; padding: 18px 18px 28px; display: flex; flex-direction: column; gap: 16px; }
.pd-race section { flex: none;  border-radius: 16px; background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule), var(--pd-shadow-1); }

.pd-mytip { padding: 16px; }
.pd-mytip__title {
  display: flex; align-items: center; justify-content: space-between;
  font: 700 11px/1 var(--pd-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pd-gold-ink);
}
.pd-mytip__text { margin: 8px 0 14px !important; font-size: 13.5px; color: var(--pd-ink-2); }
.pd-mytip__stamp { display: inline-flex; align-items: center; gap: 5px; letter-spacing: .04em; color: var(--pd-ink-3); font-family: var(--pd-cond); font-size: 13px; }
.pd-mytip__stamp svg { width: 12px; height: 12px; }
.pd-mytip__horse { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pd-mytip__horse img { width: 44px; height: 44px; object-fit: contain; }
.pd-mytip__horse b { display: block; font: 700 18px/1.15 var(--pd-serif); }
.pd-mytip__horse small { font-size: 12.5px; color: var(--pd-ink-3); }

.pd-field { padding: 6px 0 12px; overflow: hidden; }
.pd-field__head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px 8px; }
.pd-field__head h2, .pd-who h2 { font: 700 18px/1.2 var(--pd-serif); }
.pd-field__head p { font-size: 12.5px; color: var(--pd-ink-3); }
.pd-field__head b { font-family: var(--pd-cond); font-size: 15px; color: var(--pd-ink); }
.pd-runners { list-style: none; margin: 0; padding: 0; }
.pd-runner {
  display: grid; grid-template-columns: 18px 34px minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
  padding: 9px 16px; border-top: 1px solid var(--pd-rule);
}
.pd-runner__no { font: 700 14px/1 var(--pd-cond); color: var(--pd-ink-3); text-align: center; }
.pd-runner__silk { width: 34px; height: 34px; object-fit: contain; }
.pd-runner__name { display: block; font-weight: 800; font-size: 14px; line-height: 1.2; text-decoration: none; }
.pd-runner__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-runner__jt { display: block; font-size: 11.5px; color: var(--pd-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-runner__price { font: 700 19px/1 var(--pd-cond); text-align: right; }
.pd-runner__bar { grid-column: 3 / -1; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pd-runner__track { flex: 1; height: 5px; border-radius: 999px; background: var(--pd-warm); overflow: hidden; }
.pd-runner__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pd-gold-deep), #E2C04F); transition: width .5s var(--pd-ease); }
.pd-runner__pct { min-width: 30px; text-align: right; font: 700 12px/1 var(--pd-cond); color: var(--pd-ink-3); letter-spacing: .03em; }
.pd-runner.is-mine { background: linear-gradient(90deg, var(--pd-gold-wash), rgb(250 241 215 / 0%)); }
.pd-runner.is-mine .pd-runner__name::after { content: "Your tip"; display: inline-block; white-space: nowrap; margin-left: 6px; padding: 2px 5px; border-radius: 4px; background: var(--pd-gold); font: 800 9.5px/1 var(--pd-sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.pd-runner.is-nr { opacity: .55; }
.pd-runner.is-nr .pd-runner__name { text-decoration: line-through; }
.pd-runner.is-nr .pd-runner__price { font: 800 11px/1 var(--pd-sans); letter-spacing: .08em; color: var(--pd-red); }
.pd-field__note { padding: 12px 16px 2px; border-top: 1px solid var(--pd-rule); font-size: 11.5px; line-height: 1.45; color: var(--pd-ink-3); }

.pd-who { padding: 16px; }
.pd-who__sub { margin-top: 4px !important; font-size: 12px; color: var(--pd-ink-3); }
.pd-board { list-style: none; margin: 12px 0 12px; padding: 0; display: grid; gap: 8px; }
.pd-board li { display: grid; grid-template-columns: 16px 30px 1fr auto; gap: 10px; align-items: center; }
.pd-board__pos { font: 700 15px/1 var(--pd-cond); color: var(--pd-gold-ink); text-align: center; }
.pd-board__name { font-weight: 700; font-size: 13.5px; line-height: 1.15; }
.pd-board__name small { display: block; font-weight: 500; font-size: 11.5px; color: var(--pd-ink-3); }
.pd-board__sr { font: 700 19px/1 var(--pd-cond); }

/* 11 ── dialogs, toast ─────────────────────────────────────────────────── */
.pd-sheet {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px);
  padding: 0; border: 0; border-radius: 22px;
  background: var(--pd-card); color: var(--pd-ink);
  box-shadow: var(--pd-shadow-3);
}
.pd-sheet--sm { width: min(440px, calc(100vw - 24px)); }
.pd-sheet::backdrop { background: rgb(11 13 20 / 55%); backdrop-filter: blur(3px); }
.pd-sheet[open] { animation: pd-sheet .28s var(--pd-ease); }
@keyframes pd-sheet { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.pd-sheet__form { display: grid; gap: 16px; padding: 20px 22px 20px; }
.pd-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pd-sheet__head h2 { margin-top: 6px; font: 700 26px/1.1 var(--pd-serif); }
.pd-sheet__head .pd-iconbtn { margin: -6px -8px 0 0; }
.pd-sheet fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.pd-pick__list { display: grid; gap: 6px; max-height: 312px; overflow-y: auto; padding: 2px; }
.pd-pick__opt { position: relative; }
.pd-pick__opt input { position: absolute; opacity: 0; inset: 0; }
.pd-pick__opt label {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 14px 8px 10px; border-radius: 12px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--pd-rule); transition: box-shadow .12s, background .12s;
}
.pd-pick__opt label:hover { background: var(--pd-paper); }
.pd-pick__opt img { width: 36px; height: 36px; object-fit: contain; }
.pd-pick__opt b { display: block; font-size: 14.5px; }
.pd-pick__opt small { font-size: 12px; color: var(--pd-ink-3); }
.pd-pick__opt span:last-child { font: 700 20px/1 var(--pd-cond); }
.pd-pick__opt input:checked + label { background: var(--pd-gold-wash); box-shadow: inset 0 0 0 2px var(--pd-gold); }
.pd-pick__opt input:focus-visible + label { outline: 2px solid var(--pd-gold); outline-offset: 2px; }
.pd-pick__opt input:disabled + label { opacity: .45; cursor: not-allowed; }

.pd-seg { display: flex; gap: 6px; align-items: center; }
.pd-seg legend { float: left; margin-right: 12px; font-size: 13px; font-weight: 700; color: var(--pd-ink-2); }
.pd-seg label { position: relative; flex: 1; }
.pd-seg input { position: absolute; opacity: 0; inset: 0; }
.pd-seg span {
  display: grid; place-items: center; height: 40px; border-radius: 10px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--pd-rule-2); font-weight: 700; font-size: 14px;
}
.pd-seg input:checked + span { background: var(--pd-ink); color: #fff; box-shadow: none; }
.pd-seg input:focus-visible + span { outline: 2px solid var(--pd-gold); outline-offset: 2px; }

.pd-why { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--pd-ink-2); }
.pd-why small { font-weight: 500; color: var(--pd-ink-3); }
.pd-why textarea {
  padding: 10px 12px; border: 0; border-radius: 12px; resize: vertical; outline: none;
  box-shadow: inset 0 0 0 1px var(--pd-rule-2); font: 400 14.5px/1.45 var(--pd-sans); color: var(--pd-ink);
}
.pd-why textarea:focus { box-shadow: inset 0 0 0 1.5px var(--pd-gold); }
.pd-sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--pd-rule); }
.pd-sheet__foot p { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--pd-ink-3); }
.pd-sheet__foot p svg { width: 14px; height: 14px; margin-top: 2px; }

.pd-reasons { display: grid; gap: 6px; }
.pd-reasons label { position: relative; }
.pd-reasons input { position: absolute; opacity: 0; inset: 0; }
.pd-reasons span { display: block; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--pd-rule); cursor: pointer; font-weight: 600; font-size: 14px; }
.pd-reasons input:checked + span { background: var(--pd-gold-wash); box-shadow: inset 0 0 0 2px var(--pd-gold); }
.pd-reasons input:focus-visible + span { outline: 2px solid var(--pd-gold); outline-offset: 2px; }

.pd-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--pd-ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--pd-shadow-3);
  animation: pd-in .25s var(--pd-ease);
}

/* 12 ── states ─────────────────────────────────────────────────────────── */
body[data-auth="in"] .pd-only-out,
body[data-auth="out"] .pd-only-in { display: none !important; }
body[data-race="open"] .pd-when-off,
body[data-race="off"] .pd-when-open { display: none !important; }
body[data-race="off"] .pd-off__clock { color: var(--pd-gold); }
body[data-race="off"] .pd-off { background: rgb(212 175 55 / 12%); box-shadow: inset 0 0 0 1px rgb(212 175 55 / 40%); }
body[data-auth="out"] .pd-msg__tools button[data-act="reply"] { display: none; }
/* a visitor is nobody in the stream: no "You", no gold mention row */
body[data-auth="out"] .pd-you { display: none; }
body[data-auth="out"] .pd-msg--mentions-me { background: none; }
body[data-auth="out"] .pd-msg--mentions-me::before { content: none; }
body[data-auth="out"] .pd-mention--me { background: #E8EEFB; color: #2D5BBF; }

/* 13 ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1279px) {
  :root { --pd-rail-w: 248px; --pd-race-w: 316px; }
  .pd-online { display: none; }
}

/* tablet: race panel becomes a tab */
@media (max-width: 1099px) {
  .pd-shell { grid-template-columns: var(--pd-rail-w) minmax(0, 1fr); }
  .pd-tabs {
    display: flex; gap: 4px; padding: 8px 16px; background: var(--pd-card); border-bottom: 1px solid var(--pd-rule);
  }
  .pd-tab {
    flex: 1; height: 38px; border: 0; border-radius: 10px; background: none;
    font-weight: 700; font-size: 14px; color: var(--pd-ink-3);
  }
  .pd-tab[aria-selected="true"] { background: var(--pd-ink); color: #fff; }
  .pd-tab__n { margin-left: 4px; font-family: var(--pd-cond); opacity: .7; }
  .pd-race { display: none; }
  .pd-shell { position: relative; }
  /* the panel takes the stream's place under the channel head and tabs;
     paddock.js measures --pd-race-top */
  .pd-shell[data-view="runners"] .pd-race {
    display: block; position: absolute; z-index: 2;
    top: var(--pd-race-top, 0); bottom: 0; left: var(--pd-rail-w); right: 0; border: 0;
  }
  .pd-shell[data-view="runners"] .pd-stream,
  .pd-shell[data-view="runners"] .pd-compose,
  .pd-shell[data-view="runners"] .pd-newpill { visibility: hidden; }
  .pd-race__scroll { max-width: 640px; margin: 0 auto; }
}

/* phone + small tablet: rail becomes a drawer */
@media (max-width: 859px) {
  :root { --pd-top-h: 56px; }
  .pd-top { gap: 10px; padding: 0 12px; }
  .pd-top__menu { display: grid; place-items: center; }
  .pd-areas { display: none; }
  .pd-brand img { width: 30px; height: 30px; }
  .pd-brand__name { font-size: 18px; }
  .pd-shell { grid-template-columns: minmax(0, 1fr); }
  .pd-shell[data-view="runners"] .pd-race { left: 0; }
  .pd-rail {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: min(320px, 86vw);
    transform: translateX(-100%); transition: transform .28s var(--pd-ease);
    box-shadow: var(--pd-shadow-3);
  }
  .pd-rail__close { display: grid; }
  body.is-rail-open .pd-rail { transform: none; }
  .pd-scrim {
    display: block; position: fixed; inset: 0; z-index: 40;
    background: rgb(11 13 20 / 50%); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  body.is-rail-open .pd-scrim { opacity: 1; pointer-events: auto; }
  /* compact head: the chat needs the height on a phone */
  .pd-chanhead { align-items: center; gap: 12px; padding: 12px 14px 13px; }
  .pd-chanhead .pd-kicker { display: none; }
  .pd-chanhead__title { margin-top: 0; font-size: 25px; }
  .pd-chanhead__race { margin-top: 5px; font-size: 12.5px; line-height: 1.4; }
  .pd-chanhead__race span { margin: 0 2px; }
  .pd-chanhead__side { display: flex; align-items: center; gap: 8px; }
  .pd-off { padding: 6px 10px 7px; border-radius: 10px; }
  .pd-off__label { font-size: 9px; letter-spacing: .12em; }
  .pd-off__clock { margin-top: 3px; font-size: 23px; }
  .pd-chanhead__acts .pd-btn { width: 38px; min-height: 38px; padding: 0; }
  .pd-chanhead__acts .pd-btn span { display: none; }
  .pd-here { display: none; }
  .pd-offbar { padding: 10px 16px; font-size: 13px; }
  .pd-msgs { padding-top: 16px; }
  .pd-pinned { margin: 0 12px 16px; padding: 14px; }
  .pd-pinned__fox { width: 34px; height: 34px; }
  .pd-pinned__text { font-size: 14px; }
  .pd-day { margin: 4px 16px 8px; }
  .pd-msg { grid-template-columns: 34px minmax(0, 1fr); column-gap: 11px; padding: 9px 14px; }
  .pd-msg > .pd-av { width: 34px; height: 34px; font-size: 11.5px; }
  .pd-msg__tools { right: 10px; }
  .pd-notice { margin: 8px 12px; grid-template-columns: 1fr auto; }
  .pd-notice__tag { justify-self: start; }
  .pd-notice p { grid-column: 1 / -1; grid-row: 2; }
  .pd-notice time { grid-column: 2; grid-row: 1; }
  .pd-tipcard { grid-template-columns: 42px minmax(0, 1fr) auto; column-gap: 11px; padding: 12px 13px; }
  .pd-tipcard__silk { width: 42px; height: 42px; }
  .pd-tipcard__horse { font-size: 17px; }
  .pd-tipcard__price { font-size: 24px; }
  .pd-compose { padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  .pd-compose__hint { display: none; }
  .pd-compose__tip span { display: none; }
  .pd-compose__tip { width: 40px; padding: 0; justify-content: center; }
  .pd-gate { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .pd-gate img { width: 38px; height: 38px; }
  .pd-gate__copy { flex-basis: calc(100% - 54px); }
  .pd-gate__acts { width: 100%; }
  .pd-gate__acts .pd-btn { flex: 1; }
  .pd-newpill { bottom: 104px; }
  .pd-race__scroll { padding: 14px 12px 24px; }
  .pd-sheet { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .pd-sheet[open] { animation-name: pd-up; }
  .pd-sheet__form { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
  .pd-sheet__foot { flex-direction: column; align-items: stretch; }
  .pd-sheet__foot .pd-btn { width: 100%; }
  .pd-pick__list { max-height: 38dvh; }
}
@keyframes pd-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* touch: tools always reachable, 44px targets */
@media (pointer: coarse) {
  /* tools sit at the right end of the Like row instead of floating on hover */
  .pd-msg__tools { top: auto; bottom: 8px; right: 10px; opacity: 1; transform: none; pointer-events: auto;
    padding: 0; background: none; box-shadow: none; }
  .pd-msg__tools button { width: 40px; height: 36px; color: #8C9098; }
  .pd-like { height: 36px; }
  .pd-chan-link { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .pd *, .pd *::before, .pd *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 14 ── live client additions ────────────────────────────────────────── */
.pd-conn {
  position: absolute; left: 50%; top: 10px; z-index: 6; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px;
  background: var(--pd-ink); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: var(--pd-shadow-2);
}
.pd-conn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E2A33A; animation: pd-pulse 1.6s infinite; }
.pd-older { display: flex; justify-content: center; padding: 6px 0 14px; }
.pd-older button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule); font-size: 13px; font-weight: 700; color: var(--pd-ink-3); }
.pd-older.is-loading button { opacity: .6; pointer-events: none; }
.pd-empty { margin: 40px 24px; padding: 28px; border-radius: 16px; text-align: center; color: var(--pd-ink-3); background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule); }
.pd-empty b { display: block; margin-bottom: 4px; font: 700 20px/1.2 var(--pd-serif); color: var(--pd-ink); }
.pd-held .pd-held__act { margin-left: 6px; border: 0; background: none; padding: 0; color: #2D5BBF; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.pd-msg__tools .is-danger:hover { color: var(--pd-red); background: var(--pd-red-wash); }
.pd-msg__tools .is-on { color: var(--pd-gold-ink); }
.pd-gate--age, .pd-gate--sanction, .pd-gate--locked { background-image: none; }
.pd-gate--locked .pd-gate__acts, .pd-gate--sanction .pd-gate__acts { display: none; }
.pd-panel-card { padding: 16px; }
.pd-panel-card h2 { font: 700 18px/1.2 var(--pd-serif); }
.pd-panel-card p { margin-top: 6px !important; font-size: 13.5px; color: var(--pd-ink-2); }
.pd-panel-card .pd-btn { margin-top: 12px; }
.pd-panel-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--pd-ink-2); display: grid; gap: 4px; }
.pd-statline { display: flex; gap: 18px; margin-top: 12px; }
.pd-statline div { display: grid; }
.pd-statline b { font: 700 24px/1 var(--pd-cond); }
.pd-statline span { font-size: 11.5px; color: var(--pd-ink-3); }
.pd-pins { margin: 0 24px 18px; display: grid; gap: 8px; list-style: none; padding: 0; }
.pd-pins .pd-pinned { margin: 0; }
.pd-sheet textarea.pd-appeal { width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--pd-rule-2); font: 400 14.5px/1.45 var(--pd-sans); resize: vertical; }
.pd-me a { display: block; border-radius: 50%; }
.pd-top__home { font-size: 12.5px; font-weight: 700; color: var(--pd-night-text); text-decoration: none; white-space: nowrap; }
.pd-top__home:hover { color: #fff; }
@media (max-width: 1279px) { .pd-top__home { display: none; } }
@media (max-width: 859px) { .pd-conn { top: 6px; } }
img.pd-av--fox { object-fit: cover; background: var(--pd-night); padding: 0; }
a.pd-msg__name { color: inherit; text-decoration: none; }
a.pd-msg__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-pinned__text .pd-msg__text { margin: 0; }
.pd-group__empty { padding: 4px 12px 8px; font-size: 13px; color: var(--pd-night-text); }

/* 15 ── notifications, mentions, mute (PR 7) ───────────────────────── */
.pd-bell { position: relative; }
.pd-bell .pd-dotcount[hidden] { display: none; }
.pd-bellpanel {
  position: absolute; right: -8px; top: calc(100% + 10px); z-index: 40; width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 560px); display: flex; flex-direction: column; border-radius: 16px;
  background: var(--pd-card); color: var(--pd-ink); box-shadow: var(--pd-shadow-2), inset 0 0 0 1px var(--pd-rule);
}
.pd-bellpanel[hidden] { display: none; }
.pd-bellpanel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--pd-rule); }
.pd-bellpanel__head b { font: 700 18px/1.2 var(--pd-serif); }
.pd-bellpanel__head button { border: 0; background: none; font-size: 12.5px; font-weight: 700; color: #2D5BBF; }
.pd-bellpanel__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.pd-bellpanel__list a { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.pd-bellpanel__list a:hover { background: var(--pd-paper, #F6F3EC); }
.pd-bellpanel__list a.is-unread { background: var(--pd-gold-wash); }
.pd-bellpanel__list .pd-av { width: 32px; height: 32px; font-size: 12px; }
.pd-bellpanel__list p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.pd-bellpanel__list small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--pd-ink-3); }
.pd-bellpanel__empty { padding: 22px 12px; text-align: center; font-size: 13.5px; color: var(--pd-ink-3); }
.pd-bellprefs { border-top: 1px solid var(--pd-rule); padding: 10px 16px 14px; font-size: 13px; }
.pd-bellprefs summary { cursor: pointer; font-weight: 700; color: var(--pd-ink-2); }
.pd-bellprefs label { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.pd-bellprefs p { margin: 8px 0 0; font-size: 12px; color: var(--pd-ink-3); }
.pd-mentions {
  list-style: none; margin: 0 0 8px; padding: 6px; border-radius: 12px; background: var(--pd-card);
  box-shadow: var(--pd-shadow-2), inset 0 0 0 1px var(--pd-rule); max-width: 320px;
}
.pd-mentions[hidden] { display: none; }
.pd-mentions li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; }
.pd-mentions li small { color: var(--pd-ink-3); }
.pd-mentions li[aria-selected="true"], .pd-mentions li:hover { background: var(--pd-gold-wash); }
.pd-mentions .pd-av { width: 26px; height: 26px; font-size: 10.5px; }

/* 16 ── the Form Room's form panel (PR 9) ─────────────────────────────── */
.pd-form h3 { margin: 16px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pd-ink-3); }
.pd-form__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; }
.pd-form__stats div { display: grid; padding: 8px; border-radius: 10px; background: var(--pd-paper); }
.pd-form__stats dt { font-size: 11px; color: var(--pd-ink-3); }
.pd-form__stats dd { margin: 2px 0 0; font: 700 22px/1 var(--pd-cond); }
.pd-form__stats small { font-size: 10.5px; color: var(--pd-ink-3); }
.pd-form__facts { margin-top: 10px !important; }
.pd-form__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pd-form__rows li > a, .pd-form__rows li:not(:has(> a)) { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 7px 9px; border-radius: 9px; color: inherit; text-decoration: none; }
.pd-form__rows li > a:hover { background: var(--pd-paper); }
.pd-form__rows b { font-size: 13.5px; }
.pd-form__rows span { grid-column: 1; font-size: 12px; color: var(--pd-ink-3); }
.pd-form__rows em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 12px; color: var(--pd-ink-3); }
.pd-form__rows .is-win b { color: var(--pd-gold-ink); }
.pd-form__source { font-size: 11.5px !important; color: var(--pd-ink-3) !important; }

/* 17 ── search results in the rail (PR 10) ────────────────────────────── */
.pd-searchres { padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pd-searchres[hidden] { display: none; }

/* 18 -- board and explainer pages (PR 13) */
.pd-doc { display: block; min-height: 100vh; overflow: auto; background: var(--pd-paper); }
.pd-docbody { max-width: 760px; margin: 0 auto; padding: 36px 22px 64px; color: var(--pd-ink); font-size: 15.5px; line-height: 1.6; }
.pd-docbody h1 { margin: 6px 0 12px; font: 700 clamp(30px, 4vw, 42px)/1.1 var(--pd-serif); }
.pd-docbody h2 { margin: 28px 0 8px; font: 700 21px/1.2 var(--pd-serif); }
.pd-docbody ul { padding-left: 20px; display: grid; gap: 6px; }
.pd-boardtable { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 14px; background: var(--pd-card); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--pd-rule); }
.pd-boardtable th, .pd-boardtable td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--pd-rule); }
.pd-boardtable th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--pd-ink-3); }
.pd-boardtable td:first-child { font: 700 18px/1 var(--pd-cond); }
.pd-tipcard__silk--none { display: grid; place-items: center; border-radius: 12px; background: var(--pd-paper); box-shadow: inset 0 0 0 1px var(--pd-rule); font: 700 22px/1 var(--pd-cond); color: var(--pd-ink-3); filter: none; }

/* 19 ── threads (PR 15) ───────────────────────────────────────────────── */
/* the strip under a channel's header */
.pd-threads { flex: none; padding: 12px 28px 14px; background: var(--pd-card); border-bottom: 1px solid var(--pd-rule); }
.pd-threads__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-threads__title { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--pd-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pd-ink-2); }
.pd-threads__title svg { width: 17px; height: 17px; color: var(--pd-gold-ink); }
.pd-threads__n { padding: 3px 7px; border-radius: 999px; background: var(--pd-gold-wash); color: var(--pd-gold-ink); letter-spacing: .04em; font-size: 11px; }
.pd-threads__acts { display: flex; align-items: center; gap: 10px; }
.pd-threads__acts .pd-btn svg { width: 15px; height: 15px; }
.pd-threads__all { border: 0; background: none; padding: 6px 4px; font: 700 13px/1 var(--pd-sans); color: var(--pd-gold-ink); cursor: pointer; }
.pd-threads__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-threads__row { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd-threads__empty { grid-column: 1 / -1; font-size: 13.5px; color: var(--pd-ink-3); }

/* one thread, in the strip, the panel or the full list */
.pd-threaditem {
  display: grid; gap: 5px; height: 100%; padding: 10px 12px 11px; border-radius: 12px;
  background: var(--pd-paper); box-shadow: inset 0 0 0 1px var(--pd-rule);
  text-decoration: none; color: inherit; transition: box-shadow .12s, background .12s;
}
.pd-threaditem:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--pd-gold-line), var(--pd-shadow-2); }
.pd-threaditem:focus-visible { outline: 2px solid var(--pd-gold); outline-offset: 2px; }
.pd-threaditem__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 700 15px/1.25 var(--pd-serif); color: var(--pd-ink);
}
.pd-threaditem__pin { width: 13px; height: 13px; margin-right: 5px; vertical-align: -1px; color: var(--pd-gold-ink); }
.pd-threaditem__meta { font-size: 12px; color: var(--pd-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-threaditem__flag { margin-right: 6px; padding: 2px 6px; border-radius: 5px; background: var(--pd-gold-wash); color: var(--pd-gold-ink); font: 800 9.5px/1 var(--pd-sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.pd-threaditem.is-pinned { background: linear-gradient(180deg, #FFFDF6, var(--pd-gold-wash)); box-shadow: inset 0 0 0 1px var(--pd-gold-line); }
.pd-threaditem.is-held { opacity: .75; box-shadow: inset 0 0 0 1px var(--pd-rule-2); background: repeating-linear-gradient(135deg, var(--pd-paper) 0 8px, #F3F1EA 8px 16px); }

.pd-threadlist { list-style: none; margin: 0; padding: 2px; display: grid; gap: 8px; max-height: min(60dvh, 520px); overflow-y: auto; }
.pd-threadlist__empty { padding: 18px 4px; font-size: 14px; color: var(--pd-ink-3); }
.pd-panel-card .pd-threadlist--compact { margin: 12px 0 0; padding: 0; gap: 6px; max-height: none; font-size: inherit; }
.pd-threadlist--compact .pd-threaditem { padding: 9px 11px; }
.pd-threadlist--compact .pd-threaditem__title { font-size: 14px; }
.pd-seg--sm span { height: 34px; font-size: 13px; }
.pd-backbtn svg, .pd-morethreads .pd-btn svg { width: 15px; height: 15px; }

/* the "started a thread" card in the parent channel */
.pd-threadcard {
  position: relative; overflow: hidden;
  display: grid; gap: 6px; max-width: 560px; margin-top: 6px; padding: 14px 16px 13px 18px;
  border-radius: 14px; background: var(--pd-card); color: inherit; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--pd-rule), var(--pd-shadow-2);
  transition: box-shadow .15s, transform .15s var(--pd-ease);
}
.pd-threadcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #E2C04F, var(--pd-gold-deep)); }
.pd-threadcard:hover { box-shadow: inset 0 0 0 1px var(--pd-gold-line), var(--pd-shadow-3); transform: translateY(-1px); }
.pd-threadcard:focus-visible { outline: 2px solid var(--pd-gold); outline-offset: 2px; }
.pd-threadcard__kicker { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--pd-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pd-gold-ink); }
.pd-threadcard__kicker svg { width: 15px; height: 15px; }
.pd-threadcard__title { font: 700 20px/1.2 var(--pd-serif); color: var(--pd-ink); }
.pd-threadcard__excerpt { font-size: 14px; line-height: 1.45; color: var(--pd-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-threadcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 9px; border-top: 1px dashed var(--pd-rule-2); font-size: 12.5px; color: var(--pd-ink-3); }
.pd-threadcard__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--pd-ink); }
.pd-threadcard__go svg { width: 14px; height: 14px; transform: rotate(180deg); }

/* the thread page's header */
.pd-chanhead--thread .pd-chanhead__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; max-width: 30ch; }
.pd-chanhead--thread .pd-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-kicker__back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.pd-kicker__back svg { width: 13px; height: 13px; }
.pd-kicker__back:hover { background: rgb(212 175 55 / 26%); }
.pd-kicker__thread { display: inline-flex; align-items: center; gap: 6px; }
.pd-kicker__thread svg { width: 15px; height: 15px; }
.pd-thread-by { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.pd-thread-by a { color: #fff; font-weight: 700; }
.pd-thread-by b { color: #fff; }
.pd-av--xs { width: 22px; height: 22px; margin-right: 6px; font-size: 9px; }

/* the opening post dialog */
.pd-input {
  height: 44px; padding: 0 12px; border: 0; border-radius: 12px; outline: none;
  box-shadow: inset 0 0 0 1px var(--pd-rule-2); font: 600 15px/1 var(--pd-sans); color: var(--pd-ink);
}
.pd-input:focus { box-shadow: inset 0 0 0 1.5px var(--pd-gold); }
.pd-why small span { float: right; font-family: var(--pd-cond); font-size: 13px; }
.pd-sheet__error { padding: 10px 12px; border-radius: 10px; background: var(--pd-red-wash); color: var(--pd-red); font-size: 13.5px; font-weight: 600; }

@media (max-width: 1099px) {
  .pd-threads__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-threads__row li:nth-child(n+3) { display: none; }
}
@media (max-width: 859px) {
  .pd-threads { padding: 10px 12px 11px; }
  .pd-threads__row { display: flex; overflow-x: auto; gap: 8px; margin-top: 8px; padding-bottom: 2px; scroll-snap-type: x mandatory; }
  .pd-threads__row li { flex: 0 0 min(260px, 78vw); scroll-snap-align: start; }
  .pd-threads__row li:nth-child(n+3) { display: block; }
  .pd-threads__row .pd-threads__empty { flex-basis: 100%; }
  .pd-threaditem__title { font-size: 14px; }
  .pd-chanhead--thread { align-items: flex-start; }
  .pd-chanhead--thread .pd-kicker { display: flex; font-size: 10px; }
  .pd-chanhead--thread .pd-chanhead__title { margin-top: 8px; font-size: 20px; }
  .pd-threadcard__title { font-size: 17px; }
}

/* 20 ── thread moderator tools (PR 16) ─────────────────────────────────── */
.pd-modtools { display: flex; gap: 6px; padding-left: 12px; margin-left: 2px; border-left: 1px solid rgb(255 255 255 / 16%); }
.pd-modtools .pd-btn svg { width: 15px; height: 15px; }
.pd-modtools .pd-btn[aria-pressed="true"] svg { color: var(--pd-gold); }
.pd-chanhead .pd-btn--danger { color: #F3B3AA; box-shadow: inset 0 0 0 1px rgb(243 179 170 / 40%); }
@media (max-width: 859px) {
  .pd-modtools { padding-left: 8px; gap: 4px; }
}

/* 21 ── the Parade Ring (PR 17) ───────────────────────────────────────── */
.pd-parade { background: var(--pd-paper); }
.pd-paradehead { position: relative; isolation: isolate; overflow: hidden; background: var(--pd-night); color: #fff; }
.pd-paradehead__art {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(11 13 20 / 95%) 0%, rgb(11 13 20 / 80%) 50%, rgb(11 13 20 / 55%) 100%),
    linear-gradient(0deg, rgb(11 13 20 / 80%) 0%, rgb(11 13 20 / 0%) 70%),
    url("../../races/meeting/img/masthead.737bf8cd5b2e.webp") 60% 45% / cover no-repeat;
}
.pd-paradehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgb(212 175 55 / 0%), rgb(212 175 55 / 70%) 30%, rgb(212 175 55 / 0%)); }
.pd-paradehead__inner { max-width: 980px; margin: 0 auto; padding: 22px 24px 30px; }
.pd-paradehead__back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: #A9AEB8; text-decoration: none; }
.pd-paradehead__back:hover { color: #fff; }
.pd-paradehead__back svg { width: 14px; height: 14px; }
.pd-paradehead .pd-kicker__ring { display: inline-flex; align-items: center; gap: 6px; }
.pd-paradehead .pd-kicker__ring svg { width: 14px; height: 14px; }
.pd-paradehead__title { margin-top: 12px; font: 700 clamp(30px, 4vw, 46px)/1.04 var(--pd-serif); letter-spacing: -.01em; }
.pd-paradehead__sub { max-width: 60ch; margin-top: 10px; font-size: 15px; line-height: 1.5; color: #C9CCD4; }
.pd-paradesearch {
  display: flex; align-items: center; gap: 10px; max-width: 680px; margin-top: 22px; padding: 6px 6px 6px 16px;
  border-radius: 16px; background: #fff; box-shadow: var(--pd-shadow-3);
}
.pd-paradesearch > svg { flex: none; width: 20px; height: 20px; color: var(--pd-ink-3); }
.pd-paradesearch input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: none; font: 500 16px/1 var(--pd-sans); color: var(--pd-ink); }
.pd-paradesearch:focus-within { box-shadow: 0 0 0 3px rgb(212 175 55 / 55%), var(--pd-shadow-3); }

.pd-parade__body { max-width: 980px; margin: 0 auto; padding: 20px 24px 64px; }
.pd-parade__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.pd-parade__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pd-parade__tools .pd-btn svg { width: 15px; height: 15px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule-2);
  font: 600 13px/1 var(--pd-sans); color: var(--pd-ink-2); text-decoration: none; white-space: nowrap;
  transition: background .12s, box-shadow .12s, color .12s;
}
.pd-chip:hover { box-shadow: inset 0 0 0 1px var(--pd-gold-line); color: var(--pd-ink); }
.pd-chip.is-on { background: var(--pd-ink); color: #fff; box-shadow: none; }
.pd-chip svg { width: 13px; height: 13px; }
.pd-chip--channel { background: var(--pd-gold) !important; color: var(--pd-ink) !important; }
.pd-chips--quiet .pd-chip { height: 30px; padding: 0 11px; font-size: 12.5px; }
.pd-chips--quiet .pd-chip.is-on { background: var(--pd-gold-wash); color: var(--pd-gold-ink); box-shadow: inset 0 0 0 1px var(--pd-gold-line); }
.pd-sortsel { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--pd-ink-3); }
.pd-sortsel select { height: 32px; padding: 0 28px 0 10px; border: 0; border-radius: 10px; background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule-2); font: 600 13px/1 var(--pd-sans); color: var(--pd-ink); cursor: pointer; }

.pd-parade__count { margin: 22px 0 10px; font-size: 13.5px; color: var(--pd-ink-3); }
.pd-parade__count b { font: 700 17px/1 var(--pd-cond); color: var(--pd-ink); }
.pd-paradelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; transition: opacity .15s; }
.pd-paradelist[aria-busy="true"] { opacity: .55; }
.pd-paradeitem {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: center;
  border-radius: 16px; background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule), var(--pd-shadow-1);
  transition: box-shadow .15s, transform .15s var(--pd-ease);
}
.pd-paradeitem:hover { box-shadow: inset 0 0 0 1px var(--pd-gold-line), var(--pd-shadow-2); transform: translateY(-1px); }
.pd-paradeitem.is-pinned { background: linear-gradient(180deg, #FFFDF6, var(--pd-gold-wash)); box-shadow: inset 0 0 0 1px var(--pd-gold-line), var(--pd-shadow-1); }
.pd-paradeitem__link { display: grid; gap: 6px; padding: 15px 18px 14px; color: inherit; text-decoration: none; border-radius: 16px; }
.pd-paradeitem__link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.pd-paradeitem__link:focus-visible { outline: none; }
.pd-paradeitem__link:focus-visible::after { outline: 2px solid var(--pd-gold); outline-offset: 2px; }
.pd-paradeitem__where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--pd-ink-2); }
.pd-paradeitem__area { padding: 4px 7px; border-radius: 6px; background: var(--pd-warm); color: var(--pd-ink-3); font: 800 9.5px/1 var(--pd-sans); letter-spacing: .1em; text-transform: uppercase; }
.pd-paradeitem__area--commons { background: #EEF0F6; color: #4A5470; }
.pd-paradeitem__area--form { background: var(--pd-green-wash); color: var(--pd-green); }
.pd-paradeitem__area--ring { background: var(--pd-gold-wash); color: var(--pd-gold-ink); }
.pd-paradeitem__pin { display: inline-flex; align-items: center; gap: 4px; color: var(--pd-gold-ink); font: 800 9.5px/1 var(--pd-sans); letter-spacing: .1em; text-transform: uppercase; }
.pd-paradeitem__pin svg { width: 12px; height: 12px; }
.pd-paradeitem__title { font: 700 20px/1.22 var(--pd-serif); color: var(--pd-ink); }
.pd-paradeitem__excerpt { font-size: 14px; line-height: 1.45; color: var(--pd-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-paradeitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 5px; margin-top: 2px; font-size: 12.5px; color: var(--pd-ink-3); }
.pd-paradeitem__meta .pd-av { margin-right: 2px; }
.pd-paradeitem__replies { display: grid; justify-items: center; align-self: stretch; align-content: center; border-left: 1px solid var(--pd-rule); font-size: 11px; color: var(--pd-ink-3); }
.pd-paradeitem__replies b { font: 700 26px/1 var(--pd-cond); color: var(--pd-ink); }
.pd-paradeitem__replies.is-none b { color: var(--pd-rule-2); }

.pd-parade__empty { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 22px; border-radius: 16px; background: var(--pd-card); box-shadow: inset 0 0 0 1px var(--pd-rule); }
.pd-parade__empty[hidden] { display: none; }
.pd-parade__empty img { border-radius: 50%; background: var(--pd-night); }
.pd-parade__empty p { font-size: 14px; color: var(--pd-ink-2); }
.pd-parade__empty b { display: block; margin-bottom: 2px; font: 700 18px/1.2 var(--pd-serif); color: var(--pd-ink); }
.pd-parade__more { display: grid; justify-items: center; gap: 12px; margin-top: 20px; }
.pd-parade__more [hidden] { display: none; }
.pd-parade__older { font-size: 13px; color: var(--pd-ink-3); text-align: center; }
.pd-parade__older a { font-weight: 700; color: var(--pd-gold-ink); }

@media (max-width: 859px) {
  .pd-parade .pd-areas { display: none; }
  .pd-parade .pd-top__home { display: none; }
  .pd-paradehead__inner { padding: 14px 16px 22px; }
  .pd-paradehead__sub { font-size: 14px; }
  .pd-paradesearch { margin-top: 16px; padding-left: 12px; }
  .pd-paradesearch .pd-btn { padding: 0 12px; }
  .pd-parade__body { padding: 14px 12px 48px; }
  .pd-parade__bar { display: grid; }
  .pd-parade__bar > .pd-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 2px; }
  .pd-paradeitem { grid-template-columns: minmax(0, 1fr) 58px; }
  .pd-paradeitem__link { padding: 13px 14px 12px; }
  .pd-paradeitem__title { font-size: 17px; }
  .pd-paradeitem__replies b { font-size: 22px; }
}

/* 22 ── links into the Parade Ring (PR 18) ─────────────────────────────── */
.pd-threads__all { text-decoration: none; }
.pd-threads__all[hidden] { display: none; }
.pd-morethreads__all { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--pd-gold-ink); }

/* 23 ── lock-down banner (PR 19) ───────────────────────────────────────── */
.pd-lockdown { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 9px 12px; border-radius: 12px; background: var(--pd-gold-wash, #FAF1D7); color: var(--pd-gold-ink, #856510); font-size: 13px; font-weight: 600; line-height: 1.4; }
.pd-lockdown[hidden] { display: none; }
.pd-lockdown svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }
.pd-lockdown a { color: inherit; font-weight: 800; }
