@font-face { font-family: 'Null'; src: url('/null.otf') format('opentype'); font-display: swap; }
:root { --bg: #171616; --panel: #221f1e; --line: rgba(255,255,255,.09); --text: #f6efed; --muted: rgba(246,239,237,.6);
  --accent: #c9ae98; --ink: #171616; --mint: #2fb67c; --coral: #e5484d; --radius: 16px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
.logo { font-family: 'Null', sans-serif; font-size: 44px; line-height: 1; }
.logo.small { font-size: 28px; margin-bottom: 22px; }
h1 { font-family: 'Null', sans-serif; font-weight: 400; font-size: 40px; margin: 0 0 4px; }
h2 { margin: 0 0 6px; font-size: 22px; } h3 { margin: 0; font-size: 16px; }
.muted { color: var(--muted); margin: 0; } .hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.error { color: var(--coral); }
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.login-card { max-width: 420px; text-align: center; display: grid; gap: 16px; }
#app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; }
nav { display: grid; gap: 4px; }
.nav { text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.nav:hover { background: rgba(255,255,255,.05); } .nav.active { background: rgba(201,174,152,.16); color: var(--accent); font-weight: 600; }
.me { margin-top: auto; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
main { padding: 32px 36px; min-width: 0; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 18px; align-items: start; }
.list { display: grid; gap: 8px; }
.item { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--text); font: inherit; cursor: pointer; }
.item.active { border-color: var(--accent); } .item small { display: block; color: var(--muted); }
.form { display: grid; gap: 14px; }
.form.inline { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.form.inline .actions { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
input, textarea, select { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  padding: 10px 12px; font: inherit; font-weight: 400; width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input[type=range] { padding: 0; accent-color: var(--accent); } input[type=checkbox] { width: auto; accent-color: var(--accent); }
.row { display: flex; gap: 8px; align-items: center; } output { min-width: 48px; font-weight: 700; color: var(--accent); }
.btn { border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; background: rgba(255,255,255,.08); color: var(--text); white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--ink); } .btn.danger { background: rgba(229,72,77,.15); color: var(--coral); }
.btn.small { padding: 7px 12px; font-size: 13px; } .btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--accent); padding: 0; font: inherit; cursor: pointer; text-align: left; }
.actions { display: flex; gap: 10px; align-items: center; } .spacer { flex: 1; }
.staff-head { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.staff-row { display: grid; grid-template-columns: 1fr 1.3fr auto auto auto; gap: 8px; align-items: center; }
.staff-row input.max { width: 64px; padding: 8px; text-align: right; }
.staff-row label.check { display: flex; gap: 6px; align-items: center; font-weight: 400; white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.table th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.table tr.off td { opacity: .45; } .code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.search { min-width: 260px; max-width: 360px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats > div { background: rgba(255,255,255,.04); border-radius: 12px; padding: 10px 12px; }
.big { font-family: 'Null', sans-serif; font-size: 26px; color: var(--accent); }
.mini { display: grid; gap: 6px; max-height: 260px; overflow: auto; font-size: 13.5px; }
.mini .line { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.mini small { color: var(--muted); display: block; }
.plus { color: var(--mint); font-weight: 700; } .minus { color: var(--coral); font-weight: 700; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
@media (max-width: 820px) {
  #app { grid-template-columns: 1fr; } .side { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  nav { grid-auto-flow: column; justify-content: start; } .me { margin-top: 12px; }
  main { padding: 20px 16px; } .split { grid-template-columns: 1fr; } .staff-row { grid-template-columns: 1fr 1fr; }
  .table { display: block; overflow-x: auto; }
}
