[hidden] { display: none !important; }
:root {
  --bg: #0b0e13;
  --bg2: #11151c;
  --panel: #151a22;
  --panel2: #1b212b;
  --line: #262e3a;
  --line2: #323c4b;
  --text: #e7ebf0;
  --muted: #8b95a5;
  --faint: #5d6776;
  --up: #ff4d5e;
  --up-bg: rgba(255, 77, 94, 0.12);
  --down: #3d8bff;
  --down-bg: rgba(61, 139, 255, 0.12);
  --official: #f5b83d;
  --wire: #b48cff;
  --news: #37c6a6;
  --community: #ff8a3d;
  --accent: #ffd34d;
  --ok: #3ccf8e;
  --bad: #ff5c5c;
  --radius: 10px;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
}
:root[data-theme='light'] {
  --bg: #f4f6f9;
  --bg2: #eceff4;
  --panel: #ffffff;
  --panel2: #f6f8fb;
  --line: #e2e6ec;
  --line2: #d3d9e1;
  --text: #161b22;
  --muted: #5c6675;
  --faint: #8a94a3;
  --up-bg: rgba(255, 77, 94, 0.1);
  --down-bg: rgba(61, 139, 255, 0.1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ── 헤더 ───────────────────────────── */
header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand h1 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.brand h1 b { color: var(--up); }
.brand small { color: var(--muted); font-size: 12px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live.on i { background: var(--ok); box-shadow: 0 0 0 0 rgba(60, 207, 142, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(60, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 142, 0); } }
.search { flex: 1; max-width: 520px; display: flex; position: relative; }
.search input {
  width: 100%; padding: 9px 110px 9px 14px;
  border-radius: 999px; border: 1px solid var(--line2);
  background: var(--panel); color: var(--text); font: inherit; outline: none;
}
.search input:focus { border-color: var(--accent); }
.search button {
  position: absolute; right: 4px; top: 4px; bottom: 4px;
  padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--accent); color: #1a1400; font-weight: 700;
}
.hbtns { display: flex; gap: 6px; margin-left: auto; }
.iconbtn {
  border: 1px solid var(--line2); background: var(--panel); border-radius: 8px;
  padding: 6px 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.iconbtn.on { color: var(--text); border-color: var(--accent); }
.srcpill { font-size: 12px; color: var(--muted); white-space: nowrap; }
.schemesw { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; background: var(--panel); }
.schemesw button { border: 0; background: none; padding: 5px 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.schemesw button.on { background: var(--panel2); color: var(--text); }
.srcpill b { color: var(--ok); }

/* ── 탭/필터 ───────────────────────── */
.bar { display: flex; align-items: center; gap: 8px; padding: 10px 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; color: var(--muted); font-weight: 600; }
.tabs button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.tabs button .cnt { font-size: 11px; color: var(--faint); margin-left: 4px; }
.bar .spacer { flex: 1; }
.demo-badge { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 211, 77, 0.15); color: var(--accent); }

/* ── 3단 레이아웃 ───────────────────── */
main {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(300px, 400px);
  gap: 12px; padding: 0 18px 18px;
  height: calc(100vh - 112px);
}
.col { min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.colhead { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13.5px; }
.colhead .sub { font-weight: 400; color: var(--muted); font-size: 12px; }
.colhead .right { margin-left: auto; display: flex; gap: 4px; }
.scroll { overflow-y: auto; min-height: 0; flex: 1; }
.scroll::-webkit-scrollbar { width: 8px; }
.scroll::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
.mini { border: 1px solid var(--line); background: none; border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--muted); }
.mini.on { color: var(--text); border-color: var(--line2); background: var(--panel2); }

/* ── 이벤트 카드 ───────────────────── */
.ev {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line);
  background: none; position: relative;
}
.ev:hover { background: var(--panel2); }
.ev.sel { background: var(--panel2); box-shadow: inset 3px 0 0 var(--accent); }
.ev.new { animation: flash 2.4s ease-out; }
@keyframes flash { 0% { background: rgba(255, 211, 77, 0.22); } 100% { background: transparent; } }
.ev .r1 { display: flex; align-items: center; gap: 8px; }
.ev .nm { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .sym { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.ev .pct { margin-left: auto; font-weight: 800; font-size: 17px; font-family: var(--mono); white-space: nowrap; }
.ev .r2 { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.ev .why { margin-top: 7px; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev .why .cat { margin-right: 6px; }
.ev .spark { position: absolute; right: 14px; bottom: 10px; opacity: 0.9; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.chip.mk-crypto { color: #f7a64a; border-color: rgba(247, 166, 74, 0.4); }
.chip.mk-kr { color: #ff6b8b; border-color: rgba(255, 107, 139, 0.4); }
.chip.mk-us { color: #6aa8ff; border-color: rgba(106, 168, 255, 0.4); }
.chip.mk-realestate { color: #54d39c; border-color: rgba(84, 211, 156, 0.4); }
.chip.cat { background: rgba(255, 211, 77, 0.12); color: var(--accent); border-color: rgba(255, 211, 77, 0.35); }
.chip.conf-lo { color: var(--faint); }
.tier { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 18px; white-space: nowrap; }
.tier.official { background: rgba(245, 184, 61, 0.16); color: var(--official); }
.tier.wire { background: rgba(180, 140, 255, 0.16); color: var(--wire); }
.tier.news { background: rgba(55, 198, 166, 0.16); color: var(--news); }
.tier.community { background: rgba(255, 138, 61, 0.16); color: var(--community); }
.empty { padding: 28px 18px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.7; }
.empty b { color: var(--text); }

/* ── 상세 ──────────────────────────── */
.detail { padding: 18px 20px 26px; }
.dhead { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.dhead h2 { margin: 0; font-size: 24px; letter-spacing: -0.5px; }
.dhead .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dhead .big { margin-left: auto; text-align: right; }
.dhead .big .p { font-size: 30px; font-weight: 800; font-family: var(--mono); line-height: 1.1; }
.dhead .big .s { font-size: 12.5px; color: var(--muted); }
.chartbox { margin: 16px 0 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 4px; position: relative; }
.chartbox svg { display: block; width: 100%; height: 190px; }
.chartlegend { display: flex; gap: 12px; font-size: 11.5px; color: var(--muted); padding: 2px 4px 6px; flex-wrap: wrap; }
.chartlegend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 6px 9px; font-size: 12px; max-width: 280px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); display: none; z-index: 5; }

.reason { margin-top: 14px; border: 1px solid var(--line2); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel2), var(--panel)); padding: 14px 16px; }
.reason .lbl { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.3px; display: flex; align-items: center; gap: 8px; }
.reason .head { font-size: 17px; font-weight: 700; margin: 6px 0 2px; line-height: 1.45; }
.reason .head a:hover { text-decoration: underline; }
.reason .ai { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(180, 140, 255, 0.09); border: 1px solid rgba(180, 140, 255, 0.25); font-size: 14px; line-height: 1.6; }
.reason .ai .t { font-size: 11.5px; color: var(--wire); font-weight: 700; margin-bottom: 3px; }
.conf { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.conf .bar { flex: 0 0 140px; height: 6px; padding: 0; border-radius: 3px; background: var(--line); overflow: hidden; }
.conf .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.alts { margin-top: 6px; font-size: 12px; color: var(--muted); }
.speed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.speed .c { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.speed .c .k { font-size: 11.5px; color: var(--muted); }
.speed .c .v { font-size: 15px; font-weight: 700; font-family: var(--mono); }
.speed .c .w { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leadnote { margin-top: 8px; font-size: 13px; color: var(--accent); }

.sect { margin-top: 20px; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.sect .sub { font-weight: 400; color: var(--muted); font-size: 12px; }
.timeline { margin-top: 8px; border-left: 2px solid var(--line); margin-left: 6px; }
.tl { position: relative; padding: 8px 0 10px 16px; }
.tl::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--line2); border: 2px solid var(--panel); }
.tl.official::before { background: var(--official); }
.tl.wire::before { background: var(--wire); }
.tl.news::before { background: var(--news); }
.tl.community::before { background: var(--community); }
.tl.best { background: rgba(255, 211, 77, 0.06); border-radius: 0 8px 8px 0; }
.tl .top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.tl .dt { font-family: var(--mono); font-weight: 700; color: var(--text); min-width: 60px; }
.tl .dt.after { color: var(--faint); }
.tl .t { font-size: 14px; margin-top: 2px; line-height: 1.45; word-break: break-word; }
.tl .t a:hover { text-decoration: underline; }
.tl .x { font-size: 12.5px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.tl .sc { display: inline-block; width: 46px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; vertical-align: middle; }
.tl .sc i { display: block; height: 100%; background: var(--accent); }
.links { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.links a { font-size: 12.5px; border: 1px solid var(--line2); border-radius: 7px; padding: 4px 10px; color: var(--muted); }
.links a:hover { color: var(--text); }
.disclaimer { margin-top: 22px; font-size: 11.5px; color: var(--faint); line-height: 1.6; }

/* 웰컴 */
.welcome { padding: 26px 24px; }
.welcome h2 { margin: 0 0 6px; font-size: 22px; }
.welcome p { color: var(--muted); margin: 6px 0; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.howto div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; color: var(--muted); }
.howto b { display: block; color: var(--text); margin-bottom: 4px; font-size: 14px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.quick button { border: 1px solid var(--line2); background: var(--panel2); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.quick button:hover { border-color: var(--accent); }

/* ── 피드 ──────────────────────────── */
.post { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.post.new { animation: flash 2.4s ease-out; }
.post .top { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.post .top .ago { margin-left: auto; font-family: var(--mono); color: var(--faint); white-space: nowrap; }
.post .t { margin-top: 3px; line-height: 1.45; word-break: break-word; }
.post .t a:hover { text-decoration: underline; }
.post .kw { color: var(--accent); font-weight: 700; }
.post.hot { box-shadow: inset 3px 0 0 var(--accent); }
.post .eng { font-size: 11px; color: var(--faint); margin-top: 2px; }
.trig { margin: 8px 0; padding: 8px 10px; border: 1px solid var(--accent); border-left-width: 3px; border-radius: 6px; font-size: 12.5px; cursor: pointer; }
.trig.weak { border-color: var(--line); border-left-color: var(--muted); }
.trig .tgk { font-weight: 700; }
.trig .tgt { margin-top: 3px; line-height: 1.5; word-break: break-word; }
.trig .tgco { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.post[data-href], .tl[data-href], .irow[data-href], .irow[data-disc-row] { cursor: pointer; }
.post[data-href]:hover, .tl[data-href]:hover, .irow[data-href]:hover, .irow[data-disc-row]:hover { background: var(--panel2); }
.post .wimp { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sico { width: 14px; height: 14px; margin-right: 4px; border-radius: 3px; vertical-align: -2px; flex: none; object-fit: contain; }
.post .srcn { display: inline-flex; align-items: center; min-width: 0; }
.silogo { width: 40px; height: 40px; margin-right: 10px; border-radius: 8px; flex: none; object-fit: contain; background: #fff; }
.bzgrp { display: flex; align-items: center; margin-top: 10px; padding: 4px 2px; font-size: 12.5px; font-weight: 600; }
.bzgrp .faint { margin-left: 6px; font-weight: 400; }
.bzplat .chip { display: inline-flex; align-items: center; }
.wfhead { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.wfhead .row { display: flex; flex-wrap: wrap; gap: 6px; }
.wfsrc { font-size: 11.5px; margin-top: 6px; }
.mover { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mover .rk { width: 18px; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.mover .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mover .nm small { color: var(--muted); font-weight: 400; margin-left: 4px; font-family: var(--mono); }
.mover .pc { font-family: var(--mono); font-weight: 700; width: 72px; text-align: right; }
.mover .whybtn { border: 1px solid var(--line2); background: var(--panel2); border-radius: 6px; font-size: 12px; padding: 2px 8px; }
.mover .whybtn:hover { border-color: var(--accent); color: var(--accent); }
.st { display: flex; gap: 8px; align-items: center; padding: 7px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.st i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.st.bad i { background: var(--bad); }
.st.off i { background: var(--faint); opacity: .5; }
.st.off .lb { white-space: normal; overflow-wrap: anywhere; }
.st .lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .ms { font-family: var(--mono); color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.stgroup { padding: 10px 14px 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.4px; }
.buzz { padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.buzz span { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); }
.buzz span b { color: var(--accent); font-family: var(--mono); margin-left: 3px; }

/* 가이드 모달 */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.on { display: flex; }
.modal .box { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; max-width: 860px; width: 100%; max-height: 88vh; overflow: auto; padding: 22px 24px; }
.modal h3 { margin: 0 0 4px; font-size: 19px; }
.modal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.modal th, .modal td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.modal th { color: var(--muted); font-weight: 600; font-size: 12px; }
.modal .close { float: right; }
.modal p { color: var(--muted); font-size: 13px; }
.modal .speedbar { display: inline-block; height: 6px; border-radius: 3px; background: var(--accent); vertical-align: middle; }

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast div { background: var(--panel); border: 1px solid var(--line2); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 14px; min-width: 260px; max-width: 360px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); cursor: pointer; font-size: 13px; animation: slidein 0.25s ease-out; }
.toast div.up { border-left-color: var(--up); }
.toast div.down { border-left-color: var(--down); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }

.back { display: none; }

/* ── 반응형 ───────────────────────── */
@media (max-width: 1200px) {
  main { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
  #colFeed { display: none; }
  main.showfeed #colFeed { display: flex; grid-column: 1 / -1; height: 70vh; }
  .feedtoggle { display: inline-block !important; }
}
@media (max-width: 760px) {
  header { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .hbtns { margin-left: auto; }
  .brand small, .srcpill { display: none; }
  .bar { padding: 8px 16px; }
  main { grid-template-columns: 1fr; padding: 0 16px 16px; height: auto; }
  .col { max-height: none; }
  #colEvents { height: 70vh; }
  #colDetail { display: none; }
  main.detail-open #colDetail { display: flex; position: fixed; inset: 0; z-index: 40; border-radius: 0; }
  main.detail-open .back { display: inline-block; }
  .howto { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; max-width: 100%; }
  .tabs button { white-space: nowrap; padding: 6px 9px; }
  .toast { left: 16px; right: 16px; }
  .toast div { min-width: 0; max-width: none; }
  .speed { grid-template-columns: repeat(2, 1fr); }
  .dhead .big { margin-left: 0; text-align: left; width: 100%; }
}
.feedtoggle { display: none; }
/* 일정 스트립 */
.calstrip { display: flex; gap: 8px; padding: 0 18px 10px; overflow-x: auto; white-space: nowrap; font-size: 12.5px; }
.calstrip:empty { display: none; }
.calstrip { scrollbar-width: none; }
.calstrip::-webkit-scrollbar { display: none; }
.calstrip .ce { border: 1px solid var(--line2); background: var(--panel); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.calstrip .ce b { font-family: var(--mono); }
.calstrip .ce.soon { border-color: var(--up); background: var(--up-bg); }
.imp { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 18px; }
.imp.High { background: rgba(255, 77, 94, 0.18); color: var(--up); }
.imp.Medium { background: rgba(255, 138, 61, 0.16); color: var(--community); }
.imp.Holiday { background: var(--panel2); color: var(--muted); }
.calrow { display: flex; gap: 10px; align-items: baseline; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.calrow.past { opacity: 0.55; }
.calrow .tm { font-family: var(--mono); width: 44px; color: var(--muted); flex: none; }
.calrow .ti { flex: 1; min-width: 0; }
.calrow .fc { font-size: 11.5px; color: var(--faint); }
.calrow .cd { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
/* 순위 컨트롤 */
.rankctl { padding: 8px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.rankctl .row { display: flex; gap: 4px; flex-wrap: wrap; }
.mover.rank { gap: 8px; padding: 6px 14px; }
.mover.rank .nm { line-height: 1.25; }
.mover.rank .px { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.mover.rank .pc { width: 66px; flex: none; }
.mover .mt { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 58px; flex: none; text-align: right; white-space: nowrap; }
.mover.rank .whybtn { flex: none; }
.rankhead { display: flex; gap: 8px; padding: 6px 14px; font-size: 11px; color: var(--faint); border-bottom: 1px solid var(--line); }
.rankhead .rk { width: 18px; flex: none; }
.rankhead .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankhead .pc { width: 66px; flex: none; text-align: right; }
.rankhead .mt { width: 58px; flex: none; text-align: right; }
.rankhead .wb { width: 38px; flex: none; }
.efhead { padding: 14px 18px 8px; }
.efhead h3 { margin: 0; font-size: 18px; }
.efhead .al { font-size: 12px; color: var(--muted); margin-top: 4px; }
.efhead .row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.efhead .srcrow { margin-top: 6px; }
.efhead .srcrow .mini { font-size: 11.5px; }

/* ── 종목 정보 (시세·지표·뉴스·공시·리포트·실적·수급) ── */
.si { padding: 14px 18px 18px; }
.sihead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.nmw { display: flex; align-items: center; min-width: 0; }
.sihead h3 { margin: 0; font-size: 20px; }
.sihead h3 small { margin-left: 6px; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); }
.sihead .sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.sihead .px { text-align: right; }
.sihead .px .p { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.sihead .px .s { font-size: 13px; }
.sinav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1px; margin-top: 8px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 8px; }
.facts .f { min-width: 0; padding: 7px 10px; background: var(--panel2); }
.facts .k { font-size: 12px; color: var(--muted); }
.facts .v { overflow-wrap: anywhere; font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.facts .d { font-size: 12px; color: var(--muted); }
.cons { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.ilist { margin-top: 6px; }
.irow { display: grid; grid-template-columns: 78px 116px minmax(0, 1fr); gap: 8px; align-items: baseline; width: 100%; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; }
.irow .tm { white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.irow .src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.irow .ti { min-width: 0; color: var(--text); text-decoration: none; }
.irow .linkish { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.irow a.ti:hover, .irow .linkish:hover { text-decoration: underline; }
.irow.minor .ti { color: var(--muted); }
.irow .pv { grid-column: 3; font-size: 12px; color: var(--muted); }
.irow.btn { cursor: pointer; }
.irow.btn:hover { background: var(--panel2); }
.simore > summary { padding: 6px 2px; font-size: 12.5px; color: var(--accent); cursor: pointer; }
.iempty { padding: 10px 2px; font-size: 13px; color: var(--muted); }
.itable { width: 100%; margin-top: 6px; border-collapse: collapse; font-size: 12.5px; }
.itable th, .itable td { padding: 5px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.itable thead th { font-weight: 500; color: var(--muted); text-align: right; }
.itable tbody th { font-weight: 500; color: var(--muted); text-align: left; }
.itable td.num { font-family: var(--mono); text-align: right; }
.sipeers, .silinks, .sitags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.silinks a.mini { color: var(--text); text-decoration: none; }
.siabout { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.inote { margin-top: 12px; font-size: 12px; color: var(--muted); }
.bzplat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bzplat .chip b { font-family: var(--mono); }
.bzfoot { margin-top: 8px; }
.inote .mini { margin-left: 6px; }
.disctext { max-height: 62vh; overflow: auto; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 1.6; }
@media (max-width: 760px) {
  .irow { grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; }
  .irow .ti, .irow .pv { grid-column: 1 / -1; }
  .itable.fin.c4 :is(th, td):nth-child(2) { display: none; }   /* 폰: 가장 오래된 해는 빼서 옆으로 안 넘치게 */
  /* 폰: 상세 머리(← 목록 · 제목 · 탭 3개)가 한 줄에 안 들어가 판이 화면보다 넓어지던 것 → 탭을 다음 줄로 */
  #colDetail { min-width: 0; }
  #colDetail .colhead { flex-wrap: wrap; }
  #colDetail .colhead .back { white-space: nowrap; }
  #colDetail .colhead .right { flex: 1 0 100%; margin-left: 0; }
  #colDetail .colhead .right button { flex: 1 1 0; }
}
