:root { --navy:#13233a; --blue:#245f9e; --amber:#f3a712; --bg:#f3f6f9; --line:#dce3ea; --green:#137a4b; --red:#b42318; --text:#1b2733; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif; color:var(--text); background:var(--bg); }
main { max-width:1180px; margin:auto; padding:28px 20px 60px; }
.hidden { display:none !important; }
.login-card { width:min(420px,100%); margin:10vh auto; background:white; padding:36px; border-radius:18px; box-shadow:0 18px 50px #14253a1a; }
.login-card h1 { margin:.6rem 0 .2rem; }
.brand-mark { display:inline-grid; place-items:center; width:64px; height:64px; border-radius:16px; background:var(--navy); color:white; font-weight:900; letter-spacing:-1px; }
.brand-mark.small { width:38px; height:38px; border-radius:10px; margin-right:10px; font-size:13px; }
header { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
header>div { display:flex; align-items:center; gap:10px; }
h2 { font-size:18px; margin:0 0 18px; }
label { display:grid; gap:7px; margin:16px 0; font-size:14px; font-weight:650; }
input,textarea { width:100%; border:1px solid var(--line); border-radius:9px; padding:11px 12px; font:inherit; background:#fff; }
textarea { resize:vertical; min-height:110px; }
button { border:0; border-radius:9px; padding:11px 16px; background:var(--blue); color:white; font-weight:750; cursor:pointer; }
button.secondary { background:#e8edf3; color:var(--navy); }
button.danger { background:transparent; color:var(--red); padding:6px; }
.muted { color:#697786; font-size:13px; }
.error { color:var(--red); min-height:20px; }
.warning { padding:10px 12px; background:#fff7df; border-radius:8px; color:#6d4d00; font-size:13px; }
.safety { padding:13px 16px; margin-bottom:18px; border-radius:10px; font-weight:800; }
.safety.safe { background:#dff4e9; color:#0b6840; }
.safety.danger { background:#fee4e2; color:#912018; }
.grid { display:grid; gap:14px; }
.cards { grid-template-columns:repeat(4,1fr); margin-bottom:18px; }
.cards article,.panel { background:white; border:1px solid #e7ecf1; border-radius:14px; padding:20px; }
.cards article span { display:block; color:#657483; font-size:13px; }
.cards article strong { display:block; font-size:30px; margin-top:6px; color:var(--navy); }
.two-col { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.panel { margin-bottom:18px; }
.toggle { display:flex; align-items:center; gap:10px; }
.toggle input { width:20px; height:20px; }
.pair-code { font-size:36px; font-weight:900; letter-spacing:8px; color:var(--navy); margin-top:18px; }
.template-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.template-card { padding:14px; border:1px solid var(--line); border-radius:10px; }
.inline-form { display:grid; grid-template-columns:1fr 1fr auto; gap:8px; align-items:end; }
.inline-form input { min-width:0; }
.item-list { padding:0; list-style:none; }
.item-list li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.item-list li span { min-width:0; overflow-wrap:anywhere; }
.item-list li button { flex-shrink:0; white-space:nowrap; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th,td { padding:11px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; }
th { color:#647282; font-size:12px; }
.toast { position:fixed; right:22px; bottom:22px; background:var(--navy); color:white; padding:13px 18px; border-radius:10px; box-shadow:0 10px 30px #0003; }
@media (max-width:800px) { .cards,.template-grid { grid-template-columns:1fr 1fr; } .two-col { grid-template-columns:1fr; } header { align-items:flex-start; } }
@media (max-width:520px) { .cards,.template-grid { grid-template-columns:1fr; } .inline-form { grid-template-columns:1fr; } #userEmail { display:none; } }
