/* 디자인 기준: web/레이아웃/첫 화면 · 업로드-html/Main.dc.html
   배경은 항상 흰색(다크 모드 없음). 포인트 색은 초록 한 가지. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #F5F7F9;
  --border: #E5E8EB;
  --border-soft: #EEF0F2;
  --dash: #C5CCD3;
  --text: #191F28;
  --text-2: #4E5968;
  --text-3: #6B7684;
  --brand: #117A65;
  --brand-hover: #0D6655;
  --brand-soft: #E8F4F0;
  --brand-tint: #F7FBFA;
  --note-bg: #FFF6E5;
  --note-ink: #6B4700;
  --ink: #191F28;
  --ink-text: #ffffff;
  /* 선물 거래 관례: 이익 = 초록, 손실 = 빨강. 흰 배경에서 글자로 써도 4.5:1 이상 */
  --gain: #16A34A;
  --loss: #d93636;
  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 26px; line-height: 1.4; }
h3 { font-size: 18px; line-height: 1.4; }
p { margin: 0; }
a { color: var(--text); }
a:hover { color: var(--brand); }
em { font-style: normal; color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* 상단 바 */
.topbar { border-bottom: 1px solid var(--border-soft); background: var(--bg); }
.topbar-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* 로고: logo/cointax-logo.svg를 그대로 옮긴 것. 글자는 웹 글꼴로 써야 작은 크기에서도 또렷하고(도형 글자는 번진다),
   모자(logo/cointax-hat.svg)는 원본 좌표 그대로 '코' 위에 얹는다. 위치 값은 원본 SVG의 1em=1000단위에서 환산했다. */
.brand { position: relative; display: inline-block; padding-top: .29em; font-size: 22px; font-weight: 800; letter-spacing: -0.055em; line-height: 1; color: var(--text); text-decoration: none; }
.brand-hat { position: absolute; left: -.032em; top: .006em; width: .902em; height: auto; display: block; }
.brand:hover { color: var(--text); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; font-weight: 700; padding: 0 28px; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-disabled { background: var(--surface-2); color: var(--text-3); border-color: var(--border); opacity: 1 !important; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; display: inline-grid; place-items: center;
}
.icon-btn:hover { background: var(--surface-2); }

/* ① 카드뉴스 */
.hero { padding: 48px 0 56px; }
.slider { position: relative; border-radius: 20px; background: var(--surface-2); padding: 64px clamp(24px, 5vw, 56px) 32px; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide h1, .slide h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.4; letter-spacing: -0.025em; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--text-3); }
.lead { margin-top: 16px; font-size: 18px; color: var(--text-2); }
.slider-ctrl { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 6px; align-items: center; }
.dots button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dots button span { display: block; height: 8px; width: 8px; border-radius: 4px; background: var(--dash); transition: width .2s ease; }
.dots button.is-active span { width: 24px; background: var(--text); }
.arrows { display: flex; gap: 8px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* 섹션 */
.section { padding: 64px 0 80px; }
.section-alt { background: var(--surface-2); padding: 72px 0; }
.section-head p { margin-top: 8px; }
.section-head.center { text-align: center; }

/* ③ 업로드 */
#upload { padding: 40px 0 72px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 320px; padding: 40px 20px; text-align: center;
  background: var(--surface); border: 1.5px dashed var(--dash); border-radius: 20px;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-tint); }
.drop-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.drop-title { margin-top: 4px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; letter-spacing: -0.02em; }
.drop-sub { font-size: 15px; color: var(--text-3); }
.drop-btn { margin-top: 8px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--ink); color: var(--ink-text); font-size: 15px; font-weight: 500; cursor: pointer; }
.drop-btn:hover { background: #000; }
.secure { margin-top: 16px; text-align: center; font-size: 15px; font-weight: 500; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.secure svg { color: var(--brand); }
.disclaimer { margin-top: 8px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ④ 체크리스트 */
.checklist, .progress { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.checklist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.checklist-head .muted { font-size: 14px; color: var(--text-3); }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 14px; background: var(--surface-2); color: var(--text-3); }
.chip.is-on { background: var(--brand-soft); color: var(--brand-hover); font-weight: 500; }
.warn { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--note-bg); color: var(--note-ink); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.warn svg { flex-shrink: 0; margin-top: 3px; }
.warn[hidden] { display: none; }
.file-list { list-style: none; margin: 18px 0 0; padding: 0; font-size: 15px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.file-list .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-list .fex { flex-shrink: 0; color: var(--text-2); }
.file-list .fex.bad { color: var(--critical); }
.fside { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.flock { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 13px; background: var(--note-bg); color: var(--note-ink); }
.flock.is-ok { background: var(--brand-soft); color: var(--brand-hover); }
.frm { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.frm:hover { background: var(--surface-2); color: var(--text); }

/* 잠긴 PDF: 비밀번호 입력 + 비밀번호 없이 올리는 법을 한 화면에 */
.locked { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.locked[hidden] { display: none; }
.locked-head { display: flex; align-items: center; gap: 8px; color: var(--brand); }
.locked-head h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.locked-cols { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.locked-col { padding: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.locked-col h5 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.pw-form + .pw-form { margin-top: 14px; }
.pw-label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.pw-row { display: flex; gap: 8px; }
.pw-input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); }
.pw-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.pw-btn { min-height: 48px; padding: 0 18px; font-size: 15px; }
.pw-done { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--brand-hover); }
.pw-trust { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.pw-trust strong { font-weight: 700; color: var(--text-2); }
.pw-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }

.checklist-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.convert-hint { margin-right: auto; font-size: 14px; color: var(--note-ink); }
.convert-hint[hidden] { display: none; }
.checklist-foot .btn { min-height: 48px; font-size: 15px; }

/* ⑥ 진행 */
.steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; font-size: 15px; }
.steps li { color: var(--text-3); padding-left: 28px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); }
.steps li.is-doing { color: var(--text); font-weight: 500; }
.steps li.is-doing::before { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.is-done { color: var(--text-2); }
.steps li.is-done::before { border-color: var(--brand); background: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--brand); transition: width .3s ease; }

/* ⑤ 거래소 바로가기: 원형 아이콘 + 아래 이름 */
.ex-shortcuts { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 12px; }
.ex-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 112px; padding: 14px 0; border: 0; border-radius: 14px; background: transparent;
  font: inherit; color: var(--text); text-decoration: none; cursor: pointer;
}
.ex-item:hover { background: var(--surface-2); color: var(--text); }
.ex-circle { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.ex-name { font-size: 14px; color: var(--text-2); }
/* 로고 대신 영문 이름. 바탕·글자·테두리 색은 거래소 로고 이미지에서 뽑은 값(--bg, --fg, --ring) */
.ex-badge { font-weight: 700; letter-spacing: .03em; color: var(--fg); background: var(--bg); border: 1.5px solid var(--ring); }
.ex-circle.ex-badge { font-size: 9.5px; }
.ex-badge.has-ring { border-width: 3px; }
.ex-mini.has-ring { border-width: 2.5px; }
.ex-item:hover .ex-circle.ex-badge { background: var(--bg); }
.ex-row .ex-mini { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 7.5px; color: var(--fg); grid-row: span 2; }

/* 모달 */
.modal { width: min(520px, calc(100% - 32px)); max-height: 80vh; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); }
.modal::backdrop { background: rgba(25, 31, 40, .4); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.search { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; font: inherit; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.ex-list { margin-top: 12px; display: grid; gap: 4px; }
.ex-row { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; }
.ex-row:hover { background: var(--surface-2); color: var(--text); }
.ex-row .ex-row b { font-size: 15px; font-weight: 500; }
.ex-row span { font-size: 13px; color: var(--text-3); }

/* 툴팁 */
.tooltip { position: fixed; z-index: 50; max-width: 280px; pointer-events: none; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: var(--ink); color: var(--ink-text); }
.tooltip b { display: block; margin-bottom: 2px; font-weight: 700; }

/* ⑦ 대시보드: 정보는 다 보여주되 두 칸 격자로 촘촘하게 */
#dashboard { padding: 40px 0 56px; }
.dash-banner { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: var(--surface-2); color: var(--text-2); }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.dash-head h2 { font-size: 22px; }
.year-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 10px; }
.year-tabs button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 7px; cursor: pointer; }
.year-tabs button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.year-tabs button[disabled] { cursor: not-allowed; opacity: .5; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; align-items: stretch; }
.dash-head + .dash-grid { margin-top: 0; }
.dash-grid.wide-left { grid-template-columns: 1.6fr 1fr; }
.dash-stack { display: grid; gap: 12px; align-content: start; }
.card { border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.card h3 { font-size: 15px; }
.card-sub { font-size: 12.5px; margin-top: 2px; }
.tag { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 500; color: var(--text-2); background: var(--surface-2); }
.big-num { display: block; margin-top: 6px; font-size: 22px; font-variant-numeric: tabular-nums; }

.tier-card { display: flex; flex-direction: column; padding: 18px 20px; border-radius: 14px; background: #000; color: var(--ink-text); }
.tier-top { display: flex; align-items: center; gap: 12px; }
/* 레벨 배지: LV + 큰 숫자 + 최대 레벨 */
.lv-badge { flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px; border: 1.5px solid #fff; display: grid; place-items: center; align-content: center; gap: 3px; line-height: 1; }
.lv-badge small { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.lv-badge b { font-size: 22px; font-weight: 800; color: #4FD1A5; }
.lv-num { display: flex; align-items: baseline; }
.lv-badge span { margin-left: 1px; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55); }
.tier-card .eyebrow { margin: 0; font-size: 12px; color: rgba(255,255,255,.6); }
.tier-name { font-size: 17px; line-height: 1.4; }
.tier-amount { margin-top: 8px; font-size: 16px; font-weight: 700; }
.tier-amount.is-hidden { letter-spacing: .08em; }
.fun { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.fun li { padding: 2px 8px; border-radius: 6px; font-size: 12px; background: rgba(255,255,255,.12); }
.tier-share { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.tier-share .btn { min-height: 30px; padding: 0 10px; font-size: 12px; background: transparent; color: var(--ink-text); border-color: rgba(255,255,255,.3); }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; margin-right: auto; }
.switch input { accent-color: var(--brand); width: 14px; height: 14px; }

.summary { display: flex; flex-direction: column; }
.kpi-label { font-size: 13px; color: var(--text-2); }
.kpi-hero { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.3; }
.kpi-sub { font-size: 12px; color: var(--text-3); }
.kpi-row { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border-soft); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi-row dt { font-size: 12px; color: var(--text-3); }
.kpi-row dd { margin: 2px 0 0; }
.kpi-value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.quality { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.qbadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; text-decoration: none; color: var(--text); background: var(--surface-2); }
.qbadge .dot { width: 7px; height: 7px; border-radius: 50%; }
.qbadge:hover { background: var(--border); color: var(--text); }

/* 손익 막대(가운데 0 기준) */
.dbars { margin-top: 10px; display: grid; gap: 2px; }
.dbar { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 8px; padding: 2px 0; border-radius: 6px; }
.dbar:hover { background: var(--surface-2); }
.dbar-label { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbar-track { position: relative; height: 22px; }
.dbar-track::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--border); }
.dbar-fill { position: absolute; top: 5px; height: 12px; }
.dbar-fill.pos { left: 50%; background: var(--gain); border-radius: 0 3px 3px 0; }
.dbar-fill.neg { right: 50%; background: var(--loss); border-radius: 3px 0 0 3px; }
.dbar-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dbar-legend { display: flex; gap: 12px; justify-content: flex-end; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.dbar-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

.table-wrap { overflow-x: auto; margin-top: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl th { font-size: 12px; color: var(--text-3); font-weight: 500; }
.tbl tbody tr:last-child td { border-bottom: 0; }
/* 코인이 많을 때: 처음엔 몇 줄만, 펼치면 높이를 고정하고 안에서 스크롤(제목 줄은 고정) */
.tbl tr.is-extra { display: none; }
.table-wrap.is-open { max-height: 340px; overflow-y: auto; }
.table-wrap.is-open .tbl tr.is-extra { display: table-row; }
.table-wrap.is-open thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.more-rows { display: block; width: 100%; margin-top: 8px; padding: 8px 0; border: 0; border-top: 1px solid var(--border-soft); background: none; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; }
.more-rows:hover { color: var(--text); }
.more-rows[hidden] { display: none; }
.up { color: var(--gain); font-weight: 700; }
.down { color: var(--loss); font-weight: 700; }

.deemed-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border-soft); font-size: 13px; }
.deemed-row:first-child { margin-top: 6px; border-top: 0; }
.deemed-row b { font-size: 13px; }
.pill { font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); }

.flag-group { border-top: 1px solid var(--border-soft); }
.flag-group:first-child { margin-top: 8px; }
.flag-group summary { display: flex; align-items: center; gap: 8px; padding: 9px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; }
.flag-group summary::-webkit-details-marker { display: none; }
.flag-group summary .count { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.flag-group summary::after { content: "›"; color: var(--text-3); transition: transform .15s ease; }
.flag-group[open] summary::after { transform: rotate(90deg); }
.flag-group ul { margin: 0 0 10px; padding-left: 24px; font-size: 13px; color: var(--text-2); display: grid; gap: 3px; }
.flag-group code { font-size: 11px; color: var(--text-3); }
.flag-fix { margin: 0 0 8px 24px; font-size: 13px; color: var(--text-2); }
.empty-ok { margin-top: 8px; font-size: 13px; color: var(--text-2); }

/* 통합 엑셀 띠: 요약 바로 아래 폭 전체. 비활성이지만 무엇을 주는지와 언제 열리는지가 보이게 */
.export-bar { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 16px 20px; border-radius: 14px; background: var(--brand-soft); border: 1px solid #CFE7DF; }
.export-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--brand); }
.export-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.export-text strong { font-size: 16px; }
.export-text span { font-size: 13px; color: var(--text-2); }
.export-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--ink); color: var(--ink-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.export-btn:hover { background: #000; }
/* 샘플 결과나 만드는 중에는 일반 비활성 버튼처럼 */
.export-btn:disabled { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); cursor: default; }
.export-text b { color: var(--text); font-weight: 700; }
.dash-full { margin-top: 12px; }
.files-used { margin-top: 14px; font-size: 12px; text-align: center; }

/* 계산 방식 */
.method-list { margin: 24px 0 0; display: grid; gap: 14px; }
.method-list div { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.method-list dt { flex: 0 0 96px; font-weight: 700; }
.method-list dd { margin: 0; flex: 1 1 420px; color: var(--text-2); }
.method-note { margin-top: 20px; font-size: 14px; color: var(--text-3); }

/* ⑧ 하단 */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--border-soft); text-align: center; }
.ad-slot { min-height: 90px; display: grid; place-items: center; border: 1px dashed #D5DAE0; border-radius: 14px; font-size: 13px; color: var(--text-3); }
.footer .disclaimer { margin-top: 8px; }

/* 광고 자리. 애드센스 승인 전에는 숨긴다. index.html의 <body>에 class="ads-on"을 붙이면 켜진다.
   켜지면 광고가 늦게 떠도 화면이 밀리지 않도록 높이를 미리 잡아 둔다. */
.ad-band, .ad-side { display: none; }
.ads-on .ad-band { display: block; padding-bottom: 64px; }
.ads-on .ad-band + #dashboard { padding-top: 0; }  /* 결과가 뜨면 광고 바로 아래에 붙인다 */
@media (min-width: 1500px) and (min-height: 720px) {
  .ads-on .ad-side {
    display: grid; place-items: center; text-align: center;
    position: fixed; top: 84px;
    width: 160px; height: 600px;
    border: 1px dashed #D5DAE0; border-radius: 14px; font-size: 13px; color: var(--text-3); background: var(--bg);
  }
  .ad-left { left: 24px; }
  .ad-right { right: 24px; }
}
.footer .disclaimer:first-of-type { margin-top: 0; }
.footer-brand { margin-bottom: 16px; }
.footer-brand { font-size: 18px; }

/* 반응형 */
@media (max-width: 860px) {
  .dash-grid, .dash-grid.wide-left { grid-template-columns: 1fr; }
  .export-bar { flex-wrap: wrap; }
  .export-btn { width: 100%; justify-content: center; }
  .locked-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h2 { font-size: 22px; }
  .hero { padding-top: 24px; }
  .lead { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .ex-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .ex-item { width: auto; }
  .kpi-hero { font-size: 24px; }
  .card, .tier-card { padding: 16px; }
}

/* 계산 오류·비밀번호 틀림 안내 */
.convert-error { width: 100%; margin: 0 0 4px; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: #FDECEC; color: #A42626; }
.convert-error[hidden] { display: none; }
.pw-wrong { margin-top: 8px; font-size: 14px; color: #A42626; }
#progressNote { margin-top: 8px; }

/* 상단 바: 지원 거래소 원 묶음 */
.ex-stack { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; }
.ex-stack:hover { background: var(--surface-2); }
.ex-stack b { color: var(--text); font-weight: 700; }
.ex-stack-dots { display: flex; }
.ex-stack-dots i { width: 24px; height: 24px; margin-left: -7px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; font-style: normal; }
.ex-stack-dots i:first-child { margin-left: 0; }
.file-list .fex.pending { color: var(--text-3); }
#fileProtocolNote { margin-top: 16px; text-align: center; }
.fun[hidden] { display: none; }

/* 하단 문서 링크 */
.footer-links { display: flex; justify-content: center; gap: 4px 18px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-links b { font-weight: 700; color: var(--text); }
.method-note a { color: var(--brand); }

/* 안내 문서 페이지(계산 방식·이용약관·개인정보 처리방침) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc .back { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.doc .back:hover { color: var(--text); }
.doc h1 { font-size: 28px; line-height: 1.35; }
.doc .updated { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.doc .lead { margin-top: 16px; font-size: 16px; color: var(--text-2); }
.doc h2 { margin-top: 40px; font-size: 20px; }
.doc h3 { margin-top: 20px; font-size: 16px; }
.doc p, .doc li { font-size: 15px; color: var(--text-2); }
.doc p { margin-top: 10px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.doc b { color: var(--text); }
.doc a { color: var(--brand); }
.doc table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; color: var(--text-2); }
.doc th { width: 30%; color: var(--text); font-weight: 500; background: var(--surface-2); }
.doc .note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.doc .todo { padding: 1px 6px; border-radius: 5px; background: #FFF1C2; color: #6B4700; font-weight: 700; }
.doc-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--text-3); }
