:root {
  --desktop-canvas: 1920px;
  --desktop-sidebar: 260px;
  --bg: #07101f;
  --bg-deep: #050b16;
  --surface: #0d192b;
  --surface-2: #122139;
  --surface-3: #172843;
  --border: #223651;
  --border-bright: #315078;
  --text: #edf3ff;
  --muted: #8fa0bb;
  --faint: #60708a;
  --blue: #4d7cff;
  --blue-2: #2764ff;
  --purple: #7c5cff;
  --cyan: #35c9e8;
  --green: #22c58b;
  --yellow: #f6b84b;
  --red: #f05d6c;
  --shadow: 0 22px 55px rgb(0 0 0 / .28);
  --radius: 10px;
  --radius-sm: 6px;
}

html[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-deep: #eaf0f7;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #eef3fa;
  --border: #d8e1ec;
  --border-bright: #b7c6d9;
  --text: #10213a;
  --muted: #5f7087;
  --faint: #8492a5;
  --shadow: 0 20px 50px rgb(26 47 78 / .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(77 124 255 / .35); outline-offset: 2px; }
svg { display: block; max-width: 100%; }
progress { width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; }
progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 99px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; }

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; font-size: 12px; letter-spacing: .12em; }
.brand > span:last-child { display: grid; line-height: 1.12; }
.brand strong { color: var(--blue); }
.brand small { margin-top: 4px; color: var(--faint); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: 7px; font-weight: 900; font-size: 15px; box-shadow: 0 8px 22px rgb(77 124 255 / .28); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgb(34 197 139 / .12), 0 0 14px var(--green); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-weight: 750; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--blue)); box-shadow: 0 10px 28px rgb(39 100 255 / .24); }
.button.secondary { background: var(--surface-2); border-color: var(--border); }
.button.secondary:hover { border-color: var(--blue); }
.button.danger { color: #fff; background: rgb(240 93 108 / .14); border-color: rgb(240 93 108 / .45); }
.button.small { min-height: 38px; padding: 0 15px; font-size: 12px; }
.button.tiny { min-height: 32px; padding: 0 12px; font-size: 11px; }
.button.full { width: 100%; }
.link-button { padding: 5px; color: var(--muted); background: none; border: 0; cursor: pointer; font-size: 12px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-weight: 700; }
.text-link:hover { color: var(--text); }
.back-link { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; }

.public-body { background: radial-gradient(circle at 72% 14%, rgb(77 124 255 / .12), transparent 28%), var(--bg-deep); }
.public-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 72px; padding-inline: max(48px, calc((100vw - var(--desktop-canvas)) / 2 + 48px)); background: rgb(5 11 22 / .82); border-bottom: 1px solid rgb(143 160 187 / .12); backdrop-filter: blur(18px); }
html[data-theme="light"] .public-header { background: rgb(255 255 255 / .86); }
.public-header nav { display: flex; gap: 32px; color: var(--muted); font-size: 12px; font-weight: 650; }
.public-header nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.public-messages { position: fixed; top: 84px; right: 24px; z-index: 50; width: min(420px, calc(100vw - 48px)); }
.hero { min-height: 760px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(680px, 1.08fr); align-items: center; gap: clamp(64px, 6vw, 124px); width: 100%; max-width: var(--desktop-canvas); margin: auto; padding: 96px clamp(48px, 5vw, 96px) 82px; }
.hero-copy h1 { margin: 20px 0 22px; font-size: clamp(48px, 5.2vw, 82px); line-height: .99; letter-spacing: -.055em; font-weight: 780; }
.hero-copy h1 span { color: transparent; background: linear-gradient(90deg, #6590ff, #8c69ff); background-clip: text; }
.hero-copy > p { max-width: 600px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 35px; }
.hero-proof { display: flex; gap: 42px; margin-top: 57px; }
.hero-proof div { display: grid; gap: 2px; }
.hero-proof strong { font-size: 17px; }
.hero-proof span { color: var(--faint); font-size: 11px; }
.hero-console { position: relative; padding: 1px; overflow: hidden; background: linear-gradient(150deg, rgb(77 124 255 / .5), var(--border) 32%, rgb(124 92 255 / .25)); border-radius: 12px; box-shadow: 0 42px 90px rgb(0 0 0 / .45); }
.hero-console::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgb(255 255 255 / .05), transparent 35%); }
.hero-console > * { background: #091526; }
.console-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; color: #7587a3; border-bottom: 1px solid #1d304a; border-radius: 11px 11px 0 0; font-size: 10px; letter-spacing: .08em; }
.console-head > div { display: flex; gap: 5px; }
.console-head i { width: 6px; height: 6px; background: #31435d; border-radius: 50%; }
.console-head b { color: var(--green); font-size: 8px; }
.console-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 17px; background: #172a42; }
.console-kpi { display: grid; gap: 5px; padding: 13px 15px; background: #0c1a2d; }
.console-kpi span, .console-kpi small { color: #72839e; font-size: 8px; letter-spacing: .08em; }
.console-kpi strong { color: #f0f5ff; font-size: 21px; }
.console-kpi strong em { color: #8090a9; font-size: 9px; font-style: normal; }
.console-kpi small i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.console-kpi progress { height: 3px; }
.resource-row { display: grid; grid-template-columns: auto minmax(110px, 1fr) auto auto auto auto; align-items: center; gap: 15px; padding: 13px 17px; background: #091526; border-top: 1px solid #172a42; }
.resource-row > div:nth-child(2), .resource-row > a:nth-child(2) { display: grid; }
.resource-row strong { color: #eaf1fd; font-size: 11px; }
.resource-row small { color: #677993; font-size: 8px; }
.resource-row button { color: #778aa7; background: none; border: 0; font-size: 20px; }
.server-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: var(--blue); background: rgb(77 124 255 / .12); border: 1px solid rgb(77 124 255 / .18); border-radius: 6px; }
.server-icon.large { width: 46px; height: 46px; font-size: 18px; }
.mini-stat { display: grid; min-width: 46px; }
.mini-stat span { color: #61738f; font-size: 7px; }
.console-chart { padding: 15px 17px 6px; border-top: 1px solid #172a42; border-radius: 0 0 11px 11px; }
.console-chart > div { display: flex; justify-content: space-between; color: #72839e; font-size: 8px; letter-spacing: .08em; }
.console-chart > div strong { color: #eaf1fd; font-size: 11px; }
.console-chart .area, .large-chart .area { fill: rgb(53 201 232 / .11); }
.console-chart .line, .large-chart .line { fill: none; stroke: var(--cyan); stroke-width: 2; }
.large-chart .line.purple { stroke: var(--purple); }
.trusted-strip { display: flex; justify-content: center; align-items: center; gap: 65px; padding: 25px; color: var(--faint); background: rgb(13 25 43 / .55); border-block: 1px solid var(--border); font-size: 9px; letter-spacing: .15em; }
.trusted-strip > div { display: flex; gap: 48px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.section { width: 100%; max-width: var(--desktop-canvas); margin: auto; padding: 120px clamp(48px, 5vw, 96px); }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading h2, .network-section h2, .cta-section h2 { margin: 13px 0 12px; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p, .network-section p, .cta-section p { color: var(--muted); font-size: 16px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-card { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.plan-card.featured { border-color: var(--blue); box-shadow: 0 20px 55px rgb(39 100 255 / .15); }
.popular { position: absolute; top: -10px; right: 18px; padding: 4px 10px; color: white; background: var(--blue); border-radius: 20px; font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.plan-top { display: grid; gap: 3px; }
.plan-top > span { font-size: 12px; font-weight: 850; letter-spacing: .1em; }
.plan-top small { color: var(--faint); }
.price { display: flex; align-items: baseline; margin: 26px 0 23px; }
.price sup { color: var(--muted); font-size: 16px; }
.price strong { font-size: 43px; letter-spacing: -.04em; }
.price span { margin-left: 5px; color: var(--muted); font-size: 11px; }
.plan-card ul { display: grid; gap: 13px; margin: 0 0 28px; padding: 22px 0; list-style: none; color: var(--muted); border-block: 1px solid var(--border); font-size: 12px; }
.plan-card li::before { content: "✓"; margin-right: 9px; color: var(--green); font-weight: 900; }
.plan-card li b { color: var(--text); }
.feature-section { border-top: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-grid article { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); background: rgb(77 124 255 / .12); border-radius: 7px; font-size: 18px; }
.feature-grid h3 { margin: 20px 0 8px; font-size: 17px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.network-section { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 80px; width: 100%; max-width: var(--desktop-canvas); margin-inline: auto; padding: 110px clamp(48px, 7vw, 132px); background: linear-gradient(135deg, rgb(39 100 255 / .14), rgb(124 92 255 / .05)), var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.network-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.network-metrics div { display: grid; gap: 5px; padding: 24px; background: var(--surface); }
.network-metrics strong { font-size: 25px; }
.network-metrics span { color: var(--muted); font-size: 10px; }
.cta-section { padding: 110px 24px; text-align: center; }
.cta-section p { margin: 0 auto 28px; }
.public-footer { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: var(--desktop-canvas); margin-inline: auto; padding: 34px clamp(48px, 5vw, 96px); color: var(--faint); border-top: 1px solid var(--border); font-size: 11px; }

.auth-layout { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr minmax(440px, 520px); align-items: center; gap: 12vw; max-width: 1200px; margin: auto; padding: 55px 28px; }
.auth-layout.single { grid-template-columns: minmax(420px, 680px); justify-content: center; }
.auth-story h1 { margin: 18px 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.auth-story h1 span { color: var(--blue); }
.auth-story > p { max-width: 500px; color: var(--muted); font-size: 17px; }
.auth-points { display: grid; gap: 11px; margin-top: 35px; color: var(--muted); font-size: 12px; }
.auth-points span::first-letter { color: var(--green); }
.auth-card { padding: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.auth-card.compact { max-width: 500px; margin: auto; }
.auth-card.wide { max-width: 680px; }
.auth-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.auth-card-head h2 { margin: 0; font-size: 24px; }
.auth-card-head p { margin: 3px 0 0; color: var(--muted); }
.form-stack { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
label { color: var(--muted); font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 12px 13px; color: var(--text); background: var(--bg-deep); border: 1px solid var(--border); border-radius: 6px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; }
.form-between { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.form-between a, .auth-switch a { color: var(--blue); }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.check input { width: auto; margin: 0; }
.auth-switch { margin: 25px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.demo-note { display: grid; gap: 3px; margin-top: 22px; padding: 12px 14px; color: var(--muted); background: rgb(77 124 255 / .08); border: 1px solid rgb(77 124 255 / .2); border-radius: 6px; font-size: 10px; }
.demo-note strong { color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.otp-input { text-align: center; font-size: 26px; letter-spacing: .45em; }
.security-copy { margin: 22px 0 0; color: var(--faint); text-align: center; font-size: 10px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--desktop-sidebar) minmax(0, 1fr); width: 100%; max-width: var(--desktop-canvas); margin-inline: auto; box-shadow: 0 0 0 1px var(--border); }
.sidebar { position: sticky; top: 0; z-index: 30; height: 100vh; display: flex; flex-direction: column; padding: 24px 14px 18px; background: var(--bg-deep); border-right: 1px solid var(--border); }
.sidebar .brand { padding: 0 8px 22px; }
.side-nav { display: grid; gap: 4px; min-height: 0; margin-top: 12px; overflow-y: auto; scrollbar-width: thin; }
.nav-label { margin: 16px 10px 7px; color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 11px; color: var(--muted); border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 630; }
.side-nav a span { width: 17px; color: var(--faint); text-align: center; }
.side-nav a:hover, .side-nav a.active { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.side-nav a.active span { color: var(--blue); }
.sidebar-foot { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 13px 10px; background: rgb(34 197 139 / .07); border: 1px solid rgb(34 197 139 / .14); border-radius: 6px; }
.sidebar-foot > div { display: grid; }
.sidebar-foot strong { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-foot small { color: var(--faint); font-size: 8px; }
.app-main { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; height: 66px; padding: 0 24px; background: rgb(7 16 31 / .88); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
html[data-theme="light"] .app-topbar { background: rgb(244 247 251 / .88); }
.searchbox { display: flex; align-items: center; gap: 9px; min-width: min(400px, 36vw); padding: 0 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.searchbox span { color: var(--faint); }
.searchbox input { margin: 0; padding: 9px 0; background: transparent; border: 0; font-size: 11px; }
.searchbox.wide { min-width: min(520px, 55vw); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; margin-left: 8px; color: white; background: linear-gradient(135deg, var(--blue), var(--purple)); border-radius: 50%; font-weight: 800; }
.user-meta { display: grid; min-width: 100px; line-height: 1.2; }
.user-meta strong { font-size: 11px; }
.user-meta small { color: var(--faint); font-size: 9px; }
.app-content { width: 100%; max-width: calc(var(--desktop-canvas) - var(--desktop-sidebar)); margin: auto; padding: 36px clamp(28px, 2.4vw, 46px) 72px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 27px; }
.page-head h1 { margin: 5px 0 2px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); }
.message-stack { margin-bottom: 16px; }
.message { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 5px; box-shadow: var(--shadow); }
.message.success { border-left-color: var(--green); }
.message.error { border-left-color: var(--red); }
.message.info { border-left-color: var(--cyan); }
.kpi-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.kpi-grid.four { grid-template-columns: repeat(4, 1fr); }
.kpi-grid.five { grid-template-columns: repeat(5, 1fr); }
.kpi { min-width: 0; display: grid; gap: 6px; padding: 19px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.kpi > span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.kpi > strong { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.kpi > strong em { color: var(--muted); font-size: 12px; font-style: normal; }
.kpi small { color: var(--faint); font-size: 9px; }
.positive, .running, .healthy, .ready, .confirmed, .paid, .success { color: var(--green) !important; }
.warning, .pending, .payment_pending, .review { color: var(--yellow) !important; }
.failed, .error, .urgent, .overdue, .unreachable { color: var(--red) !important; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.dashboard-grid .span-2 { grid-column: span 2; }
.panel { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 17px; }
.panel-head h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.panel-head p { margin: 2px 0 0; color: var(--faint); font-size: 9px; }
.panel-head a { color: var(--blue); font-size: 10px; font-weight: 700; }
.panel-head select { width: auto; margin: 0; padding: 6px 28px 6px 9px; font-size: 10px; }
.resource-list { margin: 0 -20px -20px; }
.resource-row.detailed { grid-template-columns: auto minmax(120px, 1fr) auto auto auto auto; background: transparent; border-color: var(--border); }
.resource-row.detailed:hover { background: var(--surface-2); }
.resource-row.detailed strong { color: var(--text); }
.resource-row.detailed small, .resource-row.detailed .mini-stat span { color: var(--faint); }
.resource-row.detailed .mini-stat strong { color: var(--text); }
.badge { display: inline-flex; align-items: center; justify-content: center; width: max-content; padding: 4px 8px; color: var(--muted); background: rgb(143 160 187 / .08); border: 1px solid rgb(143 160 187 / .18); border-radius: 99px; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge.success, .badge.running, .badge.healthy, .badge.ready, .badge.confirmed, .badge.paid { background: rgb(34 197 139 / .1); border-color: rgb(34 197 139 / .24); }
.badge.warning, .badge.pending, .badge.review, .badge.queued, .badge.payment_pending { background: rgb(246 184 75 / .1); border-color: rgb(246 184 75 / .25); }
.badge.danger, .badge.failed, .badge.error, .badge.urgent, .badge.overdue, .badge.unreachable { background: rgb(240 93 108 / .1); border-color: rgb(240 93 108 / .25); }
.badge.stopped, .badge.closed { color: var(--muted); }
.badge.in_progress, .badge.running { border-color: rgb(53 201 232 / .2); }
.usage-list { display: grid; gap: 20px; }
.usage-list.compact { gap: 11px; margin: 18px 0; }
.usage-list label { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--muted); font-size: 10px; }
.usage-list label strong { color: var(--text); font-size: 10px; }
.usage-list progress { grid-column: 1 / -1; }
.simple-list { display: grid; }
.simple-list > div, .simple-list > a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.simple-list > :first-child { border-top: 0; }
.simple-list span { display: grid; }
.simple-list strong { font-size: 11px; }
.simple-list small { color: var(--faint); font-size: 9px; }
.align-right { text-align: right; }
.timeline { display: grid; }
.timeline > div { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 11px; padding: 10px 0; border-top: 1px solid var(--border); }
.timeline > :first-child { border-top: 0; }
.timeline-dot { width: 8px; height: 8px; margin-top: 5px; background: var(--blue); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 2px rgb(77 124 255 / .25); }
.timeline-dot.success { background: var(--green); box-shadow: 0 0 0 2px rgb(34 197 139 / .2); }
.timeline p { display: grid; margin: 0; }
.timeline strong { font-size: 10px; }
.timeline small, .timeline time { color: var(--faint); font-size: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.server-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.server-card-head { display: flex; justify-content: space-between; }
.server-card h2 { margin: 16px 0 2px; font-size: 18px; }
.server-card > p { margin: 0; color: var(--muted); font-size: 10px; }
.server-specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; background: var(--border); gap: 1px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.server-specs span { display: grid; padding: 10px; background: var(--surface-2); }
.server-specs small { color: var(--faint); font-size: 8px; }
.server-specs strong { font-size: 11px; }
.resource-title { align-items: center; }
.title-line { display: flex; align-items: center; gap: 14px; }
.title-line h1 { margin: 0; }
.title-line .badge { margin-left: 8px; }
.power-actions { display: flex; gap: 7px; }
.detail-tabs { display: flex; gap: 7px; margin-bottom: 16px; padding: 6px; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; }
.detail-tabs a { padding: 7px 13px; color: var(--muted); border-radius: 5px; white-space: nowrap; font-size: 10px; font-weight: 700; }
.detail-tabs a.active { color: var(--text); background: var(--surface-3); }
.large-chart { position: relative; min-height: 270px; padding: 10px 5px 5px 30px; }
.large-chart svg { width: 100%; height: 245px; }
.chart-y { position: absolute; inset: 9px auto 25px 0; display: flex; flex-direction: column; justify-content: space-between; color: var(--faint); font-size: 8px; }
.grid-line { fill: none; stroke: var(--border); stroke-width: 1; }
.chart-legend { display: flex; justify-content: flex-end; gap: 18px; color: var(--muted); font-size: 8px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; }
.cyan-bg { background: var(--cyan); }.purple-bg { background: var(--purple); }
.config-list { display: grid; margin: 0 0 17px; }
.config-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.config-list > :first-child { border-top: 0; }
.config-list dt { color: var(--muted); font-size: 10px; }
.config-list dd { margin: 0; text-align: right; font-size: 10px; font-weight: 700; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 10px 12px; color: var(--faint); background: var(--surface-2); border-bottom: 1px solid var(--border); text-align: left; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 13px 12px; border-bottom: 1px solid var(--border); font-size: 10px; }
tbody tr:hover { background: var(--surface-2); }
td a { color: var(--blue); }
.cell-sub { display: block; margin-top: 2px; color: var(--faint); font-size: 8px; }
code { padding: 3px 6px; color: var(--cyan); background: rgb(53 201 232 / .08); border-radius: 4px; font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 17px; }
.filter-bar select { width: auto; margin: 0; padding: 8px 30px 8px 10px; font-size: 10px; }
.empty-state { padding: 28px; color: var(--muted); text-align: center; }
.ticket-status { display: flex; gap: 8px; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(280px, .8fr); gap: 14px; }
.conversation { padding: 0; overflow: hidden; }
.conversation-head { display: flex; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.conversation-head > div { display: flex; gap: 8px; }
.conversation-head span { color: var(--faint); font-size: 9px; }
.message-thread { min-height: 400px; max-height: 620px; padding: 14px 20px; overflow-y: auto; }
.message-thread article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; margin: 14px 0; }
.message-thread article.mine { margin-left: 10%; }
.message-avatar { display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--surface-3); border-radius: 50%; font-size: 10px; font-weight: 800; }
.message-thread article > div:last-child { padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px 8px 8px 8px; }
.message-thread article.mine > div:last-child { background: rgb(77 124 255 / .1); border-color: rgb(77 124 255 / .2); }
.message-thread article.internal-note > div:last-child { background: rgb(246 184 75 / .08); border-color: rgb(246 184 75 / .2); }
.message-thread header { display: flex; align-items: baseline; gap: 7px; }
.message-thread header strong { font-size: 10px; }
.message-thread header span { color: var(--blue); font-size: 8px; }
.message-thread header time { margin-left: auto; color: var(--faint); font-size: 8px; }
.message-thread p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.message-thread article small { color: var(--yellow); font-size: 8px; }
.reply-box { padding: 16px 20px; background: var(--surface-2); border-top: 1px solid var(--border); }
.reply-box textarea { margin: 0; background: var(--surface); }
.reply-box > div { display: flex; align-items: center; justify-content: flex-end; gap: 15px; margin-top: 10px; }
.reply-box > div > span { margin-right: auto; color: var(--faint); font-size: 8px; }
.operational-pill { padding: 9px 13px; color: var(--green); background: rgb(34 197 139 / .08); border: 1px solid rgb(34 197 139 / .2); border-radius: 5px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.health-layout { display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 30px; }
.donut { width: 150px; aspect-ratio: 1; display: grid; place-items: center; margin: auto; background: conic-gradient(var(--green) 0 87%, var(--surface-3) 87%); border-radius: 50%; }
.donut::before { content: ""; grid-area: 1 / 1; width: 110px; aspect-ratio: 1; background: var(--surface); border-radius: 50%; }
.donut > div { z-index: 1; grid-area: 1 / 1; display: grid; text-align: center; }
.donut strong { font-size: 27px; }
.donut span { color: var(--faint); font-size: 8px; letter-spacing: .1em; }
.cluster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.cluster-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 16px; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: 6px; }
.cluster-stats span { display: grid; padding: 10px; background: var(--surface-2); }
.cluster-stats small { color: var(--faint); font-size: 8px; }
.cluster-stats strong { font-size: 11px; }
.cluster-card output { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.mobile-only { display: none; }

@media (max-width: 1599px) {
  :root { --desktop-sidebar: 244px; }
  .hero { grid-template-columns: minmax(0, .94fr) minmax(560px, 1.06fr); gap: 58px; padding-inline: clamp(40px, 4vw, 64px); }
  .section { padding-inline: clamp(40px, 4vw, 64px); }
  .app-content { padding-inline: clamp(24px, 2.4vw, 38px); }
}

.settings-form { display: grid; gap: 14px; margin-top: 18px; max-width: 760px; }
.settings-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.settings-form .check { grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.settings-form .check input { width: 18px; margin: 0; }
.grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-form .button { align-self: end; }
details code { display: block; margin-top: 12px; overflow-wrap: anywhere; white-space: normal; }
[hidden] { display: none !important; }
.settings-form p { display: grid; gap: 7px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.settings-form p .helptext { color: var(--faint); font-size: 9px; font-weight: 400; }
.settings-form ul.errorlist { margin: 0; color: var(--red); font-size: 10px; }
.admin-form-panel { margin-bottom: 16px; }
.form-panel { max-width: 920px; }
.form-actions, .button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button-row form { margin: 0; }
.inline-admin-form { display: grid; grid-template-columns: minmax(170px, 1fr) 100px 100px auto; align-items: center; gap: 12px; }
.inline-admin-form select { margin: 0; }
.inline-admin-form .check { display: flex; align-items: center; gap: 6px; }
.permission-list { display: grid; gap: 8px; }
.permission-card { display: grid; grid-template-columns: minmax(230px, 1.5fr) repeat(6, minmax(80px, .55fr)) auto; align-items: center; gap: 12px; padding: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; }
.permission-card > div { display: grid; }
.permission-card small { color: var(--faint); }
.permission-card label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.permission-card input { width: auto; margin: 0; }
.settings-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.settings-link { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; color: var(--text); }
.settings-link > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); background: rgb(77 124 255 / .1); border-radius: 8px; }
.settings-link h2, .settings-link p { margin: 0; }
.settings-link p { margin-top: 4px; color: var(--muted); }

@media (max-width: 1439px) {
  :root { --desktop-sidebar: 226px; }
  .hero { min-height: 700px; grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr); gap: 42px; }
  .hero-copy h1 { font-size: clamp(46px, 5vw, 68px); }
  .kpi-grid.five { grid-template-columns: repeat(3, 1fr); }
  .app-content { padding-top: 28px; }
}

@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .cluster-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid .span-2 { grid-column: span 2; }
  .permission-card { grid-template-columns: repeat(4, 1fr); }
  .permission-card > div { grid-column: span 2; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-console { width: 100%; max-width: 820px; justify-self: center; }
}

@media (max-width: 1023px) {
  .public-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-copy { max-width: 700px; }
  .network-section { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; transform: translateX(-101%); width: min(290px, 86vw); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: grid; }
  .app-topbar .searchbox { display: none; }
  .kpi-grid.four { grid-template-columns: repeat(2, 1fr); }
  .ticket-layout { grid-template-columns: 1fr; }
  .ticket-context { order: -1; }
}

@media (max-width: 680px) {
  .public-header { height: 64px; padding: 0 16px; }
  .public-header .header-actions .secondary { display: none; }
  .hero { min-height: auto; padding: 55px 18px 45px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { justify-content: space-between; gap: 12px; }
  .hero-console { font-size: 9px; }
  .console-grid { padding: 10px; }
  .console-kpi { padding: 10px; }
  .console-kpi strong { font-size: 16px; }
  .resource-row { grid-template-columns: auto 1fr auto; }
  .resource-row .mini-stat, .resource-row > button { display: none; }
  .trusted-strip { align-items: flex-start; flex-direction: column; gap: 15px; }
  .trusted-strip > div { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .section { padding: 75px 18px; }
  .plan-grid, .feature-grid { grid-template-columns: 1fr; }
  .network-section { padding: 75px 18px; }
  .network-metrics { grid-template-columns: 1fr; }
  .public-footer { align-items: flex-start; flex-direction: column; gap: 18px; }
  .auth-layout, .auth-layout.single { min-height: calc(100vh - 64px); padding: 22px 14px; grid-template-columns: 1fr; }
  .auth-card { padding: 25px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .app-topbar { height: 60px; padding: 0 12px; }
  .user-meta, .top-actions .link-button { display: none; }
  .app-content { padding: 22px 12px 45px; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-head > .button, .page-head > button { width: 100%; }
  .kpi-grid.four, .kpi-grid.five { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .span-2 { grid-column: auto; }
  .resource-row.detailed { grid-template-columns: auto 1fr auto; }
  .resource-row.detailed .mini-stat, .resource-row.detailed > b { display: none; }
  .card-grid, .cluster-grid { grid-template-columns: 1fr; }
  .resource-title { align-items: stretch; }
  .title-line { flex-wrap: wrap; }
  .power-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .power-actions .button { width: 100%; padding-inline: 9px; font-size: 10px; }
  .panel { padding: 16px; }
  .health-layout { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar .searchbox, .filter-bar select { width: 100%; min-width: 0; }
  .reply-box > div { flex-wrap: wrap; }
  .reply-box > div > span { width: 100%; }
  .grid-form { grid-template-columns: 1fr; }
  .settings-links { grid-template-columns: 1fr; }
  .inline-admin-form, .permission-card { grid-template-columns: 1fr; }
  .permission-card > div { grid-column: auto; }
}

@media (max-width: 410px) {
  .kpi-grid.four, .kpi-grid.five { grid-template-columns: 1fr; }
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-proof strong { font-size: 14px; }
  .header-actions .icon-button { width: 34px; height: 34px; }
  .top-actions .icon-button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
