:root{--bg:#0c1018;--surface:#141b27;--surface2:#1b2533;--line:#2b3648;--text:#eaf0f9;--muted:#9ba9bd;--accent:#e65a99;--accent2:#ff90bc;--success:#50d09b;--danger:#f37c89;--warn:#efc77d;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color-scheme:dark}
*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;background:radial-gradient(900px 420px at 80% -80px,#30203750,transparent),var(--bg);color:var(--text);font-size:14px;line-height:1.55}a{color:var(--accent2);text-decoration:none}a:hover{text-decoration:underline}.layout{min-height:100vh;display:flex}.sidebar{position:sticky;top:0;height:100vh;width:255px;min-width:255px;background:#101722;border-right:1px solid var(--line);padding:26px 18px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 30px}.brand-icon{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#ef6ea7,#b13878);font-weight:900;font-size:23px;color:#fff;box-shadow:0 5px 26px #f160a030}.brand strong{font-size:13px;letter-spacing:.08em;display:block}.brand small{display:block;color:var(--muted);font-size:10px}.nav{display:grid;gap:5px}.nav a{padding:12px 13px;color:#c2cde0;border-radius:10px;font-weight:550}.nav a:hover,.nav a.selected{background:var(--surface2);text-decoration:none;color:#fff}.nav a.selected{box-shadow:inset 3px 0 var(--accent)}.sidebar-bottom{margin-top:auto}.status-text{padding:12px 3px;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.dot.good{background:var(--success)}.dot.bad{background:var(--danger)}.main{width:100%;min-width:0;max-width:1600px;padding:38px 44px 30px;margin:0 auto}.main.full{display:flex;min-height:100vh;flex-direction:column;align-items:center;justify-content:center}.main.full footer{margin-top:32px}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:25px}.heading h1{margin:2px 0 2px}.eyebrow{color:var(--accent2);font-size:11px;font-weight:800;letter-spacing:.15em}.muted{color:var(--muted)}.small{font-size:12px}.warn{color:var(--warn)}.nowrap{white-space:nowrap}h1{font-size:31px;line-height:1.22;letter-spacing:-.025em;margin:6px 0 16px}h2{font-size:18px;letter-spacing:-.01em;margin:0 0 12px}p{margin:6px 0 16px}.card{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:24px;margin-bottom:22px;box-shadow:0 12px 35px #0000000f}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:7px}.metric{display:flex;flex-direction:column;gap:7px}.metric span{font-size:11px;letter-spacing:.1em;color:var(--muted);font-weight:750}.metric strong{font-weight:800;font-size:36px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 15px;border-radius:10px;border:1px solid #48536a;background:#233044;color:#ecf0fa;font:inherit;font-size:13px;font-weight:680;text-decoration:none;cursor:pointer;line-height:1.3}.btn:hover{filter:brightness(1.15);text-decoration:none}.btn.primary{border-color:#f37db2;background:linear-gradient(120deg,#e462a0,#c44887);color:#fff}.btn.ghost{border-color:transparent;background:transparent}.btn.danger-btn{border-color:#9d414c;color:#ffacb0;background:#451c27}.btn.block{width:100%}.btn.small-btn{font-size:12px;min-height:32px;padding:6px 11px}.section-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:12px}.add-row,.search-row{display:flex;align-items:stretch;gap:10px;margin:18px 0 22px}.add-row input,.search-row input{flex:1}input:not([type=checkbox]),textarea{width:100%;background:#0d1420;border:1px solid #3b485c;border-radius:9px;color:var(--text);padding:10px 12px;font:inherit;outline:none}input:not([type=checkbox]):focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #f570a820}textarea{resize:vertical;min-height:75px}.stack{display:flex;flex-direction:column;gap:15px}.stack label{display:flex;flex-direction:column;gap:6px;color:#cad5e5;font-weight:540}.stack .toggle-row{display:flex;flex-direction:row;align-items:flex-start;gap:10px}.toggle-row input{accent-color:var(--accent);width:17px;height:17px;flex:none;margin:3px 0 0}.stack .toggle-row.subtle{color:var(--muted);font-size:12px}.hint{font-size:12px;color:var(--muted);margin-top:-8px}.table-scroll{overflow:auto;width:100%}table{width:100%;border-collapse:collapse}th{color:#91a0b4;font-size:11px;letter-spacing:.05em;text-transform:uppercase;text-align:left;font-weight:720}th,td{padding:12px 10px;border-bottom:1px solid #293445;vertical-align:middle}tr:last-child td{border-bottom:none}.right{text-align:right}.pill{font-size:10px;font-weight:800;letter-spacing:.04em;padding:5px 8px;background:#293449;border:1px solid #404d60;border-radius:7px;white-space:nowrap}.pill.positive{background:#173c35;border-color:#26735e;color:#81eac0}.pill.danger{background:#4a2530;border-color:#82394c;color:#ff9fae}.pill.accent{background:#4d2945;border-color:#7e406c;color:#ffc0de}.empty{text-align:center;color:var(--muted);padding:36px 20px}.alert{padding:12px 16px;border-radius:10px;border:1px solid #725b35;background:#41351f;color:#f2d8a7;margin-bottom:19px}.alert.error{background:#451e2b;border-color:#935063;color:#ffc2c7}.alert.success{background:#183a30;border-color:#377864;color:#a0ebcc}.alert.warning{background:#41351f;border-color:#806d45;color:#ffe2a9}.auth-wrap{width:100%;max-width:470px;margin:auto}.auth-card{padding:32px}.auth-card h1{margin-bottom:10px}.code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.code-grid code{font-size:13px;padding:12px 8px;background:#0c1421;border:1px solid var(--line);border-radius:9px;text-align:center;letter-spacing:.03em}.content-narrow{max-width:690px}.two-col{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px}.stack-cards .card{margin-bottom:20px}.facts{display:grid;grid-template-columns:1fr;gap:13px;margin:20px 0}.facts div{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}.facts span{color:var(--muted)}.facts strong{font-size:12px;text-align:right}.action{padding:16px 0;border-top:1px solid var(--line)}.action p{margin:7px 0 0}.danger-area{border-top:1px solid #643341;padding-top:16px;margin-top:18px}.chat{display:flex;flex-direction:column;gap:13px;align-items:flex-start}.bubble{max-width:min(85%,810px);padding:14px 16px;background:#1b2839;border:1px solid #314359;border-radius:13px 13px 13px 3px;overflow-wrap:anywhere}.bubble.out{align-self:flex-end;background:#3a2540;border-color:#70415c;border-radius:13px 13px 3px 13px}.bubble-head{color:#9caec0;font-size:11px;margin-bottom:9px}.bubble.out .bubble-head{color:#e0a4c8}.message-body{white-space:pre-wrap;overflow-wrap:anywhere}.attachment{border-top:1px dashed #556276;padding-top:8px;margin-top:8px;color:#b8c8d9;font-size:12px}.media-preview{display:block;max-width:300px;max-height:200px;object-fit:contain;border-radius:7px;margin-top:8px}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:24px;color:var(--muted)}.pager div{display:flex;gap:8px}.back{display:inline-block;margin-bottom:24px}.secret-box{padding:13px;background:#0c1420;border:1px solid var(--line);border-radius:8px;font-size:18px;word-break:break-all}.break{word-break:break-all}code{font-family:ui-monospace,Consolas,monospace;font-size:.9em;color:#ffafd0}hr{width:100%;border:none;border-top:1px solid var(--line);margin:5px 0}footer{color:#697a92;font-size:11px;padding:32px 0;text-align:center}@media(max-width:1080px){.sidebar{width:220px;min-width:220px}.main{padding:28px 26px}.two-col{grid-template-columns:1fr}}@media(max-width:720px){.layout{display:block}.sidebar{position:relative;height:auto;width:100%;min-width:0;padding:14px}.brand{padding:0 5px 13px}.nav{display:flex;overflow:auto}.nav a{white-space:nowrap;font-size:12px;padding:9px}.sidebar-bottom{margin:10px 0 0;display:flex;justify-content:space-between;align-items:center}.sidebar-bottom .btn{width:auto}.main{padding:23px 14px}.heading{flex-direction:column}.metric-grid{gap:7px}.metric{padding:14px}.metric span{font-size:9px}.metric strong{font-size:25px}.card{padding:16px}.add-row,.search-row{flex-wrap:wrap}.add-row input,.search-row input{min-width:180px}.bubble{max-width:96%}.code-grid{grid-template-columns:1fr}}
