:root{--ink:#242437;--muted:#7a7988;--line:#e9e8ee;--brand:#922442;--brand-dark:#6e1830;--accent:#b84965;--bg:#f6f6f9;--green:#23795a;--red:#ae3a42;--sidebar:242px;font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.2}h2{font-size:22px;letter-spacing:-.4px}h3{font-size:15px}small{font-size:11px}.muted{color:var(--muted);line-height:1.6}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:750;color:var(--brand);display:block;margin-bottom:12px}
#sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);z-index:40;display:flex;flex-direction:column;padding:30px 18px 22px}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750;letter-spacing:-.3px;margin:0 10px 36px}.brand strong{display:block;font-size:9px;font-weight:600;letter-spacing:2.3px;color:var(--muted);margin-top:5px}.brand-icon{background:var(--brand);color:white;width:39px;height:43px;border-radius:10px;display:grid;place-items:center;font-size:15px;letter-spacing:-1px}.nav-label{font-size:9px;letter-spacing:1.6px;color:#a4a0ad;font-weight:700;margin:0 13px 14px}#navigation{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:12px;color:#797381;padding:12px 14px;border-radius:9px;font-size:13px;font-weight:550}.nav-item svg{width:18px;height:18px;flex-shrink:0}.nav-item.active{color:var(--brand);background:#f8eaf0}.nav-item:hover{background:#f5f3f7}.sidebar-bottom{margin-top:auto;padding:22px 12px 0;border-top:1px solid var(--line);font-size:11px;color:#77717f}.sidebar-bottom small{display:block;margin:8px 0 0 13px;color:#a19aa8}.secure-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#2c9570;margin-right:7px}.app-shell{margin-left:var(--sidebar)}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:15px}.breadcrumb{font-size:12px;color:#aaa3ae}.breadcrumb span{margin:0 13px;color:#c4beca}.breadcrumb b{color:#645c6a;font-weight:550}.account-menu{display:flex;align-items:center;gap:13px;font-size:12px;color:#676270}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#f1e5eb;color:#8b3651;font-weight:700}.text-button{border:0;background:none;color:#8c7882;font-size:12px;padding:8px}.icon-button{border:0;background:#f6f3f7;border-radius:8px;padding:8px 11px;font-size:21px;line-height:1;color:#766776}#menuToggle{display:none}#main{max-width:1560px;margin:0 auto;padding:34px 36px;min-height:calc(100vh - 145px)}.app-footer{border-top:1px solid var(--line);padding:20px 36px;color:#a19aa8;font-size:10px;display:flex;justify-content:space-between}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading h1{margin:0 0 9px}.page-heading p{font-size:13px;margin:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #e2dce6;border-radius:8px;padding:11px 15px;color:#65556a;background:#fff;font-weight:600;font-size:12px;line-height:1.4}.button.primary{background:var(--brand);border-color:var(--brand);color:white;box-shadow:0 3px 8px #92244218}.button.primary:hover{background:var(--brand-dark)}.button.danger{color:#b43643;border-color:#e7bfc2;background:#fff7f7}.button.small{font-size:11px;padding:7px 11px}.button.full{width:100%}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:10px;position:relative}.metric .icon{position:absolute;right:20px;top:19px;background:#f9f0f4;color:#a85670;border-radius:8px;padding:9px;width:36px;height:36px;display:grid;place-items:center}.metric .label{font-size:12px;color:#807788;font-weight:600}.metric strong{font-size:34px;line-height:1.3;letter-spacing:-1px}.metric small{color:#a09aaa}.metric .icon svg{width:17px;height:17px}.two-col{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;margin-bottom:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:22px}.panel:last-child{margin-bottom:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.panel-head h3{margin:0}.panel-head .muted{font-size:11px}.list-row{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #f1eef4}.list-row:last-child{border-bottom:0}.list-row strong{display:block;font-size:12px;line-height:1.5}.list-row small{display:block;color:#908697;margin-top:4px}.list-row .row-main{flex:1;min-width:0}.initial{display:grid;place-items:center;flex-shrink:0;width:34px;height:36px;background:#f5edf2;border-radius:8px;color:#965069;font-size:11px;font-weight:700}.badge{display:inline-block;border-radius:5px;padding:4px 8px;font-size:10px;line-height:1.5;font-weight:650;white-space:nowrap;background:#f0eef4;color:#797083}.badge.green{background:#e9f5ee;color:#3b8661}.badge.amber{background:#fff4df;color:#a77b2b}.badge.red{background:#fdebed;color:#b54b55}.badge.blue{background:#edf1fa;color:#5d76b0}.quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quick-link{background:#faf8fb;border:1px solid #ede6ed;border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:9px}.quick-link strong{font-size:12px}.quick-link small{color:#9c8c9a;line-height:1.5}.quick-link .arrow{color:var(--brand)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:650;color:#9c94a4;background:#faf9fc;padding:13px 12px;white-space:nowrap}td{font-size:12px;padding:15px 12px;border-bottom:1px solid #efedf3;vertical-align:middle}td strong{display:block;font-size:12px}td small{display:block;color:#9f94a6;margin-top:5px}td.notes{max-width:280px;white-space:pre-wrap;overflow-wrap:anywhere}.toolbar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.toolbar input{flex:1;min-width:160px}.toolbar select{max-width:220px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#615469;margin-bottom:18px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #ddd6e2;border-radius:7px;background:white;color:#34283d;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #cf9eaf;border-color:transparent}textarea{min-height:95px;resize:vertical}input[type=checkbox]{width:auto;margin:0}label.checkbox{display:flex;flex-direction:row;gap:8px;align-items:center;font-size:12px;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .wide{grid-column:1/-1}.tabs{display:flex;gap:6px;background:#efedf3;padding:5px;border-radius:8px;margin-bottom:22px;width:fit-content}.tabs button{padding:9px 20px;border:0;border-radius:6px;background:none;font-size:12px;color:#8c7d94}.tabs button.active{color:var(--brand);background:#fff;box-shadow:0 2px 4px #0001}.progress{height:5px;background:#eee8f0;border-radius:9px;width:115px;margin-top:7px;overflow:hidden}.progress span{height:100%;display:block;background:#b75b77}.empty{padding:32px 20px;text-align:center;color:#9d92a5;font-size:13px;line-height:1.7}.notice{background:#fcf5e8;color:#91703b;border:1px solid #f0dfbd;border-radius:9px;padding:15px;line-height:1.7;font-size:12px;margin-bottom:20px}.notice.success{background:#eef7f0;color:#447656;border-color:#dbeade}.notice.info{background:#f4f0f8;border-color:#e5dbee;color:#776282}.error-message{color:#aa3148;font-size:13px;line-height:1.6;white-space:pre-wrap;margin:12px 0}.error-message:empty{display:none}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:18px;color:#928498;font-size:12px}dialog{border:1px solid #e5dbe7;border-radius:14px;width:min(780px,95vw);max-height:92vh;padding:0;box-shadow:0 24px 90px #30203330}dialog::backdrop{background:#26202f66;backdrop-filter:blur(2px)}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:23px 28px;border-bottom:1px solid #eee6ee}.modal-header .eyebrow{font-size:8px;margin-bottom:5px}.modal-header h2{font-size:20px;margin:0}#modalBody{padding:25px 28px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid #eee6ee}.permissions{display:grid;grid-template-columns:1fr 1fr;gap:4px 15px;background:#faf7fb;padding:14px;border-radius:9px;margin-bottom:18px}.permissions label{margin-bottom:8px}.step-num{display:inline-grid;place-items:center;background:#f6eaf0;color:#94324f;font-size:12px;width:28px;height:28px;border-radius:50%;margin-right:10px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.account-grid .panel{height:fit-content}.code-box{padding:18px;background:#f6f3f9;border:1px dashed #b991a5;border-radius:8px;font-family:monospace;font-size:14px;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.7}.field-row{display:grid;grid-template-columns:1fr 1.3fr .8fr auto;gap:10px;margin-bottom:10px}.loading{padding:80px;text-align:center;color:#99859b}#toast{position:fixed;bottom:24px;left:calc(50% + 100px);transform:translateX(-50%);background:#312637;color:white;padding:13px 22px;border-radius:9px;font-size:12px;z-index:10000;display:none;max-width:90vw}#toast.show{display:block}#toast.error{background:#a3354b}
.auth-page{min-height:100vh;display:grid;grid-template-columns:46% 54%;background:white}.auth-brand{background:linear-gradient(145deg,#8d2440,#491426);color:white;padding:52px 55px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-brand .brand{margin:0;color:white}.auth-brand .brand-icon{background:#ffffff22}.auth-brand .brand strong{color:#ddb7c3}.auth-brand .eyebrow{color:#e5b9c8;font-size:10px}.auth-brand h1{font-size:44px;line-height:1.2;font-weight:650}.auth-brand p{color:#e2b7c6;line-height:1.8;max-width:370px}.auth-brand>small{color:#c891a2}.auth-main{display:flex;align-items:center;justify-content:center;padding:35px;min-height:100vh}.auth-card{width:100%;max-width:405px}.auth-card h1{font-size:27px}.auth-card>.muted{font-size:13px;margin-bottom:30px}.auth-note{font-size:11px;color:#a28b9c;line-height:1.7;margin-top:20px}.auth-card label small{font-weight:400;color:#9f8fa3}.setup-page{padding:35px 20px}.setup-card{max-width:850px;margin:auto;padding:35px;background:white;border:1px solid var(--line);border-radius:15px}.setup-card .brand{margin-left:0;margin-bottom:28px}.setup-card h3{margin:25px 0 20px}.stack-form{max-width:760px}
@media(max-width:1100px){:root{--sidebar:215px}#main{padding:26px}.metrics{gap:12px}.metric{padding:18px}.metric .icon{display:none}.two-col{grid-template-columns:1fr}.account-grid{grid-template-columns:1fr}.topbar{padding:0 26px}.auth-brand{padding:38px}.auth-brand h1{font-size:34px}}
@media(max-width:760px){#sidebar{transform:translateX(-100%);transition:transform .2s;width:242px;box-shadow:10px 0 50px #0002}body.nav-open #sidebar{transform:none}.app-shell{margin-left:0}.topbar{height:68px;padding:0 16px}.breadcrumb{display:none}.account-menu #userLabel{max-width:125px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#menuToggle{display:block}#main{padding:24px 16px}.page-heading{align-items:flex-start}.page-heading h1{font-size:26px}.page-heading .actions{justify-content:flex-end}.metrics{grid-template-columns:1fr 1fr}.metric strong{font-size:29px}.panel{padding:18px}.quick-links{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.two-col{gap:0}.app-footer{padding:20px 16px}.auth-page{display:block}.auth-brand{min-height:auto;padding:26px}.auth-brand>div:not(.brand),.auth-brand>small{display:none}.auth-main{min-height:calc(100vh - 100px);padding:28px}.form-grid{gap:0}.permissions{grid-template-columns:1fr}.field-row{grid-template-columns:1fr}.modal-header,#modalBody{padding:20px}.setup-card{padding:23px}#toast{left:50%}.page-heading{flex-wrap:wrap}.toolbar select{max-width:none}}
