:root{color-scheme:light;--brand:#6366f1;--brand-strong:#4f46e5;--brand-soft:#eef0ff;--ink:#1e1b4b;--muted:#64748b;--bg:#f5f7fc;--surface:#fff;--border:#e8edf6;--green:#16a34a;--red:#dc2626;--shadow:0 12px 38px rgba(30,27,75,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Vazirmatn,Tahoma,"Segoe UI",sans-serif;line-height:1.7}body.dark{color-scheme:dark;--ink:#e8ebff;--muted:#a2acc7;--bg:#0c1122;--surface:#171e32;--border:#2b3553;--brand-soft:#292b53;--shadow:0 12px 30px rgba(0,0,0,.18)}
button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}svg{flex-shrink:0}strong,b{font-weight:700}.muted{color:var(--muted)}.eyebrow{font-size:12px;color:var(--muted);font-weight:700}.small{font-size:12px}.ltr{direction:ltr;unicode-bidi:embed}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.layout{display:grid;grid-template-columns:258px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;gap:24px;background:var(--surface);height:100vh;padding:27px 17px 20px;border-left:1px solid var(--border);z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 18px;border-bottom:1px solid var(--border)}.brand-icon{height:42px;width:42px;border-radius:13px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#6366f1,#4338ca);box-shadow:0 6px 16px rgba(99,102,241,.23)}.brand strong{font-size:20px;letter-spacing:-.4px}.brand small{display:block;font-size:11px;color:var(--muted);line-height:1.2}.side-group{margin:0 11px 8px;color:#9aa4b8;font-size:11px;font-weight:700;letter-spacing:.15px}.side-links{display:flex;flex-direction:column;gap:5px}.side-link{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:10px;font-size:13px;font-weight:600;color:var(--muted);transition:.2s}.side-link svg{width:19px;height:19px}.side-link:hover{background:var(--brand-soft);color:var(--brand-strong)}.side-link.active{background:var(--brand-strong);color:#fff;box-shadow:0 6px 15px rgba(79,70,229,.17)}.side-link .arrow{margin-inline-start:auto;width:15px;opacity:.6}.side-bottom{margin-top:auto;background:var(--brand-soft);border-radius:15px;padding:17px;color:var(--ink)}.side-bottom strong{font-size:14px}.side-bottom p{color:var(--muted);font-size:12px;margin:7px 0 12px}.side-bottom a{font-size:12px;color:var(--brand-strong);font-weight:700}.sidebar-footer{font-size:11px;color:var(--muted);text-align:center}
.main{min-width:0}.topbar{height:78px;display:flex;align-items:center;gap:15px;justify-content:space-between;background:var(--surface);border-bottom:1px solid var(--border);padding:0 33px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:15px}.crumb{color:var(--muted);font-size:13px}.crumb strong{color:var(--ink)}.search-wrap{display:flex;align-items:center;gap:9px;border:1px solid var(--border);background:var(--bg);padding:9px 14px;border-radius:11px;min-width:210px}.search-wrap input{background:transparent;border:0;outline:0;color:var(--ink);min-width:0;width:175px;font-size:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);background:var(--surface);color:var(--muted);width:40px;height:40px;border-radius:11px}.icon-button:hover{color:var(--brand);border-color:var(--brand)}.status-dot{height:8px;width:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(22,163,74,.10)}.profile{display:flex;align-items:center;gap:9px;border-right:1px solid var(--border);padding-right:16px}.profile-avatar{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:var(--brand-soft);color:var(--brand);font-weight:800}.profile span{display:block;font-size:12px;font-weight:700}.profile small{display:block;color:var(--muted);font-size:11px}
.content{max-width:1600px;margin:auto;padding:27px 33px 46px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.page-head h1{font-size:25px;letter-spacing:-.7px;margin:0}.page-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.button{border:0;border-radius:10px;background:var(--brand);color:#fff;padding:10px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:700;transition:.2s;min-height:40px}.button:hover{background:var(--brand-strong);transform:translateY(-1px)}.button.ghost{background:var(--brand-soft);color:var(--brand-strong)}.button.ghost:hover{background:#e0e4ff}.button.danger{background:#fff0f0;color:var(--red)}.button.danger:hover{background:#ffe3e3}.button.sm{padding:7px 11px;min-height:33px}.button:disabled{opacity:.4;cursor:not-allowed}.section-title{font-size:17px;margin:0 0 14px;font-weight:800;letter-spacing:-.2px}.section-subtitle{color:var(--muted);font-size:12px;margin:-7px 0 18px}.section{scroll-margin-top:26px;margin-bottom:26px}
.hero{position:relative;overflow:hidden;min-height:195px;padding:33px 35px;border-radius:17px;background:linear-gradient(115deg,#1e1b4b 0%,#4338ca 48%,#818cf8 110%);color:#fff;box-shadow:0 14px 26px rgba(67,56,202,.15)}.hero:before{content:"";position:absolute;left:-6%;bottom:-190px;width:65%;height:350px;border:1px solid rgba(255,255,255,.12);border-radius:48%;transform:rotate(-23deg)}.hero:after{content:"";position:absolute;left:10%;top:-230px;width:67%;height:500px;background:radial-gradient(ellipse,rgba(255,255,255,.16),transparent 66%);transform:rotate(-28deg)}.hero-content{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero h2{font-size:25px;letter-spacing:-.6px;margin:0 0 9px}.hero p{font-size:13px;line-height:2;color:#e4e5ff;max-width:530px;margin:0 0 18px}.hero-mark{font-size:90px;font-weight:900;letter-spacing:-12px;line-height:1;color:rgba(255,255,255,.12);transform:rotate(-10deg);padding-left:50px}.hero-badge{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.25);border-radius:25px;padding:7px 12px;background:rgba(255,255,255,.10);font-size:12px;font-weight:600}.hero-badge .status-dot{background:#4ade80}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:-19px 17px 23px;position:relative;z-index:3}.stat-card,.panel{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:15px}.stat-card{padding:20px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-height:126px}.stat-card .number{font-size:27px;font-weight:850;line-height:1.4;margin-top:5px;letter-spacing:-1px}.stat-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:var(--brand-soft);color:var(--brand)}.stat-icon.green{background:rgba(22,163,74,.10);color:var(--green)}.stat-icon.teal{background:rgba(13,148,136,.10);color:#0d9488}.stat-icon.orange{background:rgba(234,179,8,.13);color:#d97706}.stat-bottom{font-size:11px;color:var(--muted);margin-top:6px}.cols{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.9fr);gap:19px}.panel{padding:22px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px}.panel h3{margin:0;font-size:16px;font-weight:800}.pill{padding:5px 11px;border-radius:30px;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:800}.pill.green{background:rgba(22,163,74,.1);color:var(--green)}.pill.red{background:#fff0f0;color:var(--red)}.pill.gray{background:var(--bg);color:var(--muted)}.chart-wrap{width:100%;overflow:hidden}.chart-svg{display:block;width:100%;height:auto;max-height:260px}.chart-grid{stroke:var(--border);stroke-width:1}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;gap:6px}.chart-note{font-size:12px;color:var(--muted);margin:14px 0 0}.link-box{border:1px dashed var(--border);border-radius:12px;padding:12px;display:flex;align-items:center;gap:8px;background:var(--bg);justify-content:space-between;margin-bottom:14px}.link-box code{font-size:11px;overflow-wrap:anywhere;color:var(--ink)}.helper-card{padding:13px 15px;background:var(--brand-soft);border-radius:12px;margin-top:14px;color:var(--ink);font-size:12px}.helper-card p{margin:5px 0 0;color:var(--muted)}.state-card{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:13px 0;border-bottom:1px solid var(--border)}.state-card:last-child{border-bottom:0}.state-card .label{font-size:12px;color:var(--muted)}.state-card strong{font-size:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:23px 0 12px}.section-heading h2{margin:0;font-size:18px}.section-heading p{margin:3px 0 0;font-size:12px;color:var(--muted)}.forms-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:20px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.field label{font-size:12px;font-weight:700}.field input{width:100%;border:1px solid var(--border);outline:none;background:var(--bg);color:var(--ink);border-radius:10px;padding:12px 14px;font-size:13px;min-height:44px}.field input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(99,102,241,.09)}.field small{color:var(--muted);font-size:11px}.empty{padding:35px 20px;text-align:center;background:var(--bg);border:1px dashed var(--border);border-radius:12px;color:var(--muted)}.empty strong{color:var(--ink);display:block;margin-top:10px}.empty p{font-size:12px;margin:5px auto 0;max-width:340px}.key-row{border:1px solid var(--border);border-radius:12px;padding:16px;margin-top:10px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.key-detail{display:flex;gap:10px;align-items:center;min-width:0}.key-icon{display:grid;place-items:center;width:41px;height:41px;border-radius:11px;background:var(--brand-soft);color:var(--brand)}.key-row .key-name{font-weight:700;font-size:13px;overflow-wrap:anywhere}.key-row small{color:var(--muted);display:block;font-size:11px}.key-actions{display:flex;gap:6px;flex-wrap:wrap}.key-actions form{display:contents}.key-actions button{font-size:11px}.event-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--border)}.event-row:last-child{border:0}.event-bubble{height:34px;width:34px;border-radius:11px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}.event-details{flex:1;min-width:0}.event-details b{font-size:12px}.event-details small{display:block;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.event-time{font-size:10px;color:var(--muted);white-space:nowrap}.footer{color:var(--muted);font-size:11px;text-align:center;margin-top:27px}.theme-dark-text{display:none}body.dark .theme-dark-text{display:inline}body.dark .theme-light-text{display:none}.toast{position:fixed;bottom:25px;left:25px;background:#1e1b4b;color:white;border-radius:11px;padding:11px 18px;font-size:12px;z-index:99;box-shadow:0 10px 30px rgba(0,0,0,.15)}[hidden]{display:none!important}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 12% 13%,rgba(129,140,248,.15),transparent 35%),var(--bg)}.auth-card{max-width:460px;width:100%;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);padding:31px;border-radius:19px}.auth-card h1,.auth-card h2{font-size:23px;line-height:1.5}.auth-card p{color:var(--muted);font-size:13px}.auth-card form{display:grid;gap:10px}.auth-card input:not([type=hidden]){width:100%;border:1px solid var(--border);background:var(--bg);color:var(--ink);border-radius:10px;padding:12px;outline:0}.auth-card button{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--brand);color:#fff;border-radius:10px;padding:12px;font-weight:700}.auth-card a{color:var(--brand);font-weight:700}.auth-card pre{white-space:pre-wrap;overflow-wrap:anywhere}.auth-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:var(--brand);color:#fff;font-size:25px;font-weight:800}
@media(max-width:1250px){.layout{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:20px 12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:15px 0 24px}.cols{grid-template-columns:1fr}.forms-grid{grid-template-columns:1fr}}
@media(max-width:760px){.layout{display:block}.sidebar{position:relative;height:auto;padding:12px 15px;gap:9px;border-left:none;border-bottom:1px solid var(--border)}.brand{border:0;padding:0 0 5px}.side-group,.side-bottom,.sidebar-footer{display:none}.side-links{display:flex;flex-direction:row;overflow-x:auto;white-space:nowrap;gap:5px;padding-bottom:3px}.side-link{font-size:11px;padding:9px;gap:5px}.side-link svg{width:15px;height:15px}.side-link .arrow{display:none}.topbar{padding:0 16px;height:61px}.topbar .search-wrap{min-width:0;padding:7px}.search-wrap input{width:100px}.profile>div:last-child{display:none}.profile{padding-right:0}.content{padding:18px 15px 30px}.page-head{align-items:flex-start}.page-head h1{font-size:22px}.page-head p{font-size:11px}.hero{padding:24px;min-height:180px}.hero h2{font-size:21px}.hero-mark{display:none}.stats{gap:10px}.stat-card{padding:14px;min-height:115px}.stat-card .number{font-size:22px}.stat-icon{width:35px;height:35px}.stat-icon svg{width:18px}.panel{padding:18px}.section-heading{align-items:flex-start}.key-actions button{font-size:10px;padding:7px}.search-wrap input{min-width:0}}
