/* 코인마을 — 화이트 기반, 블루 포인트, 그린·레드는 등급 구분색 */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --line: #e7ebf3;
  --line-soft: #f0f3f8;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --blue: #1f6feb;
  --blue-d: #1a5fd1;
  --blue-soft: #eaf2ff;
  --green: #16a34a;
  --green-d: #0f7a37;
  --green-soft: #e9f8ee;
  --red: #e5383b;
  --red-soft: #fdecec;
  --amber: #b45309;
  --amber-soft: #fff4e0;
  --up: #e5383b;
  --down: #1f6feb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .04);
}
* { 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.05; }
.logo-text b { font-size: 27px; font-weight: 800; letter-spacing: -0.04em; color: #0b1324; }
.logo-text small { font-size: 16px; font-weight: 600; color: var(--blue); 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: #4b5563; }
.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); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 10px; width: 330px; min-width: 200px; flex-shrink: 1; height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; color: var(--muted);
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; color: var(--ink); }
.account { display: flex; align-items: center; gap: 10px; flex: none; }
.who { font-size: 14px; color: var(--ink-2); }
.who em { font-style: normal; font-size: 12px; color: var(--blue); background: var(--blue-soft); padding: 3px 9px; border-radius: 99px; }
.acct-links { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.acct-links a:hover { color: var(--blue); }
.account .btn { height: 36px; padding: 0 12px; }

/* ── 버튼·칩·배지 ── */
.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: #cfd6e3; 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; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--red); }
.btn-warn { color: var(--amber); border-color: #f3d19c; 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: #eef0ff; color: #4f46e5; }
.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: #f1ecff; color: #6d3fd6; }
.b-blind { background: #f3f4f6; 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: #f3f4f6; }

/* ── 시세 줄 ── */
.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; }

/* ── 메인 3단 ── */
.home-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.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 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: #cfd6e3; color: var(--ink); background: #fbfcfe; }
.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: #e5e7eb; }
.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: #fbfcfe; }
.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: #f8fafc; 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: #fafafa; }
.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: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.side-recs li:first-child a { border-top: 0; }
.side-recs b { min-width: 0; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-recs .sum { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-recs time { color: var(--faint); font-size: 12.5px; }

/* ── 상세 ── */
.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: #f3f4f6; 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: #f3d19c; background: #fffdf8; }
.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: #fff; 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: #fff; 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: #f8fafc; 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: #b42318; 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(--blue); 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 .side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .board-grid .side { display: grid; grid-template-columns: 1fr 1fr; }
  .search { width: 240px; }
}
@media (max-width: 960px) {
  .topbar-in { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; height: 48px; }
  .search { width: auto; flex: 1; min-width: 160px; }
  .page { padding: 16px 16px 40px; }
  .ticker { flex-direction: column; }
  .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticker-side { width: 100%; align-items: stretch; }
  .home-grid, .home-grid .side, .board-grid .side { grid-template-columns: minmax(0, 1fr); display: grid; }
  .latest-body { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc { border-left: 0; border-top: 1px solid var(--line); }
  .board-hero h1 { font-size: 30px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row > span { padding-top: 0; }
}
