  :root {
    --bg: #ffffff;
    --card: #ffffff;
    --ink: #0c0d0f;
    --ink-soft: #1f2227;
    --muted: #6b7079;
    --muted-soft: #9499a1;
    --faint: #c8ccd2;
    --line: rgba(13, 17, 23, 0.08);
    --line-strong: rgba(13, 17, 23, 0.14);
    --frame: #ffffff;
    --surface-soft: #f7f8fb;
    --surface-muted: #f8fafc;
    --surface-input: #f8fafc;
    --topbar: rgba(255,255,255,0.94);
    --story-strip: rgba(255,255,255,0.78);
    --chip-bg: #f3f6fa;
    --inverse: #0c0d0f;
    --inverse-ink: #ffffff;
    --app-shadow: 0 18px 40px -34px rgba(0,0,0,0.45);
    --tap-highlight: rgba(12,13,15,0.08);
    --best-bg: rgba(255, 214, 102, 0.08);
    --best-border: rgba(122, 90, 0, 0.09);
    --best-ink: #8a6500;
    --trust-soft: color-mix(in srgb, #2f67d8 8%, var(--card));
    --trust-line: color-mix(in srgb, #2f67d8 26%, var(--line));
    --hot: #ed4956;       /* like red */
    --live-signal: #24d8c7;
    --accent: #1D6FE5;    /* D8.1-DYN 단일 브랜드 강조 — 값은 런타임에 응원팀 색으로
       동적 치환(정의점 = reference-ui.js applyTeamAccent 1곳, 표면은 var(--accent)만
       참조). 이 :root 값 = 팀 미선택/팀색 미상/손상 시 *중립 폴백*(D8.1-DYN DA — 비네온
       블루, prob-5 색상충돌 0, 라이트페이퍼 정합). 앱 통틀어 동시 강조색 정확히 1개. */
    /* D8.1-DYN 진행바 채움 전용 그라데 엔드포인트 — 값=응원팀(applyTeamAccent가 치환).
       팀 진척 트랙 전용(D1.2-STEP 분담): prob 5단 노드 의미색(--prob-*)과 *비공유*.
       이 :root 값 = 폴백(teamtheme DEFAULT_TEAM_THEME = 비네온 블루 그라데). */
    --team-grad-from: #3B86F0;
    --team-grad-to:   #1D6FE5;
    --stage-grad-start: #635BFF;
    --stage-grad-mid:   #C45BBF;
    --stage-grad-end:   #76A9FA;
    /* ── DOCTRINE_2-2 D1.2 · 0티어 이적확률 5단계 색 척도 [LOCKED A: 순서 빨→초 불변] ──
       바인딩 하드 불변량(위반=즉시 되돌림): 이 색은 #2-4 src/saga/signifier.js
       transferProbabilityRung() 증류 출력 {rung,key} 에만 입힌다.
       신뢰/달/effectiveTrust/confidence 등 신뢰 채널엔 절대 결합 금지
       (신뢰 = 달 글리프 🌕→🌑 전용 채널 / 확률 = 이 5단계 색 전용 채널).
       색칠한 달 ✗ · 색으로 신뢰 표현 ✗ · 두 채널 한 요소 공유 ✗.
       HEX = [CRAFT] 권고값. 라이트 페이퍼 대비 내 미세조정 가능(5단 식별성+순서 유지). */
    --prob-1-ssul:     #E5484D; /* 1 썰     출처 약함·근거 희박 */
    --prob-2-maybe:    #F76B15; /* 2 가능성  복수 약신호 */
    --prob-3-likely:   #F5D90A; /* 3 유력    신뢰 소스 등장 */
    --prob-4-imminent: #9BD323; /* 4 임박    다수 고신뢰 정렬 */
    --prob-5-official: #30A46C; /* 5 오피셜  확정 */
    /* ── DOCTRINE_2-2 D8 무결성 토큰 — 카드 라운드 2단 스케일 + 얕은 1계열 그림자.
       임의 radius/그림자 ✗ (BRIEF §5 무관용 · #2-2 r9 해소). 카드류에만 바인딩. */
    --radius-card: 12px;   /* 반복 카드 — 피드 row · 사가 카드 · 자랑카드 */
    --radius-shell: 14px;  /* 전체 셸 — 기사상세 등 */
    --shadow-card: 0 1px 3px -1px rgba(13,17,23,0.08); /* 잉크 얕은 = 구획(전시물 ✗) */
    /* DOCTRINE_2-2 D8 자간 토큰 — 한 타입패밀리 내 일관(임의값 ✗). 음수 타이트군 통합. */
    --tracking-tight: -0.02em; /* 디스플레이/대형·강한 타이트 */
    --tracking-snug:  -0.01em; /* 본문/라벨 약타이트 */
    /* DOCTRINE_2-2 D8.2 B — 바텀시트 잉크 그림자(은은·드라마틱 ✗, 승강감=백드롭 딤). */
    --shadow-sheet: 0 -1px 3px -1px rgba(13,17,23,0.12);
    /* DOCTRINE_2-2 D8.3 양수 트래킹 — 캡스/라벨/키커/탭/버튼 전용(한글 본문 ✗=0). */
    --tracking-wide:   0.04em; /* 캡스 라벨·탭·뱃지·버튼 (0.02·0.04군) */
    --tracking-wider:  0.12em; /* 강한 키커·스페이스드 캡스 (0.08·0.12·0.14군) */
    --tracking-widest: 0.18em; /* 초소형 올캡스 장식 아이브로 (0.16·0.18·0.2군) */
    --side-gutter: 0px; /* 사용자 직접: 양옆 빈 띠 = 정보밀도만 깎음 → 완전 제거(엣지투엣지·펨코 밀도 D1.1) */
    --lab-font-scale: 1;
    --lab-story-tile: 42px;
    --lab-story-column: 54px;
    --home-feed-width: 98%;
    /* Header/story rail shape contract: macOS Dock-like app tile + system red badge. */
    --apple-icon-radius: calc(var(--lab-story-tile) * 0.255);
    --dock-badge-red: #ff3b30;
    --dock-badge-size: 17px;
    --dock-badge-pad: 5px;
    --dock-badge-offset: 38%;
    --dock-icon-shadow:
      0 0.75px 1.5px rgba(13,17,23,0.10),
      0 6px 12px -11px rgba(13,17,23,0.24),
      inset 0 0.5px 0 rgba(255,255,255,0.52),
      inset 0 -0.5px 0 rgba(13,17,23,0.08);
    --dock-icon-rim:
      linear-gradient(135deg, rgba(255,255,255,0.58), rgba(255,255,255,0.08) 44%, rgba(13,17,23,0.14));
    --dock-icon-rim-opacity: 0.54;
    --lab-card-gap: 8px;
    --app-vh: 100vh;
    --system-safe-top: env(safe-area-inset-top, 0px);
    --system-safe-right: env(safe-area-inset-right, 0px);
    --system-safe-bottom: env(safe-area-inset-bottom, 0px);
    --system-safe-left: env(safe-area-inset-left, 0px);
    --status-height: 44px;
    --bottom-nav-height: 64px;
    --tap-target: 44px;
  }
  html[data-theme="dark"] {
    --bg: #050505;
    --card: #181818;
    --ink: #f5f5f5;
    --ink-soft: #dfdfdf;
    --muted: #b3b3b3;
    --muted-soft: #7d7d7d;
    --faint: #626262;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.17);
    --frame: #000000;
    --surface-soft: #202020;
    --surface-muted: #242424;
    --surface-input: #202020;
    --topbar: rgba(0, 0, 0, 0.82);
    --story-strip: rgba(18, 18, 18, 0.74);
    --chip-bg: #282828;
    --inverse: #ffffff;
    --inverse-ink: #000000;
    --app-shadow: none;
    --tap-highlight: rgba(255,255,255,0.1);
    --best-bg: rgba(255, 214, 102, 0.055);
    --best-border: rgba(255, 214, 102, 0.1);
    --best-ink: #ffd666;
    --hot: #ff4d5f;
  }
  html[data-theme="light"] { color-scheme: light; }
  html[data-theme="dark"] { color-scheme: dark; }
  * { box-sizing: border-box; }
  html {
    min-height: 100%;
    background: var(--bg);
    color-scheme: light dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: var(--app-vh);
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 30px 16px;
    font-size: calc(14px * var(--lab-font-scale));
    overflow: auto;
    overscroll-behavior: none;
    touch-action: manipulation;
  }
  button,
  input,
  textarea,
  select,
  a {
    -webkit-tap-highlight-color: var(--tap-highlight);
  }
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  textarea[data-autogrow] {
    field-sizing: content;
    resize: none;
    overflow-y: hidden;
  }
  button,
  [role="button"],
  input,
  textarea {
    touch-action: manipulation;
  }
  .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

  /* ---------- Phone frame ---------- */
  .phone {
    width: 390px;
    height: min(844px, calc(var(--app-vh) - 60px));
    min-height: 720px;
    background: var(--frame);
    border-radius: 46px;
    overflow: hidden;
    position: relative;
    box-shadow:
      0 0 0 9px #0c0d0f,
      0 0 0 10px #2a2a2a,
      0 36px 90px -30px rgba(0,0,0,0.4),
      0 18px 36px -18px rgba(0,0,0,0.18);
    isolation: isolate;
    contain: layout paint style;
  }
  .notch {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 28px;
    background: #0c0d0f;
    border-radius: 999px;
    z-index: 200;
  }
  .status-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: var(--status-height);
    padding:
      14px
      max(32px, calc(var(--system-safe-right) + 32px))
      0
      max(32px, calc(var(--system-safe-left) + 32px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
    color: var(--ink);
    pointer-events: none;
  }
  .status-bar .right {
    display: flex; gap: 5px; align-items: center;
  }
  .status-bar svg { width: 16px; height: 11px; }

  .app {
    position: absolute;
    inset: 0;
    padding-top: var(--status-height);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* ---------- Top bar ---------- */
  .top {
    flex-shrink: 0;
    padding: 7px 14px 5px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: var(--frame);
    border-bottom: 0;
    z-index: 50;
    position: relative;
    min-height: 36px;
  }
  .brand-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
  }
  .brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    line-height: 1;
  }
  .top-update-time {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: var(--live-signal);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    font-family: inherit;
    text-transform: uppercase;
  }
  .top-update-time i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
    flex: 0 0 7px;
  }
  .top-update-time span,
  .top-update-time em {
    font-size: 10.5px;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0;
  }
  .top-update-time em {
    color: color-mix(in srgb, currentColor 76%, var(--muted));
    transform: translateY(-0.5px);
  }
  .top-update-time b {
    color: inherit;
    font-size: 11px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
  }
  .top-with-match-mode .top-update-time {
    transform: translateY(-50%) scale(0.84);
    transform-origin: right center;
  }
  .match-mode-switch {
    width: 154px;
    min-height: 30px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-muted);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }
  .top-match-mode {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .match-mode-switch button {
    min-width: 0;
    min-height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }
  .match-mode-switch button.on {
    background: var(--inverse);
    color: var(--inverse-ink);
  }
  .live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    background: rgba(13,17,23,0.04);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0; /* D8.3-add ⓒ — 정적 Latin 미확인(렌더경로 미검출) → 기본 0 */
    color: var(--ink-soft);
    white-space: nowrap;
  }
  .live-pulse {
    width: 6px; height: 6px;
    background: #44e58e;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
  }
  .live-pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #44e58e;
    opacity: 0;
    animation: livePulse 1.8s ease-out infinite;
  }
  @keyframes livePulse {
    0%   { transform: scale(0.5); opacity: 0.9; }
    100% { transform: scale(2);   opacity: 0; }
  }
  .top-actions { display: flex; gap: 6px; align-items: center; }

  .top-icon {
    position: relative;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    cursor: pointer;
    color: var(--ink);
    transition:
      color 0.25s ease,
      background 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease;
  }
  .top-icon svg { width: 18px; height: 18px; }
  .top-icon .badge {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--hot);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    display: grid; place-items: center;
    border: 2px solid var(--frame);
    transition: background 0.09s ease, box-shadow 0.09s ease, color 0.09s ease;
  }
  /* alert state */
  .top-icon.alert {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--card));
    border-color: var(--accent);
    box-shadow: none; /* D8② 글로우 제거 — alert는 색/배경/보더로(네온 색 ④ #2-2 r13 대기) */
  }
  .top-icon.alert .icon-fill { opacity: 1; }
  .top-icon.alert .badge {
    background: var(--accent);
    color: #fff;
    box-shadow: none; /* D8② 글로우 제거 */
  }
  .top-icon.shake {
    animation: bellShake 0.7s cubic-bezier(.36, .07, .19, .97);
  }
  @keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50% { transform: rotate(-13deg); }
    20%, 40%, 60% { transform: rotate(13deg); }
    70% { transform: rotate(-6deg); }
    80% { transform: rotate(6deg); }
  }
  .bell-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 49;
  }
  .bell-rings .ring {
    position: absolute;
    top: 19px; left: 50%;
    width: 38px; height: 38px;
    margin-left: -19px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0;
  }
  .bell-rings.on .ring {
    animation: bellRing 1.7s ease-out infinite;
  }
  .bell-rings.on .ring:nth-child(2) { animation-delay: 0.55s; }
  .bell-rings.on .ring:nth-child(3) { animation-delay: 1.1s; }
  @keyframes bellRing {
    0%   { transform: scale(0.8); opacity: 0.6; }
    80%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
  }

  /* ---------- 상단 레일 = Weverse 구조 차용 / 축구앱 조밀 정보량 ----------
     밝은 모드 헤더 전용: 흰 라운드 카드 안에 6개 조밀 타일. 선택=팀색 링,
     새소식=숫자 배지. 확률색·달 신뢰 채널은 쓰지 않는다. */
  /* Product constitution: the left lane is the only horizontal swipe surface.
     The right `+` lane is a protected fixed action and must never become a
     scroll item, overlay, or column shared with followed entities. */
  .stories-card {
    margin: 5px 12px 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--lab-story-column);
    align-items: start;
    column-gap: 6px;
    box-sizing: border-box;
    padding:
      var(--story-rail-pad-top)
      var(--story-rail-pad-x)
      var(--story-rail-pad-bottom)
      var(--story-rail-pad-x);
    --story-rail-pad-x: 10px;
    --story-rail-pad-top: 4px;
    --story-rail-pad-bottom: 9px;
    --story-rail-add-gap: 6px;
    --story-badge-clearance: 7px;
  }
  .stories {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--lab-story-column);
    gap: var(--story-rail-add-gap);
    justify-content: start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding:
      var(--story-rail-pad-top)
      var(--story-rail-pad-x)
      var(--story-rail-pad-bottom)
      var(--story-rail-pad-x);
    scroll-padding-inline: var(--story-rail-pad-x);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    position: relative;
    z-index: 1;
  }
  .stories-card > #stories {
    padding: 0;
    scroll-padding-inline: 0;
  }
  .stories::-webkit-scrollbar { display: none; }
  .story {
    background: transparent; border: 0; padding: 0;
    cursor: pointer;
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    scroll-snap-align: start;
  }
  .story-tile {
    position: relative;
    width: var(--lab-story-tile); height: var(--lab-story-tile);
    border-radius: var(--apple-icon-radius);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    overflow: visible;
    transition: transform 0.09s ease, border-color 0.09s ease, box-shadow 0.09s ease;
  }
  .story-tile {
    box-shadow: var(--dock-icon-shadow);
  }
  .story-tile::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--apple-icon-radius) + 1px);
    pointer-events: none;
    padding: 1px;
    background: var(--dock-icon-rim);
    opacity: var(--dock-icon-rim-opacity);
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 3;
  }
  .story-media {
    width: 100%;
    height: 100%;
    border-radius: var(--apple-icon-radius);
    clip-path: inset(0 round var(--apple-icon-radius));
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 20px;
  }
  .story-tile img { width: 100%; height: 100%; object-fit: cover; }
  .story-glyph { line-height: 1; transform: translateY(1px); }
  .story-initials {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
  }
  .story-media .entity-avatar,
  .story-media .asset-fallback {
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }
  .story-badge {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 15px; height: 15px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 9px; font-weight: 800;
    display: grid; place-items: center;
    border: 2px solid var(--card);
    line-height: 1;
    z-index: 4;
  }
  .story-dock-badge,
  #stories .story-alert-badge {
    top: 0;
    right: 0;
    min-width: var(--dock-badge-size);
    height: var(--dock-badge-size);
    padding: 0 var(--dock-badge-pad);
    transform: translate(var(--dock-badge-offset), calc(-1 * var(--dock-badge-offset)));
    border: 0;
    background: var(--dock-badge-red);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow:
      0 1px 2px rgba(0,0,0,0.24),
      inset 0 0.5px 0 rgba(255,255,255,0.28);
  }
  #stories .story.on .story-tile {
    transform: translateY(-1px);
    border-color: var(--accent);
    box-shadow: var(--dock-icon-shadow), 0 0 0 2px var(--accent);
  }
  .story-name {
    font-size: 9px;
    line-height: 1.05;
    font-weight: 700;
    color: var(--ink-soft);
    max-width: var(--lab-story-column);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .story.on .story-name { font-weight: 800; color: var(--ink); }
  .story.has-new .story-name { color: var(--ink); }
  /* 팔로우 추가(LOCKED B / D10.3·§6) — 엔티티 아님(점선 무채 "추가" 어포던스). */
  .story-add-tile {
    background:
      linear-gradient(var(--card), var(--card)) padding-box,
      linear-gradient(135deg, var(--stage-grad-start), var(--stage-grad-mid) 52%, var(--stage-grad-end)) border-box;
    border: 1px solid transparent;
    color: var(--stage-grad-mid);
  }
  .story-add-plus-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--stage-grad-start) 20%, transparent));
  }
  .story-add .story-name { color: var(--muted); }
  .story-add-fixed {
    position: static;
    width: var(--lab-story-column);
    z-index: 8;
    justify-self: end;
  }
  .stories-card .story {
    padding-top: var(--story-badge-clearance);
  }
  .story-priority-chip {
    min-width: 0;
  }
  .league-stories-card {
    margin: 6px 0 9px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }
  .league-stories {
    grid-auto-columns: 63px;
    gap: 6px;
    padding: 9px 10px 8px;
  }
  .league-story .story-tile {
    background: var(--surface-soft);
  }
  .league-story-media img,
  .league-story-media .asset-fallback {
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
    padding: 4px;
    background: #fff;
  }
  .league-story .story-name {
    max-width: 63px;
  }

  .design-block-stack {
    display: grid;
    gap: var(--lab-card-gap);
    width: 100%;
    min-width: 0;
  }
  .design-block-stack-afterStories {
    flex-shrink: 0;
    margin: 0 12px 8px;
  }
  .design-home-block {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--lab-block-bg, var(--card));
    color: var(--ink);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    text-decoration: none;
  }
  .design-home-block.banner,
  .design-home-block.link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
  }
  .design-home-block.banner {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .design-home-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--lab-block-color, var(--accent));
    background: color-mix(in srgb, var(--lab-block-color, var(--accent)) 11%, var(--card));
    border: 1px solid color-mix(in srgb, var(--lab-block-color, var(--accent)) 24%, var(--line));
  }
  .design-home-icon svg { width: 18px; height: 18px; }
  .design-home-block strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: calc(13px * var(--lab-font-scale));
    font-weight: 900;
    color: var(--ink);
  }
  .design-home-block p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: calc(11px * var(--lab-font-scale));
    line-height: 1.35;
  }
  .design-home-block.image {
    display: grid;
    gap: 9px;
    padding: 10px;
  }
  .design-home-image {
    display: block;
    width: 100%;
    height: 142px;
    border-radius: calc(var(--radius-card) - 2px);
    object-fit: cover;
    background: var(--surface-muted);
  }
  .design-home-fallback {
    display: grid;
    place-items: center;
    gap: 4px;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
  }
  .design-home-spacer {
    height: var(--lab-spacer);
    display: grid;
    align-items: center;
  }
  .design-home-spacer span {
    display: block;
    height: 1px;
    background: color-mix(in srgb, var(--lab-block-color, var(--accent)) 36%, var(--line));
  }

  /* ---------- Scroll regions ---------- */
  .scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: max(18px, var(--system-safe-bottom));
  }
  .scroll::-webkit-scrollbar { display: none; }
  .home-scroll {
    position: relative;
    --pull-distance: 0px;
    --pull-indicator-y: -18px;
    --pull-progress: 0.18;
    touch-action: pan-y;
  }
  .pull-refresh-indicator {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(var(--pull-indicator-y)) scale(0.96);
    transform-origin: center;
    color: var(--live-signal);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.12s ease, transform 0.18s ease;
  }
  .pull-refresh-orb {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
  }
  .pull-refresh-track {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--stage-grad-start), var(--stage-grad-mid) 56%, var(--stage-grad-end));
    transform: scaleX(var(--pull-progress));
    transform-origin: left center;
    opacity: 0.88;
  }
  .home-feed {
    transition: transform 0.22s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
  }
  .home-scroll.is-pulling .pull-refresh-indicator,
  .home-scroll.is-refreshing .pull-refresh-indicator,
  .home-scroll.is-complete .pull-refresh-indicator {
    opacity: 1;
  }
  .home-scroll.is-pulling .pull-refresh-indicator {
    transition: none;
  }
  .home-scroll.is-ready .pull-refresh-orb {
    transform: scale(1.18);
  }
  .home-scroll.is-pulling .home-feed {
    transition: none;
    transform: translateY(var(--pull-distance));
  }
  .home-scroll.is-refreshing .pull-refresh-indicator,
  .home-scroll.is-complete .pull-refresh-indicator {
    transform: translateY(4px) scale(1);
  }
  .home-scroll.is-refreshing .home-feed,
  .home-scroll.is-complete .home-feed {
    transform: translateY(44px);
  }
  .home-scroll.is-refreshing .pull-refresh-orb {
    animation: pullRefreshPulse 0.7s ease-in-out infinite;
  }
  .home-scroll.is-complete .pull-refresh-orb {
    background: linear-gradient(135deg, var(--stage-grad-start), var(--stage-grad-mid) 52%, var(--stage-grad-end));
    animation: none;
  }
  @keyframes pullRefreshPulse {
    0%, 100% { transform: scale(0.82); opacity: 0.6; }
    50% { transform: scale(1.18); opacity: 1; }
  }

  /* ---------- Feed ---------- */
  /* DOCTRINE_2-2 D1.1 인스타앵커 리스킨 — 8그리드 호흡 / 펨코 밀도 유지(성김 ✗). */
  .feed-list {
    padding: 8px var(--side-gutter) 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--lab-card-gap);
    width: var(--home-feed-width);
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
  }
  .home-feed {
    padding-top: 2px;
  }
  .home-feed > .row,
  .home-feed > .saga-rail,
  .home-feed > .design-block-stack,
  .home-feed > .empty {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--card);
    border-radius: var(--radius-card);  /* D8 카드 라운드 토큰 */
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);     /* D8 얕은 그림자 토큰(구획) */
    padding: 12px 14px;                 /* D1.1 8그리드 호흡 · 펨코 밀도 유지 */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.09s ease;   /* D1.1 LOCKED 마이크로모션 ≤0.1s */
  }
  .row:active { transform: scale(0.995); }
  .row::before {
    content: "";
    position: absolute;
    left: 0; top: 11px; bottom: 11px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--stripe, #d2d5d9);
  }
  .row[data-moon="5"] { --stripe: #0c0d0f; }
  .row[data-moon="4"] { --stripe: #54585f; }
  .row[data-moon="3"] { --stripe: #95989f; }
  .row[data-moon="2"] { --stripe: #c3c6cc; }
  .row[data-moon="1"] { --stripe: #e0e2e6; }
  .row.notify { --stripe: var(--hot); }

  .row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
  }
  .src {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .src em {
    font-style: normal;
    color: var(--muted);
    font-weight: 500;
    font-size: 11.5px;
    margin-left: 4px;
  }
  .info-btn {
    background: transparent;
    border: 0;
    padding: 0 2px;
    margin-left: 3px;
    color: var(--faint);
    cursor: pointer;
    vertical-align: -2px;
    line-height: 1;
  }
  .info-btn svg { width: 13px; height: 13px; }
  .info-btn:hover, .info-btn:active { color: var(--muted); }
  .row .time {
    font-size: 10.5px;
    color: var(--muted);
    font-family: ui-monospace, monospace;
    flex-shrink: 0;
  }
  .row .title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: var(--tracking-snug);
    color: var(--ink);
    margin: 1px 0 4px;
    word-break: keep-all;
  }
  .row-desc {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.42;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .row .body {
    font-size: 12px;
    line-height: 1.48;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 7px;
    word-break: keep-all;
  }
  .row-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 11.5px;
  }
  .row-foot button {
    background: transparent; border: 0; padding: 0;
    color: inherit; cursor: pointer; font-size: inherit;
    font-family: inherit;
    display: inline-flex; align-items: center; gap: 4px;
    transition: color 0.09s;
  }
  .row-foot svg {
    width: 16px; height: 16px;
    transition: transform 0.09s;
  }
  .row-foot .heart-btn .icon-fill { transition: opacity 0.09s; }
  .row-foot .heart-btn.liked { color: var(--hot); }
  .row-foot .heart-btn.liked .icon-fill { opacity: 1; }
  .row-foot .heart-btn.pop svg {
    animation: heartPop 0.5s cubic-bezier(.2, 1.2, .4, 1);
  }
  @keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(0.82); }
    55% { transform: scale(1.28); }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
  }
  .row-foot .topic {
    margin-left: auto;
    padding: 2px 7px;
    background: var(--chip-bg);
    border-radius: 4px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 600;
  }

  /* ---------- C (Bare) card variant + AD-2 (Native) ---------- */
  .row .meta-line {
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 4px;
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .row .meta-line .src-inline {
    font-weight: 700;
    color: var(--ink);
    font-size: 11.5px;
    white-space: nowrap;
  }
  .row .meta-line .info-btn { margin-left: 1px; vertical-align: -2px; }
  .row .meta-line .dot-sep {
    width: 2.5px; height: 2.5px;
    background: var(--muted-soft);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .row .meta-line .time-inline {
    white-space: nowrap;
    color: var(--muted);
    font-family: ui-monospace, monospace;
    font-size: 10px;
  }
  .row .bare-foot {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 11px;
  }
  .row .bare-foot button {
    background: transparent; border: 0; padding: 0;
    color: inherit; cursor: pointer; font-family: inherit;
    font-size: inherit;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .row .bare-foot svg { width: 14px; height: 14px; }
  .row .bare-foot .heart-btn .icon-fill { transition: opacity 0.09s; }
  .row .bare-foot .heart-btn.liked { color: var(--hot); }
  .row .bare-foot .heart-btn.liked .icon-fill { opacity: 1; }
  .row .bare-foot .heart-btn.pop svg {
    animation: heartPop 0.5s cubic-bezier(.2, 1.2, .4, 1);
  }
  .row .bare-foot .topic {
    margin-left: auto;
    padding: 2px 7px;
    background: var(--chip-bg);
    border-radius: 4px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 600;
  }
  .row .bare-foot .origin-link {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
  }
  .density-compact .row-desc {
    -webkit-line-clamp: 1;
  }
  .density-detail .row-desc {
    -webkit-line-clamp: 3;
  }

  .article-scroll {
    padding-top: 8px;
  }
  /* DOCTRINE_2-2 D1.1 — 기사상세 카드 셸: 피드 카드와 동일 표면 언어
     (중간 라운드·얕은 그림자=구획이지 전시물 ✗·8그리드) = 무결성 일관성. */
  .article-full {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-shell); /* D8 셸 라운드 토큰 */
    padding: 14px 14px 16px;
    box-shadow: var(--shadow-card);     /* D8 얕은 그림자 토큰(구획) */
  }
  .article-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .article-back {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--ink);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
  }
  .article-back svg {
    width: 16px;
    height: 16px;
  }
  .article-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
  }
  .article-kicker strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .article-kicker span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .article-card-head em {
    font-style: normal;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 850;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .article-full h1 {
    margin: 14px 0 10px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.14;
    letter-spacing: 0;
    font-weight: 950;
    word-break: keep-all;
  }
  .article-summary {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    word-break: keep-all;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
  }
  .article-body {
    padding-top: 0;
    border-top: 0;
  }
  .article-body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.76;
    font-weight: 520;
    word-break: keep-all;
  }
  .article-body p + p {
    margin-top: 8px;
  }
  .article-trust {
    margin-top: 12px;
    padding: 10px 11px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
  }
  .article-trust svg {
    width: 14px;
    height: 14px;
    color: #2f67d8;
    margin-top: 1px;
  }
  .article-actions {
    margin-top: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    min-height: 46px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 850;
  }
  .article-actions button,
  .article-actions a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
  }
  .article-actions svg {
    width: 15px;
    height: 15px;
  }
  .article-actions .heart-btn.liked {
    color: var(--hot);
  }
  .article-actions .heart-btn.liked .icon-fill {
    opacity: 1;
  }
  .article-actions a {
    margin-left: auto;
    color: var(--ink-soft);
  }
  .article-comments {
    margin-top: 9px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
  }
  .article-comments header {
    padding: 12px 13px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .article-comments header strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
  }
  .article-comments header span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
  .article-comment-box {
    margin: 0 12px 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-muted);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 6px;
  }
  .article-comment-box textarea {
    min-width: 0;
    width: 100%;
    min-height: 28px;
    max-height: 92px;
    border: 0;
    background: transparent;
    outline: none;
    padding: 6px 7px;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.38;
    resize: none;
  }
  .article-comment-box textarea::placeholder { color: var(--muted); }
  .article-comment-box button {
    height: 28px;
    border-radius: 999px;
    border: 0;
    background: var(--inverse);
    color: var(--inverse-ink);
    padding: 0 11px;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
  }
  .article-comment-list {
    display: grid;
  }
  .article-best-comments {
    display: grid;
    margin: 0;
  }
  .article-best-comments .article-comment {
    border-top-color: var(--best-border);
  }
  .article-comment {
    padding: 10px 13px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 5px;
  }
  .article-comment.local {
    background: var(--surface-soft);
  }
  .article-comment.best-pinned {
    background: var(--best-bg);
  }
  .article-comment-head,
  .article-comment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .article-comment-actions {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .article-comment strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
  }
  .article-comment-head span {
    background: var(--best-bg);
    color: var(--best-ink);
    border: 1px solid var(--best-border);
    border-radius: 999px;
    padding: 1px 5px;
    font-size: 8px;
    font-weight: 900;
  }
  .article-comment p {
    margin: 0;
    color: var(--ink);
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 700;
    word-break: keep-all;
    white-space: pre-wrap;
  }
  .article-comment button {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--muted);
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
  }
  .article-comment button svg {
    width: 12px;
    height: 12px;
  }
  .article-comment button.liked {
    color: var(--hot);
  }
  .article-comment .reply-toggle {
    color: var(--muted);
    font-size: 10.5px;
  }
  .article-comment .reply-toggle[aria-expanded="true"] {
    color: var(--ink-soft);
  }
  .article-replies {
    margin-top: 2px;
    margin-left: 18px;
    padding-left: 11px;
    border-left: 1px solid var(--line);
    display: grid;
    gap: 8px;
  }
  .article-reply {
    display: grid;
    gap: 3px;
  }
  .article-reply strong {
    font-size: 11.5px;
  }
  .article-reply p {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.42;
    font-weight: 650;
  }
  .article-reply span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  /* AD-2 Native — 카드 외피 그대로, 우상단 AD 라벨만 */
  .row.ad-native::before {
    background: #c8ccd2;
  }
  .row.ad-native .meta-line {
    justify-content: space-between;
  }
  .row.ad-native .meta-line .src-inline em {
    font-style: normal;
    color: var(--muted);
    font-weight: 500;
    font-size: 10.5px;
    margin-left: 3px;
  }
  .row.ad-native .ad-lbl {
    font-size: 8.5px;
    letter-spacing: var(--tracking-widest); /* D8.3 "AD" Latin 캡스 */
    color: var(--muted-soft);
    font-family: ui-monospace, monospace;
    font-weight: 700;
  }
  .row.ad-native .ad-desc {
    font-size: 11px;
    color: var(--ink-soft);
    line-height: 1.45;
    margin-top: 4px;
  }
  .row.home-fixed-ad {
    border-color: transparent;
    background:
      linear-gradient(var(--card), var(--card)) padding-box,
      linear-gradient(135deg, color-mix(in srgb, var(--stage-grad-start) 52%, transparent), color-mix(in srgb, var(--stage-grad-mid) 44%, transparent) 52%, color-mix(in srgb, var(--stage-grad-end) 56%, transparent)) border-box;
  }

  /* ---------- Ad slot (Google AdSense placeholder) ---------- */
  .ad-slot {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 10px 12px 9px 11px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
  }
  .ad-label {
    position: absolute;
    top: 7px; right: 9px;
    font-size: 8px;
    letter-spacing: var(--tracking-widest); /* D8.3 ad-label Latin 캡스 */
    color: var(--muted);
    font-family: ui-monospace, monospace;
    background: rgba(0,0,0,0.05);
    padding: 1.5px 5px;
    border-radius: 3px;
    font-weight: 700;
  }
  .ad-body {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 11px;
    align-items: center;
  }
  .ad-thumb {
    width: 52px; height: 52px;
    border-radius: 8px;
    background:
      linear-gradient(135deg, #2b1d10 0%, #6f3d10 40%, #d68a2a 100%);
    position: relative;
    overflow: hidden;
  }
  .ad-thumb::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 30% 30%, #fff 0%, transparent 30%),
      repeating-conic-gradient(from 45deg, #1c1917 0deg 30deg, #f5f3ee 30deg 60deg);
    opacity: 0.95;
  }
  .ad-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-right: 38px;
  }
  .ad-copy strong {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: var(--tracking-snug);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
  }
  .ad-copy span {
    font-size: 10.5px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ---------- Bottom nav ---------- */
  .bnav {
    flex-shrink: 0;
    height: calc(var(--bottom-nav-height) + var(--system-safe-bottom));
    padding:
      6px
      max(12px, calc(var(--system-safe-right) + 12px))
      calc(10px + var(--system-safe-bottom))
      max(12px, calc(var(--system-safe-left) + 12px));
    background: var(--topbar);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 30;
  }
  .bnav button {
    background: transparent; border: 0;
    cursor: pointer;
    display: grid; place-items: center;
    color: var(--muted-soft);
    padding: 0;
    transition: color 0.09s;
    position: relative;
    min-width: var(--tap-target);
    min-height: var(--tap-target);
  }
  .bnav svg { width: 24px; height: 24px; }
  .bnav button.on { color: var(--ink); }
  .bnav button.on .icon-fill { opacity: 0.16; }
  .bnav button.on::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 4px; height: 4px;
    background: var(--ink);
    border-radius: 50%;
  }

  /* ---------- Other tab content (light) ---------- */
  .pad {
    padding:
      16px
      max(16px, calc(var(--system-safe-right) + 16px))
      calc(24px + var(--system-safe-bottom))
      max(16px, calc(var(--system-safe-left) + 16px));
  }
  .scroll.pad.article-scroll {
    padding:
      8px
      max(8px, calc(var(--system-safe-right) + 8px))
      calc(24px + var(--system-safe-bottom))
      max(8px, calc(var(--system-safe-left) + 8px));
  }
  .search-box {
    display: flex; align-items: center; gap: 9px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    height: 44px;
    color: var(--muted);
    font-size: 13.5px;
  }
  .search-box svg { width: 18px; height: 18px; }
  .search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
  }
  .search-box input::placeholder { color: var(--muted); }

  .seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
  }
  .seg button {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: inherit;
  }
  .seg button.on {
    background: var(--inverse); color: var(--inverse-ink); border-color: var(--inverse);
  }
  .source-data-summary {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-muted);
    display: grid;
    gap: 3px;
  }
  .source-data-summary strong {
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 850;
  }
  .source-data-summary span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
  }
  .src-row {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 8px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
  }
  .src-row .av {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--inverse);
    color: var(--inverse-ink);
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 13px;
    position: relative;
    flex-shrink: 0;
  }
  .asset-fallback {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: inherit;
    background: var(--asset-bg, var(--surface-muted));
    color: color-mix(in srgb, var(--ink) 76%, var(--muted));
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
  }
  .asset-fallback[hidden] { display: none !important; }
  .entity-avatar {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
  }
  .team-logo {
    --team-logo-pad: 2px;
    --team-logo-x: 0px;
    --team-logo-y: 0px;
    --team-logo-scale: 1;
  }
  .team-logo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .entity-avatar img,
  .entity-avatar .asset-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .player-avatar img,
  .squad-face img {
    object-fit: cover;
    object-position: center center;
  }
  .saga-asset img,
  .story-asset img {
    object-fit: cover;
    object-position: center top;
  }
  .team-logo img,
  .match-chip-logo img,
  .match-side-logo img,
  .fixture-logo img,
  .team-detail-logo img,
  .strip-logo img {
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    padding: var(--team-logo-pad, 2px);
    transform: translate(var(--team-logo-x, 0px), var(--team-logo-y, 0px)) scale(var(--team-logo-scale, 1));
    transform-origin: center;
  }
  .story-media .team-logo,
  .src-row .av.asset-av .team-logo,
  .match-team-story .team-logo {
    --team-logo-pad: 5px;
  }
  .team-logo.national-flag-logo {
    border-radius: 8px;
  }
  .team-logo.national-flag-logo img {
    padding: 0;
    border-radius: 6px;
    transform: scale(1.18);
  }
  .src-row .av.asset-av {
    background: var(--surface-soft);
    color: var(--ink);
    overflow: hidden;
  }
  .src-row .av.asset-av .entity-avatar {
    border-radius: 50%;
  }
  .src-row .av .m {
    position: absolute;
    bottom: -3px; right: -3px;
    background: var(--card);
    border-radius: 50%;
    width: 18px; height: 18px;
    display: grid; place-items: center;
    font-size: 11px;
    border: 1.5px solid var(--frame);
  }
  .src-row.official-source-row {
    border-color: var(--line);
    background: var(--card);
  }
  .src-row .official-av {
    background: color-mix(in srgb, #0f8f62 10%, var(--surface-soft));
    color: #0f8f62;
    font-size: 10px;
    letter-spacing: 0;
  }
  .src-row .info {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .src-row strong { font-size: 13px; font-weight: 700; }
  .src-row small {
    font-size: 11px; color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .src-row .lvl {
    font-size: 11px;
    color: var(--muted);
    font-family: ui-monospace, monospace;
  }
  .src-row .official-lvl {
    color: #0f8f62;
    font-family: inherit;
    font-weight: 800;
  }
  .search-type-pill {
    flex: 0 0 auto;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
  }
  .search-type-pill.source {
    color: #0f8f62;
    border-color: color-mix(in srgb, #0f8f62 24%, var(--line));
    background: color-mix(in srgb, #0f8f62 8%, var(--card));
  }
  .search-type-pill.team {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
    background: color-mix(in srgb, var(--accent) 7%, var(--card));
  }
  .search-type-pill.player {
    color: var(--ink-soft);
  }
  .search-type-pill.selected {
    color: var(--inverse-ink);
    border-color: var(--inverse);
    background: var(--inverse);
  }

  .match-team-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px 12px;
  }
  .match-team-story-card {
    margin: 0 0 9px;
    padding: 0;
    border-color: transparent;
    background:
      linear-gradient(var(--card), var(--card)) padding-box,
      linear-gradient(135deg, var(--stage-grad-start), var(--stage-grad-mid) 52%, var(--stage-grad-end)) border-box;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }
  .match-team-head,
  .fixture-board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
  .match-team-head strong,
  .fixture-board-head strong {
    font-size: 13px;
    font-weight: 800;
  }
  .match-team-head span,
  .fixture-board-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    min-width: 0;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }
  .match-team-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .match-team-stories {
    grid-auto-columns: 63px;
    gap: 6px;
    padding: 9px 10px 8px;
  }
  .match-team-story .story-tile {
    background: var(--surface-soft);
  }
  .match-team-story.on .story-name {
    color: var(--ink);
    font-weight: 850;
  }
  .match-team-story.active .story-tile {
    transform: translateY(-1px);
    border-color: var(--accent);
    box-shadow: var(--dock-icon-shadow), 0 0 0 2px var(--accent);
  }
  .match-team-story .entity-avatar,
  .match-team-story .asset-fallback,
  .match-story-logo {
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }
  .match-team-story .entity-avatar img,
  .match-team-story .asset-fallback img,
  .match-story-logo img {
    object-fit: contain;
    object-position: center;
    box-sizing: border-box;
    padding: var(--team-logo-pad, 5px);
    background: #fff;
  }
  .match-team-chip {
    min-width: 0;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--ink-soft);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .match-team-chip > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .match-chip-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex: 0 0 18px;
    background: rgba(255,255,255,0.78);
  }
  .match-team-chip.on {
    background: var(--inverse);
    border-color: var(--inverse);
    color: var(--inverse-ink);
  }
  .match-team-chip.active {
    border-color: var(--accent); /* D8.1 ④ neon→accent · active=보더가 어포던스(⑤ box-shadow 제거) */
  }

  .match-card {
    background: linear-gradient(135deg, #0c0d0f 0%, #1f3a2e 70%, #0c0d0f 100%);
    color: #fff;
    border-radius: var(--radius-card); /* D8 match카드 누락분 토큰화 */
    padding: 12px 13px;
    margin-top: 10px;
    box-shadow: var(--shadow-card); /* D8① 전시물 → 구획 토큰 */
  }
  .match-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255,255,255,0.62);
    font-size: 10.5px;
    font-weight: 800;
  }
  .match-card-top b {
    color: rgba(255,255,255,0.76);
    font-size: 10px;
  }
  .match-card .eyebrow {
    font-size: 10px;
    letter-spacing: 0; /* D8.3-add ⓑ — eyebrow 한글/데이터구동 흔함·미확정 → 0 */
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-family: ui-monospace, monospace;
  }
  .match-card .vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 7px 0 2px;
  }
  .match-card .vs strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 0;
  }
  .match-card .vs .match-side {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .match-card .vs .match-side.r {
    justify-content: flex-end;
  }
  .match-card .vs .match-side span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .match-side-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex: 0 0 26px;
    background: rgba(255,255,255,0.88);
    padding: 2px;
  }
  .match-card .vs strong.r { text-align: right; }
  .match-card .vs > span { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 700; }
  .match-card .stadium {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .predict-row {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .predict-row button {
    min-width: 0;
    min-height: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.09);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 6px;
  }
  .predict-row button.on {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    box-shadow: none; /* D8.1 ④ on = accent */
  }
  .predict-row span {
    grid-column: 1 / -1;
    min-width: 0;
    color: rgba(255,255,255,0.68);
    font-size: 10.5px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fixture-board {
    margin-top: 12px;
    display: grid;
    gap: 10px;
  }
  .fixture-day {
    display: grid;
    gap: 6px;
  }
  .fixture-day h4 {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }
  .fixture-list {
    display: grid;
    gap: 6px;
  }
  .fixture-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 10px;
  }
  .fixture-row.watched {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow: inset 3px 0 0 var(--accent); /* D8.1 ④ 색=accent; inset 엣지바 기하 = ⑤ 예외 → #2-2 r14 회부 */
  }
  .fixture-time {
    display: grid;
    gap: 3px;
  }
  .fixture-time b {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
  }
  .fixture-time span,
  .fixture-main small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
  }
  .fixture-main {
    min-width: 0;
    display: grid;
    gap: 3px;
  }
  .fixture-main strong {
    min-width: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fixture-main .fixture-teamline {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .fixture-teamline em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: normal;
  }
  .fixture-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex: 0 0 18px;
    background: var(--surface-soft);
  }
  .fixture-main strong > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }
  .fixture-main small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .fixture-row .predict-row.compact {
    grid-template-columns: repeat(3, 48px) minmax(0, 1fr);
    align-items: center;
    margin-top: 5px;
  }
  .fixture-row .predict-row.compact button {
    min-height: 26px;
    border-color: var(--line);
    background: var(--surface-muted);
    color: var(--ink-soft);
    font-size: 10.5px;
  }
  .fixture-row .predict-row.compact button.on {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--ink);
    box-shadow: none;
  }
  .fixture-row .predict-row.compact span {
    grid-column: auto;
    color: var(--muted);
  }
  .team-match-insight {
    margin-top: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
  }
  .team-insight-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .team-insight-head div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }
  .team-insight-head strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
  }
  .team-insight-head span {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .team-insight-head button {
    min-width: 46px;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
  }
  .team-profile-strip {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-muted);
    padding: 8px 10px;
    cursor: pointer;
  }
  .team-profile-strip .strip-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card);
  }
  .team-profile-strip div {
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .team-profile-strip strong {
    min-width: 0;
    font-size: 12.5px;
    font-weight: 900;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .team-profile-strip span,
  .team-profile-strip small {
    min-width: 0;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .squad-preview {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .squad-face {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-soft);
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .squad-preview-asset {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }
  .team-insight-grid {
    margin-top: 10px;
    display: grid;
    gap: 8px;
  }
  .team-insight-grid .intel {
    margin-top: 0;
    padding: 10px 11px;
    background: var(--surface-muted);
  }
  .team-profile-detail {
    display: grid;
    gap: 10px;
  }
  .team-profile-hero,
  .team-profile-manager,
  .team-profile-squad {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
  }
  .team-profile-hero,
  .team-profile-manager {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .team-detail-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--surface-soft);
    flex: 0 0 54px;
  }
  .team-detail-manager {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-soft);
    flex: 0 0 42px;
  }
  .team-profile-hero div,
  .team-profile-manager div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }
  .team-profile-hero strong,
  .team-profile-manager strong {
    min-width: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .team-profile-hero span,
  .team-profile-manager span {
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .team-squad-list {
    margin-top: 10px;
    display: grid;
    gap: 7px;
  }
  .team-squad-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
  }
  .team-squad-row:active,
  .rank-row:active,
  .player-profile-team:active {
    transform: translateY(1px);
  }
  .team-squad-row:focus-visible,
  .rank-row:focus-visible,
  .player-profile-team:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .team-squad-asset {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-soft);
  }
  .team-squad-row div {
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .team-squad-row strong {
    min-width: 0;
    font-size: 12.5px;
    font-weight: 900;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .team-squad-row span {
    min-width: 0;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .player-profile-hero {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow-card);
  }
  .player-profile-photo {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    background: var(--surface-soft);
  }
  .player-profile-hero div {
    min-width: 0;
    display: grid;
    gap: 4px;
  }
  .player-profile-hero strong {
    min-width: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .player-profile-hero span,
  .player-profile-hero em {
    min-width: 0;
    color: var(--muted);
    font-size: 11.5px;
    font-style: normal;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .player-profile-value {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    padding: 13px 14px;
  }
  .player-profile-value span,
  .profile-fact span,
  .player-profile-section span,
  .player-profile-team span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 850;
  }
  .player-profile-value strong {
    color: var(--ink);
    font-size: 19px;
    font-weight: 950;
  }
  .player-profile-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .profile-fact,
  .player-profile-section div {
    min-width: 0;
    display: grid;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    padding: 11px 12px;
  }
  .profile-fact strong,
  .player-profile-section strong,
  .player-profile-team strong {
    min-width: 0;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .player-profile-section {
    margin-top: 10px;
    display: grid;
    gap: 8px;
  }
  .player-profile-team {
    width: 100%;
    margin-top: 10px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    padding: 11px 12px;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }
  .player-profile-team:disabled {
    cursor: default;
    opacity: 0.72;
  }
  .player-profile-team div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }
  .player-profile-team-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-soft);
  }
  .rooms-rank-page {
    display: grid;
    gap: 10px;
  }
  .rooms-rank-head {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
  }
  .rooms-rank-switch {
    width: min(100%, 210px);
  }
  .rank-list {
    display: grid;
    gap: 7px;
  }
  .rank-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    padding: 9px 10px;
    box-shadow: var(--shadow-card);
  }
  .player-rank-row {
    cursor: pointer;
  }
  .rank-num {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }
  .rank-row .av,
  .rank-row .asset-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    flex: none;
  }
  .rank-row .av .m {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 10px;
  }
  .rank-row .info {
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .rank-row .info strong,
  .rank-row .info small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rank-row .info strong {
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 900;
  }
  .rank-row .info small {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
  }
  .rank-row .lvl {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
  }
  .intel {
    margin-top: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
  }
  .intel h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
  }
  .intel p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.55;
  }
  .intel p:first-of-type { margin-top: 0; }

  .comment {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 6px;
  }
  .comment.blurred .body,
  .comment.blurred .community-title,
  .comment.blurred .community-sub { filter: none; }
  .comment .ch {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
  }
  .comment .ch strong { font-size: 12.5px; font-weight: 700; }
  .comment .ch .meta { font-size: 10.5px; color: var(--muted); }
  .comment .ch .best {
    background: var(--best-bg); color: var(--best-ink);
    font-size: 9.5px; padding: 2px 6px; border-radius: 4px;
    font-weight: 700; letter-spacing: var(--tracking-wide); /* D8.3 "BEST" Latin 캡스 뱃지 */
  }
  .comment .post-title {
    font-size: 10.5px;
    color: var(--muted);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .comment .body {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    word-break: keep-all;
  }
  .comment .cfoot {
    margin-top: 7px;
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: var(--muted);
  }
  .comment .cfoot button {
    background: transparent; border: 0; padding: 0;
    color: inherit; cursor: pointer; font-family: inherit;
    font-size: inherit;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .comment .cfoot .heart-btn svg { width: 13px; height: 13px; }
  .comment .cfoot .heart-btn.liked { color: var(--hot); }
  .community-post {
    cursor: pointer;
    transition: transform 0.09s ease, border-color 0.09s ease, background 0.09s ease;
  }
  .community-post:active {
    transform: translateY(1px);
  }
  .community-post:focus-visible {
    outline: 2px solid var(--inverse);
    outline-offset: 2px;
  }
  .community-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }
  .community-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 5px;
    color: var(--faint);
  }
  .community-title {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 850;
    line-height: 1.32;
    letter-spacing: var(--tracking-snug);
  }
  .community-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .inline-best {
    flex: 0 0 auto;
    transform: translateY(-0.5px);
    background: var(--best-bg);
    color: var(--best-ink);
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: var(--tracking-wide); /* D8.3 "BEST" Latin 캡스 뱃지 */
    line-height: 1.2;
  }
  .photo-mark {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transform: translateY(0.5px);
  }
  .photo-mark svg {
    width: 13px;
    height: 13px;
  }
  .community-sub {
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .community-media {
    display: block;
    width: 100%;
    max-height: 170px;
    margin-top: 8px;
    border-radius: 11px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--surface-muted);
  }
  .link-preview {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-muted);
    color: var(--ink);
    text-decoration: none;
  }
  .link-preview-thumb {
    width: 54px;
    height: 54px;
    border-radius: 9px;
    background: var(--card);
    color: var(--muted);
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .link-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .link-preview-thumb .asset-fallback {
    border-radius: 9px;
    font-size: 10px;
  }
  .link-preview-thumb svg {
    width: 20px;
    height: 20px;
  }
  .link-preview b,
  .link-preview em {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .link-preview b {
    font-size: 12px;
    font-weight: 900;
  }
  .link-preview em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 750;
  }
  .community-foot {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    min-width: 0;
  }
  .community-foot button,
  .community-foot span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    white-space: nowrap;
  }
  .community-foot button {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .community-foot svg {
    width: 12px;
    height: 12px;
  }
  .community-foot .heart-btn.liked {
    color: var(--hot);
  }
  .community-foot .dislike-btn.on {
    color: var(--ink);
  }
  .community-detail-scroll {
    padding-top: 14px;
  }
  .community-detail h1 {
    margin-bottom: 12px;
  }
  .community-detail-body {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: keep-all;
  }
  .community-detail-body p {
    margin: 0 0 10px;
  }
  .community-detail-body p:last-child {
    margin-bottom: 0;
  }
  .community-detail-media {
    display: block;
    width: 100%;
    height: min(260px, 64vw);
    max-height: 260px;
    margin-top: 14px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid var(--line);
    background: var(--surface-muted);
  }
  .community-detail-media.asset-fallback {
    display: grid;
    height: 156px;
    object-fit: initial;
  }
  .community-detail-attachment {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 850;
  }
  .community-detail-attachment svg {
    width: 16px;
    height: 16px;
  }
  .community-detail-link {
    margin-top: 14px;
  }
  .community-detail-actions .dislike-btn.on {
    color: var(--ink);
  }
  .community-foot strong {
    margin-left: auto;
    min-width: 0;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 800;
    text-align: right;
  }
  .community-image {
    margin-top: 7px;
    width: 100%;
    max-height: 170px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
  }
  .community-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 170px;
    object-fit: cover;
  }
  .room-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }
  .room-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
  }
  .room-tabs::-webkit-scrollbar { display: none; }
  .room-tabs button {
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
  }
  .room-tabs button.on {
    background: var(--inverse);
    color: var(--inverse-ink);
    border-color: var(--inverse);
  }
  .write-btn {
    height: 34px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid var(--inverse);
    background: var(--inverse);
    color: var(--inverse-ink);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }
  .write-btn svg { width: 15px; height: 15px; }
  .local-post {
    border-color: rgba(237, 73, 86, 0.18);
    box-shadow: var(--shadow-card); /* D8③ 적색 드라마틱 → 구획 */
  }
  .local-badge {
    background: var(--surface-soft);
    color: var(--muted);
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 800;
  }
  .comment .body b {
    display: block;
    font-size: 13.5px;
    margin-bottom: 3px;
  }
  .comment .body p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: var(--ink-soft);
  }

  .subscreen-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: -4px 0 12px;
  }
  .subscreen-head button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .subscreen-head button svg {
    width: 17px;
    height: 17px;
    transform: rotate(180deg);
  }
  .subscreen-head strong {
    display: block;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: var(--tracking-tight);
  }
  .subscreen-head span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
  }
  .profile-page {
    display: grid;
    gap: 10px;
    padding-top: 8px;
  }
  .my-identity {
    padding: 2px 2px 0;
  }
  .my-identity-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }
  .profile-avatar.my-avatar {
    width: 74px;
    height: 74px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(135deg, var(--inverse), #2c3238);
    color: var(--inverse-ink);
    font-size: 22px;
    font-weight: 950;
  }
  .my-title {
    min-width: 0;
  }
  .my-title strong {
    display: block;
    color: var(--ink);
    font-size: 21px;
    font-weight: 950;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .my-title span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .my-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .my-icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .my-identity p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    word-break: keep-all;
  }
  .my-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }
  .my-action-row button {
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
  }
  .my-action-row button:first-child {
    background: var(--inverse);
    border-color: var(--inverse);
    color: var(--inverse-ink);
  }
  /* 신뢰 보정 게이지 (D5.2/D7(b)) — D1.1 밴드. 진행 셸만(숫자 날조 ✗), 색=헤더 그라데
     (prob 5색·신뢰 달과 비공유 = 제3 채널 = D1.2 보존). */
  .my-calib {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 12px 14px;
    margin-top: 4px;
  }
  .calib-head { display: flex; align-items: baseline; justify-content: space-between; }
  .calib-head b { font-size: 12.5px; font-weight: 800; color: var(--ink); }
  .calib-slot, .calib-pct { font-size: 11px; font-weight: 700; color: var(--muted); }
  .calib-gauge {
    margin-top: 8px; height: 4px; border-radius: 2px;
    background: var(--line); overflow: hidden;
  }
  .calib-fill {
    display: block; height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, var(--stage-grad-start), var(--stage-grad-mid) 52%, var(--stage-grad-end));
    transition: width 0.09s ease;
  }
  /* 적중평판 → 꾸미기 (LOCKED 4 / D3-⑤B INV-3CH) — 제3 채널. 색 = --accent + 무채
     잉크/코스메틱 고유 형상만. --prob-* 5색 ✗·달 글리프 ✗·신뢰/확률 라벨 혼용 ✗.
     D1.1 밴드(라이트·--radius-card·--shadow-card·8그리드·모션 ≤0.1s). */
  .my-cosmetics {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 10px 12px;
    margin-top: 4px;
  }
  .cos-head { display: flex; align-items: baseline; justify-content: space-between; }
  .cos-head b { font-size: 12.5px; font-weight: 800; color: var(--ink); }
  .cos-call {
    font-size: 11px; font-weight: 800; color: var(--accent);
    letter-spacing: var(--tracking-snug);
  }
  /* 레벨업 외형 성장 (DOCTRINE_2-2 D3-⑤C / INV-3CH 제3채널) — 게임/SNS 레벨 L3a.
     색 = --accent + 무채 잉크 + 코스메틱 고유 형상만(--prob-* ✗·달 ✗). 펫 ✗.
     S1 가시 도약: 레벨↑마다 lv-badge 테/채움 단계 격상(번쩍임 ✗·정교한 격상).
     S2 누적: lv-pips 누적 점등. S3 다음 당김: lv-next 예고. S4 정상스키마: 큰
     "Lv N"+등급명 즉독. 모션 ≤0.1s(D8)·글로우/네온 ✗. */
  .lv-hero {
    margin-top: 8px; padding: 8px;
    display: flex; align-items: center; gap: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .lv-badge {
    flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--card);
    color: var(--muted);
    box-shadow: inset 0 0 0 1.5px var(--line-strong); /* 0-blur inset = 보더(어포던스), 글로우 ✗ */
    transition: box-shadow .09s ease, color .09s ease, background .09s ease;
  }
  .lv-badge b { font-size: 11px; font-weight: 800; letter-spacing: var(--tracking-snug); }
  /* S1 단계 격상: 레벨↑ = --accent 침투 깊이↑(테 → 굵은 테 → 채움). 누적 위계(S2). */
  .lv-badge.lv-2 { color: var(--accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, var(--line-strong)); }
  .lv-badge.lv-3 { color: var(--accent); box-shadow: inset 0 0 0 2.5px var(--accent); }
  .lv-badge.lv-4 {
    color: var(--inverse-ink);
    background: var(--accent);
    box-shadow: inset 0 0 0 2.5px var(--accent), 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  .lv-copy { flex: 1 1 auto; min-width: 0; display: grid; gap: 5px; }
  .lv-copy strong { font-size: 14px; font-weight: 800; color: var(--ink); }
  .lv-pips { display: flex; gap: 4px; }
  .lv-pip {
    width: 16px; height: 4px; border-radius: 2px;
    background: var(--faint);
    transition: background .09s ease;
  }
  .lv-pip.on { background: var(--accent); } /* 누적 점등(S2) — 무채/팀색만, prob-5 ✗ */
  .lv-next {
    flex: 0 0 auto; max-width: 42%; text-align: right;
    font-size: 10.5px; font-weight: 700; color: var(--muted); line-height: 1.3;
  }
  .lv-next b { color: var(--ink-soft); font-weight: 800; }
  .cos-foresight { margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--muted); }
  .cos-foresight b { color: var(--ink-soft); }
  .cos-list { margin-top: 8px; display: grid; gap: 6px; }
  .cos-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--muted);
  }
  .cos-shape {
    flex: 0 0 auto; width: 14px; height: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line-strong);
  }
  .cos-badge { border-radius: 999px; }
  .cos-border { border-radius: 3px; border-width: 2px; background: transparent; }
  .cos-title { border-radius: 2px; transform: rotate(45deg); }
  .cos-row.on .cos-shape { background: var(--accent); border-color: var(--accent); }
  .cos-name { flex: 1 1 auto; color: var(--ink-soft); font-weight: 700; }
  .cos-row.on .cos-name { color: var(--ink); }
  .cos-state { flex: 0 0 auto; font-size: 11px; font-weight: 700; }
  .cos-row.on .cos-state { color: var(--accent); }
  .my-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
  }
  .my-stats div {
    min-width: 0;
    display: grid;
    gap: 3px;
    justify-items: center;
    border-left: 1px solid var(--line);
  }
  .my-stats div:first-child {
    border-left: 0;
  }
  .my-stats strong {
    max-width: 100%;
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .my-stats span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
  }
  .my-menu-panel,
  .my-signal-panel,
  .my-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }
  .my-section.compact {
    margin-top: -2px;
  }
  .my-menu-row,
  .my-signal-row,
  .my-activity-row {
    width: 100%;
    min-height: 52px;
    border: 0;
    background: transparent;
    color: var(--ink);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }
  .my-menu-row + .my-menu-row {
    border-top: 1px solid var(--line);
  }
  .my-activity-row.static {
    cursor: default;
  }
  .my-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--ink-soft);
    display: grid;
    place-items: center;
  }
  .my-row-icon svg {
    width: 17px;
    height: 17px;
  }
  .my-row-copy {
    min-width: 0;
  }
  .my-row-copy b {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
  }
  .my-row-copy em {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .my-menu-row > .ui-icon,
  .my-signal-row > .ui-icon,
  .my-activity-row > .ui-icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
  }
  .my-follow-block {
    border-top: 1px solid var(--line);
    padding: 12px;
  }
  .my-block-head,
  .my-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .my-block-head span,
  .my-section-head strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
  }
  .my-block-head button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
  }
  .my-chip-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
  }
  .my-chip-line span,
  .my-badge-strip span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    background: var(--surface-muted);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 850;
  }
  .my-chip-line.muted span {
    background: transparent;
    color: var(--muted);
  }
  .my-section-head {
    padding: 12px 12px 0;
  }
  .my-section-head span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 850;
  }
  .my-badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px 12px 56px;
  }
  .profile-home-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--app-shadow);
  }
  .profile-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 36px;
    margin: -4px 0 8px;
  }
  .profile-gear {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--app-shadow);
  }
  .profile-gear svg {
    width: 18px;
    height: 18px;
  }
  .profile-topline {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
  }
  .profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--inverse);
    color: var(--inverse-ink);
    font-size: 18px;
    font-weight: 850;
    border: 1px solid var(--line-strong);
    flex-shrink: 0;
  }
  .profile-avatar.large {
    width: 78px;
    height: 78px;
    font-size: 24px;
  }
  .profile-avatar.xlarge {
    width: 92px;
    height: 92px;
    font-size: 28px;
  }
  /* 아바타 외형 = 레벨 성장 (DOCTRINE_2-2 D3-⑤C S1 가시 도약 / INV-3CH 제3채널).
     테 등급 = .lv-badge.lv-2/3/4 와 *동일* --accent 침투 스케일(일관성·헌법 §5).
     레벨 출처 = renderAvatar의 currentCosmeticLevel()(성역 자격값) — trust/rung/
     moon 0·역방향 0. 색 = --accent + 무채만(--prob-* ✗·달 ✗). box-shadow 0-blur
     링(글로우/네온 ✗·overflow:hidden 비클리핑)·모션 ≤0.1s(D8). Lv1 = baseline
     (추가 테 0 = 무활동 정직 floor, lv-hero Lv1 과 동형). */
  .profile-avatar { transition: box-shadow .09s ease; }
  .profile-avatar.avatar-lv-2 {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  }
  .profile-avatar.avatar-lv-3 {
    box-shadow: 0 0 0 2.5px var(--accent);
  }
  .profile-avatar.avatar-lv-4 {
    box-shadow: 0 0 0 2.5px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .profile-avatar .asset-fallback {
    border-radius: inherit;
    font-size: 12px;
  }
  .profile-copy {
    min-width: 0;
  }
  .profile-copy strong {
    display: block;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: var(--tracking-tight);
  }
  .profile-copy span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  .profile-copy p {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.45;
    word-break: keep-all;
  }
  .profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }
  .profile-actions button {
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
  }
  .profile-score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }
  .profile-score-grid div {
    min-height: 70px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    display: grid;
    align-content: center;
    gap: 4px;
  }
  .profile-score-grid span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
  }
  .profile-score-grid strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: var(--tracking-tight);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile-summary-list,
  .settings-list {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 10px;
  }
  .settings-list h4 {
    margin: 0;
    padding: 12px 14px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
  }
  .profile-list-row,
  .settings-row {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }
  .profile-list-row:first-child,
  .settings-row:first-of-type {
    border-top: 0;
  }
  .profile-list-row.static,
  .settings-row.static {
    cursor: default;
  }
  .settings-row.standalone {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 10px;
  }
  .profile-list-row b,
  .settings-row b {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
  }
  .profile-list-row em,
  .settings-row em {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
  }
  .profile-list-row svg,
  .settings-row svg {
    width: 17px;
    height: 17px;
    color: var(--muted);
    flex-shrink: 0;
  }
  .settings-row strong {
    font-size: 11px;
    letter-spacing: 0; /* D8.3 하드룰 — 한글 설정 라벨, 양수 트래킹 제거 */
    color: var(--ink);
  }
  .settings-row.danger b {
    color: var(--hot);
  }
  .settings-row.danger-lite b {
    color: var(--ink-soft);
  }
  .activity-panel {
    margin-top: 12px;
  }
  .section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .section-title strong {
    font-size: 13px;
    font-weight: 850;
  }
  .section-title span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 750;
  }
  .activity-grid {
    display: grid;
    gap: 8px;
  }
  .activity-grid article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
  }
  .activity-grid span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 850;
  }
  .activity-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 900;
  }
  .activity-grid em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .edit-profile-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 10px;
    justify-items: center;
  }
  .avatar-upload {
    display: grid;
    justify-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
  }
  .avatar-upload input {
    display: none;
  }
  .form-panel {
    display: grid;
    gap: 12px;
  }
  .settings-search {
    margin-bottom: 10px;
  }

  .profile-hero {
    background: linear-gradient(135deg, #0c0d0f 0%, #1c2730 100%);
    color: #fff;
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
  }
  .profile-hero .av {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a7d52, #144a32);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 18px;
    border: 1.5px solid rgba(255,255,255,0.2);
  }
  .profile-hero .who strong {
    font-size: 15px;
    display: block;
  }
  .profile-hero .who span {
    font-size: 11.5px;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-top: 2px;
  }
  .profile-hero em {
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0; /* D8.3-add ⓑ — profile em 미확정 → 0 */
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 999px;
    color: rgba(255,255,255,0.85);
  }
  .profile-hero.logged-out {
    background: linear-gradient(135deg, var(--surface-soft) 0%, var(--card) 100%);
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .profile-hero.logged-out .av {
    background: var(--inverse);
    color: var(--inverse-ink);
  }
  .profile-hero.logged-out .who span {
    color: var(--muted);
  }
  .hero-login {
    border: 0;
    border-radius: 999px;
    background: var(--inverse);
    color: var(--inverse-ink);
    padding: 8px 11px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }
  .stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 8px;
  }
  .stat-row span {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 0;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
  }
  .stat-row span b {
    display: block;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
  }
  .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-top: 8px;
  }
  .panel h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
  }
  .panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
  }
  .panel-row:first-of-type { border-top: 0; padding-top: 4px; }
  .panel-row .v { color: var(--muted); display: flex; align-items: center; gap: 6px; }
  .panel-row .v b { color: var(--ink); font-weight: 600; }
  .settings-panel {
    display: grid;
    gap: 12px;
  }
  .settings-panel h4 {
    margin-bottom: 0;
  }
  .setting-block {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    display: grid;
    gap: 8px;
  }
  .settings-panel h4 + .setting-block {
    border-top: 0;
    padding-top: 0;
  }
  .setting-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    font-size: 12px;
  }
  .setting-head span {
    color: var(--muted);
    font-weight: 800;
  }
  .setting-head b {
    color: var(--ink);
    font-size: 11.5px;
    text-align: right;
    font-weight: 800;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .compact-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .setting-chip {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--ink-soft);
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    transition:
      color 0.16s ease,
      background 0.16s ease,
      border-color 0.16s ease,
      transform 0.16s ease;
  }
  .setting-chip:active {
    transform: scale(0.97);
  }
  .setting-chip.on {
    background: var(--inverse);
    color: var(--inverse-ink);
    border-color: var(--inverse);
  }
  .target-league-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .settings-target-search {
    margin-top: 0;
    background: var(--surface-input);
  }
  .settings-target-search-list {
    display: grid;
    gap: 7px;
  }
  .target-search-row {
    width: 100%;
    margin-top: 0;
    text-align: left;
    font: inherit;
    color: inherit;
  }
  .target-search-row.on {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    background: color-mix(in srgb, var(--accent) 7%, var(--card));
  }
  .settings-target-empty {
    display: grid;
    gap: 4px;
    padding: 12px 2px;
    color: var(--muted);
    font-size: 12px;
  }
  .settings-target-empty strong {
    color: var(--ink);
    font-size: 13px;
  }
  .league-chip {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 9px;
  }
  .league-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .league-chip b {
    min-width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font-size: 10px;
    line-height: 1;
  }
  .league-chip.on b {
    background: var(--inverse-ink);
    color: var(--inverse);
  }
  .league-chip.active:not(.on) {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--accent) 6%, var(--surface-muted));
  }
  .target-league-head {
    margin-top: 10px;
  }
  .target-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .target-team-chip {
    min-width: 0;
    min-height: 42px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 2px;
    border-radius: 12px;
    padding: 6px 9px;
    text-align: left;
  }
  .target-team-chip span,
  .target-team-chip small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .target-team-chip small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
  }
  .target-team-chip.on small {
    color: var(--inverse-ink);
    opacity: 0.76;
  }
  .theme-mode-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .time-grid label {
    display: grid;
    gap: 5px;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 800;
  }
  .time-grid input {
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-input);
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    color: var(--ink);
    outline: none;
  }
  .time-grid input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); /* D8.1 ④; ⑤ a11y 포커스링 0 0 0 = 허용 */
  }
  .setting-note {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.45;
  }
  .wide-btn {
    width: 100%;
    height: 42px;
    margin-top: 10px;
    border: 1px solid var(--inverse);
    border-radius: 11px;
    background: var(--inverse);
    color: var(--inverse-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
  .wide-btn.subtle {
    background: var(--surface-muted);
    border-color: var(--line);
    color: var(--ink-soft);
  }
  .design-lab-panel {
    gap: 12px;
  }
  .design-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .design-action-row .wide-btn,
  .design-add-row .wide-btn {
    margin-top: 0;
  }
  .design-preset-list {
    display: grid;
    gap: 8px;
  }
  .design-preset-btn {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-muted);
    color: var(--ink);
    padding: 10px;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .design-preset-btn:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  .design-preset-swatches {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .design-preset-swatches i {
    width: 20px;
    height: 20px;
    display: block;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--preset-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  .design-preset-swatches i + i {
    margin-left: -7px;
  }
  .design-preset-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .design-preset-copy strong {
    color: var(--ink);
    font-size: 12px;
    line-height: 1.25;
  }
  .design-preset-copy small,
  .design-preset-copy em {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.35;
  }
  .design-preset-copy em {
    font-style: normal;
  }
  .design-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .design-gradient-preview {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--stage-grad-start) 0%, var(--stage-grad-mid) 52%, var(--stage-grad-end) 100%);
  }
  .design-gradient-grid {
    display: grid;
    gap: 8px;
  }
  .design-field-grid label,
  .design-gradient-grid label,
  .design-range-list label {
    min-width: 0;
    display: grid;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--muted);
  }
  .design-color-combo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 6px;
  }
  .design-field-grid input,
  .design-gradient-grid input,
  .design-field-grid select,
  .design-add-row select {
    width: 100%;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-input);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    outline: none;
  }
  .design-field-grid input {
    padding: 0 10px 0 28px;
    background:
      linear-gradient(var(--design-swatch, transparent), var(--design-swatch, transparent)) 9px 50% / 12px 12px no-repeat,
      var(--surface-input);
  }
  .design-gradient-grid input:not([type="color"]) {
    padding: 0 10px 0 28px;
    background:
      linear-gradient(var(--design-swatch, transparent), var(--design-swatch, transparent)) 9px 50% / 12px 12px no-repeat,
      var(--surface-input);
  }
  .design-gradient-grid input[type="color"] {
    padding: 3px;
    cursor: pointer;
  }
  .design-field-grid input.invalid,
  .design-gradient-grid input.invalid {
    border-color: var(--hot);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hot) 16%, transparent);
  }
  .design-range-list {
    display: grid;
    gap: 10px;
  }
  .design-range-list label > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .design-range-list b {
    color: var(--ink);
    font-size: 11px;
  }
  .design-range-list input {
    width: 100%;
    accent-color: var(--accent);
  }
  .design-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .design-block-editor-list {
    display: grid;
    gap: 8px;
  }
  .design-block-editor {
    display: grid;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 10px;
    background: var(--surface-muted);
  }
  .design-block-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .design-block-editor-head strong {
    color: var(--ink);
    font-size: 12px;
  }
  .design-block-editor-head div {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mini-icon-btn {
    min-width: 32px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink-soft);
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
  }
  .mini-icon-btn svg {
    width: 14px;
    height: 14px;
  }
  .mini-icon-btn.danger {
    color: var(--hot);
    border-color: color-mix(in srgb, var(--hot) 25%, var(--line));
  }
  .design-export-box {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-input);
    color: var(--ink);
    padding: 10px;
    font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    outline: none;
  }

  .top-title { font-size: calc(20px * var(--lab-font-scale)); }
  .row-title { font-size: calc(14px * var(--lab-font-scale)); }
  .row-summary { font-size: calc(11.5px * var(--lab-font-scale)); }
  .saga-player { font-size: calc(14px * var(--lab-font-scale)); }
  .settings-row b { font-size: calc(13px * var(--lab-font-scale)); }
  .settings-panel h4 { font-size: calc(13px * var(--lab-font-scale)); }

  /* ---------- Local login / composer ---------- */
  .sheet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 220;
    background: rgba(12,13,15,0.34);
    display: grid;
    align-items: end;
    padding:
      0
      max(12px, calc(var(--system-safe-right) + 12px))
      calc(10px + var(--system-safe-bottom))
      max(12px, calc(var(--system-safe-left) + 12px));
    animation: fadeIn 0.16s ease both;
  }
  .sheet-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    max-height: calc(100% - 18px);
    overflow-y: auto;
    box-shadow: var(--shadow-sheet); /* D8.2 B 전시물 → 잉크 은은(승강감=백드롭 딤) */
    animation: sheetUp 0.22s cubic-bezier(.2, .8, .2, 1) both;
  }
  .source-sheet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 230;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    background: rgba(12, 13, 15, 0.42);
    animation: fadeIn 0.16s ease both;
  }
  .source-sheet {
    position: relative;
    width: 100%;
    height: min(50%, 430px);
    min-height: 360px;
    padding:
      28px
      max(16px, calc(var(--system-safe-right) + 16px))
      calc(16px + var(--system-safe-bottom))
      max(16px, calc(var(--system-safe-left) + 16px));
    border-radius: 28px 28px 0 0;
    background: var(--frame);
    box-shadow: var(--shadow-sheet);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: sheetUp 0.22s cubic-bezier(.2, .8, .2, 1) both;
  }
  .source-sheet-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: rgba(13, 17, 23, 0.1);
  }
  .source-sheet h3 {
    margin: 28px 48px 18px;
    text-align: center;
    color: var(--ink);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: 0;
  }
  .source-sheet-close {
    position: absolute;
    top: 34px;
    right: max(16px, calc(var(--system-safe-right) + 16px));
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .source-sheet-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
  }
  .source-sheet-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow-card);
  }
  .source-sheet-main {
    padding: 14px;
  }
  .source-sheet-source {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .source-sheet-avatar {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--inverse);
    color: var(--inverse-ink);
    font-size: 13px;
    font-weight: 950;
  }
  .source-sheet-avatar em {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--card);
    background: #ffd84d;
    color: #0c0d0f;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
  }
  .source-sheet-source strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
  }
  .source-sheet-source small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  .source-sheet-main p {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
  }
  .source-sheet-list {
    margin-top: 12px;
    padding: 2px 14px;
  }
  .source-sheet-list div {
    min-height: 48px;
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
  }
  .source-sheet-list div:first-child {
    border-top: 0;
  }
  .source-sheet-list span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
  }
  .source-sheet-list strong {
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .composer-screen {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--frame);
  }
  .composer-screen-head {
    min-height: 58px;
    padding:
      calc(8px + var(--system-safe-top))
      max(12px, calc(var(--system-safe-right) + 12px))
      8px
      max(12px, calc(var(--system-safe-left) + 12px));
    border-bottom: 1px solid var(--line);
    background: var(--topbar);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 8px;
  }
  .composer-screen-head strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
  }
  .composer-screen-head span {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
  .composer-back,
  .composer-submit {
    min-width: var(--tap-target);
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }
  .composer-back {
    display: grid;
    place-items: center;
    border-radius: 50%;
  }
  .composer-back svg {
    width: 19px;
    height: 19px;
  }
  .composer-submit {
    border-radius: 999px;
    padding: 0 13px;
    background: var(--inverse);
    color: var(--inverse-ink);
    font-size: 12px;
    font-weight: 950;
  }
  .composer-screen-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding:
      16px
      max(14px, calc(var(--system-safe-right) + 14px))
      calc(22px + var(--system-safe-bottom))
      max(14px, calc(var(--system-safe-left) + 14px));
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .composer-title-input,
  .composer-body-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    outline: none;
    padding: 0 0 14px;
    font: inherit;
    resize: none;
  }
  .composer-title-input {
    min-height: 54px;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 950;
  }
  .composer-body-input {
    flex: 1 0 430px;
    min-height: 430px;
    font-size: 15px;
    line-height: 1.62;
    font-weight: 620;
  }
  .composer-title-input::placeholder,
  .composer-body-input::placeholder {
    color: var(--muted-soft);
  }
  .composer-screen-upload {
    margin-top: 8px;
  }
  .composer-link-preview {
    flex: 0 0 auto;
    margin-top: 0;
    grid-template-columns: 60px 1fr;
  }
  .composer-link-preview .link-preview-thumb {
    width: 60px;
    height: 60px;
  }
  .sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .sheet-close svg { width: 16px; height: 16px; }
  .sheet-kicker {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0; /* D8.3 하드룰 — sheet-kicker 한글("0티어 계정"), 양수 트래킹 제거 */
    text-transform: uppercase;
  }
  .sheet-card h3 {
    margin: 6px 44px 6px 0;
    font-size: 22px;
    letter-spacing: var(--tracking-tight);
  }
  .sheet-card p,
  .sheet-card small {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
  }
  .login-providers {
    display: grid;
    gap: 8px;
    margin: 14px 0 10px;
  }
  .provider-btn {
    height: 46px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--surface-input);
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }
  .provider-btn span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--provider);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
  }
  .provider-btn:first-child span { color: #111318; }
  .field-label {
    display: grid;
    gap: 6px;
    margin-top: 12px;
  }
  .field-label span {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
  }
  .field-label input,
  .field-label textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-input);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
    color: var(--ink);
    outline: none;
  }
  .field-label textarea {
    min-height: 96px;
    resize: none;
    line-height: 1.45;
  }
  .field-label textarea[data-autogrow][rows="1"] {
    min-height: 44px;
    max-height: 92px;
  }
  .field-label textarea[data-autogrow][rows="2"] {
    min-height: 72px;
    max-height: 132px;
  }
  .field-label textarea[data-autogrow][rows="3"] {
    min-height: 96px;
    max-height: 168px;
  }
  .field-label input:focus,
  .field-label textarea:focus {
    border-color: rgba(12,13,15,0.34);
    box-shadow: 0 0 0 3px rgba(12,13,15,0.08);
  }
  .composer-upload {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }
  .upload-target {
    min-height: 84px;
    border: 1px dashed rgba(17, 19, 24, 0.22);
    border-radius: 14px;
    background: var(--surface-input);
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
  }
  .upload-target input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .upload-target > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--inverse);
    color: var(--inverse-ink);
  }
  .upload-target svg {
    width: 16px;
    height: 16px;
  }
  .upload-target strong {
    font-size: 12px;
    font-weight: 850;
  }
  .upload-target em {
    color: var(--muted);
    font-size: 10.5px;
    font-style: normal;
    line-height: 1.4;
  }
  .compose-preview {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
  }
  .compose-preview img,
  .compose-preview .asset-fallback {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
  }
  .compose-preview .asset-fallback {
    display: grid;
    min-height: 112px;
    object-fit: initial;
  }
  .compose-preview button {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    background: rgba(12,13,15,0.78);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes sheetUp {
    from { transform: translateY(18px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  /* ---------- Empty state ---------- */
  .empty {
    margin: 12px var(--side-gutter);
    padding: 28px 18px;
    background: var(--card);
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    text-align: center;
  }
  .empty strong { font-size: 14px; display: block; }
  .empty span { font-size: 12px; color: var(--muted); display: block; margin-top: 6px; }
  .empty.compact {
    margin: 10px 0 0;
    padding: 18px 14px;
  }
  .home-feed > .empty {
    margin: 0;
  }

  /* ---------- Home indicator (iOS) ---------- */
  .home-bar {
    position: absolute;
    bottom: calc(8px + var(--system-safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 4px;
    background: var(--ink);
    opacity: 0.45;
    border-radius: 999px;
    z-index: 250;
    pointer-events: none;
  }

  /* ---------- Toast ---------- */
  .toast {
    position: absolute;
    top: calc(60px + var(--system-safe-top));
    left: 50%;
    transform: translate(-50%, -12px);
    background: var(--inverse);
    color: var(--inverse-ink);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    z-index: 300;
    opacity: 0;
    transition: opacity 0.09s ease, transform 0.09s ease;
    pointer-events: none;
    box-shadow: var(--shadow-card); /* D8③ 무거운 전시물 → 구획 */
  }
  .toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  /* ---------- Hint label below phone ---------- */
  .hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0; /* D8.3-add ⓑ — hint 한글 흔함·미확정 → 0 */
    text-transform: uppercase;
    font-family: ui-monospace, monospace;
  }

  /* ---------- Defaults for icons in this file ---------- */
  .icon-fill { fill: currentColor; opacity: 0; stroke: none; }
  .icon-fill.static { opacity: 1; }

  @media (max-width: 460px) {
    html,
    body {
      width: 100%;
      height: var(--app-vh);
      min-height: var(--app-vh);
    }
    body {
      padding: 0;
      place-items: stretch;
      background: var(--frame);
      overflow: hidden;
    }
    .phone {
      width: 100vw;
      max-width: none;
      height: var(--app-vh);
      min-height: 0;
      border-radius: 0;
      box-shadow: none;
    }
    .notch,
    .status-bar,
    .home-bar {
      display: none;
    }
    .app {
      padding-top: 0;
    }
    .top {
      padding-top: calc(7px + var(--system-safe-top));
      padding-left: max(14px, calc(var(--system-safe-left) + 14px));
      padding-right: max(14px, calc(var(--system-safe-right) + 14px));
    }
    .top-update-time {
      right: max(14px, calc(var(--system-safe-right) + 14px));
    }
    .stories-card {
      /* 레일 = 라운드 카드 → 안전영역은 카드 *마진*에(내부 패딩은 컴팩트 유지·§6 밀도) */
      margin-left: max(12px, calc(var(--system-safe-left) + 12px));
      margin-right: max(12px, calc(var(--system-safe-right) + 12px));
    }
    .feed-list {
      padding-left: max(var(--side-gutter), calc(var(--system-safe-left) + var(--side-gutter)));
      padding-right: max(var(--side-gutter), calc(var(--system-safe-right) + var(--side-gutter)));
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.001ms !important;
    }
  }

  /* ===== 사가 UI 시각 시스템 (SAGA_RELEVANCE_SPEC.md §8/§14, additive) =====
     신뢰=blue/green+pill / 재미·포인트=gold .fun-zone (성역 방화벽, §7/§8). */
  .saga-rail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    margin: 2px 0 -2px;
  }
  .saga-head,
  .saga-rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 3px;
  }
  .saga-head strong { font-size: 13px; font-weight: 800; color: var(--ink); }
  .saga-rail-head strong {
    font-size: 13px;
    font-weight: 850;
    margin-left: 5px;
    color: var(--stage-grad-mid);
    background: linear-gradient(90deg, var(--stage-grad-start) 0%, var(--stage-grad-mid) 54%, var(--stage-grad-end) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  html[data-theme="dark"] .saga-rail-head strong {
    color: #00FF87;
    background-image: linear-gradient(90deg, #00FF87 0%, #05F0FF 54%, #EBFF00 100%);
  }
  .saga-head span { font-size: 11px; font-weight: 700; color: var(--muted); }
  .saga-railscroll {
    display: flex;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
  }
  .saga-railscroll::-webkit-scrollbar { display: none; }
  .saga-hot-duo {
    display: flex;
    gap: 7px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .saga-hot-duo::-webkit-scrollbar { display: none; }
  .saga-hot-duo > .saga-card.hot {
    flex: 0 0 calc((100% - 7px) / 2);
    scroll-snap-align: start;
  }
  .saga-card {
    flex: 0 0 78%;
    max-width: 300px;
    min-width: 0;
    scroll-snap-align: start;
    background:
      linear-gradient(var(--card), var(--card)) padding-box,
      linear-gradient(135deg, color-mix(in srgb, var(--stage-grad-start) 72%, transparent), color-mix(in srgb, var(--stage-grad-mid) 58%, transparent) 52%, color-mix(in srgb, var(--stage-grad-end) 70%, transparent)) border-box;
    border: 1px solid transparent;
    border-radius: var(--radius-card);  /* D8 — 반복 카드(11→2단 스케일, r9 해소) */
    box-shadow: var(--shadow-card);
    padding: 11px 13px;
    display: grid;
    gap: 6px;
  }
  .saga-card.full { flex: none; max-width: none; width: 100%; }
  .saga-card.hot {
    max-width: none;
    width: 100%;
    padding: 9px 10px 8px;
    gap: 5px;
  }
  .saga-card .saga-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .saga-player-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
  }
  .saga-asset {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 28px;
    background: var(--surface-soft);
  }
  .saga-card.hot .saga-asset {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .saga-player { font-size: 14px; font-weight: 800; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .saga-card.hot .saga-player { font-size: 12.5px; }
  .saga-line {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* 0티어 이적확률 5단계 *스텝 마일스톤 트래커* (DOCTRINE_2-2 D1.2 / D1.2-STEP / LOCKED A)
     ── INV-STEP 분담(위반=해자 붕괴) ────────────────────────────────────────────
     · 5개 이산 노드(.pr-node ×5) = 각자 자기 단계 LOCKED 의미색 var(--nd-c)
       (= --prob-{n}-{key}, 빨→초). 노드 = "어느 확신 단계인가". 연속 단일바 ✗.
     · 연결 fill(.pr-fill) = 응원팀 그라데(var(--team-grad-*) = D8.1-DYN 크롬).
       진척 트랙 = "얼마나 왔나". 노드 의미색과 *한 요소도 비공유*(팀색이 빨→초
       노드 의미를 덮거나 대체 ✗ — 분담 = D1.2 동일 논리의 형태적 확장).
     · 라벨색 = var(--pr-c)(현재 단계 의미색, #2-4 {rung,key}→--prob-N-key 단일 결선).
     · 신뢰=달(.saga-trust .mn)은 *물리적 별 요소* — 트래커 안 달/신뢰 의미 절대 ✗.
     · 맨숫자/% ✗(노드+라벨만). 모션 ≤0.1s·글로우/네온 ✗(D8). */
  .saga-prob { display: flex; align-items: center; gap: 9px; margin: 7px 0 2px; }
  .saga-prob .pr-track {
    position: relative; flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; justify-content: space-between;
    height: 14px; padding: 0 1px;
  }
  /* 베이스 연결선(무채 faint) — 진척 0에서도 5단계 경로가 보이게(스텝 트래커 스키마) */
  .saga-prob .pr-rail {
    position: absolute; left: 1px; right: 1px; top: 50%;
    height: 3px; transform: translateY(-50%);
    background: var(--faint); border-radius: 2px;
  }
  /* 진척 fill = 응원팀 색 그라데(얼마나 왔나). 노드 의미색과 비공유 = INV-STEP 분담.
     width = 컨테이너 --pr-fill(1단계 0% … 5단계 100%, 4구간). 글로우 ✗. */
  .saga-prob .pr-fill {
    position: absolute; left: 1px; top: 50%;
    width: var(--pr-fill, 0%); height: 3px; transform: translateY(-50%);
    background: linear-gradient(90deg, var(--team-grad-from) 0%, var(--team-grad-to) 100%);
    border-radius: 2px;
    transition: width .09s ease; /* D8 LOCKED ≤0.1s */
  }
  /* 5개 이산 단계 노드. 색 = 자기 단계 LOCKED 의미색 var(--nd-c) (--prob-{n}-{key}).
     도달=의미색 채움 / 현재=의미색+테 강조(.now) / 미도달=무채 점(아직 단계 전). */
  .saga-prob .pr-node {
    position: relative; z-index: 1;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--card);
    box-shadow: inset 0 0 0 2px var(--faint); /* 0-blur inset = 보더(어포던스), 글로우 ✗ */
    transition: box-shadow .09s ease, background .09s ease, transform .09s ease;
  }
  .saga-prob .pr-node.done {
    background: var(--nd-c);
    box-shadow: inset 0 0 0 2px var(--nd-c);
  }
  .saga-prob .pr-node.now {
    background: var(--nd-c);
    box-shadow: inset 0 0 0 2px var(--nd-c), 0 0 0 3px color-mix(in srgb, var(--nd-c) 22%, transparent);
    transform: scale(1.18); /* 현재 단계 = 가장 또렷(스텝 트래커 "현 위치") */
  }
  .saga-prob .pr-node.todo {
    background: var(--card);
    box-shadow: inset 0 0 0 2px var(--faint);
  }
  .saga-prob .pr-label {
    flex: 0 0 auto;
    font-size: 11px; font-weight: 800; letter-spacing: var(--tracking-snug);
    color: var(--pr-c); line-height: 1;
  }
  .saga-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .saga-card.hot .saga-meta { gap: 5px; min-height: 24px; }
  .saga-linked-teams {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
  }
  .saga-linked-team {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    overflow: hidden;
  }
  .saga-card.hot .saga-linked-team {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  .saga-linked-team .saga-linked-logo {
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }
  .saga-stage-chip {
    font-size: 10px;
    font-weight: 800;
    color: var(--inverse-ink);
    background: var(--inverse);
    border-radius: 999px;
    padding: 2px 8px;
    flex: 0 0 auto;
  }
  .saga-card.hot .saga-stage-chip {
    padding: 2px 6px;
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* D7(c) 미검증 라벨 (LOCKED 1) — 명시 라벨만. 검증상태 = 제3 채널:
     prob 5색·신뢰 달·brand accent 비공유, 라이트페이퍼 무채 잉크(D8 색). */
  .saga-unverified {
    font-size: 10px; font-weight: 800; line-height: 1;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 7px;
    flex: 0 0 auto;
  }
  .saga-state {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 850;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    color: var(--muted);
  }
  .saga-state[data-st="credible_contender"] { color: var(--ink-soft); border-color: var(--line-strong); }
  .saga-state[data-st="advanced"] { color: var(--ink); background: var(--surface-soft); border-color: var(--ink-soft); }
  .saga-state[data-st="agreed"] { color: #0f8f62; background: color-mix(in srgb, #0f8f62 7%, var(--card)); border-color: color-mix(in srgb, #0f8f62 28%, var(--line)); }
  .saga-state[data-st="faded"] { color: var(--muted-soft); border-style: dashed; }
  .saga-state[data-st="out"] { color: var(--muted-soft); text-decoration: line-through; text-decoration-color: var(--faint); }
  .saga-trust {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 20px;
    padding: 0 8px 0 6px;
    border-radius: 999px;
    background: var(--trust-soft);
    border: 1px solid var(--trust-line);
    font-size: 10.5px;
    font-weight: 850;
    color: #2f67d8;
    font-variant-numeric: tabular-nums;
  }
  .saga-trust .mn { font-size: 11px; line-height: 1; }
  .saga-trust .xc { color: var(--muted); font-weight: 800; }
  .saga-card.hot .saga-trust {
    height: 19px;
    padding: 0 6px 0 5px;
    gap: 4px;
    font-size: 9.5px;
  }
  .saga-card.hot .saga-trust .xc {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .saga-trust[data-review="verified"]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #0f8f62; flex: 0 0 auto; }
  .saga-trust[data-review="unverified"] { background: var(--surface-soft); border-color: var(--line); color: var(--muted); }
  .saga-trust[data-review="unverified"]::before { content: ""; width: 5px; height: 5px; border-radius: 50%; border: 1.5px solid var(--faint); }
  .saga-trust.candidate { color: var(--muted-soft); border-style: dashed; }
  .saga-myteam {
    display: inline-flex;
    height: 20px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--inverse);
    color: var(--inverse-ink);
    font-size: 10.5px;
    font-weight: 850;
  }
  .saga-more { font-size: 10.5px; font-weight: 800; color: var(--muted); align-self: center; }
  .saga-stages {
    display: grid;
    gap: 5px;
    margin: 6px 0 1px;
  }
  .saga-stages.compact {
    gap: 0;
    margin-top: 5px;
  }
  .saga-stagebar-track {
    position: relative;
    display: block;
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--line);
  }
  .saga-stagebar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--stage-fill, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--stage-grad-start) 0%, var(--stage-grad-mid) 52%, var(--stage-grad-end) 100%);
    transition: width .09s ease;
  }
  .saga-stage-labels {
    display: grid;
    grid-template-columns: repeat(var(--stage-count, 6), minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .saga-stages.compact .saga-stage-labels { display: none; }
  .saga-step {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted-soft);
    text-align: center;
    min-width: 0;
    letter-spacing: var(--tracking-tight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }
  .saga-step.done { color: var(--ink-soft); }
  .saga-step.now { color: var(--ink); }
  .saga-step.todo { color: var(--muted-soft); }
  .saga-detail { display: grid; gap: 10px; }
  .saga-digest { display: grid; gap: 8px; }
  /* 재미/포인트 경제 — 신뢰와 시각 방화벽(인접 형제 금지, blue/green 금지) */
  .fun-zone {
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--best-bg);
    border: 1px solid var(--best-border);
    color: var(--best-ink);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .fun-zone .pred-stake { margin-left: auto; }
  .saga-predict {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    margin-top: 9px;
    display: grid;
    gap: 8px;
  }
  .saga-predict .saga-card {
    flex: none;
    max-width: none;
    width: 100%;
    border: 0;
    padding: 0;
    border-radius: 0;
  }
  .saga-predict-row { margin-top: 2px; }
  /* 라이트 카드 컨텍스트 — base .predict-row(다크 매치카드용 흰색) 가독성 오버라이드 */
  .saga-predict-row.predict-row.compact button {
    border-color: var(--line);
    background: var(--surface-muted);
    color: var(--ink-soft);
  }
  .saga-predict-row.predict-row.compact button.on {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--ink);
    box-shadow: none;
  }
  .saga-predict-row.predict-row.compact span {
    color: var(--muted);
  }
  .fixture-peek {
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 4px;
  }
  .fixture-peek > summary {
    list-style: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    padding: 8px 2px;
  }
  .fixture-peek > summary::-webkit-details-marker { display: none; }
  .fixture-peek > summary::after { content: " ▾"; color: var(--faint); }
  .fixture-peek[open] > summary::after { content: " ▴"; }
  .fixture-peek .scroll.pad { padding: 4px 0 0; }
  .back-row {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 2px 10px;
    cursor: pointer;
    display: block;
  }
  .saga-digest-btn {
    border: 1px solid var(--trust-line);
    background: var(--trust-soft);
    color: #2f67d8;
    font-size: 11px;
    font-weight: 850;
    border-radius: 999px;
    padding: 4px 11px;
    cursor: pointer;
  }
  .saga-actions { display: flex; gap: 8px; margin-top: 4px; }
  .saga-act {
    flex: 1;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-muted);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .saga-act.danger-lite { color: #b23; border-color: color-mix(in srgb, #b23 24%, var(--line)); }
  .saga-related { margin-top: 10px; display: grid; gap: 6px; }
  .saga-related-row,
  .saga-digest-row {
    text-align: left;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    gap: 4px;
  }
  .saga-related-row small { color: var(--muted); font-weight: 700; }
  .saga-digest-row { margin-top: 7px; }
  .saga-digest-row .sd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .entity-hits {
    margin: 2px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .entity-hits .saga-head { margin-bottom: 6px; }
  .entity-hits .ent-row { cursor: pointer; }
  .entity-hits .ent-type {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 850;
    color: var(--muted);
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
  }
