/* ==========================================================================
   ClareDEX — 1안 · 럭셔리 에디토리얼
   warm ivory · midnight navy · champagne gold / single column
   + 다크 시세 리본 · 시그널 컬러(S/A/B) · 보석 톤 배지
   ========================================================================== */

:root {
  --paper: #faf8f4;
  --paper-2: #f5f1e9;
  --paper-3: #efe9dd;
  --card: #ffffff;

  /* midnight — 다크 시세 리본·'오늘의 한 장'·모달 */
  --navy: #0b1120;
  --navy-2: #152238;
  --navy-3: #1d2d4a;

  /* 텍스트 대비: 헤드라인 → 본문 → 보조 (PR #51: 보조 문구도 4.5:1 이상) */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --body: #1f2937;
  --muted: #475569;
  --faint: #64748b;

  --line: #e9e3d7;
  --line-2: #d9d1bf;

  /* 샴페인 골드 */
  --gold: #f2c94c;
  --gold-hover: #eabf3c;
  --gold-deep: #9a7b22;
  --gold-champagne: #d4af5f;
  --gold-hairline: rgba(242, 201, 76, 0.35);

  /* 시그널 컬러: S 루비 · A 샴페인 · B 코발트 */
  --signal: #dc2626;
  --ruby: #dc2626;
  --ruby-ink: #b91c1c;
  --amber: #d97706;
  --cobalt: #2563eb;
  --cobalt-ink: #1d4ed8;

  /* 시세 리본 */
  --emerald: #10b981;
  --coral: #fb7185;
  --up: #10b981;
  --down: #fb7185;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 26px 52px -38px rgba(15, 23, 42, 0.45);
  --shadow-lift: 0 2px 3px rgba(15, 23, 42, 0.05), 0 26px 46px -30px rgba(15, 23, 42, 0.32);
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1080px;
  --column: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 한글 조판: 어절(단어) 안에서 끊지 않는다 — '면/제하는', '합니/다.' 같은
     음절 중간 절단과 1~2글자 고아 줄을 막는다. 긴 영문·URL 은 단어가
     넘칠 때만 break-word 로 끊긴다. (2026-12-05 줄바꿈 전수 수정) */
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 긴 문단은 마지막 줄에 한 단어만 남기지 않도록, 제목은 줄 길이를 고르게. */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, dd, dt, figcaption, blockquote, summary { text-wrap: pretty; }
/* 의미 단위로 묶어야 하는 토큰(숫자+단위, 짧은 라벨)에 붙이는 유틸 */
.nowrap, .nw { white-space: nowrap; }
/* 히어로 뒤 샴페인·미드나잇 앰비언트 글로우 (지면 전체에 은은하게) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 40% at 50% -8%, rgba(242, 201, 76, 0.20), rgba(242, 201, 76, 0) 72%),
    radial-gradient(42% 32% at 90% 0%, rgba(29, 45, 74, 0.10), rgba(29, 45, 74, 0) 74%),
    radial-gradient(48% 34% at 6% 4%, rgba(212, 175, 95, 0.13), rgba(212, 175, 95, 0) 74%);
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: #f7e6b0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.col { width: 100%; max-width: var(--column); margin: 0 auto; padding: 0 24px; }
/* 메인 섹션은 한 컬럼(720px), 히어로만 2단을 위해 넓게 (PR #51) */
main { display: block; }
main > section {
  width: 100%; max-width: var(--column);
  margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px;
}
main > section.hero { max-width: var(--max); padding-left: 28px; padding-right: 28px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 건너뛰기 링크: 평소엔 화면 밖에 있고 키보드 Tab 으로만 나타난다 */
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  transform: translateY(-180%);
  padding: 10px 16px; border-radius: 8px;
  background: var(--navy); color: #fbfaf6; font-size: 13px; font-weight: 600;
  text-decoration: none; box-shadow: 0 10px 24px -12px rgba(11, 17, 32, .8);
  transition: transform .18s ease;
}
.skip-link:focus { transform: none; outline: 2px solid var(--gold); outline-offset: 2px; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 95, 0.45), transparent);
  pointer-events: none;
}
.header-inner { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 9px; height: 9px; flex: none; border-radius: 1.5px;
  background: linear-gradient(135deg, #ffe9a6, var(--gold) 55%, #c99b2c);
  transform: rotate(45deg);
  box-shadow: 0 0 10px -2px rgba(242, 201, 76, 0.75);
}
.brand-name {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--ink);
}
.brand-sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  color: var(--faint); padding-left: 10px; margin-left: 2px;
  border-left: 1px solid var(--line-2); text-transform: uppercase;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  text-decoration: none; font-size: 13.5px; color: var(--muted);
  padding: 4px 0; transition: color .15s;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold-champagne), rgba(242, 201, 76, 0));
  transition: right .22s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-quiet { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.link-quiet:hover { color: var(--ink); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; font-weight: 600; line-height: 1;
  padding: 12px 20px; font-size: 14px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* 광택 있는 골드 CTA */
.btn-gold {
  background: linear-gradient(180deg, #ffe08a 0%, var(--gold) 48%, #e3b52c 100%);
  color: #191f2b;
  border-color: rgba(154, 123, 34, 0.32);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 10px 24px -14px rgba(242, 201, 76, 0.85);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #ffe9a0 0%, #f6d159 48%, #eabc33 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 14px 30px -14px rgba(242, 201, 76, 0.95);
  transform: translateY(-1px);
}
.btn-gold:active { transform: translateY(0); }
.btn-dark { background: var(--navy); color: #fbfaf6; }
.btn-dark:hover { background: var(--navy-2); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: #9d3a31; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); background: #fff; }
.btn-sm { padding: 9px 15px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --------------------------------------------------------------- ticker */
/* 다크 미드나잇 시세 리본 */
.ticker {
  background: linear-gradient(180deg, #0b1120 0%, #0e1626 62%, #0b1120 100%);
  border-top: 1px solid rgba(242, 201, 76, 0.14);
  border-bottom: 1px solid rgba(242, 201, 76, 0.20);
  overflow: hidden;
  box-shadow: 0 18px 34px -26px rgba(11, 17, 32, 0.9), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.ticker-inner {
  display: flex; align-items: center; height: 38px; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  font-size: 11.5px; color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}
.ticker-inner::-webkit-scrollbar { display: none; }
.ticker-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .18em;
  color: #6ee7b7; padding-right: 14px; margin-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
}
.live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55), 0 0 8px rgba(16, 185, 129, 0.8); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0), 0 0 8px rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 8px rgba(16, 185, 129, 0.8); }
}
.tick {
  display: inline-flex; align-items: baseline; gap: 5px; flex: none;
  padding: 0 14px; border-right: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
}
.tick b { font-weight: 500; color: #94a3b8; font-size: 11px; letter-spacing: .04em; }
.tick em {
  font-style: normal; font-size: 10px; font-family: var(--mono); font-weight: 500;
  color: #e2e8f0; font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.tick em.up { color: var(--emerald); background: rgba(16, 185, 129, 0.16); }
.tick em.down { color: var(--coral); background: rgba(244, 63, 94, 0.16); }
.tick-skeleton { color: #64748b; }
/* 공포탐욕 지표 색상점 */
.fg-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #94a3b8; vertical-align: 1px; margin: 0 1px;
}
.fg-dot.extreme-fear { background: #ef4444; box-shadow: 0 0 7px rgba(239, 68, 68, 0.7); }
.fg-dot.fear { background: #f97316; box-shadow: 0 0 7px rgba(249, 115, 22, 0.55); }
.fg-dot.neutral { background: #facc15; box-shadow: 0 0 7px rgba(250, 204, 21, 0.5); }
.fg-dot.greed { background: #34d399; box-shadow: 0 0 7px rgba(52, 211, 153, 0.55); }
.fg-dot.extreme-greed { background: #10b981; box-shadow: 0 0 7px rgba(16, 185, 129, 0.7); }
.ticker-note {
  margin-left: auto; flex: none; padding-left: 14px;
  font-size: 10px; color: #64748b; white-space: nowrap;
}

/* --------------------------------------------------------------- section label */
.section-label {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 14px; font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em;
}
.section-label::before {
  content: ""; width: 6px; height: 6px; flex: none;
  background: linear-gradient(135deg, #ffe9a6, var(--gold-champagne));
  transform: rotate(45deg); border-radius: 1px;
  box-shadow: 0 0 8px -1px rgba(242, 201, 76, 0.8);
}
.section-label::after {
  content: ""; display: none;
}

/* --------------------------------------------------------------- hero */
/* 왼쪽 글 1단 · 오른쪽 폰 1대 — 모바일에서는 위아래 1단 (PR #51) */
.hero {
  padding-top: 56px;
  padding-bottom: 20px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}
.hero-grid {
  display: contents;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .24em; color: var(--gold-deep);
  font-weight: 700; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 95, 0), var(--gold-champagne));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold-champagne), rgba(212, 175, 95, 0)); }
.eyebrow .bar { display: none; }
@media (max-width: 560px) {
  .eyebrow { font-size: 10px; letter-spacing: .16em; }
  .auth-head .eyebrow::before, .auth-head .eyebrow::after { display: none; }
}
.hero h1 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(30px, 3.5vw, 44px); line-height: 1.24; letter-spacing: -0.045em;
  margin: 18px 0 0; max-width: 15em; color: #0b1120;
  position: relative; text-wrap: balance; word-break: keep-all;
}
/* 3줄 고정 히어로 (PR #69)
   줄마다 <span class="hero-line"> 하나 — 가장 긴 2번째 줄(23자)이 모바일 390px 과
   데스크톱 2단(좌 527px) 어느 쪽에서도 한 줄에 들어가도록 글자 크기를 컬럼 폭(cqw)에 맞춰 정한다.
   6.05cqw 는 그 줄의 실측 폭(글자 크기의 15.9배)에 4% 여유를 둔 값이다. */
.hero-copy { container-type: inline-size; }
.hero h1 > .hero-line {
  display: block;
  font-size: clamp(17px, 5.2vw, 29px);
  line-height: 1.22; letter-spacing: -0.045em;
}
@supports (font-size: 1cqw) {
  .hero h1 > .hero-line { font-size: min(6.05cqw, 32px); }
}
/* 360px 이하는 글자가 더 작아지면 읽기 어려우니 그 줄만 자연스럽게 접히게 둔다(넘침 없음) */
@media (min-width: 361px) {
  .hero h1:has(.hero-line + .hero-line) > .hero-line { white-space: nowrap; }
}
.hero-rule {
  display: block; width: 56px; height: 2px; margin: 26px auto 0;
  background: linear-gradient(90deg, rgba(212, 175, 95, 0), var(--gold) 30%, var(--gold-champagne) 50%, var(--gold) 70%, rgba(212, 175, 95, 0));
  border-radius: 2px;
  box-shadow: 0 0 12px -1px rgba(242, 201, 76, 0.7);
}
.hero-sub {
  margin: 16px 0 0; font-size: 16.5px; color: #334155; letter-spacing: -0.005em;
  max-width: 34em; line-height: 1.65; word-break: keep-all;
}
.hero-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-cta-main {
  font-size: 15.5px; font-weight: 800; padding: 13px 22px;
  box-shadow: 0 18px 34px -22px rgba(154, 123, 34, 0.9);
}
.hero-cta-alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.hero-cta-alt:hover { border-color: var(--gold-champagne); background: #fffdf5; transform: translateY(-1px); }
.hero-cta-fine { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: -0.005em; }
.hero-link-quiet { font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.hero-link-quiet:hover { color: var(--ink); border-bottom-color: var(--line-2); }

/* 오늘 확인된 속보 1건 — 히어로 왼쪽 아래의 작은 증거 카드 */
.hero-proof {
  margin-top: 26px; padding: 14px 16px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--gold-champagne);
  border-radius: 10px; background: rgba(255, 255, 255, 0.72);
}
.hero-proof-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gold-deep);
}
.hero-proof-live { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof-count { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.hero-proof-title {
  margin: 0; font-size: 15px; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; color: #0b1120;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-proof-body {
  margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: #334155;
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-proof-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 8px 0 0; font-size: 11.5px; color: var(--muted);
}
.hero-proof-foot a { flex: none; color: var(--gold-deep); font-weight: 700; text-decoration: none; }
.hero-proof-foot a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- featured */
/* '오늘의 한 장' — 미드나잇 그라데이션 · 샴페인 헤어라인 · 금빛 결 */
.featured {
  position: relative; overflow: hidden;
  margin-top: 46px;
  background: linear-gradient(135deg, #0b1120 0%, #152238 58%, #1d2d4a 100%);
  color: #f7f5ef;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius); padding: 36px 38px 34px;
  box-shadow: 0 30px 70px -44px rgba(11, 17, 32, 0.95), 0 1px 0 rgba(255, 255, 255, 0.07) inset;
}
.featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 88% -10%, rgba(242, 201, 76, 0.20), rgba(242, 201, 76, 0) 62%),
    radial-gradient(60% 80% at 6% 106%, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0) 66%);
}
.featured::after {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242, 201, 76, 0), rgba(255, 231, 160, 0.75), rgba(242, 201, 76, 0));
  pointer-events: none;
}
.featured > * { position: relative; z-index: 1; }
.featured-label {
  margin: 0 0 14px; font-size: 11.5px; letter-spacing: .04em; color: var(--gold);
  font-weight: 500; line-height: 1.9;
}
.featured-label .dot { opacity: .45; margin: 0 5px; }
.featured-label .grade-tag { color: #ffb2a7; }
/* 다크 카드 위 배지는 밝은 보석 톤으로 */
.featured .badge-imp {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #e2e8f0;
}
.featured .badge-s { color: #ffd7d2; background: rgba(220, 38, 38, 0.26); border-color: rgba(255, 143, 132, 0.48); }
.featured .badge-a { color: #fcd34d; background: rgba(217, 119, 6, 0.24); border-color: rgba(245, 158, 11, 0.42); }
.featured .badge-b { color: #a5c8ff; background: rgba(37, 99, 235, 0.26); border-color: rgba(96, 165, 250, 0.42); }
.featured h2 {
  margin: 0; font-family: var(--sans); font-weight: 700;
  font-size: clamp(21px, 2.6vw, 27px); line-height: 1.45; letter-spacing: -0.025em;
  color: #fff; overflow-wrap: anywhere;
}
.featured-body {
  margin: 14px 0 0; font-size: 14.5px; line-height: 1.85; color: rgba(247, 245, 239, .78);
  max-width: 96%;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.featured .btn { margin-top: 24px; }

/* S등급 시그널 배지: 금빛 링이 은은하게 파동 */
.featured.is-s .featured-label .badge-s {
  position: relative; color: #ffd7d2; background: rgba(220, 38, 38, 0.22);
  border-color: rgba(255, 143, 132, 0.45);
}
.featured.is-s .featured-label .badge-s::before {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  border: 1px solid rgba(255, 143, 132, 0.55);
  animation: signalRing 2.6s ease-out infinite;
}
@keyframes signalRing {
  0% { opacity: .75; transform: scale(.92); }
  70% { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* --------------------------------------------------------------- carousel */
.carousel-block { margin-top: 58px; }
.carousel { position: relative; }
.story-card {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3.5px solid var(--gold-champagne);
  border-radius: var(--radius); padding: 24px 28px 22px; min-height: 186px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.story-card[data-importance="S"] { border-left-color: var(--ruby); }
.story-card[data-importance="A"] { border-left-color: var(--amber); }
.story-card[data-importance="B"] { border-left-color: var(--cobalt); }
.story-card.is-active { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.story-label { margin: 0 0 10px; }
.story-card h3 {
  margin: 0; font-family: var(--sans); font-size: 19px; font-weight: 700;
  line-height: 1.45; letter-spacing: -0.015em; color: var(--ink);
  overflow-wrap: anywhere;
}
.story-card h3 a { text-decoration: none; }
.story-card h3 a:hover { color: var(--gold-deep); }
.story-excerpt {
  margin: 10px 0 0; font-size: 13.5px; line-height: 1.75; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.story-time { margin: 14px 0 0; font-size: 11.5px; color: var(--faint); }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 10px; }
/* 손가락으로도 누를 수 있게 버튼은 24×24, 보이는 점은 그 안에서 6px 로 그린다 */
.dot-btn {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.dot-btn::before {
  content: ""; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: #d8d2c4; transition: width .2s, background .2s, border-radius .2s;
}
.dot-btn.is-active::before { width: 20px; border-radius: 3px; background: var(--navy); }
.dot-btn:hover::before { background: #b9b2a2; }
.dot-btn.is-active:hover::before { background: var(--navy); }
.dot-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-radius: 999px; }

/* --------------------------------------------------------------- latest feed */
.latest { margin-top: 64px; }
.latest-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 14px;
}
.latest-head .section-label { margin-bottom: 0; }
.latest-meta { margin: 0; font-size: 11.5px; color: var(--muted); }
.latest-meta strong { color: var(--ink-2); font-weight: 600; }

/* 관심자산 1초 미리보기 → 휴대폰 인증 퍼널 */
.watch-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 2px; }
.watch-strip-label {
  margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); flex: none;
}
.watch-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.watch-chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 500;
  letter-spacing: .01em; cursor: pointer; transition: all .15s;
}
.watch-chip:hover { border-color: var(--gold-champagne); color: var(--ink); }
.watch-chip[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: #fbfaf6;
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.45) inset;
}
.watch-chip.is-empty { color: var(--faint); border-style: dashed; }
.watch-chip.is-empty[aria-pressed="true"] { color: #fbfaf6; border-style: solid; }

.convert-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 0 16px; padding: 11px 14px; text-decoration: none;
  background: linear-gradient(180deg, #fdf8ea, #fbf3dd);
  border: 1px solid #e7d9b4; border-left: 3px solid var(--gold-champagne);
  border-radius: var(--radius); color: var(--ink); font-size: 13px; line-height: 1.5;
  transition: background .15s ease, border-color .15s ease, box-shadow .18s ease;
}
.convert-bar:hover {
  background: linear-gradient(180deg, #fdf4dc, #f8efd3);
  border-color: #ddcaa2;
  box-shadow: 0 12px 28px -24px rgba(154, 123, 34, 0.9);
}
.convert-bar b { font-weight: 700; }
.convert-main { min-width: 0; }
.convert-arrow { color: var(--gold-deep); font-weight: 700; }
.convert-count {
  flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  color: #8a7a4a;
}

.filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 4px 0 22px; }
.chip {
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.6); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--gold-champagne); color: var(--ink); background: #fff; }
.chip[aria-pressed="true"] {
  background: var(--navy); color: #fbfaf6; border-color: var(--navy);
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.4) inset, 0 8px 18px -14px rgba(11, 17, 32, 0.9);
}
.chip-s .imp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 7px rgba(220, 38, 38, 0.6); }

.feed { display: flex; flex-direction: column; gap: 14px; }
/* 시그널 컬러 좌측 액센트 바: S 루비 · A 샴페인 · B 코발트 */
.feed-item {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3.5px solid var(--gold-champagne);
  border-radius: var(--radius); padding: 24px 28px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color .2s ease, box-shadow .24s ease, transform .2s ease;
}
.feed-item[data-importance="S"], .feed-item.is-s { border-left-color: var(--ruby); }
.feed-item[data-importance="A"] { border-left-color: var(--amber); }
.feed-item[data-importance="B"] { border-left-color: var(--cobalt); }
/* S는 헤드라인도 한 단계 크게 — 3초 스캔 위계 */
.feed-item[data-importance="S"] h3 { font-size: clamp(18px, 2.1vw, 21px); }
.feed-item[data-importance="S"]::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.055), rgba(220, 38, 38, 0) 70%);
  pointer-events: none;
}
.feed-label { margin: 0 0 11px; }

/* PR #23 ★ 내 관심종목 — 담은 종목의 카드에만 붙는 샴페인 골드 알약 (3초 스캔에서 바로 눈에 걸리게) */
.fav-pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; padding: 2px 9px 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fdf6e2 0%, #f3e0a8 100%);
  border: 1px solid rgba(160, 120, 48, .38);
  color: #6b4d16;
  font-size: 10.5px; font-weight: 800; letter-spacing: .015em; line-height: 1.7;
  vertical-align: 1px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(107, 77, 22, .1), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.fav-pill-star { font-size: 9.5px; line-height: 1; color: #a07830; }
.feed-item.is-s .fav-pill { background: linear-gradient(180deg, #fdf3d8 0%, #f2dda0 100%); }
.card-label { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }
.card-label .dot { margin: 0 4px; opacity: .6; }
.grade-tag { font-weight: 700; letter-spacing: .03em; }
.badge-imp {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 9px; border-radius: 999px; font-size: 10.5px; line-height: 1.6;
  border: 1px solid transparent; white-space: nowrap;
  vertical-align: 1px;
}
/* 보석 톤 배지 */
.badge-s {
  color: var(--ruby-ink); background: rgba(220, 38, 38, 0.085);
  border-color: rgba(220, 38, 38, 0.22);
}
.badge-a {
  color: #a16207; background: rgba(217, 119, 6, 0.10);
  border-color: rgba(217, 119, 6, 0.24);
}
.badge-b {
  color: var(--cobalt-ink); background: rgba(37, 99, 235, 0.085);
  border-color: rgba(37, 99, 235, 0.22);
}

.feed-item h3 {
  margin: 0; font-family: var(--sans); font-size: clamp(17px, 2vw, 20px); font-weight: 700;
  line-height: 1.48; letter-spacing: -0.022em; color: var(--ink); overflow-wrap: anywhere;
}
.feed-item h3 a { text-decoration: none; }
.feed-item h3 a:hover { color: var(--gold-deep); }
.feed-body {
  margin: 10px 0 0; font-size: 13.5px; line-height: 1.8; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 핵심 1줄 결론(시장 영향) — 은은한 금빛 인셋 박스 */
.impact-line {
  margin: 12px 0 0; padding: 10px 12px 10px 13px;
  font-size: 12.8px; line-height: 1.68; color: #38445a;
  background: linear-gradient(180deg, rgba(242, 201, 76, 0.11), rgba(242, 201, 76, 0.045));
  border: 1px solid rgba(212, 175, 95, 0.24);
  border-left: 2px solid var(--gold-champagne);
  border-radius: 8px;
  /* '시장 영향'은 한 문장이 핵심이라 말줄임으로 자르지 않는다(자르면 상자 안에서 문장이 끊긴다) */
  overflow-wrap: anywhere;
}
.impact-line span {
  color: var(--gold-deep); font-weight: 700; font-size: 10.5px;
  letter-spacing: .1em; margin-right: 2px;
}
.impact-line span::after { content: ""; margin-right: 4px; }
.feed-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap;
  margin-top: 16px; font-size: 11.5px; color: var(--faint);
}
.src-meta {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.src-meta b { font-weight: 500; color: #7d828a; }
.src-meta .dot { opacity: .5; margin: 0 2px; }
.src-meta time { font-family: var(--mono); font-size: 11px; letter-spacing: .01em; }
.feed-foot time { font-family: var(--mono); font-size: 11px; letter-spacing: .01em; }
.story-time .dot { opacity: .5; margin: 0 2px; }
.source-link {
  font-size: 12px; color: #6b7078; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.source-link:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.feed-empty {
  padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
}
.feed-empty a { color: var(--ink); }

/* --------------------------------------------------------------- schedule */
.schedule { margin-top: 72px; }
.next-event {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3.5px solid var(--gold-champagne);
  border-radius: var(--radius); padding: 24px 28px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 20px 44px -38px rgba(15, 23, 42, 0.4);
}
.next-title {
  margin: 0 0 10px; font-family: var(--sans); font-size: 18px; font-weight: 700;
  line-height: 1.45; letter-spacing: -0.02em; color: var(--ink);
}
.next-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.next-org { margin: 0; font-size: 12px; color: var(--muted); }
.next-clock {
  margin: 0; font-family: var(--mono); font-size: 22px; font-weight: 500;
  letter-spacing: .02em; color: var(--navy); font-variant-numeric: tabular-nums;
}
.next-sub { margin: 12px 0 0; font-size: 11.5px; color: var(--faint); line-height: 1.7; }
.next-sub a { color: #6b7078; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.next-check {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap;
  margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65;
}
.next-check span { min-width: 0; }
.next-check a {
  flex: none; font-size: 11.5px; color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid #e6d6a8;
}
.next-check a:hover { color: var(--ink); border-bottom-color: var(--line-2); }

.event-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.event { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.ev-row {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 86px 34px;
  gap: 14px; align-items: center;
}
.ev-check {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
  margin: 3px 0 0 76px; font-size: 11.5px; line-height: 1.6; color: #7d828a;
}
.ev-check span { min-width: 0; }
.ev-check a {
  flex: none; font-size: 11px; color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid #e6d6a8;
}
.ev-check a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.dday { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--navy); }
.ev-main { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-main b {
  display: inline; font-size: 14px; font-weight: 600; line-height: 1.5;
  letter-spacing: -0.01em;
}
.ev-main em { display: inline; font-style: normal; font-size: 11.5px; color: var(--faint); margin-left: 7px; }
.ev-when { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.event .grade-tag { font-size: 11px; text-align: right; }
.event-empty { padding: 26px 2px; color: var(--muted); font-size: 13.5px; list-style: none; }

/* --------------------------------------------------------------- plans */
.plans { margin-top: 72px; }
.plan-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 26px 50px -44px rgba(15, 23, 42, 0.5);
  position: relative;
}
.plan-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(212, 175, 95, 0), var(--gold) 45%, rgba(212, 175, 95, 0));
}
.plan-col { padding: 30px 30px 26px; display: flex; flex-direction: column; }
.plan-col.pro {
  background: linear-gradient(160deg, #fbf7ec 0%, #f5efdf 60%, #f1e9d5 100%);
  border-left: 1px solid var(--line);
}
.plan-tag {
  display: inline-flex; align-self: flex-start;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em;
  color: var(--gold-deep); text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(242, 201, 76, 0.14); border: 1px solid rgba(212, 175, 95, 0.28);
}
.plan-col.pro .plan-tag {
  color: #7c5c12; background: rgba(242, 201, 76, 0.26); border-color: rgba(154, 123, 34, 0.32);
}
.plan-col h3 {
  margin: 12px 0 14px; font-family: var(--sans); font-size: 17px; font-weight: 700;
  line-height: 1.45; letter-spacing: -0.015em;
}
.plan-col ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.plan-col li { position: relative; padding-left: 14px; font-size: 13px; color: var(--body); line-height: 1.6; }
.plan-col li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 3px; height: 3px; border-radius: 50%; background: var(--gold-deep);
}
.plan-col .btn { margin-top: auto; align-self: flex-start; }
.plan-fine { margin: auto 0 0; font-size: 11px; color: var(--faint); line-height: 1.7; }

/* 사이드바·구형 카드 클래스 호환 (관리자 화면) */
.note-card {
  font-size: 11.5px; color: var(--muted); line-height: 1.7; padding: 16px 18px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------- footer */
.site-footer { margin-top: 84px; border-top: 1px solid var(--line); background: var(--paper-2); }
.site-footer .col { padding-top: 40px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.footer-line { margin: 0; font-size: 12.5px; color: var(--muted); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0;
  font-size: 12px; color: #6b7078;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.compliance {
  margin: 24px 0 0; font-size: 11px; color: #8b8f98; line-height: 1.9;
}
.compliance strong { color: #6b7078; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--faint);
}

/* --------------------------------------------------------------- signup */
.auth-shell { padding: 58px 0 20px; }
.auth-head { text-align: center; }
.auth-head .eyebrow { display: inline-flex; }
.auth-head h1 {
  font-family: var(--sans); font-weight: 800; font-size: clamp(25px, 3.5vw, 34px);
  line-height: 1.32; letter-spacing: -0.036em; margin: 16px auto 0; max-width: 480px;
  color: var(--ink); text-wrap: balance;
}
.auth-head .hero-rule { margin: 20px auto 0; }
.auth-head .lead {
  margin: 16px auto 0; max-width: 460px; font-size: 14px; color: var(--muted);
  line-height: 1.8;
}
.req-note {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap;
  margin: 18px auto 0; padding: 8px 14px;
  background: linear-gradient(180deg, #fdf8ea, #fbf3dd);
  border: 1px solid #e7d9b4; border-radius: 999px;
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.req-note b { font-weight: 700; color: var(--ink); }
.auth-card {
  position: relative;
  max-width: 540px; margin: 34px auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 34px 64px -48px rgba(15, 23, 42, 0.6);
  padding: 32px 32px 27px;
}
.auth-card::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242, 201, 76, 0), rgba(242, 201, 76, 0.85), rgba(242, 201, 76, 0));
  border-radius: 1px;
}
.auth-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.step-dot { height: 2px; flex: 1; background: var(--line); border-radius: 2px; }
.step-dot.on { background: var(--gold); }
.auth-card h2 {
  font-family: var(--sans); font-size: 19px; font-weight: 700;
  margin: 0 0 6px; letter-spacing: -0.025em; color: var(--ink);
}
.auth-card .hint { font-size: 12.5px; color: var(--muted); margin: 0 0 20px; line-height: 1.7; }

.divider {
  display: flex; align-items: center; gap: 12px; color: var(--faint);
  font-size: 11px; margin: 20px 0; letter-spacing: .04em;
}
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--radius-sm); padding: 12px; font-size: 13.5px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line-2); cursor: pointer; background: #fff;
  width: 100%;
}
.btn-social:hover { border-color: var(--ink-2); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social-row .soon { font-size: 10px; color: var(--faint); font-weight: 500; }
@media (max-width: 420px) { .social-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--gold-champagne); box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.16); }
.field .err { color: var(--signal); font-size: 11.5px; margin-top: 5px; min-height: 15px; }
.field .err.ok { color: #2f6b4a; }
.field input[readonly] { background: var(--paper-2); color: var(--muted); }
.auth-fine { font-size: 11px; color: var(--muted); line-height: 1.75; margin: 14px 0 0; }
.auth-aside-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--faint); line-height: 1.7;
}
.auth-benefits {
  list-style: none; padding: 0; margin: 28px auto 0; max-width: 540px; display: grid; gap: 12px;
}
.auth-benefits li {
  position: relative; padding-left: 16px; font-size: 13px; color: var(--body); line-height: 1.7;
}
.auth-benefits li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.auth-benefits b { font-weight: 600; color: var(--ink); }

.watch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.watch-opt {
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  padding: 13px 8px; text-align: center; transition: all .15s; position: relative;
}
.watch-opt b { display: block; font-size: 13.5px; font-weight: 600; }
.watch-opt span { font-size: 10.5px; color: var(--muted); }
.watch-opt[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fbfaf6; }
.watch-opt[aria-pressed="true"] span { color: rgba(251, 250, 246, .6); }
.watch-opt[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 6px; right: 8px; font-size: 10px; color: var(--gold);
}
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.phone-row input { flex: 1; min-width: 0; }
.phone-send { flex: none; padding: 11px 15px; font-size: 12.5px; border-radius: var(--radius-sm); }
.code-timer { font-family: var(--mono); font-size: 10.5px; color: var(--signal); font-weight: 500; margin-left: 4px; }
.demo-note {
  margin: 10px 0 12px; padding: 11px 13px; border-radius: var(--radius-sm); background: var(--paper-2);
  border: 1px solid var(--line); font-size: 12px; color: var(--body); line-height: 1.7;
}
.demo-note b { color: var(--gold-deep); }
.demo-note code {
  font-family: var(--mono); font-size: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px; color: var(--signal); font-weight: 600; letter-spacing: .04em;
}
.watch-count { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.watch-count b { color: var(--ink); }
.success-panel { text-align: center; padding: 6px 0 2px; }
.success-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 18px;
}
.success-panel h2 { margin-bottom: 8px; }
.success-panel p { font-size: 13px; color: var(--muted); }
.watch-summary { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0 22px; }
.watch-summary span {
  font-size: 11.5px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
}

/* --------------------------------------------------------------- admin blog */
.admin-shell { padding: 34px 0 30px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-family: var(--sans); font-weight: 700; font-size: 26px; margin: 8px 0 4px; letter-spacing: -0.025em; }
.admin-head p { margin: 0; font-size: 13px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.draft-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.draft-list-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 11px;
  font-family: var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.draft-item {
  display: block; width: 100%; text-align: left; padding: 14px 16px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.draft-item:last-child { border-bottom: 0; }
.draft-item:hover { background: var(--paper-2); }
.draft-item[aria-current="true"] { background: #fbf7ec; box-shadow: inset 3px 0 0 var(--gold); }
.draft-item b { display: block; font-size: 13.5px; line-height: 1.45; margin-bottom: 5px; font-weight: 600; }
.draft-item span { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.draft-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.draft-panel-head { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.draft-panel-head h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; letter-spacing: -0.02em; }
.draft-kws { display: flex; gap: 6px; flex-wrap: wrap; }
.draft-kws span { font-size: 11px; background: var(--paper-2); color: var(--ink-2); padding: 3px 8px; border-radius: 5px; }
.draft-tabs { display: flex; gap: 4px; padding: 14px 20px 0; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: transparent; padding: 8px 14px 12px; cursor: pointer; font-size: 13px;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--navy); font-weight: 600; }
.draft-body { padding: 24px; }
.draft-body h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.draft-body h3:first-child { margin-top: 0; }
.draft-body p, .draft-body li { font-size: 14px; color: var(--body); line-height: 1.8; }
.draft-body ul { padding-left: 18px; }
.draft-body img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2);
  background: #fff; border-radius: var(--radius-sm); padding: 9px 13px; font-size: 12.5px; cursor: pointer;
  text-decoration: none;
}
.copy-btn:hover { border-color: var(--ink-2); }
.copy-btn.primary { background: var(--navy); color: #fbfaf6; border-color: var(--navy); }
.copy-btn.primary:hover { background: var(--navy-2); }
.copy-btn.copied { border-color: #2f6b4a; color: #2f6b4a; background: #eef6f1; }
.code-view {
  background: var(--navy); color: #e8e2d2; border-radius: var(--radius-sm); padding: 18px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7; white-space: pre-wrap;
  word-break: break-all; max-height: 460px; overflow: auto;
}
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fbfaf6; padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.notice {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: #fbf7ec; border: 1px solid #eadfc4; font-size: 12.5px; color: var(--body);
  line-height: 1.7; margin-bottom: 18px;
}
.notice b { color: var(--gold-deep); }
.notice code, .auth-fine code {
  font-family: var(--mono); font-size: 11.5px; background: var(--paper-3);
  border-radius: 4px; padding: 1px 5px; color: var(--ink-2);
}
.section-meta { font-size: 12px; color: var(--muted); }
.section-meta strong { color: var(--ink); font-weight: 600; }

/* 운영자 로그인 게이트 (/admin) */
.admin-gate-card {
  max-width: 430px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 20px; box-shadow: var(--shadow);
}
.admin-gate-card .btn { margin-top: 6px; }
.admin-gate-card .auth-fine { margin: 12px 0 0; font-size: 11px; color: var(--muted); line-height: 1.7; }

/* --------------------------------------------------------------- misc */
.reveal { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- signup OTP · 동의 모달 */
.verify-row { display: flex; gap: 8px; align-items: stretch; }
.verify-row input { flex: 1; min-width: 0; }
.btn-code {
  flex: none; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s;
}
.btn-code:hover { border-color: var(--ink-2); background: var(--paper-2); }
.btn-code[disabled] { opacity: .55; cursor: not-allowed; }
.otp-box {
  margin: 8px 0 2px; padding: 11px 13px; border-radius: var(--radius-sm);
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--body); line-height: 1.7;
}
.otp-box b { color: var(--gold-deep); }
.otp-box .code {
  font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .12em;
  color: var(--signal); background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 7px; display: inline-block; margin: 4px 0;
}
.verified-pill { color: #2f6b4a; font-size: 11.5px; font-weight: 600; }
.hint-inline { font-size: 11px; color: var(--faint); margin-top: 3px; line-height: 1.6; }
.consent { margin: 14px 0 4px; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.consent-row label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.consent-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--navy); }
.btn-view {
  flex: none; border: 1px solid var(--line-2); background: #fff; color: #6b7078;
  border-radius: 999px; padding: 3px 10px; font-size: 11px; cursor: pointer;
}
.btn-view:hover { border-color: var(--ink-2); color: var(--ink); }
.consent-fine { margin: 7px 0 0; font-size: 10.5px; color: var(--faint); line-height: 1.6; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(22, 30, 46, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-card {
  width: 100%; max-width: 640px; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 110px -50px rgba(15, 23, 42, 0.8), inset 0 1px 0 rgba(242, 201, 76, 0.5);
}
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.modal-head p { margin: 5px 0 0; font-size: 11px; color: var(--faint); }
.modal-close {
  flex: none; border: 0; background: transparent; font-size: 15px; color: var(--muted);
  cursor: pointer; padding: 2px 6px;
}
.modal-body { padding: 18px 22px; overflow-y: auto; font-size: 12.5px; color: var(--body); line-height: 1.8; }
.modal-body h4 { margin: 18px 0 6px; font-size: 13px; color: var(--ink); font-weight: 700; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin: 0 0 10px; }
.modal-body ul { margin: 0 0 10px; padding-left: 17px; }
.modal-body li { margin-bottom: 4px; }
.modal-body table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 11px; }
.modal-body th, .modal-body td { border: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.modal-body th { background: var(--paper-2); font-weight: 600; color: var(--ink-2); }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--paper-2);
}
.modal-foot .meta { font-size: 11px; color: var(--faint); }

/* 오늘 확인 0건일 때 최근 확인 건수 병기 */
.latest-meta .recent-note { color: var(--faint); font-size: 11.5px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .main-nav { gap: 20px; }
  .admin-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .col { padding: 0 20px; }
  .main-nav { display: none; }
  .hero { padding-top: 52px; }
  .featured { padding: 26px 22px 24px; margin-top: 36px; }
  .featured-body { max-width: 100%; font-size: 14px; }
  .story-card, .feed-item, .next-event { padding: 20px 20px 18px; }
  .story-card { min-height: 0; }
  .plan-card { grid-template-columns: 1fr; }
  .plan-col.pro { border-left: 0; border-top: 1px solid var(--line); }
  .next-clock { font-size: 19px; }
  .ev-row { grid-template-columns: 48px minmax(0, 1fr) auto; row-gap: 2px; }
  .ev-row .grade-tag { grid-column: 3; }
  .ev-when { grid-column: 2; text-align: left; }
  .ev-main { white-space: normal; }
  .ev-main em { display: block; margin-left: 0; }
  .ev-check { margin-left: 0; }
  .watch-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { padding-top: 40px; }
  .auth-card { padding: 24px 20px 22px; }
  .latest-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
  .header-inner { height: 58px; gap: 14px; }
  .header-actions .link-quiet { display: none; }
  .hero h1 { font-size: 25px; }
  .ev-main b { white-space: normal; }
}

/* ------------------------------------------------- 1단계 휴대폰 가입 퍼널 */
.vf-step-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vf-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-2);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.vf-badge.alarm { background: #fbf1ef; border-color: #edcfc9; color: #8a2f27; }
.vf-step-note { font-size: 11px; color: var(--faint); }
.brief-card {
  margin: 18px 0 4px; padding: 16px 16px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper-2);
}
.brief-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brief-head b { font-size: 12.5px; color: var(--ink); letter-spacing: -0.01em; }
.brief-head span { font-family: var(--mono); font-size: 10.5px; color: var(--gold-deep); }
.brief-empty { margin: 10px 0 2px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.brief-sub {
  margin: 14px 0 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.brief-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.brief-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12.5px; line-height: 1.6;
}
.brief-list li a { text-decoration: none; color: var(--ink); font-weight: 500; }
.brief-list li a:hover { text-decoration: underline; }
.brief-meta { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.brief-none { font-size: 12px; color: var(--muted); background: #fff; }
.mini-grade {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  border-radius: 4px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: #fff;
  margin-right: 4px; vertical-align: 1px;
}
.mini-grade.g-S { background: #B3261E; }
.mini-grade.g-A { background: #8C6B2F; }
.mini-grade.g-B { background: #6b6e75; }
.brief-dday {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: #8a2f27; background: #fbf1ef; border: 1px solid #edcfc9; border-radius: 4px;
  padding: 1px 5px; margin-right: 6px;
}
.brief-ev b { font-size: 12.5px; font-weight: 600; }

.alarm-block { margin-top: 26px; }
.alarm-card {
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fbfaf6;
  padding: 20px 18px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 1px 2px rgba(22, 30, 46, .03);
}
.alarm-title {
  font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.45;
  letter-spacing: -0.02em; margin: 4px 0 8px;
}
.alarm-sub { margin: 0 0 12px; font-size: 12.5px; color: var(--body); line-height: 1.75; }

/* 내 폰에 도착할 문자 미리보기 — 번호 입력란 바로 위 미니 말풍선 */
.sms-preview {
  margin: 2px 0 16px; padding: 12px 13px 11px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #f5f5f1, #eff0ea);
}
.sms-preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sms-preview-title { font-size: 11px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.sms-preview-time { font-family: var(--mono); font-size: 10px; color: var(--faint); white-space: nowrap; }
.sms-bubble {
  margin: 9px 0 0; padding: 10px 12px 11px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 1px 2px rgba(22, 30, 46, .04);
}
.sms-line {
  margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); letter-spacing: -0.01em;
  word-break: keep-all;
}
.sms-line:first-child { font-weight: 700; color: var(--ink); }
.sms-line + .sms-line { margin-top: 3px; }
.sms-preview-note { margin: 9px 0 0; font-size: 11px; color: var(--muted); line-height: 1.65; }
.opt-tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 1px 6px; margin-left: 4px; vertical-align: 2px;
}

.reserved-card {
  margin: 6px 0 20px; padding: 14px 14px 10px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
}
.reserved-head {
  margin: 0 0 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.reserved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reserved-list li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.reserved-when { font-family: var(--mono); font-size: 11.5px; color: var(--ink); font-weight: 500; }
.reserved-when em { display: block; font-style: normal; font-family: var(--sans); font-size: 10px; color: var(--muted); }
.reserved-title { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.reserved-fine { margin: 10px 0 0; font-size: 10.5px; color: var(--faint); line-height: 1.6; }
/* --------------------------------------------------- 지표 조건 알림 (메인 바) */
.alert-bar {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 4px 0 26px; padding: 14px 17px;
  border: 1px solid #e4d3a9; border-left: 3px solid var(--gold-champagne);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fdf7e6, #f8eed4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 30px -28px rgba(154, 123, 34, 0.9);
  text-decoration: none; transition: border-color .15s ease, background .15s ease, box-shadow .18s ease, transform .15s ease;
}
.alert-bar::after {
  content: ""; position: absolute; right: -30px; top: -60px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.35), rgba(242, 201, 76, 0) 70%);
  pointer-events: none;
}
.alert-bar:hover {
  border-color: var(--gold-champagne); background: linear-gradient(180deg, #fef3d2, #f7ebc9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 34px -26px rgba(154, 123, 34, 0.95);
  transform: translateY(-1px);
}
.alert-bar-main { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.alert-bar-sub {
  font-family: var(--mono); font-size: 11px; color: var(--gold-deep); letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
  .alert-bar { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
  .alert-bar-main { font-size: 13.5px; }
}

/* ------------------------------------------------ 지표 조건 알림 (가입 화면) */
.alt-panel {
  margin: 4px 0 14px; padding: 13px 13px 11px;
  border: 1px solid #e6d9b8; border-radius: var(--radius);
  background: linear-gradient(180deg, #fdfaf1, #fbf6e8);
}
.alt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.alt-title { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.alt-live { font-family: var(--mono); font-size: 10px; color: var(--gold-deep); }
.alt-now {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; padding: 0;
}
.alt-now li {
  flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 7px 8px; text-align: center;
}
/* 지표 이름·값은 한 덩어리로 — 긴 값(-0.0019%)이 이웃 칸까지 좁혀
   '71.4 / %' 처럼 숫자와 단위가 찢기지 않게 한다. */
.alt-now span { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; }
.alt-now b {
  display: block; font-family: var(--mono); font-size: 13px; color: var(--ink); margin-top: 1px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.alt-hint { margin: 9px 0 0; font-size: 11px; color: var(--body); line-height: 1.6; }
.alt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.alt-chip {
  font-family: var(--sans); font-size: 11.5px; line-height: 1.2; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  color: var(--ink-2); cursor: pointer; transition: all .12s ease;
}
.alt-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.alt-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fbfaf6; font-weight: 700; }
.alt-custom { display: flex; gap: 6px; margin: 9px 0 0; flex-wrap: wrap; }
.alt-custom select, .alt-custom input {
  font-size: 12px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); min-width: 0;
}
.alt-custom select { flex: 0 0 auto; }
.alt-custom input { flex: 1 1 92px; font-family: var(--mono); }
.btn-mini {
  font-size: 12px; font-weight: 700; padding: 6px 11px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink);
}
.btn-mini:hover { border-color: var(--ink-2); background: #fff; }
.alt-panel .err { min-height: 0; margin-top: 6px; }
.alt-state { margin: 7px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.alt-state.is-on { color: #2f6b4a; }
.alt-state b { color: var(--ink); }
.alert-summary {
  margin: 4px 0 16px; padding: 11px 13px; text-align: left;
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: #fff;
}
.alert-summary.is-on { border-style: solid; border-color: #e2d3ae; background: #fdfaf1; }
.alert-summary-head {
  margin: 0 0 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.alert-summary-body { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.alert-summary-body b { color: var(--ink); }
.alert-summary-body span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.alert-summary-body a { color: var(--gold-deep); font-weight: 700; text-decoration: none; }

@media (max-width: 480px) {
  /* 좁은 화면: 지표 4칸을 2×2 로 — 한 칸에 숫자·단위가 온전히 들어간다 */
  .alt-now li { flex: 1 1 calc(50% - 3px); }
  .alt-now b { font-size: 12px; }
  .alt-chip { font-size: 11px; padding: 6px 9px; }
}

@media (max-width: 480px) {
  .alarm-title { font-size: 16.5px; }
  .reserved-list li { grid-template-columns: 1fr; gap: 3px; }
}

/* ==========================================================================
   상세 모달 · 카드 호버 글래스 바 · 네온 '아하!' 순서도 · 반응/댓글
   ========================================================================== */

/* ------------------------------------------------ 카드: 조용한 크림 → 호버 시 글래스 바 */
.feed-item,
.story-card { position: relative; overflow: hidden; transition: border-color .2s ease, box-shadow .24s ease, transform .2s ease; }
.feed-item:hover,
.feed-item:focus-within,
.story-card:hover,
.story-card:focus-within {
  border-color: var(--line-2);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
@media (hover: none) {
  .feed-item:hover, .story-card:hover { transform: none; }
}

.post-title-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; color: inherit; text-align: left;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.post-title-btn:hover { color: var(--gold-deep); }
.post-title-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

.card-veil {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(to top, rgba(250, 248, 244, .92), rgba(244, 241, 234, .62));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 -14px 30px -24px rgba(22, 30, 46, .55);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.feed-item:hover .card-veil,
.feed-item:focus-within .card-veil,
.story-card:hover .card-veil,
.story-card:focus-within .card-veil { opacity: 1; transform: none; pointer-events: auto; }
.card-veil-hint {
  font-size: 11px; color: #7d828a; letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-more {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 7px 14px; font-size: 12px; font-weight: 700; line-height: 1;
  background: var(--navy); color: #fbfaf6;
  transition: background .15s ease, transform .12s ease;
}
.card-more:hover { background: var(--navy-2); }
.card-more:active { transform: translateY(1px); }
.card-more::after { content: "→"; font-weight: 500; opacity: .8; }

.eng-badge {
  flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  color: #8a8f98; white-space: nowrap;
}
.eng-badge:empty { display: none; }

/* 터치 기기: 호버가 없으니 '더 보기' 바를 항상 보이게 두고 손가락으로 누를 수 있게 */
@media (hover: none), (max-width: 640px) {
  .card-veil {
    position: static; opacity: 1; transform: none; pointer-events: auto;
    margin: 14px -20px -18px; padding: 10px 20px;
    background: rgba(240, 236, 228, .92);
    border-top: 1px solid var(--line);
    box-shadow: none;
  }
  .card-veil-hint { display: none; }
  .card-more { margin-left: auto; }
}

/* ------------------------------------------------ 모달 바탕 */
body.modal-open { overflow: hidden; }

.detail-scrim {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 16px;
  background: rgba(10, 14, 22, .66);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  backdrop-filter: blur(7px) saturate(120%);
  animation: scrimIn .18s ease both;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }

.detail-modal {
  position: relative; width: min(760px, 100%);
  max-height: min(88vh, 920px); display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(242, 201, 76, 0.22);
  background: linear-gradient(168deg, rgba(16, 23, 38, .985), rgba(8, 12, 20, .995));
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04),
              inset 0 1px 0 rgba(242, 201, 76, .32);
  color: #eaeff7;
  animation: modalRise .24s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes modalRise { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }

.detail-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
  background: rgba(16, 21, 32, .8); color: #cfd8e6; font-size: 19px; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.detail-close:hover { background: rgba(33, 42, 60, .95); color: #fff; border-color: rgba(255, 255, 255, .28); }

.detail-scroll {
  overflow-y: auto; padding: 30px 30px 32px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.detail-scroll::-webkit-scrollbar { width: 8px; }
.detail-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }

.detail-meta {
  margin: 0 0 12px; padding-right: 44px;
  font-size: 11.5px; color: #94a3b8; letter-spacing: .01em; line-height: 1.7;
}
.detail-meta .dot { margin: 0 5px; opacity: .55; }
.detail-meta .badge-imp {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #dbe4f0;
}
.detail-meta .badge-s { color: #ffd7d2; background: rgba(220, 38, 38, 0.26); border-color: rgba(255, 143, 132, 0.48); }
.detail-meta .badge-a { color: #fcd34d; background: rgba(217, 119, 6, 0.24); border-color: rgba(245, 158, 11, 0.42); }
.detail-meta .badge-b { color: #a5c8ff; background: rgba(37, 99, 235, 0.26); border-color: rgba(96, 165, 250, 0.42); }
.detail-meta .badge-imp { font-weight: 700; }
.detail-meta time { font-family: var(--mono); font-size: 11px; }
.detail-title {
  margin: 0; font-family: var(--sans); font-weight: 700;
  font-size: clamp(20px, 2.6vw, 25px); line-height: 1.42; letter-spacing: -0.02em;
  color: #f7f9fc; overflow-wrap: anywhere;
}
.detail-summary { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sum-line {
  position: relative; padding-left: 14px;
  font-size: 13.8px; line-height: 1.72; color: #c7d2e0;
}
.sum-line::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #4be1ff, #a06bff);
}
.detail-impact {
  display: flex; gap: 10px; margin: 18px 0 0; padding: 13px 15px;
  border-radius: 12px; border: 1px solid rgba(242, 201, 76, .22);
  background: rgba(242, 201, 76, .07);
  font-size: 13px; line-height: 1.72; color: #e8dfc6;
}
.detail-impact b {
  flex: none; align-self: flex-start;
  font-size: 10.5px; letter-spacing: .08em; color: #f2c94c; font-weight: 700;
  border: 1px solid rgba(242, 201, 76, .3); border-radius: 999px; padding: 2px 8px;
}
.detail-image {
  margin: 20px 0 0; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08); background: #0a0f1a;
}
.detail-image img { display: block; width: 100%; max-height: 280px; object-fit: contain; }
.detail-source {
  margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px; color: #7f8b9c; line-height: 1.7;
}
.detail-source b { color: #a9b6c7; font-weight: 600; }

/* S등급 잠금: 결론 문장 흐림 */
.detail-impact.is-blurred { filter: blur(4px); opacity: .5; user-select: none; pointer-events: none; }

/* ------------------------------------------------ 네온 '아하!' 순서도 */
.flow-card {
  position: relative; margin: 22px 0 0; padding: 18px 18px 20px; border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(8, 13, 25, .97), rgba(11, 18, 34, .97)) padding-box,
    linear-gradient(135deg, rgba(75, 225, 255, .85), rgba(160, 107, 255, .8) 52%, rgba(255, 94, 168, .75)) border-box;
  box-shadow: 0 0 28px -8px rgba(75, 225, 255, .4), 0 0 64px -22px rgba(160, 107, 255, .55),
              inset 0 0 40px rgba(75, 225, 255, .045);
  isolation: isolate;
}
.flow-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 16px;
  background: radial-gradient(120% 80% at 0% 0%, rgba(75, 225, 255, .16), transparent 55%),
              radial-gradient(120% 80% at 100% 100%, rgba(255, 94, 168, .12), transparent 55%);
  filter: blur(10px); opacity: .7;
}
.flow-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.flow-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #8be9ff; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(75, 225, 255, .38); background: rgba(75, 225, 255, .1);
  white-space: nowrap;
}
.flow-title { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #dbe7f5; }
.flow-title em { font-style: normal; color: #b58bff; }
.flow-aha {
  margin: 0 0 14px; font-size: 12.8px; line-height: 1.7; color: #b9d4ee;
  border-left: 2px solid rgba(75, 225, 255, .5); padding-left: 10px;
}
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-step {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px; padding: 0 0 16px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 1px;
  background: linear-gradient(to bottom, rgba(75, 225, 255, .55), rgba(160, 107, 255, .12));
}
.flow-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: #eaf7ff;
  background: radial-gradient(circle at 32% 28%, rgba(75, 225, 255, .38), rgba(120, 80, 220, .3));
  border: 1px solid rgba(140, 205, 255, .45);
  box-shadow: 0 0 14px rgba(75, 225, 255, .35), inset 0 0 8px rgba(255, 255, 255, .08);
}
.flow-step-label {
  margin: 0 0 3px; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: #7fa9cc;
}
.flow-step-text { margin: 0; font-size: 13px; line-height: 1.68; color: #e3ecf9; overflow-wrap: anywhere; }

.flow-body { position: relative; transition: filter .25s ease, opacity .25s ease; }
.flow-card.is-locked .flow-body { filter: blur(7px) saturate(.7); opacity: .42; pointer-events: none; user-select: none; }

.flow-lock {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 16px;
  text-align: center;
  background: radial-gradient(80% 70% at 50% 60%, rgba(8, 13, 25, .55), rgba(8, 13, 25, .88));
  border-radius: 16px;
}
.flow-lock-text { margin: 0; font-size: 12.5px; line-height: 1.65; color: #cfe0f3; }
.flow-lock-text b { color: #fff; }
.flow-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px; text-decoration: none;
  font-size: 13.5px; font-weight: 700; color: #14171d;
  background: linear-gradient(135deg, #f2c94c, #ffd977);
  box-shadow: 0 8px 24px -10px rgba(242, 201, 76, .7);
  transition: transform .12s ease, box-shadow .15s ease;
}
.flow-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(242, 201, 76, .85); }
.flow-lock-sub { margin: 0; font-size: 10.5px; color: #8fa2b8; }

/* ------------------------------------------------ 반응 · 댓글 (모달 안) */
.eng { margin-top: 24px; }
.reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.react-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .04);
  color: #cbd6e4; font-size: 12.5px; transition: all .15s ease;
}
.react-btn:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; }
.react-btn[aria-pressed="true"] {
  border-color: rgba(242, 201, 76, .6); background: rgba(242, 201, 76, .14); color: #ffe9a8;
  box-shadow: 0 0 18px -8px rgba(242, 201, 76, .8);
}
.react-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.react-count {
  font-family: var(--mono); font-size: 11px; color: #8ea0b5;
  min-width: 10px; text-align: right;
}
.react-btn[aria-pressed="true"] .react-count { color: #ffe9a8; }

.eng-comments { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.eng-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.eng-title { margin: 0; font-size: 13px; font-weight: 700; color: #e6eef9; }
.eng-title span { font-family: var(--mono); font-size: 11.5px; color: #8fa2b8; font-weight: 400; margin-left: 2px; }
.eng-note { margin: 0; font-size: 11px; color: #7f8b9c; }

.comment-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comment { display: flex; flex-direction: column; gap: 4px; }
.comment.is-reply { margin-left: 18px; padding-left: 14px; border-left: 2px solid rgba(140, 205, 255, .18); }
.comment-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment-author { font-size: 12.5px; font-weight: 700; color: #dbe6f4; }
.comment-time { font-size: 10.5px; color: #78859a; font-family: var(--mono); }
.comment-body-text { margin: 0; font-size: 13px; line-height: 1.72; color: #cfdaea; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { margin: 2px 0 0; }
.reply-toggle {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 11.5px; color: #8fa2b8; text-decoration: underline; text-underline-offset: 2px;
}
.reply-toggle:hover { color: #cfe0f3; }
.comment-empty { font-size: 12.5px; color: #7f8b9c; margin: 12px 0 0; }

.comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.comment-form-row { display: flex; gap: 8px; align-items: flex-start; }
.comment-name,
.comment-body {
  width: 100%; border-radius: 10px; padding: 9px 12px; font-size: 12.8px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .045);
  color: #eef3fa; resize: vertical; outline: none; transition: border-color .15s, background .15s;
}
.comment-name { max-width: 190px; }
.comment-name::placeholder, .comment-body::placeholder { color: #74839a; }
.comment-name:focus, .comment-body:focus { border-color: rgba(140, 205, 255, .55); background: rgba(255, 255, 255, .07); }
.comment-submit { flex: none; align-self: stretch; padding: 0 16px; border-radius: 10px; }
.comment-submit:disabled { opacity: .55; cursor: progress; }
.comment-form.is-reply-form { margin-top: 8px; }
.comment-form.is-reply-form .comment-body { font-size: 12.4px; }
.comment-msg { margin: 0; font-size: 11.5px; color: #ffb2a7; }
.comment-msg.is-ok { color: #8be9a8; }

@media (max-width: 640px) {
  .detail-scrim { padding: 0; align-items: flex-end; }
  .detail-modal {
    width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0;
    animation: modalSheet .24s cubic-bezier(.2, .8, .2, 1) both;
  }
  @keyframes modalSheet { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }
  .detail-scroll { padding: 24px 20px 28px; }
  .detail-close { top: 10px; right: 10px; }
  .comment-name { max-width: none; }
  .comment-form-row { flex-wrap: wrap; }
}

/* '오늘의 한 장' 제목도 같은 상세 모달을 연다 */
#featuredTitle[data-open-post] { cursor: pointer; }
#featuredTitle[data-open-post]:hover { color: #ffe9a8; }
#featuredTitle[data-open-post]:focus-visible { outline: 2px solid rgba(242, 201, 76, .7); outline-offset: 4px; border-radius: 6px; }

/* ------------------------------------------------ 회원 로그인 (재방문 · 휴대폰 OTP) */
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; color: #6b7078;
}
.link-button:hover { color: var(--ink); }
.member-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 5px 11px; border-radius: 999px;
  background: #fbf3dd; border: 1px solid #eadfc4;
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.member-chip::before { content: "●"; font-size: 7px; color: var(--gold-deep); }

.login-scrim {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: rgba(16, 22, 33, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: scrimIn .16s ease both;
}
.login-modal {
  position: relative; width: min(440px, 100%);
  padding: 30px 28px 24px; border-radius: 18px;
  background: linear-gradient(168deg, #fffdf8, #f8f3e9);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -46px rgba(15, 23, 42, 0.65), inset 0 1px 0 rgba(242, 201, 76, 0.55);
  animation: modalRise .2s cubic-bezier(.2, .8, .2, 1) both;
}
.login-close { border-color: var(--line-2); background: #fff; color: #6b7078; }
.login-close:hover { background: #f4f1ea; color: var(--ink); border-color: var(--line-2); }
.login-eyebrow {
  margin: 0 0 8px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .16em; color: var(--gold-deep); text-transform: uppercase;
}
.login-title {
  margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink);
}
.login-sub { margin: 10px 0 20px; font-size: 12.8px; line-height: 1.7; color: var(--body); }
.login-form { display: flex; flex-direction: column; gap: 9px; }
.login-label { font-size: 11.5px; font-weight: 600; color: #6b7078; letter-spacing: .02em; }
.login-row, .login-code-row { display: flex; gap: 8px; align-items: stretch; }
.login-code-row[hidden] { display: none; }
.login-input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.login-input:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(242, 201, 76, .18); }
.login-input::placeholder { color: var(--faint); }
.login-send, .login-submit { flex: none; white-space: nowrap; }
.login-send[disabled], .login-submit[disabled] { opacity: .5; cursor: progress; }
.login-msg { margin: 2px 0 0; min-height: 16px; font-size: 11.5px; line-height: 1.6; color: #b4453b; }
.login-msg.is-ok { color: #1f7a45; }
.login-note {
  margin: 0; padding: 9px 11px; border-radius: 9px;
  background: #fbf7ec; border: 1px solid #eadfc4;
  font-size: 11.5px; line-height: 1.65; color: #6b5a2b;
}
.login-foot {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.login-foot a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.login-foot a:hover { text-decoration: underline; }

.flow-lock-login {
  margin: 0; font-size: 11.5px; color: #9fb0c4;
}
.flow-lock-login .link-button { font-size: 11.5px; color: #8be9ff; text-decoration: underline; text-underline-offset: 2px; }
.flow-lock-login .link-button:hover { color: #c8f5ff; }

/* 화면 오른쪽 아래 짧은 안내 */
.site-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 200; max-width: min(420px, 90vw);
  padding: 12px 18px; border-radius: 12px;
  background: rgba(20, 26, 38, .95); color: #f2f6fb;
  font-size: 13px; line-height: 1.6; text-align: center;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
  animation: toastIn .22s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 640px) {
  .member-chip { max-width: 120px; }
  .login-modal { padding: 26px 20px 20px; }
  .login-row, .login-code-row { flex-wrap: wrap; }
  .login-send, .login-submit { width: 100%; }
}

/* 가입 화면의 재방문 로그인 안내 */
.auth-login-link {
  margin: 14px 0 0; font-size: 12.5px; color: var(--muted);
}
.auth-login-link a {
  color: var(--gold-deep); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid #e6d6a8; padding-bottom: 1px;
}
.auth-login-link a:hover { color: var(--ink); border-bottom-color: var(--line-2); }

/* 로그인 모달: 비밀번호 입력·보기 토글·재설정 단계 */
.login-help { margin: 2px 0 6px; text-align: right; }
.login-help .link-button { font-size: 11.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.login-help .link-button:hover { color: var(--gold-deep); }
.btn-pw-toggle {
  flex: none; align-self: stretch; padding: 0 12px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 10px; background: #f7f3ea;
  font-size: 12px; color: #6b7078; transition: all .15s;
}
.btn-pw-toggle:hover { background: #efeae0; color: var(--ink); }
.btn-pw-toggle[aria-pressed="true"] { background: #fbf3dd; border-color: #eadfc4; color: var(--gold-deep); }
.login-reset-steps { display: flex; flex-direction: column; gap: 8px; }
.login-reset-steps[hidden] { display: none; }
.login-form .login-submit { margin-top: 6px; }
#loginPane[hidden], #resetPane[hidden] { display: none; }

/* 모바일에서도 '로그인'/'로그아웃'은 헤더에 남긴다 (재방문 회원 동선) — 손가락 타깃 40px */
@media (max-width: 640px) {
  .header-actions { gap: 10px; }
  .header-actions #loginBtn,
  .header-actions #logoutBtn { display: inline-flex; align-items: center; font-size: 13px; min-height: 40px; padding: 0 2px; }
  .header-actions .member-chip { max-width: 104px; font-size: 12px; padding: 4px 9px; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 12px; min-height: 40px; }
  .watch-chip, .fav-chip, .chip, .alt-chip { min-height: 40px; }
  .card-more { padding: 10px 16px; min-height: 40px; }
  /* 카드 제목도 손가락으로 누르기 쉽게 — 보이는 글자 위치는 그대로 두고 타깃만 넓힌다 */
  .post-title-btn { padding: 8px 0; margin: -8px 0; }
  /* 지표 조건 알림 직접 입력: 지표·조건은 나란히, 숫자·적용은 한 줄씩 */
  .alt-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .alt-custom select { width: 100%; }
  .alt-custom input, .alt-custom .btn-mini { grid-column: 1 / -1; width: 100%; }
  .alt-custom .btn-mini { min-height: 40px; }
}

/* 터치 기기: 누를 때 생기는 회색 번쩍임을 없애고 두 번 탭 확대 지연을 줄인다 */
button, .btn, .chip, .watch-chip, .fav-chip, .alt-chip, .prefs-chip, .sim-trigger, .dot-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 키보드 포커스는 어느 조작요소에서든 또렷하게 보이게 (색만 다른 요소 보완) */
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
/* 건너뛰기로 이동한 본문 영역은 테두리 대신 스크롤 위치로 알린다 */
#main:focus, #main:focus-visible { outline: none; }

/* ==========================================================================
   인터랙티브 마이크로 시각화 · 즉시 검색 · 공유 링크
   (읽기 진행률 헤어라인 · 공포탐욕 게이지 · 롱숏 바 · 카드 스태거 리빌)
   ========================================================================== */

/* ------------------------------------------------ 상단 2px 샴페인 골드 진행률 */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80;
  background: rgba(15, 23, 42, 0.05); pointer-events: none;
}
.scroll-progress-bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #b8912f 0%, var(--gold-champagne) 42%, #ffe7a6 100%);
  box-shadow: 0 0 10px rgba(212, 175, 95, 0.55);
  transition: width .09s linear;
}

/* ------------------------------------------------ 공포탐욕 게이지 · 롱/숏 비율 */
.market-pulse {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 14px 24px;
  margin: -8px 0 26px; padding: 15px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(242, 201, 76, 0.10), rgba(242, 201, 76, 0) 58%),
    linear-gradient(180deg, #fffdf8, #f8f4ea);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 20px 42px -38px rgba(15, 23, 42, 0.55);
}
.pulse-gauge-wrap {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.pulse-gauge { flex: none; width: 126px; height: auto; display: block; overflow: visible; }
.fg-track {
  fill: none; stroke: url(#fgGrad); stroke-width: 7; stroke-linecap: round; opacity: .17;
}
.fg-arc {
  fill: none; stroke: url(#fgGrad); stroke-width: 7; stroke-linecap: round;
  transition: stroke-dasharray .65s cubic-bezier(.2, .8, .2, 1);
}
.fg-needle-group { transition: none; }
.fg-needle {
  stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round;
}
.fg-hub { fill: var(--ink); }
.fg-hub-ring { fill: none; stroke: rgba(212, 175, 95, 0.65); stroke-width: 1.2; }
.fg-min, .fg-max {
  font-family: var(--mono); font-size: 7.5px; fill: var(--faint); letter-spacing: .02em;
}
.fg-read { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fg-read b {
  font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
}
.fg-read span {
  font-size: 10.5px; letter-spacing: .06em; color: var(--muted);
  text-transform: uppercase; white-space: nowrap;
}
.market-pulse .pulse-gauge-wrap[data-band="extreme-fear"] .fg-read b { color: #e11d48; }
.market-pulse .pulse-gauge-wrap[data-band="fear"] .fg-read b { color: #d97706; }
.market-pulse .pulse-gauge-wrap[data-band="neutral"] .fg-read b { color: var(--gold-deep); }
.market-pulse .pulse-gauge-wrap[data-band="greed"] .fg-read b { color: #0f9d76; }
.market-pulse .pulse-gauge-wrap[data-band="extreme-greed"] .fg-read b { color: #059669; }

.pulse-ratio { min-width: 0; }
.ratio-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 7px; font-size: 11.5px; color: var(--muted); letter-spacing: .02em;
}
.ratio-side b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.ratio-side.long b { color: #0b7f63; }
.ratio-side.short b { color: #c2410c; }
.ratio-track {
  display: flex; height: 9px; border-radius: 999px; overflow: hidden;
  background: var(--paper-3); box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.10);
}
.ratio-long, .ratio-short { display: block; height: 100%; width: 0; transition: width .65s cubic-bezier(.2, .8, .2, 1); }
.ratio-long { background: linear-gradient(90deg, #34d8a8, var(--emerald)); }
.ratio-short { background: linear-gradient(90deg, var(--coral), #f43f5e); }
.ratio-note {
  margin: 7px 0 0; font-size: 10.5px; color: var(--faint); letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pulse-cta {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 11.5px; font-weight: 700; color: var(--ink); text-decoration: none;
  white-space: nowrap; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pulse-cta:hover { border-color: var(--gold-champagne); background: #fffdf4; color: var(--gold-deep); }

/* ------------------------------------------------ 즉시 검색 */
.feed-tools { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; flex-wrap: wrap; }
.feed-search {
  position: relative; display: flex; align-items: center; gap: 8px;
  flex: 1 1 220px; max-width: 330px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  transition: border-color .15s ease, box-shadow .18s ease, background .15s ease;
}
.feed-search:hover { border-color: var(--gold-champagne); }
.feed-search:focus-within {
  border-color: var(--gold-champagne); background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.16);
}
.search-icon { flex: none; font-size: 15px; line-height: 1; color: var(--faint); }
.feed-search-input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0;
  font-size: 13px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none;
}
.feed-search-input::placeholder { color: var(--faint); }
.feed-search-input::-webkit-search-cancel-button,
.feed-search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.feed-search-clear {
  flex: none; border: 0; background: transparent; padding: 2px 3px; cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--faint); border-radius: 50%;
}
.feed-search-clear:hover { color: var(--ink); background: var(--paper-2); }
.feed-search-status {
  margin: 0; font-size: 11.5px; font-weight: 600; color: var(--gold-deep);
  letter-spacing: .01em; opacity: 0; transition: opacity .15s ease;
}
.feed-search-status.is-on { opacity: 1; }
.search-hit {
  background: linear-gradient(180deg, rgba(242, 201, 76, 0.05), rgba(242, 201, 76, 0.62));
  color: inherit; border-radius: 3px; padding: 0 1.5px; box-decoration-break: clone;
}
.feed-empty-reset { font-size: 12px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------ 카드 스태거 리빌 */
@keyframes feedReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.feed-item {
  animation: feedReveal .46s cubic-bezier(.2, .8, .2, 1) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * 52ms);
}

/* ------------------------------------------------ 상세 모달 공유 링크 */
.detail-share-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 20px 0 2px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.detail-share {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(242, 201, 76, 0.4); background: rgba(242, 201, 76, 0.10);
  font-size: 12.5px; font-weight: 700; color: #ffe6a3;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.detail-share:hover { background: rgba(242, 201, 76, 0.19); border-color: rgba(242, 201, 76, 0.62); }
.detail-share:active { transform: translateY(1px); }
.detail-share:focus-visible { outline: 2px solid var(--gold-champagne); outline-offset: 3px; }
.share-icon { font-size: 13px; line-height: 1; }
.detail-share-hint { font-size: 11.5px; color: rgba(234, 239, 247, 0.5); letter-spacing: .01em; }

/* ------------------------------------------------ 좁은 화면 */
@media (max-width: 720px) {
  .market-pulse { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 14px 16px; }
  .pulse-gauge-wrap { grid-column: 1; }
  .pulse-ratio { grid-column: 1 / -1; }
  .pulse-cta { grid-column: 2; grid-row: 1; align-self: start; }
  .pulse-gauge { width: 104px; }
  .fg-read b { font-size: 26px; }
}
@media (max-width: 480px) {
  .market-pulse { grid-template-columns: 1fr; }
  .pulse-cta { grid-column: 1; grid-row: auto; justify-content: center; width: 100%; }
  .feed-search { max-width: none; flex-basis: 100%; }
  .feed-tools { gap: 6px; }
}

/* ==========================================================================
   PR #20 — 실시간 일정 카운트다운 · 3초 비상벨 시뮬레이터 · 내 종목
   ========================================================================== */

/* ----------------------------------------------------------- 내 종목 저장 */
.fav-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.fav-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fav-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.55); color: var(--muted);
  border-radius: 999px; padding: 4px 11px 4px 8px; font-size: 11.5px; font-weight: 500;
  letter-spacing: .01em; cursor: pointer; transition: all .15s;
}
.fav-chip .fav-star { font-size: 11px; line-height: 1; color: var(--gold-champagne); transition: transform .15s; }
.fav-chip:hover { border-color: var(--gold-champagne); color: var(--ink); background: #fff; }
.fav-chip:hover .fav-star { transform: scale(1.18); }
.fav-chip[aria-pressed="true"] {
  border-style: solid; border-color: var(--gold-champagne); color: var(--ink);
  background: linear-gradient(180deg, #fdf7e6, #faf0d6);
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.16) inset;
}
.fav-chip[aria-pressed="true"] .fav-star { color: var(--gold-deep); }
.fav-chip.is-empty { color: var(--faint); }
.fav-hint { margin: 0 0 0 auto; font-size: 10.5px; color: var(--faint); letter-spacing: .01em; }
.chip-fav { border-style: dashed; color: var(--ink-2); }
.chip-fav .fav-star { font-size: 11px; line-height: 1; color: var(--gold-deep); }
.chip-fav[aria-pressed="true"] { border-style: solid; }
.chip-fav[aria-pressed="true"] .fav-star { color: var(--gold); }
.fav-count { font-family: var(--mono); font-size: 10.5px; opacity: .85; }

/* ----------------------------------------------------------- 일정 카운트다운 */
.ev-row { grid-template-columns: 170px minmax(0, 1fr) 78px 34px; }
.ev-cd { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ev-cd .dday {
  font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: .01em;
  color: var(--navy);
}
.ev-pill {
  flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
  padding: 1px 6px; border-radius: 999px; white-space: nowrap;
}
.ev-pill-today {
  background: rgba(220, 38, 38, 0.10); border: 1px solid rgba(220, 38, 38, 0.30); color: var(--ruby-ink);
}
.ev-pill-week {
  background: rgba(217, 119, 6, 0.10); border: 1px solid rgba(217, 119, 6, 0.28); color: #a3560a;
}
.event[data-importance="S"] .ev-cd .dday { color: var(--ruby-ink); }
.event[data-importance="A"] .ev-cd .dday { color: #a3560a; }
.ev-check a.ev-alert { font-weight: 500; }

/* ----------------------------------------------------------- 3초 비상벨 시뮬레이터 */
.sim {
  position: relative; margin-top: 18px; padding: 26px 28px 24px;
  border-radius: 16px; overflow: hidden; color: #eef2f8;
  background: radial-gradient(120% 130% at 0% 0%, #1d2d4a 0%, #0b1120 56%, #070b14 100%);
  border: 1px solid rgba(242, 201, 76, 0.22);
  box-shadow: 0 30px 60px -46px rgba(11, 17, 32, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.sim::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(242, 201, 76, 0), rgba(242, 201, 76, 0.75), rgba(242, 201, 76, 0));
}
.sim::after {
  content: ""; position: absolute; right: -70px; top: -80px; width: 230px; height: 230px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.16), rgba(242, 201, 76, 0) 70%);
}
.sim-eyebrow {
  margin: 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(242, 201, 76, 0.85);
}
.sim-head h3 { margin: 9px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.sim-sub { margin: 0; font-size: 12.5px; line-height: 1.7; color: rgba(226, 232, 240, 0.62); }
.sim-sample {
  display: inline-block; vertical-align: 2px; margin-left: 7px; padding: 1px 6px;
  border-radius: 5px; border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.14);
  font-size: 9px; font-weight: 800; letter-spacing: 0; color: #fca5a5;
}
.sim-disclaimer {
  margin: 8px 0 0; font-size: 11px; line-height: 1.6; color: rgba(226, 232, 240, 0.55);
}
.sim-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 262px;
  gap: 22px; align-items: start; margin-top: 20px;
}
.sim-triggers { display: grid; gap: 8px; align-content: start; }
.sim-trigger {
  display: grid; gap: 3px; text-align: left; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03);
  border-radius: 11px; padding: 12px 14px; color: #dbe3ef;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sim-trigger:hover { border-color: rgba(242, 201, 76, 0.4); background: rgba(255, 255, 255, 0.06); }
.sim-trigger.is-on {
  border-color: rgba(242, 201, 76, 0.62);
  background: linear-gradient(120deg, rgba(242, 201, 76, 0.14), rgba(242, 201, 76, 0.03));
  box-shadow: 0 0 0 1px rgba(242, 201, 76, 0.2) inset;
}
.sim-trigger-top {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(226, 232, 240, 0.48);
}
.sim-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px rgba(242, 201, 76, 0.8);
}
.sim-trigger b { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.sim-trigger em { font-style: normal; font-size: 11px; color: rgba(226, 232, 240, 0.5); }
.sim-trigger.is-on em { color: rgba(242, 201, 76, 0.85); }
.sim-trigger:focus-visible { outline: 2px solid rgba(242, 201, 76, 0.7); outline-offset: 2px; }

.sim-phone {
  width: 100%; border-radius: 26px; padding: 8px;
  background: linear-gradient(180deg, #20293a, #0d1421);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5) inset;
}
.sim-phone-bar { height: 14px; display: flex; align-items: center; justify-content: center; }
.sim-cam { width: 32px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.sim-screen {
  border-radius: 20px; padding: 10px 10px 12px; min-height: 236px;
  background: linear-gradient(180deg, #060a12, #0b1120 60%, #0a0f19);
}
.sim-screen-top {
  display: flex; align-items: baseline; gap: 5px; margin: 0 2px 8px;
  font-size: 9.5px; color: rgba(226, 232, 240, 0.45);
}
.sim-screen-top b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: rgba(242, 201, 76, 0.9); }
.sim-noti {
  background: rgba(248, 250, 252, 0.95); color: #0f172a; border-radius: 14px;
  padding: 11px 12px 10px; box-shadow: 0 14px 26px -18px rgba(0, 0, 0, 0.9);
}
.sim-noti.is-in { animation: simDrop .45s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes simDrop {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.sim-noti-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.sim-app {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748b;
}
.sim-app-mark { width: 11px; height: 11px; border-radius: 3px; background: linear-gradient(135deg, #f2c94c, #d4af5f); }
.sim-latency {
  font-family: var(--mono); font-size: 9px; color: #0b1120;
  background: rgba(242, 201, 76, 0.38); border-radius: 999px; padding: 1px 6px;
}
.sim-noti-title { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: -.015em; color: #0b1120; }
.sim-noti-body { margin: 0 0 7px; font-size: 11px; line-height: 1.62; color: #3b4658; }
.sim-noti-foot { margin: 0; padding-top: 6px; border-top: 1px solid rgba(15, 23, 42, 0.08); font-size: 9.5px; color: #7c8798; }
.sim-caption {
  display: flex; align-items: center; gap: 6px; margin: 12px 2px 0;
  font-size: 10px; line-height: 1.5; color: rgba(226, 232, 240, 0.45);
}
.sim-caption-dot {
  flex: none; width: 5px; height: 5px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}
.sim-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 11px 18px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #f6d873, #e7bd45); color: #221a06;
  font-size: 13px; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 12px 26px -18px rgba(242, 201, 76, 0.9);
  transition: transform .12s ease, box-shadow .2s ease;
}
.sim-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -18px rgba(242, 201, 76, 1); }
.sim-cta:focus-visible { outline: 2px solid rgba(242, 201, 76, 0.8); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .sim-noti.is-in { animation: none; }
}
@media (max-width: 720px) {
  .sim { padding: 22px 18px 20px; }
  .sim-head h3 { font-size: 17px; }
  .sim-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sim-phone { max-width: 280px; width: 100%; margin: 0 auto; }
  .sim-cta { width: 100%; justify-content: center; }
  .fav-hint { margin-left: 0; flex-basis: 100%; }
  .ev-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ev-cd { grid-column: 1 / -1; }
  .ev-main { white-space: normal; }
  .ev-main em { display: block; margin-left: 0; }
  .ev-when { grid-column: 1; text-align: left; }
  .ev-row .grade-tag { grid-column: 2; grid-row: 2; align-self: start; }
  .ev-check { margin-left: 0; }
}

/* ==========================================================================
   PR #21 — 내 알림 설정(회원 다크 글라스 모달) · 새 속보 금색 알약
   ========================================================================== */

/* 헤더의 '내 알림 설정' — 닉네임 옆에 붙는 얇은 금색 테두리 버튼 */
.prefs-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: #fffdf7; border: 1px solid #e6d9b8; color: var(--gold-deep);
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: -.01em;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.prefs-btn:hover { background: #fbf3dd; border-color: var(--gold-champagne); color: #6b5316; box-shadow: 0 6px 16px -12px rgba(154, 123, 34, .8); }
.prefs-btn:focus-visible { outline: 2px solid rgba(242, 201, 76, .8); outline-offset: 2px; }
.prefs-btn[hidden] { display: none; }
.prefs-btn-icon { font-size: 12px; line-height: 1; }

/* 다크 글라스 스크림 */
.prefs-scrim {
  position: fixed; inset: 0; z-index: 160;
  display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: rgba(8, 12, 20, .62);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  animation: scrimIn .16s ease both;
}
.prefs-scrim[hidden] { display: none; }

.prefs-modal {
  position: relative; width: min(470px, 100%);
  max-height: min(92vh, 812px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(242, 201, 76, .26);
  background: linear-gradient(168deg, rgba(19, 27, 44, .985), rgba(9, 13, 22, .995));
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .92), 0 0 0 1px rgba(255, 255, 255, .04),
              inset 0 1px 0 rgba(242, 201, 76, .34);
  color: #eaeff7;
  animation: modalRise .22s cubic-bezier(.2, .8, .2, 1) both;
}

/* 머리(제목) · 가운데(스크롤) · 최근 알림(PR #23) · 발(저장) — 저장 버튼이 내용 뒤로 겹치지 않게 한다 */
.prefs-head { flex: none; padding: 26px 24px 0; }
.prefs-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 12px 24px 2px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.prefs-body::-webkit-scrollbar { width: 7px; }
.prefs-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }

.prefs-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
  background: rgba(16, 21, 32, .8); color: #cfd8e6; font-size: 18px; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.prefs-close:hover { background: rgba(33, 42, 60, .95); color: #fff; border-color: rgba(255, 255, 255, .28); }

.prefs-eyebrow {
  margin: 0 0 7px; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .18em; text-transform: uppercase; color: #d9b658;
}
.prefs-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #f8fafc; }
.prefs-sub { margin: 8px 0 0; font-size: 12.4px; line-height: 1.7; color: #9fb0c4; }

.prefs-block { margin-bottom: 14px; }
.prefs-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prefs-label {
  display: block; margin: 0 0 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; color: #cbd5e3;
}
.prefs-optional { margin-left: 4px; font-weight: 500; color: #7d8ea6; letter-spacing: 0; }
.prefs-count { font-family: var(--mono); font-size: 10.5px; color: #d9b658; }
.prefs-hint { margin: 7px 0 0; font-size: 11px; line-height: 1.6; color: #7d8ea6; }

/* 관심종목 칩 */
.prefs-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.prefs-chip {
  display: inline-flex; align-items: baseline; gap: 6px; cursor: pointer;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .045); color: #dbe4f0;
  font: inherit; font-size: 12.5px; font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.prefs-chip span { font-size: 10.5px; font-weight: 500; color: #8fa0b8; }
.prefs-chip:hover { border-color: rgba(242, 201, 76, .45); background: rgba(242, 201, 76, .08); }
.prefs-chip[aria-pressed="true"] {
  border-color: rgba(242, 201, 76, .72);
  background: linear-gradient(180deg, rgba(242, 201, 76, .22), rgba(242, 201, 76, .1));
  color: #ffe9a8;
}
.prefs-chip[aria-pressed="true"] span { color: rgba(255, 233, 168, .72); }
.prefs-chip:focus-visible { outline: 2px solid rgba(242, 201, 76, .7); outline-offset: 2px; }

/* 알림 등급 (2분할) */
.prefs-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 4px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
.prefs-seg-btn {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 9px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: #b9c6d8;
  font: inherit; text-align: left; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.prefs-seg-btn b { font-size: 12.5px; font-weight: 700; }
.prefs-seg-btn em { font-style: normal; font-size: 10.5px; color: #7d8ea6; }
.prefs-seg-btn:hover { background: rgba(255, 255, 255, .05); }
.prefs-seg-btn[aria-checked="true"] {
  background: linear-gradient(180deg, rgba(242, 201, 76, .2), rgba(242, 201, 76, .09));
  border-color: rgba(242, 201, 76, .58); color: #ffe9a8;
}
.prefs-seg-btn[aria-checked="true"] em { color: rgba(255, 233, 168, .72); }
.prefs-seg-btn:focus-visible { outline: 2px solid rgba(242, 201, 76, .7); outline-offset: 1px; }

/* 야간 SMS 토글 */
.prefs-toggle {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035);
  transition: border-color .15s ease, background .15s ease;
}
.prefs-toggle:hover { border-color: rgba(242, 201, 76, .32); }
.prefs-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; }
.prefs-switch {
  flex: none; position: relative; width: 38px; height: 22px; margin-top: 1px;
  border-radius: 999px; background: rgba(148, 163, 184, .32);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background .18s ease, border-color .18s ease;
}
.prefs-switch-dot {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #e2e8f0; transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .18s ease;
}
.prefs-toggle-input:checked + .prefs-switch {
  background: linear-gradient(180deg, #f6d873, #e7bd45);
  border-color: rgba(242, 201, 76, .8);
}
.prefs-toggle-input:checked + .prefs-switch .prefs-switch-dot { transform: translateX(16px); background: #221a06; }
.prefs-toggle-input:focus-visible + .prefs-switch { outline: 2px solid rgba(242, 201, 76, .75); outline-offset: 3px; }
.prefs-toggle-text { display: flex; flex-direction: column; gap: 3px; }
.prefs-toggle-text b { font-size: 12.5px; font-weight: 700; color: #e8eef7; }
.prefs-toggle-text em { font-style: normal; font-size: 10.8px; line-height: 1.6; color: #8fa0b8; }

/* 닉네임 */
.prefs-input {
  width: 100%; padding: 10px 13px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  color: #f1f5fb; font-size: 13.5px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.prefs-input::placeholder { color: #6f8099; }
.prefs-input:focus { border-color: rgba(242, 201, 76, .68); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(242, 201, 76, .16); }

.prefs-foot {
  flex: none; margin: 0;
  padding: 12px 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(9, 13, 22, .55), rgba(9, 13, 22, .92));
}
.prefs-save {
  width: 100%; padding: 12px; border-radius: 11px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, #f6d873, #e7bd45); color: #221a06;
  font: inherit; font-size: 14px; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 14px 30px -20px rgba(242, 201, 76, .95);
  transition: transform .12s ease, box-shadow .2s ease, opacity .15s ease;
}
.prefs-save:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -20px rgba(242, 201, 76, 1); }
.prefs-save[disabled] { opacity: .62; cursor: progress; transform: none; }
.prefs-msg { margin: 9px 0 0; min-height: 15px; font-size: 11.5px; line-height: 1.6; color: #ff9c93; }
.prefs-msg.is-ok { color: #8be9a8; }
.prefs-note { margin: 6px 0 0; font-size: 10.5px; line-height: 1.6; color: #7286a0; }

/* 최근 알림 이력 (PR #23) — 저장 버튼 바로 위, 실제로 나간 비상벨 기록 10건 */
.prefs-alert-block {
  flex: none; padding: 11px 24px 6px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(9, 13, 22, .42);
}
.prefs-alert-block .prefs-label { margin-bottom: 6px; }
.prefs-alert-list {
  margin: 0; padding: 0 2px; list-style: none;
  max-height: 152px; overflow-y: auto; overscroll-behavior: contain;
}
.prefs-alert-list::-webkit-scrollbar { width: 6px; }
.prefs-alert-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 999px; }
.prefs-alert-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px 2px; border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.prefs-alert-row:last-child { border-bottom: 0; }
.prefs-alert-top {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 12px; color: #dbe4f0;
}
.prefs-alert-top b { font-size: 12.2px; font-weight: 700; color: #f1f5fb; }
.prefs-alert-top em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: #ffe1a0; }
.prefs-alert-top time { margin-left: auto; font-family: var(--mono); font-size: 10px; color: #7d8ea6; white-space: nowrap; }
.prefs-alert-status {
  padding: 1px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
  color: #8be9a8; background: rgba(139, 233, 168, .12); border: 1px solid rgba(139, 233, 168, .3);
}
.prefs-alert-row.is-test_mode .prefs-alert-status { color: #ffd479; background: rgba(255, 212, 121, .12); border-color: rgba(255, 212, 121, .32); }
.prefs-alert-row.is-quiet_hours .prefs-alert-status { color: #a8bde0; background: rgba(168, 189, 224, .12); border-color: rgba(168, 189, 224, .3); }
.prefs-alert-row.is-failed .prefs-alert-status { color: #ff9c93; background: rgba(255, 156, 147, .12); border-color: rgba(255, 156, 147, .32); }
.prefs-alert-text {
  font-size: 10.8px; line-height: 1.55; color: #8fa0b8;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 속보 이력은 글 바로가기(#post-<id>) 링크 — 읽기 좋은 색만 달리한다 */
.prefs-alert-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.prefs-alert-text a:hover { color: #f1f5fb; }
.prefs-alert-empty {
  padding: 10px 2px 8px; font-size: 11.2px; line-height: 1.65; color: #7d8ea6;
}

/* 새 공식 속보 도착 알약 — 피드 위에 떠 있고, 눌러야 반영된다 */
.new-pill-wrap {
  position: sticky; top: 74px; z-index: 30;
  display: flex; justify-content: center;
  padding: 4px 0 12px; margin: 0;
  pointer-events: none;
}
.new-pill-wrap[hidden] { display: none; }
.new-pill {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 40px);
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(154, 123, 34, .38);
  background: linear-gradient(180deg, #fbe9a8, #f2c94c 62%, #e8bd3f);
  color: #241b06; font: inherit; font-size: 12.8px; font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 16px 34px -18px rgba(120, 92, 20, .72), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .14s ease, box-shadow .2s ease;
}
.new-pill:hover { transform: translateY(-1px); box-shadow: 0 20px 38px -18px rgba(120, 92, 20, .85); }
.new-pill:focus-visible { outline: 2px solid rgba(154, 123, 34, .85); outline-offset: 3px; }
.new-pill-spark { font-size: 13px; line-height: 1; }
.new-pill-cta {
  padding-left: 9px; margin-left: 2px; border-left: 1px solid rgba(36, 27, 6, .22);
  font-weight: 700; color: #4a3a10;
}
.new-pill.is-pop { animation: pillPop .42s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes pillPop {
  0% { opacity: 0; transform: translateY(-8px) scale(.96); }
  60% { opacity: 1; transform: translateY(0) scale(1.015); }
  100% { opacity: 1; transform: none; }
}
/* 방금 반영된 글은 금색 테두리로 잠깐 강조한다 */
.feed-item.is-new { box-shadow: 0 0 0 2px rgba(242, 201, 76, .55), 0 18px 34px -26px rgba(154, 123, 34, .9); }

@media (max-width: 720px) {
  .prefs-btn { padding: 5px 9px; font-size: 12px; }
  .prefs-btn-text { display: none; }
  .prefs-btn-icon { font-size: 13px; }
}
@media (max-width: 480px) {
  .new-pill-wrap { top: 66px; }
}
@media (max-width: 640px) {
  .prefs-scrim { padding: 0; align-items: flex-end; }
  .prefs-modal {
    width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0;
    animation: modalSheet .24s cubic-bezier(.2, .8, .2, 1) both;
  }
  .prefs-head { padding: 22px 18px 0; }
  .prefs-body { padding: 12px 18px 2px; }
  .prefs-alert-block { padding: 10px 18px 4px; }
  .prefs-alert-list { max-height: 116px; }
  .prefs-foot { padding: 10px 18px 16px; }
  .prefs-seg { grid-template-columns: 1fr; }
  .new-pill { font-size: 12px; padding: 9px 14px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .new-pill.is-pop { animation: none; }
  .feed-item.is-new { box-shadow: 0 0 0 2px rgba(242, 201, 76, .6); }
}

/* ==========================================================================
   PR #51 — 히어로 오른쪽 '통합 라이브 폰 알림' (S등급·김프·공포탐욕 한 화면)
   ========================================================================== */
.aha {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0; padding: 24px 24px 22px;
  border-radius: 20px;
  border: 1px solid rgba(242, 201, 76, 0.32);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(242, 201, 76, 0.20), rgba(242, 201, 76, 0) 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(99, 102, 241, 0.18), rgba(99, 102, 241, 0) 62%),
    linear-gradient(160deg, #101a2e 0%, #0b1120 58%, #080d17 100%);
  color: #e8edf6;
  box-shadow: 0 36px 72px -48px rgba(11, 17, 32, 0.98), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.aha-head { min-width: 0; }
.aha-eyebrow {
  margin: 0 0 5px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(242, 201, 76, 0.92);
}
.aha-head h2 {
  margin: 0; font-family: var(--sans); font-size: clamp(19px, 2vw, 22px); font-weight: 800;
  line-height: 1.35; letter-spacing: -0.025em; color: #fff; word-break: keep-all;
}
.aha-phone {
  width: 100%; padding: 0; border-radius: 0;
  background: none; border: 0; box-shadow: none;
}
.aha-phone-bar { display: flex; align-items: center; justify-content: flex-start; gap: 8px; height: auto; margin-bottom: 8px; }
.aha-cam { width: 34px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.aha-now {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
  color: rgba(226, 232, 240, 0.55);
}
.aha-sms {
  border-radius: 15px; padding: 14px 15px 12px; background: #f8fafc;
  box-shadow: 0 20px 38px -24px rgba(0, 0, 0, 0.95);
}
.aha-sms-head {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: #9a7b22;
}
.aha-sms-head span { font-weight: 600; color: #64748b; letter-spacing: 0; text-transform: none; }
.aha-sms-line {
  margin: 0 0 5px; font-size: 14px; line-height: 1.45; font-weight: 800;
  letter-spacing: -0.02em; color: #0b1120; word-break: keep-all;
}
.aha-sms-line + .aha-sms-line { font-weight: 600; font-size: 13px; color: #334155; }
.aha-sms-meta {
  margin: 7px 0 0; padding-top: 6px; border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 10.5px !important; font-weight: 600 !important; color: #64748b !important;
}
.aha-taps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.aha-tap {
  appearance: none; cursor: pointer; padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #cbd5e1;
  font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.aha-tap:hover { border-color: rgba(242, 201, 76, 0.55); color: #fff; }
.aha-tap[aria-pressed="true"] {
  border-color: rgba(242, 201, 76, 0.62); background: rgba(242, 201, 76, 0.18); color: #ffe7a6;
}
.aha-tap:focus-visible { outline: 2px solid rgba(212, 175, 95, 0.75); outline-offset: 2px; }
.aha-cta { margin-top: 2px; font-weight: 800; }
.aha-fine { margin: 0; font-size: 11.5px; line-height: 1.6; color: rgba(226, 232, 240, 0.56); }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .aha { max-width: 460px; }
}
@media (max-width: 720px) {
  .aha { max-width: none; padding: 20px 18px 18px; }
  .aha-head h2 { font-size: 19px; }
  .aha-sms-line { font-size: 13.5px; }
  .aha-cta { width: 100%; justify-content: center; }
}

/* 가입창 — 선택 입력·지표 조건 알림은 접어 두고 3탭(자산·번호·인증번호)만 남긴다 */
.opt-box {
  margin: 12px 0;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}
.opt-box > summary {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 13px; cursor: pointer; list-style: none;
}
.opt-box > summary::-webkit-details-marker { display: none; }
.opt-box > summary:focus-visible { outline: 2px solid rgba(212, 175, 95, 0.7); outline-offset: 2px; border-radius: 10px; }
.opt-box[open] > summary { border-bottom: 1px dashed var(--line-2); }
.opt-box-title { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: -0.01em; }
.opt-box-title em {
  font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--gold-deep); background: rgba(242, 201, 76, 0.22);
}
.opt-box-note { font-size: 11.5px; color: var(--faint); }
.opt-box-body { padding: 12px 13px 1px; }
.opt-box-body .field:last-child { margin-bottom: 4px; }
.opt-box-alert .alt-panel { margin: 10px 11px 11px; }

/* ==========================================================================
   웹 푸시 (PR #35) — 잠금화면 알림 미리보기 · 이 기기 푸시 켜기/테스트
   ========================================================================== */
.sms-app {
  display: flex; align-items: baseline; gap: 5px;
  margin: 0 0 4px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em; color: var(--muted);
}
.sms-app span {
  padding: 1px 6px; border-radius: 999px;
  border: 1px solid var(--gold-hairline); background: rgba(242, 201, 76, .14);
  color: var(--gold-deep); font-size: 9.5px; letter-spacing: .04em;
}
.sms-app + .sms-line { font-weight: 700; color: var(--ink); }

.field-sub { font-weight: 500; color: var(--muted); font-size: 11.5px; letter-spacing: 0; }

.push-consent-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line);
}
.push-consent-row .btn { font-size: 11.5px; padding: 7px 11px; }
.push-consent-state { font-size: 11px; line-height: 1.5; color: var(--faint); }
.push-consent-state.is-on { color: var(--emerald); }

.push-finish {
  margin: 18px 0 12px; padding: 14px 15px;
  border: 1px solid var(--gold-hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf6, #fbf7ea);
}
.push-finish-title { margin: 0; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.push-finish-sub { margin: 6px 0 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.push-finish-sub.is-on { color: #0f766e; }
.push-finish-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.push-finish-actions .btn { font-size: 12.5px; padding: 10px 14px; }

.prefs-push-block {
  padding: 12px 13px; border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 201, 76, .22); background: rgba(242, 201, 76, .055);
}
.prefs-push-block .prefs-label { color: #e8d9a8; margin-bottom: 5px; }
.prefs-push-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.prefs-push-actions .btn { font-size: 11.5px; padding: 8px 11px; }
.prefs-push-actions .btn-ghost { color: #e8eef8; border-color: rgba(255, 255, 255, .22); }
.prefs-push-actions .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .42); }
.prefs-hint.is-on { color: #86efac; }

/* ============================================================ PR #36 — 히어로 CTA 4종
   가입(알림) · 텔레그램 속보 · 1:1 문의 · Pro 대기. 한 줄에 역할이 다른 네 개를 둔다. */
.hero-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin: 26px auto 0; max-width: 640px;
}
.hero-cta .hero-cta-main {
  font-size: 15px; padding: 14px 22px; border-radius: 12px;
  box-shadow: 0 14px 30px -16px rgba(242, 201, 76, .85);
}
.hero-cta-alt {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .72);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; transition: border-color .16s, background .16s, transform .16s;
  font-family: inherit;
}
.hero-cta-alt:hover { border-color: var(--gold-champagne); background: #fffdf6; transform: translateY(-1px); }
.hero-cta-alt:focus-visible { outline: 2px solid rgba(212, 175, 95, .7); outline-offset: 2px; }
.hero-cta-pro { border-style: dashed; border-color: var(--gold-hairline); color: var(--gold-deep); }
/* 고객지원 버튼은 문구가 길어 두 줄까지 허용한다(줄 높이만 줄여 CTA 높이를 맞춘다) */
.hero-inquiry, #heroInquiry { line-height: 1.35; text-align: center; }
.hero-cta-fine { margin: 12px 0 0; font-size: 11.5px; color: var(--faint); }
@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; gap: 7px; }
  .hero-cta .hero-cta-main, .hero-cta-alt { justify-content: center; width: 100%; }
}

/* [예시] 배지 — 실제 오늘 S등급이 없을 때만 붙는다 */
.aha-sample {
  margin-left: 6px; padding: 1px 5px; border-radius: 5px;
  border: 1px solid rgba(220, 38, 38, .35); background: rgba(220, 38, 38, .08);
  font-size: 8px; font-weight: 800; letter-spacing: 0; color: #b91c1c; text-transform: none;
}
.aha-sample[hidden] { display: none; }

/* 국내주식 탭 — 빈 목록 대신 정직한 준비 중 안내 */
.feed-soon { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; }
.feed-soon b { font-size: 14.5px; color: var(--ink); }
.feed-soon .feed-soon-cta { margin-top: 6px; }
.feed-soon-fine { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }

/* 상세 모달 하단 고정 CTA */
.detail-cta-row {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; gap: 8px; align-items: center;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(11, 17, 32, .92), rgba(11, 17, 32, .99));
  border-top: 1px solid rgba(242, 201, 76, .22);
}
.detail-cta-inquiry,
.detail-cta-signup {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  text-decoration: none; letter-spacing: -0.01em; flex: 1 1 0; min-width: 0; text-align: center;
}
.detail-cta-inquiry {
  border: 1px solid rgba(255, 255, 255, .22); color: #e8eef8; background: rgba(255, 255, 255, .05);
  font-size: 11.5px; line-height: 1.35;
}
.detail-cta-inquiry:hover { border-color: rgba(242, 201, 76, .6); color: #f8e6a6; }
.detail-cta-signup { background: var(--gold); color: #0b1120; }
.detail-cta-signup:hover { background: var(--gold-hover); }
@media (max-width: 520px) {
  .detail-cta-row { flex-direction: column; }
  .detail-cta-inquiry, .detail-cta-signup { width: 100%; }
}

/* Pro 대기 · 문의 리드 모달 */
.lead-scrim {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: 20px 14px; background: rgba(8, 12, 20, .62); backdrop-filter: blur(3px);
}
.lead-scrim[hidden] { display: none; }
.lead-modal {
  position: relative; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  padding: 26px 24px 20px; border-radius: 16px; background: var(--card);
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, .6); border: 1px solid var(--line);
}
.lead-close {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px;
  border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--faint); cursor: pointer;
}
.lead-close:hover { color: var(--ink); }
.lead-eyebrow { margin: 0 0 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--gold-deep); }
.lead-title { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.lead-sub { margin: 0 0 18px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.lead-form { display: flex; flex-direction: column; gap: 6px; }
.lead-label { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.lead-req { color: var(--signal); font-weight: 800; font-size: 10.5px; }
.lead-opt { color: var(--faint); font-weight: 600; font-size: 10.5px; }
.lead-input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 13.5px; color: var(--ink); background: #fff; font-family: inherit;
}
.lead-input:focus { outline: none; border-color: var(--gold-champagne); box-shadow: 0 0 0 3px rgba(242, 201, 76, .18); }
.lead-submit { margin-top: 14px; }
.lead-msg { margin: 6px 0 0; font-size: 12px; color: var(--signal); min-height: 16px; }
.lead-done { text-align: center; padding: 6px 0 2px; }
.lead-done-title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #0f766e; }
.lead-done-text { margin: 0 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.lead-again {
  margin-top: 10px; border: 0; background: none; font-size: 12px; color: var(--muted);
  text-decoration: underline; cursor: pointer; font-family: inherit;
}
.lead-fine { margin: 14px 0 0; font-size: 11px; line-height: 1.6; color: var(--faint); }

/* 가입 완료 — 4단 다음 행동 */
.next-steps {
  margin: 18px 0 14px; padding: 15px 15px 6px;
  border: 1px solid var(--gold-hairline); border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf6, #fbf7ea);
}
.next-steps-head { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.next-steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.next-step { display: flex; align-items: center; gap: 10px; }
.next-step-no {
  flex: 0 0 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--navy); color: var(--gold); font-size: 11px; font-weight: 800;
}
.next-step-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.next-step-body b { font-size: 12.5px; color: var(--ink); }
.next-step-body span { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.next-step-body span.is-on { color: #0f766e; }
.next-step .btn { flex: 0 0 auto; font-size: 11.5px; padding: 8px 12px; }
.brief-none-cta {
  margin-left: 4px; border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12px; font-weight: 800; color: #2563eb; text-decoration: underline; font-family: inherit;
}

/* ==========================================================================
   글 단위 고유 주소 (/p/<id>) — 3초 결론 · 핵심 수치 · 원문 시각 (PR #41)
   메인과 같은 종이 톤·단일 컬럼. 읽는 데 필요한 것만 위에서부터 쌓는다.
   ========================================================================== */
.post-page { background: var(--paper); }
.post-main { padding-top: 28px; padding-bottom: 8px; }
.post-article { max-width: var(--column); }
.post-label {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.post-cat { color: var(--ink-2); }
.post-title {
  margin: 0 0 12px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(23px, 3.4vw, 32px); line-height: 1.36; letter-spacing: -.01em; color: var(--ink);
}
.post-byline {
  margin: 0 0 26px; font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.post-conclusion {
  margin: 0 0 26px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--navy); color: #f7f4ec;
  border: 1px solid rgba(242, 201, 76, .28);
  box-shadow: var(--shadow);
}
.post-kicker {
  margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: var(--gold-champagne); text-transform: uppercase;
}
.post-conclusion-text {
  margin: 0; font-family: var(--serif); font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.6; color: #fbfaf6;
}
.post-h2 {
  margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase;
}
.post-numbers, .post-assets, .post-summary, .post-impact, .post-source { margin: 0 0 28px; }
.post-number-list, .post-summary-list { margin: 0; padding: 0; list-style: none; }
.post-number-list li {
  padding: 10px 0 10px 14px; border-left: 2px solid var(--gold-hairline);
  font-size: 15px; line-height: 1.65; color: var(--body);
  font-variant-numeric: tabular-nums;
}
.post-number-list li + li { margin-top: 6px; }
.post-summary-list li {
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.7; color: var(--body);
}
.post-summary-list li:last-child { border-bottom: 0; }
.post-asset-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.post-asset {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.post-impact p {
  margin: 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.7; color: var(--body);
}
.post-source {
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.post-source-line { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.post-source-link { font-size: 14px; font-weight: 700; color: var(--cobalt-ink); text-decoration: none; }
.post-source-link:hover { text-decoration: underline; }
.post-times { display: grid; gap: 8px; margin: 16px 0 0; }
.post-times div { display: flex; justify-content: space-between; gap: 14px; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.post-times dt { margin: 0; font-size: 12px; color: var(--muted); }
.post-times dd { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.post-actions .btn-quiet {
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  padding: 13px 20px; font-size: 14px; border-radius: var(--radius-sm); text-decoration: none;
}
/* 2회차: 글 페이지 공유 줄 — 텔레그램·X 로 바로 보내기(링크에 utm_source=share) */
.post-share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: -16px 0 30px; }
.post-share-links a {
  font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line-2); padding-bottom: 1px;
}
.post-share-links a:hover { color: var(--cobalt-ink); border-color: var(--cobalt-ink); }
.post-related { margin: 0 0 26px; }
.post-related ul { margin: 0; padding: 0; list-style: none; }
.post-related li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.post-related li:last-child { border-bottom: 0; }
.post-related a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.post-related a:hover { color: var(--cobalt-ink); text-decoration: underline; }
@media (max-width: 560px) {
  .post-conclusion { padding: 16px 16px; }
  .post-title { font-size: 24px; }
}

/* --------------------------------------------------------------- 피드 카드 공유 (PR #41) */
.feed-foot-right { display: inline-flex; align-items: center; gap: 8px; }
.card-share {
  flex: none; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  padding: 4px 10px; font-size: 11px; font-weight: 700; line-height: 1.4;
  background: transparent; color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.card-share:hover { border-color: var(--ink-2); color: var(--ink); }
.card-share:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* --------------------------------------------------------------- 국내 공시 요약 (PR #41) */
.filing-summary {
  margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.filing-line { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.filing-line b { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.filing-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.filing-chip {
  padding: 4px 10px; border-radius: 999px; background: var(--paper-2);
  border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--ink-2);
}
.filing-chip b { font-family: var(--mono); margin-left: 2px; }
.filing-note { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------- 공개 속도 실측 (PR #41) */
.latency { margin: 54px auto 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.latency-head { margin: 0 0 14px; }
.latency-sub { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.latency-body {
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--navy); color: #f7f4ec; box-shadow: var(--shadow);
}
.latency-median { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.latency-num {
  font-family: var(--mono); font-size: clamp(34px, 6vw, 46px); font-weight: 500;
  line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums;
}
.latency-median.is-empty .latency-num { color: rgba(247, 244, 236, .45); }
.latency-unit { font-size: 14px; font-weight: 700; color: var(--gold-champagne); }
.latency-caption { margin: 10px 0 0; font-size: 12px; color: rgba(247, 244, 236, .72); }
.latency-sources { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.latency-sources li {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 8px; border-top: 1px solid rgba(247, 244, 236, .16);
  font-size: 12.5px; color: rgba(247, 244, 236, .88);
}
.latency-sources a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(242, 201, 76, .4); }
.latency-sources a:hover { color: var(--gold); }
.latency-val { margin-left: auto; font-family: var(--mono); color: var(--gold); }
.latency-sample { font-size: 11px; color: rgba(247, 244, 236, .55); }
@media (max-width: 560px) {
  .latency-body { padding: 16px 16px; }
  .latency-sample { display: none; }
}

/* ============================================================ PR #42 — 히어로 증거 카드 · 모바일 첫 화면 */
/* 첫 화면 상단: 오늘 실제 속보 1건(없으면 [예시]). CTA 아래에 두어 390×844 에서 가입 CTA와 함께 보인다. */
.hero-cta-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-links { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-link-quiet {
  font-size: 11.5px; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line-2); line-height: 1.4;
}
.hero-link-quiet:hover { color: var(--ink); }
.hero-proof {
  margin: 20px auto 0; max-width: 640px; padding: 13px 16px;
  text-align: left; border: 1px solid var(--line); border-left: 3px solid var(--gold-champagne);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf8, #f9f5ea);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 34px -32px rgba(15, 23, 42, .5);
}
.hero-proof-top {
  display: flex; align-items: center; gap: 8px; margin: 0 0 5px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--gold-deep);
  text-transform: uppercase;
}
.hero-proof-live { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof-count { margin-left: auto; color: var(--faint); letter-spacing: 0; text-transform: none; }
.hero-proof-title {
  margin: 0; font-family: var(--sans); font-size: 15px; font-weight: 700;
  line-height: 1.45; letter-spacing: -0.02em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-proof-body {
  margin: 4px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-proof-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
  margin: 7px 0 0; font-size: 10.5px; color: var(--faint);
}
.hero-proof-foot a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid #e6d6a8; white-space: nowrap; }

@media (max-width: 560px) {
  /* 390×844 첫 화면 — 상단 여백·카드 밀도를 줄여 가입 CTA와 오늘 속보 1건이 스크롤 없이 보이게 */
  .hero { padding-top: 16px; }
  .hero .eyebrow { font-size: 8.5px; letter-spacing: .16em; gap: 7px; }
  .hero .eyebrow::before, .hero .eyebrow::after { width: 14px; }
  .hero h1 { font-size: 22px; line-height: 1.3; margin-top: 8px; letter-spacing: -0.035em; }
  .hero-rule { display: none; }
  .hero-sub { margin-top: 7px; font-size: 12.5px; line-height: 1.5; }
  .hero-cta { margin-top: 11px; gap: 6px; }
  .hero-cta .hero-cta-main { font-size: 14.5px; padding: 12px 16px; }
  .hero-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
  .hero-cta-row .hero-cta-alt { justify-content: center; padding: 8px 6px; font-size: 11px; white-space: nowrap; }
  .hero-links { gap: 8px; margin-top: 1px; }
  .hero-link-quiet { font-size: 10px; border-bottom: 0; }
  .hero-cta-pro { padding: 5px 9px; font-size: 10.5px; }
  .hero-cta-fine { margin-top: 7px; font-size: 10.5px; }
  .hero-proof { margin-top: 11px; padding: 9px 11px; }
  .hero-proof-title { font-size: 13.5px; }
  .hero-proof-body { font-size: 11px; -webkit-line-clamp: 2; }
  .hero-proof-foot { margin-top: 5px; font-size: 10px; }
}

/* ------------------------------------------------ 크립토 파생지표 센터 */
.derivatives { margin: 2px auto 26px; }
.deriv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.deriv-head .section-label { margin-bottom: 0; }
.deriv-sub { margin: 0; font-size: 10.5px; color: var(--faint); font-family: var(--mono); letter-spacing: 0; }
.derivatives .market-pulse { margin: 10px 0 0; }
.deriv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.deriv-card {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 12px 14px 11px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf8, #f8f4ea);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 14px 30px -30px rgba(15, 23, 42, .45);
}
.deriv-label { margin: 0; font-size: 11px; color: var(--muted); letter-spacing: .01em; display: flex; align-items: baseline; gap: 5px; }
.deriv-src { font-size: 9.5px; color: var(--faint); }
.deriv-value {
  margin: 1px 0 0; font-family: var(--mono); font-size: 21px; line-height: 1.15;
  font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.deriv-meta { margin: 0; font-size: 9.5px; line-height: 1.5; color: var(--faint); min-height: 2.9em; }
.deriv-alert {
  margin-top: auto; align-self: flex-start; font-family: inherit;
  font-size: 10.5px; font-weight: 700; color: var(--gold-deep);
  background: none; border: 1px solid #e6d6a8; border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.deriv-alert:hover { background: #fffdf4; border-color: var(--gold-champagne); }
.deriv-alert.is-static { color: var(--faint); border-color: var(--line); cursor: default; }
.deriv-alert.is-static:hover { background: none; border-color: var(--line); }
.deriv-note { margin: 9px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--faint); }
@media (max-width: 640px) {
  .deriv-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .deriv-card[data-metric="open_interest"] { grid-column: 1 / -1; }
  .deriv-value { font-size: 19px; }
  .derivatives { margin-bottom: 20px; }
}

/* ------------------------------------------------ 거래소 공지 배지 · 필터 */
.topic-badge {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px;
  font-size: 9px; font-weight: 800; letter-spacing: .01em; vertical-align: 1px;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
}
.chip-exchange[aria-pressed="true"] { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.chip-count { margin-left: 5px; font-family: var(--mono); font-size: 10px; color: var(--gold-deep); }

/* ------------------------------------------------ 공식 일정 — ICS 구독 · 확인 3가지 · 알림 예약 */
.schedule-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ics-btn {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff;
  font-size: 11px; font-weight: 700; color: var(--ink-2); text-decoration: none;
}
.ics-btn:hover { border-color: var(--gold-champagne); background: #fffdf4; color: var(--gold-deep); }
.ev-extra { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; margin: 5px 0 0 76px; }
.ev-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 6px; counter-reset: evc;
}
.ev-list li {
  counter-increment: evc; font-size: 10.5px; line-height: 1.45; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}
.ev-list li::before { content: counter(evc) ". "; color: var(--gold-deep); font-weight: 700; }
.ev-remind {
  flex: none; font-family: inherit; font-size: 10.5px; font-weight: 700;
  color: var(--gold-deep); background: none; border: 1px solid #e6d6a8;
  border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.ev-remind:hover { background: #fffdf4; border-color: var(--gold-champagne); }
.ev-remind.is-on { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.next-list { margin-top: 8px; }
.next-remind { margin-top: 9px; }
@media (max-width: 720px) {
  .ev-extra { margin-left: 0; }
  .ev-remind { align-self: flex-start; }
}

/* ------------------------------------------------ 내 알림 설정 — 지표 조건 알림 */
.prefs-rule-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.prefs-rule-row select, .prefs-rule-input {
  height: 34px; min-width: 0; padding: 0 9px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  color: #f1f5fb; font-size: 12.5px; font-family: inherit; outline: none;
}
.prefs-rule-row select { flex: 0 1 auto; }
.prefs-rule-input { flex: 1 1 84px; font-family: var(--mono); }
.prefs-rule-row .btn-sm, .prefs-rule-row .btn-mini { height: 34px; }
.prefs-rule-row .btn-mini {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #e8eef8;
}
.prefs-rule-row .btn-mini:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.prefs-rule-row .btn-ghost { color: #f2e6bd; border-color: rgba(242, 201, 76, .4); background: rgba(242, 201, 76, .10); }
.prefs-rule-row .btn-ghost:hover { background: rgba(242, 201, 76, .18); border-color: rgba(242, 201, 76, .7); }
.prefs-rule-block .prefs-msg { min-height: 0; margin: 6px 0 0; }

/* ==========================================================================
   P2-B (PR #44) — 아침 브리핑 · 과거 반응 · 복기 · 알림 방식
   같은 럭셔리 에디토리얼 토큰 위에 단일 컬럼 720px 로 쌓는다.
   ========================================================================== */
.briefing-main { max-width: var(--column); margin: 0 auto; padding: 26px 18px 56px; }
.brief-hero { padding: 18px 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.brief-hero .eyebrow { margin: 0 0 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--gold-deep); }
.brief-hero h1 { font-family: var(--serif); font-size: clamp(26px, 5vw, 36px); line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.01em; }
.brief-date { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.brief-lead { margin: 0 0 14px; color: var(--body); font-size: 14.5px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.brief-actions .link-quiet { font-size: 12.5px; }
.brief-fine { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; }

.brief-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; margin: 0 0 14px; box-shadow: var(--shadow);
}
.brief-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.brief-card-head .section-label { margin: 0 0 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--gold-deep); }
.brief-card-head h3 { margin: 0; font-size: 15px; }
.brief-card-sub { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.brief-count { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.streak-badge { font-family: var(--mono); font-size: 11px; color: var(--gold-deep); background: #fffdf4; border: 1px solid #e6d6a8; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check-item {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  font-family: inherit; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 10px; color: var(--ink);
}
.check-item b { font-size: 13px; }
.check-item em { font-style: normal; font-size: 11px; color: var(--muted); line-height: 1.45; }
.check-item .check-mark { font-size: 13px; color: var(--faint); }
.check-item.is-checked { background: #fffdf4; border-color: #e6d6a8; }
.check-item.is-checked .check-mark { color: var(--gold-deep); }
.check-item:hover { border-color: var(--gold-champagne); }
.brief-note { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; }

.brief-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.brief-item { border-top: 1px dashed var(--line); padding-top: 9px; display: flex; flex-direction: column; gap: 2px; }
.brief-item:first-child { border-top: 0; padding-top: 0; }
.brief-digest-line { margin: 2px 0 10px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1.45; }
.brief-item b { font-size: 13.5px; line-height: 1.45; }
.brief-meta { font-size: 11px; color: var(--muted); }
.brief-link { font-size: 11.5px; color: var(--cobalt-ink); text-decoration: none; font-weight: 700; }
.brief-link:hover { text-decoration: underline; }
.brief-empty { margin: 0; font-size: 12.5px; color: var(--muted); padding: 6px 0; }

.event-rows { display: flex; flex-direction: column; gap: 10px; }
.event-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--paper-2); }
.event-row-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.event-row-head h3 { margin: 0; font-size: 14px; flex: 1 1 200px; }
.event-grade { font-family: var(--mono); font-size: 10px; font-weight: 700; border-radius: 5px; padding: 2px 6px; }
.event-grade.grade-S { background: #fef2f2; color: var(--ruby-ink); border: 1px solid #fecaca; }
.event-grade.grade-A { background: #fffdf4; color: var(--gold-deep); border: 1px solid #e6d6a8; }
.event-grade.grade-B { background: #eff6ff; color: var(--cobalt-ink); border: 1px solid #bfdbfe; }
.event-time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.event-org { margin: 3px 0 6px; font-size: 11.5px; color: var(--muted); }
.event-checklist { margin: 0 0 6px; padding-left: 18px; font-size: 11.5px; color: var(--body); }
.next-events { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.next-events-head { margin: 0 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.next-events ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }

.indicator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.indicator-cell { background: var(--navy); color: #f1f5fb; border-radius: var(--radius-sm); padding: 12px 11px; }
.ind-label { margin: 0 0 4px; font-size: 11px; color: #b9c4d6; }
.ind-value { margin: 0 0 3px; font-family: var(--mono); font-size: 17px; font-weight: 500; }
.ind-meta { margin: 0; font-size: 10px; color: #93a1b8; line-height: 1.4; }

.watch-brief-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.watch-brief-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 7px; }
.watch-brief-row:first-child { border-top: 0; padding-top: 0; }
.watch-brief-row b { font-size: 13px; }

.weekly-body { border-top: 1px solid var(--line); padding-top: 12px; }
.weekly-count { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.weekly-title { margin: 14px 0 6px; font-size: 12px; font-weight: 800; color: var(--ink); }

.stat-tabs { display: flex; gap: 5px; }
.stat-tab {
  font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: var(--muted); background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 10px;
}
.stat-tab[aria-selected="true"] { color: #1a1405; background: var(--gold); border-color: var(--gold); }
.stat-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.stat-block { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.stat-label { margin: 0 0 4px; font-size: 11px; color: var(--muted); }
.stat-main { margin: 0 0 3px; font-family: var(--mono); font-size: 16px; }
.stat-sub { margin: 0; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.stat-sample-line { margin: 0 0 8px; font-size: 11px; color: var(--muted); }
.stat-table-wrap { overflow-x: auto; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.stat-table th, .stat-table td { text-align: right; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; font-family: var(--mono); }
.stat-table th { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.stat-table td.up { color: #047857; }
.stat-table td.down { color: var(--ruby-ink); }
.stat-basis { color: var(--muted); font-size: 10.5px; }
.stat-formula, .stat-notice { margin: 10px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.6; }
.stat-notice { font-weight: 700; color: var(--ink-2); }

.recap-list { display: flex; flex-direction: column; gap: 12px; }
.recap-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--paper-2); }
.recap-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.recap-date { font-family: var(--mono); font-size: 10.5px; color: var(--gold-deep); border: 1px solid #e6d6a8; border-radius: 5px; padding: 2px 5px; white-space: nowrap; }
.recap-head h3 { margin: 0; font-size: 13.5px; }
.recap-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-bottom: 6px; }
.recap-table th, .recap-table td { text-align: right; padding: 5px 4px; border-bottom: 1px solid var(--line); }
.recap-table th:first-child, .recap-table td:first-child { text-align: left; font-family: var(--mono); color: var(--muted); }
.recap-table td.up { color: #047857; }
.recap-table td.down { color: var(--ruby-ink); }
.recap-numbers { margin: 4px 0; font-size: 11.5px; color: var(--ink-2); }

.alerts-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.alerts-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--paper-2); }
.alerts-label { margin: 0 0 8px; font-size: 11px; font-weight: 800; color: var(--ink); }
.alerts-hint { margin: 0 0 6px; font-size: 10.5px; color: var(--muted); line-height: 1.55; }
.mode-seg { display: flex; gap: 5px; }
.mode-btn {
  flex: 1; display: flex; flex-direction: column; gap: 2px; cursor: pointer; font-family: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 7px; text-align: left;
}
.mode-btn b { font-size: 12px; }
.mode-btn em { font-style: normal; font-size: 10px; color: var(--muted); }
.mode-btn[aria-checked="true"] { border-color: var(--gold); background: #fffdf4; }
.quiet-toggle { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); margin-bottom: 7px; }
.quiet-row { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.quiet-time { width: 84px; height: 30px; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 6px; font-family: var(--mono); font-size: 11px; background: var(--card); color: var(--ink); }
.alerts-save-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.alerts-msg { font-size: 11.5px; color: var(--muted); }
.brief-notices { border-top: 1px solid var(--line); padding-top: 12px; }
.brief-notices ul { margin: 0 0 6px; padding-left: 16px; font-size: 10.5px; color: var(--muted); line-height: 1.6; }

@media (max-width: 720px) {
  .check-grid, .indicator-grid, .alerts-grid { grid-template-columns: 1fr; }
  .stat-summary { grid-template-columns: 1fr; }
  .brief-card { padding: 15px 13px; }
  .stat-tabs { flex-wrap: wrap; }
}

/* ------------------------------------------------ PR #44 — 설정 모달 · 홈 브리핑 티저 */
.prefs-quiet-row {
  display: flex; align-items: center; gap: 6px; margin-top: 9px;
  font-size: 11.5px; color: rgba(226, 234, 246, .78);
}
.prefs-quiet-row.is-off { opacity: .55; }
.prefs-quiet-time {
  height: 30px; width: 78px; padding: 0 6px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07);
  color: #f1f5fb; font-family: var(--mono); font-size: 11px;
}
.prefs-quiet-note { font-family: var(--mono); font-size: 10px; color: rgba(226, 234, 246, .5); }
.prefs-seg-mode .prefs-seg-btn em { font-size: 10px; }

.brief-teaser {
  margin: 26px auto 6px; padding: 16px 15px; border-radius: var(--radius);
  background: var(--navy); color: #eef3fb; box-shadow: var(--shadow-lift);
}
.brief-teaser-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.brief-teaser .section-label { margin: 0; color: var(--gold); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; }
.brief-teaser-link { color: var(--gold); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brief-teaser-link:hover { text-decoration: underline; }
.brief-teaser-lead { margin: 7px 0 9px; font-size: 12px; color: #b9c4d6; line-height: 1.55; }
.brief-teaser-list { list-style: none; margin: 0 0 9px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.brief-teaser-list li { font-size: 12.5px; color: #e8eef8; padding-left: 12px; position: relative; line-height: 1.5; }
.brief-teaser-list li::before { content: "·"; position: absolute; left: 0; color: var(--gold); }
.brief-teaser-foot { margin: 0; font-size: 10px; color: #8797ad; line-height: 1.5; }
@media (max-width: 720px) {
  .brief-teaser-head { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   PR #51 — 3초 가독성 · 매력도 전면 개편
   (굵은 제목 · 진한 본문 · 최신 속보 5건 + 더 보기 · 히어로/섹션 정돈)
   ========================================================================== */

/* ------------------------------------------------ 글자 위계: 제목은 굵게, 본문은 진하게 */
body { color: #111827; line-height: 1.68; }
h1, h2, h3 { font-weight: 800; }
.section-label {
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
  color: #334155; text-transform: none; margin-bottom: 12px;
}
.section-label::before { width: 7px; height: 7px; }
.latest-meta { font-size: 12.5px; font-weight: 600; color: #475569; }
.latest-meta strong { font-weight: 800; color: #0b1120; }
.deriv-sub, .latency-sub { font-size: 12px; color: #475569; font-family: var(--sans); line-height: 1.6; }

/* 섹션 사이 숨통 — 예전 64~72px 는 스크롤이 길어 48px 로 */
.latest { margin-top: 48px; }
.schedule { margin-top: 52px; }
.plans { margin-top: 52px; }
.carousel-block { margin-top: 44px; }
.featured { margin-top: 36px; }

/* ------------------------------------------------ 최신 속보 도구·카드 */
.watch-strip-label { font-size: 10.5px; font-weight: 800; color: #64748b; letter-spacing: .1em; }
.watch-chip {
  font-size: 12.5px; font-weight: 700; color: #334155; padding: 6px 13px;
}
.watch-chip[aria-pressed="true"] { font-weight: 800; }
.fav-chip { font-size: 12.5px; font-weight: 600; color: #334155; }
.chip { font-size: 13px; font-weight: 700; color: #334155; padding: 7px 15px; }
.chip[aria-pressed="true"] { font-weight: 800; }
.feed { gap: 12px; }
.feed-item { padding: 20px 22px 16px; border-radius: 12px; }
.feed-label { margin-bottom: 8px; }
.card-label { font-size: 12px; font-weight: 600; color: #475569; letter-spacing: .005em; }
.badge-imp { font-size: 11px; font-weight: 800; padding: 2px 10px; }
.feed-item h3 {
  font-size: clamp(18px, 1.95vw, 21px); font-weight: 800; line-height: 1.42;
  letter-spacing: -0.03em; color: #0b1120;
}
.feed-item[data-importance="S"] h3 { font-size: clamp(19px, 2.15vw, 23px); }
.post-title-btn { font-weight: inherit; }
.feed-body {
  margin-top: 8px; font-size: 14.5px; line-height: 1.68; color: #1f2937;
  -webkit-line-clamp: 2; line-clamp: 2;
}
.impact-line {
  margin-top: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.6; color: #1f2937;
}
.impact-line span { font-weight: 800; }
.feed-foot { margin-top: 12px; font-size: 12.5px; color: #475569; }
.src-meta b { color: #334155; font-weight: 700; }
.src-meta time, .feed-foot time { font-size: 11.5px; }
.card-share, .eng-badge { font-size: 11.5px; color: #475569; }

/* 5건 아래 '이전 속보 더 보기 / 접기' */
.feed-more { display: flex; justify-content: center; margin: 8px 0 2px; }
.feed-more-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: #fff; color: #0b1120;
  font-family: inherit; font-size: 14px; font-weight: 800; letter-spacing: -0.015em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -26px rgba(15, 23, 42, 0.6);
  transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .18s ease;
}
.feed-more-btn b {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--gold-deep);
  background: rgba(242, 201, 76, 0.18); border: 1px solid rgba(212, 175, 95, 0.34);
  border-radius: 999px; padding: 2px 9px;
}
.feed-more-btn:hover {
  border-color: var(--gold-champagne); background: #fffdf5; transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(15, 23, 42, 0.05), 0 18px 32px -24px rgba(154, 123, 34, 0.7);
}
.feed-more-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.feed-more-btn.is-less {
  padding: 10px 20px; font-size: 13px; font-weight: 700;
  background: transparent; border-color: var(--line); color: #475569; box-shadow: none;
}
.feed-more-btn.is-less:hover { background: #fff; color: var(--ink); transform: none; }
.feed-more-arrow { font-size: 13px; color: var(--gold-deep); }

/* ------------------------------------------------ 오늘의 한 장 · 주요 속보 · 지연 */
.featured { padding: 30px 32px 28px; }
.featured-label { font-size: 12px; font-weight: 700; }
.featured h2 { font-weight: 800; letter-spacing: -0.03em; }
.featured-body { font-size: 15px; color: rgba(247, 245, 239, 0.86); line-height: 1.75; }
.story-card h3 { font-size: 19px; font-weight: 800; }
.story-excerpt { font-size: 14px; color: #1f2937; }
.story-time { font-size: 12px; color: #475569; }
.latency { margin-top: 40px; }

/* ------------------------------------------------ 공식 일정 */
.schedule-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.schedule-alert {
  border-color: rgba(212, 175, 95, 0.5); background: rgba(242, 201, 76, 0.14); color: #6b5218;
  font-weight: 800;
}
.schedule-alert:hover { background: rgba(242, 201, 76, 0.24); border-color: var(--gold-champagne); }
.next-title { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; }
.next-org { font-size: 12.5px; font-weight: 600; color: #475569; }
.next-clock { font-weight: 700; }
.next-sub { font-size: 12px; color: #475569; }
.ev-main b { font-size: 14.5px; font-weight: 700; }
.ev-main em { font-size: 12px; color: #64748b; }
.ev-when { font-size: 12px; color: #475569; }
.ev-check { font-size: 12px; color: #475569; }
.dday { font-weight: 700; }

/* ------------------------------------------------ 아침 브리핑 진입점 (다크 카드 — 밝은 글자 유지) */
.brief-teaser { margin-top: 44px; }
.brief-teaser .brief-teaser-lead { margin-top: 8px; font-size: 13px; color: #c9d4e6; line-height: 1.6; }
.brief-teaser .brief-teaser-list li { font-size: 13.5px; color: #f2f6fc; line-height: 1.55; }
.brief-teaser .brief-teaser-foot { font-size: 11px; color: #9aa9bf; }
.brief-teaser .brief-teaser-link { font-size: 13px; }

/* ------------------------------------------------ 가입 안내 · 보조 CTA */
.plan-col h3 { font-size: 18px; font-weight: 800; }
.plan-col li { font-size: 13.5px; color: #1f2937; }
.plan-fine { font-size: 11.5px; color: #64748b; }
.plan-aux {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 14px 16px;
  border: 1px dashed var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, 0.5);
}
.plan-aux-lead { margin: 0; font-size: 12.5px; font-weight: 700; color: #64748b; }
.plan-aux .hero-cta-alt { padding: 9px 14px; font-size: 13px; }
.plan-aux .hero-cta-pro { background: var(--navy); border-color: var(--navy); color: #fbfaf6; }
.plan-aux .hero-cta-pro:hover { background: #152238; border-color: #152238; }
.plan-aux .hero-link-quiet { margin-left: auto; font-size: 12px; }

/* ------------------------------------------------ 3초 비상벨 시뮬레이터 (한 번만, 콤팩트) */
.sim { margin-top: 20px; padding: 22px 24px 20px; }
.sim-head h3 { font-size: 18px; font-weight: 800; }
.sim-sub { display: none; }
.sim-body { grid-template-columns: minmax(0, 1fr) 236px; gap: 18px; margin-top: 16px; }
@media (max-width: 720px) {
  .sim-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sim { padding: 20px 16px 18px; }
}
.sim-phone { border-radius: 22px; padding: 7px; }
.sim-screen { min-height: 208px; }
.sim-trigger b { font-size: 13.5px; font-weight: 800; }
.sim-trigger em { font-size: 11.5px; color: rgba(226, 232, 240, 0.6); }
.sim-disclaimer { font-size: 11.5px; color: rgba(226, 232, 240, 0.62); }

/* ------------------------------------------------ 모바일 컨테이너 여백 */
@media (max-width: 900px) {
  main > section, main > section.hero { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(27px, 7.2vw, 36px); }
  .hero-sub { font-size: 15px; }
  .hero-cta-main { width: 100%; justify-content: center; }
  .hero-cta-alt { flex: 1 1 auto; justify-content: center; }
  .feed-item { padding: 18px 16px 14px; }
  .feed-item h3, .feed-item[data-importance="S"] h3 { font-size: 18px; }
  .feed-body { font-size: 14px; }
  .plan-aux .hero-link-quiet { margin-left: 0; }
}
@media (hover: none), (max-width: 640px) {
  /* 터치에서는 카드마다 깔리는 '더 보기' 띠를 없던다 — 제목을 누르면 같은 모달이 열린다 */
  .card-veil { display: none !important; }
  .feed-foot { flex-wrap: wrap; gap: 6px 12px; }
  .src-meta { white-space: normal; overflow: visible; text-overflow: clip; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 27px; letter-spacing: -0.035em; }
  .feed-more-btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------ 실시간 틱 하이라이트 (PR #51)
   3초마다 갱신될 때 오르면 초록, 내리면 빨강으로 짧게 번뜩여 '살아 움직이는' 체감을 준다. */
.tick { border-radius: 6px; }
.tick.tick-up { animation: tickFlashUp 1.15s ease; }
.tick.tick-down { animation: tickFlashDown 1.15s ease; }
@keyframes tickFlashUp {
  0% { background: rgba(16, 185, 129, 0.34); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5) inset; }
  100% { background: transparent; box-shadow: none; }
}
@keyframes tickFlashDown {
  0% { background: rgba(251, 113, 133, 0.32); box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.5) inset; }
  100% { background: transparent; box-shadow: none; }
}
.deriv-value, #fgValue, #longPct, #shortPct { border-radius: 6px; }
.deriv-value.tick-up, #fgValue.tick-up, #longPct.tick-up, #shortPct.tick-up { animation: valFlashUp 1.15s ease; }
.deriv-value.tick-down, #fgValue.tick-down, #longPct.tick-down, #shortPct.tick-down { animation: valFlashDown 1.15s ease; }
@keyframes valFlashUp {
  0% { background: rgba(16, 185, 129, 0.26); color: #047857; }
  100% { background: transparent; }
}
@keyframes valFlashDown {
  0% { background: rgba(251, 113, 133, 0.24); color: #be123c; }
  100% { background: transparent; }
}
.ticker-live.is-fresh .live-dot { animation: livePing 0.9s ease-out; }
@keyframes livePing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tick.tick-up, .tick.tick-down, .deriv-value.tick-up, .deriv-value.tick-down,
  #fgValue.tick-up, #fgValue.tick-down, #longPct.tick-up, #longPct.tick-down,
  #shortPct.tick-up, #shortPct.tick-down, .ticker-live.is-fresh .live-dot { animation: none; }
}

/* P1 정보 카드 v1 — 글 상세의 숫자 해석·과거 기록·다음 확인·복기 */
.post-card-numbers, .post-card-context, .post-card-history, .post-card-next, .post-card-recap { margin: 22px 0; }
.post-card-lead, .post-card-basis { font-size: 13px; color: var(--ink-soft, #8a8f99); margin: 6px 0 12px; }
.post-card-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.post-card-table th[scope="col"] { text-align: left; font-size: 11.5px; letter-spacing: .04em; color: var(--ink-soft, #8a8f99); border-bottom: 1px solid rgba(255,255,255,.14); padding: 6px 8px; }
.post-card-table th[scope="row"] { text-align: left; font-weight: 600; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.post-card-table td { padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: top; }
.post-card-table .card-actual { font-weight: 700; color: var(--gold, #f2c94c); white-space: nowrap; }
.post-card-table .card-derived { color: var(--ink, #e8eaef); }
.post-card-table .card-field { font-size: 11.5px; color: var(--ink-soft, #8a8f99); }
.post-card-context ul, .post-card-next ul { margin: 6px 0 0; padding-left: 18px; }
.post-card-context li, .post-card-next li { margin: 5px 0; font-size: 14px; line-height: 1.55; }
.post-card-history-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px 16px; margin: 8px 0 6px; }
.post-card-history-grid div { border-top: 1px solid rgba(255,255,255,.08); padding-top: 6px; }
.post-card-history-grid dt { font-size: 11px; color: var(--ink-soft, #8a8f99); margin-bottom: 2px; }
.post-card-history-grid dd { margin: 0; font-size: 13.5px; font-weight: 600; }
.post-card-disclaimer { font-size: 11.5px; color: var(--ink-soft, #8a8f99); margin-top: 8px; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--ink-soft, #8a8f99); margin: 18px 0 4px; }
.post-card-confidence { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(242,201,76,.45); color: var(--gold, #f2c94c); }
.post-card-confidence[data-confidence="확인 중"] { border-color: rgba(255,255,255,.25); color: var(--ink-soft, #8a8f99); }
@media (max-width: 640px) {
  .post-card-table { font-size: 12.5px; }
  .post-card-table .card-field { display: none; }
  .post-card-table th[scope="col"]:last-child { display: none; }
}

/* P1: C(참고) 등급 배지 */
.badge-imp.badge-c { background: rgba(255,255,255,.06); color: #9aa0ab; border-color: rgba(255,255,255,.18); }

/* P2 게이팅 — 첫 숫자만 열고 나머지는 흐림 · 결핍형 가입 유도 */
.gate-blur { filter: blur(5px); opacity: .55; user-select: none; letter-spacing: .08em; }
.post-card-table tr.gate-locked th { color: var(--ink-soft, #8a8f99); }
.card-gate { margin: 14px 0 4px; padding: 14px 16px; border: 1px solid rgba(242,201,76,.35); border-radius: 12px; background: linear-gradient(180deg, rgba(242,201,76,.08), rgba(242,201,76,.02)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.card-gate-text { margin: 0; flex: 1 1 260px; font-size: 13.5px; line-height: 1.55; color: var(--ink, #e8eaef); }
.card-gate-cta { white-space: nowrap; }
.post-card-history.is-teaser .post-card-teaser { font-size: 15px; font-weight: 700; color: var(--gold, #f2c94c); margin: 4px 0 10px; }
.post-watch-block { margin: 20px 0 6px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.post-watch-head { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.post-watch-body, .post-watch-note { font-size: 13px; color: var(--ink-soft, #8a8f99); margin: 0 0 10px; }
.post-watch-btn[aria-pressed="true"] { border-color: rgba(242,201,76,.6); color: var(--gold, #f2c94c); }

/* P2 상세 모달 카드 */
.detail-card { margin: 4px 0 14px; }
.dcard-sec { margin: 16px 0; }
.dcard-sec h3 { font-size: 12px; letter-spacing: .06em; color: var(--gold, #f2c94c); margin: 0 0 8px; text-transform: uppercase; }
.dcard-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dcard-table th, .dcard-table td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.dcard-table th[scope="row"] { font-weight: 600; }
.dcard-table .dcard-actual { font-weight: 700; color: var(--gold, #f2c94c); white-space: nowrap; }
.dcard-hist-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink, #e8eaef); }
.dcard-note { font-size: 11.5px; color: var(--ink-soft, #8a8f99); margin: 6px 0 0; }
.dcard-teaser { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.dcard-next { margin: 0 0 8px; padding-left: 18px; }
.dcard-next li { margin: 4px 0; font-size: 13.5px; }
.dcard-watch { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dcard-watch .card-gate-text { flex: 1 1 240px; }

/* P2 내 종목 캘린더 */
.my-calendar { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.brief-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.brief-item-sub { padding-left: 10px; color: var(--ink-soft, #8a8f99); }
