:root{--nav:#071d39;--nav2:#0d294b;--gold:#e6a900;--blue:#0968c9;--bg:#eef3f9;--card:#fff;--line:#d6e0eb;--text:#10213b;--muted:#64748b;--danger:#b42318}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);background:var(--bg)}button,input,select{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:linear-gradient(180deg,var(--nav),#06172d);color:#dce8f6;z-index:100;display:flex;flex-direction:column;border-right:1px solid #173755}.sidebar-brand{height:78px;padding:15px 16px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #25415f}.sidebar-brand>span{width:42px;height:42px;border-radius:12px;background:#fff;color:#8c6a00;display:grid;place-items:center;font-weight:900}.sidebar-brand strong{display:block;color:#fff;font-size:16px}.sidebar-brand small{display:block;color:#f5c428;font-size:9px;font-weight:800;letter-spacing:.08em;margin-top:3px}.sidebar nav{padding:12px 9px;overflow:auto;flex:1}.sidebar nav a{display:grid;grid-template-columns:24px 1fr 14px;align-items:center;gap:8px;color:#ccd9e8;text-decoration:none;padding:11px 10px;margin:3px 0;border-radius:10px;font-size:12px;font-weight:700}.sidebar nav a:hover,.sidebar nav a.active{background:#19395e;color:#fff}.sidebar nav a.active{box-shadow:inset 3px 0 var(--gold)}.sidebar nav i:first-child{color:#7dbbf2}.nav-arrow{font-size:9px;opacity:.5}.sidebar-user{padding:12px;display:grid;grid-template-columns:34px 1fr 28px;align-items:center;gap:8px;border-top:1px solid #25415f}.sidebar-user .avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#09203e;font-weight:900}.sidebar-user strong,.sidebar-user small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user strong{font-size:11px;color:#fff}.sidebar-user small{font-size:9px;color:#9fb1c6}.sidebar-user a{color:#dce8f6}.main{margin-left:244px;min-height:100vh}.topbar{height:72px;padding:0 24px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:13px;position:sticky;top:0;z-index:50}.topbar strong,.topbar small{display:block}.topbar strong{font-size:16px}.topbar small{font-size:11px;color:var(--muted);margin-top:3px}.topbar .master-badge{margin-left:auto;background:#fff8db;color:#7a5a00;border:1px solid #f1d36b;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:900}.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:10px;display:grid;place-items:center;cursor:pointer}.icon-btn:hover{background:#f5f8fb}.icon-btn.danger{color:var(--danger)}#menuBtn{display:none}.content{padding:26px;max-width:1600px;margin:auto}.content.loading{opacity:.55}.content-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:.12em;color:#a77800;font-weight:900}.content-head h1{font-size:30px;margin:5px 0 6px}.content-head p{margin:0;color:var(--muted)}.search{width:min(330px,100%);height:44px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:9px;padding:0 13px}.search input{border:0;outline:0;width:100%;background:transparent}.module-section{margin:0 0 30px}.section-title{display:flex;align-items:center;gap:10px;margin:0 0 11px;color:#47617f}.section-title span{font-size:11px;font-weight:900;letter-spacing:.12em}.section-title small{font-size:10px;background:#e5edf5;border-radius:999px;padding:4px 7px}.module-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px}.module-card{min-height:128px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px;text-align:left;display:grid;grid-template-columns:48px 1fr 18px;gap:12px;align-items:center;cursor:pointer;box-shadow:0 4px 16px rgba(15,35,60,.04);transition:.18s}.module-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,35,60,.10);border-color:#a9c7e5}.module-card[hidden]{display:none}.card-icon{width:48px;height:48px;border-radius:13px;background:#eaf4ff;color:#0865be;display:grid;place-items:center;font-size:19px}.card-body{min-width:0}.scope-badge{display:inline-block;font-size:9px;font-weight:900;letter-spacing:.07em;color:#496581;background:#edf2f7;border-radius:999px;padding:4px 7px;margin-bottom:6px}.scope-badge.web{color:#1663a8;background:#e8f3ff}.card-body strong,.card-body small{display:block}.card-body strong{font-size:15px;margin-bottom:5px}.card-body small{font-size:11px;line-height:1.35;color:var(--muted)}.card-arrow{color:#cf8c00}.empty,.alert{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.alert.error{background:#fff2f0;border-color:#f4c7c3;color:var(--danger)}.module-modal{position:fixed;inset:0;background:rgba(2,12,27,.72);z-index:1000;display:none;padding:16px}.module-modal.open{display:flex}.modal-window{width:100%;height:100%;background:#fff;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 30px 80px #0008}.modal-head{height:62px;flex:0 0 62px;padding:0 14px 0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.modal-head strong{display:block;font-size:16px}.modal-head .scope-badge{margin:0 0 3px}.modal-actions{display:flex;gap:7px}.module-modal iframe{width:100%;height:calc(100% - 62px);border:0;background:#eef3f8}.modal-open{overflow:hidden}.login-page{display:grid;place-items:center;min-height:100vh;background:radial-gradient(circle at top,#173b65,#07182d 60%)}.login-card{width:min(400px,calc(100% - 30px));background:#fff;padding:30px;border-radius:20px;box-shadow:0 25px 70px #0008}.brand-mark{width:55px;height:55px;border-radius:15px;background:var(--nav);color:#f0bd1b;display:grid;place-items:center;font-weight:900}.login-card h1{margin:18px 0 4px}.login-card p{margin:0 0 20px;color:var(--muted)}.login-card label{display:block;font-size:12px;font-weight:800;margin:13px 0}.login-card input,.form-control{display:block;width:100%;padding:11px 12px;border:1px solid #cbd7e3;border-radius:10px;margin-top:6px}.primary-btn,.btn{border:0;border-radius:10px;padding:11px 14px;background:var(--blue);color:#fff;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:7px}.primary-btn{width:100%;justify-content:center;margin-top:12px}.btn.secondary{background:#e9eff6;color:#19324f}.btn.danger{background:#fff0ee;color:var(--danger);border:1px solid #f3c2bd}.native-page{padding:22px;background:#eef3f8;min-height:100vh}.native-head{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:18px}.native-head h1{margin:0 0 5px}.native-head p{margin:0;color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;margin-bottom:15px}.panel h2{margin-top:0}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:850px}.data-table th,.data-table td{padding:10px;border-bottom:1px solid #e9eef4;text-align:left;font-size:12px;vertical-align:top}.data-table th{font-size:10px;letter-spacing:.06em;color:#60748b}.status{display:inline-block;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:900}.status.on{background:#dcf7e8;color:#087a55}.status.off{background:#edf0f4;color:#667085}.inline-actions{display:flex;gap:6px;flex-wrap:wrap}.inline-actions form{display:inline}.btn.small{padding:7px 9px;font-size:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid .full{grid-column:1/-1}.notice{background:#fff8df;border:1px solid #f1d78c;border-radius:10px;padding:11px;color:#6e5200;font-size:12px}@media(max-width:1300px){.module-grid{grid-template-columns:repeat(3,minmax(220px,1fr))}}@media(max-width:980px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar-open .sidebar{transform:none}.main{margin-left:0}#menuBtn{display:grid}.module-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.content{padding:18px}.content-head{align-items:stretch;flex-direction:column}.search{width:100%}}@media(max-width:620px){.module-grid{grid-template-columns:1fr}.topbar{padding:0 12px}.topbar small,.master-badge{display:none!important}.content{padding:14px}.content-head h1{font-size:24px}.module-modal{padding:0}.modal-window{border-radius:0}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}
