/* home — brand color on the approved wireframe layout, light + dark.
   Tokens and rules: inbox/design/COLOR.md (one accent, Rolpick orange).
   Dark mode = the same tokens redefined under prefers-color-scheme: dark (below :root); rules use tokens only. */
/* SUITE Variable v2.0.4 (SIL OFL 1.1, public/fonts/SUITE-OFL.txt), self-hosted, preloaded on every page.
   swap: text shows at once in the fallback fonts, then switches to SUITE. */
@font-face {
  font-family: "SUITE";
  src: url("/fonts/SUITE-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #FF5A1F;       /* buttons, active state, 선명 mark, logo — white text on it only at ≥18px bold */
  --brand-hover: #E64A12;
  --brand-text: #C2410C;  /* small orange text and links */
  --brand-soft: #FFF1EB;  /* tinted backgrounds */
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --faint: #74706C;       /* tertiary text (not in COLOR.md; neutral between muted and line; 4.7:1 on --bg) */
  --line: #E8E6E3;
  --bg: #FFFFFF;
  --bg-alt: #FAF8F6;
  --error: #D92D20;
  --on-brand: #FFFFFF;    /* label on --brand buttons (not in COLOR.md) */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 6px 20px rgba(26, 26, 26, 0.08);
  --hatch: rgba(26, 26, 26, 0.025);
  --radius: 12px;
  --max: 1240px;
  --gutter: 24px;
  --header-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FF6A33;
    --brand-hover: #FF7D4D;
    --brand-text: #FF8A5C;  /* 7.9:1 on --bg */
    --brand-soft: #3A1E12;
    --ink: #F2F0EE;
    --muted: #A3A09C;       /* 7.1:1 on --bg */
    --faint: #8A8682;       /* 5.1:1 on --bg, 4.8:1 on --bg-alt */
    --line: #2E2C2A;
    --bg: #141414;
    --bg-alt: #1C1B1A;
    --error: #F97066;
    /* white on #FF6A33 is only 2.85:1 (below COLOR.md rule 2's 3:1), so dark labels: 6.5:1 */
    --on-brand: #141414;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
    --hatch: rgba(255, 255, 255, 0.03);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (pointer: fine) {
  html { overscroll-behavior: none; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SUITE", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgba(255, 90, 31, 0.12);
  touch-action: manipulation;
}

h1, h2, h3 { line-height: 1.3; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; }
::selection { background: var(--brand-soft); color: var(--ink); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--brand-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}
/* logo: the text 「롤픽」 stays in the HTML (screen readers, no-CSS); the placeholder wordmark
   /img/logo.svg is painted over it as a mask in --brand, so it follows dark mode. Founder approval pending. */
.logo { position: relative; display: inline-block; width: 41px; height: 28px; overflow: hidden; color: transparent; font-weight: 800; font-size: 1.375rem; line-height: 28px; white-space: nowrap; text-decoration: none; }
.logo::before { content: ""; position: absolute; inset: 0; background: var(--brand); -webkit-mask: url(/img/logo.svg) center / contain no-repeat; mask: url(/img/logo.svg) center / contain no-repeat; }
.logo:hover::before { background: var(--brand-hover); }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.9375rem; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  font: inherit;
  font-size: 1.125rem; /* white on orange is 3.1:1 → large bold text only (COLOR.md rule 2) */
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn--ghost { border-color: var(--ink); background: var(--bg); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn[aria-disabled="true"], .btn:disabled { border-style: dashed; background: var(--bg); color: var(--faint); border-color: var(--line); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* sections */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 46em; }

/* wireframe placeholders still waiting for real content (example screens, open questions) */
.wf-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, var(--hatch) 10px 20px) var(--bg-alt);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.wf-todo {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--muted);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* hero */
/* hero fills the first screen; everything centered */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 56px 0 96px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { margin-bottom: 18px; color: var(--brand-text); font-weight: 700; letter-spacing: 0.02em; }
.hero h1 {
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 0.4em;
}
.hero .lead { font-size: clamp(1.0625rem, 2.4vw, 1.375rem); margin: 0 auto 40px; }
.hero-actions { justify-content: center; width: 100%; }
.hero-actions .btn { flex: 1 1 220px; max-width: 260px; }
.proof { margin-top: 24px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}
.scroll-cue:hover { border-color: var(--brand); color: var(--brand-text); }

/* link-preview mock (KakaoTalk) */
.chat {
  max-width: 340px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-alt);
}
.chat-bubble {
  margin: 0 0 10px auto;
  width: fit-content;
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.875rem;
}
.chat-card { border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--bg); }
.chat-card .wf-box { min-height: 140px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.chat-card-text { padding: 10px 12px; font-size: 0.8125rem; }
.chat-card-text strong { display: block; font-size: 0.875rem; }
.chat-card-text span { color: var(--faint); }

/* grids */
.grid-3 { display: grid; gap: 20px; margin-top: 32px; }
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  min-width: 0;
}
.card p:last-child { margin-bottom: 0; }
.num { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand-text); }

.split { display: grid; gap: 32px; align-items: center; margin-top: 8px; }

/* mid / final call to action */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }

/* FAQ */
.faq { margin-top: 24px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
  list-style-position: outside;
}
.faq summary:hover { color: var(--brand-text); }
.faq summary::marker { color: var(--brand); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* footer */
.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.875rem; }
.site-footer p { margin: 0 0 6px; }

/* forms */
/* form pages: one centered column; title block centered, fields stay left-aligned for reading */
.form-page { padding: 48px 0 72px; }
.form-page .wrap { max-width: calc(560px + 2 * var(--gutter)); text-align: center; }
.form-page .lead { margin-inline: auto; }
.form { max-width: 560px; margin: 0 auto; text-align: left; }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; margin-bottom: 6px; font-weight: 700; }
.field .hint { margin: 6px 0 0; color: var(--faint); font-size: 0.875rem; }
.req { margin-left: 4px; color: var(--muted); font-weight: 400; font-size: 0.8125rem; }
.input, .select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--muted);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zoom on focus */
}
.input:hover, .select:hover { border-color: var(--ink); }
.input:focus, .select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.input:focus-visible, .select:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 2px; box-shadow: none; }
.input:disabled { border-style: dashed; background: var(--bg-alt); color: var(--faint); cursor: not-allowed; }
.field-row { display: grid; gap: 10px; }
.checks { margin: 28px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.check details { margin: 2px 0 6px 32px; font-size: 0.875rem; color: var(--muted); }
.check details summary { cursor: pointer; text-decoration: underline; }
.btn--block { width: 100%; }
/* contact forms (F-103): message box + consent text from /v1/policies/consent-contact */
.textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.checks > details { margin: 2px 0 6px 32px; font-size: 0.875rem; color: var(--muted); }
.checks > details summary { cursor: pointer; text-decoration: underline; }
[data-consent-body] { max-height: 280px; overflow-y: auto; margin-top: 8px; }
[data-consent-body] p, [data-consent-body] ul { margin: 0 0 8px; }
[data-consent-body] ul { padding-left: 1.2em; list-style: disc; }
/* sending: keep the orange button, just dimmed (not the dashed "unavailable" look) */
.btn[aria-busy="true"], .btn[aria-busy="true"]:hover { border-style: solid; border-color: var(--brand); background: var(--brand); color: var(--on-brand); opacity: 0.6; cursor: progress; }
/* errors (F-102): red text next to the field (--error, never the brand orange) */
.field-error { margin: 6px 0 0; color: var(--error); font-size: 0.9375rem; font-weight: 700; }
.check + .field-error { margin: 0 0 8px 32px; }
.form-error { margin: 0 0 14px; padding: 12px 14px; border: 1.5px solid var(--error); border-radius: 8px; color: var(--error); font-weight: 700; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.turnstile { min-height: 65px; margin-bottom: 22px; }
/* /done */
.share-box { max-width: 420px; margin: 32px auto 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.share-box p { margin: 0 0 8px; }
.share-url { color: var(--muted); font-size: 0.9375rem; user-select: all; }
.done-actions { margin-top: 32px; }

@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 180px 1fr; }
  .section { padding: 120px 0; }
  .split { gap: 64px; }
}

@media (max-width: 420px) {
  .site-nav .nav-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* ---- copy pass (copy/HOME_COPY.md) ---- */
.hero-sub { margin: 14px 0 0; }
.hero-sub a { color: var(--brand-text); font-weight: 700; }
.launch-line { margin: 10px 0 0; color: var(--faint); font-size: 0.9375rem; }
.proof { font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 1px 8px;
  border: 1px solid var(--faint);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.chat-card-desc { display: block; color: var(--muted); }
.eyebrow { margin-bottom: 10px; color: var(--brand-text); font-weight: 700; }
.note { color: var(--muted); }
.bridge { font-size: 1.25rem; font-weight: 800; margin-top: 8px; }
.identity { margin: 56px 0 0; text-align: center; font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }

ul.points, ul.files, ol.steps, ol.grid-3, ul.grid-3, ul.role-cards, .free-box ul { list-style: none; padding: 0; margin: 0; }
ul.points { margin: 8px 0 20px; }
ul.points li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
ul.points li::before { content: "— "; color: var(--brand); }

/* ② scattered files */
ul.files { display: grid; gap: 12px; }
ul.files li {
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
ul.files li:nth-child(2) { margin-left: 18%; transform: rotate(-2deg); }
ul.files li:nth-child(3) { margin-left: 6%; transform: rotate(1.5deg); }
ul.files li:nth-child(4) { margin-left: 26%; transform: rotate(-1deg); }

/* ④ share mock */
.share-mock { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.share-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border: 1.5px solid var(--line); background: var(--bg-alt); border-radius: 999px; }
.share-url { font-weight: 700; min-width: 0; }
.share-bar .btn { flex-shrink: 0; border-radius: 999px; } /* pill inside the pill bar, 8px even gap on top/right/bottom */
.share-to { margin: 14px 0 0; color: var(--faint); font-size: 0.875rem; }

/* ⑤ role card section gets the most room */
.section--core { padding-top: 136px; padding-bottom: 136px; }
.prose { max-width: 52em; }
.actor-page { margin: 48px 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-alt); }
.actor-head { margin-bottom: 18px; }
.actor-name { margin: 0; font-size: 1.25rem; }
.actor-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
ul.role-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rc { padding: 14px; border-radius: 12px; background: var(--bg); min-width: 0; text-align: left; }
.rc p, .rc h3 { margin: 0; }
.rc-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%; margin: 0 0 12px; border-radius: 8px; background: var(--bg-alt); color: var(--faint); font-size: 0.75rem; }
.rc-state { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; }
.rc-genre { color: var(--muted); font-size: 0.875rem; margin-top: 6px !important; }
.rc-role { font-size: 1.0625rem; margin-top: 2px !important; }
.rc-meta { margin-top: 6px !important; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
/* states (COLOR.md rule 4): 흐림 = grey + blur · 켜짐 = normal neutral card · 선명 = full color + small brand mark.
   Thumbs stand in for video frames: dark neutral; 선명 adds the warm "spotlight". Orange never means a score. */
.rc { border: 1px solid var(--line); }
.rc-thumb { background: linear-gradient(160deg, #4A4744, #242322); color: rgba(255, 255, 255, 0.7); }
.rc--dim { border-style: dashed; color: var(--faint); background: var(--bg-alt); }
.rc--dim .rc-thumb { filter: grayscale(1) blur(2px); opacity: 0.35; }
.rc--dim .rc-genre, .rc--dim .rc-meta { color: var(--faint); }
.rc--lit .rc-thumb { filter: grayscale(0.6); }
.rc--sharp { border-color: var(--ink); box-shadow: var(--shadow-md); }
.rc--sharp .rc-thumb { background: radial-gradient(120% 90% at 30% 20%, rgba(255, 90, 31, 0.55), transparent 60%), linear-gradient(160deg, #4A4744, #242322); color: #fff; }
.rc--sharp .rc-state span { color: var(--brand); }
.states { margin: 18px 0 0; text-align: center; color: var(--muted); font-weight: 700; }
.steps-title { margin-top: 8px; }
.free-box { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--brand-soft); }
.free-box li { padding: 4px 0; }
.free-box p { margin: 12px 0 0; }
.perk-box { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radius); background: var(--brand-soft); }

/* ⑥ mission card */
.mission { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow-md); }
.mission-label { font-size: 0.75rem; font-weight: 800; color: var(--brand-text); margin-bottom: 8px; }
.mission h3 { font-size: 1.375rem; margin-bottom: 4px; }
.mission-role { color: var(--muted); font-weight: 700; }
.mission-situation { color: var(--muted); font-size: 0.9375rem; }
.mission-script { margin: 0 0 14px; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--bg-alt); }
.mission-script p { margin: 0 0 6px; }
.mission-foot { margin: 0; color: var(--faint); font-size: 0.8125rem; }

/* ⑧ producers */
/* list reset above zeroes margins (ul.x beats .x), so restore them with the same weight */
ol.grid-3, ul.grid-3 { margin-top: 32px; }
ul.producer-points { margin-bottom: 56px; text-align: left; }
.producer-grid { max-width: 960px; margin: 0 auto 40px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-alt); }
.site-footer a, .back-line a, #producer .agency-line a { color: var(--brand-text); }
.producer-grid-title { font-weight: 800; }

.footer-links span, .footer-links strong, .footer-links a { white-space: nowrap; }

@media (min-width: 720px) {
  ol.grid-3, ul.grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.back-line { margin-top: 32px; color: var(--muted); }

/* F-104 policy pages (/privacy, /terms) and the forms' consent text — text comes from acontact as Markdown */
.policy-page { padding: 48px 0 72px; }
.policy-page .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.policy-page h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.policy-meta, .policy-old, .policy-empty { color: var(--muted); }
.policy-old a { color: var(--brand-text); }
.policy-body { margin-top: 32px; }
.policy-body h2 { font-size: 1.375rem; margin-top: 2em; }
.policy-body h3, .policy-body h4, .policy-body h5, .policy-body h6 { font-size: 1.0625rem; margin: 1.5em 0 0.5em; }
.policy-body p, .policy-body ul, .policy-body ol { margin: 0 0 1em; }
.policy-body ul, .policy-body ol, [data-consent-body] ol { padding-left: 1.4em; }
.policy-body ul { list-style: disc; }
.policy-body a, [data-consent-body] a { color: var(--brand-text); }
.policy-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.policy-table { overflow-x: auto; margin: 0 0 1em; }
.policy-table table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.policy-table th { background: var(--bg-alt); }
/* ③ example screen: practice videos grouped by role card, most recent first (fictional demo actor) */
.lib-mock { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-alt); min-width: 0; }
.lib-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.lib-head strong { font-size: 1.125rem; }
.lib-head span { color: var(--muted); font-size: 0.8125rem; }
ul.lib-chips, ul.lib-groups, ul.lib-videos { list-style: none; padding: 0; margin: 0; }
ul.lib-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lib-chips li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lib-chips li.is-on { border-color: var(--ink); color: var(--ink); font-weight: 700; }
ul.lib-groups { display: grid; gap: 10px; }
.lib-group { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.lib-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; }
.lib-genre { color: var(--muted); font-size: 0.8125rem; }
.lib-role strong { font-size: 0.9375rem; }
.lib-state { margin-left: auto; color: var(--muted); font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
ul.lib-videos { display: grid; gap: 8px; margin-top: 10px; }
.lib-videos li { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* video frames stay dark in both themes (they stand in for footage, like .rc-thumb) */
.lib-thumb { flex: none; display: flex; align-items: flex-end; justify-content: flex-end; width: 72px; aspect-ratio: 16 / 9; padding: 3px 5px; border-radius: 6px; background: linear-gradient(160deg, #4A4744, #242322); color: rgba(255, 255, 255, 0.85); font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.lib-title { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 700; }
.lib-title small { margin-left: 4px; color: var(--brand-text); font-size: 0.75rem; }
.lib-date { flex: none; color: var(--muted); font-size: 0.8125rem; }
/* role card states as in ⑤ (COLOR.md rule 4) */
.lib-group--sharp { border-color: var(--ink); box-shadow: var(--shadow-md); }
.lib-group--sharp .lib-state span { color: var(--brand); }
.lib-group--sharp .lib-thumb { background: radial-gradient(120% 90% at 30% 20%, rgba(255, 90, 31, 0.55), transparent 60%), linear-gradient(160deg, #4A4744, #242322); }
.lib-group--dim { border-style: dashed; background: var(--bg-alt); }
.lib-group--dim .lib-role strong { color: var(--muted); }
@media (forced-colors: active) {
  .logo { width: auto; height: auto; color: LinkText; }
  .logo::before { display: none; }
}
