:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #050505;
  --surface: rgba(18, 18, 18, 0.82);
  --surface-solid: #111111;
  --surface-2: #161616;
  --surface-3: #1d1d1f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-soft: #d2d2d7;
  --muted: #86868b;
  --muted-2: #6e6e73;
  --white: #ffffff;
  --black: #000000;
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.12);
  --warning: #ffd60a;
  --warning-soft: rgba(255, 214, 10, 0.10);
  --success: #ffffff;
  --success-soft: rgba(255, 255, 255, 0.09);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.22);
  --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 70px rgba(0,0,0,.42);
  --sidebar: 282px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 50% -220px, rgba(255,255,255,.09), transparent 66%),
    linear-gradient(180deg, #030303 0%, #000 58%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .92em;
  color: var(--text-soft);
}

::selection { background: #fff; color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border: 3px solid #000; border-radius: 999px; }

.ambient { position: fixed; inset: auto; pointer-events: none; z-index: -1; filter: blur(100px); opacity: .14; border-radius: 999px; }
.ambient-one { width: 520px; height: 520px; background: #fff; top: -420px; left: 15%; }
.ambient-two { width: 360px; height: 360px; background: #fff; right: -310px; top: 26%; opacity: .05; }

/* Layout */
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: rgba(4, 4, 4, .78);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  z-index: 20;
}
.content { min-width: 0; padding: 28px clamp(18px, 3vw, 48px) 60px; }
.content > * { max-width: 1540px; margin-left: auto; margin-right: auto; }

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 2px 8px 22px; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12);
}
.brand-copy { min-width: 0; }
.brand strong { display: block; font-size: 15px; font-weight: 720; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.guild-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 17px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.035);
  min-width: 0;
}
.guild-chip img, .guild-fallback { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; flex: 0 0 auto; }
.guild-fallback, .avatar-fallback { display: grid; place-items: center; background: #1c1c1e; border: 1px solid var(--line); font-weight: 700; }
.guild-chip > span:last-child, .user-card > span:last-child { min-width: 0; }
.guild-chip strong, .guild-chip small, .user-card strong, .user-card small { display: block; }
.guild-chip strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 650; }
.guild-chip small { color: var(--muted); font-size: 9px; margin-top: 2px; }

/* Sidebar navigation */
.nav { display: flex; flex-direction: column; gap: 2px; overflow: auto; padding-right: 2px; }
.nav-group-label { margin: 15px 10px 6px; color: #5f5f63; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 8px 11px;
  color: #9a9a9f;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 580;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.nav-link .nav-symbol { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.035); color: #8e8e93; font-size: 10px; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-link.active { color: #000; background: #fff; border-color: #fff; box-shadow: 0 8px 28px rgba(255,255,255,.08); }
.nav-link.active .nav-symbol { color: #000; background: rgba(0,0,0,.08); }
.switch-server { display: inline-flex; margin: 12px 10px 2px; color: var(--muted); font-size: 10px; }
.switch-server:hover { color: #fff; }
.sidebar-bottom { margin-top: auto; padding-top: 14px; }
.user-card { display: flex; align-items: center; gap: 10px; margin: 0 4px 9px; padding: 9px; border-radius: 12px; }
.user-card img, .avatar-fallback { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.user-card strong { font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-card small { color: #666; font-size: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; margin-bottom: 24px; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.045em; font-weight: 680; }
.eyebrow { color: var(--muted); font-size: 9px; font-weight: 720; letter-spacing: .16em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #a9a9ae; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 650; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 3px rgba(255,69,58,.12); }

/* Buttons */
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #ececee;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.button:hover { transform: translateY(-1px); border-color: var(--line-strong); background: rgba(255,255,255,.075); }
.button:active { transform: translateY(0) scale(.985); }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.button-primary { background: #fff; color: #000; border-color: #fff; }
.button-primary:hover { background: #e9e9eb; border-color: #e9e9eb; }
.button-secondary { background: rgba(255,255,255,.055); color: #fff; }
.button-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button-ghost:hover { color: #fff; border-color: var(--line); }
.button-danger, .button-danger-soft { color: #ff8a84; border-color: rgba(255,69,58,.28); background: var(--danger-soft); }
.button-danger:hover, .button-danger-soft:hover { background: rgba(255,69,58,.2); border-color: rgba(255,69,58,.45); }
.button-success { background: #fff; color: #000; border-color: #fff; }
.button-large { min-height: 46px; padding: 11px 19px; font-size: 12px; }
.button-full { width: 100%; }
.button-square { width: 36px; padding: 0; border-radius: 12px; }
.command-button { min-width: 126px; justify-content: space-between; color: #9b9ba0; }
.command-button kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: #111; color: #777; font-size: 8px; }

/* Cards and panels */
.panel-card, .glass-card, .stat-card, .server-card, .security-card, .quick-card, .feature-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.panel-card { border-radius: var(--radius-lg); padding: clamp(18px, 2.2vw, 28px); margin-bottom: 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.03em; font-weight: 650; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; max-width: 720px; }
.section-title { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.02em; }

.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { min-height: 126px; border-radius: 22px; padding: 19px; }
.stat-card > span { display: block; color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
.stat-card strong { display: block; margin: 10px 0 2px; font-size: clamp(26px, 3vw, 38px); line-height: 1; font-weight: 590; letter-spacing: -.045em; }
.stat-card small { color: #77777b; font-size: 9px; }
.stat-card.compact { min-height: 102px; }

.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.quick-card { display: block; min-height: 155px; padding: 19px; border-radius: 22px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.quick-card .quick-icon, .quick-card > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; color: #d6d6d8; font-size: 10px; background: rgba(255,255,255,.035); }
.quick-card h3 { margin: 20px 0 5px; font-size: 13px; font-weight: 650; }
.quick-card p { margin: 0; color: var(--muted); font-size: 10px; }

/* Server selector */
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.server-card { display: flex; align-items: center; gap: 13px; min-height: 86px; border-radius: 18px; padding: 13px; }
.server-card-muted { opacity: .62; }
.server-avatar img, .server-avatar span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; object-fit: cover; background: #1b1b1d; border: 1px solid var(--line); font-weight: 700; }
.server-card-copy { min-width: 0; flex: 1; }
.server-card-copy h3 { margin: 0; font-size: 12px; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.server-card-copy p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.security-card { border-radius: 22px; padding: 17px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.security-card:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.security-card-on { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.18); }
.security-card-top { display: flex; gap: 11px; align-items: flex-start; }
.security-card-top > div:last-child { min-width: 0; }
.security-card h3 { margin: 1px 0 4px; font-size: 12px; font-weight: 650; }
.security-card p { margin: 0; color: var(--muted); font-size: 9px; min-height: 39px; }
.module-icon { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; border: 1px solid var(--line); background: #181818; color: #b8b8bd; font-size: 9px; font-weight: 760; }
.module-icon.green, .module-icon.violet, .module-icon.blue { background: #fff; color: #000; border-color: #fff; }
.module-icon.slate { background: #161616; color: #666; }
.security-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 13px 0; }
.security-meta span { padding: 5px 7px; border-radius: 8px; background: rgba(255,255,255,.04); color: #777; font-size: 8px; }
.security-meta strong { color: #bbb; font-weight: 650; }
.config-details { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
.config-details summary { cursor: pointer; color: #8e8e93; font-size: 9px; font-weight: 650; }
.config-details[open] summary { color: #d2d2d7; }

.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.profile-card.active { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.profile-card h3 { margin: 9px 0 5px; font-size: 13px; }
.profile-card p { margin: 0 0 14px; min-height: 45px; color: var(--muted); font-size: 9px; }
.profile-badge { display: inline-flex; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: #a1a1a6; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }

/* Forms */
.form-stack { display: grid; gap: 12px; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.filter-bar { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar label { min-width: 150px; }
.filter-bar .filter-grow { flex: 1; min-width: 220px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 6px; color: #8c8c91; font-size: 9px; font-weight: 630; letter-spacing: .01em; }
input, select, textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  color: var(--text);
  background: #0b0b0c;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: #4d4d50; }
input:focus, select:focus, textarea:focus { border-color: rgba(255,255,255,.36); box-shadow: 0 0 0 4px rgba(255,255,255,.055); background: #0f0f10; }
select { color-scheme: dark; }
.sticky-save { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding: 12px 14px; background: rgba(12,12,12,.90); border: 1px solid var(--line-strong); border-radius: 18px; backdrop-filter: blur(24px); z-index: 8; box-shadow: var(--shadow); }
.sticky-save span { color: var(--muted); font-size: 9px; }

/* Lists */
.module-list, .activity-list, .health-grid, .id-list, .checklist, .case-list { display: grid; gap: 0; }
.module-row, .health-row, .id-row, .activity-item, .case-row { display: flex; align-items: center; gap: 10px; padding: 11px 3px; border-bottom: 1px solid rgba(255,255,255,.065); }
.module-row:last-child, .health-row:last-child, .id-row:last-child, .activity-item:last-child, .case-row:last-child { border-bottom: 0; }
.module-row > span:nth-child(2), .health-row > span:first-child, .activity-item > span:nth-child(2), .case-row > span:nth-child(2) { flex: 1; min-width: 0; }
.module-row strong, .health-row strong, .activity-item strong, .case-row strong { display: block; font-size: 10px; font-weight: 650; }
.module-row small, .health-row small, .activity-item small, .case-row small { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.05); flex: 0 0 auto; }
.activity-item time { color: #666; font-size: 8px; white-space: nowrap; }
.id-row code { flex: 1; color: #b3b3b7; }
.icon-button { width: 29px; height: 29px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: #777; cursor: pointer; }
.icon-button:hover { color: #fff; border-color: var(--line-strong); }
.icon-button.danger:hover { color: #ff8a84; border-color: rgba(255,69,58,.4); }
.add-id-form { display: flex; align-items: end; gap: 8px; margin-top: 12px; }
.add-id-form label { flex: 1; }

.tag { display: inline-flex; align-items: center; justify-content: center; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: #9a9a9f; font-size: 8px; font-weight: 650; white-space: nowrap; }
.tag-green, .tag-blue { color: #000; background: #fff; border-color: #fff; }
.tag-slate { color: #777; }
.tag-warn { color: #e7e7ea; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.tag-danger { color: #ff8a84; background: rgba(255,69,58,.10); border-color: rgba(255,69,58,.25); }

/* Charts */
.bar-list { display: grid; gap: 14px; }
.bar-item > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 9px; }
.bar-item span { color: #949499; }
.bar-track { height: 5px; background: #080808; border: 1px solid rgba(255,255,255,.05); border-radius: 999px; overflow: hidden; }
.bar-track span { display: block; height: 100%; border-radius: inherit; background: #fff; }
.vertical-chart { height: 280px; display: flex; gap: 8px; align-items: flex-end; padding: 20px 5px 5px; }
.vertical-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.vertical-bar > span { width: min(24px, 60%); min-height: 5px; border-radius: 5px 5px 2px 2px; background: #fff; }
.vertical-bar strong { margin-top: 6px; font-size: 8px; }
.vertical-bar small { color: #646468; font-size: 7px; white-space: nowrap; }

/* Tables */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #090909; }
table { width: 100%; border-collapse: collapse; font-size: 9px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.065); vertical-align: middle; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 1; background: rgba(17,17,17,.97); color: #666; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
td { color: #b4b4b9; }
tbody tr:hover td { background: rgba(255,255,255,.025); }
.reason-cell { min-width: 240px; max-width: 520px; white-space: normal; line-height: 1.45; }
.metadata-cell { max-width: 460px; white-space: normal; word-break: break-word; color: #7f7f84; }

/* Alerts */
.alert { margin-bottom: 15px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.alert strong { font-size: 10px; }
.alert p { margin: 4px 0 0; color: #999; font-size: 9px; }
.alert-success { border-color: rgba(255,255,255,.20); background: rgba(255,255,255,.07); }
.alert-warn { border-color: rgba(255,255,255,.15); }
.alert-danger { border-color: rgba(255,69,58,.30); background: var(--danger-soft); }
.alert-danger strong, .alert-danger p { color: #ffaaa5; }

/* Response center */
.response-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: stretch; }
.response-state { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; }
.response-state h2 { margin: 10px 0 8px; font-size: 30px; letter-spacing: -.045em; }
.response-state p { color: var(--muted); max-width: 680px; }
.response-orb { min-height: 230px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.13), rgba(255,255,255,.025) 55%, transparent 72%); }
.response-orb > div { width: 130px; height: 130px; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 70px rgba(255,255,255,.08); }
.response-orb strong { font-size: 16px; }
.response-orb span { color: var(--muted); font-size: 8px; margin-top: 3px; text-transform: uppercase; letter-spacing: .12em; }

/* Landing */
.landing-shell { max-width: 1380px; margin: 0 auto; padding: 24px 30px 80px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; }
.landing-nav .brand { padding: 0; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; min-height: 700px; }
.hero-badge { display: inline-flex; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #9f9fa4; background: rgba(255,255,255,.03); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.hero-copy h1 { margin: 18px 0; max-width: 780px; font-size: clamp(52px, 6.8vw, 92px); line-height: .94; letter-spacing: -.065em; font-weight: 620; }
.hero-copy > p { max-width: 680px; color: #8f8f94; font-size: 15px; line-height: 1.55; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 26px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: #6f6f74; font-size: 9px; }
.hero-panel { padding: 18px; border-radius: 30px; transform: perspective(1200px) rotateY(-2.5deg) rotateX(1.1deg); }
.mock-header { display: flex; align-items: center; gap: 6px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: #777; font-size: 9px; }
.mock-header strong { margin-left: 8px; color: #aaa; }
.window-dot { width: 7px; height: 7px; border-radius: 50%; background: #28282a; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 0; }
.metric { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #0b0b0b; }
.metric span, .metric small, .metric strong { display: block; }
.metric span, .metric small { color: #717176; font-size: 8px; }
.metric strong { margin: 4px 0; font-size: 26px; letter-spacing: -.04em; font-weight: 600; }
.security-preview { display: grid; gap: 4px; }
.security-preview > div { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; }
.security-preview > div > span:nth-child(2) { flex: 1; }
.security-preview strong, .security-preview small { display: block; }
.security-preview strong { font-size: 10px; }
.security-preview small { color: #666; font-size: 8px; }
.section-heading { text-align: center; margin: 70px 0 28px; }
.section-heading h2 { margin: 6px auto; max-width: 760px; font-size: 34px; letter-spacing: -.045em; font-weight: 620; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-card { min-height: 210px; padding: 22px; border-radius: 24px; }
.feature-card > span { color: #606064; font-size: 9px; font-weight: 750; }
.feature-card h3 { margin: 40px 0 8px; font-size: 14px; }
.feature-card p { margin: 0; color: #7e7e83; font-size: 10px; line-height: 1.55; }

/* Public bot */
.hero-mini { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 30px; }
.hero-mini h2 { margin: 9px 0; max-width: 700px; font-size: 34px; line-height: 1.05; letter-spacing: -.045em; }
.hero-mini p { max-width: 780px; color: var(--muted); font-size: 11px; }
.public-orb { flex: 0 0 auto; width: 142px; height: 142px; display: grid; place-items: center; align-content: center; border: 1px solid var(--line-strong); border-radius: 50%; background: radial-gradient(circle at 40% 30%, #272727, #0a0a0a 66%); box-shadow: 0 0 70px rgba(255,255,255,.06); }
.public-orb strong { font-size: 28px; font-weight: 600; }
.public-orb span { color: #777; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.checklist > div { display: flex; gap: 13px; padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.065); }
.checklist > div:last-child { border-bottom: 0; }
.checklist > div > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.04); color: #aaa; font-size: 9px; font-weight: 750; }
.checklist p { margin: 0; }
.checklist strong, .checklist small { display: block; }
.checklist strong { font-size: 10px; }
.checklist small { margin-top: 2px; color: var(--muted); font-size: 8px; }

/* Empty/error */
.empty-state { padding: 36px 18px; text-align: center; color: #65656a; }
.empty-state.compact { padding: 18px; }
.empty-state h3 { margin: 0 0 5px; color: #a4a4a9; font-size: 12px; }
.empty-state p { margin: 0; font-size: 9px; }
.error-shell { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.error-card { width: min(540px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.error-card h1 { margin: 10px 0; font-size: 30px; letter-spacing: -.04em; }
.error-card p { color: var(--muted); }
.error-code { color: #777; font-size: 8px; font-weight: 750; letter-spacing: .18em; }

/* Command palette */
.command-overlay { position: fixed; inset: 0; z-index: 100; display: none; place-items: start center; padding: 13vh 18px 30px; background: rgba(0,0,0,.56); backdrop-filter: blur(16px); }
.command-overlay.open { display: grid; }
.command-dialog { width: min(650px, 100%); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(18,18,18,.96); box-shadow: 0 35px 120px rgba(0,0,0,.65); }
.command-input-wrap { padding: 12px; border-bottom: 1px solid var(--line); }
.command-input { min-height: 48px; border: 0; background: transparent; font-size: 15px; }
.command-input:focus { box-shadow: none; }
.command-results { max-height: 390px; overflow: auto; padding: 8px; }
.command-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: transparent; color: #bdbdc2; text-align: left; cursor: pointer; }
.command-result:hover, .command-result.active { color: #000; background: #fff; }
.command-result small { color: #666; }
.command-result:hover small, .command-result.active small { color: #4c4c4f; }
.command-empty { padding: 24px; color: #666; text-align: center; font-size: 10px; }

/* Utility */
.muted { color: var(--muted); }
.text-danger { color: #ff8a84; }
.text-good { color: #fff; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.space-top { margin-top: 18px; }
.split-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hidden { display: none !important; }

@media (max-width: 1220px) {
  :root { --sidebar: 254px; }
  .security-grid, .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 32px; }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
  .nav-group-label { grid-column: 1 / -1; }
  .sidebar-bottom { margin-top: 12px; }
  .content { padding: 20px 14px 50px; }
  .topbar { align-items: flex-start; }
  .stat-strip, .stat-strip.four, .two-column, .three-column, .server-grid, .security-grid, .profile-grid, .quick-grid, .feature-grid, .response-hero { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 80px 0 50px; }
  .hero-panel { transform: none; }
  .landing-shell { padding: 18px 18px 60px; }
  .field-pair { grid-template-columns: 1fr; }
  .sticky-save { align-items: stretch; flex-direction: column; }
  .hero-mini { align-items: flex-start; }
  .public-orb { width: 105px; height: 105px; }
}

@media (max-width: 560px) {
  .nav { grid-template-columns: 1fr; }
  .top-actions .button-secondary, .command-button { display: none; }
  .stat-strip.four { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 48px; }
  .hero-mini { display: block; }
  .public-orb { margin-top: 24px; }
  .panel-heading { display: block; }
  .panel-heading > :last-child { margin-top: 10px; }
  .add-id-form { align-items: stretch; flex-direction: column; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label, .filter-bar .filter-grow { width: 100%; min-width: 0; }
}

.error-logo {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.08);
}

/* Progressive enforcement */
.compact-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px; margin-bottom:18px; }
.compact-hero h1 { margin:6px 0 8px; font-size:34px; letter-spacing:-.045em; font-weight:620; }
.compact-hero p { margin:0; max-width:760px; color:var(--muted); font-size:10px; line-height:1.6; }
.hero-status { display:flex; align-items:center; gap:9px; padding:10px 13px; border:1px solid var(--line); border-radius:999px; background:#0b0b0b; font-size:9px; }
.status-dot { width:8px; height:8px; border-radius:50%; background:#3a3a3d; box-shadow:0 0 0 4px rgba(255,255,255,.02); }
.status-dot.online { background:#fff; box-shadow:0 0 16px rgba(255,255,255,.55); }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.stat-card { padding:18px; border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.stat-card span,.stat-card small,.stat-card strong { display:block; }
.stat-card span { color:#69696e; font-size:8px; font-weight:750; text-transform:uppercase; letter-spacing:.12em; }
.stat-card strong { margin:8px 0 4px; font-size:26px; letter-spacing:-.04em; font-weight:600; }
.stat-card small { color:var(--muted); font-size:8px; line-height:1.45; }
.timeline-list { display:grid; gap:6px; margin-top:10px; }
.timeline-item { display:flex; gap:12px; align-items:flex-start; padding:12px; border:1px solid var(--line); border-radius:14px; background:#0b0b0b; }
.timeline-item p { margin:3px 0 0; color:var(--muted); font-size:8px; }
.timeline-index { width:28px; height:28px; display:grid; place-items:center; flex:0 0 auto; border:1px solid var(--line-strong); border-radius:9px; background:#111; color:#fff; font-size:9px; font-weight:750; }
.callout { margin-top:12px; padding:14px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01)); }
.callout p { margin:4px 0 0; color:var(--muted); font-size:9px; line-height:1.55; }
.badge { display:inline-flex; align-items:center; padding:4px 7px; border:1px solid var(--line); border-radius:999px; background:#0c0c0c; font-size:8px; font-weight:700; }
.button-small { min-height:30px; padding:6px 9px; font-size:8px; }
@media (max-width: 1050px) { .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .stats-grid { grid-template-columns:1fr; } .compact-hero { align-items:flex-start; flex-direction:column; } }
