/* 머니플로우 — 종이 신문 느낌의 밝은 화면이 기본, 어두운 화면도 지원 */
:root, [data-theme="light"] {
  --bg: #f3efe6; --paper: #fbf8f2; --paper-2: #f2ede2; --paper-3: #e7e0d1; --rule: #d8d0bf; --rule-2: #c7bda8;
  --ink: #1d1b17; --ink-2: #4b473f; --muted: #8b8577;
  --accent: #0b6e5f; --accent-soft: rgba(11, 110, 95, .1); --hi: #f2c14e;
  --up: #cf2f3b; --up-soft: rgba(207, 47, 59, .1); --down: #1d5bd0; --down-soft: rgba(29, 91, 208, .1);
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --num: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121311; --paper: #1a1b18; --paper-2: #22231f; --paper-3: #2b2c27; --rule: #33342e; --rule-2: #44453d;
  --ink: #eeebe3; --ink-2: #b9b4a8; --muted: #7f7a6f;
  --accent: #34b39c; --accent-soft: rgba(52, 179, 156, .14); --hi: #f2c14e;
  --up: #ff5a64; --up-soft: rgba(255, 90, 100, .14); --down: #5b93ff; --down-soft: rgba(91, 147, 255, .14);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121311; --paper: #1a1b18; --paper-2: #22231f; --paper-3: #2b2c27; --rule: #33342e; --rule-2: #44453d;
  --ink: #eeebe3; --ink-2: #b9b4a8; --muted: #7f7a6f;
  --accent: #34b39c; --accent-soft: rgba(52, 179, 156, .14);
  --up: #ff5a64; --up-soft: rgba(255, 90, 100, .14); --down: #5b93ff; --down-soft: rgba(91, 147, 255, .14);
  color-scheme: dark;
} }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif; font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.n { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* 윗줄 */
.util { border-bottom: 1px solid var(--rule); background: var(--paper); font-size: 12.5px; color: var(--ink-2); }
.util__in { max-width: 1240px; margin: 0 auto; padding: 6px 20px; display: flex; align-items: center; gap: 8px; }
.util__sep { color: var(--muted); }
.clock { font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.live.on i { background: #1f9d55; } .live.on b { color: #1f9d55; } .live.off i { background: var(--up); }
.mast__r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.kakao { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; background: #fee500; color: #191919; font-weight: 800; font-size: 12.5px; }
.ibtn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); cursor: pointer; }
.access-badge { display: grid; line-height: 1.1; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 11.5px; text-align: right; }
.access-badge__lab { font-size: 10px; color: var(--muted); font-weight: 700; }
.access-badge b { font-weight: 800; font-variant-numeric: tabular-nums; }
.access-badge__short { display: none; }
.access-badge[data-grade="vip"] .access-badge__lab { color: var(--accent); }
.access-badge--soon b { color: var(--up); }

/* 제호 */
.mast { max-width: 1240px; margin: 0 auto; padding: 26px 20px 16px; text-align: center; }
.mast__logo { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; }
.mast__logo svg { grid-row: 1 / 3; width: 50px; height: 50px; }
.mast__kicker { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .18em; }
.mast h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1.05; letter-spacing: -.03em; }
.mast__tag { margin: 12px 0 0; font-family: var(--serif); font-weight: 600; color: var(--ink-2); font-size: 15px; }

/* 목차 */
.toc { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.toc__in { max-width: 1240px; margin: 0 auto; padding: 0 12px; display: flex; overflow-x: auto; scrollbar-width: none; }
.toc__in::-webkit-scrollbar { display: none; }
.toc a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 12px; font-weight: 700; font-size: 13.5px; white-space: nowrap; color: var(--ink-2); border-bottom: 3px solid transparent; }
.toc a em { font-style: normal; font-family: var(--serif); font-weight: 900; color: var(--accent); font-size: 13px; }
.toc a:hover, .toc a.on { color: var(--ink); border-bottom-color: var(--accent); }
.toc a.toc-locked { opacity: .5; }
.toc a.toc-locked::after { content: '🔒'; font-size: 10px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; }
.ch { padding: 34px 0 30px; border-bottom: 1px solid var(--rule); }
.ch__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.ch__no { font-family: var(--serif); font-weight: 900; font-size: 46px; line-height: .9; color: var(--accent); letter-spacing: -.04em; }
.ch__head h2 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 27px; letter-spacing: -.03em; line-height: 1.2; }
.deck { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; max-width: 760px; }
.upd { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; padding-top: 6px; }
.sk { border-radius: 10px; background: linear-gradient(90deg, var(--paper-2), var(--paper-3), var(--paper-2)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }
.hint { color: var(--muted); font-size: 12.5px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { border: 1px solid var(--rule-2); background: var(--paper); padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 01 오늘의 흐름 */
.lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
.lead__story { border-right: 1px solid var(--rule); padding-right: 28px; }
.lead__label { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--accent); border: 1px solid var(--accent); padding: 2px 8px; border-radius: 2px; }
.lead__story h3 { margin: 12px 0 10px; font-family: var(--serif); font-weight: 900; font-size: 32px; line-height: 1.3; letter-spacing: -.035em; }
.lead__story p { margin: 0 0 10px; font-size: 15.5px; color: var(--ink-2); line-height: 1.75; }
.lead__story p b { color: var(--ink); }
.lead__story p:first-of-type::first-letter { font-family: var(--serif); font-weight: 900; font-size: 2.6em; float: left; line-height: .9; margin: 6px 8px 0 0; color: var(--accent); }
.af h4, .side-h { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.af__row { display: grid; grid-template-columns: 74px 1fr 64px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--rule-2); }
.af__row b { font-weight: 800; }
.af__bar { position: relative; height: 10px; }
.af__bar::before { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--rule-2); }
.af__bar i { position: absolute; top: 0; height: 10px; border-radius: 2px; }
.af__v { text-align: right; font-weight: 800; }
.af__note { margin-top: 12px; font-size: 13px; color: var(--ink-2); padding: 10px 12px; background: var(--paper-2); border-left: 3px solid var(--hi); }
.majors { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: 24px; border-top: 2px solid var(--ink); }
.mj { padding: 12px 10px; border-right: 1px solid var(--rule); cursor: pointer; }
.mj:last-child { border-right: 0; }
.mj:hover { background: var(--paper); }
.mj small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.mj b { display: block; font-size: 17px; font-weight: 800; margin: 2px 0; }
.mj svg { display: block; width: 100%; height: 26px; margin-top: 4px; }

/* 02 수급 */
.flow3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fl h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; font-weight: 900; }
.fl .tot { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.who { display: grid; grid-template-columns: 52px 1fr 78px; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dotted var(--rule-2); font-size: 13.5px; }
.who b { font-weight: 800; }
.who .bar { position: relative; height: 14px; }
.who .bar::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--rule-2); }
.who .bar i { position: absolute; top: 0; height: 14px; border-radius: 2px; }
.who .v { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.fl .line { margin-top: 10px; }
.fl .line svg { width: 100%; height: 70px; display: block; }
.legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-2); margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.flow-x { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; margin-top: 16px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; }
.kv span { color: var(--ink-2); }
.kv b { font-weight: 800; text-align: right; }
.days { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.days th { color: var(--muted); font-weight: 700; text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--ink); }
.days th:first-child, .days td:first-child { text-align: left; }
.days td { padding: 4px 6px; text-align: right; border-bottom: 1px dotted var(--rule-2); font-variant-numeric: tabular-nums; font-weight: 700; }
.quote { margin-top: 14px; font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; }

/* 03 큰손 포지션 */
.cot { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cot th { text-align: right; color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.cot th:first-child, .cot td:first-child { text-align: left; }
.cot td { padding: 9px 10px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cot td b { font-weight: 800; }
.cot tr[data-code] { cursor: pointer; }
.cot tr[data-code]:hover td { background: var(--paper); }
.pos { display: inline-block; min-width: 54px; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 800; text-align: center; }
.pos-l { background: var(--up-soft); color: var(--up); } .pos-s { background: var(--down-soft); color: var(--down); }
.gauge52 { display: inline-block; position: relative; width: 110px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--down), var(--paper-3) 50%, var(--up)); vertical-align: middle; }
.gauge52 i { position: absolute; top: 50%; width: 4px; height: 16px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); }
.spark { width: 110px; height: 26px; vertical-align: middle; }
.cot-note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.cot-note div { padding: 10px 12px; background: var(--paper); border: 1px solid var(--rule); }
.cot-note b { color: var(--ink); }
.tbl-wrap { overflow-x: auto; }

/* 04 통화 강도 */
.fx { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.fxr { display: grid; grid-template-columns: 26px 54px 1fr 64px 64px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--rule-2); }
.fxr .rk { font-family: var(--serif); font-weight: 900; color: var(--muted); font-size: 17px; }
.fxr b { font-size: 16px; font-weight: 900; }
.fxr .bar { position: relative; height: 12px; }
.fxr .bar::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--rule-2); }
.fxr .bar i { position: absolute; top: 0; height: 12px; border-radius: 2px; }
.fxr .v { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.fxr .h { text-align: right; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pairs { display: grid; gap: 8px; align-content: start; }
.pair { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); cursor: pointer; }
.pair b { font-family: var(--serif); font-size: 18px; font-weight: 900; }
.pair small { color: var(--muted); }

/* 05 시간대 패턴 */
.hours24 { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 170px; padding-top: 10px; }
.hcol { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; }
.hcol .b { align-self: end; border-radius: 2px 2px 0 0; background: var(--accent); opacity: .45; }
.hcol.now .b { opacity: 1; background: var(--hi); }
.hcol.top .b { opacity: .95; }
.hcol small { text-align: center; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hcol.now small { color: var(--ink); font-weight: 800; }
.dir24 { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; margin-top: 6px; }
.dir24 i { height: 10px; border-radius: 2px; }
.pat-note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pat-note > div { padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); }
.pat-note small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.pat-note b { font-family: var(--serif); font-size: 21px; font-weight: 900; }

/* 06 타임라인 */
.tl { position: relative; height: 190px; margin: 6px 0 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 24 - 1px), var(--rule) calc(100% / 24 - 1px), var(--rule) calc(100% / 24)); }
.tl__band { position: absolute; height: 20px; border-radius: 3px; font-size: 11.5px; font-weight: 800; color: #fff; display: flex; align-items: center; padding: 0 6px; overflow: hidden; white-space: nowrap; }
.tl__brk { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, var(--paper-3) 0 4px, transparent 4px 8px); }
.tl__ev { position: absolute; bottom: 22px; width: 2px; height: 16px; background: var(--muted); }
.tl__ev.lv0 { height: 40px; } .tl__ev.lv1 { height: 58px; } .tl__ev.lv2 { height: 76px; }
.tl__ev.hi { background: var(--up); }
.tl__ev span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; white-space: nowrap; color: var(--ink-2); background: var(--bg); padding: 0 2px; }
.tl__ev.hi span { color: var(--up); }
.tl__now { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--hi); box-shadow: 0 0 0 1px var(--ink); }
.tl__now b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; background: var(--hi); color: #1d1b17; padding: 0 5px; border-radius: 2px; white-space: nowrap; }
.tl__ticks { position: absolute; left: 0; right: 0; bottom: 4px; display: grid; grid-template-columns: repeat(24, 1fr); font-size: 10.5px; color: var(--muted); }
.ev2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.hl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hr { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--rule-2); font-size: 13px; }
.hr i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-3); }
.hr i.on { background: #1f9d55; }
.hr span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hr span.on { color: #1f9d55; font-weight: 700; }
.ev { display: grid; grid-template-columns: 50px 44px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--rule-2); font-size: 13.5px; }
.ev time { font-weight: 800; font-variant-numeric: tabular-nums; }
.ev .cc { font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.ev .st { color: var(--hi); letter-spacing: -2px; font-size: 11px; margin-right: 3px; }
.ev small { display: block; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ev.past { opacity: .5; }

/* 07 시세판 */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.bg h4 { margin: 0 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-family: var(--serif); font-size: 17px; font-weight: 900; }
.bq { display: grid; grid-template-columns: 1fr auto 62px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--rule-2); cursor: pointer; font-size: 13px; }
.bq:hover { background: var(--paper); }
.bq b { font-weight: 700; }
.bq .p { font-variant-numeric: tabular-nums; font-weight: 700; }
.bq .c { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 08 뉴스 */
.news { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 26px; }
.news__lead a b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 900; line-height: 1.4; letter-spacing: -.02em; }
.news__lead p { color: var(--ink-2); margin: 8px 0 0; }
.nw { padding: 10px 0; border-bottom: 1px dotted var(--rule-2); }
.nw a b { font-weight: 700; font-size: 14px; line-height: 1.45; }
.nw a:hover b { text-decoration: underline; }
.nw small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.cat { font-weight: 800; color: var(--accent); margin-right: 4px; }

/* 상세 */
.drawer { width: min(1120px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); }
.drawer::backdrop { background: rgba(20, 18, 14, .55); }
.drawer__head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 2px solid var(--ink); }
.drawer__head small { color: var(--muted); }
.drawer__head h2 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 900; }
.drawer__px { margin-left: auto; text-align: right; }
.drawer__px b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.drawer__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.drawer__chart { padding: 12px 14px; border-right: 1px solid var(--rule); }
.drawer__chart .seg { margin-bottom: 0; }
.chart { height: 420px; margin-top: 10px; }
.drawer__side { padding: 14px; display: grid; gap: 12px; align-content: start; max-height: 540px; overflow-y: auto; }
.box { border-top: 2px solid var(--ink); padding-top: 8px; }
.box h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }

/* 잠김 */
.is-locked { position: relative; }
.lockbox { position: relative; display: grid; min-height: 220px; }
.lockbox__fake { grid-area: 1 / 1; display: grid; gap: 12px; padding: 18px 0; filter: blur(5px); opacity: .6; }
.lockbox__fake i { display: block; height: 16px; border-radius: 3px; background: var(--paper-3); }
.lockbox__fake i:nth-child(2) { width: 70%; } .lockbox__fake i:nth-child(3) { width: 85%; } .lockbox__fake i:nth-child(4) { width: 55%; }
.lockbox__msg { grid-area: 1 / 1; position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; }
.lockbox__msg svg { color: var(--accent); }
.lockbox__msg b { font-family: var(--serif); font-size: 17px; font-weight: 900; }
.lockbox__msg p { margin: 0; color: var(--ink-2); font-size: 13px; }
.lockbox__btn { margin-top: 6px; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: #fee500; color: #191919; font-weight: 800; font-size: 13px; }

.foot { max-width: 1240px; margin: 0 auto; padding: 18px 20px 36px; color: var(--muted); font-size: 12px; }
.foot p { margin: 0 0 4px; } .foot b { color: var(--ink-2); margin-right: 6px; }

@media (max-width: 1100px) {
  .majors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mj:nth-child(4n) { border-right: 0; } .mj { border-bottom: 1px solid var(--rule); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-x { grid-template-columns: 1fr 1fr; } .flow-x > :last-child { grid-column: 1 / -1; }
  .drawer__body { grid-template-columns: 1fr; } .drawer__chart { border-right: 0; border-bottom: 1px solid var(--rule); }
  .news { grid-template-columns: 1fr 1fr; } .news__lead { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .util__in { padding: 6px 16px; flex-wrap: wrap; }
  .kakao span { display: none; } .kakao { width: 30px; padding: 0; justify-content: center; }
  .access-badge__long { display: none; } .access-badge__short { display: inline; }
  .mast { padding: 18px 16px 12px; } .mast h1 { font-size: 34px; } .mast__logo svg { width: 42px; height: 42px; } .mast__tag { font-size: 13.5px; }
  main { padding: 0 16px 32px; }
  .ch { padding: 26px 0 22px; }
  .ch__no { font-size: 36px; } .ch__head h2 { font-size: 22px; } .ch__head { gap: 12px; flex-wrap: wrap; } .upd { margin-left: 0; width: 100%; padding: 0; }
  .lead { grid-template-columns: 1fr; gap: 18px; } .lead__story { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
  .lead__story h3 { font-size: 25px; }
  .majors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mj:nth-child(2n) { border-right: 0; }
  .flow3, .flow-x, .fx, .ev2, .cot-note, .pat-note { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .hours24 { height: 130px; gap: 1px; } .hcol small { font-size: 9px; }
  .hcol:nth-child(odd) small { visibility: hidden; }
  .tl { height: 170px; } .tl__ev.hi span { font-size: 9.5px; } .tl__band { font-size: 10px; } .tl__ticks span:nth-child(odd) { visibility: hidden; }
  .hl { grid-template-columns: 1fr; }
  .chart { height: 300px; }
}

/* 특집: 쏠림 경보 — 밝은/어두운 테마를 그대로 따라가요 */
.ch--sp { margin: 0 -20px; padding: 34px 20px 30px; background: color-mix(in srgb, var(--hi) 10%, var(--paper)); border-top: 4px double var(--ink); border-bottom: 1px solid var(--ink); }
.ch--sp .ch__no { color: var(--hi); -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 35%, transparent); }
.sp-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #1d1b17; background: var(--hi); padding: 1px 8px; margin-bottom: 4px; }
.cws { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cw { position: relative; padding: 16px; background: var(--bg); border: 1px solid var(--rule); border-top: 4px solid; cursor: pointer; }
.cw:hover { border-color: var(--rule-2); }
.cw--long { border-top-color: var(--up); } .cw--short { border-top-color: var(--down); }
.cw.lv3 { box-shadow: 0 0 0 2px color-mix(in srgb, var(--hi) 55%, transparent); }
.cw__top { display: flex; justify-content: space-between; align-items: center; }
.cw__lv { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--ink); background: color-mix(in srgb, var(--hi) 45%, transparent); padding: 0 6px; }
.cw__dots { display: flex; gap: 4px; } .cw__dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-2); } .cw__dots i.on { background: var(--hi); border-color: color-mix(in srgb, var(--ink) 50%, var(--hi)); }
.cw h3 { margin: 8px 0 2px; font-family: var(--serif); font-size: 24px; font-weight: 900; color: var(--ink); }
.cw__side { font-size: 15px; font-weight: 900; }
.cw--long .cw__side { color: var(--up); } .cw--short .cw__side { color: var(--down); }
.cw__trend { margin: 4px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.cw__risk { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.cw__px { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--rule-2); font-size: 12.5px; color: var(--ink-2); }
.cw-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; }
.cw-watch b { color: var(--ink); margin-right: 4px; }
.cw-watch span { padding: 3px 10px; border: 1px solid var(--rule-2); background: var(--bg); border-radius: 999px; cursor: pointer; }
.cw-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--rule-2); font-size: 13px; color: var(--ink-2); }
.cw-foot b { color: var(--ink); background: color-mix(in srgb, var(--hi) 40%, transparent); padding: 0 3px; }
.toc a.toc-sp em { color: #1d1b17; background: var(--hi); padding: 0 4px; border-radius: 2px; }
@media (max-width: 760px) { .ch--sp { margin: 0 -16px; padding: 26px 16px 22px; } }

/* 공포·탐욕 */
#fngBox:not(:empty) { margin-top: 18px; }
.fgs h4 { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.fg { display: grid; grid-template-columns: 70px 1fr; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--rule-2); }
.fg__n { grid-row: 1 / 3; text-align: center; }
.fg__n b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 900; line-height: 1; }
.fg__n small { font-size: 11.5px; font-weight: 800; }
.fg__t { display: flex; justify-content: space-between; font-size: 13px; } .fg__t b { font-weight: 800; } .fg__t span { color: var(--muted); font-size: 12px; }
.fg__m { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #c0392b, #e67e22 25%, #b8b2a3 50%, #7cb342 75%, #2e7d32); }
.fg__m i { position: absolute; top: 50%; width: 4px; height: 16px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--bg); }
.fg__m em { position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); transform: translate(-50%, -50%); }
.fg-xf { color: #c0392b; } .fg-f { color: #d35400; } .fg-n { color: var(--muted); } .fg-g { color: #558b2f; } .fg-xg { color: #2e7d32; }

/* 차트 신호 */
.sig { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.sig0 { background: var(--down); color: #fff; } .sig1 { background: var(--down-soft); color: var(--down); } .sig2 { background: var(--paper-3); color: var(--ink-2); } .sig3 { background: var(--up-soft); color: var(--up); } .sig4 { background: var(--up); color: #fff; }
.sigt.sig0, .sigt.sig1 { background: none; color: var(--down); } .sigt.sig2 { background: none; color: var(--ink-2); } .sigt.sig3, .sigt.sig4 { background: none; color: var(--up); }
.sigc { text-align: left !important; }

/* 타임라인: 가장자리 이름표는 안쪽으로, 휴대폰에서는 세션 띠를 짧게 */
.tl__band b { font-weight: 800; }
.tl__ev.edge-l span { left: 0; transform: none; }
.tl__ev.edge-r span { left: auto; right: 0; transform: none; }
@media (max-width: 760px) { .tl__bt { display: none; } .tl__band { padding: 0 4px; } }
