:root{--accent:#439289}
*{box-sizing:border-box}
body{margin:0;background:#f3f4f6;color:#111827;font-family:system-ui,sans-serif}
[hidden]{display:none!important}
.top{position:relative;background:#0c1120;color:#fff;padding:12px 16px;display:grid;grid-template-columns:56px 1fr 56px;align-items:center;gap:8px}
.brand{display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;text-decoration:none;text-align:center}
.brand small{display:block;color:#9ca3af}
.logo{width:56px;height:56px}
.side{width:56px}
.drop summary{list-style:none;cursor:pointer;position:relative}
.drop summary::-webkit-details-marker{display:none}
.drop.right{justify-self:end}
.burger{width:48px;height:48px;border-radius:12px;background:#1f2937;display:grid;place-items:center;font-size:24px}
.burger em{position:absolute;top:-6px;right:-6px;background:#dc2626;border-radius:10px;font:700 12px/20px system-ui;min-width:20px;text-align:center}
.panel{position:absolute;top:100%;z-index:10;width:250px;max-width:calc(100% - 24px);background:#111827;border:1px solid #374151;border-radius:14px;padding:14px;box-shadow:0 12px 30px #0008}
.left .panel{left:12px}
.right .panel{right:12px}
.panel small{display:block;color:#9ca3af;margin:2px 0 10px}
.panel button{margin-top:8px;width:100%}
.me{position:relative;display:inline-block;width:48px;height:48px}
.ava{width:100%;height:100%;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:700;border:2px solid #374151}
.dot{position:absolute;right:0;bottom:0;width:14px;height:14px;border-radius:50%;border:2px solid #0c1120}
.dot.on{background:#22c55e}
.dot.off{background:#ef4444}
.me.small{width:34px;height:34px;vertical-align:middle}
.theme{display:flex;gap:6px;align-items:center;justify-content:center;margin-top:12px}
.panel .theme button{width:30px;height:30px;padding:0;margin:0;border-radius:50%;border:2px solid #fff}
nav{display:flex;flex-direction:column;gap:6px}
nav a{color:#e5e7eb;text-decoration:none;padding:11px 12px;border-radius:8px;background:#1f2937}
main{max-width:960px;margin:0 auto;padding:16px}
.box{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;margin-bottom:16px}
.narrow{max-width:420px;margin:24px auto}
.hero{background:#12172a;color:#fff}
h2,h3{margin:0 0 12px}
input,select{width:100%;font-size:16px;padding:11px;margin:4px 0 10px;border:1px solid #d1d5db;border-radius:9px;background:#fff;color:#111827}
button{font-size:15px;padding:10px 15px;border:0;border-radius:9px;background:#e5e7eb;color:#111827;cursor:pointer;margin:2px}
button.main{background:var(--accent);color:#fff}
button.danger{background:#fee2e2;color:#991b1b}
.stats{display:flex;flex-wrap:wrap;gap:12px}
.stats .box{flex:1;min-width:140px;border-left:5px solid var(--accent)}
.stats b{display:block;font-size:30px}
.scroll{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:8px;border-bottom:1px solid #e5e7eb;text-align:left;white-space:nowrap}
td form{display:inline}
td input,td select{width:150px;margin:0}
#ki-reader{width:100%}
.alert{padding:12px;border-radius:9px}
.bad{background:#fee2e2;color:#991b1b}
.good{background:#d1fae5;color:#065f46}
.bottom{max-width:928px;margin:16px auto;background:#12172a;color:#9ca3af;text-align:center;padding:24px;border-radius:14px;line-height:1.9}
.bottom b{color:#fff}
html.dark body{background:#0b0f19;color:#e5e7eb}
html.dark .box{background:#161c2c;border-color:#2b3448;color:#e5e7eb}
html.dark input,html.dark select{background:#0f1523;color:#e5e7eb;border-color:#38425a}
html.dark th,html.dark td{border-color:#2b3448}
html.dark .stats .box{border-left-color:var(--accent)}
