:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17203b;background:#f4f6fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#eef0ff,#f8f9fc)}.login-card{width:min(400px,100%);padding:32px;border:1px solid #e1e5f2;border-radius:18px;background:#fff;box-shadow:0 20px 60px #26315a1a}.login-card .brand{padding:0 0 28px;color:#17203b}.login-card h1{margin:0 0 8px;font-size:28px}.login-card>p{margin:0 0 24px;color:#68718b}.login-card label{display:grid;gap:7px;margin-top:15px;color:#4e5873;font-size:13px;font-weight:700}.login-card input{border:1px solid #dfe3ee;border-radius:9px;padding:11px;color:#26304d}.login-card button{width:100%;margin-top:24px;border:0;border-radius:9px;padding:11px;background:#6558e8;color:#fff;font-weight:750}.login-card button:disabled{cursor:wait;opacity:.7}.login-card .login-error{margin:16px 0 0;color:#9c3535}.dashboard-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;padding:24px 16px;background:linear-gradient(180deg,#101a3a,#18244b);color:#fff;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 24px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#7568ff,#b08cff);font-size:22px;font-weight:900;box-shadow:0 8px 24px #7568ff55}.brand strong,.brand span{display:block}.brand strong{font-size:18px}.brand span{font-size:11px;color:#aeb8dc;margin-top:2px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{color:#bbc4e3;text-decoration:none;padding:11px 12px;border-radius:10px;display:flex;gap:12px;align-items:center;font-size:14px;font-weight:650}.sidebar nav a:hover{background:#ffffff10;color:#fff}.sidebar nav a.active{background:#7568ff;color:#fff;box-shadow:0 7px 20px #0003}.sidebar nav a span{width:18px;text-align:center}.admin-identity{margin-top:auto;border-top:1px solid #ffffff1a;padding:18px 10px 0;overflow:hidden}.admin-identity span,.admin-identity small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-identity span{font-size:13px;font-weight:700}.admin-identity small{color:#aeb8dc;margin-top:3px}main{min-width:0}.page{padding:38px clamp(20px,4vw,54px) 60px;max-width:1600px;margin:auto}.mobile-bar{display:none}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}.page-header h1{font-size:clamp(28px,3vw,38px);margin:0 0 7px;letter-spacing:-.04em}.page-header p,.panel>p{margin:0;color:#68718b;font-size:14px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card,.panel,.state-card{background:#fff;border:1px solid #e7eaf3;border-radius:16px;box-shadow:0 7px 30px #26315a0b}.stat-card{padding:21px}.stat-card span{color:#747d97;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}.stat-card strong{display:block;font-size:28px;margin:10px 0 5px;color:#141d3a}.stat-card small{color:#8790a7}.panel{padding:22px;margin-top:20px;overflow:hidden}.panel h2{margin:0 0 7px;font-size:18px}.panel-heading{display:flex;justify-content:space-between;align-items:center}.table-wrap{overflow:auto;margin-top:18px;border:1px solid #edf0f6;border-radius:12px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{padding:12px 14px;border-bottom:1px solid #edf0f6;text-align:left;font-size:12px;max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}th{color:#6d7690;background:#f8f9fc;text-transform:uppercase;letter-spacing:.04em;font-size:10px}tr:last-child td{border-bottom:0}tr.clickable:hover{background:#f7f6ff;cursor:pointer}.filters{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.filters input,.filters select,.editor-form input,.editor-form select,.editor-form textarea{background:#fff;border:1px solid #dfe3ee;border-radius:9px;padding:9px 11px;min-width:130px;color:#26304d}.filters button,.state-card button,.modal-actions button{border:0;background:#6558e8;color:#fff;border-radius:9px;padding:9px 15px;font-weight:750}.secondary{background:#f0efff;color:#5d51d5;border:0;border-radius:8px;padding:8px 12px}.state-card{padding:32px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;color:#66708c}.state-card p{margin:0}.state-card.error{border-color:#ffd9d9;color:#9c3535}.spinner{width:25px;height:25px;border:3px solid #e2e0ff;border-top-color:#6558e8;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal-backdrop{position:fixed;inset:0;background:#0b1025aa;z-index:50;display:grid;place-items:center;padding:20px}.modal{position:relative;width:min(900px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:28px;box-shadow:0 30px 100px #0008}.modal h2{margin-top:0}.modal-close{position:absolute;top:15px;right:16px;border:0;background:transparent;font-size:28px;color:#68718b}.editor-form{display:grid;gap:15px}.editor-form label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#5f6881}.editor-form textarea{min-height:80px;resize:vertical}.editor-form textarea.code{min-height:190px;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.modal-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;min-height:36px;color:#5d6782;font-size:13px}.scrim{display:none}@media(max-width:1050px){.stats-grid{grid-template-columns:repeat(2,1fr)}.page-header{align-items:flex-start;flex-direction:column}.filters{justify-content:flex-start}}@media(max-width:760px){.dashboard-shell{display:block}.sidebar{position:fixed;left:-270px;width:248px;transition:left .2s ease}.sidebar.open{left:0}.scrim{display:block;position:fixed;inset:0;z-index:15;border:0;background:#10152b99}.mobile-bar{display:flex;height:58px;padding:0 18px;align-items:center;gap:14px;background:#fff;border-bottom:1px solid #e8ebf2;position:sticky;top:0;z-index:10}.mobile-bar button{border:0;background:transparent;font-size:21px}.page{padding-top:25px}.stats-grid{grid-template-columns:1fr}.filters input,.filters select,.filters button{flex:1 1 145px}}
