:root {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #e6e8ec;
  --muted: #9aa3b2;
  --accent: #ff4655;
  --border: #262b36;
  --link: #ff6b78;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #1c2128;
    --muted: #5b6472;
    --accent: #ff4655;
    --border: #e3e6ea;
    --link: #d81f2f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
header.site {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--border);
}
header.site .logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 20px; flex: none;
  object-fit: cover; border: 1px solid var(--border); overflow: hidden;
}
header.site h1 { font-size: 18px; margin: 0; }
header.site p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
h2.title { font-size: 26px; margin: 8px 0 4px; }
.eff { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 26px; margin-bottom: 18px;
}
h3 { font-size: 17px; margin: 0 0 10px; }
section { margin-bottom: 26px; }
section:last-child { margin-bottom: 0; }
p { margin: 0 0 10px; }
ul { margin: 0 0 10px; padding-left: 20px; }
li { margin-bottom: 6px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 14px;
}
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn:hover { text-decoration: none; opacity: .92; }
footer.site {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 12.5px;
}
footer.site .footmark {
  width: 18px; height: 18px; border-radius: 6px; object-fit: cover;
  vertical-align: -4px; margin-right: 7px; border: 1px solid var(--border);
}
.disclaimer {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--muted);
}
.back { display: inline-block; margin-bottom: 18px; font-size: 13px; }

/* ── 설명서(가이드) 전용 ───────────────────────────────────────────── */
.hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; margin-bottom: 18px;
}
.hero img.mark {
  width: 96px; height: 96px; border-radius: 20px; object-fit: cover;
  border: 1px solid var(--border); flex: none;
}
.hero .who { min-width: 240px; flex: 1; }
.hero h2 { font-size: 24px; margin: 0 0 6px; }
.hero p { color: var(--muted); margin: 0; font-size: 14px; }

nav.toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px;
}
nav.toc a {
  font-size: 13px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
}
nav.toc a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

h3 .num {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 7px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; margin-right: 8px; vertical-align: 1px;
}
code {
  background: color-mix(in srgb, var(--text) 9%, transparent);
  border-radius: 6px; padding: 1px 6px; font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.cmdlist { list-style: none; padding: 0; margin: 0; }
.cmdlist li {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px dashed var(--border); margin: 0;
}
.cmdlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.cmdlist .name { flex: none; min-width: 132px; font-weight: 700; }
.cmdlist .desc { flex: 1; min-width: 200px; color: var(--muted); font-size: 14px; }
.need {
  flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--muted);
}
.need.login { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps > li {
  counter-increment: s; position: relative; padding-left: 38px; margin-bottom: 16px;
}
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); font-weight: 800; font-size: 13px;
}
ol.steps strong { display: block; margin-bottom: 2px; }
ol.steps p { color: var(--muted); font-size: 14px; margin: 0; }

.note {
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  padding: 12px 14px; font-size: 13.5px; color: var(--muted); margin: 14px 0 0;
}
.note strong { color: var(--text); }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tile {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
.tile h4 { margin: 0 0 6px; font-size: 14px; }
.tile p { margin: 0; font-size: 13.5px; color: var(--muted); }

details.faq {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 10px; background: color-mix(in srgb, var(--text) 3%, transparent);
}
details.faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
details.faq summary::marker { color: var(--accent); }
details.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

table.opt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.opt th, table.opt td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
table.opt th { color: var(--muted); font-weight: 700; font-size: 12.5px; }
table.opt tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
