/* ORA — Web catalog (R4 — H-02 pivot 2026-06-05)
   App-mirror dark mode. Inkitt/Webnovel/Wattpad-inspired card grid.
   Mobile-first. WCAG AA contrast. Cloudflare Pages static. */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0a0a14;
  color: #f5f0e8;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  padding-bottom: 72px;  /* room for bottom tab bar */
}
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* === TOP BAR === */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0a0a14 100%);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar__brand { display: flex; flex-direction: column; }
.topbar__logo {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #b89bdc;
}
.topbar__subtitle {
  font-size: 12px;
  color: #9a9aaa;
  letter-spacing: 0.5px;
  margin-top: -2px;
}
.topbar__right { display: flex; align-items: center; gap: 8px; }

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 134, 50, 0.12);
  border: 1px solid rgba(255, 134, 50, 0.4);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ffb070;
}
.streak-badge__icon { font-size: 14px; }
.profile-cog {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #2a5cdc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === PAGE === */
.page { padding-bottom: 12px; }

/* === CATEGORY CHIPS === */
/* T208-fix — categories scroll with content (was a 3rd sticky tier that collided
   with the segnav at the same hardcoded top:60px). Keeping only topbar+segnav
   sticky removes the stacked-chrome weirdness on scroll. */
.categories {
  background: #0a0a14;
  padding: 14px 0 6px;
  z-index: 18;
  transition: opacity 0.15s ease;
}
/* T208 — dim the category chips while a search is active (the chip filter is
   overridden by search; a highlighted chip would otherwise mislead). */
.categories.cat-dim { opacity: 0.4; }

/* I022/T209 — daily streak popover */
.streak-pop { position: fixed; inset: 0; z-index: 42; }
.streak-pop[hidden] { display: none; }
.streak-pop__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.2s ease; }
.streak-pop.is-open .streak-pop__backdrop { opacity: 1; }
.streak-pop__sheet {
  position: absolute; top: 64px; right: 12px;
  width: 240px; max-width: calc(100vw - 24px);
  background: #15151c; border: 1px solid #2a2a35; border-radius: 14px;
  padding: 16px; text-align: center; z-index: 1;
  transform: translateY(-8px); opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
}
.streak-pop.is-open .streak-pop__sheet { transform: translateY(0); opacity: 1; }
.streak-pop__big { font-size: 30px; font-weight: 800; color: #f4f4f6; }
.streak-pop__unit { font-size: 13px; font-weight: 600; color: #9b9bad; margin-left: 6px; }
.streak-pop__sub { font-size: 12px; color: #9b9bad; margin-top: 2px; }
.streak-pop__dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0 10px; }
.streak-dot { width: 14px; height: 14px; border-radius: 50%; background: #2a2a35; }
.streak-dot.on { background: linear-gradient(160deg, #ff8a3d, #ef4444); }
.streak-pop__hint { font-size: 11px; color: #6c6c79; line-height: 1.5; }
.categories__scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px 8px;
  scrollbar-width: none;
}
.categories__scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #c4b69f;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.cat-chip:hover { background: #25253a; border-color: #4a4a5a; }
.cat-chip--active {
  background: #7b5ea7;
  border-color: #9a7bcc;
  color: #fff;
}
.cat-chip__count {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}

/* === FEATURED CARD === */
.featured { padding: 18px 18px 8px; }
.featured-card {
  display: block;
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.featured-card__art {
  height: 180px;
  position: relative;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
}
.featured-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #fff;
}
.featured-card__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  line-height: 1;
}
.featured-card__author {
  font-size: 13px;
  font-style: italic;
  color: #d9c8e0;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.featured-card__body { padding: 16px 18px 18px; }
.featured-card__hook {
  font-size: 15px;
  color: #f5f0e8;
  line-height: 1.45;
  margin-bottom: 12px;
}
.featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.chip--genre { background: rgba(123, 94, 167, 0.22); color: #c4a7e0; }
.chip--heat  { background: rgba(216, 70, 70, 0.22);  color: #f0a5a5; }
.featured-card__free {
  font-size: 12px;
  color: #6ed68c;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.btn-primary {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: #7b5ea7;
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3px;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: #9a7bcc; }
.featured-card__cta { margin-top: 4px; }

/* === I022/T202 — CURATION RAILS (horizontal-scroll rows) === */
.curation { padding: 4px 0 2px; }
.rail { margin: 14px 0 4px; }
.rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 18px 8px;
}
.rail__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #f5f0e8;
}
.rail__scroll {
  display: flex;
  gap: 12px;
  padding: 0 18px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail__scroll::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 auto;
  width: 112px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
}
.rail-card__cover {
  width: 112px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  border: 1px solid #2a2a3a;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.rail-card:hover .rail-card__cover { transform: translateY(-2px); border-color: #4a4a5a; }
.rail-card__cover::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45) 100%);
}
.rail-card__progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.18);
}
.rail-card__progress::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0; top: 0;
  width: 38%;
  background: #7b5ea7;
}
.rail-card__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.15;
  letter-spacing: 0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail-card__author {
  font-size: 11px;
  font-style: italic;
  color: #9a9aaa;
  line-height: 1.2;
}
.rail-card__hint {
  font-size: 11px;
  font-weight: 600;
  color: #b69ad6;
  letter-spacing: 0.2px;
}
/* T402 — explainable For You: per-card recommendation reason chip. */
.rail-card__reason {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 1px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(123, 94, 167, 0.18);
  border: 1px solid rgba(182, 154, 214, 0.32);
  color: #c9b6e6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === CATALOG HEADER === */
.catalog-header {
  padding: 20px 18px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.catalog-header__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #f5f0e8;
}

/* === GRID === */
.grid-section { padding: 0 14px; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .page { max-width: 900px; margin: 0 auto; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .page { max-width: 1140px; }
}

.ip-card {
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.ip-card:hover { transform: translateY(-2px); border-color: #4a4a5a; }
.ip-card--highlighted { border-color: #7b5ea7; box-shadow: 0 0 0 1px #7b5ea7; }

.ip-card__cover {
  aspect-ratio: 2 / 3;
  position: relative;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ip-card__cover::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}
.ip-card__cover-title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.05;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ip-card__cover-author {
  font-size: 11px;
  font-style: italic;
  color: rgba(255,255,255,0.78);
  margin-top: 4px;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.ip-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}
.ip-card__hook {
  font-size: 13px;
  color: #c4b69f;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.ip-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ip-card__chip {
  background: #2a2a3a;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 10px;
  color: #9a9aaa;
  letter-spacing: 0.4px;
  text-transform: lowercase;
}
.ip-card__chip--heat { color: #f0a5a5; }

.ip-card__live, .ip-card__coming {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.18);
}
.ip-card__live { color: #6ed68c; border-color: rgba(110,214,140,0.4); }
.ip-card__coming { color: #c4b69f; }

/* === TOAST === */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(10px);
  background: #1a1a2e;
  border: 1px solid #2a2a3a;
  color: #f5f0e8;
  padding: 12px 18px;
  border-radius: 22px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 40;
  white-space: nowrap;
}
.toast--in { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === GRID EMPTY === */
.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: #6e6e7a;
  font-size: 14px;
}

/* === BOTTOM TAB BAR (mirrors app) === */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0a0a14;
  border-top: 1px solid #1f1f2f;
  display: flex;
  height: 62px;
  padding: 6px 0 calc(env(safe-area-inset-bottom, 0px) + 4px);
  z-index: 30;
}
.tabbar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #6e6e7a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.tabbar__btn--active { color: #b89bdc; }
.tabbar__icon { font-size: 17px; line-height: 1; }
.tabbar__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; }

/* ==========================================================================
   I020/T010 — App-parity surface: tabs, auth modal, Library, Profile.
   Mirrors app screens (LibraryScreen / SettingsScreen / AuthScreen) in dark mode.
   ========================================================================== */

/* The hidden attribute must win over display:flex/block component rules below. */
[hidden] { display: none !important; }

/* === TAB VIEWS (SPA section switch) === */
.tab-view { display: none; }
.tab-view--active { display: block; }

.screen-header { padding: 18px 18px 6px; }
.screen-header__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #f5f0e8;
}

.library-body, .profile-body { padding: 8px 18px 20px; }
.lib-loading { padding: 40px 8px; text-align: center; color: #6e6e7a; font-size: 14px; }

/* === SIGN-IN PROMPT (guest empty state) === */
.signin-prompt {
  text-align: center;
  padding: 48px 24px 32px;
}
.signin-prompt__icon { font-size: 44px; margin-bottom: 14px; }
.signin-prompt__title { font-size: 17px; font-weight: 700; color: #f5f0e8; margin-bottom: 8px; }
.signin-prompt__sub { font-size: 13px; color: #9a9aaa; line-height: 1.5; max-width: 320px; margin: 0 auto 22px; }
.signin-prompt__cta { max-width: 280px; margin: 0 auto; }

/* === EMPTY CARD (dashed — mirrors app EmptyCard) === */
.empty-card {
  background: #1a1a25;
  border: 1px dashed #2a2a3a;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
  color: #9a9aaa;
  font-size: 13px;
  line-height: 1.4;
}
.empty-card[role="button"] { cursor: pointer; }
.empty-card[role="button"]:hover { border-color: #4a4a5a; color: #c4b69f; }

/* === LIBRARY SECTIONS === */
.lib-section { margin-bottom: 22px; }
.lib-section__label {
  color: #9a9aaa;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lib-row {
  display: flex;
  align-items: center;
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
}
.lib-row:hover { border-color: #4a4a5a; }
.lib-row__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lib-row__epnum { color: #9a9aaa; font-size: 10px; letter-spacing: 1px; }
.lib-row__title { color: #f5f0e8; font-size: 14px; font-weight: 600; }
.lib-row__hint { color: #b89bdc; font-size: 11px; margin-top: 2px; }
.lib-row__chev { color: #6e6e7a; font-size: 22px; margin-left: 8px; }
.lib-discover { max-width: 320px; margin: 0 auto; }

/* === PROFILE SECTIONS === */
.profile-section { margin-bottom: 22px; }
.profile-section__label {
  color: #9a9aaa;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
  gap: 12px;
}
.profile-row--action:hover { border-color: #4a4a5a; }
.profile-row__lbl { color: #f5f0e8; font-size: 14px; }
.profile-row__val { color: #9a9aaa; font-size: 14px; text-align: right; flex-shrink: 1; }
.profile-row__chev { color: #6e6e7a; font-size: 20px; }
.profile-signout {
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid #5a2a2a;
  color: #f0a5a5;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.profile-signout:hover { background: rgba(216,70,70,0.12); }

/* === AUTH MODAL (magic link — mirrors AuthScreen) === */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.auth-modal[hidden] { display: none; }
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.auth-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #15151c;
  border: 1px solid #2a2a3a;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
  text-align: center;
  animation: sheet-up 0.22s ease;
}
@media (min-width: 640px) {
  .auth-modal { align-items: center; }
  .auth-modal__sheet { border-radius: 20px; border-bottom: 1px solid #2a2a3a; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }
.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 16px;
  color: #6e6e7a;
  width: 32px; height: 32px;
}
.auth-modal__brand {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #b89bdc;
  margin-bottom: 4px;
}
.auth-modal__tagline { font-size: 13px; color: #9a9aaa; margin-bottom: 22px; }
.auth-modal__fineprint { font-size: 11px; color: #6e6e7a; line-height: 1.5; margin-top: 18px; }
.auth-modal__fineprint a { color: #9a9aaa; text-decoration: underline; }

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form__input {
  width: 100%;
  padding: 13px 14px;
  background: #0a0a14;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  color: #f5f0e8;
  font-size: 15px;
}
.auth-form__input:focus { outline: none; border-color: #7b5ea7; }
.auth-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-form__status { font-size: 12px; color: #9a9aaa; min-height: 16px; margin-top: 2px; }
.auth-form__status--ok { color: #6ed68c; }
.auth-form__status--err { color: #f0a5a5; }

.auth-confirm { padding: 8px 0; }
.auth-confirm__icon { font-size: 40px; margin-bottom: 10px; }
.auth-confirm__title { font-size: 18px; font-weight: 700; color: #f5f0e8; margin-bottom: 6px; }
.auth-confirm__sub { font-size: 13px; color: #9a9aaa; line-height: 1.5; margin-bottom: 16px; }
.auth-confirm__resend {
  font-size: 13px;
  color: #b89bdc;
  text-decoration: underline;
}

/* ==========================================================================
   I022/T201 — Discover segmented sub-nav: Browse · Schedule · Ranking.
   Weekday Schedule pills + ranked Ranking list. Mobile-first (414px), serif
   titles + purple accent tokens reused from the catalog above. No foreign style.
   ========================================================================== */

/* === DISCOVER VIEWS (segment switch) === */
.disco-view { display: none; }
.disco-view--active { display: block; }

/* === SEGMENTED CONTROL (pill track w/ sliding active fill) === */
.segnav {
  padding: 12px 18px 4px;
  position: sticky;
  /* T208-fix — sit flush under the topbar using its REAL height (set by
     syncStickyOffsets in script.js). Was hardcoded top:60px while the topbar is
     ~87px, so the segnav slid 27px underneath the topbar on scroll. */
  top: var(--topbar-h, 60px);
  z-index: 18;
  background: #0a0a14;
}
.segnav--sub { position: static; padding: 14px 18px 2px; }
.segnav__track {
  display: flex;
  gap: 4px;
  background: #15151c;
  border: 1px solid #2a2a3a;
  border-radius: 14px;
  padding: 4px;
}
.segnav__btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #9a9aaa;
  white-space: nowrap;
  text-align: center;
  transition: color 0.15s ease, background 0.18s ease;
}
.segnav__btn:hover { color: #c4b69f; }
.segnav__btn--active {
  background: #7b5ea7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(123, 94, 167, 0.35);
}
.segnav__btn:focus-visible {
  outline: 2px solid #b89bdc;
  outline-offset: 2px;
}

/* === WEEKDAY PILLS (Schedule) === */
.weekbar {
  padding: 14px 0 4px;
  position: sticky;
  top: 104px;
  z-index: 17;
  background: #0a0a14;
}
.weekbar__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 18px 6px;
  scrollbar-width: none;
}
.weekbar__track::-webkit-scrollbar { display: none; }
.weekpill {
  flex-shrink: 0;
  min-width: 52px;
  padding: 9px 14px;
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #c4b69f;
  text-align: center;
  transition: all 0.15s ease;
}
.weekpill:hover { background: #25253a; border-color: #4a4a5a; }
.weekpill--active {
  background: #7b5ea7;
  border-color: #9a7bcc;
  color: #fff;
}
.weekpill:focus-visible { outline: 2px solid #b89bdc; outline-offset: 2px; }

/* Per-card "Updates {Weekday}" label under the chips. */
.ip-card__update {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #b89bdc;
}

/* === RANKING LIST === */
.rank-section { padding: 4px 14px 8px; }
.rank-list { list-style: none; }
.rank-row { margin-bottom: 8px; }
.rank-row__link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 10px 12px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.rank-row__link:hover { transform: translateY(-1px); border-color: #4a4a5a; }
.rank-row__num {
  flex-shrink: 0;
  width: 26px;
  text-align: center;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: #6e6e7a;
  line-height: 1;
}
.rank-row--top .rank-row__num {
  font-size: 26px;
  color: #f5c451;
  text-shadow: 0 1px 3px rgba(245, 196, 81, 0.3);
}
.rank-row__thumb {
  flex-shrink: 0;
  width: 40px;
  height: 56px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}
.rank-row__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rank-row__title {
  font-size: 14px;
  font-weight: 700;
  color: #f5f0e8;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-row__author {
  font-size: 11px;
  font-style: italic;
  color: #9a9aaa;
}
.rank-row__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.rank-row__badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #c4b69f;
  background: #2a2a3a;
  white-space: nowrap;
}
.rank-row__badge--trending { color: #ffb070; background: rgba(255, 134, 50, 0.14); }
.rank-row__badge--popular  { color: #f5c451; background: rgba(245, 196, 81, 0.14); }
.rank-row__badge--new      { color: #6ed68c; background: rgba(110, 214, 140, 0.14); }
.rank-row__badge--daily    { color: #f5c451; background: rgba(245, 196, 81, 0.14); } /* T204 — views, Popular accent */
.rank-caption {
  margin-top: 12px;
  font-size: 11px;
  color: #6e6e7a;
  line-height: 1.5;
  text-align: center;
}

/* === VIEW EMPTY STATE (Schedule day / Completed ranking) === */
.view-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 24px;
  color: #9a9aaa;
}
.view-empty__title { font-size: 15px; font-weight: 700; color: #c4b69f; margin-bottom: 6px; }
.view-empty__sub { font-size: 13px; color: #9a9aaa; line-height: 1.5; max-width: 320px; margin: 0 auto 16px; }
.view-empty__cta {
  display: inline-block;
  padding: 11px 20px;
  background: #7b5ea7;
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.view-empty__cta:hover { background: #9a7bcc; }

/* ==========================================================================
   I022/T211 — ENGAGEMENT UI (social-proof metrics: counts, stars, comments)
   Shared serif/colour tokens from the catalog above. Mobile-first (414px).
   ========================================================================== */

/* --- Metric chips (view / like / follow) on cards --- */
.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #b6a890;
  letter-spacing: 0.2px;
}
.metric-chip__ico {
  font-size: 11px;
  line-height: 1;
  opacity: 0.85;
}

/* --- Star widget (display: full / half / empty) --- */
.stars { display: inline-flex; align-items: center; gap: 1px; line-height: 1; }
.star { font-size: 12px; line-height: 1; color: #3a3a48; position: relative; }
.star--full { color: #f5c451; }
.star--half {
  color: #3a3a48;
  background: linear-gradient(90deg, #f5c451 50%, #3a3a48 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- "Details & reviews" affordance on cards --- */
.ip-card__details {
  align-self: flex-start;
  margin-top: 2px;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: #b89bdc;
  letter-spacing: 0.2px;
}
.ip-card__details:hover { color: #cdb6ec; text-decoration: underline; }

/* --- Ranking row: rating line --- */
.rank-row__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.rank-row__rating-num { font-size: 11px; font-weight: 700; color: #f5c451; }
.rank-row__rating-cnt { font-size: 10px; color: #8a8a98; }

/* ==========================================================================
   IP DETAIL MODAL (engagement surface) — reuses .auth-modal sheet scaffolding.
   ========================================================================== */
.ipd__sheet {
  text-align: left;
  max-height: 92vh;
  overflow-y: auto;
}
.ipd__hero { display: flex; gap: 14px; margin-bottom: 14px; }
.ipd__cover {
  flex-shrink: 0;
  width: 84px;
  height: 118px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.ipd__heroinfo { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 2px; }
.ipd__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.1;
}
.ipd__author { font-size: 12px; font-style: italic; color: #9a9aaa; }
.ipd__rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ipd__rating .star { font-size: 14px; }
.ipd__rating-num { font-size: 13px; font-weight: 700; color: #f5c451; }
.ipd__rating-cnt { font-size: 11px; color: #8a8a98; }
.ipd__taxo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ipd__hook {
  font-size: 14px;
  color: #c4b69f;
  line-height: 1.45;
  margin-bottom: 14px;
}

/* Full metrics row */
.ipd__metrics {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.ipd__metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
}
.ipd__metric-num {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1;
}
.ipd__metric-lbl { font-size: 10px; color: #8a8a98; text-transform: uppercase; letter-spacing: 0.6px; }

/* Like / Follow / Read action buttons */
.ipd__actions { display: flex; gap: 8px; margin-bottom: 18px; }
.ipd__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 8px;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  background: #1a1a25;
  font-size: 13px;
  font-weight: 600;
  color: #c4b69f;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ipd__btn:hover { border-color: #4a4a5a; }
.ipd__btn-ico { font-size: 14px; line-height: 1; }
.ipd__btn--like.ipd__btn--on { background: rgba(240,120,140,0.16); border-color: rgba(240,120,140,0.5); color: #f7a5b5; }
.ipd__btn--follow.ipd__btn--on { background: rgba(123,94,167,0.22); border-color: rgba(184,155,220,0.55); color: #cdb6ec; }
.ipd__btn--read { background: #7b5ea7; border-color: #7b5ea7; color: #fff; }
.ipd__btn--read:hover { background: #9a7bcc; border-color: #9a7bcc; }

/* Comments section */
.ipd__section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #8a8a98;
  margin-bottom: 10px;
}
.cmt-compose {
  background: #15151c;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.cmt-compose__stars { display: inline-flex; gap: 2px; margin-bottom: 6px; }
.star-input {
  font-size: 20px;
  line-height: 1;
  color: #3a3a48;
  padding: 0 1px;
  transition: color 0.1s ease;
}
.star-input--on { color: #f5c451; }
.star-input:hover { color: #ffd97a; }
.cmt-compose__input {
  width: 100%;
  background: #0f0f17;
  border: 1px solid #2a2a3a;
  border-radius: 10px;
  padding: 9px 11px;
  color: #f5f0e8;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 8px;
}
.cmt-compose__input:focus { outline: none; border-color: #7b5ea7; }
.cmt-compose__send { width: auto; display: inline-block; padding: 9px 18px; font-size: 13px; }

.cmt-list { display: flex; flex-direction: column; gap: 10px; }
.cmt {
  background: #15151c;
  border: 1px solid #23232f;
  border-radius: 12px;
  padding: 10px 12px;
}
.cmt__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.cmt__author { font-size: 12px; font-weight: 700; color: #c4b69f; }
.cmt__text { font-size: 13px; color: #b6a890; line-height: 1.45; }
.cmt-empty { font-size: 13px; color: #8a8a98; text-align: center; padding: 14px 0; }

/* --- T212: comment "Helpful" toggle (NO count — conservative policy) --- */
.cmt__like {
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #8a8a98;
  letter-spacing: 0.2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.12s ease;
}
.cmt__like:hover { color: #b6a890; }
.cmt__like--on { color: #f7a5b5; }

/* --- T212: two-up metrics row (likes box removed) --- */
.ipd__metrics--two .ipd__metric { flex: 1; }

/* ==========================================================================
   I022/T205 — Author (pen-name) page. Clickable pen-name affordance + the
   author sheet (reuses .auth-modal sheet scaffolding, mirrors .ipd tokens).
   ========================================================================== */

/* Pen-name → author affordance. As a card cover-author it inherits the cover
   styling; in the detail modal it sits inside "by …". A dotted underline +
   inherited color signals tappability without a heavy link color. */
.author-link {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.author-link:hover { color: #cdb6ec; }
/* Cover-author keeps the cover's italic/size/shadow even as a <button>. */
.ip-card__cover-author.author-link {
  display: block;
  font-size: 11px;
  font-style: italic;
  color: rgba(255,255,255,0.78);
  margin-top: 4px;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ip-card__cover-author.author-link:hover { color: #fff; }
/* The detail-modal author button shares the .ipd__author italic styling. */
.ipd__author .author-link { font-style: italic; color: #cdb6ec; }

.author__hero { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; text-align: left; }
.author__avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.author__heroinfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author__name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.author__worksline { font-size: 12px; color: #9a9aaa; margin: 0; }
.author__metrics {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.author__metric {
  flex: 1;
  background: #15151c;
  border: 1px solid #23232f;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.author__metric-num { display: block; font-size: 17px; font-weight: 700; color: #fff; }
.author__metric-lbl { display: block; font-size: 11px; color: #8a8a98; margin-top: 2px; }

.author__actions { margin-bottom: 16px; }
.author__follow {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #cfcfdd;
  background: #1b1b24;
  border: 1px solid #2f2f3d;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.author__follow:hover { border-color: #4a4a5a; }
.author__follow-ico { font-size: 14px; line-height: 1; }
.author__follow--on {
  background: rgba(123,94,167,0.22);
  border-color: rgba(184,155,220,0.55);
  color: #cdb6ec;
}

.author__section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #8a8a98;
  margin-bottom: 10px;
}
.author__works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.author__works--single { grid-template-columns: 1fr; }
.author-work {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.author-work__cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 1px solid #23232f;
}
.author-work__title {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.author-work__taxo { font-size: 11px; color: #8a8a98; }
.author-work__views { font-size: 11px; color: #9a9aaa; margin-top: 2px; }
.author-work:hover .author-work__title { color: #cdb6ec; }
.author__works--single .author-work__cover { max-width: 200px; }

/* ==========================================================================
   T212 — "Following" / "Liked" device-local engagement rows (Library + Profile).
   ========================================================================== */
.social-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  background: #15151c;
  border: 1px solid #23232f;
  border-radius: 12px;
  margin-bottom: 7px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.social-row:hover { border-color: #4a4a5a; background: #1a1a25; }
.social-row__thumb {
  flex-shrink: 0;
  width: 38px;
  height: 52px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.social-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.social-row__title {
  font-size: 13px;
  font-weight: 700;
  color: #f5f0e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-row__author { font-size: 11px; font-style: italic; color: #9a9aaa; }
.social-row__chev { color: #5a5a6a; font-size: 18px; flex-shrink: 0; }

/* ==========================================================================
   I022/T106 — Legal footer bar (Privacy · Terms). Sits above the bottom
   tab bar; uses the same dark-theme tokens as the rest of the catalog.
   ========================================================================== */
.legal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px 80px; /* 80px = 62px tabbar + breathing room */
}
.legal-bar__link {
  font-size: 11px;
  color: #6e6e7a;
  letter-spacing: 0.4px;
  transition: color 0.15s ease;
}
.legal-bar__link:hover { color: #9a9aaa; text-decoration: underline; }
.legal-bar__sep { font-size: 11px; color: #3a3a4a; }

/* === I022/T203 — ONBOARDING TASTE QUIZ (mirrors app TropeQuiz) === */
.quiz {
  position: fixed;
  inset: 0;
  z-index: 80;            /* above auth-modal (60) + tabbar */
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
body.quiz-open { overflow: hidden; }
.quiz__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(2px);
}
.quiz__sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: #15151c;
  border: 1px solid #2a2a3a;
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 18px 22px calc(env(safe-area-inset-bottom, 0px) + 22px);
  animation: sheet-up 0.24s ease;
}
@media (min-width: 640px) {
  .quiz { align-items: center; }
  .quiz__sheet { border-radius: 22px; border-bottom: 1px solid #2a2a3a; }
}
.quiz__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.quiz__step { color: #9a9aaa; font-size: 13px; letter-spacing: 0.5px; }
.quiz__skip {
  color: #9a9aaa;
  font-size: 13px;
  text-decoration: underline;
  padding: 6px 4px;
}
.quiz__skip:hover { color: #f5f0e8; }
.quiz__dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.quiz-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: #2a2a3a;
  transition: background 0.2s ease;
}
.quiz-dot--on { background: #b89bdc; }
.quiz-dot--done { background: #7b5ea7; }
.quiz__title {
  font-size: 23px;
  font-weight: 700;
  color: #f5f0e8;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.quiz__subtitle { font-size: 13px; color: #9a9aaa; margin-bottom: 18px; }
.quiz__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.quiz__chips--single { flex-direction: column; }
.quiz-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 16px;
  background: #1a1a25;
  border: 1px solid #2a2a3a;
  border-radius: 14px;
  color: #f5f0e8;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}
.quiz__chips--single .quiz-chip {
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.quiz-chip:hover { border-color: #4a4a5a; }
.quiz-chip:active { transform: scale(0.98); }
.quiz-chip--on {
  background: rgba(123,94,167,0.22);
  border-color: #b89bdc;
  color: #fff;
}
.quiz-chip__label { font-weight: 600; }
.quiz-chip__sub { font-size: 11px; color: #9a9aaa; font-weight: 400; }
.quiz-chip--on .quiz-chip__sub { color: #cdb9ec; }
.quiz-chip__tick {
  color: #b89bdc;
  font-size: 13px;
  font-weight: 700;
}
.quiz__chips--single .quiz-chip__tick { margin-left: auto; }
.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.quiz__back {
  color: #9a9aaa;
  font-size: 14px;
  padding: 10px 6px;
}
.quiz__back:hover { color: #f5f0e8; }
.quiz__cta { width: auto; min-width: 150px; padding: 12px 22px; }

/* Profile "Your taste" row */
.profile-row--btn { width: 100%; cursor: pointer; }
.profile-row__val--taste { color: #b89bdc; font-size: 13px; }

/* I022/T208 — catalog search bar */
.catsearch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 0 12px;
  background: #15151c;
  border: 1px solid #2a2a35;
  border-radius: 12px;
}
.catsearch:focus-within { border-color: #7a3eea; }
.catsearch__ico { font-size: 13px; opacity: 0.7; }
.catsearch__input {
  flex: 1;
  background: none;
  border: none;
  color: #f4f4f6;
  font-size: 15px;
  padding: 11px 0;
  outline: none;
}
.catsearch__input::placeholder { color: #6c6c79; }
.catsearch__clear {
  background: none;
  border: none;
  color: #9b9bad;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.catsearch__clear:hover { color: #f4f4f6; }

/* I022/T203-polish (GAP-3) — "Personalizing…" completion payoff */
.quiz__personalizing { text-align: center; padding: 48px 24px; }
.quiz__spinner {
  width: 38px; height: 38px; margin: 0 auto 18px;
  border: 3px solid #2a2a35; border-top-color: #7a3eea;
  border-radius: 50%; animation: quizspin 0.8s linear infinite;
}
@keyframes quizspin { to { transform: rotate(360deg); } }
.quiz__personalizing-text { font-size: 1rem; color: #f4f4f6; font-weight: 600; }

/* I022/T215 — Power Stone vote widget (IP detail modal) */
.ipd__powerstone {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 4px; padding: 12px 14px;
  background: #15151c; border: 1px solid #2a2a3a; border-radius: 12px;
}
.ps__meta { display: flex; align-items: baseline; gap: 6px; flex: 1; }
.ps__ico { font-size: 18px; }
.ps__count { font-size: 18px; font-weight: 800; color: #f5f0e8; }
.ps__lbl { font-size: 12px; color: #9a9aaa; }
.ps__vote {
  background: linear-gradient(160deg, #7b5ea7, #5a3a8a); color: #fff;
  border-radius: 10px; padding: 8px 16px; font-size: 14px; font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.ps__vote:hover { transform: translateY(-1px); }
.ps__vote:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.ps__vote--cast { transform: scale(0.92); }
.ps__left { font-size: 11px; color: #6e6e7a; white-space: nowrap; }
