/* 코인대장 — 픽셀 · 8090 옛날 인터넷 (사장님 2026-10-12 「픽셀 느낌, 8090 옛날 인터넷사이트 느낌」 → 사이버펑크 시도 후 「픽셀버전으로 가자」)
   청록 바탕화면 위에 회색 입체 창(남색 제목줄), 한글 픽셀 글꼴(갈무리), 입체 단추, 검은 전광판 시세 띠.
   모서리는 전부 각지게. 오름 빨강 / 내림 파랑(국내 관례), 실버·골드는 등급색. 깜빡임 같은 움직임은 넣지 않는다. */

:root {
  --desk: #008080;
  --win: #c0c0c0;
  --win-2: #d4d0c8;
  --hi: #ffffff;
  --lt: #dfdfdf;
  --lo: #808080;
  --dk: #000000;
  --paper: #ffffff;
  --ink: #000000;
  --mute: #444444;
  --faint: #666666;
  --navy: #000080;
  --title: linear-gradient(90deg, #000080, #1084d0);
  --link: #0000ee;
  --yel: #ffff00;
  --led: #39ff14;
  --amber: #ffb000;
  --up: #d00000;
  --down: #0000c0;
  --silver: #3c3c3c;
  --gold: #5a4300;
  --gold-bg: #ffd700;
  --f-body: 'Galmuri11', 'Malgun Gothic', monospace;
  --f-big: 'Galmuri14', 'Galmuri11', 'Malgun Gothic', monospace;
  --f-num: 'GalmuriMono11', 'Galmuri11', ui-monospace, monospace;
  --pad: 14px;
  --maxw: 1400px;
  /* 입체 테두리: 튀어나온 것 · 들어간 것 */
  --raised: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--lt);
  --sunken: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--lt), inset 2px 2px var(--dk);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 13px/1.75 var(--f-body);
  background-color: var(--desk);
  background-image: radial-gradient(rgba(0, 0, 0, .12) 1px, transparent 1px);
  background-size: 4px 4px;
  overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: none;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #ff0000; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
small { font-size: 12px; }
code { font-family: var(--f-num); background: var(--win); padding: 0 4px; box-shadow: var(--sunken); }
:focus-visible { outline: 2px dotted var(--ink); outline-offset: 2px; }
.num, time { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yel); color: var(--ink); padding: 6px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.ic { flex: none; }
::selection { background: var(--navy); color: #fff; }

/* ── 단추 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 14px;
  border: 0; background: var(--win); color: var(--ink); box-shadow: var(--raised); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; text-decoration: none !important; border-radius: 0;
}
.btn:hover { color: var(--ink); background: var(--win-2); }
.btn:active { box-shadow: var(--sunken); padding-top: 2px; }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: #1010a0; color: var(--yel); }
.btn-acc { background: var(--yel); }
.btn-danger { color: #c00000; }
.btn-warn { background: var(--gold-bg); }
.btn-xs { min-height: 24px; padding: 0 8px; font-size: 12px; }
.btn-lg { min-height: 38px; padding: 0 22px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { color: var(--lo); text-shadow: 1px 1px var(--hi); cursor: default; }
form.inline { display: inline; }

/* ── 작은 표시 ── */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; background: var(--win); box-shadow: var(--raised);
  font-size: 13px; color: var(--ink); white-space: nowrap; text-decoration: none;
}
.chip:hover { color: var(--ink); background: var(--win-2); }
.chip.on { box-shadow: var(--sunken); background: var(--yel); font-weight: 700; }
.chip.sm { min-height: 24px; padding: 0 8px; font-size: 12px; }

.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 5px; font-size: 11px; line-height: 1;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); white-space: nowrap;
}
.b-notice { background: var(--navy); color: #fff; }
.b-green { background: linear-gradient(180deg, #ffffff, #b8b8b8); color: var(--silver); }
.b-red { background: linear-gradient(180deg, #fff5a0, #e6b800); color: var(--gold); }
.b-kind-new { background: #ff0000; color: #fff; border-color: #800000; }
.b-kind-add { background: #fff; border-style: dashed; }
.b-blind { background: var(--ink); color: var(--yel); }
.badges { display: inline-flex; gap: 3px; flex-wrap: wrap; }

.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font-size: 12px; white-space: nowrap; border: 1px solid; }
.r-none { border-color: var(--lo); color: var(--ink); background: #fff; }
.r-none::before { content: '▶'; font-size: 9px; margin-right: 3px; color: #008000; }
.r-tp { border-color: var(--up); color: #fff; background: var(--up); }
.r-sl { border-color: var(--down); color: #fff; background: var(--down); }

.chg { font-family: var(--f-num); font-size: 12px; white-space: nowrap; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--mute); }
.pct { font-family: var(--f-num); font-size: 12px; }
.pct.up { color: var(--up); }
.pct.down { color: var(--down); }

.feed-state { display: inline-block; font-size: 11px; padding: 0 5px; white-space: nowrap; border: 1px solid; line-height: 16px; }
.feed-state.none { border-color: var(--lo); color: var(--mute); background: var(--win); }
.feed-state.stale { border-color: #806000; background: var(--gold-bg); color: var(--gold); }
.empty { color: var(--mute); font-size: 13px; padding: 16px 0; text-align: center; }
.hint { color: var(--mute); font-size: 12px; line-height: 1.65; margin-top: 8px; }
.na { color: var(--faint); font-size: 11px; }
.ok-box { background: #ffffe1; border: 1px solid var(--ink); padding: 10px 14px 10px 36px; margin-bottom: 14px; position: relative; }
.ok-box::before { content: 'i'; position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; background: var(--navy); color: #fff; text-align: center; line-height: 18px; font-weight: 700; }
.errors { background: #fff; border: 1px solid var(--ink); padding: 10px 14px 10px 36px; margin-bottom: 14px; color: #c00000; position: relative; }
.errors::before { content: '!'; position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; background: #ff0000; color: #fff; text-align: center; line-height: 18px; font-weight: 700; }
.errors p + p { margin-top: 4px; }

.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--navy); color: var(--yel); font-family: var(--f-num); }
.cic { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; background: var(--navy); color: var(--yel); overflow: hidden; box-shadow: 0 0 0 1px var(--ink); }
.cic i { font-style: normal; font-family: var(--f-num); }
.cic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; image-rendering: pixelated; }
.cic.flag { background: #fff; }
.cic.flag svg { width: 100%; height: 100%; }

/* ── 맨 위 전광판 시세 띠 ── */
.rail { background: #000; color: var(--led); border-bottom: 2px solid var(--win); }
.rail-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: stretch; }
.ticks { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tick { padding: 6px 10px; border-right: 1px dotted #1d5c12; display: flex; flex-direction: column; min-width: 0; }
.tick-sym { font: 400 11px/1.3 var(--f-num); color: var(--amber); }
.tick-price { font: 400 15px/1.3 var(--f-num); color: var(--led); white-space: nowrap; text-shadow: 0 0 4px rgba(57, 255, 20, .55); }
.tick .chg { font-size: 11px; }
.tick .chg.up { color: #ff5050; }
.tick .chg.down { color: #6ea8ff; }
.tick .chg.flat { color: #8a8a8a; }
.tick.is-stale .tick-price { color: #8aa585; text-shadow: none; }
.rail-side { flex: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 1px; padding: 4px 12px; }
.rail-all { color: var(--yel); font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.rail-all:hover { color: #fff; }
.rail .provider { color: #8a8a8a; font-size: 11px; white-space: nowrap; }
.rail .feed-state.stale { background: #3a3000; color: var(--amber); border-color: var(--amber); }

/* ── 머리판: 회색 창 ── */
.mast { max-width: var(--maxw); margin: 12px auto 0; background: var(--win); box-shadow: var(--raised); padding: 3px; }
.mast-in { display: flex; align-items: center; gap: 16px; padding: 10px 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .mark { width: 40px; height: 40px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--ink); }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font: 700 32px/1.2 var(--f-big); color: var(--navy); text-shadow: 2px 2px 0 var(--hi), 4px 4px 0 var(--lo); }
.logo-word small { font: 400 11px/1.2 var(--f-num); letter-spacing: 0.18em; color: var(--mute); margin-top: 4px; }
.mast-tag { margin-right: auto; font-size: 12px; color: var(--mute); background: #fff; box-shadow: var(--sunken); padding: 4px 10px; }
.mast-tag span { color: var(--lo); margin: 0 3px; }
.guest { display: flex; gap: 6px; }
.account { position: relative; }
.acct-btn { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; padding: 0 10px 0 4px; background: var(--win); box-shadow: var(--raised); font-weight: 700; }
.acct-btn::-webkit-details-marker { display: none; }
.acct-btn::after { content: '▼'; font-size: 9px; }
.account[open] .acct-btn { box-shadow: var(--sunken); }
.acct-dot { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--yel); }
.acct-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 2px); min-width: 190px; background: var(--win); box-shadow: var(--raised), 3px 3px 0 rgba(0, 0, 0, .5); padding: 3px; z-index: 30; display: flex; flex-direction: column; }
.acct-menu a, .acct-menu button { display: block; text-align: left; padding: 6px 12px; border: 0; background: none; font-size: 13px; cursor: pointer; width: 100%; color: var(--ink); text-decoration: none; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--navy); color: #fff; }
.acct-menu form { margin: 0; border-top: 1px solid var(--lo); }

/* 메뉴 줄: 옛 PC통신식 단추 줄 */
.nav { padding: 0 3px 3px; }
.nav-in { display: flex; flex-wrap: wrap; gap: 3px; background: var(--win); padding: 4px; box-shadow: var(--sunken); }
.nav-item {
  position: relative; padding: 5px 14px; font-size: 14px; color: var(--ink); white-space: nowrap; text-decoration: none;
  background: var(--win); box-shadow: var(--raised);
}
.nav-item:hover { color: var(--ink); background: var(--win-2); }
.nav-item.active { box-shadow: var(--sunken); background: var(--yel); font-weight: 700; }
.nav-item.g-silver::before, .nav-item.g-gold::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; box-shadow: 0 0 0 1px var(--ink); }
.nav-item.g-silver::before { background: linear-gradient(135deg, #fff, #9a9a9a); }
.nav-item.g-gold::before { background: linear-gradient(135deg, #fff5a0, #d4a800); }

/* ── 본문 틀 ── */
.page { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad) 40px; }

/* 쪽 머리: 바탕화면 위 큰 픽셀 글자 */
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; color: #fff; }
.ph-text { flex: 1; min-width: 0; }
.ph h1 { font: 700 30px/1.2 var(--f-big); text-shadow: 2px 2px 0 #000; }
.ph h1::before { content: '▶ '; color: var(--yel); }
.ph h1 .sub { font: 400 15px/1 var(--f-body); color: var(--yel); margin-left: 6px; text-shadow: 1px 1px 0 #000; }
.ph .lead { margin-top: 8px; max-width: 80ch; font-size: 13px; background: #ffffe1; color: var(--ink); border: 1px solid var(--ink); padding: 6px 10px; }
.ph .kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; text-shadow: 1px 1px 0 #000; }
.ph-act { flex: none; display: flex; gap: 6px; }
.gk { font: 400 11px/1 var(--f-num); letter-spacing: 0.12em; padding: 3px 6px; border: 1px solid var(--ink); color: var(--ink); text-shadow: none; }
.gk.silver { background: linear-gradient(180deg, #fff, #b8b8b8); }
.gk.gold { background: linear-gradient(180deg, #fff5a0, #e6b800); }

/* 창 묶음 */
.sheet { display: grid; gap: 10px; margin-bottom: 16px; }
.sheet.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sheet.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.span-all { grid-column: 1 / -1; }
/* 창 하나: 회색 입체 테두리 + 남색 제목줄 + 흰 내용 */
.cell {
  background: var(--paper); min-width: 0; display: flex; flex-direction: column;
  box-shadow: var(--raised), inset 0 0 0 4px var(--win); padding: 4px 4px 14px;
}
.cell > :not(.ch-head) { margin-left: 10px; margin-right: 10px; }
.cell > .empty { flex: 1; display: flex; align-items: center; justify-content: center; }
.ch-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--title); color: #fff;
  padding: 3px 4px 3px 8px; margin-bottom: 10px; min-height: 26px;
}
.ch-head h3 { font: 700 13px/1.3 var(--f-body); }
.ch-head h3::before { content: '■ '; color: var(--yel); font-size: 10px; }
.ch-head .meta { color: #cfe3ff; font-size: 11px; }
.ch-head .feed-state { background: #fff; }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; white-space: nowrap; color: var(--link); }
.ch-head .more { color: var(--ink); background: var(--win); box-shadow: var(--raised); padding: 0 8px; text-decoration: none; line-height: 20px; }
.ch-head .more:hover { background: var(--yel); color: var(--ink); }
.ch-head .more:active { box-shadow: var(--sunken); }
.ink-cell { background: #000; color: #d0d0d0; }
.ink-cell .hint, .ink-cell .empty { color: #a0a0a0; }
.ink-cell .stat-row div { background: #101010; box-shadow: inset 0 0 0 1px #2a2a2a; }
.ink-cell .stat-row dt { color: #a0a0a0; }
.ink-cell .stat-row dd { color: var(--led); }
.ink-cell .stat-row dd.l { color: #ff6060; }
.ink-cell .stat-row dd.s { color: #7fb0ff; }

.src-line { color: #e0fff8; font-size: 12px; margin: -6px 0 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; text-shadow: 1px 1px 0 #000; }
.sec-title { font: 700 20px/1.2 var(--f-big); color: #fff; text-shadow: 2px 2px 0 #000; margin: 24px 0 12px; }
.sec-title::before { content: '▶ '; color: var(--yel); }
.mini-h { font-size: 12px; margin: 2px 0 4px; display: flex; align-items: center; gap: 6px; }
.mini-h.up { color: var(--up); }
.mini-h.down { color: var(--down); }
.mini-h.up::before { content: '▲'; }
.mini-h.down::before { content: '▼'; }
.mini-h + .mv-list + .mini-h { margin-top: 12px; }

/* ── 메인: 면 ── */
.desk { margin-top: 30px; }
.desk-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 0 0 10px; color: #fff; border-bottom: 2px dashed rgba(255, 255, 255, .45); margin-bottom: 12px; }
.desk-head h2 { font: 700 28px/1.1 var(--f-big); text-shadow: 3px 3px 0 #000; }
.desk-head h2::before { content: '★ '; color: var(--yel); }
.desk-head p { font-size: 12px; color: #e0fff8; text-shadow: 1px 1px 0 #000; }
.desk-head .more { color: var(--ink); background: var(--win); box-shadow: var(--raised); padding: 2px 10px; text-decoration: none; }
.desk-head .more:hover { background: var(--yel); }

/* 브리핑 */
.brief { margin-bottom: 0; }
.bf { gap: 2px; padding: 4px 4px 12px; }
.bf > * { margin-left: 12px !important; margin-right: 12px !important; }
.bf-k { display: flex; align-items: baseline; gap: 8px; font-size: 12px; background: var(--title); color: #fff; margin: 0 0 8px !important; padding: 3px 8px; }
.bf-k em { font-style: normal; font: 400 11px/1 var(--f-num); color: #cfe3ff; }
.bf-v { font: 400 30px/1.2 var(--f-num); white-space: nowrap; }
.bf-s { display: flex; align-items: center; gap: 8px; }
.bf-s small { color: var(--faint); font-size: 11px; }
.bf-x { font-size: 12px; color: var(--mute); }
.bf-main { background: #ffffa8; }
.bf-main .bf-k { background: linear-gradient(90deg, #800000, #d04000); }
.bf .spark { width: auto; height: 30px; margin-top: 4px; }
.spark path { fill: none; stroke-width: 2; }
.spark.up path { stroke: var(--up); }
.spark.down path { stroke: var(--down); }

/* 시장 · 파생 · 추천 · 소식 배치 */
.g-market { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "kimp up alert"; }
.a-kimp { grid-area: kimp; } .a-up { grid-area: up; } .a-alert { grid-area: alert; }
.g-deriv { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "heat oi whale"; }
.a-heat { grid-area: heat; } .a-oi { grid-area: oi; } .a-whale { grid-area: whale; }
.g-recs { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "recent tiles"; }
.a-recent { grid-area: recent; }
.a-tiles { grid-area: tiles; background: transparent; box-shadow: none; padding: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.a-tiles > * { margin: 0 !important; }
.grade-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 16px 18px; min-height: 140px; text-decoration: none !important; color: var(--ink); box-shadow: var(--raised); overflow: hidden; }
.grade-tile:hover { color: var(--ink); }
.grade-tile:active { box-shadow: var(--sunken); }
.grade-tile.silver { background: repeating-linear-gradient(135deg, #f0f0f0 0 6px, #dcdcdc 6px 12px); }
.grade-tile.gold { background: repeating-linear-gradient(135deg, #fff3a0 0 6px, #ffe066 6px 12px); }
.grade-tile .gt-k { align-self: flex-start; margin-bottom: auto; font: 400 11px/1 var(--f-num); letter-spacing: 0.2em; background: var(--ink); color: #fff; padding: 3px 6px; }
.grade-tile b { font: 700 28px/1.2 var(--f-big); text-shadow: 2px 2px 0 #fff; margin-top: 12px; }
.grade-tile small { font-size: 12px; background: #fff; border: 1px solid var(--ink); padding: 2px 6px; align-self: flex-start; }
.grade-tile .ic { position: absolute; right: 14px; top: 10px; }
.grade-tile:hover b { color: var(--navy); }
.gal-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 10px; color: #fff; }
.gal-head h3 { font: 700 18px/1.2 var(--f-big); text-shadow: 2px 2px 0 #000; }
.gal-head h3::before { content: '♛ '; color: var(--yel); }
.gal-head .more { color: var(--ink); background: var(--win); box-shadow: var(--raised); padding: 0 8px; text-decoration: none; }
.g-news { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "news tg yt ch"; }
.a-news { grid-area: news; } .a-tg { grid-area: tg; } .a-yt { grid-area: yt; } .a-ch { grid-area: ch; }

.tv-chart { width: 100%; height: 520px; border: 0; box-shadow: var(--sunken); padding: 2px; background: var(--win); display: block; }
.kpi { font: 400 26px/1.2 var(--f-num); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.kpi small { font-size: 12px; color: var(--mute); display: inline-flex; gap: 4px; }

/* 그래프: 검은 화면에 녹색 선 */
.chart { width: 100%; height: auto; display: block; background: #000; border: 1px solid var(--ink); }
.chart-area { fill: rgba(57, 255, 20, .12); }
.chart-line { fill: none; stroke: var(--led); stroke-width: 2; }
.chart.alt .chart-area { fill: rgba(255, 176, 0, .14); }
.chart.alt .chart-line { stroke: var(--amber); }
.chart-cap { font-size: 11px; color: var(--mute); margin: 10px 0 4px; }

/* ── 표 ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: var(--sunken); padding: 2px; background: #fff; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger th { text-align: left; font-size: 12px; font-weight: 400; padding: 3px 8px; background: var(--win); box-shadow: var(--raised); white-space: nowrap; }
.ledger td { padding: 7px 8px; border-bottom: 1px dotted var(--lo); vertical-align: middle; }
.ledger tbody tr:nth-child(even) td { background: #f4f4f4; }
.ledger tbody tr:hover td { background: #ffffcc; }
.ledger .num { text-align: right; white-space: nowrap; font-family: var(--f-num); }
.ledger td.coin { white-space: nowrap; }
.ledger td.coin .cic, .ledger td.coin .avatar { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.ledger td.coin b { vertical-align: middle; }
.ledger .cn { display: inline-flex; flex-direction: column; vertical-align: middle; line-height: 1.3; }
.ledger .cn small { color: var(--faint); font-family: var(--f-num); font-size: 11px; }
.ledger .no { color: var(--faint); width: 1%; }
.ledger td.empty { text-align: center; }
.post-table td.date { width: 1%; color: var(--mute); }

/* 급등락 */
.mv-list li { display: grid; grid-template-columns: 16px 22px minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px dotted var(--lo); }
.mv-list .rk { color: var(--faint); font-size: 11px; }
.mv-list .num { font-size: 12px; }
.mv-name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mv-name b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-name small { color: var(--faint); font-family: var(--f-num); font-size: 11px; }
.mv-alerts li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t n w" "t n p"; column-gap: 8px; padding: 6px 0 6px 8px; border-bottom: 1px dotted var(--lo); border-left: 4px solid var(--lo); }
.mv-alerts li.up { border-left-color: var(--up); }
.mv-alerts li.down { border-left-color: var(--down); }
.mv-alerts time { grid-area: t; font-size: 12px; color: var(--mute); }
.mv-alerts .mv-name { grid-area: n; }
.mv-alerts .mv-what { grid-area: w; font-size: 12px; text-align: right; white-space: nowrap; }
.mv-alerts .mv-px { grid-area: p; font-size: 11px; color: var(--mute); text-align: right; white-space: nowrap; }

/* 미결제 약정(메인) */
.oi-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "c u" "p1 p2"; gap: 0 10px; padding: 6px 0; border-bottom: 1px dotted var(--lo); }
.oi-c { grid-area: c; display: flex; align-items: center; gap: 6px; }
.oi-u { grid-area: u; text-align: right; }
.oi-p { display: inline-flex; gap: 4px; align-items: baseline; font-size: 12px; }
.oi-p:nth-of-type(3) { grid-area: p1; }
.oi-p:nth-of-type(4) { grid-area: p2; justify-self: end; }
.oi-p small { color: var(--faint); font-family: var(--f-num); }

/* 고래 */
.px-whale { image-rendering: pixelated; }
.dw-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "px n" "px p"; column-gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dotted var(--lo); }
.dw-list .px-whale { grid-area: px; }
.dw-name { grid-area: n; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.dw-name b { font-size: 13px; }
.dw-pos { grid-area: p; display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
em.l, em.s { font-style: normal; font-family: var(--f-num); font-size: 12px; }
em.l { color: var(--up); }
em.s { color: var(--down); }
.nm-kind { font-size: 11px; color: var(--faint); white-space: nowrap; }
.nm-kind.k-owner { color: #008000; }
.bias li { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-areas: "c b" "c n"; column-gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dotted var(--lo); }
.bias-coin { grid-area: c; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bias-bar { grid-area: b; display: flex; height: 12px; background: var(--win); box-shadow: var(--sunken); padding: 2px; }
.bias-bar i { display: block; height: 100%; }
.bias-bar i.l { background: repeating-linear-gradient(90deg, var(--up) 0 6px, transparent 6px 8px); }
.bias-bar i.s { background: repeating-linear-gradient(90deg, var(--down) 0 6px, transparent 6px 8px); }
.bias-num { grid-area: n; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bias.compact { margin-top: 10px; }

/* ── 피드 카드 ── */
.fb-sec + .fb-sec { margin-top: 14px; }
.fb-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; padding-bottom: 2px; border-bottom: 1px dashed var(--lo); }
.fb-h b { font-size: 13px; }
.fb-h small { color: var(--faint); font-family: var(--f-num); }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.fb-stack { display: flex; flex-direction: column; gap: 6px; }
.fb-card { background: #fff; border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--lo); padding: 7px 9px; display: flex; flex-direction: column; gap: 3px; min-width: 0; text-decoration: none !important; color: var(--ink); }
a.fb-card:hover { background: #ffffcc; color: var(--ink); }
.fb-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.fb-time { font-size: 11px; color: var(--mute); }
.fb-tag { font-size: 11px; padding: 0 4px; border: 1px solid var(--lo); background: var(--win); line-height: 16px; }
.fb-tag.k-in, .fb-tag.k-long { color: #fff; border-color: var(--up); background: var(--up); }
.fb-tag.k-out, .fb-tag.k-short { color: #fff; border-color: var(--down); background: var(--down); }
.fb-tag.k-miner { color: var(--gold); border-color: #806000; background: var(--gold-bg); }
.fb-tag.k-alarm { background: var(--ink); color: var(--yel); border-color: var(--ink); }
.fb-whales { color: var(--navy); font-size: 9px; letter-spacing: 1px; }
.fb-main { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.fb-main b { font-family: var(--f-num); font-size: 14px; font-weight: 400; min-width: 0; overflow-wrap: anywhere; }
.fb-main em { font-style: normal; font-family: var(--f-num); font-size: 12px; margin-left: auto; white-space: nowrap; }
.fb-sub { color: var(--mute); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.fb-src { color: var(--faint); font-size: 11px; }
.ev-type { font-size: 11px; padding: 0 4px; background: var(--navy); color: #fff; line-height: 16px; }
.ev-type.t-open { background: var(--yel); color: var(--ink); border: 1px solid var(--ink); }
.ev-type.t-close { background: var(--win); color: var(--ink); }
.side { display: inline-block; font-size: 11px; padding: 0 5px; color: #fff; line-height: 16px; }
.side.long { background: var(--up); }
.side.short { background: var(--down); }
.nw-card { gap: 5px; }
.nw-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--win); margin: -7px -9px 3px; border-bottom: 1px solid var(--ink); }
.nw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nw-title { font-size: 13px; line-height: 1.55; }

/* ── 청산 히트맵(캔버스) ── */
.lm { position: relative; width: 100%; }
.lm-canvas { display: block; width: 100%; }
.lm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11px; color: #a0a0a0; }
.lm-key { display: inline-flex; align-items: center; gap: 6px; }
.lm-key::before { content: ''; width: 14px; height: 8px; }
.lm-key.k-c::before { background: linear-gradient(90deg, #ff5d63 50%, #5aa9ff 50%); }
.lm-key.k-h::before { background: linear-gradient(90deg, #44014f, #21918c, #fde725); }
.lm-key.k-s::before { background: var(--led); }
.lm-key.k-l::before { background: #ff5d63; }
.cell:not(.ink-cell) .lm-legend { color: var(--mute); }

/* ── 최근 게시글 탭: 옛 탭 대화상자 ── */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--lo); padding-left: 2px; }
.tab { border: 0; background: var(--win); box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--dk), inset -2px 0 var(--lo); padding: 4px 12px; font-size: 13px; cursor: pointer; margin-right: -1px; position: relative; top: 1px; }
.tab.on { background: #fff; font-weight: 700; z-index: 1; }
.recent li { border-bottom: 1px dotted var(--lo); }
.recent li a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 2px; text-decoration: none; color: var(--ink); }
.recent li a:hover { background: #ffffcc; color: var(--ink); }
.rt { display: flex; flex-direction: column; min-width: 0; }
.rt b { font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--link); text-decoration: underline; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt small { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent time { color: var(--faint); font-size: 11px; white-space: nowrap; }
.recent .is-hidden .rt b { color: var(--mute); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.recent li.empty { padding: 24px 0; border: 0; }

/* ── 수익 마감 갤러리: 옛 상장(賞狀) 카드 ── */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 16px; }
.g-card { position: relative; background: #fffef0; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; text-decoration: none !important; color: var(--ink); box-shadow: var(--raised), inset 0 0 0 4px var(--win), inset 0 0 0 6px #b8860b; }
.g-card:hover { background: #ffffcc; color: var(--ink); }
.g-top { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.g-stamp { margin-left: auto; font-size: 11px; padding: 1px 6px; background: #ff0000; color: #fff; border: 1px solid #800000; white-space: nowrap; }
.g-coin { font-size: 16px; margin-top: 4px; overflow-wrap: anywhere; }
.g-pct { font: 400 32px/1.2 var(--f-num); color: var(--up); text-shadow: 2px 2px 0 #ffd0d0; }
.g-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; border-top: 1px dashed var(--lo); padding-top: 4px; }
.g-line small { color: var(--mute); }
.g-line .num { text-align: right; overflow-wrap: anywhere; }
.g-foot { display: flex; flex-direction: column; color: var(--faint); font-size: 11px; margin-top: 3px; }

/* ── 소식·채널 ── */
.news-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--lo); }
.news-list time { color: var(--mute); font-size: 11px; padding-top: 2px; }
.news-title a, .news-title span { line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-title small { display: block; color: var(--faint); font-size: 11px; }
.tg-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--lo); }
.tg-list a { display: flex; flex-direction: column; min-width: 0; }
.tg-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tg-sum { color: var(--mute); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tg-list time { color: var(--faint); font-size: 11px; }
.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.yt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.yt-thumb { display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: var(--sunken); padding: 2px; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-title { font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt time { color: var(--faint); font-size: 11px; }
.channels { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ch { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; background: var(--win); box-shadow: var(--raised); padding: 7px 10px; text-decoration: none !important; color: var(--ink); flex: 1; }
a.ch:hover { background: var(--yel); color: var(--ink); }
a.ch:active { box-shadow: var(--sunken); }
.ch-mark { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 0 1px var(--ink); }
.ch-mark.kakao { background: #fee500; color: #191600; }
.ch-mark.insta { background: #c13584; }
.ch-mark.tg { background: #229ed9; }
.ch-mark.yt { background: #e62117; }
.ch-label { display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; min-width: 0; }
.ch-label small { color: var(--mute); font-size: 11px; }
.ch.is-off { color: var(--lo); text-shadow: 1px 1px 0 var(--hi); }
.ch.is-off .ch-mark { filter: grayscale(1); opacity: .5; }
.ch.is-off .ic { visibility: hidden; }

/* ── 보조지표 화면 ── */
.sub-nav { margin-bottom: 16px; background: var(--win); box-shadow: var(--raised); padding: 5px; }
.coin-chips { margin-bottom: 10px; }
.range-chips { margin-left: auto; }
.ch-head .chips .chip { min-height: 20px; padding: 0 6px; font-size: 11px; }
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.dex-card { background: #fff; border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--lo); padding: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; position: relative; min-width: 0; }
.dex-rank { position: absolute; top: 8px; right: 10px; font: 400 12px/1 var(--f-num); background: var(--navy); color: var(--yel); padding: 2px 4px; }
.dex-px { padding: 6px; background: #87ceeb; box-shadow: var(--sunken); margin-bottom: 6px; }
.dex-name { font-size: 13px; overflow-wrap: anywhere; }
.dex-val { font-family: var(--f-num); font-size: 12px; }
.dex-pos { display: flex; flex-wrap: wrap; gap: 6px; }
.dex-top { font-size: 12px; color: var(--mute); display: flex; gap: 6px; align-items: center; }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who .px-whale { flex: none; }
.who-name { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.who-name b { font-size: 12px; font-weight: 400; white-space: normal; }
.who-name .nm-kind, .who-name .addr { display: block; }
.addr { font-family: var(--f-num); font-size: 11px; color: var(--faint); }
.oi-card { gap: 6px; }
.oi-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oi-head b { font-size: 15px; }
.oi-head small { color: var(--mute); }
.oi-val { font: 400 26px/1.2 var(--f-num); }
.oi-chg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 0; margin-bottom: 0; }
.oi-chg div { border-top: 1px dotted var(--lo); padding-top: 3px; }
.oi-chg dt { font-size: 11px; color: var(--mute); }
.oi-chg dd { margin: 0; }
.oi-ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; font-size: 12px; }
.oi-ex li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--lo); padding: 2px 0; }
.oi-ex b { font-family: var(--f-num); font-weight: 400; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 0; margin-bottom: 12px; }
.stat-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-row div { background: var(--win); box-shadow: var(--sunken); padding: 6px 9px; min-width: 0; }
.stat-row dt { font-size: 11px; color: var(--mute); }
.stat-row dd { margin: 2px 0 0; font-family: var(--f-num); font-size: 14px; overflow-wrap: anywhere; }
.stat-row dd.big { font-size: 22px; }
.stat-row dd.in, .stat-row dd.l { color: var(--up); }
.stat-row dd.out, .stat-row dd.s { color: var(--down); }
.liq-total { margin: 0 0 16px; }
.liq-total .cell { padding: 10px 14px; }
.liq-total .cell > * { margin: 0; }
.liq-total dt { font-size: 12px; color: var(--mute); }
.liq-total dd { margin: 0; font: 400 22px/1.3 var(--f-num); }
.liq-total .l dd { color: var(--up); }
.liq-total .s dd { color: var(--down); }
.legend { display: inline-flex; gap: 10px; }
.legend em { font-style: normal; color: #fff; }
.legend em::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 4px; box-shadow: 0 0 0 1px #fff; }
.legend em.s::before { background: var(--down); }
.legend em.l::before { background: var(--up); }
.liq-map li { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr) 120px; gap: 6px; align-items: center; padding: 1px 0; font-size: 12px; }
.liq-map li.here { background: #ffffa8; outline: 1px dotted var(--ink); }
.lv-price { text-align: right; padding-right: 4px; }
.lv-price em { font-style: normal; display: block; font-size: 10px; color: #800000; }
.lv-bar { height: 10px; background: #eee; display: flex; }
.lv-bar.s { justify-content: flex-end; }
.lv-bar i { display: block; height: 100%; }
.lv-bar.s i { background: var(--down); }
.lv-bar.l i { background: var(--up); }
.lv-num { display: flex; flex-direction: column; font-size: 11px; line-height: 1.3; }
.liq-big li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--lo); font-size: 12px; }
.liq-big time { color: var(--mute); font-size: 11px; }
.chart-cell .tv-chart { height: 560px; }

/* ── 추천 게시판 ── */
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-row .chips { background: var(--win); box-shadow: var(--raised); padding: 4px; }
.blind-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: #ffffe1; border: 1px solid var(--ink); padding: 4px 8px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 12px; align-items: start; }
.board-main { min-width: 0; }
.side { align-content: start; }
.guide li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 4px 0; font-size: 12px; }
.guide .n { font-size: 11px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--yel); }
.side-recs li a { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-areas: "i t" "i m"; column-gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--lo); text-decoration: none; color: var(--ink); }
.side-recs li a:hover { background: #ffffcc; color: var(--ink); }
.side-recs .cic { grid-area: i; }
.sr-top { grid-area: t; display: flex; justify-content: space-between; gap: 8px; }
.sr-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--link); text-decoration: underline; }
.sr-top time { color: var(--faint); font-size: 11px; }
.sr-meta { grid-area: m; display: flex; align-items: center; gap: 6px; min-width: 0; }
.sr-meta .sum { color: var(--mute); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-table td.coin a { display: inline-flex; align-items: center; gap: 6px; }
.rec-table td.coin .cic { margin: 0; }
.rec-table td.wrap { white-space: normal; text-align: left; min-width: 110px; }
.rec-table td.sum { max-width: 220px; }
.rec-table td.sum a { color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; text-decoration: none; }
.rec-table td.date { color: var(--mute); font-size: 12px; white-space: nowrap; }
.rec-table td.res { white-space: nowrap; }
.rec-table td.res form { margin-left: 6px; }
.rec-table tr.is-hidden td { color: var(--mute); background: repeating-linear-gradient(-45deg, #fff 0 4px, #e6e6e6 4px 6px) !important; }
.rec-table .hidden-title a { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); }
.rec-table tr.admin-blinded td { background: #fff8d0 !important; }

/* 최근 추천: 창 */
.ticket { background: #fff; margin-bottom: 14px; box-shadow: var(--raised), inset 0 0 0 4px var(--win); padding: 4px; }
.tk-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 3px 8px; background: var(--title); color: #fff; }
.ticket.gold .tk-head { background: linear-gradient(90deg, #806000, #e0b000); }
.ticket.silver .tk-head { background: linear-gradient(90deg, #404040, #a0a0a0); }
.tk-k { font-weight: 700; margin-right: 4px; }
.tk-k::before { content: '★ '; color: var(--yel); }
.tk-head time { margin-left: auto; font-size: 11px; }
.tk-body { display: grid; grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr); }
.tk-body > * { padding: 14px; min-width: 0; }
.tk-body > * + * { border-left: 1px dotted var(--lo); }
.tk-coin { display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; color: var(--ink); }
.tk-coin:hover { color: var(--ink); }
.tk-coin b { font: 700 24px/1.2 var(--f-big); overflow-wrap: anywhere; }
.tk-coin .go { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; margin-top: auto; color: var(--link); text-decoration: underline; }

/* 가격 사다리 */
.ladder { display: flex; flex-direction: column; border-left: 4px solid var(--navy); background: #fff; }
.lad { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 7px 0 7px 12px; border-bottom: 1px dotted var(--lo); position: relative; }
.lad::before { content: '◆'; position: absolute; left: -9px; top: 7px; font-size: 13px; color: var(--navy); line-height: 1; }
.lad-k { font-size: 12px; color: var(--mute); }
.lad-v { font-family: var(--f-num); font-size: 15px; font-weight: 400; overflow-wrap: anywhere; line-height: 1.4; }
.lad-v small { color: var(--mute); }
.lad.tp::before { color: var(--up); }
.lad.en { background: #ffffa8; }
.lad.en .lad-v { font-size: 18px; }
.lad.sl::before { color: var(--down); }
.rationale h3 { font-size: 12px; color: var(--navy); margin-bottom: 6px; }
.rationale h3::before { content: '▶ '; }
.rationale ul { display: flex; flex-direction: column; gap: 4px; }
.rationale li { padding-left: 14px; position: relative; font-size: 13px; }
.rationale li::before { content: '·'; position: absolute; left: 2px; top: 0; font-weight: 700; }

/* 상세·문서 창 */
.detail { max-width: 1000px; margin: 0 auto; }
.crumbs { display: flex; gap: 6px; font-size: 12px; margin-bottom: 10px; background: var(--win); box-shadow: var(--sunken); padding: 3px 8px; width: fit-content; max-width: 100%; }
.rec-doc, .doc-card { background: #fff; box-shadow: var(--raised), inset 0 0 0 4px var(--win); padding: 24px 26px; margin-bottom: 16px; }
.rd-head { border-bottom: 2px solid var(--navy); padding-bottom: 12px; margin-bottom: 16px; }
.detail-title { font: 700 26px/1.3 var(--f-big); display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; overflow-wrap: anywhere; color: var(--navy); }
.detail-title span { min-width: 0; }
.meta { color: var(--mute); font-size: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.post-body { font-size: 14px; line-height: 1.9; margin: 16px 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.notice-box { display: flex; gap: 12px; align-items: flex-start; background: #ffffe1; border: 1px solid var(--ink); padding: 14px; margin-top: 12px; }
.notice-box b { display: block; margin-bottom: 2px; }
.admin-panel { background: var(--win); box-shadow: var(--raised); padding: 4px 4px 14px; }
.admin-panel > * { margin-left: 12px; margin-right: 12px; }
.admin-panel h2 { font: 700 13px/1.3 var(--f-body); background: linear-gradient(90deg, #800000, #d04000); color: #fff; padding: 4px 8px; margin: 0 0 10px; }
.admin-panel h3 { font-size: 13px; margin-top: 14px; margin-bottom: 4px; padding-top: 10px; border-top: 1px solid var(--lo); }
.admin-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; font-size: 13px; }
.admin-row select { min-height: 26px; border: 0; box-shadow: var(--sunken); padding: 0 6px; background: #fff; border-radius: 0; margin-left: 4px; }
.talk-row b { min-width: 72px; }
.gallery-on { color: #006000; }

/* ── 폼: 대화상자 ── */
.form-page { max-width: 760px; margin: 0 auto; }
.form-page.narrow { max-width: 520px; }
.form-page.wide { max-width: 1180px; }
.form-card { background: var(--win); box-shadow: var(--raised); padding: 18px 20px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.form-sub { font-size: 13px; background: var(--title); color: #fff; padding: 3px 8px; margin: -14px -16px 2px; }
.field { display: flex; flex-direction: column; gap: 4px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-size: 13px; padding: 0; }
.field input, .field textarea, .field select, .member-search input, .form-card textarea, .rec-form textarea {
  width: 100%; min-height: 32px; padding: 6px 8px; border: 0; background: #fff; border-radius: 0; font-size: 14px; box-shadow: var(--sunken);
}
.field textarea, .form-card textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .member-search input:focus, .form-card textarea:focus { outline: 1px dotted var(--ink); outline-offset: -5px; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.opts .opt { background: var(--win); box-shadow: var(--raised); padding: 5px 12px; }
.opts .opt:has(input:checked) { box-shadow: var(--sunken); background: var(--yel); }
.opts .opt.silver:has(input:checked) { background: linear-gradient(180deg, #fff, #c8c8c8); }
.opts .opt.gold:has(input:checked) { background: linear-gradient(180deg, #fff5a0, #ffd700); }
.opt input { width: 14px; height: 14px; accent-color: var(--navy); margin: 0; }
.opt.warn { color: #806000; }
.opt-t { font-style: normal; font-size: 11px; color: var(--faint); }
.req { font-style: normal; font-size: 11px; background: #ff0000; color: #fff; padding: 0 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { text-align: center; font-size: 13px; margin-top: 12px; color: #fff; text-shadow: 1px 1px 0 #000; }
.form-foot a { color: var(--yel); }
.privacy-box { background: #fff; box-shadow: var(--sunken); padding: 10px 12px; font-size: 12px; }
.privacy-box ul { margin: 6px 0; display: flex; flex-direction: column; gap: 2px; }

/* 추천 등록폼: 왼쪽 입력, 오른쪽 도스 화면 미리보기 */
.rec-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); background: var(--win); box-shadow: var(--raised); padding: 4px; }
.rf-fields { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rf-preview { padding: 14px; margin: 8px; background: #000; color: var(--led); display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: var(--sunken); }
.rf-k { font: 400 12px/1 var(--f-num); color: var(--amber); }
.rf-k::before { content: 'C:\\> '; }
.msg-preview { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13px/1.7 var(--f-num); padding: 6px 0; min-height: 220px; flex: 1; color: var(--led); }
.rf-preview .hint { color: #9ad08e; }
.rf-preview [data-bytes].over { color: var(--amber); }
.rf-preview .opt.warn { color: var(--amber); }
.rf-note { padding: 16px 18px; }
.rec-form .actions { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-top: 1px solid var(--lo); justify-content: flex-end; }
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tp-in { position: relative; }
.tp-in em { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font: 400 12px/1 var(--f-num); color: var(--mute); }
.tp-in input { width: 100%; min-height: 32px; padding: 6px 8px 6px 34px; border: 0; border-radius: 0; background: #fff; box-shadow: var(--sunken); }

/* 로그인·가입: 접속 프로그램 창 */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); max-width: 1000px; margin: 0 auto; background: var(--win); box-shadow: var(--raised), 4px 4px 0 rgba(0, 0, 0, .45); padding: 4px; }
.auth-side { background: var(--navy); color: #fff; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; right: 16px; bottom: 16px; width: 96px; height: 96px;
  background: linear-gradient(var(--yel), var(--yel)) 0 100% / 26% 40% no-repeat, linear-gradient(var(--yel), var(--yel)) 50% 100% / 26% 70% no-repeat, linear-gradient(var(--yel), var(--yel)) 100% 100% / 26% 100% no-repeat; }
.auth-k { font: 400 12px/1 var(--f-num); color: var(--yel); }
.auth-k::before { content: '☎ '; }
.auth-big { font: 700 32px/1.25 var(--f-big); text-shadow: 3px 3px 0 #000; }
.auth-side p:last-child { color: #cfe3ff; font-size: 13px; max-width: 30ch; position: relative; z-index: 1; }
.auth-main { padding: 22px 24px; }
.auth-main h1 { font: 700 22px/1.2 var(--f-big); margin-bottom: 14px; color: var(--navy); }
.auth-main .form-card { box-shadow: none; padding: 0; }
.auth-main .form-foot { color: var(--ink); text-shadow: none; }
.auth-main .form-foot a { color: var(--link); }
.auth-main .form-foot.hint { color: var(--mute); }

/* 회원 관리 */
.member-search { display: flex; gap: 6px; margin-bottom: 14px; }
.member-search input { flex: 1; }
.members li.member { border-bottom: 1px dotted var(--lo); }
.members li.is-off { opacity: .55; }
.members li.is-saved { background: #ffffa8; }
.member-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 4px; }
.m-who { flex: 1 1 280px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.m-who small { flex-basis: 100%; color: var(--mute); }
.legacy { font-style: normal; background: #e8e8ff; padding: 0 4px; }
.legacy.warn { background: var(--gold-bg); color: var(--gold); }
.m-set { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-set .opt { padding: 3px 8px; background: var(--win); box-shadow: var(--raised); }
.m-set .opt:has(input:checked) { box-shadow: var(--sunken); }
.m-set .opt.silver:has(input:checked) { background: linear-gradient(180deg, #fff, #c8c8c8); }
.m-set .opt.gold:has(input:checked) { background: linear-gradient(180deg, #fff5a0, #ffd700); }
.status-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--lo); font-size: 12px; flex-wrap: wrap; }
.status-list span { color: var(--mute); }
.me-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.me-card b { font-size: 18px; color: var(--navy); }
.me-card span { color: var(--mute); }
.me-card p { flex-basis: 100%; }
.leave summary { cursor: pointer; color: var(--mute); }
.doc h2 { font-size: 14px; margin: 18px 0 6px; padding-top: 10px; border-top: 1px dotted var(--lo); color: var(--navy); }
.doc ul { list-style: square; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.doc p { margin: 6px 0; }
.tbd { font-style: normal; background: var(--gold-bg); padding: 0 4px; }
.msg-card h1 { font: 700 20px/1.3 var(--f-big); margin-bottom: 10px; color: var(--navy); }

/* 쪽 번호 */
.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 14px; }
.pager a, .pager span { min-width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-num); font-size: 12px; background: var(--win); box-shadow: var(--raised); color: var(--ink); text-decoration: none; }
.pager .on { box-shadow: var(--sunken); background: var(--yel); }

/* 수익 마감 상장 */
.cert { background: #fffef0; padding: 30px; box-shadow: var(--raised), inset 0 0 0 4px var(--win), inset 0 0 0 7px #b8860b, inset 0 0 0 9px #fffef0, inset 0 0 0 10px #b8860b; text-align: center; }
.cert-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cert-title { font: 700 24px/1.4 var(--f-big); margin: 14px 0 6px; overflow-wrap: anywhere; color: var(--navy); }
.cert-pct { font: 400 64px/1.25 var(--f-num); color: var(--up); text-shadow: 3px 3px 0 #ffd0d0; margin: 10px 0 18px; }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; text-align: left; }
.cert-grid div { background: #fff; border: 1px solid var(--lo); padding: 8px 10px; min-width: 0; }
.cert-grid dt { font-size: 11px; color: var(--mute); }
.cert-grid dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.cert .actions { justify-content: center; }

/* ── 바닥판: 작업 표시줄 ── */
.foot { margin-top: 30px; background: var(--win); box-shadow: inset 0 1px var(--lt), inset 0 2px var(--hi); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px 30px; }
.foot-word { display: inline-flex; align-items: center; gap: 6px; font: 700 20px/1.2 var(--f-big); background: var(--win); box-shadow: var(--raised); padding: 6px 12px; margin-bottom: 10px; color: var(--navy); }
.foot-word::before { content: ''; width: 18px; height: 18px; background:
  linear-gradient(#000080, #000080) 0 100% / 30% 40% no-repeat, linear-gradient(#000080, #000080) 50% 100% / 30% 70% no-repeat, linear-gradient(#000080, #000080) 100% 100% / 30% 100% no-repeat; }
.foot-brand p { font-size: 12px; max-width: 60ch; color: var(--mute); }
.foot-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
.foot-links a { padding: 3px 10px; background: var(--win); box-shadow: var(--raised); font-size: 12px; color: var(--ink); text-decoration: none; }
.foot-links a:hover { background: var(--yel); }
.foot-links a:active { box-shadow: var(--sunken); }
.foot-copy { grid-column: 1 / -1; font: 400 11px/1.2 var(--f-num); color: var(--mute); box-shadow: var(--sunken); padding: 6px 10px; justify-self: end; }

/* ════ 화면 폭 ════ */
@media (max-width: 1279px) {
  .ticks { grid-template-columns: repeat(7, minmax(max-content, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .ticks::-webkit-scrollbar { display: none; }
  .mast-tag { display: none; }
  .logo { margin-right: auto; }
  .g-market { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "kimp kimp" "up alert"; }
  .g-deriv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "heat heat" "oi whale"; }
  .g-news { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "news tg" "yt ch"; }
  .sheet.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-grid { grid-template-columns: minmax(0, 1fr) 250px; }
  .tk-body { grid-template-columns: 160px minmax(0, 1fr); }
  .tk-body > .rationale { grid-column: 1 / -1; border-left: 0; border-top: 1px dotted var(--lo); }
}

@media (max-width: 960px) {
  :root { --pad: 10px; }
  .rail-in { flex-direction: column; }
  .rail-side { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 4px var(--pad); border-top: 1px dotted #1d5c12; flex-wrap: wrap; }
  .mast { margin: 8px var(--pad) 0; }
  .mast-in { padding: 8px; gap: 8px; }
  .logo .mark { width: 32px; height: 32px; }
  .logo-word b { font-size: 24px; }
  .logo-word small { font-size: 10px; letter-spacing: 0.1em; }
  .guest .btn { padding: 0 10px; }
  .nav-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-item { padding: 6px 2px; text-align: center; font-size: 13px; }
  .nav-item.g-silver::before, .nav-item.g-gold::before { width: 7px; height: 7px; margin-right: 3px; }
  .sheet.c3, .sheet.wide-left { grid-template-columns: minmax(0, 1fr); }
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .g-recs { grid-template-columns: minmax(0, 1fr); grid-template-areas: "recent" "tiles"; }
  .a-tiles { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .grade-tile { min-height: 120px; }
  .rec-form { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 20px; }
  .auth-side::after { width: 64px; height: 64px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .tv-chart { height: 420px; }
  .tv-row .tv-chart { height: 300px; }
  .stat-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page { padding-top: 12px; }
  .ph { flex-direction: column; align-items: stretch; gap: 10px; }
  .ph h1 { font-size: 24px; }
  .ph-act .btn { width: 100%; }
  .desk-head h2 { font-size: 22px; }
  .sheet.c2, .sheet.c4, .g-market, .g-deriv, .g-news { grid-template-columns: minmax(0, 1fr); }
  .g-market { grid-template-areas: "kimp" "up" "alert"; }
  .g-deriv { grid-template-areas: "heat" "oi" "whale"; }
  .g-news { grid-template-areas: "news" "tg" "yt" "ch"; }
  .brief.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-v { font-size: 20px; }
  .cell > :not(.ch-head) { margin-left: 8px; margin-right: 8px; }
  .a-tiles { grid-template-columns: minmax(0, 1fr); }
  .tk-body { grid-template-columns: minmax(0, 1fr); }
  .tk-body > * + * { border-left: 0; border-top: 1px dotted var(--lo); }
  .lad { grid-template-columns: 80px minmax(0, 1fr); }
  .lad .pct { grid-column: 2; }
  .rec-doc, .doc-card, .cert { padding: 18px 14px; }
  .form-card, .rf-fields { padding: 14px 12px; }
  .form-sub { margin: -10px -8px 2px; }
  .auth-main { padding: 18px 12px; }
  .tp-grid { grid-template-columns: minmax(0, 1fr); }
  .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .cert-pct { font-size: 44px; }
  .hide-xs { display: none; }
  .liq-map li { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); }
  .liq-map .lv-num { grid-column: 1 / -1; flex-direction: row; gap: 10px; justify-content: flex-end; }
  .liq-big li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .liq-big li > .num:not(b) { display: none; }
  .oi-ex { grid-template-columns: minmax(0, 1fr); }
  .stat-row, .stat-row.four { grid-template-columns: minmax(0, 1fr); }
  .range-chips { margin-left: 0; }
  .tv-chart { height: 360px; }
  .mv-list li { grid-template-columns: 16px 22px minmax(0, 1fr) auto; }
  .mv-list li > .num { display: none; }
  .member-form { align-items: flex-start; }
  .foot-copy { justify-self: stretch; }

  /* 추천 표 → 카드 */
  .rec-table thead { display: none; }
  .rec-table, .rec-table tbody, .rec-table tr, .rec-table td { display: block; width: 100%; }
  .rec-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 10px 4px; border-bottom: 1px dotted var(--lo); }
  .rec-table td { padding: 0; border: 0; min-width: 0; background: transparent !important; }
  .rec-table td.no, .rec-table td.kind { display: none; }
  .rec-table td.coin { grid-column: 1; }
  .rec-table td.coin { white-space: normal; }
  .rec-table td.coin a { display: flex; align-items: flex-start; min-width: 0; }
  .rec-table td.coin b { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .rec-table td.res { white-space: normal; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .rec-table td.res form { margin-left: 0; }
  .rec-table td.res { grid-column: 2; grid-row: 1; text-align: right; }
  .rec-table td.wrap, .rec-table td[data-label] { grid-column: 1 / -1; display: flex; gap: 10px; text-align: left; font-size: 12px; white-space: normal; }
  .rec-table td[data-label]::before { content: attr(data-label); flex: none; width: 64px; color: var(--mute); font-family: var(--f-body); font-size: 11px; }
  .rec-table td.sum { grid-column: 1 / -1; max-width: none; }
  .rec-table td.date { grid-column: 1 / -1; text-align: left; }
  .rec-table tr.is-hidden td.hidden-title, .rec-table tr.is-hidden td.date { grid-column: 1 / -1; }
  .rec-table tr.is-hidden td.res { display: none; }
}

@media (max-width: 400px) {
  .logo-word small { display: none; }
  .nav-item { font-size: 12px; padding: 5px 1px; }
  .brief.c4 { grid-template-columns: minmax(0, 1fr); }
  .guest { gap: 4px; }
  .guest .btn { padding: 0 8px; font-size: 12px; }
  .kimp-table td, .kimp-table th { padding: 6px 4px; }
  .kimp-table .cn small { display: none; }
}

/* 옮겨 온 글의 원본 차트 그림 */
.legacy-imgs { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.legacy-imgs h3 { font-size: 12px; color: var(--navy); }
.legacy-imgs h3::before { content: '▶ '; }
.legacy-imgs img { width: 100%; height: auto; box-shadow: var(--sunken); padding: 2px; background: var(--win); }
.legacy-note { border-top: 1px dotted var(--lo); padding-top: 8px; }
