:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #111111;
  --panel2: #1a1a1a;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --sub: #cccccc;
  --muted: #888888;
  --gold: #c9a227;
  --gold2: #d4af37;
  --red: #e0605a;
  --green: #6fbf73;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 15px; line-height: 1.6; word-break: keep-all; }
a { color: var(--gold2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 4px; font-size: 18px; color: var(--text); text-decoration: none; }
.brand b { color: var(--gold); font-weight: normal; }
.btn { display: inline-block; border: 1px solid var(--gold); background: var(--gold); color: #0a0a0a; border-radius: 5px; padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--gold2); }
.btn.ghost { background: transparent; color: var(--gold2); }
.btn.ghost:hover { background: rgba(201, 162, 39, .12); }
.btn.small { padding: 5px 10px; font-size: 13px; font-weight: 500; }
.btn.danger { border-color: var(--red); color: var(--red); background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
input, select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 5px; padding: 9px 11px; font-size: 15px; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--gold); }
label { display: block; color: var(--sub); font-size: 13px; margin: 14px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* 공개 화면 */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: normal; letter-spacing: 6px; font-size: 40px; margin: 0 0 12px; }
.hero p.lead { color: var(--sub); font-size: 17px; margin: 0 auto 32px; max-width: 560px; }
.hero .ver { margin-top: 14px; color: var(--muted); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px 0 56px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.step .n { color: var(--gold); font-family: Georgia, serif; font-size: 22px; }
.step h3 { margin: 6px 0 6px; font-size: 16px; font-weight: 600; }
.step p { margin: 0; color: var(--sub); font-size: 14px; }
.note { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 12px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 30px; letter-spacing: 4px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* 관리자 */
.login-box { max-width: 360px; margin: 96px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.login-box h2 { margin: 0 0 4px; font-family: Georgia, serif; font-weight: normal; letter-spacing: 3px; }
.login-box .btn { width: 100%; margin-top: 20px; }
.error { color: var(--red); font-size: 13px; min-height: 20px; margin-top: 8px; }
.banner { background: rgba(201, 162, 39, .14); border: 1px solid var(--gold); color: var(--gold2); border-radius: 5px; padding: 10px 14px; margin: 16px 0 0; font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.tabs button { background: none; border: none; color: var(--muted); padding: 12px 16px; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.card .k { color: var(--muted); font-size: 12px; }
.card .v { font-size: 22px; font-family: Georgia, serif; margin-top: 4px; }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; white-space: nowrap; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 500; background: var(--panel); position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel2); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; border: 1px solid var(--line); }
.tag.ok { color: var(--green); border-color: var(--green); }
.tag.off { color: var(--red); border-color: var(--red); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.row select { width: auto; min-width: 200px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin: 20px 0; max-width: 560px; }
.panel h3 { margin: 0 0 4px; font-size: 16px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--sub); }
.check input { width: auto; }
.ok-msg { color: var(--green); font-size: 13px; min-height: 20px; margin-top: 8px; }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.actions { display: flex; gap: 6px; }
