:root{--primary:#2563eb;--primary-soft:#eff6ff;--bg:#f5f7fb;--surface:#fff;--line:#e5e9f2;--text:#172033;--muted:#6b7280;--sidebar:#f8fafc;--shadow:0 16px 40px rgba(25,34,58,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);padding:18px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:6px;color:var(--text)}.brand>span{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#5b5ce2);color:#fff;font-weight:900}.brand div{display:flex;flex-direction:column}.brand strong{letter-spacing:.08em}.brand small,.userbox small,.muted{color:var(--muted)}nav{display:grid;gap:5px;margin-top:25px}nav a{padding:11px 13px;border-radius:12px;color:#4b5563;display:flex;gap:12px;align-items:center;font-weight:650}nav a:hover{background:#eaf1ff;color:var(--primary)}.userbox{margin-top:auto;border-top:1px solid var(--line);padding-top:14px;display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:12px;background:#dbeafe;color:var(--primary);display:grid;place-items:center;font-weight:800}.userbox div:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}.content{padding:0 28px 40px;min-width:0}.topbar{height:80px;display:flex;justify-content:space-between;align-items:center}.topbar h1{font-size:23px;margin:3px 0}.topbar small,.section-title small{color:var(--muted);font-weight:750;letter-spacing:.08em}.button,button{border:0;border-radius:12px;padding:11px 15px;background:var(--primary);color:#fff;font-weight:750;cursor:pointer}.button.ghost{background:#fff;color:var(--primary);border:1px solid #cddcfb}.hero{background:linear-gradient(135deg,#2563eb,#6264df);color:#fff;padding:28px;border-radius:25px;box-shadow:0 20px 44px rgba(37,99,235,.2)}.hero h2{font-size:30px;margin:6px 0 8px}.hero p{margin:0;color:rgba(255,255,255,.82)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:20px 0}.metric,.panel,.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.metric{padding:18px}.metric small{color:var(--muted)}.metric strong{display:block;font-size:28px;margin-top:5px}.section-title{display:flex;justify-content:space-between;align-items:end;margin:25px 0 13px}.section-title h2{margin:3px 0}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}.card{padding:18px;display:flex;gap:13px;transition:.18s}.card:hover{transform:translateY(-3px);border-color:#bfd0f7}.card>span{width:45px;height:45px;border-radius:14px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-weight:900;flex:none}.card div{display:flex;flex-direction:column}.card small{color:var(--muted);margin-top:4px;line-height:1.4}.card.static:hover{transform:none}.panel{padding:22px}.panel h2{margin-top:0}.grid-2{display:grid;grid-template-columns:360px 1fr;gap:20px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{display:flex;flex-direction:column;gap:6px;font-weight:650;font-size:13px;margin-bottom:12px}input,select,textarea{width:100%;border:1px solid #d9dfeb;border-radius:11px;padding:11px;background:#fff;color:var(--text)}.tenant-list{display:grid;gap:10px}.tenant-list article{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:15px;padding:13px}.tenant-logo{width:42px;height:42px;border-radius:13px;color:#fff;display:grid;place-items:center;font-weight:900}.tenant-list article>div:nth-child(2){display:flex;flex-direction:column;flex:1}.tenant-list small{color:var(--muted)}.tenant-meta{display:flex;gap:8px;align-items:center}.tenant-meta span,.pill,.status{padding:5px 8px;border-radius:999px;background:#f1f4f9;font-size:11px}.pill.ok{background:#e7f8ef;color:#157347}.pill.warn{background:#fff4dc;color:#9a6200}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);font-size:13px}th{color:var(--muted);font-size:11px;text-transform:uppercase}.alert{padding:12px 14px;border-radius:12px;margin:12px 0}.alert.success{background:#e8f8ef;color:#126c43}.alert.danger{background:#fff0f0;color:#a52a31}.login-page,.install-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eef4ff,#f8fafc)}.login-card,.install-card{width:min(460px,92vw);background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 24px 70px rgba(30,45,80,.14)}.install-card{width:min(760px,94vw)}.login-card h1,.install-card h1{margin-top:25px}.login-card button,.install-card button{width:100%;margin-top:5px}@media(max-width:900px){.shell{grid-template-columns:80px 1fr}.sidebar .brand div,.sidebar nav span,.userbox div:nth-child(2){display:none}.grid-2{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.content{padding:0 15px 30px}}@media(max-width:560px){.shell{grid-template-columns:1fr}.sidebar{display:none}.metrics{grid-template-columns:1fr 1fr}.top-actions{display:none}.hero h2{font-size:24px}.grid{grid-template-columns:1fr}}
.nav-label{margin:18px 12px 4px;color:#94a3b8;font-size:10px;font-weight:850;letter-spacing:.12em}
.tenant-pill{background:var(--primary-soft);color:var(--primary);padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;text-transform:uppercase}
.section-title.compact{margin-top:0}.mini-button{display:inline-flex;border:1px solid #d7deeb;border-radius:9px;padding:7px 10px;background:#fff;color:#475569;font-size:11px;font-weight:750;white-space:nowrap}.mini-button.primary{background:var(--primary);border-color:var(--primary);color:#fff}.progress-line{height:5px;background:#e8edf5;border-radius:99px;margin-top:7px;overflow:hidden}.progress-line span{display:block;height:100%;background:var(--primary);border-radius:99px}.tenant-list article>div:nth-child(2){min-width:180px}.tenant-list article>div:nth-child(2) .progress-line{max-width:220px}.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}.plan-card{height:max-content}.plan-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.plan-head h2{margin:3px 0 15px}.check{flex-direction:row;align-items:center}.check input{width:auto}.onboarding-summary{display:flex;align-items:center;justify-content:space-between;gap:30px}.progress-large{height:12px;background:#e8edf5;border-radius:99px;overflow:hidden;flex:1}.progress-large span{display:block;height:100%;background:linear-gradient(90deg,var(--primary),#5b5ce2)}.onboarding-list{display:grid;gap:10px;margin-top:20px}.onboarding-list article{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:15px;padding:14px}.onboarding-list article.done{background:#f0fbf5;border-color:#bde8cf}.step-number{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-weight:900}.onboarding-list article>div:nth-child(2){display:flex;flex-direction:column;flex:1}.onboarding-list small{color:var(--muted)}.module-toggle{margin-left:auto}.tenant-hero{display:flex;flex-direction:column;align-items:flex-start}.hero-actions{margin-top:15px}.button.light{background:#fff;color:#334155}.brand-preview{height:420px;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:grid;grid-template-columns:145px 1fr;background:#f5f7fb}.preview-sidebar{background:#f8fafc;padding:16px 12px;display:flex;flex-direction:column;gap:12px;color:#475569}.preview-logo{width:38px;height:38px;border-radius:12px;background:var(--preview-primary);color:white;display:grid;place-items:center;font-weight:900}.preview-sidebar span{padding:8px;border-radius:8px;font-size:12px}.preview-sidebar span:first-of-type{background:var(--preview-soft);color:var(--preview-primary)}.preview-content{padding:18px}.preview-hero{background:linear-gradient(135deg,var(--preview-primary),#5b5ce2);color:#fff;border-radius:15px;padding:20px;display:flex;flex-direction:column;gap:6px}.preview-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.preview-cards i{height:75px;background:#fff;border:1px solid var(--line);border-radius:12px}.alert.warn{background:#fff5df;color:#885900}
@media(max-width:1100px){.tenant-meta{flex-wrap:wrap}.plan-grid{grid-template-columns:1fr}.brand-preview{height:360px}}
@media(max-width:700px){.onboarding-summary{flex-direction:column;align-items:stretch}.tenant-list article{align-items:flex-start;flex-wrap:wrap}.tenant-meta{width:100%}}

.dashboard-list{display:grid;gap:12px}
.dashboard-list>div{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e7eaf0}
.dashboard-list>div:last-child{border-bottom:0}
.timeline{position:relative;margin-left:12px}
.timeline:before{content:"";position:absolute;left:9px;top:0;bottom:0;width:2px;background:#dbe3ee}
.timeline article{position:relative;display:grid;grid-template-columns:24px 1fr;gap:14px;padding:0 0 24px}
.timeline-dot{width:20px;height:20px;border-radius:50%;background:var(--primary);border:4px solid #fff;box-shadow:0 0 0 2px var(--primary);z-index:1}
.timeline article strong{display:block;margin:4px 0}
.timeline article p{margin:4px 0;color:#596579}
.timeline article span{display:inline-block;padding:4px 8px;border-radius:999px;background:var(--primary-soft);font-size:12px}

.integration-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.integration-grid article{display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.integration-grid article>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#eef2ff;color:var(--primary);font-weight:700}
.integration-grid article strong,.integration-grid article small{display:block}
.integration-grid article small{margin-top:4px;color:#64748b}
.integration-grid article.inactive{opacity:.55}
pre{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;padding:16px;border-radius:12px;overflow:auto}
code{word-break:break-all}

.portal-profile{display:flex;align-items:center;gap:12px}.portal-profile strong,.portal-profile small{display:block}

.integration-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:18px}.integration-catalog>.panel{margin:0}
