:root {
  color-scheme: light;
  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-soft: #f2eee6;
  --ink: #2b3a55;
  --muted: #8792a3;
  --line: #e7dfd2;
  --blue: #2e6a9e;
  --blue-soft: #dcebfa;
  --green: #5ca65c;
  --green-soft: #e4f0df;
  --orange: #e8a13c;
  --orange-soft: #fdf1d8;
  --red: #d95d5d;
  --red-soft: #fae3dc;
  --navy: #2b3a55;
  --shadow: 0 12px 34px rgba(43, 58, 85, .11);
  --radius: 24px;
  --tap: 56px;
  font-family: "Segoe UI Rounded", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 4px solid rgba(46, 106, 158, .32);
  outline-offset: 2px;
}

.button {
  min-height: var(--tap);
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.button:hover { filter: brightness(.98); }
.button:active { transform: scale(.97); }
.button.primary { background: var(--blue); color: white; }
.button.good { background: var(--green); color: white; }
.button.warn { background: var(--red); color: white; }
.button.soft-blue { background: var(--blue-soft); color: #164f7d; }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.button.icon { width: var(--tap); padding: 0; }
.button.small { min-height: 44px; padding: 0 14px; border-radius: 13px; }

.card {
  background: var(--surface);
  border: 1px solid rgba(231, 223, 210, .8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.hidden { display: none !important; }
.status-chip {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.status-chip.live { background: var(--red-soft); color: #8c2f2f; }
.status-chip.present { background: var(--green-soft); color: #2f6a35; }
.status-chip.private { background: var(--orange-soft); color: #765313; }
.status-chip.offline { background: #eceff3; color: #5d6674; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  display: grid;
  gap: 8px;
  width: min(520px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  border-radius: 15px;
  background: var(--navy);
  color: white;
  padding: 13px 18px;
  font-weight: 750;
  box-shadow: var(--shadow);
  text-align: center;
}
.toast.error { background: #8f3434; }

.loading {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

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