:root {
  color-scheme: dark;
  --bg: #0a0911;
  --sidebar: #0d0c15;
  --surface: #11101a;
  --surface-2: #151320;
  --line: rgba(204, 192, 255, .085);
  --line-strong: rgba(204, 192, 255, .14);
  --text: #f4f1fb;
  --muted: #8b879c;
  --faint: #5e5a6f;
  --violet: #9d7cff;
  --violet-bright: #b195ff;
  --mint: #7ce3c4;
  --amber: #e5bd7f;
  --blue: #88a9ff;
  --font: 'DM Sans', 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse at 74% -15%, rgba(100, 61, 174, .12), transparent 42%), var(--bg); font-family: var(--font); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { min-height: 100vh; }

/* Sidebar */
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: 252px; flex-direction: column; padding: 22px 15px 15px; border-right: 1px solid rgba(204,192,255,.075); background: linear-gradient(180deg, rgba(17,15,27,.98), rgba(11,10,17,.99)); }
.brand-row { display: flex; height: 44px; align-items: center; gap: 10px; padding: 0 6px; }
.brand-mark { position: relative; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(177,149,255,.42); border-radius: 11px 6px 11px 6px; background: linear-gradient(140deg, rgba(153,112,255,.34), rgba(72,45,129,.1)); box-shadow: inset 0 0 14px rgba(157,124,255,.12), 0 0 18px rgba(129,88,218,.14); }
.brand-mark span { font: 700 12px var(--display); letter-spacing: -.06em; }
.brand-mark i { position: absolute; right: -3px; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(124,227,196,.8); }
.brand-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.brand-copy strong { font: 700 12px var(--display); letter-spacing: .12em; }
.brand-copy strong span { margin-left: 4px; color: var(--violet-bright); }
.brand-copy small { color: #777286; font-size: 8px; letter-spacing: .17em; }
.sidebar-close { display: none !important; }
.server-switcher { display: flex; align-items: center; gap: 10px; margin: 28px 0 25px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.022); }
.server-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(177,149,255,.23); border-radius: 8px; background: linear-gradient(145deg, #4c347b, #211a36); color: #dfd3ff; font: 700 13px var(--display); }
.server-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.server-copy .overline { color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.server-copy strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.switcher-chevron { width: 14px; height: 14px; color: var(--faint); transform: rotate(90deg); }
.primary-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-caption { margin: 0 10px 8px; color: #696578; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.nav-caption-spaced { margin-top: 26px; }
.nav-link { position: relative; display: flex; width: 100%; min-height: 39px; align-items: center; gap: 11px; padding: 0 11px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #9b97a8; cursor: pointer; text-align: left; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.nav-link > svg { width: 16px; height: 16px; color: #777386; }
.nav-link span:nth-of-type(1) { flex: 1; font-size: 11px; font-weight: 500; }
.nav-link:hover { border-color: rgba(180,159,255,.08); background: rgba(255,255,255,.035); color: #e8e2f8; }
.nav-link:hover > svg, .nav-link.is-active > svg { color: var(--violet-bright); }
.nav-link.is-active { border-color: rgba(163,133,244,.14); background: linear-gradient(90deg, rgba(130,94,207,.17), rgba(108,79,166,.07)); color: #eee8ff; }
.nav-link.is-active::before { position: absolute; top: 8px; bottom: 8px; left: -16px; width: 2px; border-radius: 0 2px 2px 0; background: var(--violet); box-shadow: 0 0 10px rgba(157,124,255,.55); content: ''; }
.nav-link kbd { color: #746a8e; font: 600 9px var(--display); }
.nav-pill { margin-left: auto; color: #b69aff; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px rgba(157,124,255,.75); }
.sidebar-bottom { margin-top: auto; }
.connection-card { margin: 0 2px 12px; padding: 12px; border: 1px solid rgba(190,169,255,.1); border-radius: 9px; background: radial-gradient(ellipse at top right, rgba(121,88,192,.12), transparent 75%), rgba(255,255,255,.018); }
.connection-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.connection-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: rgba(151,120,227,.11); color: #b8a0fb; }
.connection-icon svg { width: 14px; height: 14px; }
.connection-card > strong { display: block; font-size: 10px; font-weight: 600; }
.connection-card > span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.connection-card > button { display: flex; align-items: center; gap: 5px; margin-top: 11px; padding: 0; border: 0; background: transparent; color: #b99fff; cursor: pointer; font-size: 9px; }
.connection-card > button svg { width: 12px; height: 12px; }
.settings-link { margin-bottom: 12px; }
.sidebar-footer { display: flex; min-height: 43px; align-items: center; gap: 9px; padding: 9px 5px 0; border-top: 1px solid var(--line); color: #cac5d5; font-size: 10px; font-weight: 600; }
.footer-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: #1d1930; color: #ac91ff; font: 700 9px var(--display); }
.sidebar-footer small { display: block; margin-top: 2px; color: #686477; font-size: 8px; font-weight: 500; letter-spacing: .08em; }
.footer-more { margin-left: auto; color: #79758a; font-size: 19px; letter-spacing: 1px; }
.status-orb { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; }
.status-orb.pending { background: #b49564; box-shadow: 0 0 9px rgba(199,164,102,.42); }

/* Main header */
.main-column { min-height: 100vh; margin-left: 252px; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 66px; align-items: center; justify-content: space-between; padding: 0 37px; border-bottom: 1px solid rgba(204,192,255,.07); background: rgba(10,9,17,.82); backdrop-filter: blur(17px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #797589; font-size: 10px; }
.breadcrumbs svg { width: 12px; height: 12px; color: #5f5b6d; }
.breadcrumbs strong { color: #d9d4e6; font-weight: 500; }
.topbar-tools { display: flex; align-items: center; gap: 18px; }
.search-box { display: flex; width: 208px; height: 33px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid rgba(204,192,255,.09); border-radius: 7px; background: rgba(255,255,255,.025); color: #7e798d; }
.search-box svg { width: 14px; height: 14px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.search-box input::placeholder { color: #777286; }
.search-box kbd { flex: 0 0 auto; padding: 3px 4px; border: 1px solid rgba(204,192,255,.09); border-radius: 4px; color: #797488; font: 9px var(--font); }
.topbar-divider { width: 1px; height: 21px; background: var(--line-strong); }
.icon-button { position: relative; display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #9791a5; cursor: pointer; transition: .18s ease; }
.icon-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); }
.icon-button svg { width: 16px; height: 16px; }
.notification-button i { position: absolute; top: 6px; right: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 7px var(--violet); }
.profile-button { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.profile-avatar { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(169,143,245,.25); border-radius: 8px; background: linear-gradient(145deg, #373050, #1c1927); color: #d4c4ff; font: 600 11px var(--display); }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 10px; font-weight: 600; }
.profile-copy small { margin-top: 2px; color: #777286; font-size: 8px; }
.profile-button > svg { width: 12px; height: 12px; color: #696576; transform: rotate(90deg); }
.menu-toggle { display: none; }

/* Page content */
.page-content { width: min(100%, 1500px); margin: 0 auto; padding: 30px 38px 20px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #858095; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.eyebrow b { color: #5d526f; font-weight: 500; }
.eyebrow-mark { width: 5px; height: 5px; border: 1px solid var(--violet); transform: rotate(45deg); }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { margin-bottom: 4px; font: 600 25px var(--display); letter-spacing: -.045em; }
.page-heading p { margin-bottom: 0; color: #888397; font-size: 11px; }
.heading-actions { display: flex; align-items: center; gap: 12px; }
.preview-badge { display: inline-flex; height: 25px; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid rgba(197,165,106,.17); border-radius: 5px; background: rgba(197,165,106,.055); color: #b9a274; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.preview-badge i { width: 5px; height: 5px; border-radius: 50%; background: #d3ae70; box-shadow: 0 0 7px rgba(211,174,112,.55); }
.button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: 600; transition: .18s ease; }
.button svg { width: 13px; height: 13px; }
.button-primary { border-color: rgba(186,164,255,.25); background: linear-gradient(135deg, rgba(135,99,212,.28), rgba(93,68,152,.2)); color: #e2d8ff; box-shadow: inset 0 1px rgba(255,255,255,.055); }
.button-primary:hover { border-color: rgba(186,164,255,.48); background: linear-gradient(135deg, rgba(148,109,227,.37), rgba(104,75,166,.3)); }
.button-ghost { border-color: rgba(198,180,255,.21); background: rgba(158,128,235,.1); color: #dfd4ff; }
.button-ghost:hover { border-color: rgba(198,180,255,.4); background: rgba(158,128,235,.16); }

/* Hero */
.hero-panel { position: relative; display: flex; min-height: 211px; align-items: center; overflow: hidden; border: 1px solid rgba(185,156,251,.17); border-radius: 11px; background: radial-gradient(ellipse at 81% 47%, rgba(100,67,159,.22), transparent 35%), linear-gradient(110deg, #171322 0%, #15111f 47%, #110e1a 100%); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 14px 40px rgba(0,0,0,.12); }
.hero-panel::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,9,17,.06), transparent 48%, rgba(10,9,17,.2)), repeating-linear-gradient(0deg, transparent 0 34px, rgba(189,164,255,.025) 35px), repeating-linear-gradient(90deg, transparent 0 34px, rgba(189,164,255,.022) 35px); mask-image: linear-gradient(90deg, transparent 22%, black 100%); content: ''; }
.hero-grid { position: absolute; inset: 0; opacity: .35; background: radial-gradient(ellipse at 77% 50%, rgba(157,124,255,.13), transparent 43%); }
.hero-content { position: relative; z-index: 2; max-width: 550px; padding: 29px 34px; }
.hero-kicker { display: flex; align-items: center; gap: 7px; color: #a09aac; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.kicker-line { width: 21px; height: 1px; margin-left: 3px; background: rgba(181,161,227,.28); }
.hero-kicker .status-orb { width: 5px; height: 5px; }
.hero-content h2 { margin: 13px 0 6px; font: 600 27px var(--display); letter-spacing: -.05em; }
.hero-content h2 span { color: #b59aff; }
.hero-content p { max-width: 445px; margin-bottom: 16px; color: #aaa5b6; font-size: 11px; line-height: 1.65; }
.hero-emblem { position: absolute; top: 50%; right: 12%; display: grid; width: 190px; height: 190px; place-items: center; opacity: .84; transform: translateY(-50%); }
.emblem-inner { position: relative; z-index: 2; display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid rgba(183,151,255,.48); border-radius: 23px 9px 23px 9px; background: radial-gradient(circle at 28% 20%, rgba(179,143,255,.42), rgba(66,46,105,.2) 64%, rgba(20,16,31,.9)); box-shadow: 0 0 50px rgba(133,96,216,.25), inset 0 0 24px rgba(171,139,244,.14); transform: rotate(-8deg); }
.emblem-inner span { color: #ede5ff; font: 700 23px var(--display); letter-spacing: -.1em; text-shadow: 0 0 17px rgba(188,162,255,.7); transform: rotate(8deg); }
.emblem-inner i { position: absolute; right: 7px; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.emblem-ring { position: absolute; width: 138px; height: 138px; border: 1px solid rgba(175,149,238,.15); border-radius: 50%; transform: rotateX(64deg) rotate(-18deg); }
.ring-two { width: 185px; height: 185px; border-color: rgba(175,149,238,.1); transform: rotateX(64deg) rotate(39deg); }
.hero-orbit { position: absolute; z-index: 1; width: 4px; height: 4px; border-radius: 50%; background: #c4a7ff; box-shadow: 0 0 13px 3px rgba(174,138,255,.55); }
.orbit-one { top: 35px; right: 24%; }
.orbit-two { right: 9%; bottom: 39px; width: 3px; height: 3px; background: #8de6cd; box-shadow: 0 0 12px rgba(124,227,196,.55); }
.hero-corner { position: absolute; width: 20px; height: 20px; border-color: rgba(184,158,244,.46); }
.corner-top { top: 9px; right: 9px; border-top: 1px solid; border-right: 1px solid; }
.corner-bottom { right: 9px; bottom: 9px; border-right: 1px solid; border-bottom: 1px solid; }

/* Metrics and cards */
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 11px; }
.section-heading > div { display: flex; align-items: center; gap: 9px; }
.section-index { color: #83729f; font: 600 9px var(--display); }
.section-heading h2 { margin: 0; font: 600 13px var(--display); letter-spacing: -.015em; }
.section-note { display: inline-flex; align-items: center; gap: 6px; color: #777286; font-size: 9px; }
.section-note .status-orb { width: 5px; height: 5px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.metric-card { min-height: 111px; padding: 13px 14px 11px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(140deg, rgba(25,23,37,.83), rgba(17,16,25,.92)); box-shadow: inset 0 1px rgba(255,255,255,.018); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #8b859b; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.metric-icon, .module-icon { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 7px; }
.metric-icon svg { width: 13px; height: 13px; }
.violet { border-color: rgba(172,143,255,.13); background: rgba(150,112,233,.1); color: #b99dff; }
.blue { border-color: rgba(132,164,255,.12); background: rgba(104,135,225,.09); color: #9ab5ff; }
.mint { border-color: rgba(126,223,192,.11); background: rgba(87,181,148,.085); color: #84ddbe; }
.amber { border-color: rgba(226,187,126,.12); background: rgba(178,137,75,.09); color: #e0bb80; }
.metric-value { margin-top: 7px; color: #eeebf5; font: 600 23px var(--display); letter-spacing: -.05em; }
.metric-value small { color: #777286; font: 500 10px var(--font); letter-spacing: 0; }
.metric-bottom { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: #696579; font-size: 8px; }
.metric-dash { width: 20px; height: 1px; background: linear-gradient(90deg, rgba(161,136,219,.45), transparent); }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 11px; margin-top: 12px; }
.panel-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, rgba(21,19,31,.86), rgba(15,14,23,.95)); }
.server-panel { padding: 15px 16px 0; }
.activity-panel { display: flex; min-height: 250px; flex-direction: column; padding: 15px 16px 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-kicker { display: block; margin-bottom: 4px; color: #766f88; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.panel-heading h2 { margin: 0; font: 600 13px var(--display); }
.panel-more { color: #797387; font-size: 17px; letter-spacing: 1px; }
.connection-summary { display: flex; align-items: center; gap: 11px; margin: 17px 0 14px; padding: 11px; border: 1px solid rgba(204,192,255,.065); border-radius: 7px; background: rgba(255,255,255,.018); }
.large-status-icon { position: relative; display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(179,153,247,.15); border-radius: 8px; background: rgba(147,113,220,.1); color: #b398f5; }
.large-status-icon svg { width: 17px; height: 17px; }
.large-status-icon .status-orb { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border: 1px solid #15111e; }
.connection-summary strong { display: block; color: #ddd9e7; font-size: 10px; font-weight: 600; }
.connection-summary p { margin: 4px 0 0; color: #787488; font-size: 9px; }
.server-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.detail-tile { display: flex; min-height: 43px; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 9px; border: 1px solid rgba(204,192,255,.06); border-radius: 5px; background: rgba(255,255,255,.012); }
.detail-tile > span { color: #706b7f; font-size: 7px; font-weight: 700; letter-spacing: .11em; }
.detail-tile strong { color: #bab5c7; font-size: 9px; font-weight: 500; }
.detail-state { margin-left: 4px; color: #a28c68; font-size: 8px; font-style: normal; font-weight: 400; }
.panel-footer { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; border-top: 1px solid var(--line); color: #777286; font-size: 8px; }
.panel-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.panel-footer .status-orb { width: 5px; height: 5px; }
.panel-footer button, .text-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #ad96e5; cursor: pointer; font-size: 8px; }
.panel-footer button svg, .text-link svg { width: 12px; height: 12px; }
.text-link:hover, .panel-footer button:hover { color: #d0bbff; }
.empty-state { display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.compact-empty { flex: 1; min-height: 170px; padding: 15px 6px; }
.empty-art { position: relative; display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 9px; border: 1px solid rgba(176,151,235,.14); border-radius: 15px 8px 15px 8px; background: linear-gradient(145deg, rgba(139,109,207,.15), rgba(255,255,255,.025)); color: #ad94e9; transform: rotate(-3deg); }
.empty-art > svg { position: relative; z-index: 1; width: 20px; height: 20px; transform: rotate(3deg); }
.empty-glow { position: absolute; inset: 8px; border-radius: 50%; background: rgba(157,124,255,.22); filter: blur(10px); }
.compact-empty > strong { color: #c8c3d2; font-size: 10px; font-weight: 600; }
.compact-empty > p { max-width: 220px; margin: 5px 0 0; color: #777286; font-size: 9px; line-height: 1.6; }
.activity-foot { display: flex; min-height: 38px; align-items: center; gap: 7px; border-top: 1px solid var(--line); color: #706b7f; font-size: 7px; font-weight: 600; letter-spacing: .1em; }
.activity-live-dot { width: 5px; height: 5px; border: 1px solid rgba(157,124,255,.65); border-radius: 50%; box-shadow: 0 0 7px rgba(157,124,255,.4); }
.activity-divider { height: 10px; width: 1px; margin: 0 2px; background: var(--line-strong); }
.modules-heading { margin-top: 22px; }
.module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.module-card { display: flex; min-height: 66px; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(120deg, rgba(22,20,32,.8), rgba(16,15,24,.92)); cursor: pointer; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.module-card:hover { transform: translateY(-1px); border-color: rgba(179,151,246,.22); background: linear-gradient(120deg, rgba(31,26,47,.86), rgba(17,16,27,.96)); }
.module-icon { width: 32px; height: 32px; }
.module-icon svg { width: 15px; height: 15px; }
.module-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.module-copy strong { color: #d9d4e3; font-size: 9px; font-weight: 600; }
.module-copy small { overflow: hidden; color: #797488; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.module-arrow { width: 13px; height: 13px; color: #756c89; }
.module-card:hover .module-arrow { color: #c0a8fb; transform: translateX(2px); }
.page-footer { display: flex; justify-content: space-between; margin-top: 18px; padding: 13px 0 0; border-top: 1px solid rgba(204,192,255,.055); color: #625e70; font-size: 7px; font-weight: 600; letter-spacing: .11em; }
.page-footer i { color: #9c82d3; font-style: normal; }
.page-footer b { margin-left: 6px; color: #9074ca; font-size: 8px; }

/* Other module screens */
.module-view { padding-top: 2px; }
.module-view[hidden] { display: none; }
.module-banner { position: relative; display: flex; min-height: 112px; align-items: center; gap: 14px; padding: 19px 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: radial-gradient(ellipse at 88% 45%, rgba(131,94,201,.14), transparent 40%), linear-gradient(110deg, #171421, #111019); }
.module-banner::after { position: absolute; top: -30px; right: -24px; width: 175px; height: 175px; border: 1px solid rgba(188,160,255,.09); border-radius: 50%; box-shadow: 0 0 0 18px rgba(188,160,255,.02), 0 0 0 39px rgba(188,160,255,.018); content: ''; }
.module-banner-icon { position: relative; z-index: 1; display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(180,151,249,.2); border-radius: 11px 6px 11px 6px; background: rgba(148,114,224,.12); color: #c1aaff; }
.module-banner-icon svg { width: 20px; height: 20px; }
.module-banner-copy { position: relative; z-index: 1; flex: 1; }
.module-banner-copy .panel-kicker { margin-bottom: 5px; }
.module-banner-copy h2 { margin: 0 0 4px; font: 600 17px var(--display); }
.module-banner-copy p { margin: 0; color: #8a8498; font-size: 10px; }
.module-status { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(197,164,102,.13); border-radius: 5px; background: rgba(197,164,102,.045); color: #b49d73; font-size: 7px; font-weight: 700; letter-spacing: .09em; white-space: nowrap; }
.module-status .status-orb { width: 5px; height: 5px; }
.module-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 11px; }
.module-stat { padding: 12px 13px; border: 1px solid var(--line); border-radius: 7px; background: rgba(20,18,29,.83); }
.module-stat > span { display: block; color: #777186; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.module-stat strong { display: block; margin-top: 10px; color: #e2deea; font: 600 17px var(--display); }
.module-stat small { display: block; margin-top: 4px; color: #716c80; font-size: 8px; }
.module-empty-panel { display: flex; min-height: 270px; align-items: center; flex-direction: column; justify-content: center; margin-top: 11px; padding: 28px 20px; border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(ellipse at center, rgba(117,87,177,.065), transparent 47%), rgba(17,16,25,.72); text-align: center; }
.module-empty-panel .empty-art { width: 57px; height: 57px; margin-bottom: 13px; }
.module-empty-panel .empty-art > svg { width: 23px; height: 23px; }
.module-empty-panel h3 { margin: 5px 0 5px; font: 600 14px var(--display); }
.module-empty-panel p { max-width: 420px; margin-bottom: 14px; color: #827d90; font-size: 10px; line-height: 1.65; }
.module-empty-panel .button { min-height: 32px; }
.module-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 11px; }
.info-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(20,18,29,.65); }
.info-card-icon { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: rgba(151,119,222,.09); color: #ac94e5; }
.info-card-icon svg { width: 13px; height: 13px; }
.info-card strong { display: block; margin: 1px 0 4px; color: #cfcad8; font-size: 9px; font-weight: 600; }
.info-card p { margin: 0; color: #7f798d; font-size: 8px; line-height: 1.55; }
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; max-width: min(370px, calc(100vw - 32px)); padding: 11px 15px; border: 1px solid rgba(180,151,249,.24); border-radius: 7px; background: #1a1725; box-shadow: 0 10px 30px rgba(0,0,0,.32); color: #e5dff2; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.sidebar-backdrop { display: none; }

@media (min-width: 1540px) {
  .page-content { padding-right: 48px; padding-left: 48px; }
  .hero-panel { min-height: 224px; }
}
@media (max-width: 1180px) {
  .sidebar { width: 226px; }
  .main-column { margin-left: 226px; }
  .topbar { padding: 0 25px; }
  .page-content { padding-right: 25px; padding-left: 25px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .activity-panel { min-height: 215px; }
}
@media (max-width: 760px) {
  .sidebar { width: 268px; transform: translateX(-101%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.35); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid !important; }
  .sidebar-backdrop.is-visible { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(4,3,8,.62); backdrop-filter: blur(3px); }
  .main-column { margin-left: 0; }
  .topbar { height: 58px; gap: 10px; padding: 0 17px; }
  .menu-toggle { display: grid; }
  .breadcrumbs { flex: 1; gap: 6px; font-size: 9px; }
  .breadcrumbs span { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-tools { gap: 8px; }
  .search-box { width: 34px; height: 32px; justify-content: center; padding: 0; border-color: transparent; background: transparent; }
  .search-box:focus-within { position: absolute; z-index: 5; right: 116px; left: 58px; width: auto; justify-content: flex-start; padding: 0 9px; border-color: var(--line-strong); background: #12111b; }
  .search-box input, .search-box kbd { display: none; }
  .search-box:focus-within input { display: block; }
  .search-box:focus-within kbd { display: none; }
  .topbar-divider { display: none; }
  .profile-copy, .profile-button > svg { display: none; }
  .profile-avatar { width: 27px; height: 27px; }
  .page-content { padding: 22px 17px 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  .heading-actions { width: 100%; justify-content: space-between; }
  .page-heading h1 { font-size: 23px; }
  .hero-panel { min-height: 205px; }
  .hero-content { max-width: 75%; padding: 22px 19px; }
  .hero-content h2 { font-size: 22px; }
  .hero-content p { max-width: 300px; font-size: 10px; }
  .hero-emblem { right: -13%; width: 155px; height: 155px; opacity: .42; }
  .emblem-ring { width: 112px; height: 112px; }
  .ring-two { width: 152px; height: 152px; }
  .section-heading { margin-top: 18px; }
  .module-status { max-width: 132px; font-size: 6px; }
  .module-banner { gap: 10px; padding: 15px; }
  .module-banner-icon { width: 36px; height: 36px; }
  .module-banner-copy h2 { font-size: 14px; }
  .module-banner-copy p { max-width: 220px; font-size: 8px; line-height: 1.5; }
}
@media (max-width: 480px) {
  .breadcrumbs span { display: none; }
  .profile-avatar { width: 25px; height: 25px; }
  .page-content { padding-right: 13px; padding-left: 13px; }
  .page-heading h1 { font-size: 21px; }
  .page-heading p { max-width: 320px; font-size: 10px; line-height: 1.5; }
  .preview-badge { height: 24px; font-size: 7px; }
  .button { min-height: 32px; padding: 0 9px; font-size: 9px; }
  .hero-panel { min-height: 197px; }
  .hero-content { max-width: 88%; padding: 20px 15px; }
  .hero-kicker { gap: 5px; font-size: 7px; letter-spacing: .1em; }
  .hero-content h2 { font-size: 20px; }
  .hero-content p { max-width: 265px; font-size: 9px; }
  .hero-emblem { right: -26%; opacity: .29; }
  .metrics-grid { gap: 7px; }
  .metric-card { min-height: 101px; padding: 10px; }
  .metric-top { font-size: 7px; letter-spacing: .07em; }
  .metric-icon { width: 23px; height: 23px; }
  .metric-value { font-size: 20px; }
  .metric-bottom { font-size: 7px; }
  .server-panel, .activity-panel { padding-right: 11px; padding-left: 11px; }
  .connection-summary { align-items: flex-start; }
  .connection-summary p { max-width: 230px; line-height: 1.5; }
  .server-detail-grid { gap: 5px; }
  .detail-tile { padding: 6px; }
  .detail-tile strong { font-size: 8px; }
  .panel-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 0; }
  .module-grid { grid-template-columns: 1fr; gap: 7px; }
  .module-card { min-height: 61px; }
  .section-note { max-width: 125px; font-size: 8px; text-align: right; }
  .module-banner { align-items: flex-start; flex-wrap: wrap; }
  .module-banner-copy { min-width: calc(100% - 50px); }
  .module-status { margin-left: 46px; }
  .module-stat-grid { gap: 6px; }
  .module-stat { padding: 9px; }
  .module-stat > span { font-size: 6px; }
  .module-stat strong { font-size: 14px; }
  .module-stat small { font-size: 7px; line-height: 1.4; }
  .module-info-grid { grid-template-columns: 1fr; }
  .page-footer { gap: 12px; font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

[hidden] { display: none !important; }
.status-orb.connected { background: #54d6ae; box-shadow: 0 0 11px rgba(84,214,174,.6); }
.preview-badge { white-space: nowrap; }
.preview-badge i { background: #54d6ae; box-shadow: 0 0 8px rgba(84,214,174,.55); }
.auth-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow: auto; padding: 24px; background: radial-gradient(ellipse at 50% 14%, rgba(102,72,174,.17), transparent 42%), #090810; }
.auth-card { width: min(100%, 408px); padding: 32px; border: 1px solid rgba(180,151,249,.17); border-radius: 12px; background: linear-gradient(145deg, rgba(25,22,37,.98), rgba(15,14,23,.98)); box-shadow: 0 28px 90px rgba(0,0,0,.42); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 35px; }
.auth-card > .panel-kicker { color: #9b83cb; font-size: 8px; letter-spacing: .16em; }
.auth-card h1 { margin: 9px 0 7px; color: #f1edf8; font-size: 24px; letter-spacing: -.04em; }
.auth-description { margin: 0 0 23px; color: #888294; font-size: 11px; line-height: 1.6; }
.auth-field { display: grid; gap: 7px; margin: 13px 0; color: #aaa4b5; font-size: 10px; }
.auth-field input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; outline: 0; background: #100f18; color: #f1edf8; font: inherit; font-size: 12px; }
.auth-field input:focus { border-color: rgba(177,146,250,.55); box-shadow: 0 0 0 3px rgba(144,107,218,.12); }
.auth-setup-note, .auth-error { margin: 0 0 15px; padding: 11px 12px; border: 1px solid rgba(242,183,91,.22); border-radius: 6px; background: rgba(242,183,91,.07); color: #e9c17e; font-size: 10px; line-height: 1.55; }
.auth-setup-note code { color: #f0d395; }
.auth-error { border-color: rgba(255,112,132,.22); background: rgba(255,112,132,.07); color: #ff9aaa; }
.auth-submit { width: 100%; min-height: 40px; margin-top: 10px; justify-content: center; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.auth-footnote { display: block; margin-top: 15px; color: #6f6b7b; font-size: 9px; line-height: 1.5; text-align: center; }
.data-table-card { padding: 17px 18px 12px; }
.data-table-heading, .integration-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.data-table-heading { margin-bottom: 14px; }
.data-table-heading h3 { margin: 5px 0 0; color: #e1dce9; font-size: 14px; }
.data-search { display: flex; align-items: center; gap: 7px; width: min(270px, 50%); height: 32px; padding: 0 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; color: #807a8d; background: #11101a; }
.data-search svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.data-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #ddd7e8; font: inherit; font-size: 9px; }
.table-scroll { width: 100%; overflow-x: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.table-scroll th { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.07); color: #777184; font-size: 7px; font-weight: 600; letter-spacing: .1em; }
.table-scroll td { max-width: 280px; overflow: hidden; padding: 10px; border-bottom: 1px solid rgba(255,255,255,.045); color: #c6c0d0; font-size: 9px; text-overflow: ellipsis; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll .numeric-cell { color: #bba5f0; font-variant-numeric: tabular-nums; }
.table-empty { margin: 0; padding: 23px 10px; color: #858091; font-size: 10px; text-align: center; }
.data-table-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: #716c7d; font-size: 8px; }
.module-data-region { margin: 15px 0; }
.module-data-message { padding: 17px; color: #e1dce9; font-size: 10px; }
.integration-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.integration-card { min-height: 105px; padding: 15px; }
.integration-card-heading strong { color: #d8d2e1; font-size: 10px; }
.integration-card p { margin: 12px 0 0; color: #858091; font-size: 9px; line-height: 1.6; }
.integration-state { flex: 0 0 auto; padding: 5px 7px; border: 1px solid rgba(240,184,99,.16); border-radius: 4px; color: #d5aa64; font-size: 7px; letter-spacing: .08em; }
.integration-state.is-connected { border-color: rgba(84,214,174,.2); color: #67d8b6; }
.discord-status-card { padding: 17px; }
.recent-activity-list { display: grid; gap: 0; padding: 0 2px; }
.recent-activity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.recent-activity-row:last-child { border: 0; }
.recent-activity-row strong, .recent-activity-row small { display: block; }
.recent-activity-row strong { color: #d5cfdf; font-size: 9px; }
.recent-activity-row small { max-width: 270px; margin-top: 4px; overflow: hidden; color: #777184; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.recent-activity-row b { font-size: 9px; white-space: nowrap; }
.positive-delta { color: #63d1ad; }
.negative-delta { color: #ff8e9e; }

@media (max-width: 760px) {
  .auth-card { padding: 25px 21px; }
  .integration-card-grid { grid-template-columns: 1fr; }
  .data-table-card { padding: 13px 11px 10px; }
  .data-table-heading { align-items: flex-start; flex-direction: column; }
  .data-search { width: 100%; }
  .data-table-foot { flex-direction: column; gap: 5px; }
}
