:root {
  color-scheme: dark;
  --bg: #111318;
  --sidebar: #0d0f13;
  --surface: #191c23;
  --surface-raised: #1d2028;
  --border: #292d38;
  --muted: #969baa;
  --soft: #c4c8d2;
  --text: #f4f5f8;
  --accent: #8a6bff;
  --accent-light: #b4a3ff;
  --green: #54d99a;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; width: 244px; flex-direction: column; padding: 25px 16px 18px; border-right: 1px solid #242731; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid #7961e9; border-radius: 12px; background: linear-gradient(145deg, #9278ff, #5035bc); box-shadow: 0 7px 24px #7a5cff30; font: 700 20px 'Space Grotesk', sans-serif; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font: 700 17px 'Space Grotesk', sans-serif; letter-spacing: -.35px; }
.brand-copy small { color: #858a99; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.nav-label { margin: 47px 10px 12px; color: #727786; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.navigation { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 42px; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; color: #afb3bf; font-size: 13px; text-decoration: none; }
.nav-item.active { border-color: #493c77; background: #272139; color: #e5deff; }
.nav-icon { width: 17px; color: #9b88f3; font-size: 17px; text-align: center; }
.nav-item.disabled { color: #737886; }
.nav-item.disabled .nav-icon { color: #626774; }
.lock { margin-left: auto; color: #767b89; font-size: 8px; font-weight: 700; letter-spacing: .5px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { display: flex; gap: 10px; padding: 12px 10px; border: 1px solid #2a2d37; border-radius: 10px; background: #15171d; }
.note-dot, .status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #e6aa54; box-shadow: 0 0 10px #e6aa5450; }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { margin: 1px 0 4px; font-size: 11px; }
.sidebar-note small { color: #9398a6; font-size: 10px; line-height: 1.4; }
.sidebar-foot { padding: 17px 10px 0; color: #6e7380; font-size: 10px; }
.sidebar-foot span { padding: 0 4px; color: #484c57; }

.main-content { max-width: 1450px; min-height: 100vh; margin-left: 244px; padding: 0 44px 30px; }
.topbar { display: flex; height: 68px; align-items: center; justify-content: space-between; border-bottom: 1px solid #242731; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #858a98; font-size: 12px; }
.breadcrumbs strong { color: #d9dbe3; font-weight: 600; }
.crumb-slash { color: #555a67; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.service-status { display: flex; align-items: center; gap: 8px; color: #aeb2bd; font-size: 11px; }
.service-status .status-dot { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 9px #54d99a55; }
.avatar { width: 31px; height: 31px; border: 1px solid #44404f; border-radius: 50%; background: #24212f; color: #c3b8ff; font-weight: 700; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 36px 0 23px; }
.eyebrow { margin: 0 0 8px; color: #a28cff; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: 'Space Grotesk', 'DM Sans', sans-serif; }
h1 { margin-bottom: 7px; font-size: clamp(25px, 3vw, 32px); letter-spacing: -1.05px; }
.subtitle { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; }
.button-primary { border-color: #987fff; background: linear-gradient(135deg, #9176ff, #704fe4); box-shadow: 0 5px 18px #7655df25; color: white; cursor: pointer; transition: filter .15s ease, transform .15s ease; }
.button-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fluxer-mark { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 5px; background: #f4f0ff; color: #7254dd; font-size: 12px; }

.setup-banner { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid #514332; border-radius: 10px; background: linear-gradient(90deg, #2b241a 0%, #211e1b 100%); }
.banner-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid #956e35; border-radius: 50%; color: #edbd70; font-family: Georgia, serif; font-size: 15px; font-weight: 700; }
.banner-copy { flex: 1; }
.banner-copy h2 { margin: 0 0 3px; font-size: 12px; letter-spacing: -.1px; }
.banner-copy p { margin: 0; color: #b9ae9b; font-size: 11px; line-height: 1.5; }
.setup-pill { padding: 5px 7px; border: 1px solid #765b35; border-radius: 5px; color: #e7b974; font-size: 8px; font-weight: 700; letter-spacing: .7px; white-space: nowrap; }

.overview-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 15px; margin-top: 19px; }
.surface { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.welcome-card, .status-card { min-height: 205px; padding: 19px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; }
.card-kicker { color: #8c91a0; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.sparkle { color: #a58fff; font-size: 17px; }
.welcome-card h2, .status-card h2 { margin: 17px 0 5px; font-size: 18px; letter-spacing: -.45px; }
.welcome-card > p, .status-card > p { max-width: 440px; margin-bottom: 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.server-placeholder { display: flex; min-height: 43px; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #303440; border-radius: 8px; background: #15171d; color: #7d8290; }
.server-placeholder-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: #272333; color: #a691ff; font-size: 16px; }
.server-placeholder strong, .server-placeholder small { display: block; }
.server-placeholder strong { color: #c3c6d0; font-size: 10px; }
.server-placeholder small { margin-top: 2px; color: #767b88; font-size: 9px; }
.placeholder-chevron { margin-left: auto; color: #777c89; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #3b3548; border-radius: 20px; color: #c3b6ff; font-size: 9px; }
.status-badge .status-dot { width: 6px; height: 6px; background: #e6aa54; }
.status-empty-icon { display: grid; width: 34px; height: 34px; margin-top: 14px; place-items: center; border: 1px solid #353044; border-radius: 9px; background: #272333; color: #ad9cff; font-size: 20px; }
.status-card h2 { margin-top: 10px; }
.status-card > p { margin-bottom: 0; }

.settings-section { margin-top: 31px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.45px; }
.locked-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #333640; border-radius: 6px; color: #9a9eaa; font-size: 9px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.setting-card { min-height: 129px; padding: 15px; }
.setting-heading { display: flex; align-items: center; gap: 10px; }
.setting-icon { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; font-size: 15px; }
.setting-icon.purple { background: #2b253a; color: #b39aff; }
.setting-icon.blue { background: #202c3e; color: #82b7ff; }
.setting-icon.orange { background: #382a20; color: #e7a96b; }
.setting-icon.green { background: #20342d; color: #74d9a8; }
.setting-copy { display: grid; gap: 3px; }
.setting-copy strong { font-size: 11px; }
.setting-copy small { color: #858a98; font-size: 9px; line-height: 1.4; }
.setting-control { display: flex; gap: 7px; margin-top: 14px; }
.setting-control input, .select-control { min-width: 0; border: 1px solid #303440; border-radius: 7px; background: #15171d; color: #9ca1ae; }
.setting-control input { width: 72px; padding: 0 9px; }
.button-muted { min-height: 31px; padding: 0 10px; border-color: #363946; background: #232630; color: #8e93a0; font-size: 9px; }
.select-control { display: flex; width: 100%; height: 32px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 10px; font-size: 9px; text-align: left; }
.setting-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: #9ea3af; font-size: 9px; }
.toggle { width: 27px; height: 15px; border: 1px solid #3b3e49; border-radius: 9px; background: #2b2e38; }
.disabled-chip { padding: 4px 7px; border: 1px solid #343741; border-radius: 5px; color: #8c91a0; font-size: 8px; }
input:disabled, button:disabled { cursor: not-allowed; opacity: .62; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #242731; color: #707582; font-size: 9px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: min(380px, calc(100vw - 32px)); padding: 12px 15px; transform: translateY(12px); border: 1px solid #484054; border-radius: 9px; background: #201d28; box-shadow: 0 12px 36px #0007; color: #e6e0f7; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1000px) {
  .main-content { padding: 0 27px 26px; }
  .sidebar { width: 218px; }
  .main-content { margin-left: 218px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; height: auto; padding: 13px 17px; border-right: 0; border-bottom: 1px solid #242731; }
  .brand-mark { width: 33px; height: 33px; }
  .nav-label, .navigation, .sidebar-bottom { display: none; }
  .main-content { margin-left: 0; padding: 0 17px 22px; }
  .topbar { height: 54px; }
  .page-heading { align-items: flex-start; flex-direction: column; padding: 27px 0 17px; }
  .page-heading .button { width: 100%; }
  .setup-banner { align-items: flex-start; flex-wrap: wrap; }
  .setup-pill { margin-left: 40px; }
  .overview-grid, .settings-grid { grid-template-columns: 1fr; }
  .welcome-card, .status-card { min-height: auto; }
  .section-heading { align-items: flex-start; gap: 10px; }
  .locked-label { white-space: nowrap; }
  .page-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}