:root { --bg: #0e1116; --panel: #161b22; --panel2: #1d242e; --line: #2a323d; --text: #e6e9ee; --mute: #8b95a3; --accent: #e5483b; --ok: #3fb768; --warn: #e0a93b; --radius: 8px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.shell { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: .04em; margin: 0 8px 14px; }
.brand span { color: var(--accent); }
.nav { text-align: left; background: transparent; border: 0; border-radius: 6px; padding: 8px 10px; color: var(--mute); cursor: pointer; }
.nav:hover { background: var(--panel2); color: var(--text); }
.nav.on { background: var(--panel2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.who { margin-top: auto; padding: 10px; color: var(--mute); font-size: 12px; border-top: 1px solid var(--line); }
.who a { display: inline-block; margin-top: 4px; }
main { padding: 24px 28px 60px; max-width: 1100px; width: 100%; }
h1 { margin: 0 0 18px; font-size: 22px; }
h2 { margin: 24px 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card .n { font-size: 28px; font-weight: 700; }
.card .l { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--panel2); }
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 11px; cursor: pointer; }
.btn:hover { border-color: var(--mute); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: #ff8a80; }
.btn.small { padding: 2px 8px; font-size: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions { display: flex; gap: 5px; flex-wrap: wrap; }
input, select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); }
textarea { width: 100%; min-height: 120px; resize: vertical; }
.mute { color: var(--mute); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 11px; color: var(--mute); }
.tag.ok { color: var(--ok); }
.toast { position: fixed; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.5); z-index: 50; max-width: 340px; }
.toast.err { border-color: var(--accent); }
.toast.ok { border-color: var(--ok); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 16px; }
.dlg { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; width: 420px; max-width: 100%; }
.dlg h3 { margin: 0 0 12px; }
.dlg label { display: block; margin: 10px 0 4px; color: var(--mute); font-size: 12px; }
.dlg input, .dlg select { width: 100%; }
.dlg .row { justify-content: flex-end; margin-top: 16px; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.login .box { padding: 32px 40px; }
.login h1 { font-size: 26px; }
.split { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; }
.list { display: flex; flex-direction: column; gap: 4px; }
.item { padding: 8px 10px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.item:hover { background: var(--panel2); }
.item.on { background: var(--panel2); border-color: var(--accent); }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .brand { width: 100%; margin-bottom: 4px; }
  .who { margin-top: 0; width: 100%; border-top: 0; }
  main { padding: 16px 14px 60px; }
  .split { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}
.console { margin: 0; height: 52vh; min-height: 260px; overflow: auto; background: #07090c; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font: 12px/1.45 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: #c9d1d9; white-space: pre-wrap; word-break: break-all; }
.console-in { flex: 1; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
