@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #10140f;
  --card: #1b2318;
  --line: rgba(232, 201, 122, 0.14);
  --gold: #e8c97a;
  --gold-dim: #b0893e;
  --ink: #f3ead4;
  --muted: #9aa38f;
  --go: #6fbf7a;
  --stop: #d45c4a;
  --helper: #7eb8d4;
  --epitesz: #c4a574;
  --mod: #6fbf88;
  --admin: #d4655c;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 201, 122, 0.08), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(111, 191, 122, 0.05), transparent 45%),
    var(--bg);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(-18deg, transparent, transparent 11px, rgba(255,255,255,0.015) 11px, rgba(255,255,255,0.015) 12px);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.panel-shell { position: relative; z-index: 1; }
.gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.45; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}
.stamp {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.2rem 0.65rem; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
}
.meter { height: 10px; border-radius: 999px; background: #0d120c; border: 1px solid var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.meter.warn > span { background: linear-gradient(90deg, #8a3b2e, var(--stop)); }
.duty-btn {
  width: 100%; min-height: 140px; border-radius: 22px; border: 1px solid var(--line);
  cursor: pointer; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: Syne, sans-serif; font-size: 1.35rem; font-weight: 700;
}
.duty-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.duty-btn.on { color: #102013; background: linear-gradient(180deg, #8fd89a, #4ea85c); }
.duty-btn.off { color: var(--gold); background: linear-gradient(180deg, #2a2418, #1a1711); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.field input, .field select, .field textarea,
input.plain, select.plain {
  background: #10150f; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.75rem 0.9rem; outline: none; width: 100%;
}
.btn { border: 1px solid var(--line); background: #241f16; color: var(--gold); border-radius: 12px; padding: 0.7rem 1rem; cursor: pointer; }
.btn.solid { background: linear-gradient(180deg, #e8c97a, #b0893e); color: #1a1408; border-color: transparent; font-weight: 700; }
.btn.danger { color: #ffd0c8; background: #3a1c18; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); }
.table td { padding: 0.8rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.nav-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.85rem; border-radius: 12px; color: var(--muted); }
.nav-link.active, .nav-link:hover { background: rgba(232,201,122,0.08); color: var(--ink); }
.banner { border-radius: 14px; padding: 0.85rem 1rem; border: 1px solid var(--line); }
.banner.afk { background: rgba(212,92,74,0.12); color: #ffd0c8; }
.banner.warn { background: rgba(232,201,122,0.08); color: var(--gold); }
.layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
aside.side { border-right: 1px solid var(--line); padding: 1.25rem; }
main.page { padding: 2rem; }
.brand { font-family: Syne, sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.08em; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1.1fr 0.9fr; }
.flex { display: flex; gap: 0.75rem; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mb { margin-bottom: 1rem; }
.mt { margin-top: 1rem; }
.err { color: var(--stop); font-size: 0.9rem; }
.display { font-family: Syne, sans-serif; font-weight: 700; }
.mono { font-family: "IBM Plex Mono", monospace; }
.head { border-radius: 6px; border: 1px solid var(--line); image-rendering: pixelated; }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .layout, .grid-2 { grid-template-columns: 1fr; }
  aside.side { border-right: 0; border-bottom: 1px solid var(--line); }
}
