/* Colors, type, and logo treatment match https://refreshgaming.net. */

:root {
  color-scheme: dark;
  --bg: #080C15;
  --bg-end: #0a1020;
  --bg-raised: rgba(8, 12, 21, 0.78);
  --bg-sunken: #060910;
  --line: rgba(0, 168, 235, 0.28);
  --text: #ffffff;
  --muted: #a0aec0;
  --accent: #00A8EB;
  --accent-hover: #33b9f5;
  --accent-ink: #080C15;
  --danger: #ff8b78;
  --warn: #f0c36a;
  --ok: #7ddea2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #080C15 0%, #0a1020 100%);
  color: #ffffff;
}

a {
  color: #00A8EB;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: #33b9f5;
}

h1, h2, h3 { line-height: 1.15; font-weight: 600; }
h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 20px;
  color: #00A8EB;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(0, 168, 235, 0.3);
}
h2 { margin: 0 0 0.75rem; font-size: 1.25rem; color: #ffffff; }
p { margin: 0 0 0.75rem; }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: #00A8EB;
  color: #080C15;
  padding: 0.4rem 0.7rem;
  z-index: 3;
}
.skip:focus { top: 0.5rem; color: #080C15; }

.background-decoration {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #00A8EB;
}

.circle1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation: rotate 20s linear infinite;
}

.circle2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  animation: rotate 15s linear infinite reverse;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(0, 168, 235, 0.3); }
  to { text-shadow: 0 0 30px rgba(0, 168, 235, 0.6); }
}

.site-header,
.dev-banner,
.banner,
.content,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 168, 235, 0.22);
  background: rgba(8, 12, 21, 0.88);
  position: sticky;
  top: 0;
  z-index: 2;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
}
.wordmark:hover { color: #33b9f5; }
.wordmark img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(0, 168, 235, 0.5));
}

.nav, .account { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.nav { margin-right: auto; }
.nav a { color: #ffffff; font-size: 0.95rem; }
.nav a:hover {
  color: #33b9f5;
  text-shadow: 0 0 10px rgba(0, 168, 235, 0.3);
}
a.who {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a0aec0;
  font-size: 0.92rem;
  text-decoration: none;
}
a.who:hover { color: #33b9f5; }
a.who .avatar {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 2px #00A8EB, 0 0 10px rgba(0, 168, 235, 0.7);
}

.dev-banner {
  margin: 0;
  padding: 0.45rem 1.5rem;
  background: rgba(0, 168, 235, 0.08);
  color: #a0aec0;
  border-bottom: 1px solid rgba(0, 168, 235, 0.22);
  font-size: 0.92rem;
}

.content { width: min(1100px, calc(100% - 2rem)); margin: 0 auto 3rem; }

.teaser-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.teaser-frame {
  display: block;
  width: min(100%, calc((100vh - 2rem) * 16 / 9));
  max-height: calc(100vh - 2rem);
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #060910;
}
.site-footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  color: #a0aec0;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

.hero {
  padding: 40px 0 1rem;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.brand-logo {
  width: 125px;
  height: 125px;
  margin: 0 auto 30px;
  animation: float 3s ease-in-out infinite;
  user-select: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(0, 168, 235, 0.5));
}

.hero h1 { animation: glow 2s ease-in-out infinite alternate; }

.divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00A8EB, transparent);
  margin: 30px auto;
}

.kicker {
  margin: 0 0 0.4rem;
  color: #00A8EB;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}
.lede {
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
}
.mission {
  max-width: 40rem;
  margin: 0.85rem auto 0;
  color: #a0aec0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 52rem;
  margin: 2.25rem auto 0;
  text-align: left;
  align-items: stretch;
}
.join-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 168, 235, 0.35);
  background: rgba(8, 12, 21, 0.78);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.join-card:hover {
  color: #ffffff;
  border-color: #00A8EB;
  box-shadow: 0 0 24px rgba(0, 168, 235, 0.35);
}
.join-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #00A8EB;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}
.join-card:hover .join-title {
  color: #33b9f5;
  text-shadow: 0 0 20px rgba(0, 168, 235, 0.6);
}
.join-icon { width: 1.7rem; height: 1.7rem; flex: none; }
.join-detail { color: #a0aec0; font-size: 1.02rem; line-height: 1.6; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-actions { justify-content: center; }
.page-head { margin: 0.25rem 0 0.85rem; text-align: left; }
.page-head p:last-child { color: #a0aec0; max-width: 42rem; margin-left: 0; margin-right: 0; font-size: 0.95rem; line-height: 1.45; }
.page-head h1 { margin: 0; font-size: 1.85rem; text-shadow: none; }
.page-head h1 + p,
.page-head .meta { margin-top: 0.35rem; }

.discord-link {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.35rem;
}
.discord-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #00A8EB;
  text-shadow: 0 0 10px rgba(0, 168, 235, 0.3);
}
.discord-link a:hover {
  color: #33b9f5;
  text-shadow: 0 0 20px rgba(0, 168, 235, 0.6);
}
.discord-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}
.copyright { margin-top: 0.35rem; font-size: 0.95rem; }

.button, button, .account a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00A8EB;
  color: #080C15;
  border: 1px solid #00A8EB;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.button:hover, button:hover { background: #33b9f5; border-color: #33b9f5; color: #080C15; }
.button-quiet, button.quiet, a.button-quiet {
  background: transparent;
  color: #00A8EB;
  border-color: #00A8EB;
}
.button-quiet:hover, button.quiet:hover, a.button-quiet:hover {
  background: transparent;
  color: #33b9f5;
  border-color: #33b9f5;
}
button.danger { background: transparent; color: #ff8b78; border-color: #ff8b78; }
button.danger:hover { background: transparent; color: #ffb0a4; border-color: #ffb0a4; }

.panel {
  background: rgba(8, 12, 21, 0.78);
  border: 1px solid rgba(0, 168, 235, 0.22);
  border-radius: 16px;
  padding: 1.25rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }

.meta { display: block; color: #a0aec0; font-size: 0.85rem; }
.banner { padding: 0.8rem 1rem; border-radius: 8px; margin: 0.75rem 0; }
.banner p { margin: 0; }
.banner-error { background: rgba(80, 20, 24, 0.92); color: #ffd2cb; border: 1px solid rgba(255, 139, 120, 0.35); }
.banner-ok { background: rgba(8, 40, 32, 0.92); color: #b6f0d0; border: 1px solid rgba(0, 168, 235, 0.25); }
.banner .meta { color: inherit; opacity: 0.85; }

.table-wrap { overflow-x: auto; border: 1px solid rgba(0, 168, 235, 0.22); border-radius: 16px; }
table.servers { width: 100%; border-collapse: collapse; background: rgba(8, 12, 21, 0.78); }
table.servers th, table.servers td { text-align: left; padding: 0.75rem 0.9rem; vertical-align: top; border-bottom: 1px solid rgba(0, 168, 235, 0.16); }
table.servers thead th { color: #a0aec0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.server-name { display: block; font-size: 1rem; color: #ffffff; }

.pill {
  display: inline-block;
  border: 1px solid rgba(0, 168, 235, 0.28);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.8rem;
}
.pill-ok { color: #7ddea2; border-color: rgba(125, 222, 162, 0.45); }
.pill-warn { color: #f0c36a; border-color: rgba(240, 195, 106, 0.45); }
.pill-off { color: #a0aec0; }
.pill-update { color: #b388ff; border-color: rgba(179, 136, 255, 0.45); }

.claim-list { display: flex; gap: 0.4rem; padding: 0; list-style: none; flex-wrap: wrap; }
.claim-list li { border: 1px solid rgba(0, 168, 235, 0.28); border-radius: 999px; padding: 0.1rem 0.55rem; color: #a0aec0; }

.console-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; }
.node-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.node-list li, .console-server {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 168, 235, 0.16);
}
.console-server { flex-wrap: wrap; }
.deploy { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.steps { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0.5rem 0 0; flex-wrap: wrap; }
.steps li {
  border: 1px solid rgba(0, 168, 235, 0.28);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  color: #a0aec0;
}
.steps li[data-state="current"] { color: #080C15; background: #00A8EB; border-color: #00A8EB; }
.steps li[data-state="done"] { color: #7ddea2; border-color: rgba(125, 222, 162, 0.45); }
label { display: grid; gap: 0.3rem; color: #a0aec0; font-size: 0.9rem; }
input, select, textarea {
  background: #060910;
  color: #ffffff;
  border: 1px solid rgba(0, 168, 235, 0.28);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  min-width: 12rem;
}
textarea { width: 100%; min-height: 8rem; resize: vertical; }

#blazor-error-ui {
  background: rgba(80, 20, 24, 0.96);
  color: #ffd2cb;
  bottom: 0;
  display: none;
  left: 0;
  padding: 0.6rem 1rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
#blazor-error-ui.show { display: block; }
#blazor-error-ui .dismiss { margin-left: 0.5rem; }

#components-reconnect-modal {
  border: 1px solid rgba(0, 168, 235, 0.28);
  border-radius: 16px;
  background: #0a1020;
  color: #ffffff;
  padding: 1.25rem;
}
#components-reconnect-modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible { display: none; }
.components-reconnect-show .components-reconnect-first-attempt-visible { display: block; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid #00A8EB; outline-offset: 2px; }
/* Navigation moves focus to the hero title for assistive tech. It is not a control, so it does not draw a box. */
.hero h1:focus { outline: none; }

@media (max-width: 800px) {
  .console-grid { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; }
  .node-list li, .console-server { align-items: flex-start; flex-direction: column; }
  .join-grid { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; }
  .profile-banner { height: 150px; }
  .profile-identity { margin-top: -48px; padding-left: 0.75rem; }
  .profile-avatar, .profile-avatar-fallback { width: 96px; height: 96px; }
  .banner-picker, .swatch-picker { grid-template-columns: 1fr 1fr; }
  .stat-tiles, .stat-detail-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .content, .site-footer { width: min(1100px, calc(100% - 1.5rem)); }
  .hero { padding-top: 24px; }
  .section-links a { flex-direction: column; gap: 0.15rem; align-items: flex-start; }
}

.admin-subnav, .section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.35rem 0 0.75rem;
}
.admin-subnav a, .section-tabs a { color: #ffffff; font-weight: 700; }
.admin-subnav a[aria-current="page"] { color: #00A8EB; }

.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.5rem;
}
.status-lamp-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #e23b3b;
  flex: none;
}
.status-lamp[data-state="online"] .status-lamp-dot { background: #3ddc84; }
.status-lamp[data-state="starting"] .status-lamp-dot { background: #f5a524; }
.status-lamp[data-state="updating"] .status-lamp-dot { background: #b388ff; }
.status-lamp[data-state="online"] .status-lamp-dot,
.status-lamp[data-state="starting"] .status-lamp-dot,
.status-lamp[data-state="updating"] .status-lamp-dot {
  animation: status-pulse 1.6s ease-out infinite;
}
@keyframes status-pulse {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.45); opacity: 0.45; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .status-lamp-dot { animation: none; }
}

.console-log {
  background: #060910;
  border: 1px solid rgba(0, 168, 235, 0.28);
  border-radius: 8px;
  min-height: 8rem;
  max-height: 22rem;
  overflow: auto;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.85rem;
}
.console-log p { margin: 0; color: #a0aec0; }
.console-line {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.console-pause { display: none; color: #a0aec0; font-size: 0.85rem; margin: 0 0 0.75rem; }
.console-reconnect { margin-left: 0.75rem; }
button.console-reconnect:disabled,
button.console-reconnect:disabled:hover {
  opacity: 0.45;
  cursor: default;
  background: transparent;
  color: #00A8EB;
  border-color: #00A8EB;
}
.console-log[data-paused="true"] + .console-pause { display: block; }
.console-command { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.console-command input { flex: 1; min-width: min(100%, 24rem); }
.claim-list form { display: inline; }

dialog {
  border: 1px solid rgba(0, 168, 235, 0.28);
  border-radius: 16px;
  background: #0a1020;
  color: #ffffff;
  padding: 1.25rem;
  width: min(42rem, calc(100% - 2rem));
  max-height: min(40rem, calc(100% - 2rem));
  overflow: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
dialog h2 { color: #00A8EB; }

.stack { display: grid; gap: 0.85rem; }
.stack label, .search label { min-width: min(100%, 16rem); }
.search { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 1rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}
.facts div { margin: 0; }
.facts dt { color: #a0aec0; font-size: 0.85rem; }
.facts dd { margin: 0.15rem 0 0; }

.field-hint, .visually-hidden {
  color: #a0aec0;
  font-size: 0.8rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.45rem 0;
  color: #ffffff;
}
.check input { min-width: 1rem; width: 1rem; margin-top: 0.3rem; }
.check .meta { display: block; }

.perm-grid { display: grid; gap: 0.75rem; }
.perm-area {
  border: 1px solid rgba(0, 168, 235, 0.28);
  border-radius: 12px;
  padding: 0.35rem 0.9rem 0.7rem;
  margin: 0;
}
.perm-area legend { color: #00A8EB; font-weight: 700; padding: 0 0.35rem; }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(0, 168, 235, 0.22);
  vertical-align: middle;
}
table.data th { color: #a0aec0; font-weight: 600; }

.person { display: flex; gap: 0.75rem; align-items: center; }
.avatar, .avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
}
.avatar { object-fit: cover; background: #060910; }
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 168, 235, 0.18);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}
.person:has(img.avatar) .avatar-fallback { display: none; }
.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}
.profile-sheet { --profile-accent: #00A8EB; }
.profile-sheet[data-accent="amber"],
.swatch-choice[data-accent="amber"] { --profile-accent: #e0b15a; --swatch: #e0b15a; }
.profile-sheet[data-accent="blue"],
.swatch-choice[data-accent="blue"] { --profile-accent: #00A8EB; --swatch: #00A8EB; }
.profile-sheet[data-accent="crimson"],
.swatch-choice[data-accent="crimson"] { --profile-accent: #e15b6a; --swatch: #e15b6a; }
.profile-sheet[data-accent="emerald"],
.swatch-choice[data-accent="emerald"] { --profile-accent: #2fbf8f; --swatch: #2fbf8f; }
.profile-sheet[data-accent="slate"],
.swatch-choice[data-accent="slate"] { --profile-accent: #93a4b8; --swatch: #93a4b8; }
.profile-sheet[data-accent="violet"],
.swatch-choice[data-accent="violet"] { --profile-accent: #8b7cff; --swatch: #8b7cff; }
.profile-banner {
  width: 100%;
  height: 220px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #080C15;
}
.profile-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-identity {
  display: flex;
  align-items: flex-end;
  gap: 1.15rem;
  margin-top: -66px;
  padding: 0 1.25rem 0.15rem;
  position: relative;
}
.profile-heading { min-width: 0; padding-bottom: 0.15rem; }
.profile-name { margin: 0; color: var(--profile-accent); text-shadow: none; }
.profile-heading .claim-list { margin: 0.4rem 0 0; }
.profile-heading .button { margin-top: 0.55rem; }
.favorite-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
  padding: 0.12rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 50%, transparent);
  background: rgba(8, 12, 21, 0.55);
  color: #ffffff;
  font-size: 0.92rem;
}
.favorite-chip span {
  color: var(--profile-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-avatar,
.profile-avatar-fallback {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 4px var(--profile-accent, #00A8EB), 0 0 28px var(--profile-accent, #00A8EB);
}
.profile-avatar { object-fit: cover; background: #060910; }
.profile-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #121826;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 700;
}
.profile-sheet .panel { border-color: color-mix(in srgb, var(--profile-accent) 35%, transparent); }
.profile-sheet .panel h2 { color: var(--profile-accent); }
.profile-sheet .claim-list li { border-color: color-mix(in srgb, var(--profile-accent) 45%, transparent); }
.about-text { white-space: pre-wrap; margin: 0; }
.social-links { display: flex; gap: 0.7rem; list-style: none; padding: 0; margin: 0.55rem 0 0; }
.social-links a {
  display: inline-flex;
  color: #ffffff;
  text-decoration: none;
}
.social-links a:hover { filter: brightness(1.15); }
.social-link.social-twitch { color: #9146FF; }
.social-link.social-youtube { color: #FF0033; }
.social-link.social-x { color: #ffffff; }
.social-link.social-kick { color: #53FC18; }
.social-icon { width: 36px; height: 36px; display: block; }
.profile-form { display: grid; gap: 1.1rem; }
.profile-form fieldset {
  border: 1px solid rgba(0, 168, 235, 0.22);
  border-radius: 12px;
  margin: 0;
  padding: 0.85rem 0.95rem 1rem;
}
.profile-form legend { color: #00A8EB; font-weight: 700; padding: 0 0.35rem; }
.profile-form input[type="text"],
.profile-form input[type="url"],
.profile-form textarea { width: 100%; min-width: 0; }
.banner-picker, .swatch-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.banner-choice, .swatch-choice { position: relative; display: grid; gap: 0.35rem; justify-items: start; color: #a0aec0; }
.banner-choice input, .swatch-choice input { min-width: 1rem; width: 1rem; }
.banner-choice img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  border: 2px solid transparent;
}
.banner-choice input:checked + img { border-color: #00A8EB; box-shadow: 0 0 12px rgba(0, 168, 235, 0.55); }
.swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--swatch, #00A8EB);
  box-shadow: 0 0 0 2px #080C15, 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.swatch-choice input:checked + .swatch {
  box-shadow: 0 0 0 2px #080C15, 0 0 0 4px var(--swatch, #00A8EB), 0 0 12px var(--swatch, #00A8EB);
}
.label-row { display: flex; justify-content: space-between; gap: 0.75rem; }
.field-error { color: #ff8b78; margin: 0.2rem 0 0; font-size: 0.85rem; }
.field-error:empty { display: none; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; order: 1; }
.profile-stats { display: grid; gap: 0.85rem; }
.profile-stats h2 { margin: 0; }
.stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 45%, transparent);
  background: color-mix(in srgb, var(--profile-accent) 12%, transparent);
  color: #ffffff;
  font-weight: 650;
}
.game-switch { position: relative; }
.game-tablist {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.15rem;
}
.game-tablist label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 174, 192, 0.35);
  color: #a0aec0;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  background: rgba(6, 9, 16, 0.35);
}
.game-icon { width: 1.15rem; height: 1.15rem; display: block; flex: none; }
.stats-panel { display: none; }
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}
.stat-tile {
  display: grid;
  gap: 0.2rem;
  align-content: end;
  min-height: 5.4rem;
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--game-accent, var(--profile-accent)) 16%, transparent), transparent 58%),
    rgba(6, 9, 16, 0.55);
  border: 1px solid color-mix(in srgb, var(--game-accent, var(--profile-accent)) 42%, transparent);
}
.stat-value {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--profile-accent);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  line-height: 1.1;
}
.stat-label {
  color: #a0aec0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stats-empty {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #a0aec0;
  border: 1px dashed color-mix(in srgb, var(--game-accent, var(--profile-accent)) 55%, transparent);
  border-radius: 14px;
  background: rgba(6, 9, 16, 0.35);
}
.stats-empty .game-icon { width: 1.8rem; height: 1.8rem; color: var(--game-accent, var(--profile-accent)); }
.stat-details { margin-top: 0.85rem; }
.stat-details summary { cursor: pointer; font-weight: 700; color: var(--profile-accent); }
.stat-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
}
.stat-detail-list div { margin: 0; }
.stat-detail-list dt { color: #a0aec0; font-size: 0.8rem; }
.stat-detail-list dd { margin: 0.1rem 0 0; font-variant-numeric: tabular-nums; }
.section-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.section-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(6, 9, 16, 0.45);
  text-decoration: none;
}
.section-links a span:first-child { color: #ffffff; font-weight: 650; }
.section-domain { color: #a0aec0; font-size: 0.82rem; overflow-wrap: anywhere; }
.section-card {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.section-toolbar, .preset-row, .link-row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: end; }
.link-row label, .section-card > label { flex: 1 1 12rem; }
.check-line { display: flex; gap: 0.5rem; align-items: center; }
.check-line input { width: 1rem; min-width: 1rem; }

.entity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.entity-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(0, 168, 235, 0.22);
  border-radius: 12px;
  background: rgba(6, 9, 16, 0.55);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.entity-card:hover {
  border-color: #00A8EB;
  background: rgba(0, 168, 235, 0.1);
}
.entity-body { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.entity-body strong { color: #ffffff; font-size: 1rem; }
.entity-card .status-lamp,
.title-row .status-lamp { min-width: 7rem; margin-right: 0; }
.chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #00A8EB;
  border-bottom: 2px solid #00A8EB;
  transform: rotate(-45deg);
  flex: none;
  margin-right: 0.2rem;
}
.title-row { display: flex; align-items: center; gap: 0.75rem; }
.title-row h1 { margin: 0; }
.when {
  border-bottom: 1px dotted rgba(160, 174, 192, 0.75);
  cursor: help;
}
.error-details { margin-top: 0.45rem; }
.error-details summary { cursor: pointer; font-weight: 700; }
.error-details .meta { margin: 0.35rem 0 0; }

.section-switch { position: relative; }
.tab-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tab-bar {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid rgba(0, 168, 235, 0.22);
}
.tab-bar label {
  margin: 0;
  padding: 0.5rem 0.9rem;
  color: #a0aec0;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
}
#tab-users:checked ~ .tab-bar label[for="tab-users"],
#tab-groups:checked ~ .tab-bar label[for="tab-groups"] {
  color: #080C15;
  background: #00A8EB;
}
#tab-users:focus-visible ~ .tab-bar label[for="tab-users"],
#tab-groups:focus-visible ~ .tab-bar label[for="tab-groups"] {
  outline: 2px solid #00A8EB;
  outline-offset: 2px;
}
.tab-panel { display: none; }
#tab-users:checked ~ .tab-users,
#tab-groups:checked ~ .tab-groups { display: block; }

.secret-block {
  width: 100%;
  min-width: 0;
  margin: 0;
  background: #060910;
  color: #ffffff;
  border: 1px solid rgba(0, 168, 235, 0.28);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.85rem;
  white-space: pre;
  overflow: auto;
}
.env-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
button.danger { background: transparent; color: #ff8b78; border-color: #ff8b78; }
button.danger:hover { background: #ff8b78; color: #080C15; }
button:disabled,
button:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
  color: #a0aec0;
  border-color: rgba(160, 174, 192, 0.45);
}
.group-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.group-actions .meta { flex-basis: 100%; }

@media (max-width: 800px) {
  table.data { display: block; overflow-x: auto; }
}
