@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{--brand:#6366f1;--brand-light:#a5b4fc;--ink:#101b32;--muted:#64748b;--line:#e2e8f0;--surface:#fff;--canvas:#f5f7fc}
*{box-sizing:border-box}
body{font-family:Inter,ui-sans-serif,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #818cf8;outline-offset:4px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #818cf8;outline-offset:2px}
button:disabled{cursor:not-allowed}
.brand-mark{display:inline-grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#6366f1,#8b5cf6);color:white;font-size:17px;font-weight:800;letter-spacing:-2px;box-shadow:0 6px 20px #6366f126}
.brand-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;font-size:19px;font-weight:750;letter-spacing:-.6px}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#818cf8}
.workspace-sidebar{position:fixed;inset:0 auto 0 0;width:240px;z-index:45;background:#101a2e;border-right:1px solid #23304b;padding:30px 20px;display:flex;flex-direction:column;color:#c6d0e5}
.sidebar-toggle{position:absolute;top:32px;right:-15px;z-index:2;display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border:1px solid #33415c;border-radius:8px;background:#18233a;color:#aebbd3;box-shadow:0 6px 18px #050a1466;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,transform .15s}
.sidebar-toggle:hover{border-color:#6366f1;background:#242f4b;color:#fff;transform:scale(1.04)}
.sidebar-toggle:focus-visible{outline:2px solid #818cf8;outline-offset:3px}
.sidebar-toggle .fa-solid{width:12px;font-size:12px;line-height:1}
.workspace-sidebar nav{display:grid;gap:7px;margin-top:42px}
.workspace-sidebar nav a{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:11px;color:#a4b2cd;text-decoration:none;font-size:13px;font-weight:550;transition:.2s}
.workspace-sidebar nav a:hover{background:#1c2943;color:#fff}
.workspace-sidebar nav a.active{background:#6366f11f;color:#b6bcff;border:1px solid #6366f13d}
.nav-symbol{width:20px;height:20px;flex-shrink:0}
.sidebar-brand-text,.sidebar-link-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-sidebar.workspace-sidebar-collapsed{width:82px;padding-left:16px;padding-right:16px}
.workspace-sidebar-collapsed .eyebrow,.workspace-sidebar-collapsed .sidebar-help,.workspace-sidebar-collapsed .sidebar-link-text,.workspace-sidebar-collapsed .sidebar-brand-text{display:none}
.workspace-sidebar-collapsed .brand-link{justify-content:center}
.workspace-sidebar-collapsed nav{gap:10px;margin-top:32px}
.workspace-sidebar-collapsed nav a{padding-left:12px;padding-right:12px;justify-content:center}
.workspace-sidebar-collapsed .nav-symbol{width:20px;height:20px}
.sidebar-help{margin-top:auto;border:1px solid #2b3853;padding:18px;border-radius:14px;background:linear-gradient(145deg,#1c2943,#141e33);font-size:12px;line-height:1.7}
.sidebar-help strong{display:block;color:#e8ecf8;margin-bottom:6px}
.sidebar-help a{display:inline-block;color:#b6bcff;margin-top:12px;text-decoration:none;font-weight:600}
.workspace-dashboard{background:#0c1426!important;color:#edf1fa}
.workspace-dashboard>div{padding-left:240px}
.workspace-dashboard header{background:#0c1426ed!important}
.workspace-dashboard main{max-width:1500px;padding:36px 40px}
.workspace-dashboard .status-dot{background:#818cf8;box-shadow:0 0 0 3px #818cf81a;animation:none}
.workspace-dashboard .shadow-xl{box-shadow:0 8px 28px #00000012}
.workspace-dashboard .bg-gradient-to-br{background:#162138}
.workspace-dashboard .bg-gradient-to-b{opacity:.4}
.workspace-dashboard .dashboard-sidebar-collapsed{padding-left:82px}
.stat-dot{width:14px;height:14px;flex-shrink:0;color:var(--line, #a4b2cd)}
.stat-dot-online{color:#a5b4fc}
.stat-dot-off{color:#f9bd3e}
.workspace-dashboard .overview-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}
.overview-heading h2{font-size:30px;line-height:1.2;font-weight:700;letter-spacing:-1px;margin:8px 0 10px}
.overview-heading p{font-size:13px;line-height:1.7;color:#96a5c2;max-width:580px}
.overview-note{font-size:11px!important;white-space:nowrap;border:1px solid #2b3853;border-radius:30px;padding:9px 14px}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.stat-card{position:relative;overflow:hidden;background:#162138;border:1px solid #293650;border-radius:16px;padding:22px}
.stat-card .stat-label{font-size:12px;color:#a4b2cd;display:flex;justify-content:space-between;gap:8px}
.stat-card strong{display:block;font-size:34px;font-weight:650;letter-spacing:-1.5px;margin:14px 0 5px;line-height:1.1}
.stat-card small{font-size:11px;color:#96a5c2}
.stat-card:first-child{background:linear-gradient(120deg,#37328b,#242450);border-color:#5850a0}
.stat-card:first-child .stat-label,.stat-card:first-child small{color:#d0d0fc}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:34px 0 16px}
.section-heading h2{font-size:18px;font-weight:650;letter-spacing:-.4px}
.section-heading p{font-size:12px;color:#96a5c2;margin-top:5px}
.instance-filters{display:flex;gap:10px;align-items:center}
.instance-filters input,.instance-filters select{background:#162138;border:1px solid #2b3853;border-radius:10px;min-height:44px;color:#d8e0f0;font-size:12px;padding:10px 13px;min-width:0}
.instance-filters input{width:240px}
.instance-filters input::placeholder{color:#96a5c2}
.quickstart-banner{margin-top:30px;border:1px solid #293650;border-radius:16px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(110deg,#18233a,#1b2345)}
.quickstart-banner h3{font-weight:600;font-size:15px;margin:0 0 7px}
.quickstart-banner p{font-size:12px;color:#a4b2cd;line-height:1.7}
.quickstart-banner a{white-space:nowrap;border:1px solid #4c4d8a;border-radius:10px;padding:11px 17px;color:#c7d2fe;font-size:12px;text-decoration:none}
.workspace-dashboard [role=dialog] button,.workspace-dashboard [role=dialog] input:not([type=checkbox]){min-height:44px}
.workspace-dashboard [role=dialog] .overflow-y-auto{overscroll-behavior:contain}
.workspace-dashboard .fixed.inset-0{overflow-y:auto}
.workspace-dashboard .fixed.inset-0>div{max-height:calc(100dvh - 32px);overflow-y:auto}
.workspace-dashboard input[type=checkbox]{accent-color:#6366f1}
.workspace-dashboard .logs-container{overflow-wrap:anywhere}
.guest-page{min-height:100dvh;margin:0;color:var(--ink);background:radial-gradient(ellipse at 10% 0%,#e7e8ff,transparent 50%),var(--canvas)}
.guest-nav{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:auto;padding:28px 32px;gap:16px}
.guest-nav>a:last-child{font-size:13px;color:#52617d;text-decoration:none}
.guest-layout{max-width:1160px;min-height:calc(100dvh - 170px);margin:auto;padding:48px 32px;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:90px}
.guest-story h1{font-size:clamp(36px,4.5vw,60px);line-height:1.09;font-weight:750;letter-spacing:-2.5px;margin:20px 0 24px}
.guest-story h1 span{color:#5752d6}
.guest-story>p{font-size:16px;line-height:1.85;color:var(--muted);max-width:470px}
.guest-features{display:grid;gap:20px;margin-top:36px}
.guest-feature{display:flex;gap:14px;align-items:start}
.guest-feature>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e5e7ff;color:#5752d6;flex-shrink:0;font-size:13px;font-weight:700}
.guest-feature strong{display:block;font-size:13px;margin:0 0 5px}
.guest-feature p{margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
.auth-card{background:white;padding:36px;border:1px solid #e0e5f0;border-radius:24px;box-shadow:0 24px 70px #3445770c}
.auth-card h2{font-size:24px;font-weight:700;letter-spacing:-.6px;margin:22px 0 8px}
.auth-card>p{color:var(--muted);font-size:13px;line-height:1.8;margin:0 0 26px}
.auth-card label{display:block;font-size:12px;font-weight:600;margin-bottom:9px}
.auth-field{position:relative}
.auth-field input{width:100%;padding:14px 75px 14px 14px;border:1px solid #dce2ed;border-radius:11px;font:inherit;font-size:14px;background:#fafbfe;color:var(--ink)}
.auth-field button{position:absolute;right:7px;top:5px;bottom:5px;border:0;background:transparent;color:#5752d6;font-size:11px;padding:8px;cursor:pointer}
.primary-link,.auth-submit{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#5752d6;border:0;border-radius:11px;color:white;text-decoration:none;padding:14px 22px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:46px}
.auth-submit{width:100%;margin-top:22px}
.auth-submit:hover,.primary-link:hover{background:#4842bb}
.auth-submit:disabled{opacity:.6}
.auth-footnote{margin-top:25px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.8}
.auth-error{padding:12px 14px;margin-bottom:18px;border:1px solid #fecdd3;border-radius:10px;background:#fff1f2;color:#be123c;font-size:12px;line-height:1.7}
.guest-footer{max-width:1160px;margin:auto;padding:20px 32px;color:var(--muted);font-size:11px;display:flex;justify-content:space-between;gap:16px}
.landing-preview{background:#101a2e;border:1px solid #293650;color:#edf1fa;border-radius:24px;padding:28px;box-shadow:0 30px 60px #25336025;transform:rotate(-2deg)}
.landing-preview .preview-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #2b3853;padding-bottom:20px;font-size:13px}
.landing-preview .preview-row{margin-top:16px;padding:18px;border:1px solid #2b3853;border-radius:12px;background:#18233a}
.landing-preview .preview-row strong{display:block;font-size:13px;margin-bottom:8px}
.landing-preview .preview-row p{font-size:12px;color:#a4b2cd;margin:0;line-height:1.7}
.landing-preview small{display:block;color:#a4b2cd;margin-top:22px;font-size:10px;line-height:1.6}
.landing-actions{display:flex;gap:18px;align-items:center;margin-top:30px;flex-wrap:wrap}
.landing-actions>a:last-child{font-size:13px;color:#5752d6;text-decoration:none}
[x-cloak]{display:none!important}
.instance-grid button{min-height:40px}
@media(min-width:1500px){.workspace-dashboard main{padding-top:42px}}
@media(max-width:1200px){.workspace-sidebar{width:205px;padding:26px 16px}.workspace-dashboard>div{padding-left:205px}.workspace-dashboard main{padding:28px 24px}.overview-note{display:none}.section-heading{align-items:flex-start;flex-direction:column}.instance-filters{width:100%}.instance-filters input{flex:1}.stats-grid{gap:12px}.stat-card{padding:18px}.guest-layout{gap:40px}.workspace-dashboard .dashboard-sidebar-collapsed{padding-left:82px}}
@media(max-width:900px){.workspace-sidebar{display:none}.workspace-dashboard>div{padding-left:0}.guest-layout{grid-template-columns:1fr;gap:36px;max-width:640px;padding-top:20px}.guest-story h1{font-size:40px}.guest-features{display:none}.landing-preview{transform:none}.guest-story>p{max-width:none}}
@media(max-width:600px){.workspace-dashboard main{padding:24px 16px}.workspace-dashboard header>div{flex-wrap:wrap}.workspace-dashboard header button,.workspace-dashboard header a{min-height:40px;min-width:40px}.workspace-dashboard .overview-heading{margin-bottom:20px}.overview-heading h2{font-size:26px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:17px}.stat-card strong{font-size:29px}.stat-card small{font-size:10px}.instance-filters{flex-direction:column}.instance-filters input,.instance-filters select{width:100%;flex:auto}.quickstart-banner{padding:20px;align-items:stretch;flex-direction:column;gap:16px}.quickstart-banner a{text-align:center}.guest-nav{padding:20px}.guest-layout{padding:20px;gap:28px}.guest-story h1{font-size:35px;letter-spacing:-1.5px}.guest-story>p{font-size:14px}.auth-card{padding:25px;border-radius:20px}.guest-footer{padding:20px;flex-wrap:wrap}.workspace-dashboard .fixed.top-4{max-width:calc(100vw - 32px)}.workspace-dashboard .font-mono{overflow-wrap:anywhere}.workspace-dashboard [role=dialog]{padding:16px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:900px){.workspace-dashboard .dashboard-sidebar-collapsed{padding-left:0}.sidebar-toggle{display:none}}