/* 이슈코인 — 코인마을 배치를 블랙으로. 블루 포인트, 금색은 로고·수익 갤러리, 그린·레드는 등급 구분색 */
:root {
  color-scheme: dark;
  --bg: #0a0b0e;
  --surface: #13151a;
  --surface-2: #1a1d24;
  --line: #262a33;
  --line-soft: #1d2027;
  --line-strong: #363b47;
  --ink: #eef1f6;
  --ink-2: #c3c9d4;
  --muted: #8b93a2;
  --faint: #626b7a;
  --blue: #3d8bff;
  --blue-d: #2f74e0;
  --blue-soft: rgba(61, 139, 255, .14);
  --green: #22c55e;
  --green-d: #16a34a;
  --green-soft: rgba(34, 197, 94, .14);
  --red: #f0474f;
  --red-soft: rgba(240, 71, 79, .14);
  --amber: #f5a524;
  --amber-soft: rgba(245, 165, 36, .13);
  --gold: #f5b82e;
  --gold-soft: rgba(245, 184, 46, .14);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, .15);
  --up: #f0474f;
  --down: #3d8bff;
  --liq-long: #f97316;
  --liq-short: #22d3ee;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 8px 24px rgba(0, 0, 0, .25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.55; letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex: none; }
[hidden] { display: none !important; }

/* ── 상단 메뉴바 ── */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-in { max-width: 1440px; margin: 0 auto; padding: 0 28px; height: 84px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; gap: 1px; }
.logo-text b { font-size: 27px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.logo-text small { font-size: 16px; font-weight: 600; color: var(--gold); letter-spacing: 0; }
.nav { display: flex; align-items: stretch; height: 100%; gap: 6px; margin-left: 24px; }
.nav-item {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 17px; font-weight: 600; color: var(--ink-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.nav-item .ic { width: 22px; height: 22px; }
.nav-item.blue .ic { color: var(--blue); }
.nav-item.ink .ic { color: var(--muted); }
.nav-item.gold .ic { color: var(--gold); }
.nav-item.gold.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-item.green .ic { color: var(--green); }
.nav-item.red .ic { color: var(--red); }
.nav-item:hover { color: var(--ink); background: var(--line-soft); }
.nav-item.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-item.green.active { color: var(--green); border-bottom-color: var(--green); }
.nav-item.red.active { color: var(--red); border-bottom-color: var(--red); }
.account { position: relative; flex: none; margin-left: auto; }
.acct-btn { list-style: none; height: 44px; color: var(--blue); background: var(--blue-soft); border-color: transparent; }
.acct-btn::-webkit-details-marker { display: none; }
.acct-btn span { font-size: 11px; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 170px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column;
}
.acct-menu a, .acct-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); cursor: pointer;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--line-soft); color: var(--ink); }
.acct-menu form { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }

/* ── 버튼·칩·배지 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-login { height: 46px; padding: 0 30px; font-size: 15px; }
.guest { display: flex; align-items: center; gap: 16px; flex: none; margin-left: auto; }
.signup-link { font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.form-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
.form-foot a { color: var(--blue); font-weight: 600; }
.opt, .req { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; margin-left: 4px; vertical-align: 1px; }
.opt { color: var(--muted); background: var(--surface-2); }
.req { color: var(--red); background: var(--red-soft); }
.privacy-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.privacy-box ul { margin: 6px 0 0; padding-left: 18px; }
.privacy-box li { margin: 2px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.member-search { display: flex; gap: 8px; margin-bottom: 12px; }
.member-search input { flex: 1; }
.members { list-style: none; margin: 8px 0 0; padding: 0; }
.member { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.member:first-child { border-top: 0; }
.member.is-off { opacity: .6; }
.member.is-saved { background: var(--green-soft); margin: 0 -12px; padding: 12px; border-radius: 10px; }
.member-form { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.m-who { display: flex; flex-direction: column; min-width: 0; }
.m-who b { font-size: 15px; }
.m-who span { font-size: 13px; color: var(--ink-2); }
.m-who small { font-size: 12.5px; color: var(--muted); }
.m-set { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.m-set .btn-xs { height: 32px; padding: 0 14px; margin: 0; font-size: 13px; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); }
.btn-warn { color: var(--amber); border-color: rgba(245, 165, 36, .4); background: var(--amber-soft); }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; margin-left: 6px; }
.btn-lg { height: 50px; padding: 0 32px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
form.inline { display: inline; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center;
}
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.chip.big { height: 42px; min-width: 104px; justify-content: center; font-size: 15px; }
.board.green .chip.on { background: var(--green); border-color: var(--green); }
.board.red .chip.on { background: var(--red); border-color: var(--red); }

.badges { display: inline-flex; gap: 4px; flex: none; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.b-notice { background: var(--blue-soft); color: var(--blue); }
.b-free { background: var(--violet-soft); color: var(--violet); }
.b-green { background: var(--green-soft); color: var(--green-d); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-kind-new { background: var(--blue-soft); color: var(--blue); }
.b-kind-add { background: var(--violet-soft); color: var(--violet); }
.b-blind { background: var(--surface-2); color: var(--muted); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.r-none { background: var(--green-soft); color: var(--green-d); }
.r-tp { background: var(--red-soft); color: var(--red); }
.r-sl { background: var(--red-soft); color: var(--red); }
.board.red .r-none, .detail.red .r-none { background: var(--blue-soft); color: var(--blue); }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; font-weight: 800; color: #fff;
  background: hsl(var(--hue) 55% 45%);
}

/* ── 페이지 틀 ── */
body { min-height: 100vh; display: flex; flex-direction: column; }
.page { max-width: 1440px; width: 100%; margin: 0 auto; padding: 24px 28px 48px; flex: 1; }
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 22px 22px 18px; }
.card { padding: 22px 24px; }
.panel-head, .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2, .card-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.card-head .meta, .meta { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 10px; }
.more { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 14px; }
.empty { color: var(--faint); padding: 18px 0; text-align: center; list-style: none; }
.hint { color: var(--muted); font-size: 13px; }
.feed-state { display: inline-block; font-size: 12px; margin-top: 8px; padding: 2px 8px; border-radius: 6px; }
.feed-state.stale { color: var(--amber); background: var(--amber-soft); }
.feed-state.none { color: var(--muted); background: var(--surface-2); }

/* ── 시세 줄 ── */
.ticker { display: flex; gap: 14px; align-items: stretch; margin-bottom: 22px; }
.ticks { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.tick { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px; box-shadow: var(--shadow); min-width: 0; }
.tick-name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.tick-price { font-size: clamp(16px, 1.32vw, 22px); font-weight: 800; letter-spacing: -0.035em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--faint); }
.tick.is-stale .tick-price { color: var(--ink-2); }
.ticker-side { flex: none; width: 140px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
.ticker-side .btn { height: 46px; width: 100%; font-size: 15px; }
.provider { color: var(--muted); font-size: 12px; }
.ticker-side .provider { white-space: nowrap; text-align: right; }

/* ── 메인 3단 ── */
.home-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
/* 세 칸의 바닥선을 맞춘다: 칸마다 마지막 상자가 남은 높이를 채운다 */
.home-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.home-col > .panel:last-child { flex: 1 1 auto; }
.recent-panel { display: flex; flex-direction: column; }
.recent-panel .recent:not([hidden]) { flex: 1 1 auto; display: flex; flex-direction: column; }
.recent-panel .recent > li.empty { margin: auto 0; }
.yt-panel .yt-grid { row-gap: 16px; }
.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.news .ic { color: var(--blue); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.news-list li:first-child { border-top: 0; }
.news-title { font-size: 15.5px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list time { color: var(--muted); font-size: 13px; flex: none; padding-top: 2px; font-variant-numeric: tabular-nums; }
.news-list.wide li { justify-content: flex-start; }
.news-list.wide .news-title { display: block; -webkit-line-clamp: unset; }
.news-src { display: block; margin-top: 2px; font-size: 12.5px; color: var(--faint); font-weight: 500; }
.news-provider { margin: 10px 0 0; font-size: 12px; }
.news-list.wide time { width: 54px; }

.recent-panel .panel-head .ic { color: var(--blue); }
.recent-panel .chips { margin-bottom: 8px; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li a { display: flex; align-items: flex-start; gap: 14px; padding: 15px 2px; border-top: 1px solid var(--line-soft); }
.recent li:first-child a { border-top: 0; }
.recent .badges { min-width: 52px; padding-top: 1px; }
.rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rt b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent time { color: var(--muted); font-size: 13px; flex: none; font-variant-numeric: tabular-nums; padding-top: 2px; }
.recent .is-hidden b { color: var(--muted); font-weight: 600; }

.channels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ch { display: flex; align-items: center; gap: 10px; padding: 12px 10px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; min-height: 66px; }
.ch:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.ch .ic:last-child { margin-left: auto; color: var(--faint); }
.ch.is-off { opacity: .55; cursor: not-allowed; }
.ch-mark { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.ch-mark.kakao { background: #fee500; color: #191919; font-size: 11px; letter-spacing: -0.02em; }
.ch-mark.insta { background: linear-gradient(135deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5); }
.ch-mark.tg { background: #2aabee; }
.ch-mark.yt { background: #ff0000; }
.ch-mark.yt .ic rect { fill: transparent; }
.ch-label { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; line-height: 1.3; word-break: keep-all; letter-spacing: -0.03em; }
.ch-label small { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.tg-ic { color: #2aabee; display: inline-flex; }
.yt-ic { color: #ff0000; display: inline-flex; }
.tg-list { list-style: none; margin: 0; padding: 0; }
.tg-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.tg-list li:first-child { border-top: 0; }
.tg-list a { display: flex; flex-direction: column; min-width: 0; }
.tg-title { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-sum { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-list time { color: var(--muted); font-size: 13px; flex: none; }
.yt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yt img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.yt-title { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt time { color: var(--muted); font-size: 12.5px; }

/* ── 추천게시판 ── */
.board-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.board-hero h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.board-hero p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.board-hero.green .g { color: var(--green); }
.board-hero.red .g { color: var(--red); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.blind-note { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--green-soft); color: var(--green-d); font-size: 14px; font-weight: 600; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.board-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.board.green .card-head .ic, .detail.green .rationale .ic { color: var(--green); }
.board.red .card-head .ic, .detail.red .rationale .ic { color: var(--red); }

.latest-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
.latest-coin {
  display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 12px; color: #fff;
  background: linear-gradient(160deg, #14532d, #0d3b21);
}
.latest.red .latest-coin { background: linear-gradient(160deg, #7f1d1d, #4c0f0f); }
.latest-coin:hover { color: #fff; }
.latest-coin .badge { background: rgba(255, 255, 255, .16); color: #fff; }
.coin-line { display: flex; align-items: center; gap: 12px; }
.coin-line b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; word-break: break-all; }
.latest-coin .go { margin-top: auto; font-size: 13px; opacity: .85; display: inline-flex; align-items: center; gap: 2px; }
.latest-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.price-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 8px; border-left: 1px solid var(--line); min-width: 0; }
.pc:first-child { border-left: 0; }
.pc span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pc.tp span { color: var(--blue); }
.pc.sl span { color: var(--red); }
.pc b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; line-height: 1.3; }
.pc b small { font-size: 14px; font-weight: 600; color: var(--muted); }
.pc.sl b { color: var(--red); }
.pct { font-size: 13px; font-weight: 600; }
.pct.up { color: var(--green); }
.pct.down { color: var(--red); }
.rationale { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.rationale h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.rationale ul { margin: 0; padding-left: 20px; }
.rationale li, .rationale p { margin: 3px 0; color: var(--ink-2); font-size: 14.5px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; vertical-align: middle; }
td.coin a, td.coin { display: flex; align-items: center; gap: 8px; }
.rec-table { font-size: 13.5px; }
.rec-table th, .rec-table td { padding-left: 7px; padding-right: 7px; }
.rec-table td.coin b { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
td.res { text-align: center; }
.rec-table th { white-space: normal; }
.rec-table td.wrap { white-space: normal; max-width: 160px; }
td.res form { display: block; margin-top: 4px; }
td.res .btn-xs { margin: 0; }
td.sum { max-width: 150px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
td.title { white-space: normal; font-weight: 600; width: 100%; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.is-hidden td { color: var(--muted); }
tr.is-hidden a { display: inline-flex; align-items: center; gap: 6px; }
tr.admin-blinded td { background: var(--surface-2); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; }
.pager .on { background: var(--blue); color: #fff; border-color: var(--blue); }

.guide { list-style: none; margin: 0; padding: 0; }
.guide li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.guide li:first-child { border-top: 0; }
.guide .num { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--green-soft); color: var(--green-d); }
.board.red .guide .num { background: var(--red-soft); color: var(--red); }
.guide p { margin: 3px 0 0; color: var(--ink-2); font-size: 14.5px; }
.side-recs { list-style: none; margin: 0; padding: 0; }
.side-recs a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.side-recs a .avatar { grid-row: span 2; }
.side-recs li:first-child a { border-top: 0; }
.sr-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sr-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-top time { flex: none; color: var(--faint); font-size: 12.5px; }
.sr-meta { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sr-meta .badge { height: 21px; padding: 0 7px; font-size: 11.5px; flex: none; }
.sr-meta .sum { flex: 1; min-width: 0; margin-left: 4px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 상세 ── */
.detail { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.detail-head { margin-bottom: 18px; }
.detail-title { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 6px; }
.detail .card > * + * { margin-top: 16px; }
.post-body { font-size: 16px; line-height: 1.8; color: var(--ink-2); white-space: normal; word-break: break-word; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); }
.notice-box p { margin: 4px 0 0; color: var(--muted); }
.notice-box a { color: var(--blue); font-weight: 600; }
.admin-panel { border-color: rgba(245, 165, 36, .35); background: #17140e; }
.admin-panel h2 { margin: 0 0 6px; font-size: 16px; color: var(--amber); }
.admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--surface-2); margin-left: 6px; }

/* ── 폼 ── */
.form-page { max-width: 820px; margin: 0 auto; }
.form-page.narrow { max-width: 440px; }
.form-page h1 { font-size: 28px; margin: 8px 0 18px; letter-spacing: -0.03em; }
.rec-form, .post-form { display: flex; flex-direction: column; gap: 16px; }
.row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: start; border: 0; margin: 0; padding: 0; }
.row > span, .row > legend { font-weight: 700; padding-top: 10px; font-size: 15px; }
fieldset.row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
fieldset.row legend { float: left; width: 110px; padding: 0; margin-right: 2px; }
.post-form .row { grid-template-columns: 1fr; gap: 6px; }
.post-form .row > span { padding-top: 0; }
input:not([type=checkbox]):not([type=radio]), textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { resize: vertical; line-height: 1.6; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.check.green input { accent-color: var(--green); }
.check.red input { accent-color: var(--red); }
.check.warn { font-weight: 500; color: var(--amber); align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.sub { display: flex; align-items: center; gap: 10px; }
.sub em { font-style: normal; width: 34px; color: var(--muted); font-weight: 600; }
.msg-preview { margin: 0; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; white-space: pre-wrap; word-break: break-word; min-height: 80px; }
.ok-box { background: var(--green-soft); color: var(--green-d); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-weight: 600; }
.form-sub { font-size: 17px; margin: 0 0 4px; }
.status-list { list-style: none; margin: 8px 0 0; padding: 0; }
.status-list li { display: flex; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.status-list li:first-child { border-top: 0; }
.status-list b { width: 130px; flex: none; }
.status-list span { color: var(--ink-2); word-break: break-all; }
.errors { background: var(--red-soft); color: #ff8a8f; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.errors p { margin: 2px 0; }
.msg-card h1 { font-size: 22px; margin: 0 0 8px; }
.msg-card p { color: var(--ink-2); }

/* ── 바닥글 ── */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-in { max-width: 1440px; margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.footer-logo b { font-size: 20px; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
.footer-logo small { color: var(--gold); font-weight: 600; font-size: 14px; }
.footer-copy { margin-left: auto; }

/* ── 좁은 화면 ── */
@media (max-width: 1280px) {
  .ticks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .home-grid .col-right { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .home-grid .col-right > .panel { flex: 1 1 0; }
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .board-grid .side { display: grid; grid-template-columns: 1fr 1fr; }
}
/* 메뉴가 8칸이라 1500px 아래 PC 는 [로고 · 계정] / [메뉴] 두 줄 */
@media (min-width: 1500px) and (max-width: 1700px) {
  .nav { margin-left: 8px; gap: 0; }
  .nav-item { padding: 0 12px; font-size: 16px; }
}
@media (min-width: 961px) and (max-width: 1499px) {
  .topbar-in {
    height: auto; padding: 0 24px; column-gap: 16px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo acct" "nav nav";
  }
  .logo { grid-area: logo; height: 66px; }
  .account, .guest { grid-area: acct; }
  .nav { grid-area: nav; margin: 0 -24px; padding: 0 12px; height: 52px; gap: 0; border-top: 1px solid var(--line-soft); justify-content: space-between; }
  .nav-item { padding: 0 12px; font-size: 15.5px; }
}

/* ── 태블릿·휴대폰 ── */
@media (max-width: 960px) {
  body { font-size: 14.5px; }
  /* 상단: [로고 · 계정] / [검색] / [메뉴 5칸]. 고정하지 않아 본문을 가리지 않는다 */
  .topbar { position: static; }
  .topbar-in {
    height: auto; padding: 10px 16px 0; gap: 10px 12px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo acct" "nav nav";
  }
  .logo { grid-area: logo; gap: 8px; }
  .logo svg { width: 34px; height: 34px; }
  .logo-text b { font-size: 22px; }
  .logo-text small { font-size: 13px; }
  .account, .guest { grid-area: acct; justify-self: end; }
  .guest { gap: 12px; }
  .signup-link { font-size: 13.5px; }
  .btn-login, .acct-btn { height: 38px; padding: 0 16px; font-size: 14px; }
  .nav {
    grid-area: nav; margin: 0 -16px; height: auto; gap: 0; border-top: 1px solid var(--line-soft);
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nav-item {
    flex-direction: column; justify-content: center; gap: 3px; padding: 9px 2px 8px; font-size: 12.5px; font-weight: 600;
    letter-spacing: -0.04em; text-align: center; min-width: 0;
  }
  .nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav-item .ic { width: 21px; height: 21px; }
  .nav-item:hover { background: none; }

  .page { padding: 14px 14px 36px; }
  .panel, .card { padding: 16px; border-radius: 12px; }
  .panel-head h2, .card-head h2 { font-size: 18px; gap: 8px; }
  .panel-head, .card-head { margin-bottom: 10px; flex-wrap: wrap; }

  /* 시세: 가로로 밀어 보는 한 줄 */
  .ticker { flex-direction: column; gap: 8px; margin: 0 -14px 16px; }
  .ticks {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 6px; scroll-snap-type: x proximity; scroll-padding-inline: 14px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .ticks::-webkit-scrollbar { display: none; }
  .tick { flex: none; width: 156px; padding: 11px 12px; scroll-snap-align: start; }
  .tick-name { font-size: 13px; }
  .tick-name .avatar { width: 22px !important; height: 22px !important; font-size: 11px !important; }
  .tick-price { font-size: 18px; }
  .chg { font-size: 12px; }
  .ticker-side { width: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 14px; flex-wrap: wrap; }
  .ticker-side .btn { width: auto; height: 36px; font-size: 13.5px; order: 2; }
  .ticker-side .provider { order: 1; }
  .ticker-side .feed-state { order: 3; width: 100%; margin-top: 0; }

  .board-grid .side { grid-template-columns: minmax(0, 1fr); display: grid; gap: 14px; }
  /* 휴대폰: 칸을 풀고 속보 → 최근 게시글 → 공식채널 → 텔레그램 → 유튜브 순 */
  .home-grid { display: flex; flex-direction: column; gap: 14px; }
  .home-col { display: contents; }
  .home-grid .news { order: 1; } .home-grid .recent-panel { order: 2; } .home-grid .ch-panel { order: 3; } .home-grid .tg-panel { order: 4; } .home-grid .yt-panel { order: 5; }
  .news-list li { padding: 11px 0; }
  .news-title { font-size: 15px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .recent li a { gap: 10px; padding: 13px 0; }
  .recent .badges { min-width: 0; flex-direction: column; align-items: flex-start; }
  .rt b { font-size: 15px; }
  .ch { min-height: 58px; padding: 10px 8px; gap: 8px; }
  .ch-mark { width: 36px; height: 36px; border-radius: 10px; }
  .ch-label { font-size: 13px; }
  .ch .ic:last-child { display: none; }

  /* 게시판 */
  .board-top { flex-direction: column; align-items: stretch; margin: 4px 0 14px; gap: 12px; }
  .board-top .btn { align-self: flex-start; }
  .board-hero h1 { font-size: 28px; }
  .board-hero p { font-size: 14px; }
  .filter-row { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 14px; }
  .chip.big { min-width: 0; height: 38px; padding: 0 16px; font-size: 14px; }
  .filter-row .chips { margin: 0 -14px; padding: 0 14px 2px; }

  /* 긴 제목은 잘라 겹치게 두지 말고 두 줄까지 감는다 */
  .rt b, .tg-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; line-height: 1.4; }
  .recent time, .tg-list time { padding-left: 4px; }
  .blind-note { height: auto; padding: 9px 12px; font-size: 13px; align-items: flex-start; line-height: 1.4; }
  .board-main { gap: 14px; }
  .latest-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .latest-coin { padding: 16px; gap: 10px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .latest-coin .coin-line { flex: 1 1 100%; order: 2; }
  .latest-coin .coin-line b { font-size: 22px; }
  .latest-coin .go { margin: 0 0 0 auto; order: 1; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc { border-left: 0; border-top: 1px solid var(--line); padding: 11px 6px; }
  .pc:nth-child(-n + 2) { border-top: 0; }
  .pc:nth-child(2n) { border-left: 1px solid var(--line); }
  .pc b { font-size: 17px; }
  .rationale { padding: 12px 14px; }

  /* 상세 */
  .detail { gap: 12px; }
  .detail-title { font-size: 22px; line-height: 1.3; flex-wrap: wrap; gap: 8px; }
  .detail .card > * + * { margin-top: 12px; }
  .post-body { font-size: 15px; }
  .admin-row { gap: 8px; }
  .talk-row { padding: 8px 0; border-top: 1px solid var(--line-soft); }

  /* 폼 */
  .form-page h1 { font-size: 24px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row > span { padding-top: 0; }
  fieldset.row legend { float: none; width: 100%; margin-bottom: 2px; }
  .btn-lg { width: 100%; }
  .status-list li { flex-direction: column; gap: 2px; }

  .footer-in { padding: 18px 16px; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
  .footer-copy { margin-left: 0; }
}

/* ── 휴대폰: 표를 카드로 ── */
@media (max-width: 760px) {
  .table-wrap { overflow: visible; }
  .rec-table thead, .post-table thead, .rec-table td.no, .post-table td.no { display: none; }
  .rec-table, .rec-table tbody, .post-table, .post-table tbody { display: block; }

  .rec-table tr {
    display: grid; grid-template-columns: minmax(0, max-content) 1fr auto; gap: 4px 8px; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  }
  .rec-table td { display: block; padding: 0; border: 0; white-space: normal; max-width: none; background: none !important; }
  .rec-table td.coin { grid-column: 1; grid-row: 1; display: flex; min-width: 0; }
  .rec-table td.coin a { min-width: 0; }
  .rec-table td.coin b { max-width: none; font-size: 15px; line-height: 1.35; }
  .rec-table td.kind { grid-column: 2; grid-row: 1; justify-self: start; }
  .rec-table td.res { grid-column: 3; grid-row: 1; text-align: right; }
  .rec-table tr.admin-blinded { background: var(--surface-2); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .rec-table td[data-label] { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; }
  .rec-table td[data-label]::before { content: attr(data-label); flex: none; width: 64px; color: var(--muted); }
  .rec-table td.wrap { max-width: none; }
  .rec-table td.sum { grid-column: 1 / -1; font-size: 13px; color: var(--muted); max-width: none; overflow: hidden; }
  .rec-table td.sum a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rec-table td.date { grid-column: 1 / -1; font-size: 12.5px; color: var(--faint); }
  .rec-table tr.is-hidden td.hidden-title { grid-column: 1 / -1; }
  .rec-table td.empty { grid-column: 1 / -1; }
  td.res form { display: block; margin: 4px 0 0; }

  .post-table tr { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .post-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .post-table td.date { font-size: 12.5px; color: var(--faint); }

  .quote-table th, .quote-table td { padding: 10px 6px; font-size: 13.5px; }
  .quote-table td.coin small { display: none; }
  .quote-table .chg { white-space: normal; }
}


/* ══ 이슈코인 추가 (2026-10-11) ══ */
body { background: radial-gradient(1200px 500px at 70% -200px, rgba(61, 139, 255, .08), transparent 70%), var(--bg); }
.topbar { background: rgba(13, 14, 18, .92); backdrop-filter: saturate(1.4) blur(10px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1b1404; }
.btn-gold:hover { background: #ffc94d; color: #1b1404; }
.hint { color: var(--muted); font-size: 13px; }
.src-line { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.src-line .feed-state { margin-top: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.na { color: var(--faint); font-size: 12.5px; }
.chg { white-space: nowrap; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); } .chg.flat { color: var(--muted); }

/* 보조자료 머리 · 하위 메뉴 */
.board-hero h1 .sub { color: var(--muted); font-weight: 700; font-size: .6em; margin-left: 6px; letter-spacing: -0.02em; }
.sub-nav { margin: 18px 0 10px; }
.sub-nav .chip, .coin-chips .chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; font-size: 14.5px; }
.coin-chips { margin: 0 0 14px; }
.aux .card + .card, .market .card + .card, .aux-grid + .card, .card + .aux-grid { margin-top: 16px; }
.aux-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.aux-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.aux-grid.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

/* 공통 자료 표 */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; }
.data-table th.num { text-align: right; }
.data-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table td.coin { white-space: nowrap; }
.data-table td.coin > .avatar, .data-table td.coin > .cn, .data-table td.coin > b { vertical-align: middle; }
.data-table td.coin > .avatar { margin-right: 8px; }
.data-table td.coin > .cn { display: inline-flex; }
.data-table td.no { color: var(--muted); width: 36px; }
.data-table .cn { display: flex; flex-direction: column; line-height: 1.25; }
.data-table .cn small { color: var(--muted); font-size: 12px; }
.kimp-table td.kimp .chg { font-weight: 800; font-size: 15px; }
.addr { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.addr:hover { color: var(--blue); }
.side { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 700; }
.side.long { color: var(--green); background: var(--green-soft); }
.side.short { color: var(--red); background: var(--red-soft); }

/* 고래: 코인별 롱·숏 막대 */
.bias { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bias li { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: "coin bar" "coin num"; gap: 4px 12px; align-items: center; }
.bias-coin { grid-area: coin; display: flex; align-items: center; gap: 8px; }
.bias-bar { grid-area: bar; display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.bias-bar i { display: block; height: 100%; }
.bias-bar i.l, .bias-num em.l::before { background: var(--green); }
.bias-bar i.s, .bias-num em.s::before { background: var(--red); }
.bias-num { grid-area: num; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.bias-num em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.bias-num em::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }

/* 알림 목록(고래·급등락·크립토퀀트) */
.ev-list, .mv-alerts, .cq-list, .mv-list, .liq-big { list-style: none; margin: 0; padding: 0; }
.ev-list li, .mv-alerts li { display: grid; grid-template-columns: 48px auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ev-list time, .mv-alerts time, .cq-list time, .liq-big time { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ev-type { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.ev-type.t-open { color: var(--gold); background: var(--gold-soft); }
.ev-type.t-close { color: var(--muted); }
.ev-type.t-flip { color: var(--violet); background: var(--violet-soft); }
.ev-body { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ev-body small { color: var(--muted); }
.mv-alerts li { grid-template-columns: 48px minmax(0, 1fr) auto; }
.mv-alerts .mv-what { text-align: right; white-space: nowrap; font-size: 13px; }
.mv-alerts .num { grid-column: 2 / -1; color: var(--muted); font-size: 12.5px; text-align: left; }
.mv-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.mv-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mv-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-name small { color: var(--muted); font-size: 12px; }
.mv-list .num { font-size: 13.5px; color: var(--ink-2); }
.up-ic { color: var(--up); font-size: 16px; } .down-ic { color: var(--down); font-size: 16px; }
.cq-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.cq-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cq-body b { font-size: 15px; word-break: break-word; }
.cq-body span { color: var(--muted); font-size: 13px; word-break: break-word; }
.cq-ko { font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold); }

/* 미결제 약정 카드 */
.oi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.oi-card { display: flex; flex-direction: column; gap: 6px; }
.oi-head { display: flex; align-items: center; gap: 8px; }
.oi-head b { font-size: 18px; }
.oi-head small { color: var(--muted); font-size: 12px; margin-left: auto; }
.oi-val { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.oi-sub { color: var(--muted); font-size: 13px; }
.oi-chg, .stat-row, .liq-total { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
.oi-chg div, .stat-row div, .liq-total div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.oi-chg dt, .stat-row dt, .liq-total dt { color: var(--muted); font-size: 12px; }
.oi-chg dd, .stat-row dd, .liq-total dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; word-break: keep-all; }

/* 선 그래프 */
.chart { display: block; width: 100%; height: 140px; margin-top: 4px; }
.oi-card .chart { height: 90px; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 2; }
.chart-area { fill: var(--blue-soft); }
.chart.alt .chart-line { stroke: var(--gold); }
.chart.alt .chart-area { fill: var(--gold-soft); }
.chart-cap { color: var(--faint); font-size: 12px; margin: 0; }
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.compare-grid > .card:first-child { grid-column: 1 / -1; }
.compare-grid .card > .empty { padding: 8px 0; text-align: left; }

/* 청산맵 */
.liq-total { margin: 0 0 16px; }
.liq-total .l dd { color: var(--liq-long); } .liq-total .s dd { color: var(--liq-short); }
.liq-total dd { font-size: 18px; }
.legend { gap: 12px; }
.legend em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.legend em::before, .lv-num em::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.legend em.l::before, .lv-num em.l::before { background: var(--liq-long); }
.legend em.s::before, .lv-num em.s::before { background: var(--liq-short); }
.liq-map { list-style: none; margin: 0; padding: 0; }
.liq-map li { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 8px; align-items: center; padding: 3px 0; font-size: 12.5px; }
.liq-map li.here { background: var(--surface-2); border-radius: 8px; outline: 1px dashed var(--line-strong); }
.lv-price { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.lv-price em { font-style: normal; color: var(--gold); font-size: 11px; font-weight: 700; }
.lv-bar { height: 14px; display: flex; }
.lv-bar.s { justify-content: flex-end; }
.lv-bar i { display: block; height: 100%; border-radius: 3px; min-width: 0; }
.lv-bar.s i { background: var(--liq-short); }
.lv-bar.l i { background: var(--liq-long); }
.lv-num { display: flex; flex-direction: column; gap: 1px; color: var(--ink-2); }
.lv-num em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.liq-big li { display: grid; grid-template-columns: 80px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.liq-big .side.long { color: var(--liq-long); background: rgba(249, 115, 22, .14); }
.liq-big .side.short { color: var(--liq-short); background: rgba(34, 211, 238, .12); }

/* 수익 마감 갤러리 */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.g-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(160deg, #1c1810, var(--surface) 55%); border: 1px solid rgba(245, 184, 46, .28); box-shadow: var(--shadow);
}
.g-card:hover { border-color: var(--gold); color: var(--ink); }
.g-stamp {
  align-self: flex-start; padding: 3px 10px; border: 2px solid var(--gold); border-radius: 8px; color: var(--gold);
  font-weight: 800; font-size: 13px; letter-spacing: .04em; transform: rotate(-4deg);
}
.g-stamp.big { font-size: 16px; padding: 4px 14px; }
.g-top { display: flex; gap: 6px; flex-wrap: wrap; }
.g-coin { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; word-break: break-word; }
.g-pct { font-size: 34px; font-weight: 900; color: var(--up); letter-spacing: -0.03em; line-height: 1.1; }
.g-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-top: 1px solid var(--line-soft); padding-top: 7px; }
.g-line small { color: var(--muted); font-size: 12.5px; flex: none; }
.g-foot { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; color: var(--faint); font-size: 12px; margin-top: 2px; }
.cert { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; border-color: rgba(245, 184, 46, .35);
  background: linear-gradient(160deg, #1d1810, var(--surface) 60%); }
.cert-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.cert-title { margin: 0; font-size: 30px; letter-spacing: -0.03em; line-height: 1.25; word-break: break-word; }
.cert-pct { margin: 0; font-size: 56px; font-weight: 900; color: var(--up); letter-spacing: -0.04em; line-height: 1; }
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0; }
.cert-grid div { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; min-width: 0; }
.cert-grid dt { color: var(--muted); font-size: 12.5px; }
.cert-grid dd { margin: 3px 0 0; font-weight: 700; word-break: break-word; }
.gallery-on { color: var(--gold); }
.close-row select { max-width: 100%; }

@media (max-width: 1280px) {
  .aux-grid.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .aux-grid.three > .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .board-hero h1 .sub { display: block; margin: 4px 0 0; font-size: 18px; }
  .sub-nav, .coin-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px 2px; }
  .sub-nav::-webkit-scrollbar, .coin-chips::-webkit-scrollbar { display: none; }
  .sub-nav .chip, .coin-chips .chip { flex: none; height: 36px; padding: 0 13px; font-size: 13.5px; }
  .aux-grid, .aux-grid.three, .aux-grid.wide-left, .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .aux-grid.three > .card:last-child { grid-column: auto; }
  .oi-val { font-size: 22px; }
  .cert-title { font-size: 22px; }
  .cert-pct { font-size: 44px; }
  .liq-map li { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr) 104px; gap: 6px; font-size: 11.5px; }
  .liq-big li { grid-template-columns: 70px auto minmax(0, 1fr); }
  .liq-big li b { grid-column: 3; justify-self: end; }
  .liq-big li .num:not(b) { display: none; }
}
@media (max-width: 760px) {
  /* 자료 표: 휴대폰에서는 카드 줄로 */
  .data-table thead { display: none; }
  .data-table, .data-table tbody { display: block; }
  .data-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
  .data-table td { display: block; padding: 0; border: 0; text-align: left; }
  .data-table td.num { text-align: right; }
  .data-table td.empty { grid-column: 1 / -1; text-align: center; }
  .kimp-table tr { grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; }
  .kimp-table td.no { width: auto; }
  .data-table td.coin { white-space: normal; min-width: 0; }
  .data-table .cn { min-width: 0; }
  .data-table .cn b { overflow-wrap: anywhere; line-height: 1.3; }
  .kimp-table td:nth-child(3), .kimp-table td:nth-child(4) { font-size: 12.5px; }
  .kimp-table td:nth-child(4) { display: none; }
  .whale-table tr { grid-template-columns: minmax(0, 1fr) auto auto; }
  .whale-table td:nth-child(n+4) { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); text-align: left; }
  .whale-table td:nth-child(4)::before { content: "진입가"; color: var(--muted); }
  .whale-table td:nth-child(5)::before { content: "청산가"; color: var(--muted); }
  .whale-table td:nth-child(6)::before { content: "미실현 손익"; color: var(--muted); }
  .whale-table td:nth-child(7)::before { content: "레버리지"; color: var(--muted); }
  .whale-table td:nth-child(8)::before { content: "고래"; color: var(--muted); }
  .whale-table td:nth-child(8) { align-items: center; }
  .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .g-grid { grid-template-columns: minmax(0, 1fr); }
  .oi-chg dd, .stat-row dd { font-size: 13px; }
}

/* ── 고래 이름·픽셀 캐릭터 (2026-10-11) ── */
.px-whale { display: block; flex: none; image-rendering: pixelated; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.who-name b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.dex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dex-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 12px; text-align: center;
  background: linear-gradient(180deg, #161a24, var(--surface-2)); border: 1px solid var(--line); border-radius: 12px; min-width: 0;
}
.dex-card:nth-child(-n+3) { border-color: rgba(245, 184, 46, .45); }
.dex-rank { position: absolute; top: 8px; left: 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.dex-card:nth-child(-n+3) .dex-rank { color: var(--gold); }
.dex-px { padding: 6px 0 2px; }
.dex-name { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dex-val { font-size: 12.5px; color: var(--ink-2); }
.dex-pos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; font-size: 12px; }
.dex-pos em { font-style: normal; }
.dex-pos em.l { color: var(--green); } .dex-pos em.s { color: var(--red); }
.dex-top { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.ev-body .px-whale { align-self: center; }
.ev-who { color: var(--ink-2); font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-src { font-style: normal; font-size: 11.5px; color: var(--faint); }
.sec-title { font-size: 17px; margin: 22px 0 10px; color: var(--ink-2); letter-spacing: -0.02em; }

/* 예상 청산 히트맵: 위 숏 · 현재가 · 아래 롱 */
.stat-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-map { list-style: none; margin: 8px 0 0; padding: 0; }
.hm-map li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 132px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; }
.hm-map .lv-price em { color: var(--muted); font-weight: 500; }
.hm-bar { height: 16px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hm-bar i { display: block; height: 100%; border-radius: 4px; }
.hm-map li.short .hm-bar i { background: linear-gradient(90deg, rgba(34, 211, 238, .45), var(--liq-short)); }
.hm-map li.long .hm-bar i { background: linear-gradient(90deg, rgba(249, 115, 22, .45), var(--liq-long)); }
.hm-map .lv-num small { color: var(--faint); font-size: 11.5px; }
.hm-map li.spot { grid-template-columns: 110px minmax(0, 1fr); margin: 4px 0; }
.hm-map li.spot .lv-price { color: var(--gold); font-weight: 800; }
.spot-line { border-top: 2px dashed var(--gold); color: var(--gold); font-size: 12px; font-weight: 700; padding-top: 2px; text-align: right; }

@media (max-width: 960px) {
  .stat-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-map li { grid-template-columns: 84px minmax(0, 1fr) 96px; gap: 6px; font-size: 12px; }
  .hm-map li.spot { grid-template-columns: 84px minmax(0, 1fr); }
  .dex { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 760px) {
  .cash-table tr { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .cash-table td:nth-child(n+4) { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
  .cash-table td:nth-child(4)::before { content: "스테이블코인"; color: var(--muted); }
  .cash-table td:nth-child(5)::before { content: "전체(자체코인 제외)"; color: var(--muted); }
  .whale-table .who-name b { max-width: 150px; }
}
.nm-kind { font-size: 10.5px; font-weight: 700; color: var(--faint); letter-spacing: 0; }
.nm-kind.k-owner { color: var(--gold); }
.nm-kind.k-alias { color: var(--violet); }

/* ── 청산 히트맵 그래프(노란 단무지) · 미결제 약정 거래소별 (2026-10-11) ── */
.hc { margin-top: 12px; }
.hc-main { display: grid; grid-template-columns: 62px minmax(0, 1fr) 84px; gap: 0 6px; }
.hc-y { grid-column: 1; grid-row: 1; position: relative; }
.hc-plot { grid-column: 2; grid-row: 1; position: relative; height: 380px; border-radius: 10px; overflow: hidden; }
.hc-side { grid-column: 3; grid-row: 1; position: relative; height: 380px; border-radius: 8px; overflow: hidden; }
.hc-plot svg, .hc-side svg { display: block; width: 100%; height: 100%; }
.hc-price { fill: none; stroke: #f4f4f5; stroke-width: 1.6; opacity: .92; }
.hc-spot { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 5 4; }
.hc-y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-y span:first-child { transform: none; }
.hc-y span:last-child { transform: translateY(-100%); }
.hc-now { position: absolute; right: 6px; transform: translateY(-50%); background: var(--gold); color: #1b1404; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.hc-tag { position: absolute; right: 3px; transform: translateY(-50%); font-size: 10.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.hc-x { position: relative; height: 18px; margin: 4px 90px 0 68px; }
.hc-x span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.hc-x span:first-child { transform: none; }
.hc-x span:last-child { transform: translateX(-100%); }
.hc-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.hc-legend i { display: block; width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2d0f4f, #3b4b8c, #1f9e89, #6ece58, #fde725); }
.hc-legend small { color: var(--faint); flex-basis: 100%; }
.hc.small .hc-plot, .hc.small .hc-side { height: 220px; }
.oi-ex { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; font-size: 12.5px; }
.oi-ex li { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); }
.oi-ex b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) {
  .hc-main { grid-template-columns: 50px minmax(0, 1fr) 56px; gap: 0 4px; }
  .hc-plot, .hc-side { height: 280px; }
  .hc.small .hc-plot, .hc.small .hc-side { height: 200px; }
  .hc-x { margin: 4px 60px 0 54px; }
  .hc-x span:nth-child(even) { display: none; }
  .hc-y span, .hc-x span { font-size: 10px; }
  .hc-tag { font-size: 9.5px; }
}

/* ── 메인: 시세·김프 / 보조자료 / 수익 갤러리 묶음 (2026-10-11) ── */
.dash { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.dash-row { display: grid; gap: 16px; align-items: stretch; }
.dash-row.two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.dash-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-row > .panel { min-width: 0; }
.dash-title { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.dash-title .more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 6px; border-bottom: 1px solid var(--line); }
.mini-table th.num { text-align: right; }
.mini-table td { padding: 7px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.mini-table .coin-in { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mini-table .cn { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mini-table .cn b { overflow-wrap: anywhere; }
.mini-table .cn small { color: var(--muted); font-size: 11.5px; }
.mini-table td.kimp .chg { font-weight: 800; }
.mini-h { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.mini-h.up { color: var(--up); } .mini-h.down { color: var(--down); }
.mv-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.mv-two .mini-h { margin-top: 0; }
.mv-mini, .mv-alert-mini, .dw-list { list-style: none; margin: 0; padding: 0; }
.mv-mini li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.mv-alert-mini li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.mv-alert-mini time { color: var(--faint); font-size: 12px; }
.mv-alert-mini b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty.sm { padding: 8px 0; font-size: 13px; }
.dw-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "px name" "px pos"; gap: 0 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.dw-list .px-whale { grid-area: px; }
.dw-name { grid-area: name; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.dw-name b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-pos { grid-area: pos; display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.dw-pos em { font-style: normal; } .dw-pos em.l { color: var(--green); } .dw-pos em.s { color: var(--red); }
.ev-list.mini li { padding: 8px 0; font-size: 13px; }
.oi-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.oi-mini { background: var(--surface-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oi-mini .oi-val { font-size: 20px; }
.oi-mini .oi-chg { grid-template-columns: 1fr 1fr; margin: 4px 0; }
.oi-mini .oi-chg div { background: var(--surface); padding: 6px 8px; }
.oi-mini .chart { height: 56px; }
.cash-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cash-big b { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.cash-big small { color: var(--muted); font-size: 12px; }
.cash-big + .chart { height: 90px; }
.cq-list.mini li { grid-template-columns: 46px minmax(0, 1fr); padding: 9px 0; }
.cq-list.mini .cq-body b { font-size: 13.5px; }
.cq-list.mini .cq-body span { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash-g { margin-top: 0; }
.dash .hc { margin-top: 4px; }
@media (max-width: 1280px) {
  .dash-row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .dash-row.two, .dash-row.three { grid-template-columns: minmax(0, 1fr); }
  .dash { gap: 14px; margin-top: 14px; }
  .dash-title { font-size: 19px; }
}
@media (max-width: 480px) {
  .mini-table .hide-s { display: none; }
  .mini-table td, .mini-table th { padding: 7px 4px; }
  .cash-big b { font-size: 28px; }
}
.mv-alert-mini li > span { white-space: nowrap; font-size: 12.5px; }
