/* VoxJar dashboard - original stylesheet. Dark glass theme, violet accent. */

:root {
  --bg: #0b0d14;
  --bg-soft: #11141d;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-hover: rgba(255, 255, 255, 0.075);
  --text: #e9ebf2;
  --text-dim: #a7adc4;
  --text-faint: #767c93;
  --accent: #7c5cff;
  --accent-strong: #9d84ff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --good: #3ecf8e;
  --warn: #f2b544;
  --bad: #ff6b7a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --maxw: 1080px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(62, 207, 142, 0.07), transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(11, 13, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: block;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.topnav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 32px) 80px;
  outline: none;
}

/* --------------------------------------------------------------- layout */

.hero {
  text-align: center;
  padding: clamp(30px, 6vw, 70px) 0 10px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 860px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .topnav a[data-link]:not(.btn) {
    display: none;
  }
  .topnav {
    gap: 8px;
  }
  .topnav .btn-sm {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.card.hoverable:hover,
.card.hoverable:focus-within {
  border-color: rgba(124, 92, 255, 0.45);
  background: var(--card-hover);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.card h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
  color: var(--text);
}

.card p {
  color: var(--text-dim);
  margin: 6px 0;
}

.card .muted {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.spread {
  justify-content: space-between;
}

/* --------------------------------------------------------------- button */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.5);
  background: var(--card-hover);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-strong);
}

.btn-danger {
  border-color: rgba(255, 107, 122, 0.5);
  color: var(--bad);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: rgba(255, 107, 122, 0.12);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.86rem;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- forms */

label.field {
  display: block;
  margin: 14px 0 4px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

input[type='text'],
input[type='number'],
input[type='url'],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--card-border);
}

.switch:last-child {
  border-bottom: none;
}

.switch .desc {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-faint);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.toggle[aria-checked='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.toggle[aria-checked='true']::after {
  transform: translateX(20px);
  background: var(--accent-strong);
}

/* ---------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
}

.chip.good {
  color: var(--good);
  border-color: rgba(62, 207, 142, 0.4);
}

.chip.warn {
  color: var(--warn);
  border-color: rgba(242, 181, 68, 0.4);
}

.chip.bad {
  color: var(--bad);
  border-color: rgba(255, 107, 122, 0.4);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* --------------------------------------------------------------- tables */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}

th {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- chart */

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding-top: 8px;
}

.chart .bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.chart .bar {
  background: linear-gradient(180deg, var(--accent-strong), rgba(124, 92, 255, 0.35));
  border-radius: 6px 6px 2px 2px;
  min-height: 2px;
  width: 100%;
}

.chart .bar-label {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ---------------------------------------------------------------- misc */

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--text-faint);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}

.state h2 {
  color: var(--text-dim);
}

.spinner {
  width: 26px;
  height: 26px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-box {
  border: 1px solid rgba(255, 107, 122, 0.45);
  background: rgba(255, 107, 122, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--bad);
}

.success-box {
  border: 1px solid rgba(62, 207, 142, 0.4);
  background: rgba(62, 207, 142, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--good);
}

.empty {
  text-align: center;
  color: var(--text-faint);
  padding: 26px 10px;
}

.guide {
  counter-reset: step;
}

.guide li {
  margin: 10px 0;
  color: var(--text-dim);
}

.guide code,
.docs code {
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid var(--card-border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--accent-strong);
  word-break: break-all;
}

.docs h2 {
  margin-top: 34px;
}

.docs h3 {
  margin-top: 20px;
}

.docs p,
.docs li {
  color: var(--text-dim);
}

.docs table {
  margin-top: 10px;
}

.footer {
  border-top: 1px solid var(--card-border);
  padding: 44px clamp(16px, 4vw, 40px) 34px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  text-align: left;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 340px;
  line-height: 1.55;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col h4 {
  margin: 0 0 2px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-faint);
  font-weight: 700;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  width: fit-content;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text);
}

.footer-note {
  max-width: var(--maxw);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
  text-align: center;
  font-size: 0.84rem;
}

.footer a {
  color: var(--text-dim);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.server-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.server-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-strong);
  overflow: hidden;
}

.server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 90;
  max-width: 90vw;
}

.toast.error {
  border-color: rgba(255, 107, 122, 0.5);
  color: var(--bad);
}

.toast.success {
  border-color: rgba(62, 207, 142, 0.5);
  color: var(--good);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.tab[aria-selected='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid var(--card-border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.3);
}

pre.diagram {
  white-space: pre;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

/* ------------------------------------------------------- interior pages */

.page-head {
  padding: clamp(14px, 3vw, 28px) 0 4px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-head .lead {
  margin: 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.toc-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 10px;
}

.toc {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(17, 20, 29, 0.66);
  backdrop-filter: blur(12px);
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--card-border);
  padding-left: 6px;
}

.toc-list a {
  padding: 5px 8px;
  margin-left: -7px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.35;
}

.toc-list a:hover,
.toc-list a:focus-visible {
  color: var(--text);
  border-left-color: var(--accent);
  background: var(--card-hover);
}

.toc-body {
  min-width: 0;
}

.toc-body h1 {
  margin-top: 0;
}

.toc-body h2 {
  scroll-margin-top: 96px;
}

@media (max-width: 880px) {
  .toc-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .toc {
    position: static;
    max-height: none;
  }
}

/* -------------------------------------------------- proof-of-work captcha */

.pow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pow h2 {
  margin: 0;
}

.pow-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pow-actions .btn-lg {
  flex: 1;
  justify-content: center;
}

.pow-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.pow-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.12s linear;
}

.pow.is-passed .pow-meter {
  border-color: rgba(62, 207, 142, 0.5);
}

.pow.is-passed .pow-bar {
  background: var(--good);
}

.pow-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-faint);
  min-height: 1.4em;
}

.pow-status.good {
  color: var(--good);
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px);
  margin-top: 22px;
}

@media (max-width: 860px) {
  .login-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- landing extras */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--text);
  background: var(--card);
  border-color: var(--card-border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step p {
  margin: 4px 0 0;
}

.step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------- marketing blocks */

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

.hero-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.hero-split > * {
  margin: 0;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 14px;
}

.metric {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.22);
}

.metric .stat-value {
  font-size: 1.6rem;
}

.features {
  align-items: stretch;
}

.feature {
  display: flex;
  flex-direction: column;
}

.feature h3 {
  margin: 14px 0 6px;
}

.feature p {
  margin: 0;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 92, 255, 0.32);
  color: var(--accent-strong);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius);
  border: 1px solid rgba(124, 92, 255, 0.3);
  background:
    radial-gradient(600px 220px at 10% 0%, rgba(124, 92, 255, 0.22), transparent 70%), var(--card);
  box-shadow: var(--shadow);
}

.cta-copy {
  min-width: 0;
}

.cta-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.015em;
}

.cta-copy p {
  margin: 0;
  max-width: 460px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------- discord message mock */

.preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}

.preview-dots {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  box-shadow:
    16px 0 0 var(--text-faint),
    32px 0 0 var(--text-faint);
  margin-right: 32px;
}

.preview-title {
  color: var(--text-faint);
  font-size: 0.84rem;
  font-weight: 600;
}

.discord-msg {
  display: flex;
  gap: 14px;
}

.discord-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #4b32b8);
}

.discord-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.discord-meta strong {
  font-size: 0.95rem;
}

.discord-bot {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.discord-time {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.discord-body {
  color: #d6d9e6;
  font-size: 0.98rem;
  line-height: 1.5;
}

.discord-mention {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.28);
  color: #b3bcff;
  font-weight: 600;
}

.preview-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--card-border);
  font-size: 0.86rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------- status banner */

.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
}

.status-banner strong {
  display: block;
  font-size: 1.05rem;
}

.status-banner p {
  margin: 3px 0 0;
  font-size: 0.92rem;
}

.status-banner .dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 6px;
}

.status-banner.ok {
  border-color: rgba(62, 207, 142, 0.4);
  background: rgba(62, 207, 142, 0.08);
  color: var(--good);
}

.status-banner.bad {
  border-color: rgba(255, 107, 122, 0.4);
  background: rgba(255, 107, 122, 0.08);
  color: var(--bad);
}

.status-banner strong,
.status-banner p {
  color: var(--text);
}

.status-banner p {
  color: var(--text-dim);
}

/* ------------------------------------------------------------ section nav */

.card[id] {
  scroll-margin-top: 130px;
}

/* ------------------------------------------------------------ app shell */

main.app {
  max-width: 1240px;
  padding-top: 26px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(17, 20, 29, 0.72);
  backdrop-filter: blur(12px);
  max-height: calc(100vh - 108px);
  overflow-y: auto;
}

.side-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 14px 8px 6px;
}

.side-title:first-child {
  margin-top: 2px;
}

.side-servers {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.side-server:hover,
.side-server:focus-visible {
  background: var(--card-hover);
  color: var(--text);
}

.side-server.active {
  background: var(--accent-soft);
  border-color: rgba(124, 92, 255, 0.4);
  color: var(--text);
}

.side-server-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-badge {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--warn);
  border: 1px solid rgba(242, 181, 68, 0.5);
}

.side-empty {
  padding: 8px;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.side-action {
  margin: 8px 0 4px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav a {
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  background: var(--card-hover);
  color: var(--text);
}

.app-main {
  min-width: 0;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.server-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.server-meta {
  flex: 1;
  min-width: 0;
}

.server-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }
}

/* ------------------------------------------------------------ dark scroll */

::selection {
  background: rgba(124, 92, 255, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
