:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-elevated: #0b111e;
  --surface: #101826;
  --surface-2: #131d2e;
  --surface-3: #182338;
  --surface-hover: #1b2940;
  --sidebar: #090e18;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .24);
  --text: #f4f7fb;
  --text-soft: #d7dfeb;
  --muted: #8f9caf;
  --muted-2: #69778b;
  --accent: #4da3ff;
  --accent-strong: #2378dc;
  --accent-soft: rgba(77, 163, 255, .13);
  --hostflow: #8b5cf6;
  --hostflow-blue: #1d9bf0;
  --hostflow-strong: #6d3ef2;
  --hostflow-soft: rgba(139, 92, 246, .14);
  --hostflow-blue-soft: rgba(29, 155, 240, .12);
  --success: #35c985;
  --success-soft: rgba(53, 201, 133, .12);
  --warning: #f4b740;
  --warning-soft: rgba(244, 183, 64, .12);
  --danger: #f36d76;
  --danger-soft: rgba(243, 109, 118, .12);
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, .22);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .32);
  --sidebar-width: 272px;
  --content-width: 1480px;
  --transition: 180ms ease;
}

body[data-theme="soft-slate"] { --accent:#7aa2f7; --accent-strong:#5278d0; --accent-soft:rgba(122,162,247,.13); }
body[data-theme="playful-sky"] { --accent:#38bdf8; --accent-strong:#0284c7; --accent-soft:rgba(56,189,248,.13); }
body[data-theme="discord-indigo"] { --accent:#7c86ff; --accent-strong:#5865f2; --accent-soft:rgba(124,134,255,.14); }
body[data-theme="dyno-crimson"] { --accent:#f0646c; --accent-strong:#d8424c; --accent-soft:rgba(240,100,108,.13); }
body[data-theme="midnight-emerald"] { --accent:#39d39f; --accent-strong:#14946e; --accent-soft:rgba(57,211,159,.13); }
body[data-theme="aurora-glass"] { --accent:#a67cff; --accent-strong:#7c4dde; --accent-soft:rgba(166,124,255,.14); }
body[data-theme="sunset-overdrive"] { --accent:#fb8b4b; --accent-strong:#df5e20; --accent-soft:rgba(251,139,75,.14); }
body[data-theme="nightguard-blue"], body[data-theme="hawes-cyan"] { --accent:#4da3ff; --accent-strong:#2378dc; --accent-soft:rgba(77,163,255,.13); }

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  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.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { color: white; background: color-mix(in srgb, var(--accent) 58%, transparent); }

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 78%, white 10%);
  outline-offset: 3px;
}

code {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  color: #cfe5ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* Shared typography and controls */
.eyebrow, .section-kicker, .module-kicker, .section-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}
.subtext, .muted-copy { color: var(--muted); line-height: 1.65; }
.muted-copy { font-size: 13px; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #06101d;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 18%, transparent);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.button:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, white 12%); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 24%, transparent); }
.button:active { transform: translateY(0); }
.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.035);
  color: var(--text-soft);
  box-shadow: none;
}
.button.secondary:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); color: white; }
.button.subtle { min-height: 36px; padding: 8px 12px; border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.button.subtle:hover { background: rgba(255,255,255,.05); color: var(--text); }
.button.full { width: 100%; }
.button.tiny { min-height: 34px; padding: 8px 11px; border-radius: 8px; font-size: 12px; }
.button.disabled, .button:disabled { opacity: .45; pointer-events: none; }

.pill, .badge, .mini-pill, .context-chip, .hero-pill, .server-current-pill, .server-id-pill, .level-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}
.pill { padding: 9px 12px; }
.badge, .mini-pill, .level-chip { padding: 6px 9px; }
.badge.success, .mini-pill.accent { border-color: rgba(53,201,133,.26); background: var(--success-soft); color: #8cf0bd; }
.badge.warning, .mini-pill.warn { border-color: rgba(244,183,64,.25); background: var(--warning-soft); color: #ffd77b; }
.badge.danger, .badge.critical { border-color: rgba(243,109,118,.26); background: var(--danger-soft); color: #ffabb1; }
.badge.neutral { color: var(--muted); }

/* Landing */
.landing-body {
  background:
    radial-gradient(circle at 78% 8%, rgba(38,112,205,.15), transparent 28%),
    radial-gradient(circle at 12% 30%, rgba(30,78,138,.10), transparent 32%),
    radial-gradient(circle at 62% 78%, rgba(112,72,255,.075), transparent 30%),
    radial-gradient(circle at 92% 62%, rgba(29,155,240,.055), transparent 24%),
    var(--bg);
}
.landing-page { width: min(1520px, 100%); margin: 0 auto; padding: 0 34px 38px; }
.landing-topbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(148,163,184,.10);
}
.landing-brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.landing-brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.landing-brand span { display: grid; }
.landing-brand strong { font-size: 14px; letter-spacing: .01em; }
.landing-brand small { color: var(--muted); font-size: 10px; }
.landing-brand-lockup { display:inline-flex; align-items:center; gap:12px; min-width:0; }
.brand-collab { color:#536176; font-size:16px; font-weight:700; }
.hostflow-co-brand { display:inline-flex; align-items:center; gap:9px; width:max-content; }
.hostflow-co-brand > span:last-child { display:grid; }
.hostflow-co-brand strong { background:linear-gradient(90deg,#b299ff,#58c0ff); -webkit-background-clip:text; background-clip:text; color:transparent; font-size:13px; letter-spacing:.01em; }
.hostflow-co-brand small { color:#7f91ae; font-size:9px; }
.hostflow-mark { width:32px; height:32px; display:block; flex:0 0 auto; overflow:hidden; border:1px solid rgba(125,106,255,.34); border-radius:9px; background:#03050a; object-fit:cover; box-shadow:0 0 0 1px rgba(29,155,240,.06), 0 8px 24px rgba(107,74,255,.14); }
.hostflow-mark.mini { width:20px; height:20px; border-radius:6px; }
.landing-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; font-weight: 650; }
.landing-nav a { transition: color var(--transition); }
.landing-nav a:hover { color: white; }
.hostflow-nav-link { color:#a996ff !important; }
.hostflow-nav-link:hover { color:#73c7ff !important; }
.landing-login-link { justify-self: end; min-height: 38px; font-size: 12px; }
.button.hostflow-button { border-color:rgba(139,92,246,.38); background:linear-gradient(135deg,var(--hostflow),var(--hostflow-blue)); color:white; box-shadow:0 10px 30px rgba(102,75,255,.22), 0 5px 22px rgba(29,155,240,.10); }
.button.hostflow-button:hover { background:linear-gradient(135deg,#9b73ff,#35aeff); box-shadow:0 14px 36px rgba(102,75,255,.30), 0 8px 26px rgba(29,155,240,.16); }

.landing-hero-ng {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding: 86px 0 72px;
}
.landing-hero-copy { max-width: 650px; }
.landing-status { width: max-content; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 8px 11px; border: 1px solid rgba(77,163,255,.20); border-radius: 999px; background: rgba(77,163,255,.06); color: #b9dcff; font-size: 11px; font-weight: 750; }
.landing-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(53,201,133,.10); }
.landing-hero-copy h1 { max-width: 12ch; font-size: clamp(3.4rem, 6.3vw, 6.4rem); font-weight: 760; letter-spacing: -.065em; line-height: .96; text-wrap: balance; }
.landing-hero-copy > p { max-width: 610px; margin-top: 24px; color: #a7b3c4; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.75; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.landing-proof { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 36px; color: var(--muted); font-size: 12px; }
.landing-proof span { display: inline-flex; align-items: center; gap: 8px; }
.landing-proof b { color: var(--accent); font-size: 10px; }

.landing-product-shot { position: relative; }
.landing-product-shot::before { content:""; position:absolute; inset:10% 6% -8%; background:radial-gradient(circle,rgba(77,163,255,.17),transparent 62%); filter:blur(28px); pointer-events:none; }
.product-shot-window { position:relative; overflow:hidden; border:1px solid rgba(148,163,184,.17); border-radius: 20px; background:#0a101b; box-shadow:0 36px 110px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.03); transform:perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.product-shot-topbar { height:58px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; padding:0 18px; border-bottom:1px solid var(--line); background:#0d1421; color:var(--muted); font-size:11px; }
.product-shot-brand { display:flex; align-items:center; gap:8px; color:var(--text-soft); font-weight:800; }
.product-shot-brand img { width:23px; height:23px; border-radius:7px; }
.product-shot-hosted { display:flex; align-items:center; gap:7px; padding:5px 8px; border:1px solid rgba(255,122,61,.16); border-radius:999px; background:rgba(255,122,61,.055); color:#d8a78f; font-size:8px; font-weight:750; white-space:nowrap; }
.product-shot-user { justify-self:end; display:flex; align-items:center; gap:7px; }
.product-shot-user i { width:7px; height:7px; border-radius:50%; background:var(--success); }
.product-shot-body { min-height:480px; display:grid; grid-template-columns:154px minmax(0,1fr); }
.product-shot-sidebar { display:flex; flex-direction:column; gap:5px; padding:20px 13px; border-right:1px solid var(--line); background:#090f19; color:#6f7d91; font-size:10px; }
.product-shot-sidebar strong { margin:0 8px 8px; color:#59677a; font-size:8px; letter-spacing:.14em; text-transform:uppercase; }
.product-shot-sidebar span { padding:9px 10px; border-radius:7px; }
.product-shot-sidebar span.active { background:rgba(77,163,255,.10); color:#cfe7ff; }
.product-shot-content { display:grid; align-content:start; gap:15px; padding:22px; background:linear-gradient(180deg,#0c1320,#090f19); }
.product-shot-heading { display:flex; align-items:center; justify-content:space-between; color:#eaf1fa; font-size:13px; font-weight:800; }
.product-shot-heading b { padding:5px 8px; border:1px solid rgba(53,201,133,.22); border-radius:999px; background:rgba(53,201,133,.08); color:#89e9b8; font-size:8px; }
.product-shot-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.product-shot-stats article { display:grid; gap:4px; padding:14px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.018); }
.product-shot-stats small { color:#77869a; font-size:8px; }
.product-shot-stats strong { font-size:21px; letter-spacing:-.04em; }
.product-shot-stats span { color:#657489; font-size:8px; }
.product-shot-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(150px,.75fr); gap:10px; }
.product-shot-grid > article { min-height:220px; padding:15px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.018); }
.product-shot-chart > div, .product-shot-list > div { display:flex; justify-content:space-between; gap:10px; margin-bottom:14px; font-size:9px; }
.product-shot-chart div span, .product-shot-list div span { color:#6e7c90; }
.product-shot-chart svg { width:100%; height:auto; margin-top:12px; }
.product-shot-list p { display:flex; align-items:center; gap:7px; padding:10px 0; border-bottom:1px solid rgba(148,163,184,.08); color:#91a0b5; font-size:8px; }
.product-shot-list p:last-child { border-bottom:0; }
.product-shot-list p b { margin-left:auto; color:#cdd8e6; font-size:7px; }
.product-shot-list i, .security-panel-row i { width:6px; height:6px; border-radius:50%; }
.product-shot-list i.online, .security-panel-row i.online { background:var(--success); }
.product-shot-list i.attention, .security-panel-row i.attention { background:var(--warning); }

.landing-trust-strip { display:flex; justify-content:space-between; gap:20px; padding:24px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:#738196; font-size:11px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; overflow:auto; scrollbar-width:none; }
.landing-trust-strip::-webkit-scrollbar { display:none; }
.landing-trust-strip span { white-space:nowrap; }
.landing-section { padding:118px 0; }
.landing-section-heading { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.55fr); align-items:end; gap:60px; margin-bottom:48px; }
.landing-section-heading h2, .security-band h2, .landing-cta-band h2 { max-width:17ch; margin-top:10px; font-size:clamp(2.3rem,4vw,4.4rem); letter-spacing:-.055em; line-height:1.02; }
.landing-section-heading > p { color:var(--muted); line-height:1.75; }
.feature-grid-v3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.feature-card-v3 { min-height:300px; display:flex; flex-direction:column; align-items:flex-start; padding:31px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(255,255,255,.012); transition:background var(--transition), transform var(--transition); }
.feature-card-v3:hover { background:rgba(77,163,255,.045); }
.feature-card-v3 > span { color:var(--accent); font-family:monospace; font-size:11px; }
.feature-card-v3 h3 { margin-top:50px; font-size:20px; letter-spacing:-.025em; }
.feature-card-v3 p { margin-top:13px; color:var(--muted); line-height:1.7; }
.feature-card-v3 a { margin-top:auto; padding-top:28px; color:#aed6ff; font-size:12px; font-weight:750; }

.security-band { display:grid; grid-template-columns:minmax(0,1fr) minmax(390px,.62fr); gap:clamp(60px,9vw,140px); align-items:center; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.security-band-copy > p:not(.eyebrow) { max-width:60ch; margin-top:20px; color:var(--muted); line-height:1.75; }
.security-band-copy ul { display:grid; gap:14px; margin-top:30px; list-style:none; }
.security-band-copy li { display:flex; align-items:flex-start; gap:11px; color:var(--text-soft); }
.security-band-copy li i { flex:0 0 18px; width:18px; height:18px; margin-top:2px; border:1px solid rgba(77,163,255,.28); border-radius:50%; background:var(--accent-soft); position:relative; }
.security-band-copy li i::after { content:""; position:absolute; width:5px; height:3px; left:5px; top:5px; border-left:1.5px solid var(--accent); border-bottom:1.5px solid var(--accent); transform:rotate(-45deg); }
.security-band-panel { padding:26px; border:1px solid var(--line-strong); border-radius:18px; background:linear-gradient(180deg,rgba(19,29,46,.9),rgba(11,17,30,.9)); box-shadow:var(--shadow-md); }
.security-panel-head { display:flex; justify-content:space-between; align-items:end; }
.security-panel-head span { color:var(--muted); }
.security-panel-head b { font-size:25px; letter-spacing:-.04em; }
.security-score-track { height:6px; margin:16px 0 23px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.06); }
.security-score-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--accent-strong),var(--accent)); box-shadow:0 0 20px rgba(77,163,255,.45); }
.security-panel-row { display:flex; align-items:center; justify-content:space-between; padding:14px 0; border-top:1px solid rgba(148,163,184,.09); color:var(--muted); }
.security-panel-row span { display:flex; align-items:center; gap:9px; }
.security-panel-row strong { color:var(--text-soft); font-size:12px; }
.security-band-panel .button { margin-top:18px; }
.hostflow-band {
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(430px,.75fr);
  gap:clamp(60px,9vw,140px);
  align-items:center;
  position:relative;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.hostflow-band::before { content:""; position:absolute; inset:7% 42% 5% -14%; background:radial-gradient(circle at 40% 42%,rgba(123,83,255,.17),transparent 60%),radial-gradient(circle at 65% 60%,rgba(29,155,240,.10),transparent 58%); filter:blur(30px); pointer-events:none; }
.hostflow-band-copy, .hostflow-resources { position:relative; z-index:1; }
.hostflow-brand-heading { width:max-content; display:flex; align-items:center; gap:15px; margin-bottom:24px; }
.hostflow-feature-logo { width:78px; height:58px; border-radius:14px; object-fit:cover; background:#02040a; border:1px solid rgba(127,105,255,.28); box-shadow:0 16px 44px rgba(83,64,225,.20),0 8px 28px rgba(29,155,240,.10); }
.hostflow-brand-heading > div { display:grid; line-height:1.02; }
.hostflow-brand-heading span { color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.hostflow-brand-heading strong { margin-top:5px; background:linear-gradient(90deg,#a98cff,#42b8ff); -webkit-background-clip:text; background-clip:text; color:transparent; font-size:22px; letter-spacing:-.035em; }
.hostflow-band h2 { max-width:17ch; font-size:clamp(2.3rem,4vw,4.4rem); letter-spacing:-.055em; line-height:1.02; }
.hostflow-band-copy > p { max-width:62ch; margin-top:22px; color:var(--muted); line-height:1.75; }
.hostflow-resources { border-top:1px solid rgba(126,101,255,.25); }
.hostflow-resource { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:16px; padding:21px 4px; border-bottom:1px solid var(--line); transition:padding var(--transition), background var(--transition), border-color var(--transition); }
.hostflow-resource:hover { padding-inline:12px; border-color:rgba(126,101,255,.30); background:linear-gradient(90deg,rgba(126,101,255,.09),rgba(29,155,240,.035),transparent); }
.hostflow-resource-index { color:#9b83ff; font-family:monospace; font-size:10px; }
.hostflow-resource > span:nth-child(2) { display:grid; gap:4px; }
.hostflow-resource strong { color:var(--text-soft); font-size:14px; }
.hostflow-resource small { color:var(--muted); font-size:11px; line-height:1.45; }
.hostflow-resource b { color:#68c5ff; font-size:15px; font-weight:500; }
.workflow-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.workflow-grid article { min-height:190px; display:flex; gap:20px; padding:26px; border-top:1px solid var(--line-strong); background:linear-gradient(180deg,rgba(255,255,255,.02),transparent); }
.workflow-grid article > span { color:var(--accent); font-family:monospace; font-size:12px; }
.workflow-grid h3 { font-size:18px; }
.workflow-grid p { margin-top:10px; color:var(--muted); line-height:1.65; }
.landing-cta-band { display:flex; align-items:center; justify-content:space-between; gap:40px; margin:50px 0 100px; padding:48px; border:1px solid rgba(77,163,255,.20); border-radius:20px; background:linear-gradient(110deg,rgba(77,163,255,.10),rgba(19,29,46,.34)); }
.landing-cta-cobrand { border-color:rgba(148,163,184,.18); background:linear-gradient(110deg,rgba(77,163,255,.10),rgba(124,84,255,.11),rgba(29,155,240,.055),rgba(19,29,46,.34)); }
.landing-cta-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; }
.landing-cta-band h2 { max-width:19ch; font-size:clamp(2rem,3.2vw,3.5rem); }
.landing-footer { min-height:100px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:25px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.landing-footer > div { display:flex; gap:24px; }
.landing-footer-cobrand { grid-template-columns:minmax(320px,1fr) auto minmax(210px,1fr); }
.landing-footer-cobrand .footer-lockup { gap:10px; }
.landing-footer-links { justify-content:center; flex-wrap:wrap; }
.landing-footer-links a:hover { color:var(--text-soft); }
.landing-footer > span { justify-self:end; }

/* Status / standalone pages */
.status-shell, .landing-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }
.status-card, .landing-card-pro { width:min(920px,100%); padding:36px; border:1px solid var(--line); border-radius:var(--radius-xl); background:var(--surface); box-shadow:var(--shadow-lg); }
.status-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:25px; }
.status-item { display:grid; gap:5px; padding:15px; border:1px solid var(--line); border-radius:var(--radius-sm); background:rgba(255,255,255,.02); }
.status-item span { color:var(--muted); font-size:11px; }
.status-item strong { font-size:14px; }
.landing-card-pro { grid-template-columns:1fr; }
.landing-copy h1 { margin-top:10px; font-size:clamp(2rem,5vw,3.8rem); letter-spacing:-.05em; }
.landing-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }

/* Dashboard shell */
.app-shell { min-height:100vh; display:block; }
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  z-index:30;
  width:var(--sidebar-width);
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--line);
  background:var(--sidebar);
  transition:width var(--transition), transform var(--transition);
}
.brand-block { height:72px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 17px; border-bottom:1px solid var(--line); }
.brand-home { min-width:0; display:flex; align-items:center; gap:11px; }
.brand-mark { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface-2); color:var(--accent); font-weight:900; }
.brand-mark img { width:100%; height:100%; object-fit:cover; }
.brand-copy { min-width:0; display:grid; line-height:1.15; }
.brand-copy strong { font-size:14px; letter-spacing:.01em; }
.brand-copy small { margin-top:3px; color:var(--muted); font-size:10px; }
.sidebar-collapse { width:30px; height:30px; display:grid; place-items:center; border:0; border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; }
.sidebar-collapse:hover { background:rgba(255,255,255,.05); color:var(--text); }
.sidebar-collapse span { display:block; font-size:20px; line-height:1; transition:transform var(--transition); }
body.sidebar-collapsed .sidebar-collapse span { transform:rotate(180deg); }
.sidebar-guild { margin:14px 13px 4px; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.025); }
.sidebar-guild-icon, .server-switch-icon { display:grid; place-items:center; border-radius:9px; background:var(--accent-soft); color:#cce6ff; font-weight:850; }
.sidebar-guild-icon { width:34px; height:34px; }
.guild-icon-media { position:relative; overflow:hidden; isolation:isolate; }
.guild-icon-media .guild-icon-fallback { width:100%; height:100%; display:grid; place-items:center; }
.guild-icon-media img { position:absolute; inset:0; z-index:1; width:100%; height:100%; display:block; border-radius:inherit; object-fit:cover; object-position:center; }
.server-switch-icon.guild-icon-media { flex:0 0 auto; }
.sidebar-guild-copy { min-width:0; display:grid; }
.sidebar-guild-copy small { color:var(--muted-2); font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.sidebar-guild-copy strong { overflow:hidden; margin-top:2px; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-guild > a { color:var(--muted); font-size:14px; }
.sidebar-nav { flex:1; overflow-y:auto; padding:13px 10px 22px; scrollbar-width:thin; scrollbar-color:rgba(148,163,184,.16) transparent; }
.nav-group + .nav-group { margin-top:17px; }
.nav-group-title { margin:0 10px 7px; color:#536075; font-size:9px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.nav-link { min-height:39px; display:flex; align-items:center; gap:11px; padding:8px 10px; border:1px solid transparent; border-radius:9px; color:#8492a7; font-size:12px; font-weight:650; transition:background var(--transition),border-color var(--transition),color var(--transition); }
.nav-link:hover { background:rgba(255,255,255,.035); color:var(--text-soft); }
.nav-link.active { border-color:rgba(77,163,255,.14); background:var(--accent-soft); color:#d8ecff; }
.nav-icon { flex:0 0 18px; width:18px; height:18px; display:grid; place-items:center; color:currentColor; }
.nav-icon svg { width:17px; height:17px; }
.sidebar-foot { padding:13px; border-top:1px solid var(--line); }
.sidebar-status { display:flex; align-items:center; gap:10px; padding:9px 7px; }
.status-indicator { flex:0 0 8px; width:8px; height:8px; border-radius:50%; }
.status-indicator.online { background:var(--success); box-shadow:0 0 0 5px rgba(53,201,133,.09); }
.status-indicator.attention { background:var(--warning); box-shadow:0 0 0 5px rgba(244,183,64,.08); }
.sidebar-status span:last-child { min-width:0; display:grid; }
.sidebar-status small { color:var(--muted-2); font-size:9px; }
.sidebar-status strong { margin-top:2px; overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-quick-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:7px; }
.sidebar-quick-actions a, .sidebar-quick-actions button { width:100%; padding:8px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.02); color:var(--muted); cursor:pointer; font-size:10px; font-weight:700; }
.sidebar-quick-actions a:hover, .sidebar-quick-actions button:hover { border-color:var(--line-strong); color:var(--text); }

.main-panel { width:calc(100% - var(--sidebar-width)); min-width:0; min-height:100vh; margin-left:var(--sidebar-width); background:var(--bg); transition:width var(--transition), margin-left var(--transition); }
.panel-topbar { height:72px; position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 30px; border-bottom:1px solid var(--line); background:rgba(7,11,20,.88); backdrop-filter:blur(18px); }
.topbar-left, .topbar-actions { display:flex; align-items:center; gap:12px; min-width:0; }
.breadcrumb { display:flex; align-items:center; gap:9px; color:var(--muted-2); font-size:11px; white-space:nowrap; }
.breadcrumb b { color:#3f4b5e; }
.breadcrumb strong { color:var(--text-soft); font-weight:700; }
.mobile-menu-button { display:none; width:38px; height:38px; place-items:center; gap:3px; padding:10px; border:1px solid var(--line); border-radius:9px; background:transparent; cursor:pointer; }
.mobile-menu-button span { width:16px; height:1.5px; display:block; background:var(--text-soft); }
.server-switch { min-width:190px; display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:9px; padding:6px 9px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.02); transition:border-color var(--transition),background var(--transition); }
.server-switch:hover { border-color:var(--line-strong); background:rgba(255,255,255,.035); }
.server-switch-icon { width:32px; height:32px; }
.server-switch > span:nth-child(2) { min-width:0; display:grid; }
.server-switch small, .topbar-user small { color:var(--muted-2); font-size:9px; }
.server-switch strong { overflow:hidden; color:var(--text-soft); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.server-switch b { color:var(--muted); font-size:11px; }
.topbar-user { display:flex; align-items:center; gap:9px; padding-left:13px; border-left:1px solid var(--line); }
.avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; border:1px solid var(--line-strong); }
.topbar-user > span { display:grid; line-height:1.2; }
.topbar-user strong { max-width:140px; overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.main-scroll { width:100%; min-height:calc(100vh - 72px); }
.page-header { width:min(var(--content-width),calc(100% - 60px)); margin:0 auto; display:flex; align-items:flex-end; justify-content:space-between; gap:40px; padding:42px 0 25px; border-bottom:1px solid var(--line); }
.page-header-copy h1 { margin-top:7px; font-size:clamp(1.75rem,2.4vw,2.65rem); letter-spacing:-.045em; line-height:1.08; }
.page-header-copy > p:last-child { max-width:680px; margin-top:9px; color:var(--muted); font-size:13px; line-height:1.6; }
.page-header-status { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.context-chip { padding:8px 11px; }
.context-chip i { width:7px; height:7px; border-radius:50%; }
.context-chip i.online { background:var(--success); }
.context-chip i.attention { background:var(--warning); }
.context-chip.muted { color:var(--muted); }
.page-content { width:min(var(--content-width),calc(100% - 60px)); margin:0 auto; padding:26px 0 56px; }
.panel-footer { width:min(var(--content-width),calc(100% - 60px)); margin:0 auto; display:flex; justify-content:space-between; gap:20px; padding:18px 0 28px; border-top:1px solid var(--line); color:var(--muted-2); font-size:10px; }
.sidebar-backdrop { display:none; }

body.sidebar-collapsed { --sidebar-width:82px; }
body.sidebar-collapsed .brand-copy, body.sidebar-collapsed .sidebar-guild-copy, body.sidebar-collapsed .sidebar-guild > a, body.sidebar-collapsed .nav-link > span:last-child, body.sidebar-collapsed .nav-group-title, body.sidebar-collapsed .sidebar-status span:last-child, body.sidebar-collapsed .sidebar-quick-actions { display:none; }
body.sidebar-collapsed .brand-block { justify-content:center; padding:0 10px; }
body.sidebar-collapsed .brand-home { gap:0; }
body.sidebar-collapsed .sidebar-collapse { position:absolute; right:-14px; top:22px; border:1px solid var(--line); background:var(--surface); }
body.sidebar-collapsed .sidebar-guild { grid-template-columns:1fr; justify-items:center; margin-inline:12px; padding:8px; }
body.sidebar-collapsed .nav-group + .nav-group { margin-top:8px; }
body.sidebar-collapsed .nav-link { justify-content:center; padding-inline:8px; }
body.sidebar-collapsed .nav-icon { flex-basis:20px; width:20px; }
body.sidebar-collapsed .sidebar-status { justify-content:center; }

/* Feedback */
.toast { width:min(var(--content-width),calc(100% - 60px)); margin:18px auto 0; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 14px; border:1px solid rgba(53,201,133,.24); border-radius:10px; background:var(--success-soft); color:#a8f1ca; box-shadow:var(--shadow-sm); }
.toast button { width:26px; height:26px; border:0; border-radius:7px; background:transparent; color:inherit; cursor:pointer; font-size:18px; }
.toast button:hover { background:rgba(255,255,255,.05); }
.helper-note, .callout { padding:13px 14px; border-left:2px solid var(--accent); border-radius:0 8px 8px 0; background:var(--accent-soft); color:#b8c7d9; font-size:12px; line-height:1.6; }
.empty-state { display:grid; place-items:center; min-height:170px; padding:34px; border:1px dashed var(--line-strong); border-radius:12px; text-align:center; }
.empty-state h3 { font-size:15px; }
.empty-state p { max-width:530px; margin-top:7px; color:var(--muted); font-size:12px; line-height:1.6; }

/* Layout utilities */
.stats-grid, .stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.two-col { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:14px; }
.three-col { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:14px; }
.content-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:14px; }
.span-12 { grid-column:span 12; }
.span-7 { grid-column:span 7; }
.span-6 { grid-column:span 6; }
.span-5 { grid-column:span 5; }
.simple-grid { display:grid; gap:8px; }
.compact-grid { display:grid; gap:10px; }
.pill-row { display:flex; flex-wrap:wrap; gap:7px; }

/* Cards, overview and modules */
.panel-card {
  min-width:0;
  padding:21px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:var(--surface);
  box-shadow:var(--shadow-sm);
}
.panel-card + .panel-card { margin-top:14px; }
.content-grid > .panel-card + .panel-card, .two-col > .panel-card + .panel-card, .three-col > .panel-card + .panel-card { margin-top:0; }
.panel-card .panel-card { padding:0; border:0; background:transparent; box-shadow:none; }
.card-head, .section-heading, .selector-header, .compact-head, .embed-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.card-head { margin-bottom:18px; }
.card-head h2, .section-heading h3 { font-size:15px; letter-spacing:-.015em; }
.card-badge { margin-top:4px; color:var(--muted); font-size:11px; }
.card-footer { margin-top:18px; padding-top:15px; border-top:1px solid var(--line); }

.overview-spotlight, .security-hero, .clean-hero {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  margin-bottom:14px;
  padding:27px;
  border:1px solid rgba(77,163,255,.18);
  border-radius:var(--radius-lg);
  background:linear-gradient(120deg,rgba(77,163,255,.09),rgba(16,24,38,.78) 52%,rgba(16,24,38,.95));
}
.overview-spotlight h3, .security-hero h3 { margin-top:7px; font-size:23px; letter-spacing:-.035em; }
.overview-spotlight .muted-copy { max-width:720px; margin-top:8px; }
.overview-spotlight .pill-row { margin-top:17px; }
.hero-health { flex:0 0 230px; padding-left:24px; border-left:1px solid var(--line); }
.hero-health-score { display:flex; align-items:end; justify-content:space-between; gap:15px; }
.hero-health-score span { color:var(--muted); font-size:11px; }
.hero-health-score strong { font-size:31px; letter-spacing:-.05em; }
.hero-health-copy { margin-top:8px; color:var(--muted); font-size:11px; }

.stat-card { min-width:0; display:grid; gap:5px; padding:18px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); box-shadow:var(--shadow-sm); position:relative; overflow:hidden; }
.stat-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--accent); opacity:.55; }
.stat-card.success::before { background:var(--success); }
.stat-card.warning::before { background:var(--warning); }
.stat-label { color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.stat-value { margin-top:3px; overflow-wrap:anywhere; font-size:24px; letter-spacing:-.04em; }
.stat-helper { color:var(--muted-2); font-size:10px; line-height:1.45; }
.action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.action-tile { display:grid; gap:3px; padding:12px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.018); transition:border-color var(--transition),background var(--transition); }
.action-tile:hover { border-color:rgba(77,163,255,.28); background:var(--accent-soft); }
.action-tile strong { font-size:12px; }
.action-tile span { color:var(--muted); font-size:10px; }
.detail-list { list-style:none; }
.detail-list li { min-height:39px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid rgba(148,163,184,.09); }
.detail-list li:last-child { border-bottom:0; }
.detail-list span { color:var(--muted); font-size:11px; }
.detail-list strong { text-align:right; font-size:11px; }
.event-feed { display:grid; gap:0; list-style:none; }
.event-feed li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 18px; padding:10px 0; border-bottom:1px solid rgba(148,163,184,.08); }
.event-feed li:last-child { border-bottom:0; }
.event-feed strong { font-size:11px; }
.event-feed span { grid-column:1; color:var(--muted); font-size:10px; }
.event-feed small { grid-row:1 / span 2; grid-column:2; color:var(--muted-2); font-size:9px; }
.wizard-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.wizard-step, .wizard-card { display:flex; align-items:flex-start; gap:11px; padding:14px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.016); }
.wizard-badge { flex:0 0 26px; width:26px; height:26px; display:grid; place-items:center; border-radius:8px; background:var(--accent-soft); color:var(--accent); font-size:10px; font-weight:850; }
.wizard-step strong { font-size:11px; }
.wizard-step p { margin-top:4px; color:var(--muted); font-size:10px; line-height:1.45; }

/* Forms */
.settings-form { display:grid; gap:14px; }
.settings-stack { display:grid; gap:14px; }
.form-grid { display:grid; gap:13px; }
.form-grid.two, .two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-grid.three, .three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.field { min-width:0; display:grid; gap:7px; }
.field-label { color:var(--text-soft); font-size:11px; font-weight:750; }
.field-hint { color:var(--muted-2); font-size:10px; line-height:1.45; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width:100%;
  min-height:42px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  outline:0;
  background:#0b121e;
  color:var(--text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.015);
  transition:border-color var(--transition),background var(--transition),box-shadow var(--transition);
}
textarea { min-height:92px; resize:vertical; line-height:1.55; }
select { appearance:none; padding-right:34px; background-image:linear-gradient(45deg,transparent 50%,#748399 50%),linear-gradient(135deg,#748399 50%,transparent 50%); background-position:calc(100% - 16px) 18px,calc(100% - 11px) 18px; background-size:5px 5px,5px 5px; background-repeat:no-repeat; }
input[type="color"] { min-height:42px; padding:5px; cursor:pointer; }
input::placeholder, textarea::placeholder { color:#4f5d70; }
input:hover, select:hover, textarea:hover { border-color:var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color:color-mix(in srgb,var(--accent) 62%,transparent); background:#0d1523; box-shadow:0 0 0 3px var(--accent-soft); }
.toggle-row { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:11px 0; border-bottom:1px solid rgba(148,163,184,.09); cursor:pointer; }
.toggle-row:last-child { border-bottom:0; }
.toggle-row > span:first-child { display:grid; gap:3px; }
.toggle-row strong { font-size:11px; }
.toggle-row small { color:var(--muted); font-size:10px; line-height:1.4; }
.toggle { flex:0 0 38px; width:38px; height:22px; position:relative; }
.toggle input { position:absolute; opacity:0; pointer-events:none; }
.toggle-ui { position:absolute; inset:0; border:1px solid var(--line-strong); border-radius:999px; background:#0a101b; transition:background var(--transition),border-color var(--transition); }
.toggle-ui::after { content:""; position:absolute; left:3px; top:3px; width:14px; height:14px; border-radius:50%; background:#8794a8; transition:transform var(--transition),background var(--transition); }
.toggle input:checked + .toggle-ui { border-color:color-mix(in srgb,var(--accent) 45%,transparent); background:var(--accent-soft); }
.toggle input:checked + .toggle-ui::after { transform:translateX(16px); background:var(--accent); }
.form-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:4px; padding-top:15px; border-top:1px solid var(--line); }
.settings-form.is-dirty .form-actions { position:sticky; bottom:12px; z-index:8; padding:10px; border:1px solid rgba(77,163,255,.22); border-radius:11px; background:rgba(10,16,27,.94); box-shadow:var(--shadow-md); backdrop-filter:blur(14px); }
.ticket-category-card { display:grid; gap:12px; padding:14px; border-top:1px solid var(--line); }
.compact-form { display:flex; align-items:end; flex-wrap:wrap; gap:9px; }
.compact-control { min-width:160px; }
.inline-form { display:inline-flex; align-items:center; gap:8px; }

/* Tables */
.table-wrap { width:100%; overflow:auto; border:1px solid var(--line); border-radius:11px; scrollbar-width:thin; }
.data-table { width:100%; border-collapse:collapse; min-width:720px; }
.data-table th { height:42px; padding:0 13px; border-bottom:1px solid var(--line); background:#0d1421; color:#6f7d91; text-align:left; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.data-table td { padding:12px 13px; border-bottom:1px solid rgba(148,163,184,.08); color:var(--text-soft); font-size:11px; vertical-align:middle; }
.data-table tbody tr:last-child td { border-bottom:0; }
.data-table tbody tr { transition:background var(--transition); }
.data-table tbody tr:hover { background:rgba(255,255,255,.022); }
.subcell, .table-copy { margin-top:3px; color:var(--muted-2); font-size:9px; }

/* Security Centre */
.security-protection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.security-module-card, .security-protection-card { display:grid; gap:14px; padding:15px; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.015); }
.security-module-main { min-width:0; }
.security-module-title-row, .module-status-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.security-module-title-row h3, .security-module-main h3 { font-size:12px; }
.security-module-main p { margin-top:5px; color:var(--muted); font-size:10px; line-height:1.5; }
.security-module-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding-top:12px; border-top:1px solid rgba(148,163,184,.09); }
.module-state { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:9px; font-weight:750; }
.module-state::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--muted-2); }
.module-state.active::before, .module-state.success::before { background:var(--success); }
.level-chip.level-off, .level-chip.off { color:var(--muted); }
.level-chip.level-low, .level-chip.low { border-color:rgba(53,201,133,.22); color:#8be7b8; }
.level-chip.level-medium, .level-chip.medium { border-color:rgba(244,183,64,.23); color:#ffd273; }
.level-chip.level-high, .level-chip.high { border-color:rgba(243,109,118,.23); color:#ff9da5; }
.level-chip.level-critical, .level-chip.critical { border-color:rgba(243,109,118,.32); background:var(--danger-soft); color:#ffadb3; }
.moderation-strip { display:flex; flex-wrap:wrap; gap:8px; }

/* Server selector */
.selector-shell { display:grid; gap:15px; }
.selector-header { align-items:center; padding:20px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); }
.selector-header-copy h2 { margin-top:5px; font-size:22px; letter-spacing:-.035em; }
.selector-header-copy p { margin-top:7px; color:var(--muted); }
.selector-header-actions { display:flex; flex-wrap:wrap; gap:8px; }
.selector-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.selector-summary { padding:15px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.selector-summary span { color:var(--muted); font-size:10px; }
.selector-summary strong { display:block; margin-top:4px; font-size:21px; letter-spacing:-.04em; }
.server-tile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.server-tile { min-width:0; display:flex; flex-direction:column; padding:17px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); transition:transform var(--transition),border-color var(--transition),background var(--transition); }
.server-tile:hover { transform:translateY(-2px); border-color:rgba(77,163,255,.25); background:color-mix(in srgb,var(--surface) 92%,var(--accent) 8%); }
.server-tile-top { display:flex; align-items:center; gap:11px; }
.server-tile-icon { flex:0 0 42px; width:42px; height:42px; overflow:hidden; display:grid; place-items:center; border-radius:12px; background:var(--surface-3); font-weight:900; }
.server-tile-icon img { width:100%; height:100%; object-fit:cover; }
.server-tile-copy { min-width:0; }
.server-tile-copy h3 { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.server-tile-copy p { margin-top:3px; color:var(--muted); font-size:10px; }
.server-tile-status { margin-left:auto; }
.server-tile-headings, .server-tile-meta { display:grid; gap:8px; margin-top:16px; padding-top:13px; border-top:1px solid var(--line); }
.server-tile-headings > div, .server-tile-meta > div { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:10px; }
.server-tile-headings strong, .server-tile-meta strong { color:var(--text-soft); }
.server-tile-actions { display:flex; gap:8px; margin-top:auto; padding-top:17px; }
.server-id-label { color:var(--muted-2); font-size:9px; }
.server-id-value { overflow-wrap:anywhere; color:var(--muted); font-family:monospace; font-size:9px; }
.selector-pagination { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.selector-pagination-actions { display:flex; gap:8px; }

/* Ratings and charts */
.rating-bars { display:grid; gap:9px; }
.rating-bar-row { display:grid; grid-template-columns:90px minmax(0,1fr) 38px; align-items:center; gap:10px; color:var(--muted); font-size:10px; }
.rating-bar { height:7px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.05); }
.rating-bar i { display:block; height:100%; border-radius:inherit; background:var(--accent); }
.roadmap-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.metric-stack { display:grid; gap:8px; }

/* Theme settings */
.theme-preview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.theme-swatch { display:flex; align-items:center; gap:9px; padding:11px; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.015); color:var(--muted); cursor:pointer; }
.theme-swatch:hover, .theme-swatch.active { border-color:rgba(77,163,255,.32); background:var(--accent-soft); color:var(--text); }
.theme-dot { flex:0 0 21px; width:21px; height:21px; border-radius:7px; background:linear-gradient(135deg,var(--accent),var(--accent-strong)); }

/* Embed Studio */
.embed-studio { --discord-bg:#313338; --discord-card:#2b2d31; --discord-text:#dbdee1; --discord-muted:#b5bac1; }
.embed-studio-form { display:grid; gap:21px; }
.embed-studio-topbar { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.embed-studio-topbar h3, .embed-preview-head h3 { margin-top:4px; font-size:18px; letter-spacing:-.025em; }
.embed-studio-topbar p { max-width:680px; margin-top:6px; color:var(--muted); font-size:12px; }
.embed-studio-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.embed-editor-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(350px,.78fr); gap:25px; align-items:start; }
.embed-editor-main { display:grid; gap:21px; }
.embed-editor-section { display:grid; gap:13px; padding-bottom:21px; border-bottom:1px solid var(--line); }
.embed-editor-section:last-child { padding-bottom:0; border-bottom:0; }
.embed-section-head p { margin-top:5px; color:var(--muted); font-size:10px; }
.embed-fields-list { display:grid; gap:9px; }
.embed-field-row { display:grid; grid-template-columns:minmax(140px,.8fr) minmax(220px,1.2fr) auto; gap:9px; align-items:start; }
.embed-preview-panel { position:sticky; top:98px; padding-left:25px; border-left:1px solid var(--line); }
.embed-preview-head { margin-bottom:13px; }
.live-dot { padding:6px 9px; border-color:rgba(53,201,133,.22); background:var(--success-soft); color:#96ebbf; }
.live-dot::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.discord-preview-message { display:grid; grid-template-columns:40px minmax(0,1fr); gap:11px; padding:17px; border-radius:12px; background:var(--discord-bg); color:var(--discord-text); box-shadow:0 18px 42px rgba(0,0,0,.25); }
.discord-preview-avatar { width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,var(--accent),var(--accent-strong)); color:white; font-weight:900; }
.discord-preview-name { margin-bottom:6px; color:#f2f3f5; font-weight:760; }
.discord-preview-name span { display:inline-flex; margin-left:4px; padding:1px 4px; border-radius:3px; background:#5865f2; color:white; font-size:9px; }
.discord-preview-content { margin-bottom:8px; color:var(--discord-text); overflow-wrap:anywhere; line-height:1.45; }
.discord-embed-preview { max-width:520px; display:grid; gap:8px; overflow:hidden; padding:12px 14px; border-left:4px solid #5865f2; border-radius:4px; background:var(--discord-card); }
.discord-embed-author, .discord-embed-footer { color:var(--discord-muted); font-size:11px; }
.discord-embed-title { color:#f2f3f5; font-weight:760; overflow-wrap:anywhere; }
.discord-embed-description { color:var(--discord-text); font-size:13px; line-height:1.45; overflow-wrap:anywhere; white-space:pre-wrap; }
.discord-embed-fields { display:grid; gap:8px; }
.discord-embed-field strong { display:block; margin-bottom:2px; color:#f2f3f5; font-size:12px; }
.discord-embed-field span { display:block; color:var(--discord-text); font-size:12px; line-height:1.4; overflow-wrap:anywhere; white-space:pre-wrap; }
.discord-embed-image { max-width:100%; margin-top:4px; border-radius:7px; }
.embed-limit-note { margin-top:9px; color:var(--discord-muted); font-size:10px; }
.embed-limit-note.danger { color:var(--danger); }

/* Legacy compatibility */
.hero, .hero-context, .topbar, .glass-card { border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); }
.hero { padding:20px; }
.hero-copy h2 { font-size:26px; }
.hero-tagline { margin-top:8px; color:var(--muted); }
.hero-stats { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.hero-stats span { padding:6px 9px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:10px; }
.owner-actions { display:flex; flex-wrap:wrap; gap:7px; }
.callout-grid, .radar-grid, .signal-board { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.signal-chip { padding:9px; border:1px solid var(--line); border-radius:9px; }
.child-friendly-card, .micro-section { padding:14px; border-top:1px solid var(--line); }

/* Responsive */
@media (max-width: 1260px) {
  .landing-hero-ng { grid-template-columns:minmax(0,.85fr) minmax(480px,1.15fr); gap:45px; }
  .landing-hero-copy h1 { font-size:clamp(3.2rem,5.6vw,5.3rem); }
  .feature-grid-v3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .server-tile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stats-grid, .stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wizard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .three-col { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .three-col > :last-child { grid-column:span 2; }
  .roadmap-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* Dynamic ticket option builder */
.ticket-options-builder { display:grid; gap:18px; }
.ticket-builder-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.ticket-builder-toolbar h3 { margin-top:3px; font-size:17px; letter-spacing:-.025em; }
.ticket-builder-toolbar .muted-copy { max-width:68ch; margin-top:6px; }
.ticket-builder-toolbar-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.ticket-option-count { display:inline-flex; align-items:center; min-height:38px; padding:0 12px; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.018); color:var(--muted); font-size:10px; font-weight:700; white-space:nowrap; }
.ticket-option-count strong { margin-right:3px; color:var(--text); font-size:12px; }
.ticket-builder-layout { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:18px; align-items:start; }
.ticket-option-list { min-width:0; display:grid; gap:12px; }
.ticket-option-card { min-width:0; display:grid; gap:16px; padding:17px; border:1px solid var(--line); border-radius:13px; background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.009)); box-shadow:inset 0 1px 0 rgba(255,255,255,.018); }
.ticket-option-card:focus-within { border-color:color-mix(in srgb,var(--accent) 38%,var(--line)); box-shadow:0 0 0 3px var(--accent-soft),inset 0 1px 0 rgba(255,255,255,.02); }
.ticket-option-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-bottom:13px; border-bottom:1px solid rgba(148,163,184,.09); }
.ticket-option-identity { min-width:0; display:flex; align-items:center; gap:10px; }
.ticket-option-identity > div { min-width:0; }
.ticket-option-identity h4 { overflow:hidden; color:var(--text); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.ticket-option-identity p { margin-top:3px; color:var(--muted-2); font-size:9px; }
.ticket-option-identity code { color:var(--muted); }
.ticket-drag-handle { width:24px; height:31px; display:grid; place-items:center; border:0; background:transparent; color:#5f6c80; cursor:default; font-size:14px; letter-spacing:-3px; }
.ticket-option-number { flex:0 0 28px; width:28px; height:28px; display:grid; place-items:center; border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line)); border-radius:8px; background:var(--accent-soft); color:var(--accent); font-size:10px; font-weight:850; }
.ticket-option-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.icon-button { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--line); border-radius:8px; background:#0b121e; color:var(--text-soft); cursor:pointer; font:inherit; font-size:13px; transition:border-color var(--transition),background var(--transition),color var(--transition),transform var(--transition); }
.icon-button:hover { border-color:var(--line-strong); background:rgba(255,255,255,.045); color:var(--text); transform:translateY(-1px); }
.icon-button:disabled { opacity:.3; pointer-events:none; }
.compact-button { min-height:34px; padding:7px 10px; border-radius:8px; font-size:10px; }
.button.danger { border-color:rgba(244,83,105,.25); background:rgba(244,83,105,.09); color:#ff9aaa; box-shadow:none; }
.button.danger:hover { border-color:rgba(244,83,105,.4); background:rgba(244,83,105,.15); color:#ffc0ca; box-shadow:none; }
.ticket-option-switches { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:0 1px; }
.compact-toggle { min-height:50px; padding:8px 0; }
.ticket-option-main-grid, .ticket-option-routing-grid { align-items:start; }
.multi-select { min-height:116px; padding-right:10px; background-image:none; }
.multi-select option { padding:6px 7px; border-radius:5px; }
.multi-select option:checked { background:linear-gradient(90deg,var(--accent-soft),var(--accent-soft)); color:var(--text); }
.ticket-option-advanced { border-top:1px solid rgba(148,163,184,.09); padding-top:12px; }
.ticket-option-advanced summary { width:max-content; color:var(--muted); cursor:pointer; font-size:10px; font-weight:750; user-select:none; }
.ticket-option-advanced[open] summary { margin-bottom:14px; color:var(--text-soft); }
.ticket-menu-preview { min-width:0; }
.ticket-preview-sticky { position:sticky; top:88px; display:grid; gap:12px; padding:15px; border:1px solid var(--line); border-radius:12px; background:#0a111d; box-shadow:var(--shadow-sm); }
.ticket-preview-sticky h4 { margin-top:-5px; font-size:13px; }
.discord-select-preview { min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 12px; border:1px solid #273143; border-radius:5px; background:#111722; color:#aab4c3; font-size:10px; }
.ticket-preview-options { display:grid; gap:3px; max-height:480px; overflow:auto; padding-right:2px; scrollbar-width:thin; }
.ticket-preview-option { display:grid; grid-template-columns:25px minmax(0,1fr); align-items:center; gap:9px; min-height:48px; padding:7px 8px; border-radius:5px; }
.ticket-preview-option:hover { background:#1c2431; }
.ticket-preview-emoji { width:24px; height:24px; display:grid; place-items:center; font-size:15px; }
.ticket-preview-copy { min-width:0; display:grid; gap:2px; }
.ticket-preview-copy strong, .ticket-preview-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ticket-preview-copy strong { color:#eef1f5; font-size:10px; }
.ticket-preview-copy small { min-height:16px; color:#8f9bad; font-size:9px; }
.ticket-preview-note { color:var(--muted-2); font-size:9px; line-height:1.45; }
.ticket-preview-note.danger { color:#ff929f; }

@media (max-width: 1050px) {
  .ticket-builder-layout { grid-template-columns:1fr; }
  .ticket-preview-sticky { position:static; }
  .landing-page { padding-inline:24px; }
  .landing-topbar { grid-template-columns:1fr auto; }
  .landing-nav { display:none; }
  .landing-brand-lockup .hostflow-co-brand { display:none; }
  .landing-brand-lockup .brand-collab { display:none; }
  .landing-hero-ng { min-height:auto; grid-template-columns:1fr; padding-top:70px; }
  .landing-hero-copy { max-width:800px; }
  .landing-product-shot { max-width:820px; }
  .product-shot-window { transform:none; }
  .landing-section-heading, .security-band, .hostflow-band { grid-template-columns:1fr; }
  .security-band, .hostflow-band { gap:55px; }
  .security-band-panel { max-width:620px; }
  .landing-footer, .landing-footer-cobrand { grid-template-columns:1fr auto; }
  .landing-footer > div.landing-footer-links { display:none; }
  .sidebar { transform:translateX(-100%); box-shadow:var(--shadow-lg); }
  body.sidebar-open .sidebar { transform:translateX(0); }
  body.sidebar-open { overflow:hidden; }
  .sidebar-backdrop { position:fixed; inset:0; z-index:25; display:block; border:0; background:rgba(0,0,0,.58); opacity:0; pointer-events:none; transition:opacity var(--transition); }
  body.sidebar-open .sidebar-backdrop { opacity:1; pointer-events:auto; }
  .sidebar-collapse { display:none; }
  .main-panel { width:100%; margin-left:0; }
  .mobile-menu-button { display:grid; }
  .embed-editor-grid { grid-template-columns:1fr; }
  .embed-preview-panel { position:static; padding:20px 0 0; border-left:0; border-top:1px solid var(--line); }
  .security-protection-grid { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
  .ticket-builder-toolbar, .ticket-option-head { align-items:flex-start; flex-direction:column; }
  .ticket-builder-toolbar-actions, .ticket-option-actions { width:100%; justify-content:flex-start; }
  .ticket-option-switches { grid-template-columns:1fr; gap:0; }
  .ticket-option-card { padding:14px; }
  body { font-size:13px; }
  .landing-page { padding-inline:18px; }
  .landing-topbar { min-height:70px; }
  .landing-login-link { min-height:36px; padding-inline:11px; }
  .landing-brand small { display:none; }
  .landing-hero-ng { padding:55px 0; }
  .landing-hero-copy h1 { font-size:clamp(2.75rem,13vw,4rem); }
  .landing-proof { gap:14px; }
  .product-shot-hosted { display:none; }
  .product-shot-topbar { grid-template-columns:1fr auto; }
  .hostflow-resource { grid-template-columns:28px minmax(0,1fr) auto; gap:10px; }
  .landing-cta-actions { width:100%; justify-content:stretch; }
  .landing-cta-actions .button { flex:1; }
  .product-shot-body { grid-template-columns:1fr; }
  .product-shot-sidebar { display:none; }
  .product-shot-stats { grid-template-columns:1fr 1fr; }
  .product-shot-stats article:last-child { grid-column:span 2; }
  .product-shot-grid { grid-template-columns:1fr; }
  .feature-grid-v3 { grid-template-columns:1fr; }
  .feature-card-v3 { min-height:245px; }
  .feature-card-v3 h3 { margin-top:35px; }
  .landing-section { padding:78px 0; }
  .landing-section-heading { gap:20px; margin-bottom:34px; }
  .workflow-grid { grid-template-columns:1fr; }
  .landing-cta-band { align-items:flex-start; flex-direction:column; padding:30px; }
  .landing-footer, .landing-footer-cobrand { grid-template-columns:1fr; gap:15px; padding:25px 0; }
  .landing-footer > span { justify-self:start; }
  .panel-topbar { padding:0 16px; }
  .breadcrumb span, .breadcrumb b { display:none; }
  .server-switch { min-width:0; grid-template-columns:30px; padding:5px; border:0; background:transparent; }
  .server-switch > span:nth-child(2), .server-switch > b { display:none; }
  .topbar-user > span { display:none; }
  .topbar-user { padding-left:8px; }
  .page-header, .page-content, .panel-footer, .toast { width:calc(100% - 30px); }
  .page-header { align-items:flex-start; flex-direction:column; gap:18px; padding-top:29px; }
  .page-header-status { justify-content:flex-start; }
  .panel-footer { flex-direction:column; gap:4px; }
  .overview-spotlight, .security-hero { align-items:flex-start; flex-direction:column; padding:20px; }
  .hero-health { width:100%; flex-basis:auto; padding:16px 0 0; border-left:0; border-top:1px solid var(--line); }
  .stats-grid, .stat-grid, .two-col, .three-col, .content-grid, .form-grid.two, .form-grid.three, .two, .three, .selector-stats, .server-tile-grid, .wizard-grid, .roadmap-grid, .theme-preview-grid { grid-template-columns:1fr; }
  .three-col > :last-child { grid-column:auto; }
  .span-12, .span-7, .span-6, .span-5 { grid-column:span 1; }
  .panel-card { padding:16px; }
  .action-grid { grid-template-columns:1fr; }
  .form-actions { justify-content:stretch; }
  .form-actions .button, .form-actions button { width:100%; }
  .embed-studio-topbar { flex-direction:column; }
  .embed-studio-actions { width:100%; justify-content:stretch; }
  .embed-studio-actions .button { flex:1; }
  .embed-field-row { grid-template-columns:1fr; }
  .selector-header { align-items:flex-start; flex-direction:column; }
  .selector-header-actions { width:100%; }
  .selector-header-actions .button { flex:1; }
  .status-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 460px) {
  .landing-login-link { font-size:0; }
  .landing-login-link::after { content:"Sign in"; font-size:11px; }
  .landing-hero-copy h1 { font-size:2.7rem; }
  .landing-actions .button, .landing-cta-actions .button { width:100%; flex-basis:100%; }
  .product-shot-content { padding:14px; }
  .product-shot-grid > article { min-height:180px; }
  .status-grid { grid-template-columns:1fr; }
}

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