:root {
  --bg: #07111f;
  --panel: #0e1d33;
  --line: #1f3a63;
  --text: #eaf4ff;
  --muted: #8fa3b8;
  --sky: #3fa9ff;
  --deep: #1e5bff;
  --good: #7ce38b;
  --bad: #ff6b81;
  --gold: #ffb547;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 600px at 50% -10%, #12305a 0%, var(--bg) 60%) fixed; color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; }
header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, .75); position: sticky; top: 0; backdrop-filter: blur(6px); z-index: 5; }
.logo { font-weight: 800; letter-spacing: .08em; font-size: 18px; }
.logo b { color: var(--sky); }
.logo.big { font-size: 26px; margin-bottom: 6px; }
nav { display: flex; gap: 6px; }
.tab { background: transparent; border: 1px solid transparent; color: var(--muted); font-weight: 600; margin: 0; padding: 7px 14px; }
.tab.on { color: var(--text); border-color: var(--line); background: var(--panel); }
.who { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.who img { width: 28px; height: 28px; border-radius: 50%; }
.who form { margin: 0; }
.chip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--sky); white-space: nowrap; }
main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 60px; }
.narrow { max-width: 420px; margin: 70px auto; }
.center { text-align: center; }
.hidden { display: none !important; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
h2 { margin: 0 0 4px; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--bad); }
button, .btn { display: inline-block; margin: 0; padding: 9px 16px; border: 0; border-radius: 9px; background: linear-gradient(180deg, var(--sky), var(--deep)); color: white;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { filter: brightness(1.1); }
button:disabled { opacity: .4; cursor: default; filter: none; }
button.ghost, .btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 500; padding: 6px 12px; }
button.danger { background: transparent; border: 1px solid #5a2433; color: var(--bad); font-weight: 500; padding: 6px 12px; }
.btn.discord { background: #5865f2; margin: 8px 0; padding: 12px 22px; }
.state { font-size: 22px; font-weight: 800; }
.state.on { color: var(--good); }
.state.off { color: var(--bad); }
.console { background: #050c17; border: 1px solid var(--line); border-radius: 10px; height: 52vh; min-height: 260px; overflow: auto; padding: 10px;
  font: 12.5px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.console .err { color: var(--bad); }
.console .warn { color: var(--gold); }
.console .me { color: var(--sky); }
.cmd { display: flex; gap: 8px; margin-top: 10px; }
input, textarea { width: 100%; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: #0a1729; color: var(--text); font: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--sky); border-color: transparent; }
textarea { height: 60vh; margin-top: 12px; font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; tab-size: 2; }
.crumbs a, .files a { color: var(--sky); cursor: pointer; text-decoration: none; }
.crumbs { font-weight: 600; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px 12px; margin: 12px 0 6px; text-align: center; color: var(--muted); transition: .15s; }
.drop.over { border-color: var(--sky); background: rgba(63, 169, 255, .08); }
.files { width: 100%; border-collapse: collapse; margin-top: 8px; }
.files th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.files td { padding: 6px 8px; border-bottom: 1px solid #142a4a; vertical-align: middle; word-break: break-word; }
.files td.actions { white-space: nowrap; text-align: right; }
.files td.actions > * { margin-left: 6px; }
@media (max-width: 640px) {
  .files th:nth-child(3), .files td:nth-child(3) { display: none; }
  .files td.actions { white-space: normal; }
}
