/* 로고 글꼴: "스텔라북" 네 글자만 담은 Noto Sans KR Black (public/fonts/noto-sans-kr/README.txt) */
@font-face {
  font-family: 'Stellabook Logo';
  src: url('/fonts/noto-sans-kr/logo-900.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: block;
  unicode-range: U+C2A4, U+D154, U+B77C, U+BD81;
}

/* =========================================================
   디자인 v4 — 밝은 기록 보관함 + 영역마다 실선 + 키포인트 색
   - 키포인트 색: 상자 제목 앞 짧은 막대. 멤버 화면은 그 멤버의 유닛 색, 나머지는 사이트 색(민트)
   - 첫 화면 유닛 칸은 유닛마다 고유 색 (위 선, 이름 띠)
   예전 디자인: design-backup/v1-dark, v2-light, v3-lines
   ---------------------------------------------------------
   (아래는 v2 때 정한 바탕 원칙)
   - 바탕은 흰색, 색은 유닛 색(진한 ink / 옅은 tint)과 방송 중 빨강, 링크 파랑만
   - 글꼴은 본문 Pretendard 하나로, 크기와 굵기로 위계를 만들어. 로고만 Noto Sans KR (2026-11-11)
   - 테두리는 표와 입력칸에만. 나머지는 여백과 글자로 나눠
   - 눈에 띄는 건 멤버 페이지 맨 위 "별의 궤적" 하나
   예전 디자인은 design-backup/v1-dark 에 있어
   ========================================================= */
:root {
  --paper: #ffffff;
  --mist: #f3f4f7;
  --mist-2: #eceef2;
  --line: #e3e5eb;
  --line-soft: #eef0f3;
  --ink: #16171b;
  --ink-2: #3a3d46;
  --slate: #646a78;
  --live: #d93644;
  --live-tint: #fdecee;
  --link: #2453c0;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --font-logo: 'Stellabook Logo', var(--font);
  /* 유닛 색 기본값 (각 화면 조각에서 style 로 덮어써) */
  --unit: #c9ccd4;
  --unit-ink: #3a3d46;
  --unit-tint: #f3f4f7;
  /* 사이트 키포인트 색 (어느 유닛 색과도 안 겹치게 민트) */
  --key: #35b39a;
  --key-ink: #1d7f6b;
  --key-tint: #e7f6f1;
  --accent: var(--key);
  /* 아래는 어두운 화면에서 값이 바뀌는 것들 (맨 아래 "어두운 화면") */
  color-scheme: light;
  --faint: #9a9fab;
  --bar: #d9dce3;
  --ink-hover: #2b2d34;
  --glass: rgba(255, 255, 255, 0.94);
  --float: var(--paper);
  --float-line: var(--line);
  --float-shadow: rgba(22, 23, 27, 0.18);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; letter-spacing: -0.005em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.sub { color: var(--slate); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 머리 (스크롤해도 위에 붙어 있는 한 줄) ---------- */
html { scroll-padding-top: 84px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-row { position: relative; display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-logo); font-size: 18px; font-weight: 900; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 2px; flex: none; }
.nav > a, .member-menu > summary { min-height: 40px; display: flex; align-items: center; gap: 4px; padding: 0 12px; font-weight: 550; color: var(--slate); border-radius: var(--r-sm); white-space: nowrap; }
.nav > a:hover, .member-menu > summary:hover { color: var(--ink); text-decoration: none; background: var(--mist); }
.nav > a[aria-current='page'], .member-menu > summary.is-active { color: var(--ink); font-weight: 700; }
.header-tools { flex: 1 1 auto; display: flex; justify-content: flex-end; align-items: center; gap: 16px; min-width: 0; }
.search { flex: 0 1 280px; min-width: 0; }
.search input { width: 100%; height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 20px; background: var(--mist); color: var(--ink); font: inherit; font-size: 14px; }
.search input::placeholder { color: var(--slate); }
.search input:focus { background: var(--paper); border-color: var(--line); }
.search-link { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-2); flex: none; }
.search-link:hover { background: var(--mist); }
/* 밝게/어둡게 버튼 (Layout.tsx 의 THEME_SCRIPT). 자바스크립트가 꺼져 있으면 안 보여 */
.theme-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); flex: none; cursor: pointer; }
.js .theme-btn { display: inline-flex; }
.theme-btn:hover { background: var(--mist); }
.theme-btn .i-sun { display: none; }
.dark .theme-btn .i-sun { display: block; }
.dark .theme-btn .i-moon { display: none; }
.live-link { min-height: 40px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* 멤버 메뉴: 머리의 "멤버"를 누르면 아래로 펼쳐져 */
.member-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.member-menu > summary::-webkit-details-marker { display: none; }
.member-menu > summary svg { color: var(--slate); transition: transform 0.15s ease; }
.member-menu[open] > summary { color: var(--ink); background: var(--mist); }
.member-menu[open] > summary svg { transform: rotate(180deg); }
.member-panel { position: absolute; top: calc(100% + 8px); left: calc(var(--gutter) - 12px); width: min(960px, calc(100% - 2 * var(--gutter) + 24px)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; padding: 22px 24px 18px; background: var(--float); border: 1px solid var(--float-line); border-radius: var(--r-lg); box-shadow: 0 16px 40px -12px var(--float-shadow); }
.panel-unit { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.panel-unit .unit-name { padding: 0 8px 4px; align-self: flex-start; }
.panel-member { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 600; }
.panel-member:hover { text-decoration: none; background: var(--unit-tint); }
.panel-member[aria-current='page'] { background: var(--mist); font-weight: 750; }
.panel-member > span:not(.avatar) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-member .live-badge { margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: var(--live); }

/* ---------- 방송 중 점 ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 54, 68, 0.45); } 100% { box-shadow: 0 0 0 7px rgba(217, 54, 68, 0); } }

/* ---------- 유닛 이름, 아바타 묶음 ---------- */
.unit-name { font-size: 12.5px; font-weight: 700; color: var(--unit-ink); white-space: nowrap; }
.unit-avatars { display: flex; gap: 8px; }

/* ---------- 첫 화면 멤버 목록 ---------- */

/* ---------- 아바타 (사진 없으면 유닛 색 글자) ---------- */
.avatar { --size: 44px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--unit-tint); color: var(--unit-ink); font-weight: 750; font-size: calc(var(--size) * 0.31); letter-spacing: -0.03em; overflow: hidden; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(22, 23, 27, 0.06); }
.avatar:hover { text-decoration: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.is-live { box-shadow: 0 0 0 2px var(--ring-gap, var(--paper)), 0 0 0 4px var(--live); }
.avatar.is-current { box-shadow: 0 0 0 2px var(--ring-gap, var(--paper)), 0 0 0 4px var(--ink); }
.stack { display: flex; }
.stack .avatar { box-shadow: 0 0 0 2px var(--paper); }
.stack .avatar + .avatar { margin-left: -6px; }

/* ---------- 멤버 맨 위 띠 ---------- */
.hero { background: var(--unit-tint); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; padding-top: 48px; padding-bottom: 44px; }
.hero-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-id { display: flex; align-items: center; gap: 24px; }
.hero-id .avatar { --size: 96px; --ring-gap: var(--unit-tint); font-size: 28px; background: var(--paper); }
.hero-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-unit { font-size: 14px; font-weight: 750; color: var(--unit-ink); align-self: flex-start; }
.hero-name { font-size: 56px; font-weight: 820; letter-spacing: -0.04em; line-height: 1.04; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; color: var(--ink-2); }
.hero-meta a { font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(22, 23, 27, 0.25); text-underline-offset: 4px; min-height: 28px; display: inline-flex; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 44px; }
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt { font-size: 13px; color: var(--ink-2); }
.hero-stats dd { font-size: 32px; font-weight: 760; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-trail { flex: 0 0 280px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-trail .trail svg { width: 280px; }
.hero-trail figcaption { font-size: 12.5px; color: var(--ink-2); }

/* 방송 중 */
.live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 24px; padding: 14px 20px; border-radius: var(--r-md); background: var(--live-tint); font-size: 14.5px; }
.live-bar:hover { text-decoration: none; background: #fbe1e4; }
.live-bar .live-label { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--live); }
.live-bar .live-title { font-weight: 650; }
.live-bar .go { margin-left: auto; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 탭 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 20px 0 44px; border-bottom: 1px solid var(--line); }
.tabs a { min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--slate); margin-bottom: -1px; border-bottom: 2px solid transparent; }
.tabs a:first-child { padding-left: 0; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs .count { font-size: 12.5px; font-weight: 500; color: var(--slate); }

/* ---------- 본문 + 옆 칸 ---------- */
.columns { display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 96px; }
.columns > .main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.columns > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page { padding: 40px 0 96px; display: flex; flex-direction: column; gap: 20px; }
.page > .page-head { margin-bottom: 8px; }
.page-head { display: flex; flex-direction: column; gap: 10px; }
.page-title { font-size: 40px; font-weight: 820; letter-spacing: -0.035em; line-height: 1.15; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 21px; font-weight: 760; letter-spacing: -0.025em; }
.section-head .more { font-size: 14px; font-weight: 500; color: var(--slate); }
.empty { color: var(--slate); font-size: 14.5px; }

/* ---------- 영역 상자: 영역마다 얇은 실선으로 둘러 ---------- */
.page > section:not(.notice):not(.bare),
.pair > section,
.columns > .main > section,
.columns > .side > section {
  min-width: 0;
  padding: 0 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
/* 상자 제목 줄: 아래에 실선 */
.page > section:not(.notice):not(.bare) > .section-head,
.pair > section > .section-head,
.columns > .main > section > .section-head,
.columns > .side > section > .section-head {
  align-items: center;
  min-height: 60px;
  margin: 0 -26px 22px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
}
.page > section:not(.bare) > .section-head h2,
.pair > section > .section-head h2,
.columns > .main > section > .section-head h2,
.columns > .side > section > .section-head h2 { font-size: 17px; font-weight: 740; }
/* 상자 접기: 제목을 누르면 제목 줄만 남아 */
.fold { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin: -4px 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.fold-icon { flex: none; color: var(--slate); transition: transform 0.15s ease; }
.fold:hover .fold-icon { color: var(--ink); }
.fold[aria-expanded='false'] .fold-icon { transform: rotate(-90deg); }
section.is-folded > :not(.section-head) { display: none; }
section.is-folded > .section-head { margin-bottom: 0; }
.page > section.is-folded:not(.notice):not(.bare),
.pair > section.is-folded,
.columns > .main > section.is-folded,
.columns > .side > section.is-folded { padding-bottom: 0; }
.page > section.is-folded:not(.notice):not(.bare) > .section-head,
.pair > section.is-folded > .section-head,
.columns > .main > section.is-folded > .section-head,
.columns > .side > section.is-folded > .section-head { margin-bottom: 0; border-bottom-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .fold-icon { transition: none; }
}
/* 제목 없이 시작하는 상자 */
.page > section:not(.notice):not(.bare) > :first-child:not(.section-head),
.columns > .main > section > :first-child:not(.section-head),
.columns > .side > section > :first-child:not(.section-head) { margin-top: 24px; }
/* 상자 안 표: 맨 아래 줄은 상자 선과 겹치니까 빼 */
section > .table-scroll .diary tbody tr:last-child td { border-bottom: 0; }

/* ---------- 포스터와 썸네일 ---------- */
.grid-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; }
.grid-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
.grid-thumbs.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card:hover { text-decoration: none; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.card-row { display: flex; align-items: center; gap: 12px; }
.card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-title { font-size: 15px; font-weight: 650; line-height: 1.4; }
.card-sub { font-size: 13px; color: var(--slate); }

.cover { display: block; position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--mist); }
.cover img { width: 100%; height: 100%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(22, 23, 27, 0.06); }
.cover.poster { aspect-ratio: 3 / 4; }
.cover.thumb { aspect-ratio: 16 / 9; }
.cover-name { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 16px; font-weight: 750; line-height: 1.3; letter-spacing: -0.02em; color: var(--tone-ink, var(--ink)); }
.cover-tag { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 12px; font-weight: 650; }
.cover-tag.live { color: var(--live); }
.cover-time { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 5px; background: rgba(22, 23, 27, 0.78); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-cover { width: 30px; height: 40px; flex: none; border-radius: 5px; }
/* 표 안 방송 썸네일 (없으면 게임 포스터, 그것도 없으면 무늬) */
.mini-thumb { flex: none; display: block; width: 76px; }
.mini-thumb .cover { border-radius: 6px; }
.mini-thumb:hover { text-decoration: none; }
.mini-thumb:hover .cover img { filter: brightness(1.04); }
/* 썸네일 오른쪽 위 시청자 수 */
.cover-viewers { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--r-sm); background: rgba(22, 23, 27, 0.74); color: #fff; font-size: 12px; font-weight: 650; }
.viewer-icon circle { fill: currentColor; }
.viewer-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.viewers-cell b { font-weight: 650; }
.viewers-cell .sub { margin-left: 5px; font-size: 12px; }

/* 이미지가 없을 때 쓰는 옅은 색 8가지 */
.tone-0 { background: #e8eef6; --tone-ink: #2e4a6e; }
.tone-1 { background: #f1ebe3; --tone-ink: #6a4a22; }
.tone-2 { background: #e7f0ea; --tone-ink: #2f5a3e; }
.tone-3 { background: #f2e9ef; --tone-ink: #6b3456; }
.tone-4 { background: #ecebf6; --tone-ink: #4a3d7a; }
.tone-5 { background: #f4efe2; --tone-ink: #6a5420; }
.tone-6 { background: #e5eef0; --tone-ink: #2c5560; }
.tone-7 { background: #eeeef1; --tone-ink: #3e4250; }

/* ---------- 방송 다이어리 표 ---------- */
.table-scroll { position: relative; overflow-x: auto; }
.diary { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14.5px; }
.diary th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--slate); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.diary td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; white-space: nowrap; }
.diary td.wrap-cell { white-space: normal; }
.diary .month-row th { padding: 28px 0 10px; font-size: 15px; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.diary tbody .month-row:first-child th { padding-top: 16px; }
.diary .day { display: flex; align-items: baseline; gap: 6px; }
.diary .day b { font-size: 22px; font-weight: 760; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.diary .day span { font-size: 12.5px; color: var(--slate); }
.diary .title-cell { display: flex; align-items: center; gap: 14px; }
.diary .title-text { display: flex; flex-direction: column; gap: 2px; }
.diary .title-text a:first-child { font-weight: 650; }
.diary .game { font-size: 13px; color: var(--slate); }
.diary .member-cell { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.diary .link { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.diary .link.live { color: var(--live); }

.month-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.month-nav a { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 18px; background: var(--mist); font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.month-nav a:hover { text-decoration: none; background: var(--mist-2); }
.month-nav a[aria-current='page'] { background: var(--ink); color: var(--paper); }
.month-nav .num { color: inherit; opacity: 0.65; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 14.5px; font-weight: 600; }
.pager a { min-height: 44px; display: flex; align-items: center; }

/* ---------- 차트 ---------- */
.trail svg { display: block; width: 100%; max-width: 320px; margin: 0 auto; }
.trail .ring { fill: none; stroke: var(--unit-ink); stroke-opacity: 0.18; stroke-width: 1; }
.trail .tick { stroke: var(--unit-ink); stroke-opacity: 0.35; stroke-width: 1; }
.trail .label { font-size: 11px; fill: var(--ink-2); font-family: var(--font); }
.trail .arc { fill: none; stroke: var(--unit-ink); stroke-width: 2.4; stroke-linecap: round; stroke-opacity: 0.85; stroke-dasharray: 20000; animation: develop 2.6s cubic-bezier(.25, .6, .2, 1) both; }
.trail .arc-live { fill: none; stroke: var(--live); stroke-width: 3; stroke-linecap: round; }
.trail .now { fill: var(--live); }
@keyframes develop { from { stroke-dashoffset: 20000; } to { stroke-dashoffset: 0; } }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 72px; }
.bars span { flex: 1; min-height: 1px; border-radius: 2px 2px 0 0; background: var(--bar); }
.bars span.top { background: var(--unit-ink); }
.bars span.zero { background: var(--line); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--slate); }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 16px 8px; }
.member-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.member-grid a:hover { text-decoration: none; }
.member-grid .avatar { --size: 44px; }
.member-grid .n { font-size: 12.5px; color: var(--slate); font-variant-numeric: tabular-nums; }

.events li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.events .date { color: var(--slate); font-variant-numeric: tabular-nums; }

/* ---------- 방송 한 편 ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 16px 0; font-size: 13.5px; color: var(--slate); }
.crumbs a { min-height: 32px; display: flex; align-items: center; }
.backdrop { position: relative; height: clamp(200px, 26vw, 360px); border-radius: var(--r-lg); overflow: hidden; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; }
.film { display: flex; flex-wrap: wrap; gap: 32px 48px; padding: 0 clamp(0px, 2vw, 28px); margin-top: 28px; }
.film-poster { flex: 0 0 180px; margin-top: -120px; }
.film-poster a { display: block; }
.film-poster .cover { border-radius: var(--r-md); box-shadow: 0 0 0 4px var(--paper), 0 10px 30px rgba(22, 23, 27, 0.14); }
.film-poster .cover-name { font-size: 20px; }
.film-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.film-by { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); min-height: 36px; align-self: flex-start; }
.film-by .avatar { --size: 30px; }
.film-title { font-size: 40px; font-weight: 820; letter-spacing: -0.035em; line-height: 1.15; }
.film-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: var(--slate); }
.film-info .section-head { margin: 18px 0 0; }
.film-panel { flex: 0 1 280px; min-width: 240px; }
.panel { background: var(--mist); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.btn { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-md); font-size: 15px; font-weight: 700; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-line { min-height: 42px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 600; }
.btn-line:hover { background: var(--mist); }
.info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.info dt { color: var(--slate); }
.info dd { text-align: right; font-weight: 550; font-variant-numeric: tabular-nums; }
.info a { text-decoration: underline; text-underline-offset: 3px; }
.report { margin-top: 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--slate); }

.cast { display: flex; flex-wrap: wrap; gap: 10px; }
.cast a { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 32px; background: var(--mist); }
.cast a:hover { text-decoration: none; background: var(--mist-2); }
.cast .avatar { --size: 38px; background: var(--paper); }
.cast-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.cast-sub { font-size: 12.5px; color: var(--slate); }
.est { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 10px; background: var(--paper); color: var(--slate); font-size: 11.5px; font-weight: 600; }

.prevnext { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prevnext a { display: flex; flex-direction: column; gap: 3px; min-height: 44px; justify-content: center; }
.prevnext a:hover { text-decoration: none; }
.prevnext a:hover .what { text-decoration: underline; text-underline-offset: 3px; }
.prevnext a:last-child { align-items: flex-end; text-align: right; }
.prevnext .label { font-size: 12.5px; color: var(--slate); }
.prevnext .what { font-size: 15.5px; font-weight: 650; }

.overlap-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; border-top: 1px solid var(--line-soft); }
.overlap-row:last-of-type { border-bottom: 1px solid var(--line-soft); }
.overlap-who { display: flex; flex-direction: column; gap: 1px; padding-right: 12px; font-size: 14px; font-weight: 600; }
.overlap-who.self { font-weight: 800; }
.overlap-who span:last-child { font-size: 12px; font-weight: 500; color: var(--slate); }
.track { position: relative; height: 48px; background-image: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px var(--tick, 20%)); }
.track .shared { position: absolute; top: 0; bottom: 0; background: rgba(36, 83, 192, 0.07); }
.track .bar { position: absolute; top: 17px; height: 14px; border-radius: 7px; background: var(--unit-ink); opacity: 0.85; }
.axis { position: relative; height: 24px; font-size: 12px; color: var(--slate); }
.axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.axis span:first-child { transform: none; }
.shared-label { position: relative; height: 34px; }
.shared-label span { position: absolute; top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--link); }

.flow li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }

/* ---------- 게임 ---------- */
.game-head { display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: flex-end; }
.game-head .cover { width: 160px; }
.player-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.player-list .who { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.player-list .avatar { --size: 36px; }
.player-list .n { font-size: 13px; color: var(--slate); text-align: right; }

/* ---------- 바닥 ---------- */
.site-footer { background: var(--mist); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 28px; padding-bottom: 40px; font-size: 13.5px; color: var(--slate); }
.footer-info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-info .visitors { display: inline-flex; gap: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { min-height: 44px; display: flex; align-items: center; color: var(--ink-2); font-weight: 550; }

.prose { max-width: 680px; display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.8; }
.prose h2 { font-size: 19px; font-weight: 750; margin-top: 18px; letter-spacing: -0.02em; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   관리 화면, 문의, 폼 (위키는 2026-11-06 에 뺐어. 예전 스타일은 design-backup/v3-lines)
   ========================================================= */

.doc-list { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.doc-list a { font-weight: 550; }
.unit-members { display: flex; flex-wrap: wrap; gap: 20px; }
.unit-member { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100px; text-align: center; font-size: 13.5px; font-weight: 600; }
.unit-member:hover { text-decoration: none; }
.unit-member .avatar { --size: 64px; font-size: 19px; }

/* 편집 화면 */
.edit-layout { display: flex; flex-wrap: wrap; gap: 40px; }
.edit-form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.edit-form textarea, .edit-form input[type='text'], .edit-form input[type='password'], .new-doc input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font: inherit; font-size: 14.5px;
}
.edit-form textarea:focus, .edit-form input:focus, .new-doc input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(36, 83, 192, 0.12); }
.edit-form textarea { min-height: 480px; line-height: 1.75; resize: vertical; }
.field-label { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
button.btn { border: 0; cursor: pointer; padding: 0 22px; font: inherit; font-size: 15px; font-weight: 700; }
button.btn-line { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; min-height: 32px; color: var(--slate); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.syntax-help { flex: 1 1 300px; min-width: 0; }
.syntax-help table { border-collapse: collapse; width: 100%; }
.syntax-help td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: top; }
code { background: var(--mist); padding: 2px 7px; border-radius: 5px; font-size: 12.5px; white-space: nowrap; }
.notice { padding: 14px 18px; border-radius: var(--r-md); background: #fff6e5; color: #4a3a12; line-height: 1.6; }
.raw-text { white-space: pre-wrap; word-break: break-all; margin: 8px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--mist); font-family: var(--font); font-size: 13.5px; line-height: 1.7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.new-doc { display: flex; gap: 8px; max-width: 520px; }
.new-doc .btn { padding: 0 18px; white-space: nowrap; }
.plus { color: #2f7a4e; }
.minus { color: var(--live); }
.suggestions li { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.suggestions .btn { align-self: flex-start; padding: 0 16px; }
.bars.visits span { background: var(--bar); }
.bars.visits span.top { background: var(--link); }

/* ---------- 키포인트 색 ---------- */
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ''; flex: none; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); }

/* 첫 화면 유닛 칸: 유닛마다 고유 색 */

/* ---------- 표 머리 눌러서 정렬 ---------- */
.diary th a.sort { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; color: inherit; }
.diary th a.sort:hover { color: var(--ink); text-decoration: none; }
.diary th a.sort.is-active { color: var(--ink); }
.sort-arrow path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diary th a.sort:not(.is-active) .sort-arrow { opacity: 0.4; }

/* ---------- 시청자 ---------- */
.viewer-stats { display: flex; flex-wrap: wrap; gap: 12px 44px; margin-bottom: 20px; }
.viewer-stats > div { display: flex; flex-direction: column; gap: 2px; }
.viewer-stats dt { font-size: 12.5px; font-weight: 600; color: var(--slate); }
.viewer-stats dd { display: flex; align-items: baseline; gap: 8px; }
.viewer-stats b { font-size: 28px; font-weight: 780; letter-spacing: -0.03em; line-height: 1.2; }
.viewer-chart { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: 220px 26px; outline: none; border-radius: var(--r-md); }
.viewer-chart:focus-visible { box-shadow: 0 0 0 3px rgba(36, 83, 192, 0.22); }
.vc-y { position: relative; grid-row: 1; grid-column: 1; }
.vc-y span { position: absolute; right: 10px; transform: translateY(50%); font-size: 12px; color: var(--slate); white-space: nowrap; }
.vc-plot { position: relative; grid-row: 1; grid-column: 2; touch-action: pan-y; }
.vc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vc-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.vc-area { fill: var(--unit-ink); opacity: 0.1; }
.vc-line { fill: none; stroke: var(--unit-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vc-peak, .vc-dot { position: absolute; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--unit-ink); box-shadow: 0 0 0 2px var(--paper); }
.vc-peak-label { position: absolute; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; transform: translateX(-50%); }
.vc-peak-label.align-start { transform: translateX(-6px); }
.vc-peak-label.align-end { transform: translateX(calc(-100% + 6px)); }
.vc-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--slate); opacity: 0; pointer-events: none; }
.vc-dot { opacity: 0; pointer-events: none; }
.vc-tip { position: absolute; top: -6px; display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; background: var(--float); border: 1px solid var(--float-line); border-radius: 8px; box-shadow: 0 8px 20px -10px var(--float-shadow); font-size: 12px; color: var(--slate); white-space: nowrap; pointer-events: none; opacity: 0; }
.vc-tip b { font-size: 14px; font-weight: 750; color: var(--ink); }
.viewer-chart.hover .vc-cross, .viewer-chart.hover .vc-dot, .viewer-chart.hover .vc-tip { opacity: 1; }
.viewer-chart.hover .vc-peak-label { opacity: 0.35; }
.vc-x { position: relative; grid-row: 2; grid-column: 2; }
.vc-x span { position: absolute; top: 8px; transform: translateX(-50%); font-size: 12px; color: var(--slate); }
.chart-table { margin-top: 14px; font-size: 13.5px; }
.chart-table summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; color: var(--slate); font-weight: 600; }
.chart-table .diary { min-width: 0; width: auto; }
.chart-table .diary td { padding: 8px 32px 8px 0; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 960px) {
  .member-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(600px, calc(100% - 2 * var(--gutter) + 24px)); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .header-row { height: 56px; gap: 4px; }
  .logo { font-size: 17px; margin-right: 4px; }
  .nav > a, .member-menu > summary { padding: 0 6px; font-size: 14.5px; }
  .member-menu > summary { gap: 2px; }
  .search-link, .theme-btn { width: 36px; }
  .search, .live-text { display: none; }
  .search-link { display: inline-flex; }
  .header-tools { gap: 2px; }
  .live-link { gap: 6px; padding: 0 4px; }
  .member-panel { top: 100%; left: 0; width: auto; right: 0; max-height: calc(100vh - 56px); overflow-y: auto; gap: 18px 12px; padding: 16px var(--gutter) 20px; border-width: 0 0 1px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .panel-member { gap: 8px; padding: 6px; font-size: 14px; }
  .panel-member .live-badge { display: none; }
  .viewer-chart { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 170px 24px; }
  .vc-y span, .vc-x span { font-size: 11px; }
  .viewer-stats { gap: 10px 28px; }
  .viewer-stats b { font-size: 22px; }
  .mini-thumb { width: 60px; }
  .page > section:not(.notice):not(.bare), .pair > section, .columns > .main > section, .columns > .side > section { padding: 0 16px 18px; border-radius: 14px; }
  .page > section:not(.notice):not(.bare) > .section-head, .pair > section > .section-head, .columns > .main > section > .section-head, .columns > .side > section > .section-head { margin: 0 -16px 16px; padding: 12px 16px; min-height: 52px; }
  .page, .columns, .columns > .main, .columns > .side { gap: 14px; }
  .hero-inner { padding-top: 32px; padding-bottom: 28px; }
  .hero-id { gap: 16px; }
  .hero-id .avatar { --size: 72px; font-size: 21px; }
  .hero-name { font-size: 36px; }
  .hero-stats { gap: 10px 28px; }
  .hero-stats dd { font-size: 24px; }
  .hero-trail { flex-basis: 100%; }
  .hero-trail .trail svg { width: 240px; }
  .film-poster { flex-basis: 120px; margin-top: -72px; }
  .overlap-row { grid-template-columns: 100px minmax(0, 1fr); }
  .grid-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .grid-thumbs.wide { grid-template-columns: minmax(0, 1fr); }
  .grid-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .tabs a { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .trail .arc { animation: none; stroke-dasharray: none; }
}

/* 옆 칸 제목은 한 단계 작게 */
.columns > .side .section-head h2 { font-size: 17px; }

/* 썸네일이 없는 방송: 띠를 낮게 */
.backdrop.is-empty { height: 120px; }
.backdrop.is-empty + .film .film-poster { margin-top: -84px; }



/* ---------- 연표 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --chip: var(--key); display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--chip); }
.chip:first-child::before, .chip-member::before { display: none; }
.chip:hover { text-decoration: none; background: var(--mist); }
.chip[aria-current] { border-color: var(--ink); color: var(--ink); }
.chip[aria-current='page'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-current='page']::before { background: var(--paper); }
.chip-member { padding-left: 5px; font-weight: 500; }
.chip-member .avatar { --size: 26px; font-size: 11px; }

.cat { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--mist); color: var(--ink-2); }
.cat-debut { background: #e8f0fd; color: #1f4f9c; }
.cat-music { background: #f1ebfd; color: #57399f; }
.cat-live { background: #e4f5f0; color: #1b6b5a; }
.cat-stream { background: #fdf0e2; color: #87470f; }
.cat-goods { background: #f8f2dc; color: #6f540c; }
.cat-birthday { background: #fde9f3; color: #a02766; }
.cat-anniversary { background: #edf6e2; color: #3c6713; }

.dday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dday-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-top: 4px solid var(--unit, var(--key)); border-radius: var(--r-md); background: var(--paper); }
.dday-card.is-today { background: var(--unit-tint, var(--key-tint)); }
.dday { font-size: 26px; font-weight: 820; letter-spacing: -0.03em; line-height: 1.1; color: var(--unit-ink, var(--ink)); }
.dday-date { font-size: 13px; color: var(--slate); }
.dday-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14.5px; font-weight: 600; }

.tl-events li { align-items: center; }
.tl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.tl-title { font-weight: 600; }
a.tl-title { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
a.tl-title:hover { text-decoration-color: currentColor; }
.tl-row .more { margin-left: auto; font-size: 13.5px; color: var(--link); }
.tl-side li { grid-template-columns: 84px minmax(0, 1fr); font-size: 14px; }
.tl-side + .tl-side { margin-top: 8px; }

/* 관리: 일정 입력 */
.event-form { max-width: 760px; }
.event-form label { display: flex; flex-direction: column; gap: 6px; }
.edit-form input[type='date'], .edit-form input[type='time'], .edit-form input[type='url'], .edit-form select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font: inherit; font-size: 14.5px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.member-checks { margin: 8px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.member-checks legend { padding: 0; margin-bottom: 4px; }
.check-unit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.check-unit-name { --chip: var(--key); display: inline-flex; align-items: center; gap: 6px; width: 92px; font-size: 13px; font-weight: 700; color: var(--slate); }
.check-unit-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--chip); }
.event-form label.check { flex-direction: row; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.danger-zone { margin-top: 8px; color: var(--slate); font-size: 14px; }
.danger-zone summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; }
.danger-zone .btn { margin-top: 8px; color: var(--live); padding: 0 18px; }
@media (max-width: 640px) {
  .check-unit-name { width: 100%; }
  .dday-grid { grid-template-columns: 1fr; }
}
.tl-events li:last-child { border-bottom: 0; }
.tl-side .stack { display: none; }
.event-form + .sub + .tl-events, .event-form + .sub + .empty { margin-top: 8px; }

/* ---------- 테마 (로그인한 팬이 고른 멤버 색) ----------
   테마 색은 세 군데만: 머리 전체, 상자 제목 막대(--accent), 첫 화면 오시 칸.
   연하게: 머리는 그 멤버의 옅은 색, 아래 선도 같은 색감으로 옅게. 글자는 진한 검정, 지금 메뉴 밑줄과 계정 칩은 멤버의 진한 글자색.
   진하게: 머리는 고유색, 글자는 흰색/검정 중 잘 보이는 쪽, 계정 칩은 흰 바탕.
   값은 src/config/theme.ts 의 headerColors. 펼쳐지는 목록은 흰 바탕 그대로.
   멤버 화면 본문은 그 멤버 색이 덮어써. 방송 중 빨강, 유닛 칸 색은 그대로. */
.has-oshi .site-header { background: var(--hdr-bg); border-bottom: 1px solid var(--hdr-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-oshi .logo,
.has-oshi .nav > a,
.has-oshi .member-menu > summary,
.has-oshi .member-menu > summary svg,
.has-oshi .search-link,
.has-oshi .theme-btn,
.has-oshi .live-link { color: var(--hdr-fg); }
.has-oshi .nav > a:hover,
.has-oshi .member-menu > summary:hover,
.has-oshi .member-menu[open] > summary,
.has-oshi .search-link:hover,
.has-oshi .theme-btn:hover { background: var(--hdr-hover); color: var(--hdr-fg); }
.has-oshi .nav > a[aria-current='page'],
.has-oshi .member-menu > summary.is-active { color: var(--hdr-fg); box-shadow: inset 0 -2px 0 var(--hdr-ink); border-radius: 0; }
.has-oshi .search input { background: rgba(255, 255, 255, 0.85); }
.has-oshi .search input::placeholder { color: var(--slate); }
.has-oshi .member-panel { color: var(--ink); }
.has-oshi .oshi-menu > summary { border-color: var(--chip-line); background: var(--chip-bg); color: var(--chip-fg); }
.has-oshi .oshi-menu > summary:hover,
.has-oshi .oshi-menu[open] > summary { background: var(--paper); color: var(--chip-fg); }
.has-oshi .oshi-menu > summary .avatar { --ring-gap: var(--paper); }
.tone-deep .live-link .dot { outline: 2px solid rgba(255, 255, 255, 0.9); }
.has-oshi ::selection { background: var(--key-tint); }

.oshi-menu { flex: none; position: relative; }
.oshi-menu > summary { list-style: none; cursor: pointer; user-select: none; min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--slate); white-space: nowrap; }
.oshi-menu > summary::-webkit-details-marker { display: none; }
.oshi-menu > summary:hover { color: var(--ink); background: var(--mist); }
.oshi-menu.has-oshi > summary { padding-left: 4px; }
.oshi-menu.has-oshi > summary .avatar { --size: 26px; font-size: 11px; }
.oshi-menu[open] > summary { background: var(--mist); color: var(--ink); }
button.panel-member { width: 100%; border: 0; background: none; color: inherit; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; }
button.panel-member:hover { background: var(--unit-tint); }
button.panel-member[aria-pressed='true'] { background: var(--unit-tint); color: var(--unit-ink); font-weight: 750; }
.panel-member .fan-name { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 500; color: var(--slate); }
.oshi-all { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.oshi-all button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.oshi-all button:hover { background: var(--mist); }
.oshi-all button[aria-pressed='true'] { border-color: var(--ink); color: var(--ink); }

.oshi-today { background: var(--key-tint); color: var(--key-ink); font-size: 14px; font-weight: 600; }
.oshi-today .wrap { min-height: 40px; display: flex; align-items: center; gap: 6px; }
.oshi-today a { text-decoration: underline; text-underline-offset: 3px; }

.oshi-tag { display: inline-flex; align-items: center; height: 20px; margin-left: 8px; padding: 0 7px; border-radius: 6px; background: var(--key-tint); color: var(--key-ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0; vertical-align: 2px; }

.oshi-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 26px; border: 1px solid var(--line); border-left: 4px solid var(--unit); border-radius: 0 var(--r-lg) var(--r-lg) 0; background: var(--unit-tint); }
.oshi-card .avatar { --ring-gap: var(--unit-tint); background: var(--paper); font-size: 20px; }
.oshi-main { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.oshi-name { display: flex; align-items: center; font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.oshi-name .oshi-tag { background: var(--paper); color: var(--unit-ink); }
.oshi-status { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14.5px; color: var(--ink-2); }
.oshi-status .is-live { display: inline-flex; align-items: center; gap: 8px; color: var(--live); font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.oshi-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 600; }
.oshi-links a { min-height: 32px; display: inline-flex; align-items: center; color: var(--unit-ink); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; text-decoration-thickness: 1px; }


@media (max-width: 720px) {
  .oshi-menu > summary { min-height: 34px; padding: 0 10px; }
  .oshi-menu.has-oshi > summary { padding: 0 3px; border-width: 2px; }
  .oshi-menu.has-oshi .oshi-fan { display: none; }
  .oshi-card { padding: 18px; gap: 14px; }
  .oshi-main { flex: 1 1 0; }
  .oshi-links { flex-basis: 100%; }
  .oshi-card .avatar { --size: 56px; }
  .oshi-name { font-size: 19px; }
}

/* ---------- 로그인한 팬 ---------- */
.oshi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
.oshi-menu > summary .oshi-nick { max-width: 9em; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.oshi-menu.has-user.has-oshi > summary .oshi-fan { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--key-tint); color: var(--key-ink); font-size: 11.5px; font-weight: 700; }
.oshi-menu.has-user:not(.has-oshi) > summary { padding: 0 14px; }

.my-marks { gap: 12px; margin-top: 14px; }
.my-marks-head { font-size: 13px; font-weight: 700; color: var(--slate); }
.my-marks-buttons { display: flex; flex-direction: column; gap: 8px; }
.my-marks-buttons form { margin: 0; }
.mark-btn { width: 100%; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.mark-btn:hover { background: var(--mist-2); }
.mark-btn.is-on { border-color: var(--unit-ink, var(--ink)); background: var(--unit-ink, var(--ink)); color: var(--paper); }
.mark-btn.is-on:hover { opacity: 0.92; }
.memo-form { display: flex; gap: 6px; margin: 0; }
.memo-form input { flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); font: inherit; font-size: 14px; }
.memo-form .btn { min-height: 42px; padding: 0 14px; flex: none; }

.account-form { max-width: 520px; }
.account-form label { display: flex; flex-direction: column; gap: 6px; }
.account-form label.check { flex-direction: row; align-items: center; gap: 8px; min-height: 36px; font-size: 14.5px; cursor: pointer; }
.account-form .check input { width: 18px; height: 18px; accent-color: var(--ink); }
.inline-row { display: flex; gap: 8px; }
.inline-row input { flex: 1 1 auto; min-width: 0; }
.inline-row .btn { flex: none; padding: 0 18px; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.account-actions form { margin: 0; }
.account-actions .btn { padding: 0 18px; }
.oshi-tag.big { height: 26px; padding: 0 10px; font-size: 14px; vertical-align: 10px; margin-left: 12px; }
.my-stats { margin-top: 8px; }

.stamp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.stamp-week { padding: 4px 0; text-align: center; font-size: 12.5px; font-weight: 650; color: var(--slate); }
.stamp-day { min-height: 76px; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.stamp-day.is-empty { border-color: transparent; }
.stamp-day.has-stamp { border-color: transparent; background: var(--unit-tint, var(--key-tint)); }
.stamp-day.is-today .stamp-date { color: var(--ink); font-weight: 800; }
.stamp-date { font-size: 12.5px; color: var(--slate); }
.stamp-day.has-stamp .stamp-date { color: var(--ink-2); }
.stamps { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.stamp { display: inline-flex; border-radius: 50%; transition: transform 0.12s ease; }
.stamp:hover { transform: translateY(-2px); text-decoration: none; }
.stamp:focus-visible { outline: 2px solid var(--unit-ink, var(--ink)); outline-offset: 1px; }
.stamps .avatar { --ring-gap: transparent; font-size: 10px; }
.stamp-more { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.stamp-more:hover { color: var(--ink); }
.cal-pager { margin: 0 0 8px; }

.mark-list { display: flex; flex-direction: column; margin-top: 18px; }
.mark-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.mark-day-label { font-size: 14px; font-weight: 700; color: var(--slate); padding-top: 8px; }
.mark-day ol { display: flex; flex-direction: column; gap: 8px; }
.mark-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark-list.flat .mark-row { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mark-list.flat .mark-row:last-child { border-bottom: 0; }
.mark-list.flat { margin-top: 0; }
.mark-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.mark-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mark-main .sub { font-size: 13px; }
.memo-text { margin-top: 4px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--mist); font-size: 14px; }
.inline-form { margin: 2px 0 0; }

@media (max-width: 960px) {
  .oshi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .oshi-grid { gap: 18px 12px; }
  .oshi-menu.has-user > summary .oshi-nick,
  .oshi-menu.has-user.has-oshi > summary .oshi-fan { display: none; }
  .oshi-menu.has-user:not(.has-oshi) > summary .oshi-nick { display: inline; max-width: 5em; }
  .stamp-cal { gap: 3px; }
  .stamp-day { min-height: 56px; padding: 4px; }
  .stamps .avatar { --size: 18px !important; }
  .mark-day { grid-template-columns: 48px minmax(0, 1fr); }
}

/* 머리 오른쪽: 로그인 / 내 메뉴 */
.login-chip { flex: none; min-height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.login-chip:hover { text-decoration: none; background: var(--mist); color: var(--ink); }
.account-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 180px; display: flex; flex-direction: column; padding: 8px; background: var(--float); border: 1px solid var(--float-line); border-radius: var(--r-md); box-shadow: 0 16px 40px -12px var(--float-shadow); color: var(--ink); }
.account-panel a, .account-panel button { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; width: 100%; }
.account-panel a:hover, .account-panel button:hover { text-decoration: none; background: var(--mist); }
.account-panel form { margin: 0; border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }

/* 내 스텔라북: 테마 */
.my-oshi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 16px; }
.my-oshi .avatar { --ring-gap: var(--paper); }
.my-oshi-name { display: flex; align-items: center; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.my-oshi-name .oshi-tag { background: var(--unit-tint); color: var(--unit-ink); }
.oshi-change > summary { cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--ink-2); list-style: none; }
.oshi-change > summary::-webkit-details-marker { display: none; }
.oshi-change[open] > summary { margin-bottom: 18px; background: var(--mist); }
.oshi-picker { margin: 0; }
.oshi-picker .panel-unit .unit-name { font-size: 13px; padding-left: 8px; }
.oshi-picker button.panel-member .avatar { --ring-gap: var(--paper); }
.oshi-picker button.panel-member[aria-pressed='true'] .avatar { --ring-gap: var(--unit-tint); }
.tone-pick { flex: none; display: inline-flex; gap: 6px; }
.tone-btn { min-height: 32px; padding: 0 12px; border: 1px solid var(--tb-line, var(--line)); border-radius: 999px; background: var(--tb-bg, var(--paper)); color: var(--tb-fg, var(--ink)); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tone-btn:hover { filter: brightness(0.97); }
.tone-btn[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.tone-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 720px) {
  .oshi-picker .fan-name { display: none; }
  .login-chip { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
  .account-panel { position: fixed; top: 56px; right: 8px; }
}

/* 팬 제안 */
.side-links { margin-top: 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 13.5px; }
.side-links a { color: var(--slate); }
.tl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 4px; }
.tl-actions > a, .cal-sub > summary { min-height: 32px; display: inline-flex; align-items: center; }

/* 연표: 운영자에게만 보이는 고치기 / 지우기 */
.ev-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: var(--slate); }
.ev-tools a { color: var(--slate); }
.ev-tools a:hover { color: var(--ink); }
.dday-card .ev-tools { margin-left: 0; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.ev-del { position: relative; }
.ev-del > summary { list-style: none; cursor: pointer; min-height: 28px; display: inline-flex; align-items: center; }
.ev-del > summary::-webkit-details-marker { display: none; }
.ev-del > summary:hover, .ev-del[open] > summary { color: var(--live); }
.ev-del-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 220px; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px; background: var(--float); border: 1px solid var(--float-line); border-radius: var(--r-md); box-shadow: 0 16px 40px -12px var(--float-shadow); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.ev-del-panel .btn { min-height: 38px; color: var(--live); }
.dday-card .ev-del-panel { right: auto; left: 0; }

/* 연표: 그날 방송, 몇 년 전 오늘, 캘린더 구독 */
.tl-shows { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.tl-shows a { color: var(--link); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.tl-shows a:hover { text-decoration-color: currentColor; }
.otd .date { font-weight: 700; color: var(--ink-2); }
.otd .tl-row { gap: 4px 10px; }
.otd .avatar { --ring-gap: var(--paper); font-size: 10px; }
.otd .sub { flex-basis: 100%; padding-left: 34px; font-size: 13px; }
.cal-sub { position: relative; }
.cal-sub > summary { list-style: none; cursor: pointer; color: inherit; }
.cal-sub > summary::-webkit-details-marker { display: none; }
.cal-sub > summary:hover, .cal-sub[open] > summary { color: var(--ink); }
.cal-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 280px; display: flex; flex-direction: column; padding: 8px; background: var(--float); border: 1px solid var(--float-line); border-radius: var(--r-md); box-shadow: 0 16px 40px -12px var(--float-shadow); }
.cal-panel > a { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink); font-size: 14.5px; font-weight: 600; }
.cal-panel > a:hover { text-decoration: none; background: var(--mist); }
.cal-url { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding: 10px 12px 4px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--slate); }
.cal-url input { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); color: var(--ink-2); font: inherit; font-size: 12.5px; }
@media (max-width: 720px) {
  .otd .sub { padding-left: 0; }
}
.sg-list { display: flex; flex-direction: column; }
.sg-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 18px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.sg-item:last-child { border-bottom: 0; }
.sg-item.is-approved .sg-head .tl-title, .sg-item.is-rejected .sg-head .tl-title { color: var(--ink-2); }
.sg-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sg-diff { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.sg-add { color: #1b6b5a; font-weight: 650; }
.sg-remove { color: #a3283b; font-weight: 650; }
.sg-note { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.sg-body .sub { font-size: 12.5px; }
.sg-actions { display: flex; gap: 8px; flex: none; }
.sg-actions form { margin: 0; }
.sg-actions .btn { min-height: 38px; padding: 0 16px; }

/* ==========================================================================
   첫 화면 방송 시간표 (2026-11-11)
   멤버마다 한 줄, 오전 6시부터 다음 날 오전 6시까지. 막대 하나가 방송 하나.
   막대는 멤버 고유색, 지금 방송 중인 막대는 "지금" 선에서 끝나고 끝에 빨간 점.
   자리 계산은 src/lib/dayboard.ts, 화면은 src/views/pages/home.tsx 의 DayBoard.
   ========================================================================== */
.db { --db-unit: 96px; --db-who: 156px; --db-row: 40px; }
.db-axis { padding-left: calc(var(--db-unit) + var(--db-who)); }
.db-ticks { position: relative; height: 26px; font-size: 12px; color: var(--slate); }
.db-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.db-ticks span:first-child { transform: none; }
.db-ticks span:last-child { transform: translateX(-100%); }
.db.has-now .db-ticks::after { content: ''; position: absolute; left: var(--now); bottom: -3px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--live); }
.db-group { display: grid; grid-template-columns: var(--db-unit) minmax(0, 1fr); border-top: 1px solid var(--line); }
.db-unit { padding-top: 11px; font-size: 12.5px; font-weight: 750; letter-spacing: 0.01em; color: var(--unit-ink); }
.db-rows { min-width: 0; }
.db-row { display: grid; grid-template-columns: var(--db-who) minmax(0, 1fr); align-items: stretch; height: var(--db-row); }
.db-row + .db-row { border-top: 1px solid var(--line-soft); }
.db-who { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 12px; font-size: 14px; font-weight: 600; }
.db-who:hover { text-decoration: none; color: var(--unit-ink); }
.db-who .avatar { --ring-gap: var(--paper); font-size: 10px; }
.db-name, .db-short { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-short { display: none; }
.db-row.is-oshi .db-who { font-weight: 800; color: var(--unit-ink); }
.db-track { position: relative; min-width: 0; background-image: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 12.5%); border-right: 1px solid var(--line-soft); }
/* 지금 선과 아직 오지 않은 시간 */
.db.has-now .db-track::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--now); right: 0; background: rgba(243, 244, 247, 0.72); pointer-events: none; }
.db.has-now .db-track::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--now); width: 1px; background: var(--live); opacity: 0.5; pointer-events: none; }
/* 막대: 누르는 자리는 줄 높이 전체, 보이는 막대는 가운데 12px */
.db-bar { position: absolute; top: 0; bottom: 0; z-index: 1; min-width: 8px; }
.db-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; background: var(--unit); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--unit-ink) 38%, transparent); }
.db-bar.cut-start::before { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.db-bar.cut-end::before, .db-bar.is-live::before { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.db-bar:hover { text-decoration: none; }
.db-bar:hover::before, .db-bar:focus-visible::before { height: 16px; margin-top: -8px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--unit-ink); }
.db-bar:focus-visible { outline: 2px solid var(--ink); outline-offset: -8px; border-radius: 10px; }
.db-bar.is-live::after { content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--paper); }
.db-label { position: absolute; top: 50%; left: calc(100% + 12px); transform: translateY(-50%); max-width: 124px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--slate); }
.db-label.is-before { left: auto; right: calc(100% + 10px); }
.db-bar:hover .db-label { color: var(--ink); }
.db-bar.is-live .db-label { color: var(--live); font-weight: 650; }
.db-idle { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); font-size: 12.5px; color: var(--faint); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .db-bar::before { transition: height 0.12s ease, margin-top 0.12s ease; }
}

/* 나란히 두 칸 (최근 7일 많이 본 방송 + 몇 년 전 오늘, 순위 페이지) */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pair.is-single { grid-template-columns: minmax(0, 1fr); }
.pair .otd li { grid-template-columns: 64px minmax(0, 1fr); }
.pair .events li:first-child { padding-top: 0; }
.pair .events li:last-child { padding-bottom: 0; border-bottom: 0; }

/* 오시 칸: 방송 중일 때 제목 */
.oshi-live-title { font-weight: 500; color: var(--ink-2); }

/* 방송 기록 표: 같은 날 방송이 이어지면 날짜는 첫 줄에만 */
.diary-list tr.same-day .day { visibility: hidden; }

@media (max-width: 720px) {
  .db { --db-who: 74px; --db-row: 38px; }
  .db-axis { padding-left: var(--db-who); }
  .db-ticks span:nth-child(even) { display: none; }
  .db-group { grid-template-columns: minmax(0, 1fr); }
  .db-unit { padding: 8px 0 2px; font-size: 12px; }
  .db-who { gap: 7px; padding-right: 6px; font-size: 13.5px; }
  .db-who .avatar { --size: 26px !important; }
  .db-name { display: none; }
  .db-short { display: block; }
  .db-label { display: none; }
  .db-idle { left: 8px; font-size: 12px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pair .otd li { grid-template-columns: 52px minmax(0, 1fr); }

  /* 지금 방송 중: 휴대폰에서는 썸네일을 왼쪽에 작게 두고 한 줄씩 */
}

/* 방송 기록 표: 놓인 자리가 좁으면(휴대폰, 멤버 프로필의 가운데 칸) 표 대신 목록으로.
   왼쪽에 날짜, 첫 줄에 제목과 다시보기, 둘째 줄에 멤버·시간·길이·시청자.
   표로 두면 제목 칸이 눌려서 글자가 한 자씩 세로로 내려가. 화면 폭이 아니라 표가 놓인 칸의 폭으로 판단해. */
.table-scroll:has(> .diary-list) { container: diary / inline-size; }
.diary-list .c-title { min-width: 240px; }
@container diary (max-width: 820px) {
  .diary-list .c-title { min-width: 0; }
  .diary-list { display: block; min-width: 0; }
  .diary-list thead { display: block; }
  .diary-list thead:not(:has(.sort)) { display: none; }
  .diary-list thead tr { display: flex; gap: 4px 16px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .diary-list thead th { padding: 0; border: 0; }
  .diary-list thead th:not(:has(.sort)) { display: none; }
  .diary-list tbody { display: block; }
  .diary-list tbody tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--line-soft); }
  .diary-list tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .diary-list tbody td { display: block; padding: 0; border: 0; }
  .diary-list tbody td:empty { display: none; }
  .diary-list .c-day { position: absolute; left: 0; top: 14px; }
  .diary-list .day { flex-direction: column; align-items: flex-start; gap: 3px; }
  .diary-list .day b { font-size: 19px; }
  .diary-list .c-title { order: 1; flex: 1 1 calc(100% - 90px); min-width: 0; }
  .diary-list .c-link { order: 2; }
  .diary-list .c-member { order: 3; }
  .diary-list .c-time { order: 4; }
  .diary-list .c-length { order: 5; }
  .diary-list .c-viewers { order: 6; }
  .diary-list .c-with { order: 7; }
  .diary-list .c-viewers:has(> .sub:only-child) { display: none; }
  .diary-list .title-cell { gap: 10px; }
  .diary-list .c-link { flex: none; }
  .diary-list .link { min-height: 36px; font-size: 13.5px; }
  .diary-list .c-member, .diary-list .c-time, .diary-list .c-length, .diary-list .c-viewers { font-size: 13px; }
  .diary-list .member-cell { gap: 6px; }
  .diary-list .member-cell .avatar { --size: 22px !important; font-size: 9px; }
  .diary-list .c-with { margin-left: auto; }
  .diary-list .month-row { display: block; padding: 0; border-bottom: 1px solid var(--line); }
  .diary-list .month-row th { display: block; padding: 20px 0 8px; border: 0; }
  .diary-list tbody .month-row:first-child th { padding-top: 8px; }
}

/* ==========================================================================
   배치 다시 잡기 (2026-11-11)
   메뉴는 방송 기록 · 순위 · 멤버 · 게임. 첫 화면은 날짜가 제목인 하루치 방송 기록.
   ========================================================================== */
/* 사이트 안내 (src/views/guide.tsx): 처음 온 사람에게 화면 가득 덮이는 다섯 장. 옆으로 넘겨 봐.
   자바스크립트가 켜져 있고(.js) 아직 안 본 브라우저(.seen 없음)에서만 보여. 떠 있는 동안 뒤 페이지는 안 움직여(.guide-open).
   (클래스 이름을 cover 로 짓지 마: 썸네일 .cover 와 겹쳐) 예전 로비(시계 그림)는 design-backup/v7-lobby-dial */
.guide { display: none; }
.js:not(.seen) .guide { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--paper); outline: none; transition: opacity 0.24s ease; }
.guide.is-closing { opacity: 0; pointer-events: none; }
.guide-open, .guide-open body { overflow: hidden; }
.guide-top { display: flex; align-items: center; justify-content: space-between; flex: none; width: 100%; min-height: 68px; }
.guide-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-logo); font-size: 19px; font-weight: 900; letter-spacing: -0.04em; transition: opacity 0.3s ease; }
.guide.is-first .guide-brand { opacity: 0; }
.guide-mark { display: block; border-radius: 22%; }
.guide-skip { min-height: 44px; margin-right: -10px; padding: 0 10px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--slate); cursor: pointer; }
.guide-skip:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.guide-view { flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; }
.guide-track { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.2, 1); }
.guide-slide { flex: 0 0 100%; min-width: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; transition: opacity 0.45s ease; }
.guide-slide:not(.is-on) { opacity: 0.25; }
.guide-slide-in { flex: none; width: 100%; margin-block: auto; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); align-items: center; gap: 32px clamp(40px, 6vw, 96px); padding-top: 12px; padding-bottom: 12px; }
.guide-copy { max-width: 27em; }
.guide-title { margin: 0; font-size: clamp(30px, 3.3vw, 46px); font-weight: 780; line-height: 1.2; letter-spacing: -0.035em; text-wrap: balance; }
.is-intro .guide-title { font-family: var(--font-logo); font-size: clamp(40px, 4.2vw, 58px); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; white-space: nowrap; }
.guide-text { margin: clamp(16px, 2.6vh, 24px) 0 0; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.75; color: var(--ink-2); text-wrap: pretty; }
.is-intro .guide-text { max-width: 21em; }
.guide-login { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--link); }
.guide-art { min-width: 0; display: flex; justify-content: center; }
.guide-art > * { width: 100%; max-width: 560px; }
.guide-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; width: 100%; min-height: 88px; padding-bottom: env(safe-area-inset-bottom); }
.guide-steps { display: flex; margin-left: -6px; }
.guide-step { display: flex; align-items: center; width: 44px; height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer; }
.guide-step span { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); transition: background-color 0.3s ease; }
.guide-step.is-done span { background: var(--ink); }
.guide-step:hover:not(.is-done) span { background: #c6cad3; }
.guide-nav { display: flex; gap: 8px; }
.guide-prev, .guide-next { min-height: 48px; padding: 0 22px; border-radius: var(--r-md); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.guide-prev { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.guide-prev:hover:not(:disabled) { background: var(--mist); }
.guide-prev:disabled { visibility: hidden; }
.guide-next { min-width: 112px; border: 0; background: var(--ink); color: var(--paper); }
.guide-next:hover { background: var(--ink-hover); }
.guide.is-last .guide-next { background: var(--key-ink); }
.guide.is-last .guide-next:hover { background: #17695a; }

/* 그림: 사이트에 있는 화면을 그날 실제 기록으로 작게 (누를 수는 없어) */
.ga-panel { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.ga-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 13px; color: var(--slate); }
.ga-panel-head b { font-size: 15px; font-weight: 720; letter-spacing: -0.02em; color: var(--ink); }
/* 1장: 기수마다 한 바퀴씩 도는 멤버들 (guide.tsx 의 OrbitArt). 가운데 로고, 안쪽부터 1기 → 4기
   (이름을 go 로 짓지 마: 멤버 페이지 "치지직에서 보기"(.live-bar .go)와 겹쳐서 그게 화면만큼 커졌었어, 2026-11-13) */
.guide-art > .orbit { max-width: 540px; }
.orbit { position: relative; width: 100%; aspect-ratio: 1; }
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-rings circle { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: 0.45; }
.orbit-center { position: absolute; left: 50%; top: 50%; width: 13%; transform: translate(-50%, -50%); }
.orbit-center svg { display: block; width: 100%; height: auto; }
.orbit-m { position: absolute; width: 11.5%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.orbit-m .avatar { width: 100%; height: 100%; font-size: clamp(10px, 1.1vw, 15px); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--unit); }
.js:not(.seen) .guide-slide.is-on .orbit-m { animation: orbit-in 0.7s cubic-bezier(0.2, 0.75, 0.25, 1) both; animation-delay: var(--d); }
.js:not(.seen) .guide-slide.is-on .orbit-rings circle { animation: orbit-ring 0.9s ease both; }
@keyframes orbit-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes orbit-ring { from { opacity: 0; } to { opacity: 0.45; } }
/* 2~5장 그림 밑 판: 유닛 색을 아주 옅게 (guide.tsx 의 STAGE) */
.guide-stage { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 3.6vw, 52px); border-radius: 28px; background: var(--stage); }
.guide-stage > * { width: 100%; }
.guide-stage .ga-panel, .guide-stage .ga-record { border-color: transparent; box-shadow: 0 1px 2px rgba(22, 23, 27, 0.05), 0 14px 36px -14px rgba(22, 23, 27, 0.18); }
/* 2장: 작은 시간표 */
.gb { --who: 30px; }
.gb-ticks { position: relative; height: 18px; margin-left: var(--who); font-size: 11.5px; color: var(--faint); }
.gb-ticks span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.gb-ticks span:first-child { transform: none; }
.gb-ticks span:last-child { transform: translateX(-100%); }
.gb-body { position: relative; display: flex; flex-direction: column; gap: 8px; }
.gb-group { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; list-style: none; }
.gb-row { display: grid; grid-template-columns: var(--who) minmax(0, 1fr); align-items: center; height: 22px; }
.gb-row .avatar { font-size: 8px; }
.gb-track { position: relative; height: 100%; border-radius: 4px; background: var(--line-soft); background: linear-gradient(var(--line-soft), var(--line-soft)) 0 50% / 100% 1px no-repeat; }
.gb-bar { position: absolute; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: var(--c); transform-origin: left center; }
.gb-bar.is-live { box-shadow: 2px 0 0 var(--paper), 5px 0 0 var(--live); }
.guide-slide.is-on .gb-bar { animation: gb-grow 0.6s cubic-bezier(0.25, 0.7, 0.2, 1) both; animation-delay: var(--d); }
.gb-now { position: absolute; top: -4px; bottom: -4px; left: calc(var(--who) + (100% - var(--who)) * var(--now) / 100); width: 1.5px; background: var(--live); opacity: 0.6; }
@keyframes gb-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* 3장: 방송 한 편 (첫 화면 .record 를 그대로 써) */
.ga-record { gap: 18px; padding: 20px; }
.ga-record .record-title { font-size: 19px; -webkit-line-clamp: 3; }
.ga-record .record-top { grid-template-columns: 188px minmax(0, 1fr); }
/* 4장: 다가오는 일정 */
.gu ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.gu li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.gu-who { display: flex; }
.gu-who .avatar + .avatar { margin-left: -12px; box-shadow: 0 0 0 2px var(--paper); }
.gu-text { display: flex; flex-direction: column; min-width: 0; }
.gu-text b { font-size: 15px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gu-text span { font-size: 13px; color: var(--slate); }
.gu-dday { padding: 4px 10px; border-radius: 999px; background: var(--key-tint); font-size: 13px; font-weight: 700; color: var(--key-ink); }
/* 5장: 오시 색으로 바뀐 머리 세 가지 */
.gt { display: flex; flex-direction: column; gap: 12px; }
.gt-head { background: var(--h-bg); color: var(--h-fg); border-color: var(--h-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 18px; border: 1px solid; border-radius: var(--r-md); }
.gt-head:nth-child(2) { margin-left: 32px; }
.gt-logo { font-family: var(--font-logo); font-size: 18px; font-weight: 900; letter-spacing: -0.04em; }
.gt-user { display: inline-flex; align-items: center; gap: 8px; }
.gt-user .avatar { font-size: 9px; }
.gt-fan { background: var(--f-bg); color: var(--f-fg); border-color: var(--f-line); padding: 3px 10px; border: 1px solid; border-radius: 999px; font-size: 12.5px; font-weight: 650; }

@media (max-width: 860px) {
  .guide-top { min-height: 60px; }
  .guide-slide-in { grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(20px, 3.6vh, 32px); }
  .guide-art { order: -1; }
  .guide-title { font-size: clamp(26px, 7.4vw, 34px); }
  .is-intro .guide-title { font-size: clamp(34px, 9.6vw, 44px); }
  .guide-art > .orbit { width: min(88%, 42vh); }
  .orbit-m .avatar { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--unit); }
  .guide-stage { padding: 14px; border-radius: 20px; }
  .guide-text { font-size: 16px; line-height: 1.7; margin-top: 12px; }
  .guide-bar { min-height: 76px; }
  .guide-prev, .guide-next { padding: 0 18px; }
  .guide-next { min-width: 96px; }
  .guide-step { width: 32px; padding: 0 4px; }
  .ga-panel { padding: 14px 14px 16px; }
  .gb { --who: 26px; }
  .gb-row { height: 18px; }
  .gb-row .avatar { --size: 16px !important; font-size: 6px; }
  .gb-bar { height: 8px; margin-top: -4px; }
  .gb-body { gap: 6px; }
  .ga-record { padding: 14px; gap: 14px; }
  .ga-record .record-top { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .ga-record .record-title { font-size: 15.5px; }
  .gu li { padding: 9px 0; grid-template-columns: 48px minmax(0, 1fr) auto; }
  .gu-who .avatar { --size: 30px !important; }
  .gt-head { min-height: 50px; padding: 0 14px; }
  .gt-head:nth-child(2) { margin-left: 20px; }
  .gt-logo { font-size: 16px; }
}
@media (max-width: 400px) {
  .guide-step { width: 26px; padding: 0 3px; }
  .guide-prev { padding: 0 14px; }
  .guide-next { min-width: 88px; padding: 0 16px; }
}
@media (max-height: 700px) and (max-width: 860px) {
  .guide-art > .orbit { width: min(88%, 36vh); }
  .gb-row { height: 15px; }
  .gb-body { gap: 4px; }
  .gb-group { gap: 2px; }
  .ga-panel-head { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-track, .guide-slide, .guide-step span, .guide { transition: none; }
  .guide-slide.is-on .gb-bar, .js:not(.seen) .guide-slide.is-on .orbit-m, .js:not(.seen) .guide-slide.is-on .orbit-rings circle { animation: none; }
  .guide-brand { transition: none; }
}

/* 첫 화면 머리: 왼쪽에 날짜 + 넘기기, 오른쪽에 실제 방송 기록 한 편 (그날 합계는 시간표 제목 오른쪽) */
.day-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 20px 48px; margin-bottom: 8px; }
.day-head.has-record { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.day-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.day-step { display: inline-flex; align-items: center; gap: 6px; }
.day-step .step { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); }
.day-step a.step:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.day-step .step.is-off { color: var(--line); border-color: var(--line-soft); }
.day-step .step-now, .day-step .step-today { display: inline-flex; align-items: center; min-height: 30px; margin-left: 6px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.day-step .step-now { background: var(--key-tint); color: var(--key-ink); }
.day-step .step-today { border: 1px solid var(--line); font-weight: 600; }
.day-step .step-today:hover { background: var(--mist); text-decoration: none; }

/* 방송 기록 한 편: 썸네일, 제목, 멤버와 시간, 아래에 시청자 곡선 */
.record { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.record:hover { text-decoration: none; border-color: var(--unit-ink); }
.record:hover .record-title { text-decoration: underline; text-underline-offset: 3px; }
.record-top { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 16px; }
.record-top .cover { border-radius: 8px; }
.record-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.record-kind { font-size: 12.5px; font-weight: 650; color: var(--unit-ink); }
.record-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; font-weight: 720; line-height: 1.35; letter-spacing: -0.02em; }
.record-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--slate); }
.record-member { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink-2); }
.record-member .avatar { --ring-gap: var(--paper); font-size: 8px; }
.record-viewers { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.spark { display: block; width: 100%; height: 44px; }
.spark-area { fill: var(--unit-tint); }
.spark-line { fill: none; stroke: var(--unit-ink); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.record-peak { white-space: nowrap; font-size: 13px; color: var(--slate); }
.record-peak b { margin-right: 1px; font-size: 20px; font-weight: 780; letter-spacing: -0.03em; color: var(--ink); }

/* 시간표 막대에 마우스를 올리거나 키보드로 가면 뜨는 쪽지 */
.db-tip { position: absolute; left: 50%; bottom: calc(50% + 15px); z-index: 6; transform: translateX(-50%); display: flex; flex-direction: column; gap: 1px; max-width: 280px; padding: 7px 11px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 12.5px; line-height: 1.45; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; }
.db-tip b { overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.db-tip .num { color: rgba(255, 255, 255, 0.72); }
.db-tip.is-start { left: 0; transform: none; }
.db-tip.is-end { left: auto; right: 0; transform: none; }
.db-bar:hover, .db-bar:focus-visible { z-index: 7; }
.db-bar:hover .db-tip, .db-bar:focus-visible .db-tip { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .db-tip { transition: opacity 0.1s ease; }
}
@media (hover: none), (max-width: 720px) {
  .db-tip { display: none; }
}
.dwell-stats dd { font-size: 24px; }

/* 순위 */
.chip.is-plain::before { display: none; }
.rank-list li { display: grid; grid-template-columns: 26px 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.rank-list li:first-child { padding-top: 0; }
.rank-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.rank-no { text-align: center; font-size: 17px; font-weight: 760; letter-spacing: -0.02em; color: var(--faint); }
.rank-list li:nth-child(-n + 3) .rank-no { color: var(--ink); }
.rank-thumb { display: block; }
.rank-thumb .cover { border-radius: 6px; }
.rank-thumb:hover { text-decoration: none; }
.rank-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rank-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 650; }
.rank-sub { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; font-size: 13px; color: var(--slate); }
.rank-member { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink-2); }
.rank-member .avatar { --ring-gap: var(--paper); font-size: 8px; }
.rank-value { text-align: right; white-space: nowrap; font-size: 13px; color: var(--slate); }
.rank-value b { margin-right: 2px; font-size: 16px; font-weight: 720; letter-spacing: -0.02em; color: var(--ink); }
.rank-list.is-compact li { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; }
.rank-list.is-compact li:first-child { padding-top: 0; }
.rank-list.is-compact li:last-child { padding-bottom: 0; }
.rank-list.is-compact .rank-thumb { display: none; }

@media (max-width: 960px) {
  .day-head.has-record { grid-template-columns: minmax(0, 1fr); }
  .record { max-width: 520px; }
}

@media (max-width: 720px) {
  /* 휴대폰: 메뉴를 로고 아래 한 줄로 */
  html { scroll-padding-top: 112px; }
  .header-row { flex-wrap: wrap; height: auto; gap: 0 4px; }
  .logo { order: 1; display: flex; align-items: center; height: 52px; }
  .header-tools { order: 2; height: 52px; }
  .nav { order: 3; flex: 0 0 100%; height: 42px; margin: 0 -6px; gap: 4px; border-top: 1px solid var(--line-soft); overflow-x: auto; }
  .has-oshi .nav { border-top-color: var(--hdr-line); }
  .nav > a, .member-menu > summary { min-height: 36px; padding: 0 8px; }
  .member-panel { max-height: calc(100vh - 96px); }
  .day-head, .day-head.has-record { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .day-title { gap: 10px 14px; }
  .record { padding: 14px; gap: 12px; }
  .record-top { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .record-title { font-size: 15.5px; }
  .rank-list li { grid-template-columns: 22px 60px minmax(0, 1fr) auto; gap: 10px; }
  .rank-sub > span:last-child { display: none; }
}

/* ==========================================================================
   멤버 통계 (2026-11-11). 색은 그 멤버 색(--unit-ink). 계산은 src/lib/memberstats.ts
   ========================================================================== */
/* 기록 요약: 이름표와 값이 한 쌍씩 */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px 28px; margin: 0; }
.facts > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts dt { font-size: 13px; color: var(--slate); }
.facts dd { margin: 0; font-size: 21px; font-weight: 760; letter-spacing: -0.025em; line-height: 1.3; }
/* 멤버 통계 기록 요약은 네 칸: 넓으면 한 줄, 좁으면 두 칸씩 두 줄 (세 칸 + 한 칸으로 꺾이지 않게) */
#summary .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) {
  #summary .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 게임 찾기 (게임 목록, 멤버 게임 탭) */
/* 숨긴 카드·묶음은 display 를 정한 규칙(.card 의 flex 등)보다 먼저 숨어야 해 */
[data-game][hidden], [data-game-group][hidden], .game-search-note[hidden] { display: none !important; }
.game-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 0 0; }
.game-search-box { position: relative; flex: 0 1 360px; min-width: 0; display: flex; align-items: center; }
.game-search-box svg { position: absolute; left: 15px; color: var(--slate); pointer-events: none; }
.game-search-box input { width: 100%; height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.game-search-box input::placeholder { color: var(--slate); }
.game-search-box input:focus { outline: none; border-color: var(--unit-ink, var(--key-ink, var(--ink))); box-shadow: 0 0 0 3px var(--unit-tint, var(--key-tint, var(--mist))); }
.game-search-note { margin: 0; font-size: 14px; color: var(--ink-2); }
section > .game-search { margin: -4px 0 22px; }
@media (max-width: 720px) {
  .game-search-box { flex-basis: 100%; }
}
/* 멤버 통계 위 안내: 실시간 기록을 시작한 날 (달력 한 장 모양) */
.stats-since { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-radius: var(--r-lg); background: var(--unit-tint); color: var(--ink-2); }
.since-tile { flex: none; width: 52px; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: var(--paper); text-align: center; box-shadow: 0 1px 0 var(--line); }
.since-month { padding: 3px 0 2px; background: var(--unit-ink); color: var(--paper); font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.since-day { padding: 2px 0 5px; color: var(--unit-ink); font-size: 22px; font-weight: 800; line-height: 1.2; }
.since-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 780px; }
html.dark .stats-since { background: color-mix(in srgb, var(--unit-tint) 60%, var(--paper)); }
.since-title { color: var(--ink); font-size: 15px; font-weight: 700; }
.since-body { font-size: 13.5px; line-height: 1.6; }
.since-body a { color: var(--unit-ink); font-weight: 650; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .stats-since { align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 14px; }
  .since-tile { width: 44px; }
  .since-day { font-size: 19px; }
  .since-title { font-size: 14.5px; }
}
.fact-link { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.fact-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* 요일 × 시각 */
.heat { display: flex; flex-direction: column; gap: 3px; }
.heat-row { display: grid; grid-template-columns: 26px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat-hours { font-size: 12px; color: var(--slate); margin-bottom: 2px; }
.heat-hours span { white-space: nowrap; }
.heat-day { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.heat-cell { display: block; height: 24px; border-radius: 4px; background: var(--mist); }
.heat-cell.l1 { background: color-mix(in srgb, var(--unit-ink) 16%, var(--paper)); }
.heat-cell.l2 { background: color-mix(in srgb, var(--unit-ink) 38%, var(--paper)); }
.heat-cell.l3 { background: color-mix(in srgb, var(--unit-ink) 64%, var(--paper)); }
.heat-cell.l4 { background: var(--unit-ink); }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--slate); }
.heat-legend .heat-cell { width: 16px; height: 12px; border-radius: 3px; }

/* 세로 막대 */
.vbars { display: flex; align-items: stretch; gap: 6px; height: 190px; }
.vbar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; }
a.vbar:hover { text-decoration: none; }
.vbar-value { height: 16px; font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.vbar-track { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.vbar-bar { display: block; width: 100%; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--unit-ink) 30%, var(--paper)); }
.vbar-bar.is-top { background: var(--unit-ink); }
a.vbar:hover .vbar-bar, a.vbar:focus-visible .vbar-bar { background: var(--unit-ink); }
.vbar-label { font-size: 12px; color: var(--slate); white-space: nowrap; }
.vbars.is-dense { gap: 3px; height: 150px; }
.vbars.is-dense .vbar-bar { border-radius: 2px 2px 0 0; }

/* 가로 막대 */
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbars li { display: grid; grid-template-columns: minmax(84px, 150px) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.hbar-track { display: block; height: 12px; border-radius: 6px; background: var(--mist); }
.hbar-bar { display: block; height: 100%; border-radius: 6px; background: color-mix(in srgb, var(--unit-ink) 42%, var(--paper)); }
.hbar-bar.is-top { background: var(--unit-ink); }
.hbar-value { min-width: 62px; text-align: right; font-size: 13px; color: var(--ink-2); white-space: nowrap; }

@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .facts dd { font-size: 18px; }
  .heat, .heat-row { gap: 2px; }
  .heat-row { grid-template-columns: 20px repeat(24, minmax(0, 1fr)); }
  .heat-cell { height: 20px; border-radius: 3px; }
  .heat-hours { font-size: 11px; }
  .vbars { gap: 3px; height: 170px; }
  .vbar-value { font-size: 10.5px; }
  .vbar-label { font-size: 10.5px; }
  .hbars li { grid-template-columns: minmax(72px, 104px) minmax(0, 1fr) auto; gap: 8px; }
  .hbar-value { min-width: 0; font-size: 12.5px; }
}

/* 멤버 화면: 프로필이 아닌 탭에서는 맨 위 띠를 작게 (이름만) */
.hero.is-compact .hero-inner { padding-top: 22px; padding-bottom: 20px; }
.hero.is-compact .hero-id { gap: 16px; color: inherit; }
.hero.is-compact .hero-id:hover { text-decoration: none; }
.hero.is-compact .hero-id:hover .hero-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero.is-compact .hero-id .avatar { --size: 56px; font-size: 16px; }
.hero.is-compact .hero-title { gap: 2px; }
.hero.is-compact .hero-unit { font-size: 12.5px; }
.hero.is-compact .hero-name { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.hero.is-compact + main .tabs, .hero.is-compact ~ main .tabs { margin-bottom: 32px; }

@media (max-width: 720px) {
  /* 멤버 탭이 두 줄로 꺾이지 않게 옆으로 넘겨 */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; white-space: nowrap; }
  .hero.is-compact .hero-inner { padding-top: 16px; padding-bottom: 14px; }
  .hero.is-compact .hero-id .avatar { --size: 44px; font-size: 13px; }
  .hero.is-compact .hero-name { font-size: 24px; }
}

/* ==========================================================================
   관리 화면 유저 통계 (2026-11-11). 운영자만 봐. 계산은 src/admin/stats.ts
   ========================================================================== */
.admin-jump { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 18px; }
.admin-jump a { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.admin-jump a:hover { background: var(--mist); text-decoration: none; }
.section-head .range-switch { align-self: center; margin-left: auto; }
.range-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--mist); }
.range-switch a { padding: 3px 12px; border-radius: 999px; font-size: 13px; color: var(--slate); }
.range-switch a:hover { color: var(--ink); text-decoration: none; }
.range-switch a[aria-current='true'] { background: var(--paper); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(22, 23, 27, 0.08); }
.stat-head { margin: 32px 0 14px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.stat-pair.is-wide-first { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.stat-pair > .stat-block > .stat-head:first-child { margin-top: 4px; }
.section-head + .stat-pair > .stat-block > .stat-head:first-child { margin-top: 0; }
.stat-table + .stat-pair { margin-top: 12px; }
table.stat-table { min-width: 0; margin-top: 16px; }
.stat-note { margin-top: 14px; font-size: 12.5px; color: var(--slate); }
#visits .facts, #users .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* 값 칸 폭을 맞춰서 막대 길이를 줄끼리 견줄 수 있게 */
#sources .hbars li, #themes .hbars li { grid-template-columns: minmax(84px, 150px) minmax(0, 1fr) 112px; }
.bars.joins span { background: var(--bar); }
.bars.joins span.zero { background: var(--line); }
.bars.joins span.top { background: var(--key-ink); }
.stamp-top { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: stamp; }
.stamp-top li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: baseline; counter-increment: stamp; }
.stamp-top li::before { content: counter(stamp); grid-row: 1 / 3; font-size: 13px; font-weight: 700; color: var(--slate); }
.stamp-top li > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.stamp-top li > .sub { grid-column: 2; font-size: 12.5px; }
.stamp-top li > .num { grid-column: 3; grid-row: 1; font-size: 13.5px; font-weight: 650; }

@media (max-width: 720px) {
  .stat-pair, .stat-pair.is-wide-first { grid-template-columns: minmax(0, 1fr); }
  .stat-pair > .stat-block + .stat-block > .stat-head:first-child { margin-top: 32px; }
  .admin-jump a { padding: 4px 11px; }
  #sources .hbars li, #themes .hbars li { grid-template-columns: minmax(72px, 104px) minmax(0, 1fr) 92px; }
  #visits .facts, #users .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   최애 기준 (2026-11-13 피드백). 최애를 고른 팬에게만 붙는 모양
   - 백업: design-backup/v8-before-oshi-first
   ========================================================= */
/* 첫 화면 시간표 맨 위 "최애" 한 줄: 최애 옅은 색 바탕, 줄을 높게, 막대를 굵게 */
.db-group.is-oshi-group { --db-row: 58px; margin-bottom: 8px; border-top: 0; border-radius: 12px; background: var(--unit-tint); }
.db-group.is-oshi-group .db-unit { align-self: center; padding: 0 0 0 14px; font-size: 13px; }
.db-group.is-oshi-group .db-who { font-size: 15.5px; font-weight: 800; color: var(--unit-ink); }
.db-group.is-oshi-group .db-who .avatar { --size: 40px !important; --ring-gap: var(--unit-tint); font-size: 13px; }
.db-group.is-oshi-group .db-bar::before { height: 20px; margin-top: -10px; border-radius: 10px; }
.db-group.is-oshi-group .db-bar:hover::before { height: 24px; margin-top: -12px; border-radius: 12px; }
.db-group.is-oshi-group .db-label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.db-group.is-oshi-group .db-track { border-right: 0; }
.db-group.is-oshi-group + .db-group { border-top: 0; }
.db.has-now .db-group.is-oshi-group .db-track::before { background: color-mix(in srgb, var(--unit-tint) 55%, transparent); }
/* 오른쪽 위 방송 기록 한 편이 최애 방송일 때 */
.record.is-oshi { border-color: color-mix(in srgb, var(--unit) 60%, var(--line)); }
/* 방송 목록·순위에서 최애 방송 줄 (최애 옅은 색을 바탕과 반쯤 섞어서, 흐린 글자도 읽히게) */
body { --oshi-row: color-mix(in srgb, var(--key-tint) 55%, var(--paper)); }
.diary tr.is-oshi td { background: var(--oshi-row); }
.diary tr.is-oshi .sub, .diary tr.is-oshi .game, .diary tr.is-oshi .day span { color: var(--ink-2); }
.diary tr.is-oshi .c-member, .diary tr.is-oshi .c-member a { color: var(--key-ink); font-weight: 750; }
.rank-list li.is-oshi { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; background: var(--oshi-row); }
.rank-list li.is-oshi:first-child { padding-top: 12px; }
.rank-list li.is-oshi:last-child { padding-bottom: 12px; }
.rank-list li.is-oshi .rank-member { color: var(--key-ink); }
/* 머리 멤버 메뉴에서 최애 표시 */
.panel-oshi { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--key-tint); color: var(--key-ink); font-size: 11px; font-weight: 700; }
/* 내 스텔라북: 이 달 최애 방송 중 도장 */
.oshi-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 2px 0 16px; font-size: 14px; color: var(--ink-2); }
.oshi-progress b { font-weight: 750; color: var(--unit-ink); }
.oshi-progress-bar { flex: 1 1 160px; max-width: 280px; height: 6px; overflow: hidden; border-radius: 3px; background: var(--mist-2); }
.oshi-progress-bar span { display: block; height: 100%; border-radius: 3px; background: var(--unit); }
/* 도장 달력: 최애 도장은 맨 앞에 크게, 멤버 색 테두리 */
.stamp.is-oshi { margin: 4px 6px 4px 4px; }
.stamps .stamp.is-oshi .avatar { font-size: 13px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--unit); }
/* 도장 목록: 최애 방송은 자세히, 다른 멤버는 한 줄 */
.mark-row.is-oshi { align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--unit-tint); }
.mark-row.is-oshi .mark-title { font-size: 15.5px; white-space: normal; }
.mark-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--ink-2); }
.mark-row.is-small { gap: 10px; padding-left: 4px; }
.mark-row.is-small .mark-title { min-width: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.mark-row.is-small .avatar { font-size: 9px; }
/* 연표: 멤버 고르기 */
.tl-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; margin-top: 8px; }
.tl-pick-unit .unit-name { display: block; margin: 0 0 8px 8px; }
.tl-pick-unit ul { display: flex; flex-direction: column; gap: 2px; }
.tl-pick-member { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-md); }
.tl-pick-member:hover { text-decoration: none; background: var(--unit-tint); }
.tl-pick-member .avatar { grid-row: 1 / 3; }
.tl-pick-name { align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; }
.tl-pick-next { align-self: start; font-size: 12.5px; color: var(--slate); }
.tl-pick-next b { font-weight: 700; color: var(--unit-ink); }
/* 연표: 멤버 이름 제목과 다른 멤버로 바꾸기 */
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tl-head .oshi-tag { margin-left: 0; }
.tl-who { display: flex; gap: 8px 12px; margin-top: 16px; padding: 2px 2px 8px; overflow-x: auto; scrollbar-width: thin; }
.tl-who-unit { flex: none; display: flex; gap: 2px; }
.tl-who-unit + .tl-who-unit { padding-left: 12px; border-left: 1px solid var(--line-soft); }
.tl-who a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 50px; padding: 5px 0 4px; border-radius: 10px; font-size: 12px; color: var(--slate); }
.tl-who a:hover { text-decoration: none; background: var(--mist); color: var(--ink); }
.tl-who a[aria-current='page'] { background: var(--unit-tint); color: var(--unit-ink); font-weight: 750; }
.tl-who .avatar { font-size: 11px; }
@media (max-width: 860px) {
  .tl-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .db-group.is-oshi-group { --db-row: 50px; padding: 0 8px 4px; }
  .db-group.is-oshi-group .db-unit { padding: 8px 0 0; }
  .db-group.is-oshi-group .db-who { font-size: 14.5px; }
  .db-group.is-oshi-group .db-who .avatar { --size: 32px !important; }
  .db-group.is-oshi-group .db-bar::before { height: 16px; margin-top: -8px; border-radius: 8px; }
  .diary-list tbody tr.is-oshi { margin: 0 -10px; padding-right: 10px; padding-left: 56px; border-radius: 10px; background: var(--oshi-row); }
  .diary-list tbody tr.is-oshi td { background: none; }
  .diary-list tbody tr.is-oshi .c-day { left: 10px; }
  .stamp.is-oshi { margin: 3px 3px 3px 3px; }
  .stamps .stamp.is-oshi .avatar { --size: 28px !important; font-size: 10px; box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 3px var(--unit); }
  .mark-row.is-oshi { padding: 10px 12px; }
}
@media (max-width: 520px) {
  .tl-pick { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 374px) {
  .stamp.is-oshi { margin: 2px 1px; }
  .stamps .stamp.is-oshi .avatar { --size: 22px !important; font-size: 8px; box-shadow: 0 0 0 1px var(--paper), 0 0 0 2.5px var(--unit); }
}

/* =========================================================
   어두운 화면 (다크 모드)
   - <html> 에 dark 가 붙으면 켜져. 붙이는 건 Layout.tsx 의 THEME_SCRIPT:
     머리의 달/해 버튼으로 고른 게 있으면 그대로, 없으면 기기 설정(어두운 모드)을 따라가.
   - 바탕은 푸른 기 없는 중성 회색(#232326). 아카라이브 다크 모드처럼 검정보다 한 단계 밝게 (2026-11-13 "너무 어둡다" 의견).
     예전의 더 어두운 바탕(#15161a)은 design-backup/v9-dark-deep 에 있어.
   - 멤버·유닛 색은 theme.ts 가 어두운 화면용 값(--unit-d 등)을 같이 붙여 주고, 여기서 그쪽을 골라 써.
   - 색을 새로 쓸 때는 되도록 위 :root 의 변수(--paper, --ink, --mist, --line, --faint …)를 써 줘. 그러면 여기는 안 고쳐도 돼.
   ========================================================= */
html.dark {
  color-scheme: dark;
  --paper: #232326;
  --mist: #2b2b2f;
  --mist-2: #333337;
  --line: #3d3d42;
  --line-soft: #313135;
  --ink: #ececee;
  --ink-2: #c9c9ce;
  --slate: #a0a1a8;
  --live: #ff6b78;
  --live-tint: #3d2428;
  --link: #93b6ff;
  --unit: #55565d;
  --unit-ink: #c9c9ce;
  --unit-tint: #2b2b2f;
  --key: #45c6ab;
  --key-ink: #6fdac2;
  --key-tint: #223f38;
  --faint: #878890;
  --bar: #4b4b51;
  --ink-hover: #ffffff;
  --glass: rgba(35, 35, 38, 0.92);
  --float: #2d2d31;
  --float-line: #47474d;
  --float-shadow: rgba(0, 0, 0, 0.5);
}
/* 멤버·유닛 색, 최애 테마: 같이 붙어 있는 어두운 화면용 값으로 바꿔 (style 보다 앞서야 해서 !important) */
html.dark [style*='--unit-ink-d'] { --unit: var(--unit-d) !important; --unit-ink: var(--unit-ink-d) !important; --unit-tint: var(--unit-tint-d) !important; --accent: var(--unit-d) !important; }
html.dark body[style*='--key-d'] {
  --key: var(--key-d) !important; --key-ink: var(--key-ink-d) !important; --key-tint: var(--key-tint-d) !important; --accent: var(--key-d) !important; --oshi: var(--key-d) !important;
  --hdr-bg: var(--hdr-bg-d) !important; --hdr-fg: var(--hdr-fg-d) !important; --hdr-ink: var(--hdr-ink-d) !important; --hdr-line: var(--hdr-line-d) !important; --hdr-hover: var(--hdr-hover-d) !important;
  --chip-bg: var(--chip-bg-d) !important; --chip-fg: var(--chip-fg-d) !important; --chip-line: var(--chip-line-d) !important;
}
html.dark .tone-btn[style] { --tb-bg: var(--tb-bg-d) !important; --tb-fg: var(--tb-fg-d) !important; --tb-line: var(--tb-line-d) !important; }
html.dark .tone-btn:hover { filter: brightness(1.12); }
html.dark .has-oshi .search input { background: rgba(0, 0, 0, 0.26); }
html.dark .tone-deep .search input { background: rgba(35, 35, 38, 0.86); }
html.dark .has-oshi .search input:focus { background: var(--paper); }
/* 글자와 선 */
html.dark .hero-meta a { text-decoration-color: rgba(236, 237, 240, 0.3); }
html.dark .live-bar:hover { background: #55282f; }
html.dark .notice { background: #3b321b; color: #efdcaa; }
html.dark .plus, html.dark .sg-add { color: #6fd0a0; }
html.dark .sg-remove { color: #ff8a94; }
html.dark .track .shared { background: rgba(141, 177, 255, 0.12); }
html.dark .db.has-now .db-track::before { background: rgba(35, 35, 38, 0.55); }
html.dark .db-tip .num { color: rgba(35, 35, 38, 0.68); }
html.dark .range-switch a[aria-current='true'] { background: #3e3e44; box-shadow: none; }
html.dark .edit-form textarea:focus, html.dark .edit-form input:focus, html.dark .new-doc input:focus { box-shadow: 0 0 0 3px rgba(141, 177, 255, 0.2); }
/* 썸네일 */
html.dark .cover img { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
html.dark .cover-tag { background: rgba(35, 35, 38, 0.88); }
html.dark .film-poster .cover { box-shadow: 0 0 0 4px var(--paper), 0 10px 30px rgba(0, 0, 0, 0.5); }
/* 썸네일이 없을 때 까는 색 여덟 가지 */
html.dark .tone-0 { background: #283244; --tone-ink: #9db6dc; }
html.dark .tone-1 { background: #383024; --tone-ink: #d9b88a; }
html.dark .tone-2 { background: #26372d; --tone-ink: #9bcdb0; }
html.dark .tone-3 { background: #3a2b36; --tone-ink: #dba6c6; }
html.dark .tone-4 { background: #2f2e45; --tone-ink: #b5abea; }
html.dark .tone-5 { background: #383322; --tone-ink: #d6c086; }
html.dark .tone-6 { background: #24363a; --tone-ink: #97c6d2; }
html.dark .tone-7 { background: #313137; --tone-ink: #b4b8c6; }
/* 연표 분류 꼬리표 */
html.dark .cat-debut { background: #25334f; color: #9dbcf5; }
html.dark .cat-music { background: #332b50; color: #c0a8f6; }
html.dark .cat-live { background: #1f3d36; color: #76d6c0; }
html.dark .cat-stream { background: #44301b; color: #f0b47a; }
html.dark .cat-goods { background: #3c341b; color: #dcc068; }
html.dark .cat-birthday { background: #472639; color: #f59cc6; }
html.dark .cat-anniversary { background: #2e3d1b; color: #a9d67a; }
/* 사이트 안내 */
html.dark .guide-mark rect { fill: #38383e; }
html.dark .guide-step:hover:not(.is-done) span { background: #58585f; }
html.dark .guide.is-last .guide-next:hover { background: #8be3ce; }
html.dark .guide-stage { background: var(--stage-d); }
html.dark .guide-stage .ga-panel, html.dark .guide-stage .ga-record { background: #2a2a2e; box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.6); }
html.dark .gb-bar { background: var(--c-d); }
html.dark .gt-head { background: var(--h-bg-d); color: var(--h-fg-d); border-color: var(--h-line-d); }
html.dark .gt-fan { background: var(--f-bg-d); color: var(--f-fg-d); border-color: var(--f-line-d); }
html.dark .orbit-rings circle { opacity: 0.38; }
