/* Any vs Any — the site and the matchup page (site PDD §7.7; the Claude Design
   handoff's tokens and screens). One stylesheet for every page. The site is
   dark; .theme-light is the standalone no-poster page.
   The accent appears on exactly three kinds of thing: the "vs" in the
   wordmark, the "vs" in a matchup title (and the hero's "winner"), and the one
   primary action. */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ArchivoBlack-Regular.woff2) format("woff2");
}

:root {
  --ground: #131313;
  --ground-alt: #161616;
  --ground-footer: #0f0f0f;
  --placeholder: #1d1d1d;
  --ink: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.65);
  --muted-2: rgba(242, 242, 242, 0.55);
  --muted-3: rgba(242, 242, 242, 0.45);
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.12);
  --hair-3: rgba(255, 255, 255, 0.22);
  --accent: #ffb020;
  --on-accent: #131313;
  --card: transparent;
  --vote-bg: rgba(19, 19, 19, 0.6);
  --scrim-to: #131313;
  --header-bg: rgba(19, 19, 19, 0.88);
  --nav-ink: rgba(242, 242, 242, 0.7);
  --nav-active-bg: rgba(255, 255, 255, 0.1);
  --display: "Archivo Black", system-ui, sans-serif;
  --ui: system-ui, -apple-system, sans-serif;
  --r-pill: 999px;
  --r-btn: 14px;
  --r-card: 18px;
  --gutter: 24px;
  --max: 1180px;
  --prose: 760px;
}

.theme-light {
  --ground: #fbfaf7;
  --ink: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.6);
  --muted-2: rgba(26, 26, 26, 0.5);
  --muted-3: rgba(26, 26, 26, 0.45);
  --hair: rgba(26, 26, 26, 0.1);
  --hair-2: rgba(26, 26, 26, 0.12);
  --hair-3: rgba(26, 26, 26, 0.22);
  --card: #fff;
  --placeholder: #e4e1da;
  --vote-bg: #fff;
  --scrim-to: #fbfaf7;
  --ground-footer: #f3f1ec;
  --header-bg: rgba(251, 250, 247, 0.88);
  --nav-ink: rgba(26, 26, 26, 0.7);
  --nav-active-bg: rgba(26, 26, 26, 0.08);
}

@media (max-width: 639px) {
  :root {
    --gutter: 16px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main {
  flex: 1;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.accent {
  color: var(--accent);
}

.wordmark,
.wordmark-static {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  flex: none;
}

.eyebrow {
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.micro {
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ── Display type ──────────────────────────────────────────────────────── */

.display-hero,
.display-h1,
.display-h2,
.matchup-title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.display-hero {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
  margin-bottom: 22px;
}

.display-h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.96;
  margin-bottom: 28px;
}

.display-h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  margin-bottom: 44px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  height: 56px;
  padding: 0 26px;
  border-radius: var(--r-btn);
  border: 0;
  font: 700 16px var(--ui);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--hair-3);
  padding: 0 22px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--hair-3);
  height: 52px;
  width: 100%;
}

.btn-tertiary {
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 15px var(--ui);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-text {
  height: 56px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  font: 600 16px var(--ui);
  text-decoration: none;
  color: var(--ink);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.action-row.closing {
  gap: 20px;
  margin-top: 40px;
}

.action-row.centered {
  justify-content: center;
}

/* ── Site header: every page's, the matchup page's included (owner, 2026-10-09) ── */

/* The header's height (navigation round 5, PDD §7 "The layout queries"): 52 px in the phone layout, 64 at desktop.
   The two layouts are two literals, written the same way everywhere (the roadmap's Pre-work Q): the phone layout
   (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))), and desktop
   (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine). So 800–1023 px and a touch screen
   at 1024–1279 px take the phone layout; a touch screen from 1280 px takes desktop, as its sidebar does. */
:root {
  --header-h: 52px;
}

@media (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  :root {
    --header-h: 64px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.site-header-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-pill {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  font: 500 14px/1 var(--ui);
  color: var(--nav-ink);
  text-decoration: none;
}

.nav-pill.is-active {
  background: var(--nav-active-bg);
  color: var(--ink);
}

/* The phone layout's header (navigation round 5; Pre-work P and 7a3 before it): the wordmark and Sign in or the avatar;
   the sections are the tab bar's (the feed and shell section at the end of this file). The admin header's tabs hide here
   too (the one `.nav-pill` left in a site header but the Sign in pill, which the rule after the avatar's shows). */
@media (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))) {
  .nav-pill {
    display: none;
  }
}

/* 7d, 7e: a flow page's header is the wordmark alone, 64 px at every width (navigation round 5 leaves it as it was). */
.site-header.is-flow .site-header-bar {
  justify-content: flex-start;
  height: 64px;
}

/* ── Site pages ────────────────────────────────────────────────────────── */

.page-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 88px;
  width: 100%;
}

.page-main.prose {
  max-width: calc(var(--prose) + 2 * var(--gutter));
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

@media (max-width: 359px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-body {
  margin: 0 0 32px;
  font: 400 18px/1.5 var(--ui);
  color: rgba(242, 242, 242, 0.7);
  max-width: 460px;
  text-wrap: pretty;
}

/* The hero's two paragraphs (2026-10-31): the second carries the 32 px before the button. */
.hero-body:not(:last-of-type) {
  margin-bottom: 16px;
}

/* The Staff picks' tiles (the gallery's rules, kept for /explore/picks since
   feed slice 2): the top half of the poster, whatever its ratio. A hidden
   sizer copy at 50 % width sets the crop's height (half the natural height
   at full width); the visible image is absolute at full width, top-anchored. */
.thumb-frame {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
}

.sizer {
  width: 50%;
  visibility: hidden;
}

.sizer img {
  width: 100%;
  height: auto;
  display: block;
}

.thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.band {
  border-top: 1px solid var(--hair);
  background: var(--ground-alt);
}

.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 88px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.step-card {
  padding: 26px;
  border-radius: var(--r-card);
  border: 1px solid var(--hair-2);
}

.numeral {
  font-family: var(--display);
  font-size: 30px;
  margin-bottom: 14px;
}

.step-card-title {
  font: 700 18px/1.3 var(--ui);
  margin-bottom: 8px;
}

.step-card-body {
  font: 400 15px/1.5 var(--ui);
  color: var(--muted);
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.display-h1 + .picks-grid {
  margin-top: 12px;
}

.thumb {
  display: block;
  text-decoration: none;
  color: var(--ink);
}

.thumb-frame {
  border-radius: var(--r-btn);
}

.thumb-title {
  margin-top: 10px;
  font: 700 15px/1.3 var(--ui);
  text-wrap: pretty;
}

.about-body {
  font: 400 18px/1.6 var(--ui);
  color: rgba(242, 242, 242, 0.8);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  margin-top: 44px;
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--hair-2);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font: 400 15px/1.5 var(--ui);
}

.info-cell {
  flex: 1;
  min-width: 200px;
}

.info-label {
  font-weight: 700;
  margin-bottom: 4px;
}

.info-value {
  color: var(--muted);
}

.accent-link {
  color: var(--accent);
  text-decoration: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--hair-2);
  padding: 22px 0;
}

.faq-q {
  font: 700 18px/1.3 var(--ui);
  margin-bottom: 8px;
}

.faq-a {
  font: 400 16px/1.55 var(--ui);
  color: rgba(242, 242, 242, 0.7);
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-3);
  background: transparent;
  color: var(--ink);
  font: 600 13px var(--ui);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.legal-h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 6px;
}

.legal-updated {
  font: 400 14px var(--ui);
  color: rgba(242, 242, 242, 0.5);
  margin-bottom: 36px;
}

.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.legal-section h2 {
  font: 700 18px/1.3 var(--ui);
  margin-bottom: 8px;
}

.legal-section p {
  font: 400 16px/1.6 var(--ui);
  color: rgba(242, 242, 242, 0.75);
  white-space: pre-line;
}

.contact-card {
  padding: 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--hair-2);
  max-width: 520px;
}

.contact-operator {
  margin: 0 0 6px;
  font: 700 13px var(--ui);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-email {
  color: var(--accent);
  text-decoration: none;
  font: 600 20px var(--ui);
}

.contact-body {
  margin-top: 10px;
  font: 400 14px/1.5 var(--ui);
  color: var(--muted);
}

.install p,
.install li {
  font: 400 16px/1.6 var(--ui);
  color: rgba(242, 242, 242, 0.8);
}

.install h2 {
  font: 700 18px/1.3 var(--ui);
  margin: 32px 0 12px;
}

.install ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install .small {
  font-size: 14px;
  color: var(--muted);
}

.install code {
  font-size: 15px;
}

.install .display-h1 {
  margin-bottom: 18px;
}

.install .display-h1 + p {
  margin-bottom: 20px;
}

.install .btn {
  margin-bottom: 8px;
}

.not-found {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 96px var(--gutter) 120px;
  text-align: center;
}

.not-found-numeral {
  font-family: var(--display);
  font-size: clamp(80px, 16vw, 160px);
  line-height: 0.9;
}

.not-found h1 {
  margin: 18px 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.not-found p {
  margin: 0 0 28px;
  font: 400 17px/1.5 var(--ui);
  color: var(--muted);
}

.not-found .btn {
  height: 52px;
  font-size: 15px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--hair);
  background: var(--ground-footer);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--gutter) 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.footer-tagline {
  margin-top: 10px;
  font: 400 14px/1.5 var(--ui);
  color: var(--muted-2);
  max-width: 260px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: 500 14px var(--ui);
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-label {
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-3);
  margin-bottom: 4px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font: 400 13px/1.5 var(--ui);
  color: var(--muted-3);
}

/* ── The matchup page (frames 1a–1e, 1g) ───────────────────────────────── */

.matchup {
  padding-bottom: 40px;
}

.matchup-grid {
  display: flex;
  flex-direction: column;
}

.title-block {
  padding: 22px 20px 14px;
}

.title-block .eyebrow {
  margin-bottom: 10px;
}

.matchup-title {
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.content-col {
  padding: 0 var(--gutter);
}

.install-card {
  margin-top: 14px;
  padding: 20px;
  border-radius: var(--r-card);
  border: 1px solid var(--hair-2);
  background: var(--card);
}

.card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.05;
  margin-bottom: 6px;
}

.card-body {
  font: 400 15px/1.45 var(--ui);
  color: var(--muted);
  margin-bottom: 18px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  color: inherit;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 13px var(--ui);
  flex: none;
}

.theme-light .step-num {
  border-color: rgba(26, 26, 26, 0.3);
}

.step-text {
  flex: 1;
  font: 600 15px/1.3 var(--ui);
}

.step-sub {
  display: block;
  font: 400 13px/1.4 var(--ui);
  color: var(--muted-2);
  margin-top: 2px;
}

.step-chevron {
  color: var(--muted-2);
  font-size: 18px;
}

.step-accent {
  display: block;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
}

.step-accent .step-label {
  display: block;
  font: 700 11px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.step-accent .step-run {
  display: block;
  font: 700 18px/1.2 var(--ui);
}

.step-accent .step-sub {
  color: inherit;
  opacity: 0.8;
  font-size: 13.5px;
  margin-top: 6px;
}

/* The 1d block: dark whatever the page's theme (PDD §13). */
.no-poster {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 10px;
}

.no-poster-card {
  padding: 28px 22px;
  border-radius: var(--r-card);
  background: #131313;
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.no-poster-names {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.no-poster-a {
  flex: 1;
  text-align: right;
}

.no-poster-b {
  flex: 1;
}

.no-poster-vs {
  font-size: 30px;
}

.no-poster-line {
  font: 400 15px/1.45 var(--ui);
  color: rgba(242, 242, 242, 0.65);
  text-align: center;
  text-wrap: pretty;
}

.no-poster .install-card {
  margin-top: 0;
}

.is-no-poster .content-col {
  padding-top: 10px;
}

/* Desktop ≥ 900 px: the no-poster page's single 560 px column (the matchup
   page's two-column grid went with the vote gate in feed slice 4; the covered
   detail is one column at every width, below). */
@media (min-width: 900px) {
  .matchup-grid {
    display: grid;
    grid-template-columns: 560px;
    grid-template-rows: max-content 1fr;
    grid-template-areas:
      "title"
      "content";
    gap: 0 56px;
    justify-content: center;
    align-items: start;
    padding: 36px 40px 0;
  }
  .title-block {
    grid-area: title;
    padding: 8px 0 24px;
  }
  .title-block .eyebrow {
    margin-bottom: 14px;
  }
  .matchup-title {
    font-size: 52px;
    line-height: 0.96;
    letter-spacing: -0.02em;
  }
  .content-col {
    grid-area: content;
    padding: 0;
  }
  .install-card {
    margin-top: 14px;
  }
}

.install .small {
  margin-top: 12px;
}

/* ── The signed-in layer (accounts slice 3): the single column (2d, 4c, 4d, 3e, 5g),
   the fields, the account page, the delete dialog, the avatar, the 4g menu, 2i's
   empty state and the toast. The handoff: the phone layout stretched to one
   centred column, max-width 480px, inside the desktop header and footer. ── */

.page-main.single {
  width: 100%;
  max-width: calc(480px + 2 * var(--gutter));
  padding-top: 48px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
}

.single .display-h1 {
  font-size: 40px;
  line-height: 0.96;
  margin-bottom: 16px;
}

.single .lead {
  font: 400 16px/1.5 var(--ui);
  color: var(--muted);
  margin-bottom: 32px;
  text-wrap: pretty;
}

.stack-form {
  display: flex;
  flex-direction: column;
}

.stack-form .btn-primary {
  margin-top: 10px;
}

/* The email box's second option, Continue with email (2026-10-31). */
.signin-email .btn-secondary {
  margin-top: 10px;
}

/* In the sign-in sheets the divider sits tighter (the sheet's 52 px buttons). */
.sheet .divider-or {
  margin: 16px 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--hair-3);
  background: transparent;
  color: var(--ink);
  font: 400 16px var(--ui);
  outline: none;
}

.input::placeholder {
  color: var(--muted-3);
}

.input:focus-visible {
  border-color: var(--accent);
}

.input-group {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--accent);
  gap: 2px;
}

.input-group.is-invalid {
  border-color: #ff7a6b;
}

.input-group .input {
  height: auto;
  border: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}

.input-prefix {
  color: rgba(242, 242, 242, 0.5);
  font: 400 16px var(--ui);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.field-label {
  font: 700 15px var(--ui);
}

.field-note {
  font: 400 13px/1.4 var(--ui);
  color: var(--muted-2);
  margin: 10px 0 0;
}

.field-line {
  font: 400 13px/1.4 var(--ui);
  color: #ff7a6b;
  margin: 10px 0 0;
}

.field .field-note,
.field .field-line {
  margin-top: 0;
}

.stack-form .field-note,
.stack-form .field-line {
  margin-bottom: 14px;
}

.btn-light {
  background: var(--ink);
  color: var(--ground);
  gap: 10px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  flex: none;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: rgba(242, 242, 242, 0.4);
  font: 500 12px var(--ui);
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair-2);
}

.link-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

/* The password half (feed slice 8; boards 20, 01, 21): labelled fields, the
   field with its eye (shown by site.js), the two frame links, the expired box
   and Account's Password row. */
.signin-password .field-label {
  margin: 14px 0 8px;
}

.signin-password > .field-label:first-child {
  margin-top: 0;
}

.input-password {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 6px 0 18px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--hair-3);
}

.input-password:focus-within {
  border-color: var(--accent);
}

.input-password .input {
  height: auto;
  border: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}

.input-eye {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}

.input-eye[aria-pressed="true"] {
  color: var(--ink);
}

.input-eye[hidden] {
  display: none;
}

.signin-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
  font: 700 13px var(--ui);
  color: var(--muted-2);
}

.signin-links a {
  color: var(--accent);
  text-decoration: none;
}

.signin-alt {
  margin-top: 10px;
}

.password-expired {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--placeholder);
}

.password-expired-line {
  margin: 0;
  font: 700 14px var(--ui);
}

.password-expired .field-label {
  margin-bottom: 8px;
}

.password-expired .btn {
  margin-top: 10px;
}

.password-page .signin-password {
  margin-top: 8px;
}

.password-row .field-action {
  font: 700 13px var(--ui);
  color: var(--accent);
  text-decoration: none;
}

.footnote {
  margin-top: auto;
  padding-top: 32px;
  font: 400 13px/1.5 var(--ui);
  color: var(--muted-2);
  text-wrap: pretty;
}

/* 3e */

.account .display-h1 {
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 22px 0 4px;
}

.account .input {
  height: 52px;
  padding: 0 16px;
}

.back-link {
  align-self: flex-start;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: var(--r-pill);
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--ui);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
}

.chevron-left {
  font-size: 18px;
  line-height: 1;
}

.segmented {
  display: flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--hair);
}

.segmented button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--ui);
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}

.connections {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--hair-2);
  overflow: hidden;
  margin-top: 22px;
}

.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  font: 500 15px var(--ui);
  color: var(--ink);
}

.connection-row + .connection-row,
.connections form .connection-row {
  border-top: 1px solid var(--hair);
}

.connection-note {
  font: 400 13px var(--ui);
  color: rgba(242, 242, 242, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.row-button {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.chevron {
  color: rgba(242, 242, 242, 0.4);
}

.link-destructive {
  align-self: flex-start;
  margin-top: 22px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #ff7a6b;
  font: 500 14px var(--ui);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  cursor: pointer;
}

.link-destructive[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.btn-destructive {
  background: #c6382a;
  color: #fff;
}

.btn-destructive:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 5g: the dialog, dark as its frame; a full screen on a phone, a centred column on desktop. */

dialog.confirm-dialog {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  background: var(--ground);
  color: var(--ink);
}

dialog.confirm-dialog::backdrop {
  background: rgba(19, 19, 19, 0.55);
}

.confirm-dialog .stack-form {
  min-height: 100%;
  padding: 16px var(--gutter) 40px;
}

.confirm-dialog .kicker {
  margin-top: 32px;
}

.confirm-dialog .display-h1 {
  font-size: 38px;
  line-height: 0.96;
  margin-bottom: 16px;
}

.confirm-dialog .field-label {
  margin-bottom: 8px;
}

.confirm-dialog .btn-destructive {
  margin-top: 14px;
}

.confirm-dialog .btn-tertiary {
  margin-top: 12px;
}

.kicker {
  font: 600 12px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  dialog.confirm-dialog {
    width: min(480px, calc(100% - 48px));
    height: auto;
    max-height: calc(100% - 48px);
    margin: auto;
    border-radius: var(--r-card);
    border: 1px solid var(--hair-2);
  }
  .confirm-dialog .stack-form {
    padding: 20px 28px 32px;
  }
}

/* The header signed in (2h, 2i; Pre-work P since feed slice 2): the avatar after the tabs and search. */

.avatar {
  margin-left: 8px;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 14px var(--ui);
  color: var(--ink);
  text-decoration: none;
}

/* The header's avatar and Sign in pill (navigation round 5): the avatar 36 px in a 48 px target, the pill 40 px in 48. */
.site-nav .avatar,
.site-nav .sign-in-pill {
  position: relative;
}

.site-nav .avatar::after,
.site-nav .sign-in-pill::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: var(--r-pill);
}

.site-nav .sign-in-pill::after {
  inset: -4px -4px;
}

/* The own profile and its tabs (navigation round 5, PDD §7 "Header"): the avatar carries a ring. */
.site-nav .avatar.avatar-ring {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 379px) {
  .site-header-bar {
    gap: 6px;
  }
  .avatar {
    margin-left: 4px;
  }
}

/* 2i */

.empty-box {
  margin-top: 40px;
  padding: 36px 24px;
  border-radius: var(--r-card);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.empty-vs {
  font: 400 56px/1 var(--display);
  color: var(--accent);
  opacity: 0.5;
}

.empty-title {
  font: 700 18px/1.3 var(--ui);
}

.empty-body {
  margin: 0;
  font: 400 15px/1.5 var(--ui);
  color: var(--muted);
  text-wrap: pretty;
}

.empty-body b {
  color: var(--ink);
  font-weight: 600;
}

.empty-box .btn-ghost {
  margin-top: 8px;
  height: 48px;
  width: auto;
  padding: 0 20px;
  font-size: 15px;
}

/* The toast (the README: revert with a toast on failure); light, as 5i. */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: var(--r-btn);
  background: #fbfaf7;
  color: #1a1a1a;
  font: 500 15px/1.3 var(--ui);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

/* As a manual popover (site.js, where the API exists) the toast is in the top layer, above an open sheet: the UA's popover box is undone. */
.toast[popover] {
  top: auto;
  right: auto;
  inset-block-start: auto;
  inset-inline-end: auto;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  overflow: visible;
}

.toast[popover]:popover-open {
  display: block;
}

/* ── The matchup page by viewer (accounts slice 4; frames 3b, 5b, 3c/3g, 4f, 5a, 5e) ── */

/* 7a: the header's Sign in pill, signed out on every destination page (the
   handoff's turn 7, 2026-10-14; Pre-work P since feed slice 2). Desktop
   (7a1): a 40 px ghost pill 8 px after the search field. The phone layout
   (navigation round 5): the 40 px pill at the row's right, 13 / 700. */
.sign-in-pill {
  margin-left: 8px;
  border: 1px solid var(--hair-3);
  font: 700 14px var(--ui);
  color: var(--ink);
}

@media (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))) {
  .nav-pill.sign-in-pill {
    display: inline-flex;
    margin-left: 0;
    height: 40px;
    font-size: 13px;
  }
}

/* The controls row under the poster (board 07 since feed slice 4: ♥, Save,
   Share, Disagree?; the owner's ♥ and Share), shown once the detail is revealed. */
.controls-row {
  display: flex;
  gap: 8px;
  padding-top: 12px;
}

.controls-row .toggle-form {
  display: flex;
  min-width: 0;
}

.controls-row .toggle-form[data-toggle="save"] {
  flex: 1;
}

.controls-row .btn {
  height: 52px;
  font-size: 15px;
  min-width: 0;
}

.controls-row .share-btn {
  flex: 1;
  gap: 8px;
  padding: 0 16px;
}

.controls-row .save-btn,
.controls-row .add-to-list-btn {
  flex: 1;
  width: auto;
  padding: 0 12px;
}

.like-btn {
  flex: none;
  height: 52px;
  min-width: 52px;
  padding: 0 14px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--hair-3);
  background: transparent;
  color: var(--ink);
  font: 700 15px var(--ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.like-glyph {
  font-size: 20px;
  line-height: 1;
}

.like-btn[aria-pressed="true"],
.save-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.add-to-list-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* "Liked by a, b and 3 others" (members only), opening 5a. */
.liked-by {
  margin: 0;
  font: 400 13px/1.5 var(--ui);
  color: var(--muted-2);
}

.liked-by-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.liked-by b {
  color: var(--ink);
  font-weight: 600;
}

/* 3c: the Visibility card; the segmented control is 3e's. */
.visibility-card {
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--hair-2);
}

.visibility-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visibility-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.visibility-title {
  font: 700 15px var(--ui);
}

.visibility-note {
  font: 400 12px var(--ui);
  color: var(--muted-3);
}

.visibility-card .field-note {
  margin: 0;
}

/* A post's card has no form (link access follows the audience): the title and its note keep the form's 12 px gap. */
.visibility-card > .visibility-head + .field-note {
  margin-top: 12px;
}

@media (min-width: 900px) {
  .visibility-note {
    display: none;
  }
  .visibility-card .segmented {
    max-width: 360px;
  }
  .visibility-card .field-note {
    max-width: 460px;
    font-size: 14px;
  }
  .liked-by {
    font-size: 14px;
  }
}

/* The sheets (3b's sign-in gate, 5a, 5e, the pickers, the people sheet; every `dialog.sheet`): dark since 0.57.0 (the boards'
   #1d1d1d, 22 px corners, 16 px sides, 20 on the sign-in sheets), a bottom sheet on the phone, a centred dialog from 900 px
   (the README). The same dialog behaviour as 5g's confirm dialog, which keeps its own rules. */
dialog.sheet {
  border: 0;
  padding: 0;
  margin: auto 0 0;
  width: 100%;
  max-width: 100%;
  max-height: calc(100% - 48px);
  background: #1d1d1d;
  color: var(--ink);
  color-scheme: dark;
  border-radius: 22px 22px 0 0;
  overflow: auto;
}

dialog.sheet::backdrop {
  background: rgba(19, 19, 19, 0.55);
}

.sheet-body {
  display: flex;
  flex-direction: column;
  padding: 12px 16px 24px;
  margin: 0;
}

/* The sign-in sheets (3b, 22; FirstRunAndSignIn): 20 px sides. */
.sheet-signin .sheet-body {
  padding: 12px 20px 28px;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 18px;
}

.sheet-title {
  margin: 0 0 6px;
  font: 700 20px/1.2 var(--ui);
}

.sheet-text {
  margin: 0 0 18px;
  font: 400 15px/1.5 var(--ui);
  color: rgba(242, 242, 242, 0.7);
  text-wrap: pretty;
}

.sheet .btn {
  height: 52px;
  font-size: 16px;
}

.sheet .btn-dark {
  background: #f2f2f2;
  color: #131313;
}

.sheet .btn-outline {
  margin-top: 8px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.sheet .btn-tertiary {
  margin-top: 12px;
  height: 40px;
  color: rgba(242, 242, 242, 0.7);
  align-self: center;
}

.sheet-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #131313;
  max-height: 312px;
  overflow-y: auto;
}

.sheet-row {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  font: 600 15px var(--ui);
}

.sheet-row + .sheet-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-more {
  margin: 10px 0 0;
  font: 400 13px/1.4 var(--ui);
  color: var(--muted-2);
  text-align: center;
}

.sheet-list + .btn,
.sheet-more + .btn {
  margin-top: 14px;
}

@media (min-width: 900px) {
  dialog.sheet {
    margin: auto;
    width: min(440px, calc(100% - 48px));
    border-radius: 18px;
  }
  .sheet-handle {
    display: none;
  }
  .sheet-body,
  .sheet-signin .sheet-body {
    padding: 24px 28px 28px;
  }
}

/* The avatar's panel (navigation round 5, PDD §7 "The avatar's panel"): a `dialog.sheet`, the bottom sheet in the
   phone layout (capped to the 640 px column from 640 px, where the phone layout's pages are), 320 px dropped from the
   avatar at desktop over an undimmed page (a transparent backdrop; a click on it still closes). Its right edge is
   the avatar's: the header row's gutter inside its max width (1256 on a rails page from 1280, else the site's). */
@media (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))) {
  dialog.sheet.sheet-panel {
    margin: auto auto 0;
    width: 100%;
    max-width: 640px;
    border-radius: 22px 22px 0 0;
  }
}

@media (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  dialog.sheet.sheet-panel {
    --panel-row: var(--max);
    position: fixed;
    margin: 0;
    inset: calc(var(--header-h) + 6px) max(var(--gutter), calc((100% - var(--panel-row)) / 2 + var(--gutter))) auto auto;
    width: 320px;
    max-width: calc(100% - 2 * var(--gutter));
    max-height: calc(100% - var(--header-h) - 24px);
    border-radius: 18px;
    border: 1px solid var(--hair-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  dialog.sheet.sheet-panel::backdrop {
    background: transparent;
  }
  dialog.sheet.sheet-panel .sheet-body {
    padding: 12px 20px 16px;
  }
}

@media (min-width: 1280px) {
  body.has-rails dialog.sheet.sheet-panel {
    --panel-row: 1256px;
  }
}

/* Every sheet is dark (#1d1d1d), so on the one light page (the no-poster page) the panel and the header's sheet keep the
   dark theme's tokens (`:root`'s values, no new colour). */
.theme-light dialog.sheet.sheet-panel,
.theme-light dialog.sheet.sheet-signin {
  --ink: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.65);
  --muted-2: rgba(242, 242, 242, 0.55);
  --muted-3: rgba(242, 242, 242, 0.45);
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.12);
  --nav-active-bg: rgba(255, 255, 255, 0.1);
}

.panel-top {
  display: flex;
  justify-content: flex-end;
  margin: -4px -10px 0 0;
}

.panel-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: rgba(242, 242, 242, 0.7);
  cursor: pointer;
}

.panel-close:hover {
  color: var(--ink);
  background: var(--nav-active-bg);
}

.panel-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  text-decoration: none;
}

.panel-who-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel-who-name {
  font: 400 18px/1.15 var(--display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-who-sub {
  font: 400 13px/1.4 var(--ui);
  color: var(--muted);
}

.panel-rows {
  display: flex;
  flex-direction: column;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font: 600 16px/1.2 var(--ui);
  text-decoration: none;
}

.panel-row-label {
  flex: 1;
  min-width: 0;
}

.panel-count {
  font: 500 15px var(--ui);
  color: var(--muted);
}

.panel-row .chevron {
  color: var(--muted-3);
}

/* The six small links, the panel's and the header's sign-in sheet's. */
.panel-links {
  display: flex;
  flex-wrap: wrap;
  margin: 4px -8px 0;
  font: 500 14px/1.2 var(--ui);
}

.panel-links a {
  padding: 10px 8px;
  color: var(--muted);
  text-decoration: none;
}

.panel-links a:hover {
  color: var(--ink);
}

.panel-signout-form {
  margin: 0;
}

.panel-signout {
  min-height: 52px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 16px/1.2 var(--ui);
  text-align: left;
  cursor: pointer;
}

.panel-signout:hover {
  color: var(--ink);
}

/* 4f: the locked page, one centred column. */
.locked {
  padding-top: 48px;
}

.locked-vs {
  font-family: var(--display);
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 20px;
}

.locked .display-h1 {
  font-size: 38px;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.locked .lead {
  margin: 0 0 32px;
  font: 400 16px/1.5 var(--ui);
  color: var(--muted);
  text-wrap: pretty;
}

.locked-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.locked-actions .btn-ghost {
  height: 56px;
  font-size: 16px;
}

.account-line {
  margin: 0 0 4px;
  font: 500 14px var(--ui);
  color: var(--muted-2);
}

/* ── The collection and the lists (accounts slice 5; frames 2a, 2h, 2i, 2e, 2f, 2g, 3f, 5c, 5d, 5f, 5h) ──
   The 2h shell: the content column, and from 900 px a 240 px rail to its left
   (after it in the DOM, so a reader meets the page's own content first); the
   grid is two columns on the phone and four on desktop; a thumbnail is the
   top half of the poster, already cropped, over a placeholder box. */

.page-main.collection {
  padding-top: 40px;
}

.collection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.collection-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rail {
  display: none;
}

.collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.collection .display-h1 {
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}

.collection .eyebrow {
  margin-bottom: 10px;
}

/* 2a's chips: the boards' 34 px / 13 / 700 pills, the current one amber, as the feed's pills (0.57.0). */
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--ink);
  font: 700 13px var(--ui);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.chip[aria-current] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* The ghost pill (`+ New list`, 2f's Share): 34 px / 700 since 0.57.0. */
.pill-ghost {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--ink);
  font: 700 13px var(--ui);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.pill-ghost:disabled {
  opacity: 0.5;
  cursor: default;
}

/* The Lists row and the strip of 150 px tiles (2a). */
.lists-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 12px;
}

.lists-label {
  font: 700 15px var(--ui);
}

.list-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 4px;
}

.list-strip::-webkit-scrollbar {
  display: none;
}

.list-tile {
  flex: none;
  width: 150px;
  padding: 12px;
  border-radius: var(--r-btn);
  border: 1px solid var(--hair-2);
  background: var(--ground-alt);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile-thumbs {
  display: flex;
  gap: 4px;
  height: 44px;
}

.tile-thumb,
.tile-placeholder {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 6px;
  background: var(--placeholder);
  object-fit: cover;
  object-position: 50% 0;
  display: block;
}

.tile-name {
  font: 700 14px/1.2 var(--ui);
}

.tile-meta {
  font: 400 12px/1.3 var(--ui);
  color: var(--muted-2);
  margin-top: -7px;
}

/* The grid of cards: two columns on the phone (12/14 px), four from 900 px (20/24 px). */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding-top: 22px;
}

.saved-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  position: relative;
}

.saved-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.saved-thumb {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--placeholder);
  aspect-ratio: 4 / 3;
}

.saved-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  display: block;
}

/* The ♥ badge: 30 px, over the thumbnail's corner, accent when liked. */
.saved-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: rgba(19, 19, 19, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 242, 242, 0.35);
  font-size: 15px;
  line-height: 1;
}

.saved-badge.is-liked {
  color: var(--accent);
}

.saved-title {
  font: 700 13.5px/1.25 var(--ui);
  text-wrap: pretty;
}

.saved-title.is-struck {
  color: rgba(242, 242, 242, 0.4);
  text-decoration: line-through;
}

.saved-sub {
  font: 400 12px/1.3 var(--ui);
  color: var(--muted-2);
  margin-top: -5px;
}

.empty-filter {
  margin: 40px 0 0;
  font: 400 15px/1.5 var(--ui);
  color: var(--muted);
  text-align: center;
}

.collection-layout.is-empty .empty-box {
  margin-top: 40px;
}

/* The four chips fit one row on a 360 px phone. */
@media (max-width: 399px) {
  .chip {
    padding: 0 11px;
  }
}

/* 2g's 36 px `♥ Save` pill under a card. */
.save-pill {
  height: 36px;
  width: 100%;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--ink);
  font: 600 13px var(--ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.save-pill-glyph {
  font-size: 14px;
  line-height: 1;
}

.save-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.saved-card .toggle-form {
  display: flex;
  margin-top: auto;
}

/* A list page's head: the back link, Share and `···` (2f); the recipient's has the back link alone. */
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -8px 0 22px;
}

.list-back {
  height: 36px;
  padding: 0 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font: 600 14px var(--ui);
  text-decoration: none;
}

.list-back .chevron-left {
  font-size: 18px;
  line-height: 1;
}

.list-actions {
  display: flex;
  gap: 8px;
}

.more-btn,
.card-more {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--ink);
  font: 700 16px var(--ui);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.card-more {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(19, 19, 19, 0.6);
  backdrop-filter: blur(6px);
  border-color: transparent;
  font-size: 14px;
}

.list-meta {
  margin: 10px 0 0;
  font: 400 14px/1.4 var(--ui);
  color: var(--muted-2);
}

.list-footnote {
  margin: 26px 0 0;
  font: 400 13px/1.5 var(--ui);
  color: var(--muted-2);
  text-wrap: pretty;
}

/* 3f: the tombstone, a dashed 12 px box where the thumbnail was, the struck title under it. */
.tombstone-box {
  aspect-ratio: 1 / 1.1;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.tombstone-line {
  margin: 0;
  font: 400 13px/1.4 var(--ui);
  color: var(--muted-2);
}

.tombstone-remove {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--ink);
  font: 600 12px var(--ui);
  cursor: pointer;
}

/* The sheets' additions: the checkbox rows (2e, 5h), `+ New list`, the red Remove, the field (5c, 5d), the menu rows (5d). */
.check-list {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #131313;
  overflow: hidden;
  max-height: 336px;
  overflow-y: auto;
}

.check-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  font: 600 16px var(--ui);
  color: var(--ink);
  cursor: pointer;
}

.check-row + .check-row,
.check-row + .check-new {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.check-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.check-box {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #131313;
  font-size: 13px;
}

.check-input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-input:checked + .check-box::after {
  content: "✓";
}

.check-input:focus-visible + .check-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.check-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-meta {
  font: 400 13px var(--ui);
  color: var(--muted-2);
}

.check-new {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 15px var(--ui);
  text-align: left;
  cursor: pointer;
}

.check-plus {
  width: 22px;
  text-align: center;
  font-size: 18px;
  line-height: 1;
}

.check-list + .btn {
  margin-top: 14px;
}

.sheet-foot {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 16px 24px;
}

.sheet-remove {
  height: 44px;
  border: 0;
  background: transparent;
  color: #ff7a6b;
  font: 600 15px var(--ui);
  cursor: pointer;
}

.sheet .input {
  background: #131313;
  color: var(--ink);
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.18);
}

.sheet .input:focus {
  border-color: var(--accent);
}

/* The admin dialogs' fields on the dark sheet: the select's list and the Remove dialog's note. */
.sheet .admin-select option {
  color: var(--ink);
  background: #131313;
}

.sheet textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-btn);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #131313;
  color: var(--ink);
  font: 400 15px/1.4 var(--ui);
}

.sheet-note {
  margin: 8px 0 0;
  font: 400 13px/1.4 var(--ui);
  color: var(--muted-2);
}

.sheet .field-line {
  margin-top: 8px;
}

.sheet .sheet-note + .btn,
.sheet .input + .btn,
.sheet .field-line + .btn,
.sheet input[type="hidden"] + .btn {
  margin-top: 18px;
}

.menu-rename {
  display: flex;
  flex-direction: column;
  margin: 0 0 12px;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row .input {
  flex: 1;
  min-width: 0;
}

.input-row .btn {
  height: 52px;
  padding: 0 18px;
  font-size: 15px;
}

.menu-sheet-list {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #131313;
  overflow: hidden;
}

.menu-sheet-row {
  height: 56px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 16px var(--ui);
  text-align: left;
  cursor: pointer;
}

.menu-sheet-row + .menu-sheet-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-sheet-row.is-destructive {
  color: #ff7a6b;
}

/* 2h: the rail beside the content from 900 px; the grid's four columns. */
@media (min-width: 900px) {
  .collection-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }
  .collection-layout.is-empty {
    grid-template-columns: minmax(0, 1fr);
  }
  .collection-main {
    grid-column: 2;
    grid-row: 1;
  }
  .collection-layout.is-empty .collection-main {
    grid-column: 1;
  }
  .rail {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font: 500 15px var(--ui);
    align-self: start;
    position: sticky;
    top: 88px;
  }
  .rail-link,
  .rail-list {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .rail-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .rail-link[aria-current],
  .rail-list[aria-current] {
    background: var(--nav-active-bg);
  }
  .rail-count {
    font: 400 12px var(--ui);
    color: rgba(242, 242, 242, 0.4);
  }
  .rail-meta {
    font: 400 12px var(--ui);
    color: var(--muted-3);
  }
  .rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0 8px;
    padding: 0 12px;
  }
  .rail-label {
    font: 600 12px/1 var(--ui);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .rail-new {
    height: 28px;
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font: 600 13px var(--ui);
    text-decoration: none;
  }
  .collection .display-h1 {
    font-size: 44px;
    line-height: 0.96;
    letter-spacing: -0.02em;
  }
  .collection .eyebrow {
    margin-bottom: 12px;
  }
  .chips {
    padding-top: 0;
  }
  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    padding-top: 32px;
  }
  .saved-thumb {
    border-radius: 14px;
  }
  .saved-title {
    font-size: 15px;
    line-height: 1.3;
  }
  .saved-sub {
    font-size: 13px;
  }
  .list-strip {
    margin: 0;
    padding: 0 0 4px;
  }
  .list-head {
    margin-top: 0;
  }
}

/* ── Sharing with people (accounts slice 6; frames 3d, 2f, 3c, 4e, 6e, 5d, 5f) ── */

/* 3d: the Add form, the `SHARED WITH BEFORE` chips, the access list, the link half. */
.share-form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.share-form .share-line {
  margin: 8px 0 0;
}

.share-before {
  margin-top: 14px;
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.share-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-light {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--ink);
  font: 600 13px var(--ui);
  cursor: pointer;
}

.chip-light:disabled {
  opacity: 0.5;
  cursor: default;
}

.access-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #131313;
  overflow: hidden;
}

.access-row {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 6px 0 16px;
  font: 600 15px var(--ui);
}

.access-row + .access-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.access-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-state {
  margin-left: 12px;
  font: 400 13px var(--ui);
  color: var(--muted-2);
  white-space: nowrap;
}

.access-row form {
  margin: 0 0 0 4px;
  display: flex;
}

.access-remove {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--ui);
  cursor: pointer;
}

.access-remove:hover {
  background: rgba(255, 255, 255, 0.06);
}

.share-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: rgba(242, 242, 242, 0.45);
  font: 500 12px var(--ui);
}

.share-divider::before,
.share-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.share-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 6px 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #131313;
  font: 500 14px ui-monospace, Menlo, monospace;
  color: rgba(242, 242, 242, 0.8);
}

.share-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-accent {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #131313;
  font: 700 14px var(--ui);
  cursor: pointer;
  white-space: nowrap;
}

.share-link-half .sheet-note {
  margin-top: 8px;
}

/* 3c: the people chips on the Visibility card (private alone) and the dashed `+ Add person`. */
.people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 4px 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  font: 600 13px var(--ui);
  max-width: 100%;
}

.person-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-chip form {
  margin: 0;
  display: flex;
}

.person-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 600 13px var(--ui);
  cursor: pointer;
}

.person-remove:hover {
  background: rgba(255, 255, 255, 0.1);
}

.person-add {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--ink);
  font: 600 13px var(--ui);
  cursor: pointer;
}

/* 4e, 6e: the invite landing on the locked shell, with the eyebrow. */
.invite .eyebrow {
  margin-bottom: 12px;
}

/* 5d: the two sharing rows; the unshare row is a form so it posts without script. */
.menu-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-sheet-count {
  font: 500 13px var(--ui);
  color: var(--muted-2);
}

.menu-sheet-form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.menu-sheet-form + .menu-sheet-row,
.menu-sheet-row + .menu-sheet-form,
.menu-sheet-form + .menu-sheet-form {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Reports, claims and the admin area (accounts roadmap slice 7; frames 3b, 5i, 5j, 6b, 6c) ── */

.report {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.report-link {
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font: 500 13px var(--ui);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.report-link:hover {
  color: var(--ink);
}

.reported {
  font: 500 13px var(--ui);
  color: rgba(242, 242, 242, 0.4);
}

/* The typed popover: 240 px, light, opens upward from the link (3b). */
.report-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 240px;
  margin: 0;
  padding: 0 0 6px;
  border-radius: 14px;
  background: #fbfaf7;
  color: #1a1a1a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 12; /* above the sticky header (10): the popover opens upward into it on a phone */
  text-align: left;
  scroll-margin-top: 80px; /* site.js scrolls it into view under the sticky header */
}

.report-heading {
  padding: 12px 16px 6px;
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
}

.report-popover .report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font: 500 15px var(--ui);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.report-popover .report-row:hover,
.report-popover .report-row:focus-visible {
  background: rgba(26, 26, 26, 0.06);
}

.report-popover .report-row-legal::after {
  content: "legal form";
  font: 400 12px var(--ui);
  color: rgba(26, 26, 26, 0.45);
}

.report-popover .report-row[disabled] {
  opacity: 0.5;
  cursor: default;
}

/* 5j: the claim form on the single column. */
.claim-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.claim-form .field-label {
  font: 700 14px var(--ui);
}

.chip-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}

.chip-group legend {
  padding: 0;
  margin-bottom: 8px;
}

.chips-choice {
  padding-top: 0;
}

.chip-choice {
  cursor: pointer;
}

.chip-radio:checked + .chip-choice {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.chip-radio:focus-visible + .chip-choice {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.claim-form .textarea {
  height: 96px;
  padding: 14px 16px;
  resize: none;
  line-height: 1.4;
}

/* The claim form's good-faith box (5j), scoped (0.57.0: unscoped, it restyled the list picker's rows). */
.claim-form .check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  font: 400 13px/1.5 var(--ui);
  color: var(--muted);
  cursor: pointer;
}

.claim-form .check-row input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  accent-color: var(--ink);
}

.claim-form .btn-light {
  justify-content: center;
}

/* 6b and 6c: the admin header's tag, the head row, the table and the cards (desktop; a phone scrolls the table inside its box). */
.admin-tag {
  font: 600 11px var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 10px;
  vertical-align: middle;
}

.page-main.admin {
  padding-top: 32px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-head .display-h1 {
  font-size: 40px;
  margin: 0;
}

.admin-chips {
  padding-top: 0;
}

.admin-table {
  margin-top: 28px;
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  overflow-x: auto;
}

.admin-grid {
  min-width: 920px;
}

.admin-thead,
.admin-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 120px 130px 60px 90px 210px;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  font: 400 14px var(--ui);
}

.admin-thead {
  font: 600 11px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--hair-2);
}

.admin-row + .admin-row {
  border-top: 1px solid var(--hair);
}

.admin-thumb {
  width: 40px;
  height: 52px;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 6px;
  display: block;
  background: var(--placeholder);
}

.admin-cell-title {
  min-width: 0;
}

.admin-title {
  font: 600 14px/1.3 var(--ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-title a {
  color: var(--ink);
  text-decoration: none;
}

.admin-flag {
  font: 400 12px/1.3 var(--ui);
  margin-top: 2px;
}

.admin-flag.is-featured {
  color: var(--accent);
}

.admin-flag.is-reported {
  color: #ff7a6b;
}

.admin-muted {
  color: var(--muted-3);
}

.admin-vis {
  color: rgba(242, 242, 242, 0.75);
}

.admin-seen {
  color: rgba(242, 242, 242, 0.6);
}

.admin-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.admin-private {
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font: 400 13px var(--ui);
}

.pill-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.pill-ghost.is-filled {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.pill-danger {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(198, 56, 42, 0.6);
  background: transparent;
  color: #ff7a6b;
  font: 600 13px var(--ui);
  cursor: pointer;
}

.pill-destructive {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 0;
  background: #c6382a;
  color: #fff;
  font: 600 13px var(--ui);
  cursor: pointer;
}

.admin-older {
  margin-top: 16px;
}

.admin-empty {
  margin: 28px 0 0;
  padding: 24px 16px;
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  color: var(--muted-2);
  font: 400 15px var(--ui);
}

/* Feed slice 7 (board 24): the posts queue, its search, the tag select, the dialogs' fields, Reassign, the categories editor and the members page. */
/* The Post column takes the room (board 24: the whole title and `@user · date`): at 1180 the grid is
   1098 px, so the eight columns, the seven 12 px gaps and the fixed widths leave it about 268 px; a
   longer title wraps to two lines before it ellipsises. */
.admin-grid.admin-posts {
  min-width: 1040px;
}

.admin-posts .admin-thead,
.admin-posts .admin-row {
  grid-template-columns: 56px minmax(260px, 1fr) 80px 130px 50px 80px 100px 250px;
  gap: 12px;
}

.admin-posts .admin-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* The usage dashboard, /admin/stats (usage-dashboard PDD §7 "The page"; roadmap slice 2, Pre-work L).
   One grid for every stats table: the first column (the bucket, the label or the member; `--first`
   widens it) and one track per value column, the count set inline per table as `--cols` (up to
   seventeen dims), so the head and every row share the same tracks; `min-width` follows the count
   (`--first-min`, the first track's minimum: a `minmax()` track is not a length `calc()` takes)
   and a wide table scrolls in `.admin-table`'s `overflow-x: auto`. */
.admin-grid.admin-stats {
  --cols: 1;
  --first: 140px;
  --first-min: 140px;
  min-width: calc(var(--first-min) + 32px + var(--cols) * 88px);
}

.admin-stats .admin-thead,
.admin-stats .admin-row {
  grid-template-columns: var(--first) repeat(var(--cols), minmax(72px, 1fr));
  gap: 16px;
  font-variant-numeric: tabular-nums;
}

.admin-stats .admin-thead {
  line-height: 1.3;
}

/* The window row sits under the h1 and its ops line (PDD §7), where 6b's chips sit beside it. */
.admin-stats-page .admin-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.admin-stats-section + .admin-stats-section {
  margin-top: 16px;
}

.admin-stats-title {
  font: 600 15px/1.3 var(--ui);
  margin: 24px 0 0;
}

.admin-stats-grain {
  margin: 12px 0 0;
  font: 400 12px/1.3 var(--ui);
  color: var(--muted-2);
}

.admin-stats-page .admin-table {
  margin-top: 8px;
}

.admin-stats-page .admin-empty {
  margin-top: 8px;
}

.admin-stats-note {
  margin: 10px 0 0;
  font: 400 13px/1.4 var(--ui);
  color: var(--muted-2);
}

/* /admin/stats as views (stats-charts PDD §7; the mock-up's values). The status colours are reserved (a glyph and a label beside them,
   never a series colour); every rule is scoped, and the three that reuse a global class name (`.card-title`, `.tile`, `.detail`) set back what the global rule sets. */
.admin-stats-page {
  --surface: #1a1a1a;
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #008300;
  --s7: #9085e9;
  --s8: #e66767;
  --seq-1: #184f95;
  --seq-2: #1c5cab;
  --seq-3: #256abf;
  --seq-4: #3987e5;
  --seq-5: #6da7ec;
  --seq-6: #9ec5f4;
  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --dim: #6d6d6d;
  --prev: #8a8a86;
  --grid: #2a2a2a;
  --axis: #3a3a3a;
}

.admin-stats-page .admin-stats-tabs {
  display: flex;
  gap: 2px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--hair-2);
}

.admin-stats-page .admin-stats-tabs a {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  margin-bottom: -1px;
  font: 600 14px var(--ui);
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.admin-stats-page .admin-stats-tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.admin-stats-page .admin-stats-compare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font: 400 13px/1.3 var(--ui);
  color: var(--muted);
}

.admin-stats-page .admin-stats-compare[hidden] {
  display: none;
}

.admin-stats-page .admin-stats-compare label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-stats-page .admin-stats-compare input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.admin-stats-page .admin-stats-compare button {
  height: 30px;
  padding: 0 12px;
  font: 600 13px var(--ui);
  color: var(--ink);
  background: none;
  border: 1px solid var(--hair-3);
  border-radius: var(--r-pill);
  cursor: pointer;
}

.admin-stats-page .admin-stats-group {
  margin-top: 30px;
}

.admin-stats-page .admin-stats-group .admin-subhead {
  margin: 0;
  font: 600 17px/1.3 var(--ui);
}

.admin-stats-page .admin-stats-group > .admin-stats-note {
  margin: 4px 0 0;
  max-width: 70ch;
}

.admin-stats-page .admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.admin-stats-page .card {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
}

/* A tile row and the status list are their own boxes: their card draws no frame around them. */
.admin-stats-page .card[data-card$="-tiles"],
.admin-stats-page .card[data-card$="-totals"],
.admin-stats-page .card[data-card="plugin-panel"],
.admin-stats-page .card[data-card="health"] {
  padding: 0;
  background: none;
  border: 0;
}

.admin-stats-page .card[data-card="health"] .chart {
  margin-top: 0;
}

.admin-stats-page .card.two-thirds {
  grid-column: span 8;
}

.admin-stats-page .card.half {
  grid-column: span 6;
}

.admin-stats-page .card.third {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .admin-stats-page .card.third {
    grid-column: span 6;
  }

  .admin-stats-page .card.two-thirds {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
  .admin-stats-page .card.half,
  .admin-stats-page .card.third {
    grid-column: span 12;
  }
}

.admin-stats-page .card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.admin-stats-page .card-head .t {
  flex: 1;
  min-width: 0;
}

.admin-stats-page .card-title {
  margin: 0;
  font: 600 14px/1.3 var(--ui);
  color: var(--ink);
}

.admin-stats-page .card-sub {
  margin: 2px 0 0;
  font: 400 12px/1.4 var(--ui);
  color: var(--muted-2);
}

.admin-stats-page .card-sub code,
.admin-stats-page .note code,
.admin-stats-page .status-row .detail code,
.admin-stats-page .admin-stats-group > .admin-stats-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--muted);
}

.admin-stats-page .card-tools {
  flex: none;
  display: flex;
  gap: 4px;
}

.admin-stats-page .card-tools button[hidden] {
  display: none;
}

.admin-stats-page .card-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}

.admin-stats-page .card-value .v {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.admin-stats-page .d {
  font-size: 13px;
  font-weight: 600;
}

.admin-stats-page .d.up {
  color: var(--good);
}

.admin-stats-page .d.down {
  color: var(--serious);
}

.admin-stats-page .d.flat,
.admin-stats-page .d.none,
.admin-stats-page .d .vs {
  color: var(--muted-3);
  font-weight: 500;
}

.admin-stats-page .chart {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 10px;
  min-width: 0;
}

.admin-stats-page .chart.drawn {
  min-height: 180px;
}

.admin-stats-page .chart.auto {
  flex: none;
  min-height: 0;
}

/* A status list, a live table and the no-script tables take their own height. */
.admin-stats-page .chart:not(.drawn) {
  flex: none;
}

/* The svg is in flow beside a legend and a note: height 100% would take the whole box and push them past its edge. */
.admin-stats-page .chart svg {
  display: block;
  flex: 1 0 auto;
  width: 100%;
  height: auto;
  overflow: visible;
}

.admin-stats-page .chart.auto svg {
  flex: 0 0 auto;
}

.admin-stats-page .chart svg :focus {
  outline: none;
}

.admin-stats-page .chart svg .hit:focus-visible,
.admin-stats-page .chart svg .rows:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-stats-page .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.admin-stats-page .legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
  border-radius: 3px;
}

.admin-stats-page .legend i.prev {
  width: 14px;
  height: 0;
  vertical-align: 3px;
  border-top: 2px dotted var(--prev);
  border-radius: 0;
}

.admin-stats-page .tick-note {
  margin: 8px 0 0;
  font: 400 12px/1.4 var(--ui);
  color: var(--muted-2);
}

.admin-stats-page .state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 120px;
  padding: 18px 16px;
  font-size: 13px;
  color: var(--muted-2);
  border: 1px dashed var(--hair-3);
  border-radius: 12px;
}

.admin-stats-page .state b {
  font-weight: 600;
  color: var(--ink);
}

.admin-stats-page .state.failed {
  border: 1px solid color-mix(in srgb, var(--critical) 50%, transparent);
}

.admin-stats-page .state.failed b {
  color: var(--critical);
}

.admin-stats-page .tip {
  position: fixed;
  z-index: 20;
  min-width: 120px;
  max-width: 280px;
  padding: 8px 10px;
  font: 400 12px/1.4 var(--ui);
  color: var(--ground);
  pointer-events: none;
  background: var(--ink);
  border-radius: 8px;
}

.admin-stats-page .tip .h {
  margin-bottom: 3px;
  font-weight: 700;
}

.admin-stats-page .tip .r {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.admin-stats-page .tip .r i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 2px;
}

.admin-stats-page .tip .r b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-stats-page .tip .mu {
  opacity: 0.7;
}

.admin-stats-page .spark {
  height: 30px;
  margin-top: 8px;
}

.admin-stats-page .spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.admin-stats-page .card-tools button:not([hidden]) {
  height: 26px;
  padding: 0 9px;
  font: 600 12px var(--ui);
  color: var(--muted-2);
  cursor: pointer;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
}

.admin-stats-page .card-tools button:hover {
  color: var(--ink);
  border-color: var(--hair-2);
}

.admin-stats-page .card-tools button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--hair);
}

.admin-stats-page table.heat {
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-collapse: separate;
  border-spacing: 2px;
}

.admin-stats-page table.heat th {
  padding: 3px 4px;
  font: 600 11px/1.3 var(--ui);
  color: var(--muted-2);
  text-align: right;
}

.admin-stats-page table.heat td {
  padding: 4px;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  border-radius: 6px;
}

.admin-stats-page table.heat th:first-child,
.admin-stats-page table.heat td:first-child {
  text-align: left;
}

.admin-stats-page table.heat td.mu,
.admin-stats-page table.heat td.future {
  color: var(--muted-3);
}

.admin-stats-page .chart .admin-table {
  margin-top: 6px;
}

.admin-stats-page .chart .admin-thead span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-stats-page .chart .admin-thead,
.admin-stats-page .chart .admin-row {
  gap: 10px;
  padding: 6px 10px;
  font-size: 12.5px;
}

.admin-stats-page .admin-stats-prev {
  color: var(--muted-2);
}

.admin-stats-page .chart .admin-stats-grain {
  margin-top: 8px;
}

.admin-stats-page .is-muted {
  color: var(--muted-3);
}

.admin-stats-page .is-critical {
  color: var(--critical);
}

.admin-stats-page .is-serious {
  color: var(--serious);
}

.admin-stats-page .note {
  margin: 10px 0 0;
  max-width: 70ch;
  font: 400 12px/1.4 var(--ui);
  color: var(--muted-2);
}

.admin-stats-page .tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.admin-stats-page .tile {
  flex: initial;
  width: auto;
  min-width: 0;
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 16px;
}

.admin-stats-page .tile .l {
  font-size: 12.5px;
  color: var(--muted);
}

.admin-stats-page .tile .v {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.admin-stats-page .tile .d {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}

.admin-stats-page .tile.live {
  border-style: dashed;
}

.admin-stats-page .tile .live-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font: 600 10px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--hair-3);
  border-radius: 999px;
}

.admin-stats-page .tile.failed .v {
  font-size: 13px;
  font-weight: 500;
  color: var(--critical);
}

.admin-stats-page .status {
  display: grid;
  gap: 8px;
}

.admin-stats-page .status-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--hair);
  border-radius: 12px;
}

.admin-stats-page .status-row .glyph {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
}

.admin-stats-page .status-row.ok .glyph {
  background: var(--good);
}

.admin-stats-page .status-row.warn .glyph {
  color: #0b0b0b;
  background: var(--warn);
}

.admin-stats-page .status-row.bad .glyph {
  background: var(--critical);
}

.admin-stats-page .status-row.none .glyph {
  background: var(--dim);
}

.admin-stats-page .status-row .label {
  font-size: 13.5px;
  font-weight: 600;
}

/* `.detail` is the matchup page's root elsewhere: padding, and from 800 px a grid. */
.admin-stats-page .status-row .detail {
  display: block;
  padding: 0;
  font-size: 12px;
  color: var(--muted-2);
}

.admin-stats-page .status-row .num {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.admin-stats-page details.live summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.admin-posted {
  font: 400 12px/1.3 var(--ui);
  color: rgba(242, 242, 242, 0.6);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-search {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 480px;
}

.admin-search .input {
  flex: 1;
  min-width: 0;
}

.admin-select {
  max-width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--ink);
  font: 400 13px var(--ui);
}

.admin-select option {
  color: #111;
}

/* The forms inside the scrolling table carry their visually-hidden labels: positioned here, a label stays inside
   the table's overflow box (absolutely placed from the page, it widened the document and, on a phone, the layout
   viewport the dialogs are sized against). */
.admin-tag-form,
.reassign-form,
.admin-table {
  position: relative;
}

.admin-tag-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* A post's categories as checkboxes (v0 PDD §7: one to three): the queue's row form behind Save, and Post as. */
.admin-checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-check {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
}

.admin-check input {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

.admin-dialog-form .admin-checks {
  gap: 2px;
  margin: 12px 0 8px;
}

.admin-dialog-form .admin-checks legend {
  margin-top: 0;
  padding: 0;
}

.admin-dialog-form .admin-check {
  min-height: 36px;
  font-size: 15px;
}

.admin-dialog-form .admin-check input {
  width: 18px;
  height: 18px;
}

.admin-tag-form .admin-select {
  width: 100%;
}

.admin-posts .admin-actions,
.admin-row .admin-actions {
  flex-wrap: wrap;
}

.reassign-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.reassign-form .admin-select {
  max-width: 130px;
}

.admin-dialog-form .field-label {
  margin-top: 12px;
}

.admin-dialog-form .admin-select {
  width: 100%;
  height: 44px;
}

.remove-note {
  width: 100%;
  min-height: 84px;
  margin-bottom: 12px;
}

.admin-subhead {
  font: 600 18px/1.3 var(--ui);
  margin: 32px 0 0;
}

.category-forms {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-form {
  display: grid;
  grid-template-columns: 140px 160px minmax(0, 1fr) 70px 200px 200px auto;
  gap: 10px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid var(--hair-2);
  border-radius: 16px;
}

.category-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.category-field .input {
  height: 38px;
  font-size: 13px;
}

.house-form {
  margin-top: 8px;
}

.member-note {
  margin: 16px 0 0;
  color: var(--muted-2);
  font: 400 14px/1.4 var(--ui);
}

.member-rows {
  margin-top: 16px;
  border: 1px solid var(--hair-2);
  border-radius: 16px;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  flex-wrap: wrap;
}

.member-row + .member-row {
  border-top: 1px solid var(--hair);
}

.member-head {
  min-width: 0;
}

.member-name {
  font: 600 14px/1.3 var(--ui);
}

.member-name a {
  color: var(--ink);
}

.member-meta {
  font: 400 12px/1.3 var(--ui);
  color: rgba(242, 242, 242, 0.6);
  margin-top: 4px;
}

.member-tag {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-2);
  font: 600 11px var(--ui);
  color: var(--accent);
}

.member-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 899px) {
  .category-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.report-groups {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-group {
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  overflow: hidden;
}

.report-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
}

.report-group-text {
  flex: 1;
  min-width: 160px;
}

.report-group-title {
  font: 700 15px/1.3 var(--ui);
}

.report-group-meta {
  font: 400 13px/1.3 var(--ui);
  color: var(--muted-2);
  margin-top: 2px;
}

.report-open-link {
  font: 600 13px var(--ui);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-item {
  display: grid;
  grid-template-columns: 180px 110px minmax(0, 1fr) 100px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--hair);
  font: 400 14px var(--ui);
}

.report-type {
  font-weight: 600;
}

.report-type.is-claim {
  color: var(--accent);
}

.report-when {
  color: rgba(242, 242, 242, 0.6);
}

.report-who {
  color: rgba(242, 242, 242, 0.75);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-action {
  display: flex;
  justify-content: flex-end;
}

.report-item .pill-sm {
  height: 32px;
  font-size: 12px;
}

/* View claim: the summary sits in the action cell; the detail spans the row below it. */
.claim-more {
  display: contents;
}

.claim-more > summary {
  list-style: none;
  justify-self: end;
}

.claim-more > summary::-webkit-details-marker {
  display: none;
}

/* Chrome 131+ wraps a details' content in ::details-content, a block box of its own: it is the grid item then, not .claim-detail. */
.claim-more::details-content {
  grid-column: 1 / -1;
}

.claim-detail {
  grid-column: 1 / -1;
  padding: 4px 0 4px;
  color: var(--muted);
}

.claim-fields {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 6px 16px;
}

.claim-fields dt {
  font: 600 13px var(--ui);
  color: var(--muted-2);
}

.claim-fields dd {
  margin: 0;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.claim-text {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
}

@media (max-width: 639px) {
  .report-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .report-when {
    grid-column: 1;
  }
  .report-who {
    grid-column: 1;
    white-space: normal;
  }
  .report-action,
  .claim-more > summary {
    grid-column: 2;
    grid-row: 1;
  }
  .report-group-head .pill-destructive,
  .report-group-head .pill-ghost {
    height: 34px;
  }
  .admin-head .display-h1 {
    font-size: 32px;
  }
}

/* ── Connect ChatGPT (accounts slice 8: 4a, 6a, the two notices, 3e's ChatGPT row) ── */

.consent .lead {
  margin-bottom: 24px;
}

/* 6a's copy line (2026-10-28): where saved, liked and shared images go, before the account card. */
.consent-copies {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--placeholder);
  font: 400 13px/1.5 var(--ui);
  color: var(--muted);
}

/* 6a's account card: the email and @username beside Switch account. */
.consent-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--hair-2);
  margin-bottom: 28px;
}

.consent-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.consent-email {
  font: 600 15px var(--ui);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consent-username {
  font: 400 13px var(--ui);
  color: rgba(242, 242, 242, 0.5);
}

.consent-account form {
  flex: none;
}

/* Allow over Cancel, one form. */
.consent-decision .btn + .btn {
  margin-top: 10px;
}

.consent .footnote,
.signin.connect .footnote {
  margin-top: 18px;
}

.signin.connect .footnote + .footnote {
  margin-top: 8px;
  padding-top: 0;
}

/* 3e: ChatGPT plugin · Linked · Disconnect. */
.connection-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connection-linked {
  font: 400 13px var(--ui);
  color: var(--accent);
}

.connect-notice .locked-actions {
  margin-top: 24px;
}

/* ── The feed, Explore and the shell (feed slice 2; PDD §7.3, §7.5, §8; boards 01, 02, 04, 05, 23; Pre-work P) ──
   In the phone layout (navigation round 5: under 1024 px, and a touch
   screen under 1280) the three-tab bar is fixed at the bottom with the
   safe-area padding and the header row holds the wordmark and Sign in or the
   avatar; at desktop the bar is hidden and the sidebar carries the sections. The feed pages, Explore, search and Make are a centred 640 px
   column (`s-dfeed`; the rails are deferred). The feed card crops the poster
   top-anchored at the card's ratio (board 23: the banner never in the crop;
   4:5 is the implementer's ratio, the log's §3), titles clamp at two lines,
   the pills are the glass pills of ProtoE with the active one amber. */

:root {
  --tab-bar-h: 56px;
}

/* The tab bar (navigation round 5, PDD §7 "Tab bar"): three equal cells, Feed · Make · Explore, each both glyphs at
   26 px over an 11 px label; the lit tab is the filled glyph in white, never amber. */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  height: calc(var(--tab-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: stretch;
}

.tab-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font: 600 11px/1 var(--ui);
}

.tab-item svg {
  flex: none;
}

.tab-item .icon-filled,
.tab-item.is-active .icon-outline {
  display: none;
}

.tab-item.is-active .icon-filled {
  display: block;
}

.tab-item.is-active {
  color: var(--ink);
}

@media (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .tab-bar {
    display: none;
  }
}

@media (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))) {
  body.has-tabs .page {
    padding-bottom: calc(var(--tab-bar-h) + env(safe-area-inset-bottom));
  }
}

/* The 640 px column (`s-dfeed`): the feed pages, Explore, search and Make. */
.page-main.feed-main,
.page-main.explore,
.page-main.make {
  max-width: calc(640px + 2 * var(--gutter));
  padding-top: 8px;
}

.page-main.feed-main {
  padding-top: 0;
}

.page-main.about {
  padding-top: 0;
}

.page-main.about .hero {
  padding-left: 0;
  padding-right: 0;
}

.page-main.about .hero-grid {
  grid-template-columns: 1fr;
}

/* The hero's first line on its own row (a span, not a <br>: the heading's text then reads as one sentence to assistive technology and tests). */
.hero-line {
  display: block;
}

.page-main.about .band {
  margin: 0 calc(-1 * var(--gutter));
}

.about-story {
  max-width: var(--prose);
  margin: 0 auto;
  padding-top: 64px;
}

/* The pill row (board 01, ProtoE): one line, scrolling sideways on the phone, sticky under the header on the feed. */
.pill-row {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pill-row::-webkit-scrollbar {
  display: none;
}

.feed > .pill-row,
.explore > .pill-row {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Explore's pill row on top, where `/` draws its band (the main's 8 px top padding taken back). */
.explore > .pill-row {
  margin-top: -8px;
}

.pill {
  flex: none;
  height: 34px;
  padding: 0 14px;
  font: 700 13px var(--ui);
  border-color: var(--hair-3);
}

.pill.is-active,
.pill[aria-current] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* The feed card (board 01, 04, 23; feed-card.ts's markup). */
.feed-list {
  display: flex;
  flex-direction: column;
}

.feed-card {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  font: 400 13px var(--ui);
  color: var(--muted);
}

.feed-card-author {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.feed-card-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-2);
  font: 600 11px var(--ui);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.feed-card-called {
  border-color: var(--accent);
  color: var(--accent);
}

.feed-card-title {
  margin: 0;
  font: 400 17px/1.15 var(--display);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.feed-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.feed-card-media {
  display: block;
}

/* The frame is the poster's top 55 % (0.56.0): `--crop` is the poster's width against 55 % of its height (feed-card.ts), what the covered detail shows above its cover.
   Navigation round 5 slice 4: the band under it closes the box, so the frame rounds its top corners alone; a short phone screen takes `--crop-short` (48 %, below). */
.feed-card-frame {
  display: block;
  aspect-ratio: var(--crop, 1024 / 845);
  border-radius: var(--r-btn) var(--r-btn) 0 0;
  overflow: hidden;
  background: var(--placeholder);
}

.feed-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Navigation round 5 slice 4 (PDD §7 "Feed card"; the board's "Sized for the SE first"): the likes at the author
   line's right end; the band under the image, on the cover's black, closing the frame's box: a reader's two names
   (48 px, 15 px) over Just show me (36 px), or one 52 px link to the post (You chose …, Revealed without a call,
   Your post, Your draft). `.feed-card-called` and `.feed-card-counts` below are left unreferenced. */
.feed-card-likes {
  margin-left: auto;
  white-space: nowrap;
}

.feed-card-band {
  margin-top: -10px;
  background: #050505;
  border-radius: 0 0 var(--r-btn) var(--r-btn);
  overflow: hidden;
}

.feed-card-band[data-band="uncalled"] {
  padding: 8px 10px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feed-card-band .call-row form {
  max-width: none;
}

.feed-card-band .call-btn {
  min-height: 48px;
  font-size: 15px;
}

.feed-card-band .cover-show {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font: 600 14px/1 var(--ui);
  text-decoration: none;
}

.feed-card-result {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font: 700 15px/1.2 var(--ui);
  color: var(--ink);
  text-decoration: none;
}

.feed-card-result:hover {
  color: var(--accent);
}

.feed-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font: 400 12px var(--ui);
  color: var(--muted);
}

.feed-card-counts {
  display: inline-flex;
  gap: 14px;
}

.feed-card-badges {
  display: inline-flex;
  gap: 6px;
}

.feed-card-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  font: 700 11px var(--ui);
  color: var(--accent);
}

/* The skeleton (board 04): one card's outline while a page loads. */
.feed-skeleton {
  padding: 16px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk {
  background: var(--placeholder);
  border-radius: 8px;
  display: block;
}

.sk-head {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sk-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--placeholder);
}

.sk-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sk-line {
  height: 12px;
  width: 60%;
  border-radius: 6px;
  background: var(--placeholder);
}

.sk-line.short {
  width: 35%;
}

.sk-frame {
  aspect-ratio: 1024 / 845;
  border-radius: var(--r-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 40px var(--display);
  color: var(--hair-3);
}

/* The short phone screen (700 px tall or less, in the phone layout): the poster's top 48 %, so one whole card and its
   buttons fit between the header and the bar on an SE with Safari's bars out; the skeleton's frame matches. */
@media (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))) {
  @media (max-height: 700px) {
    .feed-card-frame {
      aspect-ratio: var(--crop-short, 1024 / 737);
    }
    .sk-frame {
      aspect-ratio: 1024 / 737;
    }
  }
}

@keyframes sk-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.55;
  }
}

.feed-skeleton .sk,
.feed-skeleton .sk-dot,
.feed-skeleton .sk-line {
  animation: sk-pulse 0.9s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .feed-skeleton .sk,
  .feed-skeleton .sk-dot,
  .feed-skeleton .sk-line {
    animation: none;
  }
}

/* The error row (board 04), the end line and the empty state. */
.feed-error {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--r-btn);
  border: 1px solid var(--hair-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: 400 14px/1.4 var(--ui);
  color: var(--muted);
}

.feed-end,
.feed-empty {
  padding: 40px 16px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feed-end-title {
  font: 400 20px/1.1 var(--display);
}

.feed-empty p {
  margin: 0;
  font: 400 14px/1.5 var(--ui);
  color: var(--muted);
  text-wrap: pretty;
}

.feed-end-draw {
  margin-top: 6px;
}

/* The end of All's invitation (v0 PDD §5 (d)); the detail's end carries the same pair. */
.feed-end-install-line {
  margin: 8px 0 0;
  font: 400 15px/1.4 var(--ui);
  color: var(--ink);
  text-wrap: pretty;
}

.feed-more {
  display: inline-flex;
  margin: 20px 0;
}

/* The first-run card (board 02). */
.first-run {
  position: relative;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--hair-2);
  background: var(--placeholder);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.first-run-dismiss {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.first-run-title {
  margin: 0;
  padding-right: 34px;
  font: 400 22px/1.02 var(--display);
  letter-spacing: -0.02em;
}

.first-run-body {
  margin: 0;
  font: 400 13px/1.5 var(--ui);
  color: var(--muted);
}

.first-run .action-row {
  margin-top: 4px;
  justify-content: center;
}

.first-run .btn {
  height: 44px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: var(--r-pill);
}

/* Explore (board 05): the search box, the shelves, the categories grid. */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 20px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
}

.search-input {
  flex: 1;
  min-width: 0;
  padding-left: 42px;
}

.search-cancel {
  flex: none;
}

.shelf {
  margin: 22px 0;
}

.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.shelf-title {
  margin: 0;
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.shelf-more {
  font: 600 13px var(--ui);
  color: var(--accent);
  text-decoration: none;
}

.shelf-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.shelf-row::-webkit-scrollbar {
  display: none;
}

.shelf-empty {
  margin: 0;
  font: 400 14px/1.5 var(--ui);
  color: var(--muted-2);
}

.tile {
  flex: none;
  width: 140px;
  text-decoration: none;
  color: var(--ink);
}

.tile-frame {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--placeholder);
}

.tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.tile-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font: 700 13px/1.3 var(--ui);
}

.cat-section {
  margin: 26px 0 8px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.cat-tile {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--ground-alt);
  border: 1px solid var(--hair);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
}

.cat-tile-name {
  font: 400 18px/1.05 var(--display);
}

.cat-until {
  font: 600 11px var(--ui);
  color: var(--accent);
}

/* A category page (board 05): the banner, the sort row. */
.cat-banner {
  position: relative;
  padding: 24px 0 8px;
}

.cat-back {
  position: absolute;
  right: 0;
  top: 22px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
}

.cat-title {
  margin: 8px 0 6px;
}

.cat-blurb {
  margin: 0;
  font: 400 14px/1.5 var(--ui);
  color: var(--muted);
  max-width: 520px;
  text-wrap: pretty;
}

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sort-row .pill-row {
  flex: 1;
}

.cat-draw {
  flex: none;
}

/* Search (board 05): the rows, the two section labels, the miss. */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-section {
  margin: 18px 0 6px;
  font: 700 12px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-hint {
  margin: 8px 0;
  font: 400 14px/1.5 var(--ui);
  color: var(--muted-2);
}

.result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--ink);
}

.result-img {
  width: 56px;
  height: 72px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  background: var(--placeholder);
  flex: none;
}

.result-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 14px var(--ui);
  flex: none;
}

.result-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.result-title {
  font: 700 15px/1.3 var(--ui);
}

.result-meta {
  font: 400 12px var(--ui);
  color: var(--muted);
}

.search-miss {
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--hair-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-miss-title {
  font: 700 15px/1.3 var(--ui);
}

.search-miss-body {
  margin: 0;
  font: 400 13px/1.5 var(--ui);
  color: var(--muted);
}

/* Make (board 01; navigation round 5, the scope's Make rows): a page under its own tab in the feed's 640 px column, no
   longer a sheet: the title, the rows, the line, top-aligned at every width. `.make-sheet`, `.sheet-grip` and
   `.make-cancel` below are no longer drawn (left for the owner). */
.page-main.make {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
}

.make-sheet {
  background: #1d1d1d;
  color: var(--ink);
  border-radius: 22px;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.sheet-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 4px;
}

.make-title {
  margin: 0;
  font: 400 20px/1.05 var(--display);
}

.make-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.make-row.make-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.make-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.make-row-title {
  font: 800 15px var(--ui);
}

.make-row-sub {
  font: 400 12px/1.4 var(--ui);
  opacity: 0.8;
}

.make-back {
  margin: 0;
  padding: 0 4px;
  font: 400 12px/1.5 var(--ui);
  color: var(--muted-2);
}

.make-cancel {
  align-self: center;
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))) {
  .make-sheet {
    max-width: none;
    padding-bottom: 24px;
  }
}

.page-main.make .make-title {
  margin: 8px 0 4px;
}

/* The You tab signed out (board 01): the single column under the tabs. */
.page-main.you {
  padding-top: 48px;
}

/* ── The covered detail (feed slice 4; PDD §5 "The detail", §7.5, §8; boards 07, 08, 09, 23, ProtoG; Pre-work I, M, N) ──
   The base rules are one column: the bar, the 2:3 stage with the poster at
   `--poster-*` (posterBox: contain-fitted, letterboxed; the composer's preview
   keeps it), the cover over the poster's bottom 45 % inside the zoom layer (a
   pinch while covered never exposes it), the chip, the loupe's lens, the
   numbers, the controls, the hint. In the phone layout (0.56.0, the block after
   the stage's rules) the stage is the column's full width at the poster's own
   ratio, the covered stage cut at the cover band's bottom, under the site header
   and over the tab bar (navigation round 5 slice 6). At desktop (the block after
   the phone's) the page is one column the poster's width on the feed column's
   centre line (slice 6; two columns 0.58.0–0.85.0). */
.detail {
  --detail-w: min(100%, calc((100vh - 240px) * 2 / 3), 480px);
  --detail-w: min(100%, calc((100svh - 240px) * 2 / 3), 480px);
  padding-bottom: 40px;
}

/* The ‹ row (navigation round 5 slice 6, PDD §7 "The post"): ‹ with its parent's name at the left, ⋯ at the right, both
   48 px targets (the board's "Sized for the SE first"); the label 16 px, the chevron 24 px. */
.detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 4px 4px 0;
  max-width: calc(var(--max));
  margin: 0 auto;
}

.detail-back,
.detail-more {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.detail-back:hover,
.detail-more:hover {
  background: var(--nav-active-bg);
}

.detail-back {
  width: auto;
  min-width: 48px;
  max-width: 72%;
  justify-content: flex-start;
  gap: 2px;
  padding: 0 12px 0 4px;
  font: 600 16px/1 var(--ui);
}

.detail-back svg {
  flex: none;
}

.detail-back-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-head {
  min-width: 0;
  text-align: center;
}

.detail-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

/* The byline, the title block's last line (navigation round 5 slice 6; the bar's 11 px sub-line before): the laptop
   column's 13 px, the author in ink. */
.detail-sub {
  margin: 8px 0 0;
  font: 400 13px/1.4 var(--ui);
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-sub .detail-author {
  color: var(--ink);
  font-weight: 600;
}

.detail-sub.is-owner {
  font-weight: 600;
}

.detail-sub.is-owner {
  color: var(--accent);
}

/* A posted page's date in the byline (v0 PDD §5 (c)): the byline's muted tone, the owner's accent line included. */
.detail-date {
  color: var(--muted-2);
  font-weight: 400;
}

.detail-steps {
  margin-left: 4px;
}

.detail-step {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font: 600 14px/1 var(--ui);
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 6px;
}

.detail-step:hover {
  color: var(--ink);
  background: var(--nav-active-bg);
}

.detail-col {
  width: var(--detail-w);
  margin: 0 auto;
}

.detail-stage {
  /* The cover band: the compact lockup's height (title, 44 px pills, Just show me), the cover's minimum everywhere. */
  --cover-band: 104px;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0a0a0a;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}

.detail-stage.is-zoomed,
.detail-stage.is-loupe {
  touch-action: none;
}

.detail-stage.is-zoomed {
  cursor: move;
}

.detail-zoom {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.detail-poster {
  position: absolute;
  left: var(--poster-x);
  top: var(--poster-y);
  width: var(--poster-w);
  height: var(--poster-h);
  display: block;
  object-fit: fill;
  background: #0a0a0a;
}

/* The cover (board 23): from 55 % of the poster's height to its bottom, never over the letterbox above; the lockup centred. At least the band tall, so a landscape poster in a short laptop window extends it into the letterbox below rather than spill the lockup. */
.detail-cover {
  position: absolute;
  left: var(--poster-x);
  width: var(--poster-w);
  top: calc(var(--poster-y) + var(--poster-h) * 0.55);
  height: max(calc(var(--poster-h) * 0.45), var(--cover-band));
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.32s ease;
}

.detail-cover.is-lifting {
  opacity: 0;
  pointer-events: none;
}

/* The compact lockup (PosterShapes, 0.56.0): about 102 px in all, inside the band on any poster shape at any phone width. */
.cover-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 4px 16px;
}

.cover-title {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.05;
  text-align: center;
  color: var(--ink);
}

.call-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  touch-action: pan-y;
  transition: transform 0.18s ease-out;
}

.call-row form {
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
  display: flex;
}

.call-btn {
  width: 100%;
  min-height: 44px;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: 700 13px/1.15 var(--ui);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  touch-action: pan-y;
}

.call-btn:hover,
.call-btn.is-flash {
  border-color: var(--accent);
  color: var(--accent);
}

.call-role {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.call-name {
  font: 400 11px/1.2 var(--ui);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cover-show {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 12px/15px var(--ui);
  padding: 3px 10px;
  cursor: pointer;
}

.cover-show:hover {
  color: var(--ink);
}

/* The chip on the revealed poster (board 07): "You: The bear · 76% with you", the owner's "Your post", the signed-out line. */
.detail-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 700 12px/1.25 var(--ui);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  pointer-events: none;
  z-index: 2;
}

/* The loupe (ProtoG; PDD §7.5): a 240 px lens, 2.6×, centred on the finger and clamped to the stage; masked where the cover is. */
.detail-loupe {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  background: #000 no-repeat;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.loupe-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #050505;
}

/* The desktop viewer (0.55.0, after the merge; a departure from board 07): the stage's Expand in its
   corner once revealed on a fine pointer, and the full poster fitted to the window in a modal <dialog>.
   Since navigation round 5 (Pre-work B5, the owner's override of D5) Expand stays in the DOM and in the tab order but
   paints nothing until it has keyboard focus: zero opacity and no pointer target unless `:focus-visible`, never
   `display: none` or `visibility: hidden` while it is reachable (its `[hidden]`, coarse-pointer and <noscript> rules
   still take it out where the viewer is off). */
.detail-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.detail-expand[hidden] {
  display: none;
}

.detail-expand:not(:focus-visible) {
  opacity: 0;
  pointer-events: none;
}

.detail-expand:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.75);
}

.detail-expand:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (pointer: coarse) {
  .detail-expand {
    display: none;
  }
}

dialog.detail-viewer {
  position: fixed;
  inset: 0;
  /* auto with inset 0 fills the viewport less a classic scrollbar (100vw would count it). */
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: rgba(5, 5, 5, 0.94);
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-in;
}

dialog.detail-viewer.is-zoomed {
  cursor: grab;
}

dialog.detail-viewer::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.viewer-img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
  background: #0a0a0a no-repeat center / 100% 100%;
}

.viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}

.viewer-close:hover {
  background: rgba(40, 40, 40, 0.9);
}

.viewer-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .viewer-img,
  .detail-expand {
    transition: none !important;
  }
}

/* The numbers (board 07): the split row from 20 counted calls, else the thin card. */
.detail-numbers {
  padding: 12px var(--gutter) 0;
}

.split-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 700 12px/1.3 var(--ui);
  margin-bottom: 6px;
}

.split-label.is-accent {
  color: var(--accent);
}

.split-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--placeholder);
}

.split-fill {
  display: block;
  height: 100%;
  background: rgba(242, 242, 242, 0.5);
}

.split-fill.is-accent {
  background: var(--accent);
}

.split-total {
  margin-top: 6px;
  font: 400 11px/1.3 var(--ui);
  color: var(--muted-2);
}

.thin {
  background: var(--placeholder);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thin-count {
  font: 700 13px/1.3 var(--ui);
}

.detail-line {
  margin: 10px var(--gutter) 0;
  font: 400 13px/1.4 var(--ui);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-line .btn-tertiary {
  height: 32px;
  font-size: 13px;
}

/* The title block (0.57.0; the old page's title and setting, a departure from boards 07 and 08): above the stage at every
   width. The server picks the size class by the title's length (`titleSizeClass`: ≤ 26, ≤ 32, ≤ 40, ≤ 48 code points, longer; `title-xl`, 0.58.0, drawn as title-l here),
   measured so each step sets in two lines at 360 and 375 px; two lines is also the clamp, so a longer title ends in an
   ellipsis here alone (the bar, the heading and the poster keep it whole). The laptop's sizes are the block after the stage's rules. */
.detail-titleblock {
  padding: 4px var(--gutter) 12px;
}

.detail-titleblock .matchup-title {
  margin: 0;
  font-size: 30px;
  /* A touch over 1 so the clamp's hidden overflow never trims a descender on the second line. */
  line-height: 1.06;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  /* A single long name ("Carcharodontosaurus", 345 px at 30) breaks rather than scroll the page sideways. */
  overflow-wrap: anywhere;
}

.detail-titleblock .matchup-title.title-m {
  font-size: 26px;
}

.detail-titleblock .matchup-title.title-s {
  font-size: 22px;
}

.detail-titleblock .matchup-title.title-xs {
  font-size: 19px;
}

.detail-titleblock .matchup-setting,
.detail-titleblock .matchup-style {
  margin: 8px 0 0;
  font: 400 15px/1.35 var(--ui);
  color: var(--muted-2);
  text-wrap: pretty;
}

/* The stored style (0.67.0): the setting's line, tighter under it. */
.detail-titleblock .matchup-setting + .matchup-style {
  margin-top: 2px;
}

/* The controls row (board 07's four, the owner's two or three; 0.57.0 the old page's 52 px buttons at radius 14, 15 px / 700,
   sized by their labels so Disagree? fits at 360 px; one filled primary per row). Shown once revealed. */
.detail-controls {
  padding: 12px var(--gutter) 0;
}

/* The one line under a revealed poster (navigation round 5, PDD §7 "The post"): "You chose …" or "Revealed without a
   call"; the prototypes' 600 15px. Empty and hidden while covered; the owner's post has none. */
.detail-chose {
  margin: 0;
  padding: 14px var(--gutter) 0;
  font: 600 15px/1.3 var(--ui);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.detail-chose[hidden],
.detail:not([data-revealed]) .detail-chose {
  display: none;
}

/* The Disagree callout (navigation round 5 slice 6, D7): desktop alone (the block below), where the row's Disagree? hides. */
.detail-callout {
  display: none;
}

.detail:not([data-revealed]) .detail-controls,
.detail:not([data-revealed]) .detail-meta,
.detail:not([data-revealed]) .liked-by,
.detail:not([data-revealed]) .visibility-card {
  display: none;
}

/* Each control (or its toggle form) takes its label's width and the row shares out the rest; the selectors outrank
   `.controls-row`'s older flex and width rules. */
.detail-controls.controls-row > *,
.detail-controls .toggle-form[data-toggle] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.detail-controls .toggle-form > .btn,
.detail-controls .toggle-form > .like-btn {
  width: 100%;
}

.detail-controls .btn,
.detail-controls .like-btn {
  height: 52px;
  padding: 0 10px;
  border-radius: var(--r-btn);
  font: 700 15px var(--ui);
  gap: 7px;
  overflow: hidden;
}

.detail-controls .btn-ghost,
.detail-controls .like-btn {
  border-width: 1.5px;
}

.detail-controls .like-glyph {
  font-size: 20px;
}

.detail-controls .share-icon {
  flex: none;
}

@media (max-width: 374px) {
  .detail-controls .btn,
  .detail-controls .like-btn {
    padding: 0 8px;
  }
}

.detail-meta {
  margin: 12px var(--gutter) 0;
  font: 400 12px/1.5 var(--ui);
  color: var(--muted-2);
}

.detail .liked-by {
  margin: 12px var(--gutter) 0;
}

.detail .visibility-card {
  margin: 12px var(--gutter) 0;
}

/* The tag row (v0-feed PDD §7 "CSS", §11 Q8): the categories, then the keywords, as `.chip` links wrapping under the
   controls' blocks in both layouts, shown covered and revealed; a long keyword ellipsises (the link keeps it whole). */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px var(--gutter) 0;
}

.detail-tags .chip {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  line-height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hint {
  margin: 14px var(--gutter) 0;
  font: 400 11px/1.4 var(--ui);
  color: var(--muted-3);
  text-align: center;
}

.detail-end {
  margin: 10px var(--gutter) 0;
  font: 500 13px/1.4 var(--ui);
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.detail-end p {
  margin: 0;
}

.detail .no-poster {
  padding: 0 var(--gutter);
}

/* The phone layout (0.56.0; since navigation round 5 the site's phone layout: under 1024 px, and a touch screen under
   1280, so every landscape phone; PDD §7 "The layout queries", §11 A9): the column's full width, capped at the site's
   640 px column and centred from 640 px up (so a 1000 px window never draws a 1000 px poster); no letterbox, the zoom layer at the poster's own ratio (`--poster-r`, the server's), the poster filling it;
   covered, the stage is the poster's top 55 % plus the cover band and clips the rest (detail.ts's clamp keeps a pinch inside it);
   revealed, the whole poster, grown downward (`is-unrolling`, a tapped reveal alone). The site header and the tab bar are on
   screen (navigation round 5 slice 6), the ‹ row and the title block under the header, capped with the stage.
   The landscape phone too (0.57.0): the stage the screen's full width. `--cover-at` (0.57.0) is where the cover starts, a
   fraction of the poster: 0.55 here and without script; detail.ts lowers it to as little as 0.26 so the lockup ends above
   the tab bar's top under the title block (a landscape phone at the floor scrolls to the call). The call buttons are 52 px
   (slice 6) inside the same 104 px band. */
@media (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))) {
  .detail {
    --detail-w: min(100%, 640px);
  }
  .detail-bar,
  .detail-titleblock {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  .detail-stage {
    aspect-ratio: auto;
  }
  /* 52 px call buttons (slice 6) in the same 104 px band: the lockup's gaps and padding tighten by 2 px each. */
  .detail .detail-cover .call-btn {
    min-height: 52px;
  }
  .detail .cover-lockup {
    gap: 4px;
    padding: 2px 16px;
  }
  .detail-stage::before {
    content: "";
    display: block;
    padding-top: calc(var(--poster-r, 1.5) * var(--cover-at, 0.55) * 100% + var(--cover-band));
  }
  .detail[data-revealed] .detail-stage::before {
    padding-top: calc(var(--poster-r, 1.5) * 100%);
  }
  .detail-stage.is-unrolling::before {
    transition: padding-top 0.32s ease-out;
  }
  .detail-zoom {
    inset: 0 auto auto 0;
    width: 100%;
    aspect-ratio: 1 / var(--poster-r, 1.5);
  }
  .detail-poster {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
  .detail-cover {
    left: 0;
    width: 100%;
    top: calc(var(--cover-at, 0.55) * 100%);
    height: var(--cover-band);
  }
  /* The byline as a row (v0 PDD §7 "CSS"): the author and the date ellipsise in one span, at the block's left. */
  .detail-sub {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
  }
  .detail-sub-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .detail-steps {
    flex: none;
    display: flex;
    margin-left: 4px;
  }
  .detail-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 12px;
  }
  .detail-step[data-next] {
    color: var(--ink);
  }
  .detail-step-label {
    font: 600 13px/1 var(--ui);
  }
}

/* The desktop post (navigation round 5 slice 6; PDD §7 "The post"; the scope's desktop rows; two columns 0.58.0–0.85.0):
   one column the poster's width on the feed column's centre line (the shell's column; nothing beside it, D8), in the
   phone's order: the ‹ row, the title block, the banner, the stage, the chose line, the controls, the callout, then the
   tags before the key hints by `order` (the DOM keeps the tags last). The stage is as wide as lets the whole poster, the
   title block (143 px) and one line under it (60 px) fit under the 64 px header: between 320 and 552 px. Nothing is
   fixed in place as the page scrolls. The phone's title sizes (the base rules). A bare ‹ (the parent a sidebar root) is
   hidden and ⋯ sits at the right of the title's first line; ♥ · Save · Share are equal thirds; the callout shown and the
   row's Disagree? hidden. */
@media (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .detail {
    /* A custom property is not checked at parse time, so the svh value goes in @supports below, never as a second declaration. */
    --stage-w: clamp(320px, calc((100vh - 64px - 143px - 60px) / var(--poster-r, 1.5)), 552px);
    --detail-w: 100%;
    position: relative;
    width: min(100%, var(--stage-w));
    margin: 0 auto;
    padding: 16px 0 40px;
  }
  @supports (height: 100svh) {
    .detail {
      --stage-w: clamp(320px, calc((100svh - 64px - 143px - 60px) / var(--poster-r, 1.5)), 552px);
    }
  }
  .feed-shell > main.detail {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    justify-self: center;
  }
  /* The 48 px targets overhang the column so the chevron and the dots line up with its edges. */
  .detail-bar {
    max-width: none;
    margin: 0 -10px 4px -12px;
    padding: 0;
  }
  .detail-back[data-up-bare] {
    display: none;
  }
  .detail-bar:has(> .detail-back[data-up-bare]) {
    position: absolute;
    top: 12px;
    right: 0;
    min-height: 0;
    margin: 0 -10px 0 0;
    z-index: 1;
  }
  .detail-bar:has(> .detail-back[data-up-bare]) + .detail-titleblock {
    padding-right: 44px;
  }
  .detail-titleblock {
    padding: 4px 0 12px;
  }
  .detail .detail-banner {
    width: auto;
    margin: 0 0 12px;
  }
  .detail-col {
    width: 100%;
  }
  .detail-stage-col:not([hidden]) {
    display: flex;
    flex-direction: column;
  }
  .detail .detail-stage {
    width: 100%;
    aspect-ratio: 1 / var(--poster-r, 1.5);
    border-radius: 16px;
  }
  /* The composer's covered preview keeps the laptop's corners (0.57.0's unscoped rule reached it). */
  .composer-stage.detail-stage {
    border-radius: 16px;
  }
  /* The stage is the poster: the zoom layer fills it and the poster fills the layer (`--poster-*` are the phone's and the old letterbox's). */
  .detail .detail-poster {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
  /* The cover from 55 % to the poster's bottom, at least the band (a short window's small stage grows it upward). */
  .detail .detail-cover {
    left: 0;
    width: 100%;
    top: auto;
    bottom: 0;
    height: max(45%, var(--cover-band));
  }
  .detail-chose,
  .detail-meta,
  .detail .detail-preview,
  .detail .liked-by,
  .detail-hint,
  .detail-tags {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .detail .visibility-card {
    margin-left: 0;
    margin-right: 0;
  }
  .detail-controls {
    padding: 12px 0 0;
  }
  /* Equal thirds (a grid: a flex basis of 0 still keeps a button's padding, so a padded button outgrew the forms). */
  .detail-controls.controls-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .detail:not([data-revealed]) .detail-controls.controls-row {
    display: none;
  }
  .detail-controls .disagree-btn {
    display: none;
  }
  .detail[data-revealed] .detail-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 6px 6px 6px 16px;
    border-radius: var(--r-btn);
    background: var(--nav-active-bg);
  }
  .detail-callout-text {
    margin: 0;
    font: 700 15px/1.2 var(--ui);
  }
  .detail-callout .btn {
    flex: none;
    width: auto;
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
  }
  .detail-hint {
    text-align: left;
  }
  .detail-tags {
    order: 1;
  }
  .detail-keys {
    order: 2;
  }
  .detail .no-poster {
    padding: 0;
  }
}

/* The key hints (0.58.0): a fine pointer on the two columns, in place of the touch hint; covered or revealed by the root's
   flag. Since navigation round 5 the desktop literal's fine-pointer half: (min-width: 1280px) and a fine pointer, or the
   icon rail's band, (min-width: 1024px) and (hover: hover) and (pointer: fine). */
.detail-keys {
  display: none;
}
@media (min-width: 1280px) and (pointer: fine), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .detail-hint {
    display: none;
  }
  .detail-keys {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0 0;
    font: 400 12px/1.4 var(--ui);
    color: var(--muted-3);
  }
  .detail[data-revealed] .keys-covered,
  .detail:not([data-revealed]) .keys-revealed {
    display: none;
  }
  .keys-covered,
  .keys-revealed {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .key-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .key-pair {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .key-pair[hidden] {
    display: none;
  }
  .detail-keys kbd {
    font: 500 11px/1 var(--ui);
    color: var(--muted);
    border: 1px solid #3a3a40;
    border-radius: 4px;
    padding: 3px 6px;
  }
}

/* The dark sheets (boards 08, 09): the "…" menu, the public share sheet, the Disagree sheet. Every sheet is dark since 0.57.0; these keep their own rules. */
dialog.sheet.sheet-dark {
  background: #1d1d1d;
  color: var(--ink);
  border-radius: 22px 22px 0 0;
}

/* Centred from 900 px like every sheet (0.57.0: the dark ones had kept square bottom corners). */
@media (min-width: 900px) {
  dialog.sheet.sheet-dark {
    border-radius: 18px;
  }
}

.sheet-dark .sheet-handle {
  background: rgba(255, 255, 255, 0.25);
}

.sheet-dark .sheet-title {
  color: var(--ink);
}

.sheet-dark .sheet-text {
  color: rgba(242, 242, 242, 0.7);
}

.sheet-dark .btn-tertiary {
  color: var(--muted);
}

.menu-rows {
  display: flex;
  flex-direction: column;
  margin: 0 -8px;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--ui);
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.menu-row:hover,
.menu-row:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.menu-row.is-destructive {
  color: #ff7a6b;
}

/* The Report row: today's popover, laid in flow inside the sheet (opened below its row, not upward). */
.menu-row-report .report {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: static;
}

.menu-row-report .report-link,
.menu-row-report .reported {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  height: auto;
  padding: 0 10px;
  font: 600 14px var(--ui);
  text-decoration: none;
  color: #ff7a6b;
  border-radius: 12px;
}

.menu-row-report .report-link::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M5 21V4h12l-2 4 2 4H5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M5 21V4h12l-2 4 2 4H5"/></svg>') center / contain no-repeat;
}

.menu-row-report .report-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ff7a6b;
}

.menu-row-report .reported {
  color: var(--muted-3);
}

.menu-row-report .report-popover {
  position: static;
  width: auto;
  margin: 4px 0 0;
  box-shadow: none;
  background: #131313;
  color: var(--ink);
  border: 1px solid var(--hair-2);
}

.menu-row-report .report-heading {
  color: var(--muted-3);
}

.menu-row-report .report-popover .report-row {
  color: var(--ink);
}

.menu-row-report .report-popover .report-row:hover,
.menu-row-report .report-popover .report-row:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.menu-row-report .report-popover .report-row-legal::after {
  color: var(--muted-3);
}

/* The public share sheet (board 08). */
.share-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.share-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  background: var(--placeholder);
  flex: none;
}

.share-head-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.share-head-text .sheet-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.05;
}

.share-head-sub {
  font: 400 12px/1.4 var(--ui);
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-dark .share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #131313;
  border-radius: 12px;
  padding: 0 6px 0 14px;
  min-height: 48px;
  margin: 0 0 12px;
}

.sheet-dark .share-url {
  flex: 1;
  font: 400 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(242, 242, 242, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-dark .share-link-row .btn-accent {
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--ink);
  color: var(--ground);
  font: 700 12px var(--ui);
  cursor: pointer;
}

.share-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.share-tile {
  min-height: 76px;
  border-radius: 14px;
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--ink);
  font: 700 11px/1.2 var(--ui);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 4px;
  text-align: center;
}

.share-tile:hover {
  border-color: var(--hair-3);
}

/* The Disagree sheet (board 09). `.sheet .disagree-input` outranks `.sheet .input` (0.57.0: the input had rendered white and 56 tall). */
.disagree-input,
.sheet .disagree-input {
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--ink);
  font: 400 14px var(--ui);
  padding: 0 14px;
  min-height: 48px;
  height: 48px;
  width: 100%;
  outline: none;
}

.disagree-input:focus {
  border-color: var(--accent);
}

.disagree-preview {
  margin: 12px 0;
  background: #131313;
  border-radius: 12px;
  padding: 10px 12px;
  font: 400 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(242, 242, 242, 0.7);
  overflow-wrap: anywhere;
}

.disagree-run {
  width: 100%;
  border-radius: 14px;
  min-height: 52px;
  font-size: 15px;
}

.disagree-run[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .detail-zoom,
  .detail-cover,
  .call-row,
  .detail-stage::before {
    transition: none !important;
  }
}

/* ── Posting from the site (feed slice 5; PDD §5 "Posting", §7.3, §7.5; boards 01, 07, 10, 11, 13, 16, 21, 22) ──
   The draft banners on the detail, the owner's preview link, the composer's
   tiles and its preview column (beside the form from 1180 px), the posted
   screen, the Unpost sheet's two buttons, the settings index rows, Privacy's
   removed list, the Make sheet's drafts row. Dark pages; the sheets as their
   class says. */

.detail-banner {
  width: min(calc(100% - 2 * var(--gutter)), var(--detail-w, 480px));
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 176, 32, 0.5);
  border-radius: 14px;
  background: var(--ground-alt, #1d1d1d);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}
.detail-banner[hidden] {
  display: none;
}
.banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
/* The just-posted banner's first line (navigation round 5, G4): "Posted for everyone" / "Posted for n friends". */
.banner-text strong {
  font: 700 15px/1.3 var(--ui);
  color: var(--ink);
}
.banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.banner-actions form {
  display: contents;
}
.banner-actions .btn {
  width: auto;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
}
/* The sign-in sheet's poster row (board 22). */
.sheet-poster {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 4px;
}
.sheet-poster .share-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: inherit;
}
.sheet-poster-title {
  font-size: 14px;
  font-weight: 700;
}
.sheet-poster .share-head-sub {
  font-size: 12px;
  color: var(--muted-2);
}
.detail-preview {
  margin: 12px var(--gutter) 0;
  font-size: 13px;
}
.detail-preview-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.detail-preview-link:hover {
  text-decoration: underline;
}
.detail:not([data-revealed]) .detail-preview {
  display: none;
}
.detail-controls .edit-btn {
  text-decoration: none;
}

/* The composer */
.composer {
  padding: 0 0 32px;
}
.composer-bar {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 var(--gutter) 0 4px;
  border-bottom: 1px solid var(--hair);
}
.composer-bar .composer-preview-link {
  justify-self: end;
}
.composer-cancel {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
}
.composer-title {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 400;
}
.composer-preview-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.composer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 14px var(--gutter) 0;
  box-sizing: border-box;
}
.composer-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.composer-identity {
  display: flex;
  gap: 12px;
  align-items: center;
}
.composer-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  background: var(--placeholder);
  flex-shrink: 0;
}
.composer-identity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.composer-identity-title {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.05;
}
.composer-identity-meta {
  font-size: 12px;
  color: var(--muted);
}
.composer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.composer-block {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.composer-block legend {
  padding: 0;
}
/* The composer's tiles, scoped under its form (0.57.0): unscoped, `.tile` and `.tile-title` restyled Explore's shelf tiles. */
.composer-form .tiles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.composer-form .tiles-2 > .tile {
  flex: 1 1 0;
}
.composer-form .tile {
  position: relative;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid var(--hair-2);
  background: var(--ground-alt, #1d1d1d);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}
.composer-form .tile-title {
  font-size: 13px;
  font-weight: 800;
}
.composer-form .tile-sub {
  font-size: 10px;
  color: var(--muted);
}
.composer-form .tile:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 176, 32, 0.12);
}
/* At three categories the unchecked boxes rest (composer.ts; roadmap Pre-work H). */
.composer-form .tile:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}
.composer-form .tile:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.composer-form .tile-cat {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border-width: 1px;
  border-color: var(--hair-3);
  background: transparent;
  flex-direction: row;
}
.composer-form .tile-cat .tile-title {
  font-size: 12px;
  font-weight: 700;
}
.composer-form .tile-cat:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.label-chips {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.label-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: var(--ground-alt, #1d1d1d);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.label-note {
  font-size: 11px;
  color: var(--muted-3);
}
.composer-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 176, 32, 0.5);
  border-radius: 12px;
  background: rgba(255, 176, 32, 0.12);
  font-size: 12px;
  line-height: 1.5;
}
.composer-warning[hidden] {
  display: none;
}
.composer-submit {
  margin-top: 4px;
}
.composer-submit[disabled] {
  opacity: 0.5;
  cursor: default;
}
.composer-footer {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}
.composer-footer .btn {
  flex: 1;
  height: 48px;
}
.composer-footer .is-destructive {
  color: #ff7a6b;
  border-color: rgba(255, 122, 107, 0.5);
}
.composer-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.composer-preview-label {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.composer-preview-card .feed-card {
  pointer-events: none;
}
.composer-stage {
  width: min(100%, 300px);
  margin: 0;
  pointer-events: none;
}
/* The composer's covered preview is phone-sized at every width, so it takes the phone's covered stage (0.56.0; the phone block above). */
.composer-stage.detail-stage {
  aspect-ratio: auto;
}
.composer-stage::before {
  content: "";
  display: block;
  padding-top: calc(var(--poster-r, 1.5) * 55% + var(--cover-band));
}
.composer-stage .detail-zoom {
  inset: 0 auto auto 0;
  width: 100%;
  aspect-ratio: 1 / var(--poster-r, 1.5);
}
.composer-stage .detail-poster {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.composer-stage .detail-cover {
  left: 0;
  width: 100%;
  top: 55%;
  height: var(--cover-band);
}
.composer-stage .call-btn {
  cursor: default;
}
@media (min-width: 1180px) {
  .composer-cols {
    grid-template-columns: minmax(0, 1fr) 390px;
    width: min(100%, var(--max));
    align-items: start;
  }
  .composer-preview-link {
    visibility: hidden;
  }
}

/* The posted screen (board 11) */
.posted {
  padding: 0 0 32px;
}
.posted-hero {
  position: relative;
  width: min(100%, 640px);
  height: 330px;
  margin: 0 auto;
  overflow: hidden;
  background: #0a0a0a;
}
.posted-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.55);
}
.posted-lockup {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 0 24px;
}
.posted-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.posted-title {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.02;
  font-weight: 400;
  text-shadow: 0 2px 10px #000;
}
.posted-lead {
  margin: 0;
  font-size: 13px;
  color: rgba(242, 242, 242, 0.85);
  text-shadow: 0 1px 6px #000;
}
.posted-actions {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
.posted-row {
  display: flex;
  gap: 8px;
}
.posted-row .btn {
  flex: 1;
  height: 48px;
}
.posted-back {
  align-self: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

/* The Unpost sheet's two buttons (board 13) */
.sheet-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.sheet-actions .btn {
  flex: 1;
  height: 48px;
  border-radius: var(--r-pill);
}
.sheet-dark .sheet-actions .btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.sheet-dark .sheet-actions .btn-dark {
  background: #f2f2f2;
  color: #131313;
}

/* The settings index (board 21) */
.settings-rows {
  display: flex;
  flex-direction: column;
}
.settings-rows form {
  display: contents;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.settings-row.link-destructive {
  color: #ff7a6b;
  margin: 0;
}
.settings-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.settings-row .chevron {
  color: var(--muted-3);
}

/* Privacy's removed list (board 16) */
.removed-label {
  margin: 18px 0 8px;
}
.removed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.removed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--ground-alt, #1d1d1d);
}
.removed-thumb {
  width: 44px;
  height: 33px;
  flex: 0 0 44px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  background: var(--placeholder);
  flex-shrink: 0;
}
.removed-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.removed-title {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.removed-meta {
  font-size: 12px;
  color: var(--muted);
}
.locked-note {
  margin-top: 0;
}

/* The Make sheet's drafts row (board 01) */
.make-drafts {
  justify-content: space-between;
}
.make-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── The social graph (feed slice 6; PDD §5 "People" and "Onboarding", §7.3; boards 02, 03, 04, 10, 14, 15, 16, 21) ──
   The profile head (both views), the relation button's states, the tabs row,
   the people lists (the follow lists, Following's suggestions, onboarding's
   rows, Privacy's muted list), the Following empty state, the onboarding
   tiles, the Friends-only badge, Account's read-only row, the follow sheet's
   profile row and the menu's form row. */

.page-main.profile {
  padding-top: 8px;
}
/* One column on every width (s-cuts, s-dfeed): the profile, the lists and Following share the feed's 640 px column. */
.page-main.profile,
.page-main.following {
  max-width: calc(640px + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
}
.person-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.profile-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}
.profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 8px;
}
.profile-bar .profile-handle {
  margin: 0;
}
.profile-back,
.profile-more,
.profile-gear {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 22px var(--ui);
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--r-pill);
}
.profile-back {
  margin-left: -12px;
}
.profile-more,
.profile-gear {
  margin-right: -12px;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-lg {
  margin: 0;
  width: 72px;
  height: 72px;
  font: 800 26px var(--ui);
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
}
.avatar-md {
  margin: 0;
  width: 44px;
  height: 44px;
  font: 800 15px var(--ui);
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
}
.avatar-sm {
  margin: 0;
  width: 32px;
  height: 32px;
  font: 800 12px var(--ui);
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
}
.profile-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.profile-stat {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.stat-n {
  font: 400 18px/1.2 var(--display);
}
.stat-word {
  font: 400 11px var(--ui);
  color: var(--muted-2);
}
.profile-handle {
  font: 400 18px/1.2 var(--display);
  margin: 0;
}
.profile-calls {
  margin: 0;
  font: 400 13px/1.5 var(--ui);
}
.profile-actions {
  display: flex;
  gap: 8px;
}
.profile-actions .btn {
  flex: 1;
  height: 44px;
  font-size: 13px;
  border-radius: var(--r-pill);
}
.profile-actions .relation-main {
  flex: 2;
}
.relation-form {
  display: contents;
}
.relation-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font: 700 14px var(--ui);
  border: 1px solid var(--hair-3);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.relation-btn.is-follow,
.relation-btn.is-back {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.relation-btn.is-following {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}
.relation-btn.is-friends {
  border-color: var(--accent);
  color: var(--ink);
}
.relation-btn.relation-sm {
  height: 40px;
  font-size: 13px;
  flex: none;
}
.profile-note {
  margin: 0;
  font: 400 12px/1.5 var(--ui);
  color: var(--muted-2);
}
.profile-note .accent {
  color: var(--accent);
  font-weight: 700;
}

/* The tabs row (boards 14 and 16): one scrolling row, the current one underlined. */
.profile-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--hair);
  margin: 12px 0 0;
}
.profile-tabs::-webkit-scrollbar {
  display: none;
}
.profile-tab {
  flex: none;
  padding: 8px 10px;
  font: 700 13px var(--ui);
  color: var(--muted-2);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.profile-tab[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: 700 10px var(--ui);
  margin-left: 2px;
  vertical-align: middle;
}
.profile .feed {
  padding-top: 0;
}
.profile .feed-list,
.profile-drafts {
  margin-top: 12px;
}
.profile .empty-filter {
  padding-top: 24px;
}
.profile-empty {
  padding: 36px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.profile-empty .empty-title {
  font: 400 20px/1.05 var(--display);
}
.profile-empty .btn {
  height: 44px;
  font-size: 13px;
  border-radius: var(--r-pill);
}
.collection.profile .collection-layout {
  padding-top: 0;
  /* No 2h rail on the own tabs: the feed's left rail stands beside the column, so the layout is one column at every width. */
  grid-template-columns: minmax(0, 1fr);
}
.collection.profile .collection-main {
  grid-column: 1;
}
.collection.profile .chips {
  padding-top: 16px;
}
.chip-count {
  margin-left: 4px;
  color: inherit;
  opacity: 0.75;
}
.list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.list-grid .list-tile {
  width: auto;
}

/* The people lists (boards 03, 04, 16): the avatar, the name and meta, the control. */
.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.person-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.person-name {
  font: 700 14px var(--ui);
  color: var(--ink);
  text-decoration: none;
}
.person-meta {
  font: 400 12px/1.4 var(--ui);
  color: var(--muted-2);
}
.friends-tag {
  font: 700 11px var(--ui);
  color: var(--accent);
  margin-left: 4px;
}
.follow-list .profile-bar {
  justify-content: flex-start;
  gap: 4px;
}

/* Following (board 04): the empty state and the suggestions. */
.following-empty {
  padding: 40px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  align-items: center;
}
.following-empty .empty-title {
  font: 400 22px/1.05 var(--display);
}
.following-empty .btn {
  height: 44px;
  font-size: 13px;
  border-radius: var(--r-pill);
}
.suggestions .kicker {
  padding: 6px 0;
}
.suggestions-more {
  width: 100%;
  justify-content: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  height: 48px;
}

/* The locked Friends page (board 10). */
.locked-friends {
  color: var(--accent);
}

/* The Friends-only badge (board 04): the amber one. */
.feed-card-badge.is-friends {
  background: rgba(255, 176, 32, 0.15);
}

/* Onboarding (board 03): the category tiles and the people rows. */
.onboarding .onb-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.onb-tile {
  display: block;
  cursor: pointer;
}
.onb-tile-box {
  min-height: 92px;
  border-radius: 16px;
  border: 2px solid var(--hair-2);
  background: var(--placeholder);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
  box-sizing: border-box;
}
.onb-tile input:checked + .onb-tile-box {
  border-color: var(--accent);
  background: rgba(255, 176, 32, 0.12);
}
.onb-tile input:focus-visible + .onb-tile-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.onb-tile-name {
  font: 400 16px/1.1 var(--display);
}
.onb-tile-sub {
  font: 400 11px/1.3 var(--ui);
  color: var(--muted);
}
.onb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.onb-skip {
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
}
.onb-follow {
  cursor: pointer;
}
.onb-follow input:checked + .relation-btn {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}
.onb-follow input:focus-visible + .relation-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.onboarding .footnote {
  text-align: center;
}
/* 4c's age box (2026-10-28): required, checked by the route; the claim form's box in the page's ink. */
.welcome-age {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  font: 600 15px/1.4 var(--ui);
  color: var(--ink);
  cursor: pointer;
}
.welcome-age input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}
.welcome-age + .field-line {
  margin-top: -4px;
}

.welcome-privacy {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--placeholder);
  font: 400 12px/1.5 var(--ui);
  color: var(--muted);
}

/* Account's read-only username row (board 21). */
.field-readonly .field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field-tag {
  font: 400 12px var(--ui);
  color: var(--muted-3);
}
.field-value {
  margin: 6px 0 0;
  font: 600 15px var(--ui);
}

/* The menu's Unmute row (a form) and the follow sheet's profile row. */
.menu-row-form {
  margin: 0;
}
.sheet-profile .avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 16px;
}
.muted-list .person-row {
  padding: 8px 0;
}

/* ── The feed's rails (0.59.0; board 17, s-dfeed): `/`, and the left rail
   alone on the tab pages ─────────────────────────────────────────────────
   The shell wraps the feed's column and the two rails (the left before the
   column in the DOM, the right after it, placed by the grid). The tab pages
   (`/following`, `/explore`, `/c/<slug>`, the profiles: `.is-left`) put the
   left rail beside their own `main` in the same grid, the third column left
   empty so the column sits where `/` puts it, the own Saved, Lists and
   Liked tabs included (one column box on every rail page). Under 1024 px, and from 1024 to 1279 on a
   touch pointer, the rails are not drawn and the column is today's. From
   1024 to 1279 on a fine pointer the left rail is 44 px icons in the margin
   beside the column, which stays where every page puts it; each label is
   the link's name and its tooltip. From 1280 both rails: 220 px, the
   column, 300 px, in a 1256 px shell the header's row matches. The class
   names are the feed's own: `.rail*` is 2h's collection rail. */

.page > .feed-shell {
  flex: 1;
}

.feed-rail {
  display: none;
}

@media (min-width: 1024px) and (max-width: 1279.98px) and (hover: hover) and (pointer: fine) {
  .feed-shell {
    display: grid;
    grid-template-columns: 1fr minmax(0, calc(640px + 2 * var(--gutter))) 1fr;
    align-items: start;
  }
  .feed-shell > .page-main {
    grid-column: 2;
    grid-row: 1;
  }
  .feed-rail-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    position: sticky;
    top: var(--header-h);
    z-index: 6;
    width: 44px;
    padding: 20px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .feed-rail-link {
    position: relative;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  /* The label is the link's name and, on hover or keyboard focus, its tooltip (opacity, never visibility: the name stays). */
  .feed-rail-link .feed-rail-label {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--hair-2);
    background: #2a2a2a;
    color: var(--ink);
    font: 600 12px/1.2 var(--ui);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
  }
  .feed-rail-link:hover .feed-rail-label,
  .feed-rail-link:focus-visible .feed-rail-label {
    opacity: 1;
  }
  @media (prefers-reduced-motion: reduce) {
    .feed-rail-link .feed-rail-label {
      transition: none;
    }
  }
  .feed-rail-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
  }
  .feed-rail-kicker {
    width: 28px;
    height: 1px;
    margin: 12px 0;
    background: var(--hair-2);
  }
  .feed-rail-kicker .feed-rail-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .feed-rail-links {
    display: none;
  }
}

@media (min-width: 1280px) {
  body.has-rails .site-header-bar {
    max-width: 1256px;
  }
  /* The install card stands in for the in-feed first-run card where the right rail shows. */
  body.has-rails .feed .first-run {
    display: none;
  }
  .feed-shell {
    max-width: 1256px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
    display: grid;
    grid-template-columns: 220px minmax(0, calc(640px + 2 * var(--gutter))) 300px;
    align-items: start;
  }
  .feed-shell > .page-main {
    grid-column: 2;
    grid-row: 1;
  }
  .feed-rail-left,
  .feed-rail-right {
    display: flex;
    flex-direction: column;
    align-self: start;
    position: sticky;
    top: var(--header-h);
    z-index: 6;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    scrollbar-width: none;
    box-sizing: border-box;
    padding: 20px 0 24px;
  }
  .feed-rail-left {
    grid-column: 1;
    grid-row: 1;
    gap: 2px;
  }
  .feed-rail-right {
    grid-column: 3;
    grid-row: 1;
    gap: 16px;
  }
  .feed-rail-link {
    height: 40px;
    padding: 0 12px;
    gap: 12px;
  }
  .feed-rail-count {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
  }
  .feed-rail-kicker {
    padding: 18px 12px 6px;
    font: 700 11px var(--ui);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .feed-rail-links {
    padding: 22px 12px 0;
    font: 400 12px/1.8 var(--ui);
    color: var(--muted-2);
  }
  .feed-rail-links a {
    color: var(--muted-2);
    text-decoration: none;
  }
  .feed-rail-links a:hover {
    color: var(--ink);
  }
}

/* The rail everywhere (2026-11-09): every site and detail page outside `/`'s
   two rails and the column pages above carries the left rail in the
   `.is-wide` shell, so a reader is never on a desktop page with no way out
   but Back. The main keeps its own width rules (the matchup page's two
   columns, the composer's, the lists' 2h rail, `.page-main`'s 1180 and the
   prose column) and centres in the shell's second column: from 1280 the
   220 px rail and the rest of the 1256 px shell (988 px, the header's row
   matching), from 1024 to 1279 on a fine pointer the 44 px icon rail at
   the gutter and the rest of the window. The matchup page's pair (at most
   1000 px) shrinks its stage track to fit the column where it must; the
   phone layout and every width under 1024 are untouched. */
@media (min-width: 1024px) and (max-width: 1279.98px) and (hover: hover) and (pointer: fine) {
  .feed-shell.is-wide {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-left: var(--gutter);
  }
  .feed-shell.is-wide > main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}

@media (min-width: 1280px) {
  .feed-shell.is-wide {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .feed-shell.is-wide > main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1279.98px) and (hover: hover) and (pointer: fine), (min-width: 1280px) {
  .feed-rail-group {
    display: contents;
  }
  .feed-rail-link {
    display: flex;
    align-items: center;
    flex: none;
    border-radius: 12px;
    box-sizing: border-box;
    text-decoration: none;
    font: 600 14px var(--ui);
    color: rgba(242, 242, 242, 0.8);
  }
  .feed-rail-link:hover {
    color: var(--ink);
    background: var(--nav-active-bg);
  }
  /* Navigation round 5 (PDD §7 "Sidebar"): a lit root row is the filled glyph with the ink, never amber on a tint; a
     marked shortcut (a 20 px outline row, never filled) is the ink on a faint tint. */
  .feed-rail-link.is-active {
    color: var(--ink);
    font-weight: 700;
  }
  .feed-rail-link .icon-filled,
  .feed-rail-link.is-active .icon-outline {
    display: none;
  }
  .feed-rail-link.is-active .icon-filled {
    display: block;
  }
  .feed-rail-sub.is-current {
    color: var(--ink);
    font-weight: 700;
    background: var(--nav-active-bg);
  }
  .feed-rail-icon {
    flex: none;
  }
  .feed-rail-count {
    box-sizing: border-box;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .feed-rail-box {
    background: var(--placeholder);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }
  .feed-rail-heading {
    margin: 0 0 2px;
    font: 700 11px var(--ui);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .feed-rail-box .person-row {
    gap: 10px;
    padding: 10px 0;
  }
  .feed-rail-box .person-row:last-child {
    border-bottom: 0;
  }
  .feed-rail-box .avatar-md {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .feed-rail-box .person-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .feed-rail-box .relation-btn.relation-sm {
    height: 36px;
    padding: 0 14px;
  }
  .feed-rail-more {
    padding: 10px 0 0;
    text-align: center;
    font: 700 13px var(--ui);
    color: var(--accent);
    text-decoration: none;
  }
  .feed-rail-pick-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .feed-rail-pick {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    text-decoration: none;
    color: var(--ink);
  }
  /* The poster's top 55 % at its own ratio, as the card's frame: the banner never in the crop. */
  .feed-rail-thumb {
    flex: none;
    width: 56px;
    aspect-ratio: var(--crop, 1024 / 845);
    border-radius: 8px;
    overflow: hidden;
    background: var(--ground);
  }
  .feed-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
  }
  .feed-rail-pick-title {
    font: 700 13px/1.3 var(--ui);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .feed-rail-install,
  .feed-rail-make {
    gap: 10px;
    border: 1px solid var(--hair-2);
    border-radius: 18px;
  }
  .feed-rail-install-title,
  .feed-rail-make-title {
    margin: 0;
    font: 400 22px/1.02 var(--display);
    letter-spacing: -0.02em;
  }
  .feed-rail-install-body,
  .feed-rail-make-body {
    margin: 0;
    font: 400 13px/1.5 var(--ui);
    color: var(--muted);
  }
  .feed-rail-install .btn,
  .feed-rail-make .btn {
    margin-top: 4px;
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: var(--r-pill);
  }
}

/* The icon rail (1024 to 1279 px on a fine pointer; navigation round 5, PDD §7 "Sidebar"): the four roots alone, no
   Following, no Collection kicker or rows, no Shared with me (the avatar's panel is the way to them there). After the
   block above, whose `.feed-rail-group` is `display: contents`. */
@media (min-width: 1024px) and (max-width: 1279.98px) and (hover: hover) and (pointer: fine) {
  .feed-rail-left .feed-rail-sub,
  .feed-rail-left .feed-rail-kicker,
  .feed-rail-left .feed-rail-group {
    display: none;
  }
}

/* ── The header search (A1 · C3 · E2; 2026-10-28; navigation round 5) ─────
   A1, moved by navigation round 5 (PDD §7 "Header"): at desktop alone a
   search field (a plain GET form to /search, at most 460 px) centred over
   the feed's column: the header's row is a grid of the shell's own tracks
   (the column between two 1fr tracks on the icon rail's band, 220 px · the
   column · 300 px from 1280 px on a rails page), so the field sits on the
   column's centre line; the phone layout has no field and no glyph (the bar's
   Explore leads to /search). /search's own field hides where the header's
   shows. The empty /search: the chips and, in the phone layout, the device's
   recent searches. C3: in the phone layout the People strip follows the
   second matchup; at desktop A1's People section follows every matchup; one
   of the two is drawn (`display: none` takes the other out of the tree). */

.nav-search-form {
  display: none;
  position: relative;
  align-items: center;
  width: 100%;
  max-width: 460px;
}

.nav-search-form .search-icon {
  left: 14px;
}

.nav-search-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 16px 0 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: 500 14px var(--ui);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.nav-search-input::placeholder {
  color: var(--muted-3);
}

.nav-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.nav-search-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

@media (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .site-header-bar:has(> .nav-search-form) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, calc(640px + 2 * var(--gutter))) minmax(0, 1fr);
    gap: 0;
  }
  .site-header-bar:has(> .nav-search-form) > .wordmark {
    grid-column: 1;
    justify-self: start;
  }
  .site-header-bar:has(> .nav-search-form) > .site-nav {
    grid-column: 3;
    justify-self: end;
  }
  .nav-search-form {
    display: flex;
    grid-column: 2;
    justify-self: center;
    margin: 0 auto;
  }
  .search-page-form {
    display: none;
  }
}

@media (min-width: 1280px) {
  body.has-rails .site-header-bar:has(> .nav-search-form) {
    grid-template-columns: 220px minmax(0, calc(640px + 2 * var(--gutter))) 300px;
  }
}

.search-title.display-h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  margin: 8px 0 6px;
  overflow-wrap: anywhere;
}

.search-count {
  margin: 0 0 8px;
  font: 400 13px var(--ui);
  color: var(--muted);
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}

/* A plain text button under the recent chips (`.btn-text` is drawn for links: the button's own ground and border go). */
.search-recent-clear {
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 13px var(--ui);
  color: var(--muted);
  cursor: pointer;
}

.search-recent-clear:hover {
  color: var(--ink);
}

@media (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .search-recent {
    display: none;
  }
}

.result.person .result-chevron {
  margin-left: auto;
  flex: none;
  color: var(--muted);
}

.result:hover .result-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-people-desk {
  display: none;
}

.people-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 12px;
}

.people-strip::-webkit-scrollbar {
  display: none;
}

.people-card {
  flex: none;
  width: 124px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--hair-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
}

.people-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 18px var(--ui);
}

.people-card-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 13px var(--ui);
}

.people-card-meta {
  font: 400 12px var(--ui);
  color: var(--muted);
}

@media (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .search-people-strip {
    display: none;
  }
  .search-people-desk {
    display: block;
  }
}

/* ── Navigation round 5, slice 3 (PDD §7 "Pages", "Header"; the scope's Explore, Settings, profile, info-page and
   task rows): what each layout draws of one markup. ── */

/* The phone's folded Explore: the field, the keyword chips, the categories, Staff picks and People; the feed's pill
   row, Hot and New are the feed's own and stay off. At desktop today's page (the header's field searches there; the
   page's own form is `.search-page-form`, hidden above). The categories are in the markup twice, one per layout. */
.explore-suggest {
  margin: -8px 0 8px;
}
.explore-people {
  margin: 22px 0;
}
.explore-people .shelf-title {
  margin-bottom: 10px;
}

@media (max-width: 1023.98px), (max-width: 1279.98px) and (not ((hover: hover) and (pointer: fine))) {
  .explore > .pill-row,
  .explore > .explore-desk {
    display: none;
  }
  /* A task page (the composer, the change-password form; §11 B7): the wordmark alone, the page's own ✕ or ‹ Account its one way back. */
  .site-header.is-task .site-nav {
    display: none;
  }
  /* A visited profile's ‹ Feed: the chevron and the parent's name. */
  .profile-back:has(> .profile-back-label) {
    width: auto;
    padding: 0 12px 0 8px;
    margin-left: -8px;
    gap: 4px;
    font: 600 14px var(--ui);
  }
}

@media (min-width: 1280px), (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .explore > .explore-phone {
    display: none;
  }
  /* ‹ with a sidebar root's name (Settings' ‹ Profile, the info pages' ‹ Feed): the root is lit beside it, so no ‹. */
  .back-link.up-root {
    display: none;
  }
  /* A visited profile at desktop: the bare chevron as today, the label kept as its name. */
  .profile-back-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* The info pages' ‹ Feed row above their heading, in the phone layout. */
.page-main.about > .back-link.up-root,
.page-main.prose > .back-link.up-root {
  margin: 8px 0 0 -8px;
}
