/* 파인시그널@와우넷 /signal 화면 (D56). 기준은 시안 docs/v2/mock/signal/index.html — 시안을 고치면 여기도 같이 */
  :root {
    --bg: #f8f9fc; --ink: #242432; --sub: #6b6b7b; --line: #e8e3ed; --card: #fff; --card-hover: #d9cfe2;
    --head-bg: #fff; --head-line: #eee; --logo: #6d1430; --nav: #2c2c38;
    --wine: #9b173c; --wine-2: #b52253; --wine-soft: #f2dfe8;
    --fs-bg2: #0b1020; --fs-blue: #3d8bff; --fs-cyan: #38e1ff; --fs-violet: #9b6bff;
    --up: #e5484d; --down: #3d7bff;
    --stage-bg: radial-gradient(at 100% 0, #f2dfea, transparent 55%), linear-gradient(125deg, #fff, #f4f3fc);
    --stage-line: #e8e3ed; --stage-ink: #1f2233; --stage-sub: #6b6b7b; --stage-on: #2f5bea;
    --radius: 22px;
    --blink: 1.8s;   /* 깜빡임 한 번 길이 — 화면의 모든 깜빡임이 같이 쓴다 (11-13) */
  }
  /* 어두운 테마: 기기 설정을 따르고, ?theme= 로 강제할 수 있다 */
  :root[data-theme="dark"] {
    --bg: #0b0d14; --ink: #e8ecf5; --sub: #9aa3b5; --line: #232838; --card: #12151f; --card-hover: #333a52;
    --head-bg: #10121a; --head-line: #1d2130; --logo: #f0a5bd; --nav: #d6dbe7;
    --wine: #ec6a90; --wine-2: #e2557e; --wine-soft: #3a1a26;
    --stage-bg: radial-gradient(ellipse at 50% 38%, #0e1a3a 0%, #0b1020 48%, #05070d 85%);
    --stage-line: #1a2033; --stage-ink: #e8ecf5; --stage-sub: #8a93a8; --stage-on: #7fb4ff;
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { margin: 0; }
  body { background: var(--bg); color: var(--ink); font: 16px/1.55 Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
    word-break: keep-all; overflow-x: hidden; position: relative; }
  button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
  a { color: inherit; }

  /* ---------------- 리치클래스 머리 (흉내만) ---------------- */
  .host-top { background: var(--head-bg); border-bottom: 1px solid var(--head-line); }
  .host-top .in { max-width: 1180px; margin: 0 auto; padding: 18px 16px 0; text-align: center; }
  .host-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 26px; color: var(--logo); letter-spacing: -.5px; }
  .host-logo i { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(140deg, #b52253, #5c214c); color: #fff;
    font-style: normal; font-size: 19px; display: grid; place-items: center; }
  .host-nav a:first-child { margin-left: auto; } .host-nav a:last-child { margin-right: auto; }
  .host-nav { display: flex; gap: clamp(14px, 3vw, 34px); margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
  .host-nav::-webkit-scrollbar { display: none; }
  .host-nav a { flex: none; padding: 8px 2px 12px; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--nav); border-bottom: 3px solid transparent; }
  .host-nav a.on { color: var(--wine); border-color: var(--wine); }

  /* ---------------- 본문 ---------------- */
  .wrap { max-width: 1080px; margin: 0 auto; padding: 18px 16px 40px; }
  .crumb { font-size: 13px; color: var(--sub); }
  .intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; }
  .kicker { color: var(--wine); font-weight: 750; font-size: 13px; letter-spacing: .04em; }
  h1 { margin: 2px 0 4px; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.5px; }
  .title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 26px; }
  .cats { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; font-size: clamp(15px, 1.7vw, 18px); font-weight: 700; }
  .cats a { position: relative; padding: 4px 0; color: var(--sub); text-decoration: none; }
  .cats a + a::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 14px; vertical-align: -1px; background: var(--line); }
  .cats a[aria-current="page"] { color: var(--wine); }
  .cats a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px; background: var(--wine); }
  .cats a + a[aria-current="page"]::after { left: 29px; }
  .cats a:hover { color: var(--ink); }
  .lead { margin: 0; color: var(--sub); font-size: 15px; }
  .member { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--card);
    border: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
  .member b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); font-size: 12px; }
  .member em { font-style: normal; color: var(--wine); font-weight: 700; }

  /* ---------------- 무대: 페이지 테마와 상관없이 늘 밝은 바탕 ----------------
     폭에 비례하는 고정 비율 (PC 가로로 조금 넓게, 휴대폰 세로로 길게). 안의 크기는 무대 폭(cqw) 기준 */
  .stage { container-type: inline-size; border-radius: var(--radius); overflow: hidden; isolation: isolate; position: relative;
    --s-ink: #1d2030; --s-sub: #5d6375; --s-on: #2f5bea; --s-guide: #3f4456;
    background: linear-gradient(100deg, #f1efe9 0%, #f5f4f0 28%, #fafafb 55%, #fdfdfe 100%);
    border: 1.5px solid #c9c3b8; color: var(--s-ink);
    box-shadow: 0 0 0 1px rgba(60, 50, 40, .04), 0 0 26px rgba(40, 32, 60, .16), 0 18px 50px rgba(40, 32, 60, .16); }
  :root[data-theme="dark"] .stage { border-color: #4a4f5c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 30px rgba(0, 0, 0, .55), 0 22px 60px rgba(0, 0, 0, .55); }
  .wave-box { position: relative; aspect-ratio: 16 / 10; }           /* PC: 가로로 조금 넓게 */
  @media (max-width: 900px) { .wave-box { aspect-ratio: 4 / 3; } }    /* 태블릿 */
  @media (max-width: 560px) { .wave-box { aspect-ratio: 4 / 5; } }    /* 휴대폰: 세로로 길게 */
  .wave { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; cursor: pointer; }

  /* 캐릭터: 카테고리마다 한 명. 연필 스케치 원본 그대로, 좌우를 뒤집어(오른쪽을 보게) 왼쪽 아래에.
     곱하기 합성: 그림의 흰 종이는 무대 바탕색이 되고 선만 남는다 (종이 테두리 없음).
     z-index 를 주지 않는다 (따로 겹침 영역이 생기면 합성이 바탕과 섞이지 못함). 움직임 없음 */
  .sketches { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .sk { position: absolute; left: 2.5%; bottom: 0; height: 72%; width: auto; transform: scaleX(-1); mix-blend-mode: multiply; }
  .sk.noflip { transform: none; }   /* 롤러코스터 그림은 원본 방향 그대로 */
  .sk[src*="char_daily"], .sk[src*="char_pick"] { left: 24.75%; translate: -50% 0; }   /* 데일리시황 그림: 무대 왼쪽 경계와 목록(왼쪽 끝 49.5%) 사이 한가운데 */
  @media (max-width: 560px) { .sk { left: 0; height: 44%; } .sk[src*="char_daily"], .sk[src*="char_pick"] { left: 20.75%; } }   /* 휴대폰: 목록 왼쪽 끝 41.5% 의 절반 */

  /* 오른쪽 위: 카테고리 이름 + 시황 제목 3개 (날짜 / 제목 / 요약 세 줄, 테두리·원 없이 글자만) */
  .heads { position: absolute; z-index: 2; top: 5.5%; right: 3.5%; width: 47%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1cqw; }
  .heads-title { margin: 0 0 .2cqw; font-size: clamp(12px, 2.1cqw, 24px); font-weight: 800; letter-spacing: .04em; color: var(--s-on); }
  .heads-title::after { content: ""; display: block; width: 2.6cqw; min-width: 18px; height: 3px; margin-top: .8cqw; border-radius: 2px;
    background: linear-gradient(90deg, #2f5bea, #7c3aed); }
  .head { position: relative; display: block; min-width: 0; padding: .3cqw 0; color: var(--s-ink); transition: opacity .25s; }
  /* 흐림: 데일리시황은 가장 최근 것만 또렷하게, 신규상장주는 당일·전일 상장만 또렷하게, 롤러코스터는 모두 또렷하게 (JS 가 dim 을 붙인다) */
  .head.dim { opacity: .45; }
  .head.dim:hover, .head.playing { opacity: 1; }
  .item.dim { opacity: .5; } .item.dim:hover, .item.dim.playing { opacity: 1; }
  /* Upload 시각 (D67): 가장 새 글 = 붉은 알약에 흰 글씨 깜빡임, 이전 글 = 회색 알약 */
  .upl { display: inline-block; flex: none; white-space: nowrap; margin-left: .35em; padding: .05em .55em; border-radius: 999px; background: #9aa0a6; color: #fff;
         font-weight: 700; font-size: .66em; line-height: 1.45; letter-spacing: .01em; font-variant-numeric: tabular-nums; vertical-align: .1em; }
  .upl.new { background: #e5322d; animation: upl-blink var(--blink) ease-in-out infinite; }
  @keyframes upl-blink { 50% { opacity: .35; } }
  @media (prefers-reduced-motion: reduce) { .upl.new { animation: none; } }
  /* 가장 최근: 굵은 제목 글자 아래쪽 절반에 옅은 빨간 띠(형광펜처럼, 그라데이션·테두리 없음)가 천천히 깜빡인다 */
  .head.latest b { position: relative; width: fit-content; max-width: 100%; }
  .head.latest b::before { content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; top: 52%; bottom: .04em; border-radius: .08em;
    background: rgba(229, 72, 77, .3); animation: glow var(--blink) ease-in-out infinite; }
  @keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
  .head .d { font-style: normal; display: flex; align-items: center; gap: 1cqw; font-size: clamp(11.5px, 2cqw, 23px); font-weight: 600; color: var(--s-sub); }
  .head b { display: flex; flex-wrap: wrap; row-gap: .4em; align-items: center; gap: .8cqw; font-size: clamp(14px, 3.1cqw, 36px); line-height: 1.25; letter-spacing: -.03em; }
  .head .sub { display: block; margin-top: .2cqw; font-size: clamp(12px, 2.2cqw, 25px); color: var(--s-sub);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .head:hover b { color: var(--s-on); }
  .head.playing b { color: var(--s-on); }
  .head.latest b { color: #111; }
  .head .eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
  .head.playing .eq { display: inline-flex; }
  .eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq .9s infinite ease-in-out; }
  .eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
  @keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
  @media (max-width: 560px) {  /* 휴대폰: 제목은 오른쪽 칸, 캐릭터는 왼쪽 아래 */
    .heads { top: 5%; right: 4.5%; width: 54%; gap: 3cqw; }
    .heads-title { font-size: clamp(12px, 4.2cqw, 18px); margin-bottom: 0; }
    .head .d { font-size: clamp(11px, 3.9cqw, 16px); } .head b { font-size: clamp(14px, 5.8cqw, 24px); } .head span { font-size: clamp(12px, 4.3cqw, 18px); }
  }
  @media (prefers-reduced-motion: reduce) { .head.latest b::before, .prompter.on .pr-dot { animation: none; } }
  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

  /* 제목 옆 표시: 상장 +N일 · 상/하한가 */
  .tag { display: inline-flex; align-items: center; flex: none; padding: .14em .55em; border-radius: 999px; font-size: .6em; font-weight: 800;
    letter-spacing: .04em; color: #fff; background: #e8590c; line-height: 1.35; }
  .tag.ipo { background: #5b5bd6; font-size: .55em; }
  .tag.lim-up { background: #e5484d; } .tag.lim-down { background: #2f6bff; }
  .tag.lim-up, .tag.lim-down { font-size: .46em; padding: .12em .5em; letter-spacing: .02em; }   /* 상·하한가는 작게 (11-13) */
  /* 롤러코스터: 급등 = 빨간 우상향 화살표 + 빨간 종목명, 급락 = 파란 우하향 화살표 + 파란 종목명 */
  .up { color: #e5484d !important; } .down { color: #2f6bff !important; }
  .arrow { flex: none; width: .95em; height: .95em; }
  .rate { font-size: .72em; font-weight: 800; font-variant-numeric: tabular-nums; }

  /* Waveform 아래 사용 안내 (상태에 따라 문구가 바뀜) */
  /* Waveform 아래 안내: 오른쪽 정렬 (가운데면 캐릭터 그림과 겹쳐 안 보임, 11-13) */
  /* 11-13: 파형과 겹치지 않게 상자 아래 띠로 옮김 — 왼쪽 안내(작게) · 오른쪽 재생 위치 */
  .stage-foot { display: flex; align-items: center; gap: 2.4cqw; min-height: 2.6em; padding: .55em 3.5%; border-top: 1px solid rgba(60, 50, 40, .08);
    font-size: clamp(14px, 1.9cqw, 20px); }   /* 11-13: 안내는 짧게 · 크게 · 눈에 띄게 */
  .guide { flex: 1; min-width: 0; margin: 0; pointer-events: none; font-size: 1em; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; color: var(--s-guide); }
  .guide { font-weight: 700; color: var(--s-ink); }
  .guide b { color: var(--s-on); font-weight: 800; }
  @media (max-width: 560px) { .stage-foot { flex-wrap: wrap; row-gap: .35em; padding: .5em 4.5%; font-size: clamp(13px, 4cqw, 16px); } }

  /* ---------------- 롤러코스터: 무대 위 종목 검색 (최근 급등락 종목만) ---------------- */
  .intro > div { flex: 1; min-width: 0; }
  .rsearch { margin-left: auto; width: min(320px, 100%); align-self: center; visibility: hidden; }   /* 롤러코스터에서만 보인다 (자리는 늘 차지) */
  .rsearch.on { visibility: visible; }
  @media (max-width: 560px) { .rsearch { width: 100%; margin-top: 6px; } }
  .rs-box { position: relative; }
  .rs-box input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card);
    font: inherit; font-size: 15px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
  .rs-box input:focus { border-color: #2f5bea; box-shadow: 0 0 0 4px rgba(47, 91, 234, .12); }
  .rs-box > svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; fill: none; stroke: var(--sub); stroke-width: 2.2; pointer-events: none; }
  .rs-list { position: absolute; z-index: 20; right: 0; width: max(100%, 340px); max-width: calc(100vw - 32px); top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; display: none;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(20, 20, 40, .16); max-height: 360px; overflow: auto; }
  .rs-box.open .rs-list { display: block; }
  .rs-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 10px; text-align: left; font-size: 16.5px; color: var(--ink); }
  .rs-opt:hover, .rs-opt.act { background: rgba(47, 91, 234, .08); }
  .rs-opt b { font-weight: 750; } .rs-opt .code, .rs-opt .when { font-size: 13px; color: var(--sub); }
  .rs-opt .rate { margin-left: auto; font-size: 15px; }
  .rs-empty { padding: 14px 12px; font-size: 15px; color: var(--sub); }

  /* ---------------- 시황 원고: 무대 아래, 재생에 맞춰 아래에서 위로 흐름 ---------------- */
  .prompter { margin-top: 14px; padding: 14px 20px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
  .pr-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
  .pr-head b { color: var(--ink); font-size: 15px; }
  /* 리포트 상세보기 (11-13): 원고 칸 머리 오른쪽, 초록 바탕 하얀 글씨 (시황 = 네이버 블로그, 그 밖 = 리포트 팝업) */
  .pr-rep { margin-left: auto; flex: none; padding: .55em 1.3em; border-radius: 999px; background: #03c75a; color: #fff; font-size: clamp(15px, 1.7vw, 20px); font-weight: 800;
    box-shadow: 0 4px 14px rgba(3, 199, 90, .28);
    text-decoration: none; cursor: pointer; white-space: nowrap; }
  .pr-rep:hover { filter: brightness(1.06); }
  .pr-rep[hidden] { display: none; }
  /* 시황 상세보기 (D62·D63): 다 듣고 나면 원고 칸 아래에 나온다 → 네이버 블로그 글. 무대 안내 줄에도 같은 링크 */
  .pr-more { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 18px; border-radius: 14px;
    text-decoration: none; color: #fff; background: #03c75a; animation: more-in .35s ease-out; }
  .pr-more span { display: grid; gap: 2px; min-width: 0; }
  .pr-more b { font-size: 17px; } .pr-more small { font-size: 13px; opacity: .9; }
  .pr-more i { margin-left: auto; font-style: normal; font-size: 26px; line-height: 1; }
  .pr-more:hover { filter: brightness(1.06); }
  .pr-more[hidden] { display: none; }
  @keyframes more-in { from { opacity: 0; transform: translateY(6px); } }
  .guide a { pointer-events: auto; }
  .g-more { color: #03a94d; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
  .pr-dot { width: 8px; height: 8px; border-radius: 50%; background: #c8cbd4; }
  .prompter.on .pr-dot { background: #e5484d; animation: blink var(--blink) ease-in-out infinite; }
  .pr-view { position: relative; height: clamp(150px, 19vw, 210px); overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
  .pr-text { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
  .pr-text p { margin: 0 0 .55em; font-size: clamp(17px, 2vw, 23px); line-height: 1.6; font-weight: 500; color: var(--sub); opacity: .55;
    transition: color .4s, opacity .4s; }
  .pr-text p.on { color: var(--ink); opacity: 1; font-weight: 650; }
  .pr-text p.done { opacity: .35; }
  .pr-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 15px; color: var(--sub); }
  .prompter.on .pr-empty { display: none; }

  /* ---------------- 목록 (최신이 위): 지금 카테고리 것만, 무대 안 제목과 같은 형식(날짜 / 제목 / 요약), 상자 없이 가는 선으로 구분 ---------------- */
  .list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 2px 4px; }
  .list-head h3 { margin: 0; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -.02em; }
  .list-head span { font-size: 14px; color: var(--sub); }
  /* 11-13: 그리드 칸이 한 줄 요약(nowrap) 길이만큼 늘어나 페이지가 화면보다 넓어지던 문제 → 칸을 화면 폭에 고정 */
  .list { display: grid; grid-template-columns: minmax(0, 1fr); }
  .item { display: block; width: 100%; min-width: 0; padding: 16px 2px 17px; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
  .item .d { display: flex; align-items: center; gap: 10px; font-size: clamp(14px, 1.5vw, 17px); font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }
  .item .dur { margin-left: auto; font-size: .92em; font-weight: 500; }
  .item b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font-size: clamp(19px, 2.3vw, 26px); line-height: 1.3; letter-spacing: -.03em; }
  .item b .rate { margin-left: 2px; }
  .item .s { display: block; margin-top: 3px; font-size: clamp(15px, 1.7vw, 19px); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .item:hover b, .item.playing b { color: #2f5bea; }
  :root[data-theme="dark"] .item:hover b, :root[data-theme="dark"] .item.playing b { color: #7fb4ff; }
  .item .eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
  .item.playing .eq { display: inline-flex; }

  .note { margin-top: 26px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--sub); }
  .host-foot { margin-top: 30px; border-top: 1px solid var(--head-line); background: var(--head-bg); }
  .host-foot .in { max-width: 1180px; margin: 0 auto; padding: 22px 16px 110px; font-size: 13px; color: var(--sub); }
  /* 시안 확인용 맨 위 줄: 시안 표시 + 테마 선택 (서비스에는 넣지 않는다) */
  .mock-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; padding: 6px 12px; background: #3a0b1b; }   /* 좁은 폭에서는 두 줄로 (11-13) */
  .mock-flag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(155, 23, 60, .9); color: #fff; white-space: nowrap; }
  .mock-theme { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(155, 23, 60, .9); }
  .mock-theme button { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; color: rgba(255, 255, 255, .8); white-space: nowrap; }
  .mock-theme button[aria-pressed="true"] { background: #fff; color: #9b173c; }

  /* ---------------- 아래 미니 플레이어 (무대가 화면 밖일 때) ---------------- */
  .mini { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); z-index: 50;
    width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 20px;
    background: rgba(8, 12, 26, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #e8ecf5;
    box-shadow: 0 14px 40px rgba(5, 7, 13, .35); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
  .mini.show { transform: translate(-50%, 0); }
  .mini canvas { flex: none; width: 92px; height: 44px; border-radius: 12px; background: radial-gradient(ellipse at 50% 50%, #0e1a3a, #05070d); }
  .mini .mt { flex: 1; min-width: 0; }
  .mini .mt b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini .mt small { font-size: 11.5px; color: #8a93a8; }
  .mini .mp { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--fs-blue), var(--fs-violet)); }
  .mini .mp svg { width: 16px; height: 16px; fill: #fff; }

  /* 신규상장주 (D68): 무대에 오늘 상장이 없을 때 · 목록이 빌 때 */
  /* 비었을 때: 제목(파란 글씨)은 위에 그대로, 안내 문구는 남은 여백 가운데에 크게 깜빡 */
  .heads.empty { bottom: 24%; grid-template-rows: auto 1fr; }
  .heads-empty { align-self: center; justify-self: center; margin: 0; text-align: center; font-size: clamp(16px, 3.2cqw, 36px);
                 font-weight: 700; letter-spacing: -.02em; color: var(--s-ink); animation: upl-blink var(--blink) ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) { .heads-empty { animation: none; } }
  .list-empty { margin: 0; padding: 22px 2px; color: var(--sub); border-bottom: 1px solid var(--line); }

  /* 리포트 팝업 (D68, 모양은 임시) */
  .rp { width: min(620px, calc(100% - 32px)); max-height: min(86vh, 860px); padding: 0; border: 0; border-radius: var(--radius);
        background: var(--card); color: var(--ink); box-shadow: 0 24px 70px rgba(10, 12, 30, .28); overflow: hidden; }
  .rp::backdrop { background: rgba(12, 14, 24, .5); backdrop-filter: blur(2px); }
  .rp[open] { display: flex; }
  .rp-card { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
  .rp-head { position: relative; padding: 22px 56px 16px 24px; border-bottom: 1px solid var(--line); }
  .rp-d { margin: 0; font-size: 14px; font-weight: 600; color: var(--sub); }
  .rp-at { margin-left: 6px; font-weight: 500; }
  .rp-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; font-size: clamp(21px, 3vw, 26px); letter-spacing: -.03em; }
  .rp-sub { margin: 6px 0 0; font-size: 15px; color: var(--sub); }
  .rp-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--sub); }
  .rp-x:hover { background: var(--line); color: var(--ink); }
  html.rp-open, html.rp-open body { overflow: hidden; }   /* 팝업이 열린 동안 뒤 본문 스크롤 막기 */
  .rp-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 24px 18px; font-size: 16px; line-height: 1.7; }
  .rp-body h4 { margin: 18px 0 6px; font-size: 17px; color: var(--wine); }
  .rp-body p { margin: 6px 0; }
  .rp-body ul { margin: 4px 0; padding-left: 1.2em; }
  .rp-body li { margin: 2px 0; }
  .rp-none { color: var(--sub); }
  .rp-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
  .rp-play { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 16px; font-weight: 700; }
  .rp-play svg { width: 18px; height: 18px; }
  .rp-play:disabled { opacity: .4; cursor: default; }
  .rp-note { font-size: 13px; color: var(--sub); }
  @media (max-width: 560px) { .rp-head { padding: 18px 50px 14px 18px; } .rp-body { padding: 4px 18px 14px; font-size: 15px; } .rp-foot { padding: 12px 18px 16px; } }

  /* 포착의 달인 표시 (D69): 종목명 앞 아주 작은 둥근 표시, 종류마다 색 */
  .pm { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: .18em .6em; border-radius: 999px;
        font-size: .42em; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: #fff; vertical-align: .2em; margin-right: .1em; }
  .pm-closing { background: #6d28d9; }     /* 종가의달인: 보라 */
  .pm-morning { background: #ea8a00; }     /* 모닝포착: 주황 */
  /* 롤러코스터 확인 시점 표시 (D70-1) */
  .pm-rpre { background: #0f766e; }     /* 프리장: 청록 */
  .pm-ram { background: #2563eb; }      /* 오전장: 파랑 */
  .pm-rpm { background: #475569; }      /* 오후장: 회청 */
  /* 롤러코스터 확인 시각 "HH:MM 현재" (D70-2) */
  .chk { margin-left: .35em; font-size: .85em; color: #8a94a3; font-weight: 400; white-space: nowrap; }
  /* 무대 재생 위치 (11-13): 안내 문구 아래 얇은 바 + 남은 시간 / 전체 시간. 재생할 항목이 있을 때만 */
  .wbar { flex: 0 0 34%; display: flex; align-items: center; gap: 10px; pointer-events: none; }
  .wbar[hidden] { display: none; }
  .wbar-track { flex: 1; height: 3px; border-radius: 3px; background: rgba(47, 91, 234, .16); overflow: hidden; }
  .wbar-track i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #2f5bea, #0e9ec2); }
  .wbar-time { flex: none; font-size: .8em; font-weight: 700; color: var(--s-sub); font-variant-numeric: tabular-nums; }
  @media (max-width: 560px) { .wbar { flex: 1 0 100%; gap: 8px; } }   /* 휴대폰: 안내 아래 줄에 바를 가득 */
  .head .d .pm { font-size: .68em; vertical-align: 0; margin-right: 0; }   /* 롤러코스터 무대: 날짜 줄의 확인 시점 표시 (11-13) */
  .rp-play .eq.on { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; margin-right: .35em; }   /* 팝업 듣기 버튼: 재생 중 표시 (멈춤은 파형으로만, D73-1) */
  /* 작은 둥근 표시 크기 맞춤 (11-13): 데일리시황 'HH:MM Upload' 와 롤러코스터 상·하한가를 같은 크기로.
     무대 안은 무대 폭(cqw)에 따라 줄고, 좁은 화면에서는 더 작게 */
  .heads { --chip: clamp(6px, 1.45cqw, 15px); }
  .list { --chip: 11px; }
  .upl, .tag.lim-up, .tag.lim-down, .head span.upl { font-size: var(--chip, .46em); padding: .15em .6em; line-height: 1.4; letter-spacing: .02em; font-weight: 800; }
  @media (max-width: 560px) { .heads { --chip: clamp(6px, 2.1cqw, 10px); } .list { --chip: 9.5px; } }
  /* 무대 날짜 줄: 날짜는 한 줄로, 자리가 모자라면 표시·시각이 다음 줄로 (11-13) */
  .head .d { flex-wrap: wrap; row-gap: 2px; white-space: nowrap; }
  /* 리포트 팝업: 일봉 20개(왼쪽 절반) + 종목 분석 듣기(오른쪽). 듣는 중에는 작은 파형 + 진행 바 (11-13) */
  .rp-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .rp-candles { height: 120px; }
  .rp-candles svg { display: block; width: 100%; height: 100%; }
  .rp-listen { display: flex; flex-direction: column; justify-content: center; min-width: 0; height: 120px; }
  .rp-listen .rp-play { justify-content: center; align-self: stretch; padding: 14px 18px; font-size: 17px; }
  .rp-listen .rp-play[hidden], .rp-live[hidden] { display: none; }
  .rp-live { display: grid; gap: 6px; }
  .rp-wave { display: block; width: 100%; height: 84px; cursor: pointer; }
  .rp-bar { display: flex; align-items: center; gap: 8px; }
  .rp-time { flex: none; font-size: 12px; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
  @media (max-width: 560px) {
    .rp-chart { gap: 12px; padding: 12px 18px; }
    .rp-candles, .rp-listen { height: 100px; }
    .rp-wave { height: 66px; }
    .rp-listen .rp-play { padding: 12px 10px; font-size: 15px; }
  }
  /* 휴대폰(11-13): 메뉴 4개가 한 줄에 들어가게 간격·글씨를 폭에 맞춰 줄인다 (375px 에서 '롤러코스터'가 다음 줄로 넘어가던 것) */
  @media (max-width: 560px) {
    .cats { flex-wrap: nowrap; font-size: clamp(13px, 4vw, 16px); letter-spacing: -.02em; }
    .cats a { white-space: nowrap; }
    .cats a + a::before { margin: 0 clamp(7px, 2.4vw, 12px); }
    .cats a + a[aria-current="page"]::after { left: calc(clamp(7px, 2.4vw, 12px) * 2 + 1px); }
  }
  /* 11-13: 안내 문구가 빈 자리(띠 왼쪽 ~ 재생 바 앞)를 좌우로 천천히 오가며 눈에 띄게. 자리가 모자라면 움직이지 않는다 */
  /* 11-13 (D73-11): 계속 오가던 움직임 대신 — 문구가 바뀌거나 진행 바가 나타나고 사라질 때 왼쪽에서 탄력 있게 미끄러져 와
     빈 자리의 가운데(진행 바가 있으면 바 앞 여백의 가운데)에 자리 잡고 멈춘다 */
  .guide { overflow: hidden; text-align: center; }
  .g-sway { display: inline-block; animation: g-in .9s cubic-bezier(.34, 1.56, .64, 1) both; }
  @keyframes g-in { from { opacity: 0; transform: translateX(-45%); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .g-sway { animation: none; } }
  /* 11-13: '리포트 상세보기' 버튼을 크게 — 원고 칸 제목은 길면 말줄임으로 양보 */
  .pr-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @media (max-width: 560px) { .pr-rep { font-size: 14.5px; padding: .5em 1em; } }
  /* 플레이 버튼 (무대 제목 앞, D73-8·10~13): 원과 ▶·‖ 를 한 SVG 에 그려 중심이 어긋나 보이지 않게, 단색·그림자 사방 고르게
     처음 = 파란 원 흰 ▶ · 듣는 중 = 파란 원 흰 ‖ + 둘레가 퍼짐 · 일시정지 = 흰 원 파란 테두리 파란 ▶. 누르면 재생 ↔ 일시정지 */
  .hplay { flex: none; display: inline-block; width: 1.05em; height: 1.05em; border-radius: 50%; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
  .hplay svg { display: block; width: 100%; height: 100%; }
  .hplay .hp-c { fill: #2f5bea; }
  .hplay path { fill: #fff; }
  .hplay .hp-pause, .head.playing .hplay .hp-play { display: none; }
  .head.playing .hplay .hp-pause { display: inline; }
  .head.playing .eq { display: none; }               /* 무대에서는 제목 뒤 작은 막대 대신 플레이 버튼의 ‖ */
  .head:hover .hplay, .head:focus-visible .hplay { transform: scale(1.1); box-shadow: 0 0 0 .14em rgba(47, 91, 234, .2); }
  .head.playing .hplay { animation: hplay-ring 1.6s ease-out infinite; }
  @keyframes hplay-ring { from { box-shadow: 0 0 0 0 rgba(47, 91, 234, .45); } to { box-shadow: 0 0 0 .5em rgba(47, 91, 234, 0); } }
  .head.paused .hplay .hp-c { fill: #fff; stroke: #2f5bea; stroke-width: 1.5; }
  .head.paused .hplay path { fill: #2f5bea; }
  @media (prefers-reduced-motion: reduce) { .head.playing .hplay { animation: none; } }
  .stage { scroll-margin-top: 8px; }   /* 재생할 때 화면 맨 위로 올리면서 위에 살짝 여백 (D73-14) */
