/* odflow base shell. Uses ONLY tokens from tokens.css — never hardcode a hex here. */
/* Chrome geometry: 236px rail, 60px top strip. */
:root { --od-rail: 236px; --od-topbar-h: 60px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: rgb(var(--pc-color-gray-950));
  color: rgb(var(--pc-color-white));
  font-family: var(--pc-font-body);
  font-size: var(--pc-text-body-medium-regular-font-size);
  line-height: var(--pc-text-body-medium-regular-line-height);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

#app { min-height: 100%; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; }
.screen-body { flex: 1; padding-bottom: 84px; }

/* ---- top bar ----
   Deliberately near-invisible: 60% page-colour over a heavy blur, no border and
   no shadow, so it reads as bare page rather than as a bar. A border-bottom is
   what makes a strip read as "a whole bar", so do not add one. */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--pc-space-2);
  height: var(--od-topbar-h); flex: none;
  padding: 0 var(--pc-space-2);
  background: rgb(var(--pc-color-gray-950) / .6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.tb-back { font-size: 26px; line-height: 1; padding: 0 var(--pc-space-1); color: rgb(var(--pc-color-white)); }
.tb-logo {
  font-family: var(--pc-font-display-narrow); font-weight: 700; font-style: italic;
  font-size: var(--pc-text-title-sentence-four-bold-font-size); letter-spacing: -.01em;
  background: var(--pc-gradient-accent-surface); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tb-right { margin-left: auto; display: flex; align-items: center; gap: var(--pc-space-2); }
/* Auth pills: 32px tall, 12px side padding, body-size text at regular weight,
   no border, no shadow. Login is fully transparent; Join Free carries the gradient. */
.topbar .btn {
  height: 32px; padding: 0 var(--pc-space-3);
  font-size: var(--pc-text-body-small-regular-font-size);
  line-height: var(--pc-text-body-small-regular-line-height);
  font-weight: 400; box-shadow: none;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--pc-space-2);
  border-radius: var(--pc-radius-pill); font-weight: 600; white-space: nowrap;
  transition: filter var(--pc-motion-duration-fast) var(--pc-motion-ease-default),
              background var(--pc-motion-duration-fast) var(--pc-motion-ease-default),
              transform var(--pc-motion-duration-instant) var(--pc-motion-ease-default);
  padding: var(--pc-space-3) var(--pc-space-5);
  font-size: var(--pc-text-label-sentence-large-bold-font-size);
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-accent { background: var(--pc-gradient-pink-cta); color: rgb(var(--pc-color-white)); box-shadow: var(--pc-shadow-inner-sm); }
.btn-accent:hover:not(:disabled) { filter: brightness(1.08); }
.btn-secondary { background: rgb(var(--pc-color-gray-800)); color: rgb(var(--pc-color-white)); }
.btn-secondary:hover:not(:disabled) { background: rgb(var(--pc-color-gray-750)); }
.btn-ghost { background: transparent; color: rgb(var(--pc-color-white)); }
.btn-ghost:hover:not(:disabled) { background: var(--pc-color-press-on-dark); }
.btn-sm { padding: var(--pc-space-2) var(--pc-space-4); font-size: var(--pc-text-label-sentence-small-bold-font-size); }
.btn-lg { padding: var(--pc-space-4) var(--pc-space-6); font-size: var(--pc-text-body-large-medium-font-size); }
.btn-block { width: 100%; }

/* sticky bottom CTA used by the wizard + walls */
.cta-dock {
  position: sticky; bottom: 76px; z-index: 30;
  padding: var(--pc-space-4);
  background: linear-gradient(to top, rgb(var(--pc-color-gray-950)) 60%, transparent);
}

/* subscriber badge that replaces Upgrade in the top bar */
.topbar .btn-plan { gap: var(--pc-space-1); font-weight: 600; }
.topbar .btn-plan .pch-icon { color: rgb(var(--pc-color-brand-pink)); }

/* ---- Petal badge ---- */
.coin-badge, .coin-counter {
  display: inline-flex; align-items: center; gap: var(--pc-space-1);
  padding: var(--pc-space-1) var(--pc-space-3);
  border-radius: var(--pc-radius-pill);
  background: rgb(var(--pc-color-gray-800));
  font-size: var(--pc-text-label-sentence-small-bold-font-size); font-weight: 700;
}
.topbar .coin-badge { height: 36px; padding: 0 var(--pc-space-3); }

/* ---- bottom nav ---- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgb(var(--pc-color-gray-900) / .96);
  backdrop-filter: blur(var(--pc-blur-heavy));
  border-top: 1px solid var(--pc-color-hairline-on-dark);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: var(--pc-space-2) 0 var(--pc-space-2);
  color: rgb(var(--pc-color-gray-500));
  transition: color var(--pc-motion-duration-fast) var(--pc-motion-ease-default);
}
.bn-item:hover { color: rgb(var(--pc-color-gray-200)); }
.bn-item.is-active { color: rgb(var(--pc-color-white)); }
.bn-item.is-active .pch-icon { background: var(--pc-gradient-accent-surface); }
.bn-label { font-size: var(--pc-text-micro-small-medium-font-size); line-height: 1; }

/* icons: mask-based so they tint with currentColor */
.pch-icon[data-icon='play'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M10.5 9.2v5.6l4.5-2.8z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M10.5 9.2v5.6l4.5-2.8z'/></svg>"); }
.pch-icon[data-icon='people'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='9' r='3.2'/><path d='M3.5 19a5.5 5.5 0 0 1 11 0'/><path d='M16 6.5a3 3 0 0 1 0 5.6'/><path d='M17.5 19a5.4 5.4 0 0 0-1.6-3.8'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='9' r='3.2'/><path d='M3.5 19a5.5 5.5 0 0 1 11 0'/><path d='M16 6.5a3 3 0 0 1 0 5.6'/><path d='M17.5 19a5.4 5.4 0 0 0-1.6-3.8'/></svg>"); }
.pch-icon[data-icon='bell'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M18 15.5V11a6 6 0 1 0-12 0v4.5L4.5 18h15z'/><path d='M10 20.5a2 2 0 0 0 4 0'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M18 15.5V11a6 6 0 1 0-12 0v4.5L4.5 18h15z'/><path d='M10 20.5a2 2 0 0 0 4 0'/></svg>"); }
.pch-icon[data-icon='person'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8.5' r='3.5'/><path d='M4.5 20a7.5 7.5 0 0 1 15 0'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8.5' r='3.5'/><path d='M4.5 20a7.5 7.5 0 0 1 15 0'/></svg>"); }
.pch-icon[data-icon='compass'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m15.5 8.5-2.1 5-5 2.1 2.1-5z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m15.5 8.5-2.1 5-5 2.1 2.1-5z'/></svg>"); }
.pch-icon[data-icon='chat'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a8 8 0 0 1-8 8H7l-4 3v-6.5A8 8 0 0 1 11 4h2a8 8 0 0 1 8 8Z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a8 8 0 0 1-8 8H7l-4 3v-6.5A8 8 0 0 1 11 4h2a8 8 0 0 1 8 8Z'/></svg>"); }
.pch-icon[data-icon='plus'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>"); }
.pch-icon[data-icon='sparkle'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='none'><path d='M12 3l1.9 5.6L19.5 10l-5.6 1.9L12 17.5l-1.9-5.6L4.5 10l5.6-1.4z'/><path d='M18.5 15.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='none'><path d='M12 3l1.9 5.6L19.5 10l-5.6 1.9L12 17.5l-1.9-5.6L4.5 10l5.6-1.4z'/><path d='M18.5 15.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z'/></svg>"); }
.pch-icon[data-icon='folder'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/></svg>"); }
.pch-icon[data-icon='diamond'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='none'><path d='M7.4 3h9.2l4.4 5.6L12 21.4 3 8.6z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' stroke='none'><path d='M7.4 3h9.2l4.4 5.6L12 21.4 3 8.6z'/></svg>"); }
.pch-icon[data-icon='gear'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3.2'/><path d='M12 2.8v2.4M12 18.8v2.4M2.8 12h2.4M18.8 12h2.4M5.5 5.5l1.7 1.7M16.8 16.8l1.7 1.7M5.5 18.5l1.7-1.7M16.8 7.2l1.7-1.7'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3.2'/><path d='M12 2.8v2.4M12 18.8v2.4M2.8 12h2.4M18.8 12h2.4M5.5 5.5l1.7 1.7M16.8 16.8l1.7 1.7M5.5 18.5l1.7-1.7M16.8 7.2l1.7-1.7'/></svg>"); }
.pch-icon { display: inline-block; background: currentColor;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

/* ---- sheets / modals ---- */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  background: var(--pc-overlay-background); opacity: 0;
  transition: opacity var(--pc-motion-duration-normal) var(--pc-motion-ease-out);
}
.sheet-scrim.is-open { opacity: 1; }
.sheet-scrim.is-closing { opacity: 0; }
.sheet-scrim.sheet-center { align-items: center; }
/* ui.js puts opts.class on .sheet itself, so center the scrim via :has() */
.sheet-scrim:has(> .sheet.sheet-center) { align-items: center; }
/* the 18+ gate blacks out everything behind it — solid black with a faint
   brand glow so the glass sheet has something to refract */
.sheet-scrim:has(.agegate) {
  background:
    radial-gradient(110% 80% at 50% 44%, rgb(var(--pc-color-brand-pink) / .14), transparent 62%),
    #000;
}
.sheet {
  position: relative; width: 100%; max-width: 460px;
  background: rgb(var(--pc-color-gray-900));
  border-radius: var(--pc-radius-xl) var(--pc-radius-xl) 0 0;
  padding: var(--pc-space-6) var(--pc-space-5) var(--pc-space-8);
  box-shadow: var(--pc-shadow-heavy);
  transform: translateY(16px);
  transition: transform var(--pc-motion-duration-normal) var(--pc-motion-ease-spring);
  max-height: 92dvh; overflow-y: auto;
}
/* centered sheet = floating glass card: inset from every edge, translucent
   over a blur, brand-pink surface tint, gradient hairline border and a white
   top lip so the glass reads as one lit slab against the black scrim.
   (opts.class rides on .sheet itself) */
.sheet.sheet-center {
  width: min(calc(100% - 2 * var(--pc-space-6)), 460px);
  margin: var(--pc-space-6) 0;
  border-radius: calc(var(--pc-radius-xl) + 4px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(var(--pc-color-brand-pink) / .12), transparent 62%),
    linear-gradient(rgb(var(--pc-color-gray-800) / .66), rgb(var(--pc-color-gray-900) / .66));
  background-clip: padding-box;
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid transparent;
  box-shadow: var(--pc-shadow-heavy), 0 0 0 1px #00000059, inset 0 1px 0 rgb(var(--pc-color-white) / .18);
}
.sheet.sheet-center::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; padding: 1px;
  background: var(--pc-gradient-border-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
.sheet.sheet-center > * { position: relative; z-index: 1; }
.is-open .sheet { transform: none; }
.sheet-x { position: absolute; top: var(--pc-space-3); right: var(--pc-space-4); font-size: 26px; line-height: 1; color: rgb(var(--pc-color-gray-500)); }

/* ---- age gate ---- */
.agegate { text-align: center; }
.agegate h2 { font-family: var(--pc-font-display-narrow); font-size: var(--pc-text-title-two-font-size); margin: 0 0 var(--pc-space-2); text-transform: uppercase; }
.ag-sub { color: rgb(var(--pc-color-gray-500)); margin: 0 0 var(--pc-space-1); }
.ag-fine { color: rgb(var(--pc-color-gray-500)); font-size: var(--pc-text-body-small-regular-font-size); margin: 0 0 var(--pc-space-6); }
.ag-leave { display: block; margin-top: var(--pc-space-4); color: rgb(var(--pc-color-gray-500)); font-size: var(--pc-text-body-small-regular-font-size); }

/* ---- utility ---- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pc-space-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pc-space-2); }
.muted { color: rgb(var(--pc-color-gray-500)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* unknown icon names must not paint a solid box */
.pch-icon:not([data-icon]) { background: none; }



/* ---- side panel components (shared by the desktop rail and mobile drawer) ---- */
.sn-panel {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: rgb(var(--pc-color-gray-900));
  border: 1px solid rgb(var(--pc-color-gray-700)); border-left: 0;
  border-radius: 0 var(--pc-radius-xl) var(--pc-radius-xl) 0;
  padding: var(--pc-space-2) 0 var(--pc-space-4);
}
.sn-head { flex: none; display: flex; align-items: center; height: 44px; padding: 0 var(--pc-space-3); }
.sn-logo {
  padding-left: var(--pc-space-3);
  font-family: var(--pc-font-display-narrow); font-weight: 700; font-style: italic;
  font-size: var(--pc-text-title-sentence-four-bold-font-size); letter-spacing: -.01em;
  background: var(--pc-gradient-accent-surface);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Only the nav list scrolls — the Upgrade block below never scrolls away. */
.sn-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--pc-space-3); }
.sn-list { display: flex; flex-direction: column; gap: var(--pc-space-1); padding: var(--pc-space-1) 0; }
.sn-list-support { gap: var(--pc-space-2); padding: var(--pc-space-3) 0; }
.sn-list-flush { gap: 0; padding: 0; }

/* 44px rows, 12px padding, 12px label: compact on purpose, which is what keeps
   the rail from feeling oversized. */
.sn-item {
  display: flex; align-items: center; gap: var(--pc-space-2); width: 100%;
  min-height: 44px; padding: var(--pc-space-3);
  border-radius: var(--pc-radius-md);
  font-size: var(--pc-text-label-sentence-micro-medium-font-size);
  font-weight: 500; text-align: left;
  color: rgb(var(--pc-color-white));
  transition: background var(--pc-motion-duration-fast) var(--pc-motion-ease-default),
              color var(--pc-motion-duration-fast) var(--pc-motion-ease-default);
}
.sn-label { line-height: 20px; }
/* Only the ICON changes colour between states; the label stays white in both.
   Hover fill is identical to the active fill. */
.sn-item .pch-icon { flex: none; color: rgb(var(--pc-color-gray-500)); }
.sn-item:hover, .sn-item.is-active { background: var(--pc-color-overlay-white-faint); }
.sn-item:hover .pch-icon, .sn-item.is-active .pch-icon { color: rgb(var(--pc-color-white)); }

.sn-div { height: 1px; background: var(--pc-color-hairline-on-dark); margin: var(--pc-space-1) 0; }
.sn-div-gap { margin-bottom: var(--pc-space-4); }

.sn-foot { flex: none; margin-top: var(--pc-space-1); padding: 0 var(--pc-space-3); }
.sn-cta { width: 100%; min-height: 42px; padding: 0 var(--pc-space-4); }
.sn-legal { margin: var(--pc-space-3) 0 0; text-align: center; }
/* policy link row: shared by the rail, the drawer and any screen that needs one */
.legal-links {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--pc-space-1);
  font-size: var(--pc-text-micro-xs-font-size); line-height: var(--pc-text-micro-xs-line-height);
  color: rgb(var(--pc-color-gray-450));
}
.legal-links a { color: rgb(var(--pc-color-gray-450)); padding: 2px 0; }
.legal-links a:hover { color: rgb(var(--pc-color-white)); }
.legal-dot { color: rgb(var(--pc-color-gray-450)); }
.sn-fiction {
  margin: var(--pc-space-2) 0 0; text-wrap: balance;
  font-size: var(--pc-text-micro-xs-font-size); line-height: var(--pc-text-micro-xs-line-height);
  color: rgb(var(--pc-color-gray-450));
}

/* ---- mobile nav drawer (hamburger) ---- */
.tb-menu { display: inline-flex; align-items: center; padding: var(--pc-space-2); color: rgb(var(--pc-color-brand-pink)); }
.pch-icon[data-icon='menu'] { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round'><path d='M4 6.5h16M4 12h16M4 17.5h16'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round'><path d='M4 6.5h16M4 12h16M4 17.5h16'/></svg>"); }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 120;
  background: var(--pc-overlay-background);
  opacity: 0; transition: opacity var(--pc-motion-duration-normal) var(--pc-motion-ease-out);
}
.drawer-scrim.is-open { opacity: 1; }
.drawer-scrim.is-closing { opacity: 0; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: min(78vw, 300px); display: flex;
  transform: translateX(-102%);
  transition: transform var(--pc-motion-duration-normal) var(--pc-motion-ease-spring);
}
.drawer-scrim.is-open .drawer { transform: none; }
/* on mobile the hamburger replaces the wordmark */
@media (max-width: 999.98px) { .topbar .tb-logo { display: none; } }

/* ============================ DESKTOP ============================
   Desktop is a fixed left rail + a centred content column.
   Under 1000px nothing changes: the rail hides and bottomNav returns. */
.sidenav { display: none; }
.screen-inner { width: 100%; }

@media (min-width: 1000px) {
  /* Outer is a transparent gutter as wide as --od-rail; the visible slab is .sn-panel, which is
     bordered on top/right/bottom and rounded on its right corners so it floats
     rather than sitting flush against the page edge. */
  .sidenav {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--od-rail); z-index: 60;
    display: flex; padding: 0; background: none; border: 0; overflow: hidden;
  }
  /* the rail owns navigation on desktop */
  .bottomnav { display: none; }
  .tb-menu, .drawer-scrim { display: none; }

  /* content shifts right of the rail and centres in what's left.
     chat and paywall build separate roots, so offset those too. */
  .screen, .chat-screen, .chat-root, .pw-screen, .pw-root { padding-left: var(--od-rail); }
  #app > *:not(.screen) { padding-left: var(--od-rail); }
  .tb-logo { display: none; }            /* logo lives in the rail */
  .screen-body { padding-bottom: var(--pc-space-10); }
  /* The content column width is ONE knob: --screen-max. A surface opts into a
     wider (or narrower) column by setting that property on its own .screen —
     see the per-surface block below. Setting a custom property never has to
     out-specify this rule, which is what broke the per-page max-width
     overrides that used to live in the screen stylesheets. */
  .screen-inner { max-width: var(--screen-max, 640px); margin: 0 auto; padding: 0 var(--pc-space-6); }

  /* the header row insets 16px at md+ */
  .topbar { padding: 0 var(--pc-space-4); }

  /* sticky CTAs sit above the page bottom, not above a nav bar that no longer exists */
  .cta-dock { bottom: 0; max-width: 640px; margin: 0 auto; }

  /* sheets centre instead of rising from the bottom edge */
  .sheet-scrim { align-items: center; padding-left: var(--od-rail); }
  .sheet { border-radius: var(--pc-radius-xl); max-width: 480px; }
}

@media (min-width: 1400px) {
  /* the wide step of the ladder: a surface can pin its own via --screen-max-wide,
     otherwise its --screen-max carries through and only the default column grows */
  .screen-inner { max-width: var(--screen-max-wide, var(--screen-max, 720px)); }
  .cta-dock { max-width: 720px; }
}

/* ---- per-surface desktop widths --------------------------------------
   640px suits reading/forms. A browse grid wants more; a two-column summary
   wants a mid width; a vertical video feed wants a phone-shaped column, the
   way every short-form app does it. Each surface just declares --screen-max;
   the .screen-inner rules above are the only place a max-width is written.
   Below 1000px nothing reads these, so they can sit outside the query. */
.screen.sc-explore,
.screen.sc-myai,
.screen.sc-profile { --screen-max: 1100px; }
.screen.sc-character { --screen-max: 960px; }
.screen.sc-feed { --screen-max: 440px; }

@media (min-width: 1000px) {
  .screen.sc-feed .screen-inner { padding: 0; }
  .screen.sc-feed .screen-body { padding-bottom: 0; }
  /* the feed item is a card on desktop, not a full-bleed wall */
  .screen.sc-feed .feed-item,
  .screen.sc-feed [class*='feed-slide'],
  .screen.sc-feed [class*='feed-card'] {
    border-radius: var(--pc-radius-xl);
    overflow: hidden;
    margin: var(--pc-space-4) 0;
  }
}

/* The display face is a heavy, narrow geometric sans. Archivo's variable width
   axis gets us there: dial width down, weight up. Applied wherever the display
   token is used, because the font-family token alone does not carry the axis,
   so any display string missing from this list silently renders at Archivo's
   default width (the character page headline once ran ~30% too wide for its
   cap height for exactly that reason). */
.tb-logo, .sn-logo, .w-h1, .w-style-label,
.pc-signup-h, .pc-signup-list li span, .wall-head, .wall-list li span,
.pc-sheet h3, .pc-done h3,
[style*="display-narrow"], .pch-display {
  font-stretch: 82%;
  font-variation-settings: 'wdth' 82, 'wght' 900;
}

/* ---- 18+ gate: brand, Terms link, and the three "interested in" art cards ---- */
.ag-brand {
  margin: 0 0 var(--pc-space-3);
  font-family: var(--pc-font-display-narrow); font-style: italic; font-weight: 700;
  font-size: var(--pc-text-title-sentence-four-bold-font-size);
  background: var(--pc-gradient-accent-surface);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ag-terms { color: rgb(var(--pc-color-white)); text-decoration: underline; }
.ag-int { margin: var(--pc-space-5) 0 var(--pc-space-3); font-weight: 600; }
.ag-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pc-space-2); margin-bottom: var(--pc-space-5); }
.ag-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--pc-space-2);
  padding: var(--pc-space-4) var(--pc-space-2);
  border-radius: var(--pc-radius-lg);
  border: 2px solid var(--pc-border-tertiary-white);
  background: rgb(var(--pc-surface-secondary));
  transition: border-color var(--pc-motion-duration-fast) var(--pc-motion-ease-default);
}
.ag-card:hover { border-color: var(--pc-color-hairline-on-dark); }
.ag-card.is-sel { border-color: rgb(var(--pc-color-brand-pink)); }
.ag-sym { width: 56px; height: 56px; object-fit: contain; }
.ag-card-l {
  font-family: var(--pc-font-display-narrow); font-weight: 700;
  font-size: var(--pc-text-label-caps-micro-font-size); letter-spacing: .02em;
}

/* screened free-text fields + report link */
textarea.is-blocked, input.is-blocked { outline: 2px solid #ff5d73; outline-offset: -1px; }
.pc-report { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--pc-color-gray-500, #8a8a94); text-decoration: underline; }
