:root {
  --bg: #252422;
  --panel: #34312c;
  --text: #eee5d4;
  --muted: #b9ad9b;
  --accent: #c89b4f;
  --danger: #c77762;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.admin-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding: 1rem 0; }
.admin-card { background: var(--panel); border: 1px solid rgba(200,155,79,.28); border-radius: 18px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:1rem; }
label { display:block; font-weight:700; margin-bottom:.35rem; }
input, textarea, select { width:100%; padding:.75rem; border-radius: 10px; border: 1px solid rgba(200,155,79,.30); background: #1f1e1c; color: var(--text); }
textarea { min-height: 110px; }
button, .button { display:inline-block; padding:.75rem 1rem; border-radius:999px; border:1px solid rgba(200,155,79,.45); background: #8f6935; color: #f3ead7; text-decoration:none; cursor:pointer; }
.notice { background: rgba(122, 167, 122, .18); border: 1px solid rgba(122,167,122,.35); padding:.8rem; border-radius:12px; }
.error { background: rgba(199, 119, 98, .18); border: 1px solid rgba(199,119,98,.35); padding:.8rem; border-radius:12px; }
.small { color: var(--muted); font-size:.92rem; }
.color-row { display:grid; grid-template-columns: 1fr 64px; gap:.5rem; align-items:center; }
.archive-item { border-top: 1px solid rgba(200,155,79,.20); padding-top:1rem; margin-top:1rem; }
.login-box { max-width: 420px; margin: 12vh auto; }

.check-table { width: 100%; border-collapse: collapse; }
.check-table td { padding: .8rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.check-table td:last-child { text-align: right; white-space: nowrap; }

.range-row { display:grid; grid-template-columns: 1fr 70px; gap:.75rem; align-items:center; }
.range-row input[type="range"] { padding: 0; }
.help-box { background: rgba(0,0,0,.18); border: 1px dashed rgba(200,155,79,.35); border-radius: 14px; padding: .9rem; margin-top: .8rem; }
.code-textarea { min-height: 190px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
.mini-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.checkbox-label { display:flex; align-items:center; gap:.55rem; }
.checkbox-label input { width:auto; }
