*{box-sizing:border-box}body{margin:0;background:#f3f5f9;color:#172033;font:14px Arial,sans-serif}aside{position:fixed;inset:0 auto 0 0;width:230px;background:#111c32;color:#fff;padding:24px 16px;display:flex;flex-direction:column;gap:8px}aside h2{margin:0 0 2px}aside small{color:#91a0b8;margin-bottom:18px}aside a{color:#cbd5e1;text-decoration:none;padding:12px;border-radius:8px}aside a:hover,aside a.active{background:#263858;color:#fff}main{margin-left:230px;padding:26px;max-width:1600px}header{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:16px 20px;border-radius:12px;margin-bottom:24px}header small{display:block;color:#718096;margin-top:4px}h1{font-size:25px}h2{font-size:18px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 28px}.stats article,.panel,table{background:#fff;border-radius:10px;padding:16px}.stats small{display:block;color:#64748b}.stats strong{display:block;font-size:26px;margin-top:10px}table{width:100%;border-collapse:collapse;padding:0;margin:14px 0 28px;display:table;overflow:auto}td,th{text-align:left;padding:12px;border-bottom:1px solid #e8edf3;vertical-align:top}th{background:#f8fafc}td small{display:block;color:#64748b}input,select,textarea{padding:10px;border:1px solid #cbd5e1;border-radius:7px;font:inherit;max-width:100%}button{border:0;border-radius:7px;background:#1769aa;color:#fff;padding:10px 14px;cursor:pointer}button.danger{background:#b42318}form.panel{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}form.panel textarea{width:100%}.inline{display:flex;gap:5px;flex-wrap:wrap}.inline input{width:120px}.notice,.error{padding:12px;border-radius:8px;margin:12px 0;background:#dcfce7}.error,.err{background:#fee2e2;color:#991b1b}.login{display:grid;place-items:center;min-height:100vh}.loginbox{width:min(380px,92vw);background:white;padding:28px;border-radius:14px;display:grid;gap:14px;box-shadow:0 10px 35px #15223818}.loginbox h2{margin:0}.loginbox p{margin:0;color:#64748b}@media(max-width:900px){aside{position:static;width:auto;display:flex;flex-direction:row;overflow:auto;align-items:center}aside h2,aside small{display:none}main{margin:0;padding:14px}.stats{grid-template-columns:repeat(2,1fr)}table{font-size:12px}}

body.theme-dark{background:#0b1220;color:#e5e7eb}body.theme-dark header,body.theme-dark .stats article,body.theme-dark .panel,body.theme-dark table,body.theme-dark .loginbox{background:#111c2e;color:#e5e7eb}body.theme-dark th{background:#1b2940;color:#f5d27a}body.theme-dark td,body.theme-dark th{border-color:#26364f}body.theme-dark input,body.theme-dark select,body.theme-dark textarea{background:#0b1220;color:#e5e7eb;border-color:#34445f}body.theme-dark header small,body.theme-dark .stats small,body.theme-dark td small{color:#9caec7}body.theme-dark .notice{background:#153629;color:#b7f7d2}#themeToggle{background:#b88a2b;color:#101827;padding:7px 10px;margin-left:12px}
