/* Kogel's Kerfuffles — unified tinted-glass interface */

:root {
  color-scheme: dark;
  --bg: #050506;
  --ink: #f7f8fb;
  --ink-soft: rgba(247, 248, 251, 0.72);
  --ink-muted: rgba(247, 248, 251, 0.48);
  --line: rgba(255, 255, 255, 0.2);
  --line-strong: rgba(255, 255, 255, 0.34);
  --glass: rgba(248, 250, 255, 0.11);
  --glass-strong: rgba(248, 250, 255, 0.17);
  --glass-dark: rgba(5, 5, 7, 0.46);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  --radius: 30px;
  --radius-sm: 20px;
  --shell-max: 1580px;
  --shell-gutter: clamp(18px, 2.15vw, 40px);
  --shell-gap: clamp(14px, 1.1vw, 20px);
  --left-rail-width: clamp(328px, 23.5vw, 392px);
  --right-tools-width: clamp(246px, 18.5vw, 322px);
  --panel-pad: clamp(18px, 1.55vw, 24px);
  --panel-radius: 30px;
  --card-radius: 24px;
  --control-radius: 999px;
  --surface-blur: 34px;
  --surface-shell-blur: 32px;
  --surface-panel-blur: 30px;
  --surface-card-blur: 24px;
  --surface-control-blur: 20px;
  --surface-shell-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(23, 18, 15, 0.22)),
    rgba(30, 22, 18, 0.18);
  --surface-panel-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(28, 21, 17, 0.18)),
    rgba(32, 24, 20, 0.14);
  --surface-card-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);
  --surface-control-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.038)),
    rgba(255, 255, 255, 0.04);
  --shadow-shell:
    0 24px 62px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --shadow-panel:
    0 28px 72px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --shadow-card:
    0 18px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --glass-panel-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(23, 18, 15, 0.22)),
    rgba(30, 22, 18, 0.18);
  --glass-card-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(28, 21, 17, 0.18)),
    rgba(32, 24, 20, 0.14);
  --accent: #f4f4f0;
  --warn: #f2b544;
  --good: #85d18f;
  --bad: #ef7f78;
  --gold-border: linear-gradient(135deg, #fff8cf, #f2b544 42%, #fff1a8);
  --discord-border: linear-gradient(135deg, #fbfbff, #8d8cff 45%, #d7d6ff);
  --youtube-border: linear-gradient(135deg, #fff, #ff4b48 42%, #ffb2ae);
  --planet-border: linear-gradient(135deg, #ffffff, #d7d7d7 40%, #7f7f86 70%, #ffffff);
  --ease-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-liquid: 340ms cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 10%, rgba(255, 242, 204, 0.28), transparent 24rem),
    radial-gradient(circle at 18% 72%, rgba(217, 118, 36, 0.14), transparent 20rem),
    linear-gradient(135deg, #090605 0%, #171110 42%, #060404 100%);
  overflow-x: hidden;
}

body::before,
body::after,
.backdrop::before,
.backdrop::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.12;
  background-image:
    radial-gradient(circle, rgba(255, 248, 225, 0.78) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 210, 145, 0.42) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 280px 280px;
  background-position: 28px 48px, 96px 18px;
  animation: atmosphericTwinkle 24s ease-in-out infinite alternate;
}

body::after {
  background:
    linear-gradient(90deg, rgba(255, 221, 164, 0.18), transparent 14%, transparent 86%, rgba(255, 221, 164, 0.12)),
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.46) 82%);
  mix-blend-mode: soft-light;
  opacity: 0.72;
}

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  isolation: isolate;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, filter, opacity;
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.14) 42%, rgba(0, 0, 0, 0.46)),
    linear-gradient(180deg, rgba(255, 220, 175, 0.05), rgba(0, 0, 0, 0.5) 88%),
    url("./assets/minecraft-upscaled-4k.webp") center / cover no-repeat;
}

.backdrop::before {
  opacity: 0.55;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 243, 220, 0.18), transparent 12rem),
    radial-gradient(circle at 34% 72%, rgba(255, 228, 176, 0.1), transparent 16rem),
    linear-gradient(100deg, transparent 0 58%, rgba(255, 230, 190, 0.055) 59% 60%, transparent 63%);
  filter: blur(18px);
  transform: translateX(-4%);
  animation: atmosphericDrift 28s ease-in-out infinite alternate;
}

.backdrop::after {
  display: none;
}

.scanlines {
  display: none;
}

.app-frame {
  width: min(var(--shell-max), calc(100vw - (var(--shell-gutter) * 2)));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(22px, 2vw, 30px) 0 56px;
  isolation: isolate;
}

.hud {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: var(--left-rail-width) minmax(0, 1fr) var(--right-tools-width);
  gap: var(--shell-gap);
  align-items: center;
  margin-bottom: clamp(28px, 3vw, 38px);
}

.hud.no-tools {
  grid-template-columns: var(--left-rail-width) minmax(0, 1fr);
}

.identity,
.nav-tabs,
.hud-tools,
.login-panel,
.home-stage,
.glass-panel,
.queue-panel,
.metric {
  border: 1px solid var(--line);
  background: var(--surface-panel-bg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.18);
  will-change: transform, backdrop-filter, box-shadow, border-color;
  transition:
    transform var(--ease-smooth),
    box-shadow var(--ease-smooth),
    border-color var(--ease-smooth),
    background var(--ease-smooth),
    filter var(--ease-smooth);
}

.identity {
  min-width: 0;
  width: 100%;
  max-width: var(--left-rail-width);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-shell-bg);
  box-shadow: var(--shadow-shell);
  backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.18);
}

.profile-trigger {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-trigger:hover {
  transform: translateY(-1px);
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #101013;
  font-weight: 850;
  letter-spacing: 0;
  background: linear-gradient(145deg, #fff, #bfc2c8);
  box-shadow: inset 0 1px 0 #fff, 0 14px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.brand-stack {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-stack strong {
  overflow: hidden;
  font-size: 0.96rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-stack span {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.identity-status {
  justify-self: start;
  max-width: fit-content;
  margin-top: 3px;
}

.nav-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  min-height: 66px;
  padding: 8px;
  border-radius: 999px;
  min-width: 0;
  background: var(--surface-shell-bg);
  box-shadow: var(--shadow-shell);
  backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.18);
}

.nav-tab,
.segmented button {
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 760;
  letter-spacing: 0;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

.nav-tab:hover,
.segmented button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
}

.nav-tab.active,
.segmented button.active {
  color: var(--ink);
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 245, 232, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 245, 226, 0.34), rgba(214, 197, 168, 0.12)) border-box;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.hud-tools {
  position: relative;
  z-index: 26;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 66px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  min-width: 0;
  overflow: visible;
  background: var(--surface-shell-bg);
  box-shadow: var(--shadow-shell);
  backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.18);
}

.chips,
.status-row,
.tag-row,
.form-actions,
.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.chip,
.tag,
.status-chip,
.planet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.rank-chip {
  min-width: 0;
  max-width: 168px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-chip {
  border: 1px solid transparent;
  color: rgba(249, 250, 252, 0.95);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.role-accepted {
  color: rgba(255, 248, 228, 0.97);
  background:
    linear-gradient(145deg, rgba(255, 244, 214, 0.14), rgba(217, 139, 43, 0.08)) padding-box,
    linear-gradient(135deg, rgba(217, 139, 43, 0.42), rgba(255, 211, 106, 0.34)) border-box;
}

.role-hoth-rank {
  color: rgba(243, 249, 255, 0.97);
  background:
    linear-gradient(145deg, rgba(241, 247, 255, 0.14), rgba(137, 190, 250, 0.08)) padding-box,
    linear-gradient(135deg, rgba(137, 190, 250, 0.42), rgba(241, 247, 255, 0.36)) border-box;
}

.role-mustafar-rank {
  color: rgba(255, 235, 224, 0.97);
  background:
    linear-gradient(145deg, rgba(104, 0, 0, 0.18), rgba(243, 142, 0, 0.08)) padding-box,
    linear-gradient(135deg, rgba(104, 0, 0, 0.48), rgba(243, 142, 0, 0.34)) border-box;
}

.role-tatooine-rank {
  color: rgba(255, 247, 238, 0.97);
  background:
    linear-gradient(145deg, rgba(255, 225, 180, 0.12), rgba(155, 134, 102, 0.08)) padding-box,
    linear-gradient(135deg, rgba(155, 134, 102, 0.42), rgba(255, 225, 180, 0.34)) border-box;
}

.role-banned {
  color: rgba(255, 240, 239, 0.97);
  background:
    linear-gradient(145deg, rgba(108, 20, 28, 0.18), rgba(34, 8, 12, 0.08)) padding-box,
    linear-gradient(135deg, rgba(245, 145, 145, 0.42), rgba(122, 22, 32, 0.22)) border-box;
}

.role-not-in-server {
  color: rgba(241, 247, 255, 0.97);
  background:
    linear-gradient(145deg, rgba(219, 233, 255, 0.16), rgba(76, 106, 163, 0.06)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(146, 180, 235, 0.18)) border-box;
}

.role-member {
  color: rgba(244, 247, 253, 0.95);
  background:
    linear-gradient(145deg, rgba(230, 236, 247, 0.13), rgba(141, 156, 181, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(172, 186, 214, 0.14)) border-box;
}

.role-punk {
  color: rgba(255, 247, 232, 0.97);
  background:
    linear-gradient(145deg, rgba(234, 151, 47, 0.16), rgba(112, 62, 13, 0.08)) padding-box,
    linear-gradient(135deg, rgba(255, 225, 162, 0.44), rgba(215, 142, 43, 0.28)) border-box;
}

.rank-community {
  color: rgba(250, 252, 255, 0.94);
  background:
    linear-gradient(145deg, rgba(239, 244, 255, 0.14), rgba(173, 188, 214, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(180, 198, 228, 0.16)) border-box;
}

.rank-kogel {
  color: rgba(255, 251, 244, 0.92);
  background:
    linear-gradient(145deg, rgba(250, 246, 255, 0.16), rgba(219, 196, 255, 0.06)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(226, 193, 255, 0.18)) border-box;
}

.rank-head-moderator {
  color: rgba(239, 255, 243, 0.92);
  background:
    linear-gradient(145deg, rgba(40, 103, 56, 0.16), rgba(10, 47, 24, 0.05)) padding-box,
    linear-gradient(135deg, rgba(139, 214, 155, 0.44), rgba(19, 76, 39, 0.16)) border-box;
}

.rank-moderator {
  color: rgba(232, 255, 235, 0.92);
  background:
    linear-gradient(145deg, rgba(81, 184, 99, 0.16), rgba(25, 71, 35, 0.05)) padding-box,
    linear-gradient(135deg, rgba(159, 244, 171, 0.42), rgba(50, 151, 73, 0.16)) border-box;
}

.rank-support {
  color: rgba(240, 255, 242, 0.92);
  background:
    linear-gradient(145deg, rgba(171, 231, 180, 0.16), rgba(71, 115, 81, 0.05)) padding-box,
    linear-gradient(135deg, rgba(231, 255, 236, 0.42), rgba(138, 205, 151, 0.14)) border-box;
}

.rank-head-developer {
  color: rgba(255, 244, 242, 0.92);
  background:
    linear-gradient(145deg, rgba(122, 28, 38, 0.16), rgba(50, 10, 14, 0.05)) padding-box,
    linear-gradient(135deg, rgba(214, 108, 117, 0.42), rgba(89, 18, 24, 0.16)) border-box;
}

.rank-developer {
  color: rgba(255, 246, 244, 0.92);
  background:
    linear-gradient(145deg, rgba(195, 72, 67, 0.16), rgba(85, 26, 28, 0.05)) padding-box,
    linear-gradient(135deg, rgba(249, 145, 138, 0.42), rgba(173, 50, 55, 0.16)) border-box;
}

.rank-head-builder {
  color: rgba(255, 248, 230, 0.92);
  background:
    linear-gradient(145deg, rgba(219, 180, 42, 0.16), rgba(95, 74, 10, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 240, 163, 0.44), rgba(193, 157, 34, 0.16)) border-box;
}

.rank-builder {
  color: rgba(255, 249, 235, 0.92);
  background:
    linear-gradient(145deg, rgba(235, 215, 99, 0.16), rgba(114, 93, 22, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 248, 188, 0.42), rgba(214, 192, 94, 0.16)) border-box;
}

.rank-punk {
  color: rgba(255, 247, 232, 0.92);
  background:
    linear-gradient(145deg, rgba(234, 151, 47, 0.16), rgba(112, 62, 13, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 225, 162, 0.44), rgba(215, 142, 43, 0.16)) border-box;
}

.rank-community-smp {
  color: rgba(238, 255, 255, 0.94);
  background:
    linear-gradient(145deg, rgba(60, 255, 249, 0.085), rgba(178, 249, 255, 0.028)) padding-box,
    linear-gradient(135deg, rgba(60, 255, 249, 0.22), rgba(178, 249, 255, 0.14)) border-box;
}

.rank-smp-survivor {
  color: rgba(247, 251, 255, 0.95);
  background:
    linear-gradient(145deg, rgba(135, 153, 174, 0.18), rgba(241, 247, 255, 0.06)) padding-box,
    linear-gradient(135deg, rgba(135, 153, 174, 0.48), rgba(241, 247, 255, 0.3)) border-box;
}

.rank-unavailable,
.rank-local-preview {
  color: rgba(241, 246, 255, 0.88);
  background:
    linear-gradient(145deg, rgba(217, 227, 245, 0.14), rgba(109, 124, 151, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(166, 185, 214, 0.14)) border-box;
}

.logout-button,
.icon-command {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.14));
  --round-fill-a: rgba(255, 255, 255, 0.13);
  --round-fill-b: rgba(255, 255, 255, 0.052);
  --round-hover-fill-a: rgba(255, 255, 255, 0.16);
  --round-hover-fill-b: rgba(255, 255, 255, 0.068);
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  min-width: 48px;
  max-width: 48px;
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  background:
    linear-gradient(145deg, var(--round-fill-a), var(--round-fill-b)) padding-box,
    var(--round-border) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -16px 32px rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  transition: transform var(--ease-liquid), background var(--ease-liquid), box-shadow var(--ease-liquid), filter var(--ease-liquid);
}

.logout-button:hover,
.icon-command:hover {
  transform: translateY(-2px);
  filter: brightness(1.06) saturate(1.04);
  background:
    linear-gradient(145deg, var(--round-hover-fill-a), var(--round-hover-fill-b)) padding-box,
    var(--round-border) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -16px 32px rgba(0, 0, 0, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.24);
}

.profile-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(3, 4, 8, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 180ms var(--ease-smooth) both;
}

.profile-sheet {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 31;
  width: min(420px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 34px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  animation: profileSheetIn 260ms var(--ease-liquid) both;
}

.profile-sheet-head,
.profile-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-sheet-head {
  justify-content: space-between;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: var(--surface-shell-bg);
  box-shadow: var(--shadow-shell);
  backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.16);
  -webkit-backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.16);
}

.profile-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-meta strong,
.profile-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-meta strong {
  font-size: 1.05rem;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.profile-meta span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.profile-header-rank {
  flex: 0 1 auto;
  max-width: min(100%, 180px);
  margin-left: auto;
}

.profile-box {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: var(--surface-card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.1);
  transition: border-color var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth), transform var(--ease-smooth);
}

.profile-box + .profile-box {
  margin-top: -2px;
}

.profile-box:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.052);
}

.profile-box-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background var(--ease-smooth), color var(--ease-smooth);
}

.profile-box-toggle .kicker {
  min-width: 0;
}

.profile-box-toggle:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
}

.profile-box-toggle::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  transition: transform var(--ease-smooth), background var(--ease-smooth), color var(--ease-smooth);
}

.profile-box.open .profile-box-toggle::after {
  content: "-";
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.profile-box-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--ease-smooth), opacity var(--ease-smooth), filter var(--ease-smooth);
  filter: blur(4px);
}

.profile-box.open .profile-box-body {
  max-height: 960px;
  opacity: 1;
  filter: blur(0);
}

.profile-box-body-inner {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.profile-section-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-weight: 850;
  margin-left: auto;
}

.profile-rank-card h2 {
  margin: 10px 0 0;
  font-size: 1.5rem;
}

.profile-rank-summary {
  display: grid;
  gap: 16px;
}

.profile-rank-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-rank-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-rank-copy strong {
  font-size: 1.16rem;
  line-height: 1.15;
}

.profile-rank-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.profile-rank-hero-chip {
  max-width: 168px;
  justify-self: end;
}

.profile-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.profile-fact {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-fact span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-fact strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.profile-alert-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  color: rgba(255, 245, 230, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-role-switcher {
  display: grid;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.024)),
    rgba(255, 255, 255, 0.028);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-role-switcher-head {
  display: grid;
  gap: 5px;
}

.profile-role-switcher-head span:last-child {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.profile-role-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-role-option {
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-role-option .chip {
  min-height: 36px;
  padding-inline: 14px;
  transition: transform var(--ease-smooth), box-shadow var(--ease-smooth), filter var(--ease-smooth);
}

.profile-role-option:hover .chip,
.profile-role-option.active .chip {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 30px rgba(0, 0, 0, 0.16);
  filter: brightness(1.05);
}

.profile-sheet-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

.profile-section {
  display: grid;
  gap: 12px;
}

.profile-history {
  display: grid;
  gap: 10px;
}

.profile-history-item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: var(--surface-card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
}

.profile-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.profile-history-head strong {
  line-height: 1.15;
}

.profile-history-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-history-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.profile-history-item span,
.profile-history-item em {
  color: var(--ink-soft);
  font-style: normal;
}

.profile-history-item.empty strong {
  color: rgba(255, 255, 255, 0.88);
}

.profile-history-item.rank-community-smp,
.profile-history-item.rank-smp-survivor,
.profile-history-item.rank-across-galaxy {
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 14px 34px rgba(0, 0, 0, 0.16);
}

.profile-history-item.rank-community-smp {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(60, 255, 249, 0.014)) padding-box,
    linear-gradient(135deg, rgba(60, 255, 249, 0.14), rgba(178, 249, 255, 0.08)) border-box;
}

.profile-history-item.rank-smp-survivor {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(135, 153, 174, 0.042)) padding-box,
    linear-gradient(135deg, rgba(135, 153, 174, 0.34), rgba(241, 247, 255, 0.18)) border-box;
}

.profile-history-item.rank-across-galaxy {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 210, 145, 0.032)) padding-box,
    linear-gradient(135deg, rgba(255, 235, 190, 0.24), rgba(255, 188, 97, 0.11)) border-box;
}

.profile-legacy-item strong {
  letter-spacing: 0.01em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px) saturate(0.95);
  -webkit-backdrop-filter: blur(16px) saturate(0.95);
  animation: modalFadeIn 220ms var(--ease-smooth) both;
}

.confirm-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 41;
  width: min(470px, calc(100vw - 32px));
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 30px;
  transform: translate(-50%, -50%);
  animation: modalLiftIn 280ms var(--ease-smooth) both;
}

.video-review-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 41;
  width: min(920px, calc(100vw - 32px));
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 30px;
  transform: translate(-50%, -50%);
  animation: modalLiftIn 280ms var(--ease-smooth) both;
}

.video-frame-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 54px rgba(0, 0, 0, 0.28);
}

.video-frame-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-review-card {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
}

.inline-video-frame {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 38px rgba(0, 0, 0, 0.22);
}

.video-basic-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.video-invalid-message {
  margin: 0;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.modal-icon.danger {
  color: rgba(255, 235, 235, 0.96);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(130, 24, 32, 0.08)) padding-box,
    linear-gradient(135deg, rgba(255, 235, 235, 0.4), rgba(130, 24, 32, 0.18)) border-box;
}

.modal-note {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

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

.view {
  min-width: 0;
  transform: translateZ(0);
  will-change: transform, opacity;
}

.view.view-enter {
  animation: pageIn 240ms var(--ease-liquid) both;
}

.selected-outline {
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-notice {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  animation: validationToastIn 260ms var(--ease-smooth) both;
}

.login-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.12), transparent 24rem),
    rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(0.96);
  -webkit-backdrop-filter: blur(20px) saturate(0.96);
}

.login-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-atmosphere span {
  position: absolute;
  inset: auto;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.4;
  animation: atmosphericFloat 22s ease-in-out infinite alternate;
}

.login-atmosphere span:nth-child(1) {
  top: 12%;
  left: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 236, 200, 0.16), transparent 68%);
}

.login-atmosphere span:nth-child(2) {
  right: 12%;
  top: 18%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(221, 231, 255, 0.14), transparent 70%);
  animation-duration: 26s;
}

.login-atmosphere span:nth-child(3) {
  left: 38%;
  bottom: 12%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 223, 184, 0.12), transparent 72%);
  animation-duration: 30s;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 38px;
  animation: lockedPanelIn 620ms var(--ease-smooth) both;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.login-copy-block {
  display: grid;
  gap: 10px;
}

.login-sidecard {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-steps {
  display: grid;
  gap: 12px;
}

.login-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.12);
  transition: transform var(--ease-smooth), background var(--ease-smooth), border-color var(--ease-smooth);
}

.login-step:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.login-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(255, 251, 239, 0.95);
  background:
    linear-gradient(145deg, rgba(255, 248, 223, 0.18), rgba(242, 181, 68, 0.08)) padding-box,
    linear-gradient(135deg, rgba(255, 232, 176, 0.42), rgba(214, 169, 66, 0.14)) border-box;
}

.login-step div {
  display: grid;
  gap: 4px;
}

.login-step strong {
  font-size: 0.96rem;
}

.login-step em {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.5;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.login-discord-button {
  min-width: 240px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.overline,
.kicker,
.meta-label,
.stat-label {
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-lockup strong,
.login-panel h1,
.home-stage h1,
.panel-title,
.status-title,
.queue-title,
.queue-name {
  margin: 0;
  letter-spacing: 0;
}

.panel-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

.status-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.98;
}

.queue-title {
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  line-height: 0.96;
}

.queue-name {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.04;
}

.login-panel h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.88;
}

.login-panel p,
.panel-copy,
.queue-answer,
.field-hint,
.queue-meta,
.auth-notice {
  color: var(--ink-soft);
  line-height: 1.65;
}

.login-panel p {
  max-width: 48rem;
  margin: 24px 0;
  font-size: 1.08rem;
}

.auth-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
}

.command {
  --button-border: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
  --button-hover-border: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24));
  --button-fill-a: rgba(255, 255, 255, 0.11);
  --button-fill-b: rgba(255, 255, 255, 0.038);
  --button-hover-fill-a: rgba(255, 255, 255, 0.15);
  --button-hover-fill-b: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 56px;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(145deg, var(--button-fill-a), var(--button-fill-b)) padding-box,
    var(--button-border) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 38px rgba(0, 0, 0, 0.1),
    0 16px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(var(--surface-control-blur)) saturate(1.16);
  -webkit-backdrop-filter: blur(var(--surface-control-blur)) saturate(1.16);
  font-weight: 820;
  text-align: center;
  transition: transform var(--ease-smooth), box-shadow var(--ease-smooth), filter var(--ease-smooth), background var(--ease-smooth);
}

.command:hover {
  transform: translateY(-2px);
  filter: brightness(1.07) saturate(1.05);
  background:
    linear-gradient(145deg, var(--button-hover-fill-a), var(--button-hover-fill-b)) padding-box,
    var(--button-hover-border) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -18px 38px rgba(0, 0, 0, 0.1),
    0 22px 50px rgba(0, 0, 0, 0.32);
}

.command.primary,
.command.success {
  --button-border: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
  --button-hover-border: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 222, 167, 0.52), rgba(232, 170, 76, 0.26));
  --button-fill-a: rgba(255, 255, 255, 0.11);
  --button-fill-b: rgba(255, 255, 255, 0.038);
  --button-hover-fill-a: rgba(255, 246, 221, 0.16);
  --button-hover-fill-b: rgba(242, 181, 68, 0.07);
  color: var(--ink);
}

.login-panel .command.primary {
  --button-border: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
  --button-hover-border: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(167, 180, 255, 0.42), rgba(141, 140, 255, 0.18));
  --button-fill-a: rgba(255, 255, 255, 0.11);
  --button-fill-b: rgba(255, 255, 255, 0.038);
  --button-hover-fill-a: rgba(231, 231, 255, 0.14);
  --button-hover-fill-b: rgba(141, 140, 255, 0.052);
}

.youtube-command {
  --button-border: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
  --button-hover-border: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 120, 118, 0.32), rgba(255, 178, 174, 0.18));
  --button-fill-a: rgba(255, 255, 255, 0.11);
  --button-fill-b: rgba(255, 255, 255, 0.038);
  --button-hover-fill-a: rgba(255, 255, 255, 0.14);
  --button-hover-fill-b: rgba(255, 64, 64, 0.045);
}

.home-action-primary {
  --button-border: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
  --button-hover-border: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 222, 167, 0.52), rgba(232, 170, 76, 0.26));
  --button-fill-a: rgba(255, 255, 255, 0.11);
  --button-fill-b: rgba(255, 255, 255, 0.038);
  --button-hover-fill-a: rgba(255, 246, 221, 0.16);
  --button-hover-fill-b: rgba(242, 181, 68, 0.07);
}

.home-action-secondary {
  --button-border: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18));
  --button-hover-border: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(176, 205, 255, 0.46), rgba(117, 145, 210, 0.24));
  --button-fill-a: rgba(255, 255, 255, 0.11);
  --button-fill-b: rgba(255, 255, 255, 0.038);
  --button-hover-fill-a: rgba(220, 235, 255, 0.22);
  --button-hover-fill-b: rgba(120, 157, 224, 0.1);
  color: rgba(248, 249, 252, 0.96);
}

.command.danger,
.icon-command.danger {
  color: #fff;
}

.command.danger {
  --button-hover-border: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(201, 72, 82, 0.34), rgba(255, 210, 206, 0.2));
  --button-fill-a: rgba(255, 255, 255, 0.11);
  --button-fill-b: rgba(255, 255, 255, 0.038);
  --button-hover-fill-a: rgba(255, 255, 255, 0.14);
  --button-hover-fill-b: rgba(180, 55, 55, 0.07);
}

.icon-command.danger {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.14));
  color: rgba(255, 238, 238, 0.9);
}

.icon-command.success {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.14));
}

.icon-command.hold {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.14));
}

.icon-command.success:hover {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(134, 213, 143, 0.28), rgba(255, 255, 255, 0.18));
  color: rgba(242, 255, 244, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(112, 213, 127, 0.045)) padding-box,
    var(--round-border) border-box;
}

.icon-command.hold:hover {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(242, 181, 68, 0.26), rgba(255, 255, 255, 0.18));
  color: rgba(255, 249, 235, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(242, 181, 68, 0.045)) padding-box,
    var(--round-border) border-box;
}

.icon-command.danger:hover {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(201, 72, 82, 0.28), rgba(255, 255, 255, 0.16));
  color: rgba(255, 242, 242, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.145), rgba(160, 42, 52, 0.055)) padding-box,
    var(--round-border) border-box;
}

.delete-command {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(116, 19, 28, 0.18));
  color: rgba(255, 236, 236, 0.96);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(90, 18, 24, 0.045)) padding-box,
    var(--round-border) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -16px 32px rgba(0, 0, 0, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.delete-command:hover {
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(130, 22, 31, 0.42), rgba(255, 196, 196, 0.18));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(86, 8, 18, 0.12)) padding-box,
    var(--round-border) border-box;
}

.view-as-shell {
  position: relative;
  z-index: 120;
  flex: 0 0 auto;
}

.view-as-trigger {
  display: grid;
  gap: 1px;
  min-height: 48px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(250, 251, 255, 0.95);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(0, 0, 0, 0.11)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(226, 193, 255, 0.15)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transition: transform var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth);
}

.view-as-trigger:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(226, 193, 255, 0.075)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(226, 193, 255, 0.24)) border-box;
}

.view-as-trigger span {
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.view-as-trigger strong {
  font-size: 0.82rem;
}

.view-as-menu {
  position: absolute;
  z-index: 999;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(20, 22, 29, 0.74), rgba(11, 12, 17, 0.5)),
    rgba(9, 10, 14, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 22px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(26px) saturate(1.12);
  -webkit-backdrop-filter: blur(26px) saturate(1.12);
  animation: menuRise 180ms var(--ease-smooth) both;
}

.view-as-menu button,
.priority-review-item,
.archive-event-toggle {
  width: 100%;
  border: 1px solid transparent;
  color: rgba(248, 249, 252, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)) border-box;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  transition: transform var(--ease-smooth), background var(--ease-smooth), border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.view-as-menu button {
  min-height: 40px;
  border-radius: 16px;
  text-align: left;
  padding: 9px 12px;
  font-weight: 820;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.08)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)) border-box;
}

.view-as-menu button:hover,
.view-as-menu button.active {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(226, 193, 255, 0.052)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(226, 193, 255, 0.2)) border-box;
}

.home-experience {
  display: grid;
  gap: 18px;
}

.home-stage {
  position: relative;
  min-height: clamp(460px, 62vh, 690px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.72fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: end;
  padding: clamp(24px, 4.5vw, 66px);
  border-radius: 42px;
  overflow: hidden;
  isolation: isolate;
}

.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1) 56%, rgba(0, 0, 0, 0.44)),
    linear-gradient(180deg, rgba(255, 245, 232, 0.03), rgba(0, 0, 0, 0.3)),
    url("./assets/discord-banner.webp") center / cover no-repeat,
    radial-gradient(circle at 24% 18%, rgba(255, 245, 229, 0.1), transparent 22rem);
}

.home-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 13% 20%, rgba(255, 249, 238, 0.76) 0 1.5px, transparent 2px),
    radial-gradient(circle at 34% 74%, rgba(255, 224, 180, 0.46) 0 1px, transparent 1.8px),
    radial-gradient(circle at 76% 38%, rgba(255, 249, 238, 0.72) 0 1.2px, transparent 2px);
  background-size: 190px 190px, 260px 260px, 140px 140px;
  animation: atmosphericTwinkle 26s ease-in-out infinite alternate;
}

.home-stage-copy {
  max-width: 760px;
}

.tag.hot {
  color: rgba(235, 255, 239, 0.96);
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(186, 243, 196, 0.14), rgba(80, 151, 95, 0.05)) padding-box,
    linear-gradient(135deg, rgba(216, 255, 224, 0.42), rgba(95, 180, 111, 0.14)) border-box;
}

.tag.spots-left {
  color: rgba(255, 247, 230, 0.94);
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(255, 246, 225, 0.12), rgba(242, 181, 68, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 234, 182, 0.4), rgba(214, 169, 66, 0.14)) border-box;
}

.home-stage h1 {
  margin-top: 22px;
  max-width: 9ch;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.86;
}

.home-stage p {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.home-stage-actions {
  display: grid;
  gap: 12px;
  align-self: stretch;
  align-content: end;
}

.home-action-primary,
.home-action-secondary {
  justify-content: flex-start;
  min-height: 90px;
  padding: 16px 18px;
}

.home-action-primary svg,
.home-action-secondary svg {
  width: 28px;
  height: 28px;
}

.home-action-primary span,
.home-action-secondary span {
  display: grid;
  gap: 3px;
  text-align: left;
}

.home-action-primary em,
.home-action-secondary em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-style: normal;
}

.home-action-secondary em {
  color: var(--ink-muted);
}

.home-action-secondary strong,
.home-action-secondary svg {
  color: rgba(249, 250, 252, 0.96);
}

.home-info-grid,
.view-grid,
.admin-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--shell-gap);
  width: 100%;
}

.view-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.39fr);
  align-items: start;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--left-rail-width)) minmax(0, 1fr);
  gap: var(--shell-gap);
  align-items: start;
  min-width: 0;
}

.admin-layout > *,
.admin-rail,
.admin-main,
.admin-section-panel {
  min-width: 0;
}

.admin-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: var(--left-rail-width);
  align-content: start;
}

.admin-main {
  width: 100%;
  min-width: 0;
  display: grid;
  align-content: start;
}

.admin-section-panel {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

.home-status-panel,
.queue-panel,
.glass-panel,
.metric {
  border-radius: var(--panel-radius);
  padding: var(--panel-pad);
}

.metric-button {
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.052)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1)) border-box;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.metric-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.metric-active {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.065)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(196, 217, 255, 0.22)) border-box;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
}

.priority-review-panel {
  display: grid;
  gap: 10px;
}

.priority-review-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.09)) border-box;
  transition: transform var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth);
}

.priority-review-toggle:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 233, 184, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 218, 158, 0.18)) border-box;
}

.priority-review-toggle strong {
  display: block;
  margin-top: 3px;
  font-size: 1.02rem;
}

.priority-review-list {
  display: grid;
  gap: 8px;
  animation: accordionPanelIn 220ms var(--ease-smooth) both;
}

.priority-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 20px;
  text-align: left;
}

.priority-review-item:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 221, 170, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 207, 128, 0.16)) border-box;
}

.priority-review-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.priority-review-item em {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-style: normal;
  white-space: nowrap;
}

.admin-section-panel {
  animation: adminPanelIn 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.admin-section-panel .queue-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
}

.admin-section-panel .queue-head > div:first-child {
  min-width: 0;
}

.admin-section-panel .segmented {
  justify-self: end;
}

.admin-section-panel-accepted {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(224, 255, 233, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(151, 232, 173, 0.18)) border-box;
}

.admin-section-panel-appeals {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 239, 229, 0.05)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 202, 158, 0.16)) border-box;
}

.home-status-panel {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)) border-box;
  transition: transform 180ms ease, filter 180ms ease;
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
}

.home-status-panel:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.home-status-panel:nth-child(1) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 236, 214, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 247, 233, 0.32), rgba(223, 205, 183, 0.1)) border-box;
}

.home-status-panel:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 241, 236, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 247, 243, 0.32), rgba(219, 202, 196, 0.1)) border-box;
}

.panel-title,
.status-title,
.queue-title {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1.05;
}

.panel-copy {
  margin: 12px 0 0;
}

.planet-summary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.planet-summary-list span {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)) padding-box,
    var(--planet-border) border-box;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 820;
}

.queue-panel {
  min-width: 0;
}

.side-summary {
  align-self: start;
  position: sticky;
  top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-validation-pulse {
  border-radius: 24px;
  animation: validationPulse 900ms var(--ease-smooth) both;
}

.validation-toast-reset {
  animation: validationToastIn 260ms var(--ease-smooth) both;
}

.field.wide,
.form-section.wide,
.form-actions {
  grid-column: 1 / -1;
}

fieldset.field,
fieldset.form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 820;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.05);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  transition: border-color var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth), filter var(--ease-smooth), transform var(--ease-smooth);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 118px;
  resize: vertical;
  padding: 14px;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(255, 230, 190, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 249, 237, 0.14), rgba(255, 241, 217, 0.055)),
    rgba(255, 241, 217, 0.05);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 235, 205, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 251, 242, 0.17), rgba(255, 246, 230, 0.065)),
    rgba(255, 246, 230, 0.06);
  box-shadow:
    0 0 0 4px rgba(242, 181, 68, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.1);
}

.form-section {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.application-mode-panel {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.application-mode-panel .field-label {
  padding: 0 4px;
}

.application-mode-panel .choice-grid {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.application-mode-panel .choice-card {
  min-height: 108px;
  padding: 16px 18px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.application-mode-panel .choice-card:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.application-mode-panel .choice-card:has(input:checked) {
  border-color: rgba(255, 232, 198, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.165), rgba(255, 255, 255, 0.055)),
    rgba(255, 247, 235, 0.05);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.form-section-head {
  display: grid;
  gap: 6px;
}

.form-section-head .panel-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  position: relative;
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface-card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
  cursor: pointer;
  transition: transform var(--ease-smooth), border-color var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth);
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.048);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 36px rgba(0, 0, 0, 0.16);
}

.choice-card:has(input:checked) {
  transform: translateY(-1px);
  border-color: rgba(255, 230, 190, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055)),
    rgba(255, 246, 230, 0.06);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.choice-card input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: grid;
  gap: 3px;
}

.choice-card strong {
  font-size: 0.96rem;
}

.choice-card em {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-style: normal;
}

.inline-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-choice-row label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 48px;
  min-width: 112px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-control-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(var(--surface-control-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--surface-control-blur)) saturate(1.1);
  cursor: pointer;
  transition: transform var(--ease-smooth), border-color var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth), color var(--ease-smooth);
}

.inline-choice-row label:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
}

.inline-choice-row label:has(input:checked) {
  color: var(--ink);
  border-color: rgba(255, 230, 190, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06)),
    rgba(255, 246, 230, 0.07);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.inline-choice-row input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

.planet-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.planet-card {
  position: relative;
  --planet-card-border: var(--planet-border);
  min-height: 148px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)) padding-box,
    var(--planet-card-border) border-box;
  overflow: hidden;
  cursor: pointer;
  filter: none;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.planet-options.has-selection .planet-card:not(.is-selected) {
  filter: grayscale(1) saturate(0.45) brightness(0.56);
  opacity: 0.76;
}

.planet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.82;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.06), rgba(8, 8, 10, 0.42)),
    var(--planet-art) var(--planet-art-position, center) / var(--planet-art-size, cover) no-repeat;
  transition: opacity 180ms ease, transform 220ms ease;
}

.planet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
}

.planet-card:hover {
  transform: translateY(-2px);
  filter: saturate(1.02) brightness(1.02);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.planet-card:hover::before {
  opacity: 0.72;
  transform: scale(1.02);
}

.planet-card.tatooine {
  --planet-card-border: linear-gradient(135deg, #fff6d8, #dca84d 42%, #f5dd9a);
  --planet-art: url("./assets/planet-tatooine-card.webp?v=102");
  --planet-art-size: 116% 116%;
  --planet-art-position: center center;
}

.planet-card.hoth {
  --planet-card-border: linear-gradient(135deg, #ffffff, #cfd8e3 44%, #8c99a9);
  --planet-art: url("./assets/planet-hoth-card.webp?v=102");
  --planet-art-size: 116% 116%;
  --planet-art-position: center center;
}

.planet-card.mustafar {
  --planet-card-border: linear-gradient(135deg, #fff0e9, #d6503f 42%, #f5a16c);
  --planet-art: url("./assets/planet-mustafar-card.webp?v=102");
  --planet-art-size: 108% 108%;
  --planet-art-position: center center;
}

.planet-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.planet-card.is-selected,
.planet-card:has(input:checked) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)) padding-box,
    var(--planet-card-border) border-box;
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 20px 46px rgba(0, 0, 0, 0.32);
}

.planet-card.is-selected::before,
.planet-card:has(input:checked)::before {
  opacity: 0.96;
  transform: scale(1.02);
}

.planet-card > * {
  position: relative;
  z-index: 1;
}

.planet-card span {
  display: grid;
  align-self: end;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.planet-card strong {
  font-size: clamp(1.05rem, 1.9vw, 1.38rem);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.planet-card em {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-style: normal;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.detail-grid,
.personal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-block {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: var(--surface-card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
}

.detail-block strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.detail-block p {
  margin: 6px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.staff-page-panel {
  display: grid;
  gap: 18px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.staff-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  transition: transform var(--ease-smooth), border-color var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth);
}

.staff-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.066);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 58px rgba(0, 0, 0, 0.26);
}

.staff-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  overflow: hidden;
  color: rgba(20, 20, 24, 0.9);
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(145deg, #ffffff, #bcc0ca);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 38px rgba(0, 0, 0, 0.28);
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.staff-card-copy h2 {
  margin: 0;
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.staff-card-copy span {
  color: var(--ink-muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ink-muted);
}

.timeline-step > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.09);
}

.timeline-step.done {
  color: var(--ink);
}

.timeline-step.done > span {
  color: #08110a;
  background: var(--good);
}

.status-chip {
  border: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.status-chip-action {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: rgba(248, 249, 252, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.038)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.11)) border-box;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.status-chip-action.open,
.status-chip-action.pending,
.status-chip-action.priority,
.status-chip-action.accepted,
.status-chip-action.approved,
.status-chip-action.planet-rank,
.status-chip-action.denied,
.status-chip-action.closed,
.status-chip-action.hold,
.status-chip-action.returned {
  color: rgba(248, 249, 252, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.038)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.11)) border-box;
}

.status-chip-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.status-chip-action.open:hover {
  color: rgba(236, 255, 240, 0.96);
  background:
    linear-gradient(145deg, rgba(220, 255, 227, 0.15), rgba(72, 146, 88, 0.055)) padding-box,
    linear-gradient(135deg, rgba(175, 233, 186, 0.46), rgba(65, 141, 82, 0.18)) border-box;
}

.status-chip-action.pending:hover,
.status-chip-action.priority:hover,
.status-chip-action.hold:hover,
.status-chip-action.returned:hover {
  color: rgba(255, 246, 225, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 246, 225, 0.11), rgba(242, 181, 68, 0.035)) padding-box,
    linear-gradient(135deg, rgba(255, 232, 176, 0.38), rgba(214, 169, 66, 0.12)) border-box;
}

.status-chip-action.accepted:hover,
.status-chip-action.approved:hover,
.status-chip-action.planet-rank:hover {
  color: rgba(239, 255, 243, 0.94);
  background:
    linear-gradient(145deg, rgba(220, 255, 227, 0.1), rgba(72, 146, 88, 0.035)) padding-box,
    linear-gradient(135deg, rgba(175, 233, 186, 0.36), rgba(65, 141, 82, 0.12)) border-box;
}

.status-chip-action.denied:hover,
.status-chip-action.closed:hover {
  color: rgba(255, 244, 243, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 240, 238, 0.1), rgba(180, 55, 55, 0.04)) padding-box,
    linear-gradient(135deg, rgba(240, 150, 144, 0.36), rgba(164, 52, 52, 0.12)) border-box;
}

.status-chip.pending,
.status-chip.priority {
  color: rgba(255, 246, 225, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 246, 225, 0.11), rgba(242, 181, 68, 0.035)) padding-box,
    linear-gradient(135deg, rgba(255, 232, 176, 0.38), rgba(214, 169, 66, 0.12)) border-box;
}

.status-chip.open {
  color: rgba(236, 255, 240, 0.96);
  background:
    linear-gradient(145deg, rgba(220, 255, 227, 0.12), rgba(72, 146, 88, 0.04)) padding-box,
    linear-gradient(135deg, rgba(175, 233, 186, 0.4), rgba(65, 141, 82, 0.14)) border-box;
}

.status-chip.accepted,
.status-chip.approved,
.status-chip.planet-rank {
  color: rgba(239, 255, 243, 0.94);
  background:
    linear-gradient(145deg, rgba(220, 255, 227, 0.1), rgba(72, 146, 88, 0.035)) padding-box,
    linear-gradient(135deg, rgba(175, 233, 186, 0.36), rgba(65, 141, 82, 0.12)) border-box;
}

.status-chip.accepted,
.status-chip.approved {
  color: rgba(255, 248, 228, 0.97);
  background:
    linear-gradient(145deg, rgba(255, 244, 214, 0.14), rgba(217, 139, 43, 0.08)) padding-box,
    linear-gradient(135deg, rgba(217, 139, 43, 0.42), rgba(255, 211, 106, 0.34)) border-box;
}

.status-chip.planet-rank.hoth {
  color: rgba(243, 249, 255, 0.97);
  background:
    linear-gradient(145deg, rgba(241, 247, 255, 0.14), rgba(137, 190, 250, 0.08)) padding-box,
    linear-gradient(135deg, rgba(137, 190, 250, 0.42), rgba(241, 247, 255, 0.36)) border-box;
}

.status-chip.planet-rank.mustafar {
  color: rgba(255, 235, 224, 0.97);
  background:
    linear-gradient(145deg, rgba(104, 0, 0, 0.18), rgba(243, 142, 0, 0.08)) padding-box,
    linear-gradient(135deg, rgba(104, 0, 0, 0.48), rgba(243, 142, 0, 0.34)) border-box;
}

.status-chip.planet-rank.tatooine {
  color: rgba(255, 247, 238, 0.97);
  background:
    linear-gradient(145deg, rgba(255, 225, 180, 0.12), rgba(155, 134, 102, 0.08)) padding-box,
    linear-gradient(135deg, rgba(155, 134, 102, 0.42), rgba(255, 225, 180, 0.34)) border-box;
}

.status-chip.denied,
.status-chip.closed {
  color: rgba(255, 244, 243, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 240, 238, 0.1), rgba(180, 55, 55, 0.04)) padding-box,
    linear-gradient(135deg, rgba(240, 150, 144, 0.36), rgba(164, 52, 52, 0.12)) border-box;
}

.status-chip.hold,
.status-chip.returned {
  color: rgba(255, 246, 225, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 247, 228, 0.11), rgba(242, 181, 68, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 228, 170, 0.36), rgba(209, 160, 54, 0.12)) border-box;
}

.status-chip.status-chip-action.open,
.status-chip.status-chip-action.pending,
.status-chip.status-chip-action.priority,
.status-chip.status-chip-action.accepted,
.status-chip.status-chip-action.approved,
.status-chip.status-chip-action.planet-rank,
.status-chip.status-chip-action.denied,
.status-chip.status-chip-action.closed,
.status-chip.status-chip-action.hold,
.status-chip.status-chip-action.returned {
  color: rgba(248, 249, 252, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.038)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.11)) border-box;
}

.status-chip.status-chip-action.open:hover {
  color: rgba(236, 255, 240, 0.96);
  background:
    linear-gradient(145deg, rgba(220, 255, 227, 0.15), rgba(72, 146, 88, 0.055)) padding-box,
    linear-gradient(135deg, rgba(175, 233, 186, 0.46), rgba(65, 141, 82, 0.18)) border-box;
}

.admin-rail {
  display: grid;
  gap: 18px;
  align-self: start;
}

.admin-layout .icon-command {
  --round-fill-a: rgba(255, 255, 255, 0.155);
  --round-fill-b: rgba(255, 255, 255, 0.06);
  --round-border: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16));
}

.admin-layout .queue-actions {
  gap: 12px;
}

.status-board {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 34px;
  display: grid;
  gap: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-panel-bg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.1);
}

.metric {
  display: grid;
  gap: 8px;
  min-height: 110px;
}

.stat-value {
  font-size: 2.1rem;
}

.queue-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  max-width: 100%;
}

.segmented button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(246, 248, 252, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.028)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)) border-box;
  transition: transform var(--ease-smooth), background var(--ease-smooth), color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.segmented button:hover {
  transform: translateY(-1px);
  color: rgba(249, 250, 252, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.042)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(176, 205, 255, 0.18)) border-box;
}

.segmented button.active {
  color: rgba(249, 250, 252, 0.96);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(194, 215, 255, 0.2)) border-box;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.12);
}

.admin-pagination .command {
  min-height: 42px;
  padding: 9px 14px;
}

.admin-pagination .command:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  filter: grayscale(0.4);
}

.admin-page-status {
  justify-self: center;
  text-align: center;
}

.queue-list,
.compact-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.18);
  transition: transform var(--ease-smooth), background var(--ease-smooth), border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.audit-panel-trigger {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(176, 205, 255, 0.12)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 14px 30px rgba(0, 0, 0, 0.15);
  transition: transform var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth);
}

.audit-panel-trigger:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(176, 205, 255, 0.055)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(176, 205, 255, 0.22)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 38px rgba(0, 0, 0, 0.18);
}

.audit-panel-trigger span {
  display: grid;
  gap: 2px;
}

.audit-panel-trigger strong {
  font-size: 0.96rem;
}

.audit-panel-trigger em,
.admin-page-status {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.audit-panel-trigger svg {
  width: 18px;
  height: 18px;
  opacity: 0.72;
}

.audit-preview-list {
  display: grid;
  gap: 8px;
}

.audit-preview-item {
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

.audit-preview-item span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: unset;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.audit-panel-modal {
  position: fixed;
  z-index: 45;
  inset: 50% auto auto 50%;
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 30px;
  transform: translate(-50%, -50%);
  animation: modalLiftIn 260ms var(--ease-smooth) both;
}

.audit-modal-list {
  display: grid;
  gap: 10px;
  max-height: min(68vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.audit-modal-list::-webkit-scrollbar {
  width: 8px;
}

.audit-modal-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.audit-modal-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.13);
}

.audit-entry-number {
  min-width: 30px;
  color: rgba(245, 247, 252, 0.58);
  font-size: 0.72rem;
  font-weight: 880;
  letter-spacing: 0.08em;
}

.audit-modal-entry p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.compact-empty {
  padding: 14px;
  border-radius: 18px;
}

.queue-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}

.queue-row.compact-application .queue-actions {
  justify-content: flex-end;
}

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

.compact-application-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.queue-name {
  font-size: 1.25rem;
}

.open-indicator {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.feedback-notice,
.queue-feedback {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.archive-event {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
}

.archive-event-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px;
  text-align: left;
  border-radius: 28px;
}

.archive-event-toggle::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  transition: transform var(--ease-smooth), background var(--ease-smooth);
}

.archive-event.open .archive-event-toggle::after {
  content: "-";
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.12);
}

.archive-event-title {
  min-width: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.archive-event-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  filter: blur(6px);
  transition: max-height 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity var(--ease-smooth), filter var(--ease-smooth);
}

.archive-event.open .archive-event-body {
  max-height: 2200px;
  opacity: 1;
  filter: blur(0);
}

.archive-event-copy {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.archive-event-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

.smp-gallery {
  display: flex;
  gap: 12px;
  padding: 0 18px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}

.smp-gallery::-webkit-scrollbar {
  height: 9px;
}

.smp-gallery::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.smp-gallery::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.smp-gallery-item {
  position: relative;
  flex: 0 0 clamp(220px, 34vw, 420px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 32px rgba(0, 0, 0, 0.16);
  transition: transform var(--ease-smooth), filter var(--ease-smooth), border-color var(--ease-smooth);
}

.smp-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -30px 60px rgba(0, 0, 0, 0.18);
}

.smp-gallery-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.smp-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: inherit;
  transform: scale(1.02);
}

.gallery-modal {
  position: fixed;
  z-index: 45;
  inset: 50% auto auto 50%;
  width: min(1080px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 14px;
  transform: translate(-50%, -50%);
  animation: modalLiftIn 240ms var(--ease-smooth) both;
}

.gallery-modal img {
  width: 100%;
  max-height: min(68vh, 720px);
  display: block;
  object-fit: contain;
  border-radius: 24px;
  border: 0;
  background: transparent;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.gallery-caption {
  margin: 0;
}

.feedback-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.16);
}

.feedback-box summary {
  cursor: pointer;
  font-weight: 820;
}

.detail-actions {
  margin-top: 0;
}

.empty-state {
  padding: 24px;
  color: var(--ink-muted);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

.accepted-row {
  position: relative;
  overflow: hidden;
}

.accepted-row::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 34%, rgba(204, 255, 218, 0.08) 45%, transparent 57%);
  transform: translateX(-120%);
  animation: acceptedSweep 3.8s ease-in-out infinite;
}

.application-detail-accepted {
  position: relative;
}

.accepted-banner {
  position: relative;
  margin-top: 16px;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(175, 233, 186, 0.2);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(220, 255, 227, 0.12), rgba(72, 146, 88, 0.05)) padding-box,
    linear-gradient(135deg, rgba(175, 233, 186, 0.36), rgba(65, 141, 82, 0.12)) border-box;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.accepted-banner strong {
  font-size: 1.1rem;
}

.accepted-banner span {
  color: rgba(241, 255, 244, 0.84);
  line-height: 1.55;
}

.accepted-banner-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(203, 255, 218, 0.18), transparent 44%);
  animation: acceptedPulse 2.8s ease-in-out infinite;
}

.youtube-command {
  justify-self: start;
}

.glass-intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1) 56%, rgba(0, 0, 0, 0.44)),
    linear-gradient(180deg, rgba(255, 245, 232, 0.03), rgba(0, 0, 0, 0.26)),
    url("./assets/minecraft-upscaled-4k.webp") center / cover no-repeat;
}

.glass-intro-backdrop,
.glass-intro-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glass-intro-backdrop {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.11), transparent 35%, rgba(255, 255, 255, 0.11) 65%, transparent 100%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 54%);
  backdrop-filter: blur(34px) saturate(1.08);
  -webkit-backdrop-filter: blur(34px) saturate(1.08);
}

.glass-intro-glow-a {
  background: radial-gradient(circle at 32% 46%, rgba(164, 205, 255, 0.22), transparent 18rem);
  animation: glassFloatA 2.4s ease-in-out both;
}

.glass-intro-glow-b {
  background: radial-gradient(circle at 68% 52%, rgba(255, 227, 182, 0.18), transparent 20rem);
  animation: glassFloatB 2.4s ease-in-out both;
}

.glass-intro-shell {
  position: relative;
  width: min(720px, calc(100vw - 40px));
  display: grid;
  place-items: center;
  animation: introShellIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.glass-intro-orbit {
  position: absolute;
  inset: auto;
  width: min(70vw, 540px);
  height: min(70vw, 540px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: blur(0.2px);
  opacity: 0.9;
  animation: introOrbit 1.9s ease-in-out both;
}

.glass-intro-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-intro-orbit span:nth-child(1) {
  transform: scale(0.84);
}

.glass-intro-orbit span:nth-child(2) {
  transform: scale(0.64);
}

.glass-intro-orbit span:nth-child(3) {
  transform: scale(0.42);
}

.glass-intro-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(213, 231, 255, 0.18)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 32px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(28px) saturate(1.16);
  -webkit-backdrop-filter: blur(28px) saturate(1.16);
  animation: introCardIn 1.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.glass-intro-copy {
  margin: 0;
  color: rgba(246, 248, 252, 0.76);
  text-align: center;
  line-height: 1.6;
}

.glass-intro-kicker,
.glass-intro-title em {
  color: rgba(252, 253, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.glass-intro-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(201, 220, 255, 0.62), rgba(255, 228, 191, 0.36), rgba(255, 255, 255, 0.06));
}

.glass-intro-title {
  display: grid;
  gap: 10px;
  text-align: center;
}

.glass-intro-title strong {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(2.3rem, 6.8vw, 5.8rem);
  line-height: 0.92;
}

.glass-intro-title em {
  font-style: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.event-page-body,
.event-page {
  min-height: 100vh;
}

.event-page-body {
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.16) 55%, rgba(0, 0, 0, 0.48)),
    linear-gradient(180deg, rgba(255, 228, 180, 0.05), rgba(0, 0, 0, 0.42)),
    url("./assets/minecraft-upscaled-4k.webp") center / cover fixed no-repeat;
}

.event-page {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 28px 0 72px;
  display: grid;
  gap: 18px;
}

.event-hero,
.event-section,
.event-card,
.event-feature-section,
.event-planets-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.event-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
}

.event-hero h1 {
  margin: 14px 0 0;
  max-width: 11ch;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  line-height: 0.92;
}

.event-hero-copy {
  display: grid;
  gap: 18px;
}

.event-hero-copy p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
  line-height: 1.7;
}

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

.event-hero-art {
  display: grid;
  place-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.event-logo-mark {
  display: block;
  width: min(100%, 560px);
  max-height: clamp(190px, 24vw, 290px);
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.24));
}

.event-section {
  padding: 24px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.event-card {
  min-height: 226px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
}

.event-card .panel-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.event-card .panel-copy {
  margin: 0;
}

.event-feature-section {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.event-feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: end;
}

.event-feature-intro .panel-title {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
}

.event-feature-intro .panel-copy {
  margin: 0;
}

.event-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.event-feature-card {
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  transition: transform var(--ease-smooth), border-color var(--ease-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth);
}

.event-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 226, 174, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 198, 117, 0.075)),
    rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 22px 48px rgba(0, 0, 0, 0.26);
}

.event-feature-card span {
  color: rgba(255, 226, 174, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
}

.event-feature-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.12;
}

.event-feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.55;
}

.event-footer-card {
  padding: 28px;
}

.event-planets-section {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.event-planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.event-planet-card {
  position: relative;
  --planet-card-border: var(--planet-border);
  height: clamp(148px, 12vw, 178px);
  min-height: 0;
  max-height: 190px;
  aspect-ratio: auto;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 28px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)) padding-box,
    var(--planet-card-border) border-box;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  filter: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.event-planet-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  opacity: 0.82;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.06), rgba(8, 8, 10, 0.42)),
    var(--planet-art) var(--planet-art-position, center) / var(--planet-art-size, cover) no-repeat;
  transition: opacity 180ms ease, transform 220ms ease;
}

.event-planet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
}

.event-planet-card:hover {
  transform: translateY(-2px);
  filter: saturate(1.02) brightness(1.02);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.event-planet-card:hover::before {
  opacity: 0.72;
  transform: scale(1.02);
}

.event-planet-card span {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1;
  text-align: left;
  background: rgba(0, 0, 0, 0.16);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.event-planet-card.tatooine,
.event-planet-banner.tatooine {
  --planet-card-border: linear-gradient(135deg, #fff6d8, #dca84d 42%, #f5dd9a);
  --planet-art: url("./assets/planet-tatooine-card.webp?v=102");
  --planet-art-size: 116% 116%;
  --planet-art-position: center center;
}

.event-planet-card.hoth,
.event-planet-banner.hoth {
  --planet-card-border: linear-gradient(135deg, #ffffff, #cfd8e3 44%, #8c99a9);
  --planet-art: url("./assets/planet-hoth-card.webp?v=102");
  --planet-art-size: 116% 116%;
  --planet-art-position: center center;
}

.event-planet-card.mustafar,
.event-planet-banner.mustafar {
  --planet-card-border: linear-gradient(135deg, #fff0e9, #d6503f 42%, #f5a16c);
  --planet-art: url("./assets/planet-mustafar-card.webp?v=102");
  --planet-art-size: 108% 108%;
  --planet-art-position: center center;
}

.event-planet-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px) saturate(0.98);
  -webkit-backdrop-filter: blur(18px) saturate(0.98);
  transition: opacity 180ms var(--ease-smooth);
}

.event-planet-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.event-planet-dialog {
  width: min(620px, 100%);
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(16px) scale(0.985);
  transition: transform 220ms var(--ease-liquid);
}

.event-planet-modal.open .event-planet-dialog {
  transform: translateY(0) scale(1);
}

.event-planet-banner {
  height: clamp(170px, 30vw, 230px);
  min-height: 0;
  max-height: 230px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34)),
    var(--planet-art) var(--planet-art-position, center) / var(--planet-art-size, cover) no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.event-planet-dialog-copy {
  display: grid;
  gap: 8px;
  padding: 0 4px;
}

@keyframes atmosphericTwinkle {
  0%, 100% { opacity: 0.08; transform: translate3d(0, 0, 0); }
  45% { opacity: 0.16; }
  70% { opacity: 0.11; transform: translate3d(1.5%, -1%, 0); }
}

@keyframes atmosphericDrift {
  from { transform: translate3d(-4%, 0, 0) scale(1); opacity: 0.42; }
  to { transform: translate3d(4%, -1.5%, 0) scale(1.04); opacity: 0.6; }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes profileSheetIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lockedPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalLiftIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 16px)) scale(0.97);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0);
  }
}

@keyframes menuRise {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.988);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes validationToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes accordionPanelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes validationPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 235, 205, 0);
  }

  35% {
    box-shadow: 0 0 0 4px rgba(255, 235, 205, 0.12);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 235, 205, 0);
  }
}

@keyframes acceptedSweep {
  0% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes acceptedPulse {
  0%, 100% { opacity: 0.32; transform: scale(0.96); }
  50% { opacity: 0.62; transform: scale(1.04); }
}

@keyframes glassFloatA {
  0% { opacity: 0; transform: translate3d(-3%, 2%, 0) scale(0.92); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(3%, -2%, 0) scale(1.06); }
}

@keyframes glassFloatB {
  0% { opacity: 0; transform: translate3d(4%, -2%, 0) scale(0.94); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-4%, 2%, 0) scale(1.04); }
}

@keyframes introOrbit {
  0% { opacity: 0; transform: scale(0.88) rotate(-10deg); }
  38% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.08) rotate(10deg); }
}

@keyframes introCardIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(8px);
  }
  24% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(1.01);
    filter: blur(6px);
  }
}

@keyframes introShellIn {
  0% {
    opacity: 0;
    transform: scale(0.94);
    filter: blur(12px);
  }
  28% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes adminPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes atmosphericFloat {
  from {
    transform: translate3d(-8px, 0, 0) scale(0.98);
    opacity: 0.18;
  }

  to {
    transform: translate3d(10px, -12px, 0) scale(1.03);
    opacity: 0.34;
  }
}

.application-status-block,
.roster-panel,
.staff-note-panel {
  display: grid;
  gap: 14px;
}

.roster-groups,
.admin-search-grid {
  display: grid;
  gap: 14px;
}

.planet-capacity-row,
.roster-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}
.planet-capacity-copy span {
  color: rgba(235, 240, 255, 0.68);
  font-style: normal;
}

.planet-capacity-board {
  display: grid;
  gap: 12px;
}

.planet-capacity-row {
  padding: 14px 16px;
}

.planet-capacity-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.planet-capacity-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.planet-capacity-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.8));
}

.planet-capacity-row.tatooine .planet-capacity-track span {
  background: linear-gradient(90deg, rgba(255, 214, 164, 0.55), rgba(255, 235, 197, 0.92));
}

.planet-capacity-row.hoth .planet-capacity-track span {
  background: linear-gradient(90deg, rgba(156, 196, 240, 0.58), rgba(241, 247, 255, 0.92));
}

.planet-capacity-row.mustafar .planet-capacity-track span {
  background: linear-gradient(90deg, rgba(166, 70, 48, 0.58), rgba(243, 142, 0, 0.88));
}

.home-roster-grid {
  margin-top: 18px;
}

.roster-groups {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.roster-group {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.roster-group > * {
  position: relative;
  z-index: 1;
}

.roster-group-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  background-position: center;
  background-size: cover;
  filter: blur(12px) saturate(0.88);
  transform: scale(1.12);
}

.roster-group::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.28), rgba(7, 10, 18, 0.5)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.roster-group.tatooine .roster-group-art {
  background-image: url("./assets/planet-tatooine-card.webp?v=102");
}

.roster-group.hoth .roster-group-art {
  background-image: url("./assets/planet-hoth-card.webp?v=102");
}

.roster-group.mustafar .roster-group-art {
  background-image: url("./assets/planet-mustafar-card.webp?v=102");
}

.roster-group header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.roster-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.roster-chip.muted {
  opacity: 0.7;
}

.admin-search-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
  align-items: end;
  clear: both;
}

.admin-search-grid .field:first-child {
  grid-column: 1 / -1;
}

.feedback-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.feedback-template {
  padding-inline: 14px;
  min-height: 42px;
}

.staff-note-panel {
  margin-top: 18px;
  padding: 18px;
}

.application-status-block {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.042);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 44px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
}

.application-status-block.status-accepted {
  border-color: rgba(255, 214, 138, 0.26);
}

.application-status-block.status-denied {
  border-color: rgba(240, 150, 144, 0.24);
}

.application-status-block.status-returned {
  border-color: rgba(255, 214, 143, 0.26);
}

.application-status-block.status-pending {
  border-color: rgba(255, 255, 255, 0.18);
}

.application-status-word {
  margin: 2px 0 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.application-status-subcopy {
  margin: 6px 0 0;
  max-width: 54ch;
}

.application-status-word.status-accepted {
  color: rgba(245, 255, 241, 0.98);
}

.application-status-word.status-denied {
  color: rgba(255, 238, 238, 0.98);
}

.application-status-word.status-returned {
  color: rgba(255, 244, 230, 0.98);
}

.application-status-word.status-pending {
  color: rgba(250, 249, 244, 0.98);
}

.rich-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-step.active {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.timeline-step.active > span {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 22px rgba(0, 0, 0, 0.14);
}

.locked-status-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

.locked-status-panel::before,
.locked-status-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.locked-status-panel::before {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(circle at 70% 72%, rgba(183, 196, 233, 0.16), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  filter: blur(26px);
  transform: scale(1.08);
}

.locked-status-panel::after {
  background: rgba(6, 10, 18, 0.28);
  backdrop-filter: blur(18px) saturate(0.95);
  -webkit-backdrop-filter: blur(18px) saturate(0.95);
}

.locked-panel-core {
  display: grid;
  place-items: center;
  min-height: 110px;
}

.locked-panel-core svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.28));
}

/* Cohesive polish layer: shared shell, panels, controls, and spacing. */
.identity,
.nav-tabs,
.hud-tools {
  min-height: 66px;
}

.identity,
.admin-rail {
  width: 100%;
}

.admin-layout {
  width: 100%;
}

.nav-tabs,
.hud-tools,
.identity,
.queue-panel,
.glass-panel,
.metric,
.home-status-panel,
.profile-box,
.profile-history-item,
.form-section,
.choice-card,
.detail-block,
.feedback-notice,
.queue-feedback,
.staff-card,
.archive-event,
.accepted-banner,
.event-section,
.event-card,
.event-feature-section,
.event-planets-section,
.event-feature-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.12);
  transform: translateZ(0);
}

.queue-panel,
.glass-panel,
.metric,
.home-status-panel,
.admin-section-panel {
  background: var(--surface-panel-bg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.16);
  -webkit-backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.16);
}

.metric {
  min-height: 116px;
}

.admin-rail {
  gap: var(--shell-gap);
}

.admin-rail .metric,
.admin-rail .glass-panel,
.admin-rail .priority-review-panel {
  width: 100%;
  max-width: 100%;
}

.admin-section-panel {
  min-height: 0;
  padding: clamp(20px, 1.8vw, 28px);
}

.admin-section-panel .panel-title,
.admin-section-panel .queue-title {
  margin: 0;
}

.admin-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.admin-search-grid .field:first-child {
  grid-column: 1 / -1;
}

.queue-row,
.audit-preview-item,
.audit-modal-entry,
.compact-empty,
.priority-review-toggle,
.priority-review-item,
.planet-capacity-row,
.roster-group,
.login-sidecard,
.login-step,
.video-review-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--surface-card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.08);
  transform: translateZ(0);
}

.command,
.segmented button,
.nav-tab,
.metric-button,
.priority-review-toggle,
.priority-review-item,
.view-as-trigger,
.view-as-menu button,
.archive-event-toggle,
.inline-choice-row label,
.choice-card,
.status-chip.status-chip-action {
  transition:
    transform var(--ease-smooth),
    color var(--ease-smooth),
    background var(--ease-smooth),
    border-color var(--ease-smooth),
    box-shadow var(--ease-smooth),
    filter var(--ease-smooth);
}

.nav-tab,
.segmented button {
  min-width: 0;
}

.segmented {
  align-items: center;
}

.command {
  justify-content: center;
}

.home-action-primary,
.home-action-secondary,
.queue-actions .command,
.form-actions .command {
  justify-content: flex-start;
}

input,
textarea,
select {
  background: var(--surface-control-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(var(--surface-control-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--surface-control-blur)) saturate(1.12);
}

input:hover,
textarea:hover,
select:hover {
  filter: brightness(1.05);
}

.home-info-grid,
.view-grid,
.admin-layout,
.form-grid,
.detail-grid,
.personal-detail-grid,
.staff-grid,
.event-grid,
.event-feature-grid,
.event-planet-grid {
  align-items: start;
}

.admin-layout {
  isolation: isolate;
}

.admin-rail {
  z-index: 1;
}

.admin-main,
.admin-section-panel {
  z-index: 2;
}

.event-hero,
.home-stage,
.login-panel,
.profile-sheet,
.confirm-modal,
.video-review-modal,
.audit-panel-modal,
.gallery-modal {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--surface-panel-bg);
  box-shadow:
    0 32px 92px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.16);
  -webkit-backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.16);
  transform: translateZ(0);
}

.profile-sheet-backdrop,
.modal-backdrop {
  z-index: 60;
}

.profile-sheet {
  z-index: 61;
}

.confirm-modal,
.video-review-modal,
.audit-panel-modal,
.gallery-modal {
  z-index: 62;
}

.view-as-menu.glass-panel {
  z-index: 999;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(20, 22, 29, 0.78), rgba(8, 9, 13, 0.56)),
    rgba(7, 8, 12, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 24px 66px rgba(0, 0, 0, 0.42);
}

@media (max-width: 1420px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .admin-rail .glass-panel,
  .admin-rail .priority-review-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .hud,
  .home-stage,
  .view-grid,
  .event-hero,
  .event-feature-intro {
    grid-template-columns: 1fr;
  }

  .event-page {
    width: min(100% - 28px, 1180px);
  }

  .event-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .hud {
    gap: 10px;
  }

  .login-grid {
    grid-template-columns: 1fr;
  }

  .home-stage {
    min-height: auto;
  }

  .side-summary {
    position: static;
  }
}

@media (max-width: 820px) {
  .app-frame {
    width: min(100% - 24px, var(--shell-max));
    padding-top: 14px;
  }

  .identity { order: 1; }
  .hud-tools { order: 2; }
  .nav-tabs { order: 3; }

  .nav-tabs {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 28px;
  }

  .hud-tools,
  .identity {
    border-radius: 28px;
  }

  .admin-rail {
    grid-template-columns: 1fr;
  }

  .admin-section-panel .queue-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-section-panel .segmented {
    justify-self: start;
  }

  .home-info-grid,
  .form-grid,
  .choice-grid,
  .planet-options,
  .detail-grid,
  .admin-search-grid,
  .event-grid,
  .event-feature-grid,
  .event-planet-grid {
    grid-template-columns: 1fr;
  }

  .event-logo-mark {
    width: min(100%, 390px);
    max-height: 220px;
  }

  .event-planet-card {
    height: clamp(150px, 30vw, 180px);
    max-height: 180px;
  }

  .event-feature-section,
  .event-planets-section {
    padding: 20px;
  }

  .event-feature-card {
    min-height: auto;
  }

  .home-stage,
  .login-panel {
    border-radius: 30px;
  }

  .home-stage h1,
  .login-panel h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .profile-sheet {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 28px;
  }

  .profile-fact-grid {
    grid-template-columns: 1fr;
  }

  .profile-rank-hero {
    grid-template-columns: 1fr;
  }

  .profile-rank-hero-chip {
    justify-self: start;
  }

  .profile-history-head {
    display: grid;
    gap: 8px;
  }

  .profile-history-meta {
    justify-self: start;
  }

  .queue-head {
    display: grid;
  }

  .segmented {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-pagination .admin-page-status {
    grid-column: 1 / -1;
    order: -1;
  }

  .view-as-shell {
    width: 100%;
  }

  .view-as-trigger {
    width: 100%;
    max-width: none;
  }

  .view-as-menu {
    right: auto;
    left: 0;
    width: 100%;
  }

  .archive-event-toggle {
    grid-template-columns: 1fr auto;
  }

  .archive-event-toggle .tag,
  .archive-event-toggle .planet-pill {
    justify-self: start;
  }

}

/* Final application form overrides to prevent shared glass styles from stacking extra shells. */
.application-mode-panel {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.application-mode-panel .choice-grid {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: var(--surface-card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.1);
}

.application-mode-panel .choice-card {
  min-height: 108px;
  padding: 16px 18px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.application-mode-panel .choice-card:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.application-mode-panel .choice-card:has(input:checked) {
  border-color: rgba(255, 232, 198, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.165), rgba(255, 255, 255, 0.055)),
    rgba(255, 247, 235, 0.05);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.audit-preview-item span {
  display: -webkit-box;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Hero labels use calm interface typography instead of terminal-style all caps. */
#app .home-stage .tag-row .tag {
  min-height: 32px;
  padding: 7px 13px;
  font-family: var(--system-label-font);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Cohesion and polish layer */

/* Final visual system. This file intentionally owns the presentation layer. */
:root {
  --shell-max: 1480px;
  --shell-gutter: clamp(16px, 2.4vw, 38px);
  --shell-gap: clamp(12px, 1.2vw, 18px);
  --left-rail-width: clamp(286px, 22vw, 352px);
  --right-tools-width: clamp(190px, 15vw, 240px);
  --panel-pad: clamp(20px, 2vw, 30px);
  --panel-radius: 24px;
  --card-radius: 16px;
  --control-radius: 14px;
  --surface-shell-blur: 32px;
  --surface-panel-blur: 30px;
  --surface-card-blur: 18px;
  --surface-control-blur: 14px;
  --surface-shell-bg: rgba(30, 25, 23, 0.47);
  --surface-panel-bg: rgba(28, 23, 21, 0.52);
  --surface-card-bg: rgba(255, 255, 255, 0.065);
  --surface-control-bg: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.17);
  --line-strong: rgba(255, 255, 255, 0.3);
  --shadow-shell: 0 18px 48px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --shadow-panel: 0 24px 62px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --ease-smooth: 170ms cubic-bezier(0.2, 0.75, 0.25, 1);
  --ease-liquid: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --brand-yellow: #ffd91a;
  --brand-yellow-soft: rgba(255, 217, 26, 0.14);
  --brand-yellow-line: rgba(255, 217, 26, 0.42);
}

body {
  background: #080706;
}

.backdrop {
  background:
    linear-gradient(115deg, rgba(5, 4, 4, 0.72), rgba(14, 10, 8, 0.28) 48%, rgba(6, 5, 5, 0.66)),
    linear-gradient(180deg, rgba(255, 223, 182, 0.03), rgba(0, 0, 0, 0.56)),
    url("./assets/minecraft-upscaled-4k.webp") center / cover no-repeat;
}

#app:has(.login-shell) .backdrop {
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24) 52%, rgba(0, 0, 0, 0.64)),
    url("./assets/minecraft-upscaled-4k.webp") center / cover no-repeat;
}

.backdrop::before {
  opacity: 0.42;
  filter: blur(24px);
  animation-duration: 34s;
}

.app-frame {
  padding-top: clamp(16px, 2vw, 28px);
}

/* Header */
.hud {
  margin-bottom: clamp(18px, 2vw, 28px);
}

.identity,
.nav-tabs,
.hud-tools {
  min-height: 62px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: var(--surface-shell-bg);
  box-shadow: var(--shadow-shell);
  backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.16);
  -webkit-backdrop-filter: blur(var(--surface-shell-blur)) saturate(1.16);
}

.identity {
  position: relative;
  z-index: 4;
  padding: 8px 10px;
  pointer-events: auto;
  touch-action: manipulation;
}

.identity:focus-visible,
.nav-tab:focus-visible,
.command:focus-visible,
.event-planet-card:focus-visible,
.event-hub-card:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}

.identity .avatar {
  width: 44px;
  height: 44px;
}

.brand-stack {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}

.brand-stack > strong,
.brand-stack > span:not(.identity-status) {
  grid-column: 1;
}

.identity-status {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-tabs {
  padding: 6px;
  gap: 4px;
}

.nav-tab {
  min-height: 48px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
}

.nav-tab:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  transform: none;
}

.nav-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px rgba(0, 0, 0, 0.13);
}

.hud-tools {
  padding: 6px;
}

.view-as-trigger {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

/* Page motion */
.view.view-enter {
  animation: polishedPageIn 280ms var(--ease-liquid) both;
}

@keyframes polishedPageIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.996);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

/* One strong outer surface; inner content stays quiet. */
.queue-panel,
.glass-panel,
.status-board,
.login-panel,
.profile-sheet,
.event-hero,
.event-feature-section,
.event-planets-section,
.event-footer-card,
.admin-section-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface-panel-bg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.12);
}

.queue-panel::before,
.status-board::before,
.event-feature-section::before,
.event-planets-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.queue-panel,
.status-board,
.admin-section-panel {
  padding: var(--panel-pad);
}

.view-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
}

.side-summary {
  top: 16px;
  display: grid;
  gap: 14px;
}

.side-summary .panel-copy {
  margin: 0;
}

.side-summary-divider {
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent);
}

.side-status-copy {
  color: rgba(255, 255, 255, 0.68);
}

/* Forms: sections, not cards inside a card. */
.form-grid {
  gap: 22px 18px;
}

.form-section,
.application-mode-panel,
.staff-note-panel {
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.application-mode-panel .choice-grid {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.choice-card,
.inline-choice-row label,
input,
textarea,
select {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: var(--control-radius);
  background: var(--surface-control-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(var(--surface-control-blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--surface-control-blur)) saturate(1.08);
}

.application-mode-panel .choice-card {
  min-height: 88px;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.13);
  background: var(--surface-control-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.choice-card:hover,
.application-mode-panel .choice-card:hover,
.inline-choice-row label:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.105);
  box-shadow: var(--shadow-card);
}

.choice-card:has(input:checked),
.application-mode-panel .choice-card:has(input:checked),
.inline-choice-row label:has(input:checked) {
  border-color: rgba(255, 225, 183, 0.38);
  background: rgba(255, 244, 225, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px rgba(0, 0, 0, 0.13);
}

input:hover,
textarea:hover,
select:hover,
input:focus,
textarea:focus,
select:focus {
  transform: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(255, 228, 190, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

select,
select:hover,
select:focus {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  padding-right: 48px;
  color: var(--ink);
  background-color: rgba(13, 15, 20, 0.94);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' fill='none' stroke='%23ffd91a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}

select option,
select optgroup {
  color: #f7f7f8;
  background: #14161c;
}

.rank-release-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 20px;
  padding: 18px;
  border: 1px solid rgba(255, 217, 26, 0.28);
  border-radius: var(--control-radius);
  background: linear-gradient(135deg, rgba(255, 217, 26, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rank-release-panel > div {
  display: grid;
  gap: 5px;
}

.rank-release-panel strong {
  font-size: 1.04rem;
}

.rank-release-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.rank-release-panel .command {
  flex: 0 0 auto;
}

.rank-release-panel .command:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.rank-release-modal-icon {
  color: #fff3a5;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 217, 26, 0.08)) padding-box,
    linear-gradient(135deg, rgba(255, 243, 165, 0.48), rgba(255, 217, 26, 0.2)) border-box;
}

.confirm-modal,
.video-review-modal,
.audit-panel-modal,
.gallery-modal {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  opacity: 1;
  transform: translate(-50%, -50%);
  animation: none;
}

/* Paired home cards share a row height instead of stopping at their content. */
.home-info-grid {
  align-items: stretch;
}

.home-info-grid > .home-status-panel {
  height: 100%;
}

.home-capacity-panel {
  align-content: stretch;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.home-capacity-panel .planet-capacity-board {
  height: 100%;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.home-capacity-panel .planet-capacity-row {
  min-height: 0;
  display: grid;
  align-content: center;
}

/* Buttons share one shape and one motion language. */
.command,
.segmented button,
.metric-button,
.priority-review-toggle,
.priority-review-item,
.archive-event-toggle,
.status-chip-action,
.view-as-menu button {
  border-radius: var(--control-radius);
  transition: transform var(--ease-smooth), border-color var(--ease-smooth), background-color var(--ease-smooth), box-shadow var(--ease-smooth), color var(--ease-smooth);
}

.command {
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 8px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(var(--surface-control-blur)) saturate(1.08);
  -webkit-backdrop-filter: blur(var(--surface-control-blur)) saturate(1.08);
}

.command:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.125);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  filter: none;
}

.command:active,
.nav-tab:active,
.choice-card:active {
  transform: translateY(0) scale(0.985);
}

.command.primary,
.command.success {
  border-color: var(--brand-yellow-line);
  background: var(--brand-yellow-soft);
}

.command.danger {
  color: rgba(255, 234, 234, 0.94);
  border-color: rgba(179, 64, 72, 0.24);
  background: rgba(98, 24, 30, 0.12);
}

.command.danger:hover {
  border-color: rgba(225, 106, 112, 0.44);
  background: rgba(130, 35, 42, 0.2);
}

.logout-button,
.icon-command {
  flex-basis: 46px;
  min-width: 46px;
  max-width: 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

/* Home composition: varied rhythm without extra decoration. */
.home-experience {
  gap: var(--shell-gap);
}

.home-stage {
  min-height: clamp(430px, 58vh, 620px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  padding: clamp(28px, 4vw, 58px);
  border-radius: 28px;
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.home-stage::before {
  background:
    linear-gradient(112deg, rgba(8, 5, 4, 0.76), rgba(8, 5, 4, 0.13) 58%, rgba(5, 4, 4, 0.52)),
    linear-gradient(180deg, rgba(255, 241, 220, 0.01), rgba(0, 0, 0, 0.36)),
    url("./assets/planet-tatooine-card.webp?v=102") center / cover no-repeat;
}

.home-stage h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 9vw, 7.6rem);
  line-height: 0.9;
}

.home-stage p {
  max-width: 58ch;
  margin-top: 20px;
}

.tag.spots-left {
  color: #fff7bd;
  border-color: var(--brand-yellow-line);
  background: rgba(74, 57, 0, 0.42);
}

.home-stage-actions {
  gap: 10px;
}

.home-action-primary,
.home-action-secondary {
  min-height: 76px;
  border-radius: 18px;
}

.home-info-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.home-status-panel {
  min-height: 184px;
  padding: var(--panel-pad);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface-panel-bg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.12);
}

.home-status-panel:nth-child(1),
.home-status-panel:nth-child(4) {
  grid-column: span 7;
}

.home-status-panel:nth-child(2),
.home-status-panel:nth-child(3) {
  grid-column: span 5;
}

.home-status-panel:nth-child(n) {
  background: var(--surface-panel-bg);
}

.home-status-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  filter: none;
}

.home-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.home-panel-heading .panel-title {
  margin-bottom: 0;
}

.home-trailer-panel {
  align-content: start;
  gap: 16px;
}

.home-trailer-panel .youtube-command {
  flex: 0 0 auto;
}

.event-trailer-frame {
  border-color: rgba(255, 217, 26, 0.28);
  border-radius: 18px;
  background: #050505;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 217, 26, 0.08);
}

.event-countdown {
  display: grid;
  gap: 10px;
}

.countdown-parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-parts > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
}

.countdown-parts strong {
  overflow: hidden;
  color: #fff8c7;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1;
  text-overflow: clip;
}

.countdown-parts em {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-countdown > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  line-height: 1.45;
}

.event-countdown.is-live .countdown-parts > span {
  border-color: rgba(133, 209, 143, 0.35);
  background: rgba(60, 124, 71, 0.13);
}

.event-hub-card {
  display: block;
  transition: transform var(--ease-smooth), border-color var(--ease-smooth), box-shadow var(--ease-smooth);
}

.event-hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-yellow-line);
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.34);
}

.event-info-card-copy {
  display: grid;
  gap: 8px;
}

.event-info-card-copy strong {
  max-width: 24ch;
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1.05;
}

.event-info-card-copy em {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #fff3a5;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-info-card-copy svg {
  width: 18px;
  height: 18px;
}

/* Planet cards carry the color; surrounding controls do not. */
.planet-card {
  min-height: 164px;
  border-radius: 18px;
}

.planet-card.tatooine,
.event-planet-card.tatooine,
.event-planet-banner.tatooine {
  --planet-art: url("./assets/planet-tatooine-card.webp?v=102");
  --planet-art-size: cover;
  --planet-art-position: center 54%;
}

.planet-card.hoth,
.event-planet-card.hoth,
.event-planet-banner.hoth {
  --planet-art: url("./assets/planet-hoth-card.webp?v=102");
  --planet-art-size: cover;
  --planet-art-position: center 56%;
}

.planet-card.mustafar,
.event-planet-card.mustafar,
.event-planet-banner.mustafar {
  --planet-art: url("./assets/planet-mustafar-card.webp?v=102");
  --planet-art-size: cover;
  --planet-art-position: center 48%;
}

.roster-group.tatooine .roster-group-art { background-image: url("./assets/planet-tatooine-card.webp?v=102"); }
.roster-group.hoth .roster-group-art { background-image: url("./assets/planet-hoth-card.webp?v=102"); }
.roster-group.mustafar .roster-group-art { background-image: url("./assets/planet-mustafar-card.webp?v=102"); }

/* Quiet data rows instead of card stacks. */
.detail-grid,
.personal-detail-grid {
  gap: 0 22px;
}

.detail-block {
  padding: 16px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.planet-capacity-row,
.queue-row,
.audit-preview-item,
.audit-modal-entry,
.priority-review-item,
.roster-group {
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.queue-row:hover,
.priority-review-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

/* Profile is one sheet with divided accordion rows. */
.profile-sheet {
  gap: 0;
  padding: 14px;
  border-radius: 24px;
  outline: none;
}

body.profile-open {
  overflow: hidden;
}

.profile-sheet-head {
  margin-bottom: 8px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: none;
}

.profile-box {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.profile-box + .profile-box {
  margin-top: 0;
}

.profile-box:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.profile-box-toggle {
  min-height: 62px;
  padding-inline: 12px;
}

.profile-rank-hero,
.profile-fact,
.profile-history-item,
.profile-alert-note {
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

/* Event page */
.event-page-body {
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.64), rgba(7, 6, 6, 0.84)),
    url("./assets/minecraft-upscaled-4k.webp") center / cover fixed no-repeat;
}

.event-page {
  gap: var(--shell-gap);
}

.event-hero {
  border-radius: 28px;
  border-color: rgba(255, 217, 26, 0.24);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.68) 48%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0.68) 100%),
    url("./assets/discord-banner.webp") center / cover no-repeat;
  box-shadow: var(--shadow-panel);
}

.event-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  color: var(--brand-yellow);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
}

.event-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-fact-row > span {
  display: inline-flex;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
}

.event-fact-row strong {
  color: #fff5b5;
}

.event-hero-countdown {
  width: 100%;
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(255, 217, 26, 0.22);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
}

.event-trailer-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}

.event-trailer-copy {
  display: grid;
  gap: 10px;
}

.event-trailer-copy .panel-title,
.event-trailer-copy .panel-copy {
  margin: 0;
}

.event-grid {
  gap: var(--shell-gap);
}

.event-card,
.event-feature-card {
  border-radius: var(--card-radius);
}

.event-feature-card {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.event-planet-card {
  border-radius: 18px;
}

/* Responsive */
@media (max-width: 1180px) {
  .home-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-status-panel:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .identity,
  .nav-tabs,
  .hud-tools {
    border-radius: 18px;
  }

  .brand-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .identity-status {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .home-info-grid,
  .home-stage,
  .view-grid,
  .event-trailer-section {
    grid-template-columns: 1fr;
  }

  .home-stage {
    min-height: 560px;
    padding: 24px;
  }

  .home-stage h1 {
    max-width: 100%;
    font-size: clamp(3rem, 16vw, 5.2rem);
  }

  .home-panel-heading {
    display: grid;
  }

  .home-trailer-panel .youtube-command {
    justify-self: start;
  }

  .rank-release-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-release-panel .command {
    width: 100%;
  }

  .event-fact-row {
    display: grid;
  }

  .side-summary {
    position: static;
  }

  .form-section,
  .application-mode-panel {
    padding-top: 18px;
  }

  .profile-sheet {
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .countdown-parts {
    gap: 5px;
  }

  .countdown-parts > span {
    padding: 9px 3px;
  }

  .countdown-parts strong {
    font-size: 1.2rem;
  }

  .countdown-parts em {
    font-size: 0.56rem;
  }

  .event-hero,
  .event-trailer-section {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view.view-enter {
    animation: none;
  }
}

/* Unified liquid-glass finish shared by every page and control. */
:root {
  --control-radius: 18px;
  --liquid-fill: linear-gradient(145deg, rgba(51, 45, 42, 0.72), rgba(22, 19, 18, 0.58));
  --liquid-fill-hover: linear-gradient(145deg, rgba(73, 64, 59, 0.78), rgba(31, 27, 25, 0.64));
  --liquid-border: linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.11));
  --liquid-border-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 224, 172, 0.28), rgba(255, 255, 255, 0.14));
  --liquid-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), inset 0 -18px 36px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.16);
}

.home-stage::before {
  background:
    linear-gradient(102deg, rgba(5, 4, 4, 0.9) 0%, rgba(5, 4, 4, 0.76) 38%, rgba(5, 4, 4, 0.28) 61%, rgba(5, 4, 4, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.38)),
    url("./assets/discord-banner.webp") left center / 145% auto no-repeat;
}

.home-stage {
  cursor: pointer;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(12, 10, 9, 0.2), rgba(12, 10, 9, 0.2)) padding-box,
    var(--liquid-border) border-box;
}

.home-stage-copy,
.home-stage-actions,
.queue-head > *,
.home-panel-heading > *,
.event-overview-head > *,
.event-join-strip > * {
  min-width: 0;
}

.home-stage h1,
.home-stage p {
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.72);
}

.home-stage h1 {
  max-width: 11ch;
  font-size: clamp(3.7rem, 7.6vw, 6.8rem);
  line-height: 0.92;
}

.home-stage p {
  color: rgba(255, 255, 255, 0.84);
}

.command,
.nav-tab,
.segmented button,
.metric-button,
.priority-review-toggle,
.priority-review-item,
.archive-event-toggle,
.status-chip.status-chip-action,
.view-as-trigger,
.view-as-menu button,
.profile-box-toggle,
.choice-card,
.inline-choice-row label {
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  color: var(--ink);
  background: var(--liquid-fill) padding-box, var(--liquid-border) border-box;
  box-shadow: var(--liquid-shadow);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.command {
  min-height: 54px;
  padding: 12px 17px;
  line-height: 1.25;
  white-space: normal;
}

.command.primary,
.command.success,
.command.youtube-command {
  border-color: transparent;
  background: var(--liquid-fill) padding-box, var(--liquid-border) border-box;
}

.command:hover,
.nav-tab:hover,
.segmented button:hover,
.metric-button:hover,
.priority-review-toggle:hover,
.priority-review-item:hover,
.archive-event-toggle:hover,
.status-chip.status-chip-action:hover,
.view-as-trigger:hover,
.view-as-menu button:hover,
.profile-box-toggle:hover,
.choice-card:hover,
.inline-choice-row label:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  background: var(--liquid-fill-hover) padding-box, var(--liquid-border-hover) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -18px 36px rgba(0, 0, 0, 0.08), 0 18px 40px rgba(0, 0, 0, 0.24);
  filter: none;
}

.nav-tab.active,
.segmented button.active,
.view-as-menu button.active,
.choice-card:has(input:checked),
.inline-choice-row label:has(input:checked) {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(69, 60, 55, 0.82), rgba(31, 27, 24, 0.68)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 217, 26, 0.3), rgba(255, 255, 255, 0.13)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.27), 0 16px 34px rgba(0, 0, 0, 0.21);
}

.status-chip.status-chip-action {
  justify-self: start;
  align-self: end;
  min-width: 112px;
  min-height: 46px;
  padding: 10px 18px;
  font-size: 0.82rem;
}

.logout-button,
.icon-command {
  background: var(--liquid-fill) padding-box, var(--liquid-border) border-box;
  box-shadow: var(--liquid-shadow);
}

.queue-panel,
.glass-panel,
.home-status-panel,
.metric,
.status-board,
.login-panel,
.profile-sheet,
.admin-section-panel,
.event-overview-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(31, 26, 24, 0.66), rgba(17, 14, 13, 0.48)) padding-box,
    var(--liquid-border) border-box;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.14);
  -webkit-backdrop-filter: blur(var(--surface-panel-blur)) saturate(1.14);
}

.queue-row,
.audit-preview-item,
.audit-modal-entry,
.priority-review-item,
.planet-capacity-row,
.roster-group,
.profile-rank-hero,
.profile-fact,
.profile-history-item,
.profile-alert-note,
.staff-card,
.feedback-notice,
.queue-feedback,
.rank-release-panel,
.event-overview-countdown,
.simple-planet-card,
.event-join-strip,
.detail-block {
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  background: var(--liquid-fill) padding-box, linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.07)) border-box;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--surface-card-blur)) saturate(1.1);
  -webkit-backdrop-filter: blur(var(--surface-card-blur)) saturate(1.1);
}

.detail-grid,
.personal-detail-grid {
  gap: 12px;
}

.detail-block {
  padding: 16px;
}

h1,
h2,
h3,
p,
.panel-title,
.queue-title,
.queue-row,
.command,
.choice-card,
.staff-card {
  overflow-wrap: anywhere;
}

/* The event detail page is deliberately one clear explanation, not a stack of feature sections. */
.simple-event-page {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  align-content: start;
  padding: clamp(18px, 3vw, 38px) 0 clamp(32px, 5vw, 68px);
}

.simple-event-back {
  width: fit-content;
  justify-self: start;
}

.event-overview-panel {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  padding: clamp(24px, 4.5vw, 58px);
  border-radius: 28px;
}

.event-overview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: end;
}

.event-overview-copy {
  display: grid;
  gap: 16px;
}

.event-overview-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--brand-yellow);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.92;
}

.event-overview-copy p {
  max-width: 72ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.event-overview-copy .event-overview-lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

.event-overview-countdown {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.event-overview-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
}

.event-planets-simple,
.event-section-heading {
  display: grid;
  gap: 10px;
}

.event-section-heading h2,
.event-join-strip h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.event-planet-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--shell-gap);
  margin-top: 12px;
}

.simple-planet-card {
  min-width: 0;
  overflow: hidden;
}

.simple-planet-art {
  min-height: 190px;
  background: var(--planet-art) var(--planet-art-position, center) / var(--planet-art-size, cover) no-repeat;
}

.simple-planet-card.tatooine {
  --planet-art: url("./assets/planet-tatooine-card.webp?v=102");
  --planet-art-position: center 54%;
}

.simple-planet-card.hoth {
  --planet-art: url("./assets/planet-hoth-card.webp?v=102");
  --planet-art-position: center 56%;
}

.simple-planet-card.mustafar {
  --planet-art: url("./assets/planet-mustafar-card.webp?v=102");
  --planet-art-position: center 48%;
}

.simple-planet-card > div:last-child {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.simple-planet-card h3,
.simple-planet-card p {
  margin: 0;
}

.simple-planet-card h3 {
  font-size: 1.35rem;
}

.simple-planet-card p,
.event-join-strip p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.event-join-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(20px, 3vw, 30px);
}

.event-join-strip > div:first-child {
  display: grid;
  gap: 9px;
}

.event-join-strip p {
  max-width: 68ch;
  margin: 0;
}

.event-overview-actions {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

@media (max-width: 900px) {
  .event-overview-head,
  .event-join-strip {
    grid-template-columns: 1fr;
  }

  .event-overview-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-stage {
    min-height: 600px;
    align-content: end;
    background: transparent;
  }

  .home-stage::before {
    background:
      linear-gradient(180deg, rgba(5, 4, 4, 0.2) 0%, rgba(5, 4, 4, 0.66) 43%, rgba(5, 4, 4, 0.94) 100%),
      url("./assets/discord-banner.webp") center / cover no-repeat;
  }

  .home-stage h1 {
    font-size: clamp(3rem, 14vw, 5rem);
    line-height: 0.94;
  }

  .home-stage p {
    font-size: 1rem;
  }

  .home-stage-actions,
  .event-overview-actions {
    grid-template-columns: 1fr;
  }

  .home-action-primary,
  .home-action-secondary,
  .event-overview-actions .command {
    width: 100%;
  }

  .event-planet-summary-grid {
    grid-template-columns: 1fr;
  }

  .simple-planet-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
  }

  .simple-planet-art {
    min-height: 170px;
  }
}

@media (max-width: 520px) {
  .simple-event-page {
    width: min(100% - 20px, 1180px);
  }

  .event-overview-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .event-overview-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .event-fact-row {
    display: grid;
  }

  .simple-planet-card {
    grid-template-columns: 1fr;
  }

  .simple-planet-art {
    min-height: 180px;
  }
}

/* Selects use the same ice-grey glass as the rest of the controls. */
select,
select:hover,
select:focus {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  color: #f4f7fa;
  border: 1px solid rgba(226, 237, 247, 0.34);
  background-color: rgba(112, 126, 140, 0.3);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' fill='none' stroke='%23eaf4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(239, 247, 255, 0.2), rgba(142, 159, 176, 0.09));
  background-repeat: no-repeat, no-repeat;
  background-position: right 16px center, center;
  background-size: 18px 18px, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -18px 34px rgba(25, 34, 44, 0.08), 0 12px 28px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

select:hover {
  border-color: rgba(235, 244, 252, 0.52);
  background-color: rgba(128, 143, 158, 0.36);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(246, 250, 255, 0.26), rgba(158, 177, 194, 0.13));
}

select:focus {
  border-color: rgba(222, 239, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(202, 227, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 32px rgba(0, 0, 0, 0.16);
}

select option,
select optgroup {
  color: #f6f8fa;
  background: #4b5159;
}

select option:checked {
  background: #69727d;
}

/* The account panel belongs to the account card, so keep it anchored there. */
.profile-sheet {
  position: fixed;
  top: calc(clamp(16px, 2vw, 28px) + 72px);
  right: auto;
  left: max(var(--shell-gutter), calc(50vw - 740px));
  width: min(440px, calc(100vw - (var(--shell-gutter) * 2)));
  max-height: calc(100dvh - 116px);
  opacity: 1;
  transform: translateZ(0);
  animation: none;
}

.profile-sheet-backdrop {
  background: rgba(3, 4, 8, 0.24);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: none;
}

.profile-lockup {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.profile-logout-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 104px;
  max-width: none;
  min-height: 46px;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--control-radius);
}

.profile-logout-button span {
  white-space: nowrap;
}

.profile-close-button {
  flex: 0 0 46px;
}

@media (max-width: 820px) {
  .profile-sheet {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 24px);
  }

  .profile-sheet-head {
    flex-wrap: wrap;
  }

  .profile-lockup {
    flex: 1 1 220px;
  }
}

@media (max-width: 480px) {
  .profile-sheet-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .profile-lockup,
  .profile-head-actions {
    grid-column: 1 / -1;
  }

  .profile-head-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    margin-left: 0;
  }

  .profile-logout-button {
    width: 100%;
  }
}

/* One darker smoked-glass palette for every page, menu, card and control. */
:root {
  --dark-shell-fill: linear-gradient(145deg, rgba(40, 35, 33, 0.88), rgba(15, 13, 12, 0.78));
  --dark-panel-fill: linear-gradient(145deg, rgba(34, 29, 27, 0.82), rgba(14, 12, 11, 0.72));
  --dark-card-fill: linear-gradient(145deg, rgba(44, 39, 36, 0.84), rgba(19, 16, 15, 0.76));
  --dark-control-fill: linear-gradient(145deg, rgba(47, 42, 39, 0.88), rgba(21, 18, 17, 0.82));
  --liquid-fill: linear-gradient(145deg, rgba(43, 38, 36, 0.9), rgba(15, 13, 12, 0.82));
  --liquid-fill-hover: linear-gradient(145deg, rgba(61, 53, 49, 0.92), rgba(23, 20, 18, 0.84));
  --surface-shell-bg: rgba(25, 21, 20, 0.74);
  --surface-panel-bg: rgba(24, 20, 19, 0.7);
  --surface-card-bg: rgba(32, 28, 26, 0.72);
  --surface-control-bg: rgba(34, 30, 28, 0.78);
}

#app .identity,
#app .nav-tabs,
#app .hud-tools,
#app .queue-panel,
#app .glass-panel,
#app .home-status-panel,
#app .metric,
#app .status-board,
#app .login-panel,
#app .profile-sheet,
#app .admin-section-panel,
#app .confirm-modal,
#app .video-review-modal,
#app .audit-panel-modal,
#app .gallery-modal,
.event-page .event-overview-panel {
  border: 1px solid transparent;
  background: var(--dark-panel-fill) padding-box, var(--liquid-border) border-box;
  box-shadow: var(--shadow-panel);
}

#app .identity,
#app .nav-tabs,
#app .hud-tools {
  background: var(--dark-shell-fill) padding-box, var(--liquid-border) border-box;
}

#app .command,
#app .nav-tab,
#app .segmented button,
#app .metric-button,
#app .priority-review-toggle,
#app .priority-review-item,
#app .archive-event-toggle,
#app .status-chip.status-chip-action,
#app .view-as-trigger,
#app .view-as-menu button,
#app .profile-box-toggle,
#app .choice-card,
#app .inline-choice-row label,
.event-page .command {
  background: var(--liquid-fill) padding-box, var(--liquid-border) border-box;
}

#app .nav-tab.active,
#app .segmented button.active,
#app .view-as-menu button.active,
#app .choice-card:has(input:checked),
#app .inline-choice-row label:has(input:checked) {
  background:
    linear-gradient(145deg, rgba(55, 48, 44, 0.94), rgba(19, 16, 15, 0.88)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 217, 26, 0.24), rgba(255, 255, 255, 0.1)) border-box;
}

#app .queue-row,
#app .audit-preview-item,
#app .audit-modal-entry,
#app .priority-review-item,
#app .planet-capacity-row,
#app .roster-group,
#app .profile-sheet-head,
#app .profile-rank-hero,
#app .profile-fact,
#app .profile-history-item,
#app .profile-alert-note,
#app .profile-role-switcher,
#app .staff-card,
#app .feedback-notice,
#app .queue-feedback,
#app .rank-release-panel,
#app .detail-block,
.event-page .event-overview-countdown,
.event-page .simple-planet-card,
.event-page .event-join-strip,
.event-page .event-fact-row > span {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--dark-card-fill);
  box-shadow: var(--shadow-card);
}

#app input,
#app textarea {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--dark-control-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.16);
}

#app input:hover,
#app textarea:hover,
#app input:focus,
#app textarea:focus {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(145deg, rgba(58, 51, 47, 0.9), rgba(24, 21, 19, 0.84));
}

#app select,
#app select:hover,
#app select:focus {
  color: #f4f7fa;
  border-color: rgba(222, 234, 244, 0.3);
  background-color: rgba(45, 51, 57, 0.88);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' fill='none' stroke='%23eaf4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(191, 210, 225, 0.11), rgba(61, 70, 78, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17), inset 0 -18px 34px rgba(8, 10, 12, 0.12), 0 12px 28px rgba(0, 0, 0, 0.2);
}

#app select:hover {
  border-color: rgba(232, 242, 250, 0.46);
  background-color: rgba(56, 63, 70, 0.92);
}

#app select option,
#app select optgroup {
  color: #f6f8fa;
  background: #30343a;
}

#app select option:checked {
  background: #464d55;
}

/* Star Wars-inspired interface pass: tactical type, angular glass and restrained system accents. */
:root {
  --system-yellow: #ffe15a;
  --system-yellow-soft: rgba(255, 225, 90, 0.14);
  --system-yellow-line: rgba(255, 225, 90, 0.52);
  --system-blue: #bde8ff;
  --system-blue-soft: rgba(189, 232, 255, 0.12);
  --system-panel-radius: 24px 7px 24px 7px;
  --system-card-radius: 16px 5px 16px 5px;
  --system-control-radius: 12px 4px 12px 4px;
  --system-display-font: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  --system-label-font: "Arial Narrow", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --system-data-font: "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --system-scanlines: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.013) 0 1px, transparent 1px 5px);
  --system-panel-edge:
    linear-gradient(90deg, var(--system-yellow-line), transparent 72%) top left / 118px 1px no-repeat,
    linear-gradient(180deg, var(--system-blue-soft), transparent 70%) top left / 1px 92px no-repeat;
}

/* Big titles feel like an event identity; body copy deliberately stays plain and readable. */
#app .home-stage h1,
.event-page .event-overview-copy h1 {
  font-family: var(--system-display-font);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

#app .panel-title,
#app .queue-title,
#app .status-title,
.event-page .event-section-heading h2,
.event-page .event-join-strip h2,
.event-page .simple-planet-card h3 {
  font-family: var(--system-label-font);
  font-weight: 820;
  letter-spacing: 0.018em;
  text-wrap: balance;
  text-transform: uppercase;
}

#app .kicker,
.event-page .kicker {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--system-yellow);
  font-family: var(--system-data-font);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

#app .kicker::after,
.event-page .kicker::after {
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  content: "";
  background: linear-gradient(90deg, var(--system-yellow-line), transparent);
}

#app .tag,
#app .chip,
#app .status-chip {
  border-radius: 9px 3px 9px 3px;
  font-family: var(--system-data-font);
  font-weight: 720;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

/* Every glass surface shares the same quiet control-panel texture and corner language. */
#app .identity,
#app .nav-tabs,
#app .hud-tools,
#app .queue-panel,
#app .glass-panel,
#app .home-status-panel,
#app .metric,
#app .status-board,
#app .login-panel,
#app .profile-sheet,
#app .admin-section-panel,
#app .confirm-modal,
#app .video-review-modal,
#app .audit-panel-modal,
#app .gallery-modal,
.event-page .event-overview-panel {
  border-radius: var(--system-panel-radius);
  background:
    var(--system-panel-edge),
    var(--system-scanlines) padding-box,
    var(--dark-panel-fill) padding-box,
    var(--liquid-border) border-box;
}

#app .identity,
#app .nav-tabs,
#app .hud-tools {
  background:
    linear-gradient(90deg, rgba(255, 225, 90, 0.38), transparent 72%) top left / 78px 1px no-repeat,
    var(--system-scanlines) padding-box,
    var(--dark-shell-fill) padding-box,
    var(--liquid-border) border-box;
}

#app .queue-row,
#app .audit-preview-item,
#app .audit-modal-entry,
#app .priority-review-item,
#app .planet-capacity-row,
#app .roster-group,
#app .profile-sheet-head,
#app .profile-rank-hero,
#app .profile-fact,
#app .profile-history-item,
#app .profile-alert-note,
#app .profile-role-switcher,
#app .staff-card,
#app .feedback-notice,
#app .queue-feedback,
#app .rank-release-panel,
#app .detail-block,
.event-page .event-overview-countdown,
.event-page .simple-planet-card,
.event-page .event-join-strip,
.event-page .event-fact-row > span {
  border-radius: var(--system-card-radius);
  background:
    linear-gradient(90deg, rgba(189, 232, 255, 0.22), transparent 72%) top left / 64px 1px no-repeat,
    var(--system-scanlines),
    var(--dark-card-fill);
}

#app .home-stage,
.event-page .event-overview-panel {
  border-radius: 30px 8px 30px 8px;
}

#app .planet-card,
.event-page .simple-planet-card,
#app .event-trailer-frame {
  border-radius: 18px 5px 18px 5px;
}

/* Controls remain dark glass, with a sharper cockpit-console silhouette. */
#app .command,
#app .nav-tab,
#app .segmented button,
#app .metric-button,
#app .priority-review-toggle,
#app .priority-review-item,
#app .archive-event-toggle,
#app .status-chip.status-chip-action,
#app .view-as-trigger,
#app .view-as-menu button,
#app .profile-box-toggle,
#app .choice-card,
#app .inline-choice-row label,
.event-page .command,
#app input,
#app textarea,
#app select {
  border-radius: var(--system-control-radius);
}

#app .command,
#app .nav-tab,
#app .segmented button,
#app .metric-button,
#app .view-as-trigger,
#app .view-as-menu button,
.event-page .command {
  font-family: var(--system-label-font);
  font-weight: 780;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

#app .command em,
.event-page .command em {
  letter-spacing: 0.01em;
  text-transform: none;
}

.event-page .event-overview-copy h1 {
  color: var(--ink);
}

#app .command:hover,
#app .nav-tab:hover,
#app .segmented button:hover,
#app .metric-button:hover,
#app .priority-review-toggle:hover,
#app .priority-review-item:hover,
#app .archive-event-toggle:hover,
#app .status-chip.status-chip-action:hover,
#app .view-as-trigger:hover,
#app .view-as-menu button:hover,
#app .profile-box-toggle:hover,
#app .choice-card:hover,
#app .inline-choice-row label:hover,
.event-page .command:hover {
  background:
    linear-gradient(90deg, var(--system-yellow-soft), transparent 46%) padding-box,
    var(--liquid-fill-hover) padding-box,
    var(--liquid-border-hover) border-box;
}

#app .command.primary,
#app .command.success,
.event-page .command.primary {
  background:
    linear-gradient(90deg, rgba(255, 225, 90, 0.14), transparent 55%) padding-box,
    var(--liquid-fill) padding-box,
    linear-gradient(135deg, rgba(255, 238, 154, 0.74), rgba(255, 225, 90, 0.22), rgba(255, 255, 255, 0.13)) border-box;
}

#app .nav-tab.active,
#app .segmented button.active,
#app .view-as-menu button.active,
#app .choice-card:has(input:checked),
#app .inline-choice-row label:has(input:checked) {
  color: #fffbe2;
  box-shadow: inset 0 -2px 0 rgba(255, 225, 90, 0.74), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px rgba(0, 0, 0, 0.22);
}

#app .nav-tab.active {
  color: var(--system-yellow);
}

#app .command svg,
#app .nav-tab svg,
.event-page .command svg {
  color: var(--system-yellow);
}

#app input:focus,
#app textarea:focus,
#app select:focus {
  border-color: rgba(189, 232, 255, 0.62);
  box-shadow: inset 3px 0 0 rgba(255, 225, 90, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 3px rgba(189, 232, 255, 0.1), 0 12px 28px rgba(0, 0, 0, 0.2);
}

#app .field-label {
  color: rgba(235, 245, 251, 0.8);
  font-family: var(--system-label-font);
  font-weight: 760;
  letter-spacing: 0.025em;
}

/* Data readouts use a compact terminal face without making the whole site feel technical. */
#app .countdown-parts strong,
.event-page .countdown-parts strong,
#app .metric strong,
#app .planet-capacity-row strong,
.event-page .event-fact-row strong {
  color: #fff4ad;
  font-family: var(--system-data-font);
  font-variant-numeric: tabular-nums;
}

#app .countdown-parts > span,
.event-page .countdown-parts > span {
  border-radius: 11px 3px 11px 3px;
  border-color: rgba(189, 232, 255, 0.18);
  background: linear-gradient(145deg, rgba(189, 232, 255, 0.07), rgba(13, 16, 19, 0.28));
  box-shadow: inset 0 -2px 0 rgba(255, 225, 90, 0.16);
}

#app .side-summary-divider,
.event-page .event-overview-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--system-yellow-line), rgba(189, 232, 255, 0.25) 34%, transparent 88%);
}

@media (max-width: 680px) {
  :root {
    --system-panel-radius: 20px 6px 20px 6px;
  }

  #app .home-stage h1,
  .event-page .event-overview-copy h1 {
    letter-spacing: 0.022em;
  }

  #app .kicker::after,
  .event-page .kicker::after {
    width: 20px;
  }
}

/* Final cohesive pass: one compact, smoked-glass language across every page. */
:root {
  --panel-radius: 22px;
  --card-radius: 16px;
  --control-radius: 14px;
  --system-panel-radius: 22px;
  --system-card-radius: 16px;
  --system-control-radius: 14px;
  --system-display-font: Inter, "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --system-label-font: Inter, "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --system-panel-edge: none;
  --system-scanlines: none;
  --cohesive-panel:
    linear-gradient(145deg, rgba(34, 32, 32, 0.82), rgba(12, 12, 13, 0.74));
  --cohesive-card:
    linear-gradient(145deg, rgba(48, 46, 46, 0.72), rgba(20, 19, 20, 0.68));
  --cohesive-control:
    linear-gradient(145deg, rgba(50, 49, 50, 0.82), rgba(22, 21, 22, 0.78));
  --cohesive-border:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.09));
}

#app .identity,
#app .nav-tabs,
#app .hud-tools {
  border-radius: 18px;
  background:
    var(--cohesive-panel) padding-box,
    var(--cohesive-border) border-box;
}

#app .queue-panel,
#app .glass-panel,
#app .home-status-panel,
#app .metric,
#app .status-board,
#app .login-panel,
#app .profile-sheet,
#app .admin-section-panel,
#app .confirm-modal,
#app .video-review-modal,
#app .audit-panel-modal,
#app .gallery-modal,
.event-page .event-overview-panel {
  border: 1px solid transparent;
  border-radius: var(--panel-radius);
  background:
    var(--cohesive-panel) padding-box,
    var(--cohesive-border) border-box;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(28px) saturate(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(1.08);
}

#app .home-stage,
.event-page .event-overview-panel {
  border-radius: 24px;
}

#app .queue-row,
#app .audit-preview-item,
#app .audit-modal-entry,
#app .priority-review-item,
#app .planet-capacity-row,
#app .roster-group,
#app .profile-sheet-head,
#app .profile-rank-hero,
#app .profile-fact,
#app .profile-history-item,
#app .profile-alert-note,
#app .profile-role-switcher,
#app .staff-card,
#app .feedback-notice,
#app .queue-feedback,
#app .rank-release-panel,
#app .detail-block,
.event-page .event-overview-countdown,
.event-page .simple-planet-card,
.event-page .event-join-strip,
.event-page .event-fact-row > span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--card-radius);
  background: var(--cohesive-card);
  box-shadow: var(--shadow-card);
}

#app .command,
#app .nav-tab,
#app .segmented button,
#app .metric-button,
#app .priority-review-toggle,
#app .priority-review-item,
#app .archive-event-toggle,
#app .status-chip.status-chip-action,
#app .view-as-trigger,
#app .view-as-menu button,
#app .profile-box-toggle,
#app .choice-card,
#app .inline-choice-row label,
.event-page .command {
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  font-family: var(--system-label-font);
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  background:
    var(--cohesive-control) padding-box,
    var(--cohesive-border) border-box;
}

#app .command:hover,
#app .nav-tab:hover,
#app .segmented button:hover,
#app .metric-button:hover,
#app .priority-review-toggle:hover,
#app .priority-review-item:hover,
#app .archive-event-toggle:hover,
#app .status-chip.status-chip-action:hover,
#app .view-as-trigger:hover,
#app .view-as-menu button:hover,
#app .profile-box-toggle:hover,
#app .choice-card:hover,
#app .inline-choice-row label:hover,
.event-page .command:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(145deg, rgba(68, 66, 66, 0.86), rgba(29, 28, 29, 0.8)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.13)) border-box;
}

#app .command.primary,
#app .command.success,
.event-page .command.primary {
  color: #fff9dc;
  background:
    linear-gradient(145deg, rgba(88, 73, 37, 0.86), rgba(34, 30, 23, 0.82)) padding-box,
    linear-gradient(135deg, rgba(255, 231, 119, 0.72), rgba(255, 217, 26, 0.18), rgba(255, 255, 255, 0.11)) border-box;
}

#app .nav-tab.active,
#app .segmented button.active,
#app .view-as-menu button.active,
#app .choice-card:has(input:checked),
#app .inline-choice-row label:has(input:checked) {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(65, 62, 61, 0.88), rgba(26, 25, 26, 0.82)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 217, 26, 0.22), rgba(255, 255, 255, 0.1)) border-box;
  box-shadow:
    inset 0 -2px 0 rgba(255, 217, 26, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

#app .home-stage h1,
.event-page .event-overview-copy h1 {
  font-family: var(--system-display-font);
  font-weight: 850;
  letter-spacing: -0.055em;
  text-transform: none;
}

#app .panel-title,
#app .queue-title,
#app .status-title,
.event-page .event-section-heading h2,
.event-page .event-join-strip h2,
.event-page .simple-planet-card h3 {
  font-family: var(--system-label-font);
  font-weight: 820;
  letter-spacing: -0.025em;
  text-transform: none;
}

#app input,
#app textarea,
#app select {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--control-radius);
  color: var(--ink);
  background-color: rgba(31, 31, 34, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

#app select,
#app select:hover,
#app select:focus {
  color-scheme: dark;
  color: #f6f6f7;
  background-color: rgba(36, 37, 40, 0.9);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' fill='none' stroke='%23e9ecef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
  background-repeat: no-repeat, no-repeat;
  background-position: right 16px center, center;
  background-size: 18px 18px, 100% 100%;
}

#app select:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background-color: rgba(44, 45, 48, 0.94);
}

#app select option,
#app select optgroup {
  color: #f6f6f7;
  background: #25262a;
}

#app select option:checked {
  background: #3b3d42;
}

#app textarea {
  min-height: 112px;
}

#app .view,
#app .view-grid,
#app .admin-layout,
#app .side-summary {
  gap: var(--shell-gap);
}

@media (max-width: 680px) {
  :root {
    --panel-radius: 18px;
    --system-panel-radius: 18px;
  }

  #app .identity,
  #app .nav-tabs,
  #app .hud-tools {
    border-radius: 16px;
  }

  #app .home-stage,
  .event-page .event-overview-panel {
    border-radius: 20px;
  }
}

@media (max-width: 820px) {
  #app .hud,
  #app .hud.no-tools {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 8px;
    align-items: stretch;
  }

  #app .hud.no-tools {
    grid-template-columns: 1fr;
  }

  #app .identity {
    grid-column: 1;
    grid-row: 1;
    min-height: 62px;
    max-width: none;
  }

  #app .hud.no-tools .identity {
    grid-column: 1 / -1;
  }

  #app .hud-tools {
    grid-column: 2;
    grid-row: 1;
    min-height: 62px;
    padding: 5px;
  }

  #app .nav-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    min-height: 52px;
    overflow: visible;
    padding: 4px;
  }

  #app .nav-tab {
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
  }

  #app .nav-tab:last-child:nth-child(5) {
    grid-column: 2 / span 2;
  }

  #app .admin-main {
    order: 1;
  }

  #app .admin-rail {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #app .admin-rail .glass-panel,
  #app .admin-rail .priority-review-panel {
    grid-column: 1 / -1;
  }

  #app .admin-rail .metric {
    min-height: 98px;
    padding: 14px;
  }

  #app .home-stage {
    min-height: 0;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 18px;
    padding: 205px 18px 18px;
  }

  #app .home-stage::before {
    background:
      linear-gradient(180deg, rgba(5, 4, 4, 0.08) 0%, rgba(5, 4, 4, 0.42) 29%, rgba(5, 4, 4, 0.94) 57%, rgba(5, 4, 4, 0.98) 100%),
      url("./assets/discord-banner.webp") center top / auto 300px no-repeat,
      rgba(8, 7, 7, 0.98);
  }

  #app .home-stage h1 {
    max-width: 10ch;
    margin-top: 16px;
    font-size: clamp(3.2rem, 15vw, 4.6rem);
    line-height: 0.94;
  }

  #app .home-stage p {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  #app .home-action-primary,
  #app .home-action-secondary {
    min-height: 64px;
    padding: 12px 14px;
  }
}

@media (max-width: 520px) {
  #app .identity-status {
    display: none;
  }

  #app .brand-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  #app .home-stage {
    padding-top: 190px;
  }
}

/* Premium glass control system — the final source of truth for shape and colour. */
:root {
  --premium-panel-radius: 24px;
  --premium-card-radius: 18px;
  --premium-control-radius: 16px;
  --premium-pill-radius: 999px;
  --premium-panel-fill: linear-gradient(150deg, rgba(31, 34, 38, 0.9), rgba(13, 14, 16, 0.84));
  --premium-card-fill: linear-gradient(150deg, rgba(39, 43, 48, 0.86), rgba(19, 21, 24, 0.82));
  --premium-control-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.052) 46%, rgba(5, 7, 9, 0.08));
  --premium-panel-edge: linear-gradient(135deg, rgba(241, 247, 252, 0.38), rgba(163, 180, 193, 0.12) 55%, rgba(255, 255, 255, 0.07));
  --premium-card-edge: rgba(226, 237, 246, 0.16);
  --premium-neutral-edge: rgba(186, 204, 218, 0.58);
  --premium-blue-edge: rgba(91, 173, 255, 0.84);
  --premium-blue-tint: rgba(39, 117, 191, 0.1);
  --premium-blue-glow: rgba(70, 158, 244, 0.055);
  --premium-cyan-edge: rgba(84, 218, 224, 0.8);
  --premium-cyan-tint: rgba(32, 137, 147, 0.09);
  --premium-cyan-glow: rgba(70, 210, 218, 0.05);
  --premium-green-edge: rgba(91, 220, 145, 0.82);
  --premium-green-tint: rgba(37, 142, 86, 0.09);
  --premium-green-glow: rgba(61, 208, 126, 0.05);
  --premium-red-edge: rgba(255, 103, 116, 0.84);
  --premium-red-tint: rgba(176, 43, 58, 0.09);
  --premium-red-glow: rgba(245, 73, 91, 0.05);
  --premium-amber-edge: rgba(255, 183, 82, 0.82);
  --premium-amber-tint: rgba(174, 104, 26, 0.09);
  --premium-amber-glow: rgba(244, 157, 55, 0.05);
  --premium-violet-edge: rgba(166, 132, 255, 0.84);
  --premium-violet-tint: rgba(104, 70, 190, 0.1);
  --premium-violet-glow: rgba(141, 103, 244, 0.055);
  --system-yellow: #f6f8fa;
  --system-yellow-soft: rgba(223, 233, 241, 0.08);
  --system-yellow-line: rgba(207, 221, 232, 0.3);
}

/* All large and nested glass surfaces now share predictable geometry. */
#app .identity,
#app .nav-tabs,
#app .hud-tools,
#app .queue-panel,
#app .glass-panel,
#app .home-status-panel,
#app .metric,
#app .status-board,
#app .login-panel,
#app .profile-sheet,
#app .admin-section-panel,
#app .confirm-modal,
#app .video-review-modal,
#app .audit-panel-modal,
#app .gallery-modal,
#app .home-stage,
.event-page .event-overview-panel {
  border: 1px solid transparent;
  border-radius: var(--premium-panel-radius);
  background:
    var(--premium-panel-fill) padding-box,
    var(--premium-panel-edge) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 26px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(30px) saturate(1.1);
  -webkit-backdrop-filter: blur(30px) saturate(1.1);
}

#app .queue-row,
#app .audit-preview-item,
#app .audit-modal-entry,
#app .planet-capacity-row,
#app .roster-group,
#app .profile-sheet-head,
#app .profile-box,
#app .profile-rank-hero,
#app .profile-fact,
#app .profile-history-item,
#app .profile-alert-note,
#app .profile-role-switcher,
#app .staff-card,
#app .feedback-notice,
#app .queue-feedback,
#app .rank-release-panel,
#app .detail-block,
#app .planet-card,
#app .event-trailer-frame,
#app .accepted-banner,
#app .application-status-block,
#app .archive-event,
#app .login-sidecard,
#app .login-step,
#app .video-review-card,
#app .compact-empty,
#app .feedback-box,
#app .empty-state,
#app .admin-pagination,
#app .audit-panel-trigger,
.event-page .event-overview-countdown,
.event-page .simple-planet-card,
.event-page .event-join-strip,
.event-page .event-fact-row > span {
  border: 1px solid var(--premium-card-edge);
  border-radius: var(--premium-card-radius);
  background: var(--premium-card-fill);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.2);
}

#app .planet-card,
#app .event-trailer-frame,
#app .video-frame-shell,
#app .smp-gallery-item,
#app .gallery-modal img,
.event-page .simple-planet-card {
  overflow: hidden;
}

#app .metric-button,
#app .priority-review-toggle,
#app .priority-review-item,
#app .choice-card {
  border-radius: var(--premium-card-radius);
}

#app .home-action-primary,
#app .home-action-secondary,
#app .login-discord-button {
  border-radius: var(--premium-card-radius);
}

/* Soft pills replace the leftover clipped-corner tags. */
#app .tag,
#app .chip,
#app .status-chip,
#app .planet-pill,
#app .rank-chip {
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(215, 228, 238, 0.22);
  border-radius: var(--premium-pill-radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-family: var(--system-data-font);
  font-weight: 720;
  letter-spacing: 0.035em;
}

#app .profile-section-count {
  border-radius: var(--premium-pill-radius);
}

#app .tag.hot,
#app .status-chip.open,
#app .status-chip.accepted,
#app .status-chip.approved {
  color: #fff;
  border-color: rgba(91, 220, 145, 0.48);
  background: linear-gradient(145deg, rgba(91, 220, 145, 0.13), rgba(35, 91, 60, 0.08));
}

#app .tag.spots-left,
#app .status-chip.pending,
#app .status-chip.priority,
#app .status-chip.hold,
#app .status-chip.returned {
  color: #fff;
  border-color: rgba(255, 183, 82, 0.46);
  background: linear-gradient(145deg, rgba(255, 183, 82, 0.12), rgba(98, 63, 22, 0.07));
}

#app .status-chip.denied,
#app .status-chip.closed {
  color: #fff;
  border-color: rgba(255, 103, 116, 0.48);
  background: linear-gradient(145deg, rgba(255, 103, 116, 0.12), rgba(102, 30, 40, 0.07));
}

#app .status-chip.planet-rank.hoth {
  color: #fff;
  border-color: rgba(106, 182, 255, 0.5);
  background: linear-gradient(145deg, rgba(106, 182, 255, 0.14), rgba(41, 88, 135, 0.08));
}

#app .status-chip.planet-rank.mustafar {
  color: #fff;
  border-color: rgba(255, 103, 116, 0.5);
  background: linear-gradient(145deg, rgba(255, 103, 116, 0.14), rgba(112, 30, 39, 0.08));
}

#app .status-chip.planet-rank.tatooine {
  color: #fff;
  border-color: rgba(226, 184, 126, 0.52);
  background: linear-gradient(145deg, rgba(226, 184, 126, 0.14), rgba(102, 73, 38, 0.08));
}

/* Labels and readouts are white or ice-grey; colour lives in outlines, not text. */
#app .kicker,
.event-page .kicker {
  color: rgba(235, 242, 248, 0.78);
}

#app .kicker::after,
.event-page .kicker::after {
  background: linear-gradient(90deg, rgba(219, 231, 240, 0.42), transparent);
}

#app .countdown-parts strong,
.event-page .countdown-parts strong,
#app .metric strong,
#app .planet-capacity-row strong,
.event-page .event-fact-row strong {
  color: #fff;
}

#app .countdown-parts > span,
.event-page .countdown-parts > span {
  border: 1px solid rgba(185, 205, 219, 0.24);
  border-radius: var(--premium-control-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

#app .side-summary-divider,
.event-page .event-overview-divider {
  background: linear-gradient(90deg, rgba(211, 225, 235, 0.38), rgba(145, 174, 194, 0.18) 42%, transparent 88%);
}

/* One premium button construction, with semantic colour kept inside the glass. */
#app .command,
#app .nav-tab,
#app .segmented button,
#app .metric-button,
#app .priority-review-toggle,
#app .priority-review-item,
#app .archive-event-toggle,
#app .status-chip.status-chip-action,
#app .view-as-trigger,
#app .view-as-menu button,
#app .profile-box-toggle,
#app .profile-role-option,
#app .choice-card,
#app .inline-choice-row label,
#app .audit-panel-trigger,
#app .icon-command,
.event-page .command {
  --control-edge: var(--premium-neutral-edge);
  --control-tint: rgba(135, 153, 168, 0.08);
  --control-glow: rgba(148, 174, 194, 0.12);
  border: 1px solid transparent;
  border-radius: var(--premium-control-radius);
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 38%, var(--control-tint)) padding-box,
    linear-gradient(180deg, rgba(52, 56, 62, 0.97), rgba(27, 30, 34, 0.97)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(194, 210, 222, 0.2) 54%, rgba(255, 255, 255, 0.09)) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 10px 24px rgba(0, 0, 0, 0.22);
  filter: none;
  transition:
    transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
    background 300ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

#app .command svg,
#app .nav-tab svg,
#app .segmented button svg,
#app .metric-button svg,
#app .view-as-trigger svg,
#app .view-as-menu button svg,
#app .profile-box-toggle svg,
#app .profile-role-option svg,
#app .choice-card svg,
#app .inline-choice-row label svg,
#app .audit-panel-trigger svg,
#app .icon-command svg,
.event-page .command svg {
  color: #fff !important;
  stroke: currentColor;
}

#app .command:hover,
#app .nav-tab:hover,
#app .segmented button:hover,
#app .metric-button:hover,
#app .priority-review-toggle:hover,
#app .priority-review-item:hover,
#app .archive-event-toggle:hover,
#app .status-chip.status-chip-action:hover,
#app .view-as-trigger:hover,
#app .view-as-menu button:hover,
#app .profile-box-toggle:hover,
#app .profile-role-option:hover,
#app .choice-card:hover,
#app .inline-choice-row label:hover,
#app .audit-panel-trigger:hover,
#app .icon-command:hover,
.event-page .command:hover {
  color: #fff !important;
  transform: translateY(-2px);
  filter: brightness(1.045);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.125), transparent 38%, var(--control-tint)) padding-box,
    linear-gradient(180deg, rgba(62, 67, 74, 0.98), rgba(31, 35, 40, 0.98)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(211, 224, 234, 0.28) 52%, rgba(255, 255, 255, 0.14)) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 14px 34px rgba(0, 0, 0, 0.28);
}

#app .command:active,
#app .nav-tab:active,
#app .segmented button:active,
#app .metric-button:active,
#app .priority-review-toggle:active,
#app .archive-event-toggle:active,
#app .view-as-trigger:active,
#app .view-as-menu button:active,
#app .profile-box-toggle:active,
#app .profile-role-option:active,
#app .choice-card:active,
#app .inline-choice-row label:active,
#app .audit-panel-trigger:active,
#app .icon-command:active,
.event-page .command:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 90ms;
}

#app .command:focus-visible,
#app .nav-tab:focus-visible,
#app .segmented button:focus-visible,
#app .metric-button:focus-visible,
#app .priority-review-toggle:focus-visible,
#app .archive-event-toggle:focus-visible,
#app .view-as-trigger:focus-visible,
#app .view-as-menu button:focus-visible,
#app .profile-box-toggle:focus-visible,
#app .profile-role-option:focus-visible,
#app .choice-card:focus-within,
#app .inline-choice-row label:focus-within,
#app .audit-panel-trigger:focus-visible,
#app .icon-command:focus-visible,
.event-page .command:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 3px rgba(176, 210, 235, 0.2),
    0 14px 30px rgba(0, 0, 0, 0.25);
}

#app .command:disabled,
#app .nav-tab:disabled,
#app .segmented button:disabled,
#app .icon-command:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  filter: saturate(0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Semantic fills. All text, icons and control edges deliberately remain white/ice-grey. */
#app .command.primary,
#app [data-action="save-staff-note"],
.event-page .command.primary {
  --control-edge: var(--premium-blue-edge);
  --control-tint: var(--premium-blue-tint);
  --control-glow: var(--premium-blue-glow);
  color: #fff;
}

#app .home-action-primary[data-tab="application"],
#app .nav-tab[data-tab="application"],
#app form[data-form="application"] .command.primary,
.event-page .event-overview-actions .command.primary {
  --control-edge: var(--premium-green-edge);
  --control-tint: var(--premium-green-tint);
  --control-glow: var(--premium-green-glow);
  color: #fff;
}

#app .segmented button[data-filter="accepted"],
#app .metric-button[data-section="accepted"] {
  --control-edge: var(--premium-green-edge);
  --control-tint: var(--premium-green-tint);
  --control-glow: var(--premium-green-glow);
}

#app .home-action-secondary,
#app .nav-tab[data-tab="staff"],
#app [data-action="refresh-staff"] {
  --control-edge: var(--premium-cyan-edge);
  --control-tint: var(--premium-cyan-tint);
  --control-glow: var(--premium-cyan-glow);
}

#app .command.success,
#app .icon-command.success,
#app [data-status="accepted"],
#app [data-status="approved"] {
  --control-edge: var(--premium-green-edge);
  --control-tint: var(--premium-green-tint);
  --control-glow: var(--premium-green-glow);
  color: #fff;
}

#app .status-chip.status-chip-action.open,
#app .status-chip.status-chip-action.accepted,
#app .status-chip.status-chip-action.approved {
  --control-edge: var(--premium-green-edge);
  --control-tint: var(--premium-green-tint);
  --control-glow: var(--premium-green-glow);
}

#app .command.danger,
#app .icon-command.danger,
#app .profile-logout-button,
#app [data-action="confirm-delete-application"],
#app [data-action="withdraw-application"],
#app [data-action="withdraw-appeal"],
#app [data-status="denied"] {
  --control-edge: var(--premium-red-edge);
  --control-tint: var(--premium-red-tint);
  --control-glow: var(--premium-red-glow);
  color: #fff;
}

#app .icon-command.hold,
#app .command.rank-release-command,
#app .command[data-action="release-accepted-ranks"],
#app .command[data-action="advance-rank-release-confirmation"],
#app .command[data-action="confirm-rank-release"],
#app [data-action="return-feedback"],
#app [data-action="reset-appeal-form"],
#app [data-status="hold"] {
  --control-edge: var(--premium-amber-edge);
  --control-tint: var(--premium-amber-tint);
  --control-glow: var(--premium-amber-glow);
  color: #fff;
}

#app .segmented button[data-filter="pending"],
#app .metric-button[data-section="pending"],
#app .priority-review-toggle,
#app .priority-review-item {
  --control-edge: var(--premium-amber-edge);
  --control-tint: var(--premium-amber-tint);
  --control-glow: var(--premium-amber-glow);
}

#app .status-chip.status-chip-action.pending,
#app .status-chip.status-chip-action.priority,
#app .status-chip.status-chip-action.hold,
#app .status-chip.status-chip-action.returned {
  --control-edge: var(--premium-amber-edge);
  --control-tint: var(--premium-amber-tint);
  --control-glow: var(--premium-amber-glow);
}

#app .status-chip.status-chip-action.denied,
#app .status-chip.status-chip-action.closed {
  --control-edge: var(--premium-red-edge);
  --control-tint: var(--premium-red-tint);
  --control-glow: var(--premium-red-glow);
}

#app .command.login-discord-button,
#app .nav-tab[data-tab="appeal"],
#app .nav-tab[data-tab="admin"],
#app .command[href*="discord.com"],
#app .command[href*="discord.gg"],
#app .metric-button[data-section="appeals"] {
  --control-edge: var(--premium-violet-edge);
  --control-tint: var(--premium-violet-tint);
  --control-glow: var(--premium-violet-glow);
  color: #fff;
}

#app .youtube-command,
.event-page .youtube-command {
  --control-edge: var(--premium-red-edge);
  --control-tint: var(--premium-red-tint);
  --control-glow: var(--premium-red-glow);
  color: #fff;
}

#app .nav-tab[data-tab="home"],
#app .view-as-trigger,
#app .simple-event-back {
  --control-edge: var(--premium-neutral-edge);
}

#app .application-mode-panel .choice-card:has(input:checked) {
  --control-edge: var(--premium-green-edge);
  --control-tint: var(--premium-green-tint);
  --control-glow: var(--premium-green-glow);
}

#app .inline-choice-row label:has(input[value="Yes"]) {
  --control-edge: var(--premium-green-edge);
  --control-tint: var(--premium-green-tint);
  --control-glow: var(--premium-green-glow);
}

#app .inline-choice-row label:has(input[value="No"]) {
  --control-edge: var(--premium-red-edge);
  --control-tint: var(--premium-red-tint);
  --control-glow: var(--premium-red-glow);
}

#app .inline-choice-row label:has(input[value="Sometimes"]) {
  --control-edge: var(--premium-amber-edge);
  --control-tint: var(--premium-amber-tint);
  --control-glow: var(--premium-amber-glow);
}

#app .planet-card.tatooine {
  --planet-edge: rgba(226, 184, 126, 0.72);
  border-color: rgba(226, 184, 126, 0.42);
}

#app .planet-card.hoth {
  --planet-edge: rgba(106, 182, 255, 0.74);
  border-color: rgba(106, 182, 255, 0.44);
}

#app .planet-card.mustafar {
  --planet-edge: rgba(255, 103, 116, 0.74);
  border-color: rgba(255, 103, 116, 0.44);
}

#app .planet-card:has(input:checked) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 2px var(--planet-edge, rgba(220, 233, 243, 0.7)),
    0 16px 34px rgba(0, 0, 0, 0.24);
}

#app .nav-tab.active,
#app .segmented button.active,
#app .view-as-menu button.active,
#app .profile-role-option.active,
#app .metric-button.metric-active,
#app .choice-card:has(input:checked),
#app .inline-choice-row label:has(input:checked) {
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%, var(--control-tint)) padding-box,
    linear-gradient(180deg, rgba(60, 65, 71, 0.98), rgba(31, 34, 39, 0.98)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(214, 226, 235, 0.32) 50%, rgba(255, 255, 255, 0.13)) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 28px rgba(0, 0, 0, 0.24);
}

/* Form controls use the same soft geometry and cool glass on every page. */
#app input,
#app textarea,
#app select {
  border: 1px solid rgba(190, 208, 222, 0.24);
  border-radius: var(--premium-control-radius);
  color: #fff;
  background-color: rgba(27, 30, 34, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.14);
  transition:
    border-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

#app input,
#app textarea {
  background: rgba(30, 33, 37, 0.94) !important;
}

#app select,
#app select:hover,
#app select:focus {
  background-color: rgba(30, 33, 37, 0.94) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 18px 18px !important;
}

#app input:hover,
#app textarea:hover,
#app select:hover {
  border-color: rgba(206, 223, 236, 0.38);
  background-color: rgba(34, 38, 43, 0.96) !important;
}

#app input:focus,
#app textarea:focus,
#app select:focus {
  outline: none;
  border-color: rgba(99, 180, 255, 0.7);
  background-color: rgba(32, 36, 41, 0.97) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 4px rgba(73, 158, 238, 0.13),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

/* Card-sized and hero actions retain the same silhouette at the correct scale. */
#app .metric-button,
#app .priority-review-toggle,
#app .priority-review-item,
#app .choice-card {
  border-radius: var(--premium-card-radius);
}

#app .home-action-primary,
#app .home-action-secondary,
#app .login-discord-button {
  border-radius: var(--premium-card-radius);
}

@media (max-width: 680px) {
  :root {
    --premium-panel-radius: 21px;
    --premium-card-radius: 17px;
    --premium-control-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app .command,
  #app .nav-tab,
  #app .segmented button,
  #app .metric-button,
  #app .priority-review-toggle,
  #app .priority-review-item,
  #app .archive-event-toggle,
  #app .status-chip.status-chip-action,
  #app .view-as-trigger,
  #app .view-as-menu button,
  #app .profile-box-toggle,
  #app .profile-role-option,
  #app .choice-card,
  #app .inline-choice-row label,
  #app .icon-command,
  .event-page .command {
    transition-duration: 1ms;
  }
}

/* Let each real planet build show softly through its compact roster glass. */
#app .planet-capacity-row {
  --planet-capacity-art: none;
  --planet-capacity-position: center;
  --planet-capacity-edge: rgba(205, 220, 232, 0.2);
  overflow: hidden;
  border-color: var(--planet-capacity-edge);
  background:
    linear-gradient(90deg, rgba(24, 27, 31, 0.7), rgba(18, 20, 23, 0.58) 48%, rgba(15, 17, 20, 0.78)),
    var(--planet-capacity-art) var(--planet-capacity-position) / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 44px rgba(0, 0, 0, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.18);
}

#app .planet-capacity-row.tatooine {
  --planet-capacity-art: url("./assets/planet-tatooine-card.webp?v=102");
  --planet-capacity-position: center 54%;
  --planet-capacity-edge: rgba(226, 184, 126, 0.3);
}

#app .planet-capacity-row.hoth {
  --planet-capacity-art: url("./assets/planet-hoth-card.webp?v=102");
  --planet-capacity-position: center 55%;
  --planet-capacity-edge: rgba(106, 182, 255, 0.3);
}

#app .planet-capacity-row.mustafar {
  --planet-capacity-art: url("./assets/planet-mustafar-card.webp?v=102");
  --planet-capacity-position: center 46%;
  --planet-capacity-edge: rgba(255, 103, 116, 0.3);
}

/* Compact profile menu: one glass surface, simple rows, no nested dashboard cards. */
#app .profile-sheet {
  width: min(400px, calc(100vw - (var(--shell-gutter) * 2)));
  max-height: calc(100dvh - 116px);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: auto;
}

#app .profile-sheet-head {
  min-height: 82px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid rgba(218, 231, 241, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#app .profile-lockup {
  min-width: 0;
  flex: 1 1 auto;
  gap: 12px;
}

#app .profile-meta {
  min-width: 0;
  gap: 3px;
}

#app .profile-meta strong {
  font-size: 1.08rem;
  line-height: 1.2;
}

#app .profile-meta span {
  color: rgba(229, 237, 243, 0.62);
  font-size: 0.82rem;
}

#app .profile-head-actions {
  width: auto;
  display: flex;
  flex: 0 0 auto;
  grid-column: auto;
  grid-template-columns: none;
  margin-left: auto;
}

#app .profile-close-button {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
}

#app .profile-menu-body {
  display: grid;
  padding: 0 18px;
}

#app .profile-rank-line {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#app .profile-rank-line > span {
  color: rgba(229, 237, 243, 0.62);
  font-family: var(--system-data-font);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#app .profile-rank-line > strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
}

#app .profile-menu-notice {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(207, 220, 230, 0.16);
  border-radius: 15px;
  color: rgba(244, 247, 250, 0.8);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.45;
}

#app .profile-menu-section {
  padding: 16px 0;
  border-top: 1px solid rgba(218, 231, 241, 0.12);
}

#app .profile-menu-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

#app .profile-menu-section-head strong {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.25;
}

#app .profile-menu-section-head span {
  color: rgba(229, 237, 243, 0.6);
  font-size: 0.81rem;
  line-height: 1.4;
}

#app .profile-legacy-compact-list {
  display: grid;
}

#app .profile-legacy-compact-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(218, 231, 241, 0.09);
  background: none;
}

#app .profile-legacy-compact-row:first-child {
  border-top: 0;
}

#app .profile-legacy-compact-row strong {
  color: #fff;
  font-size: 0.9rem;
}

#app .profile-legacy-compact-row span {
  flex: 0 0 auto;
  color: rgba(229, 237, 243, 0.56);
  font-size: 0.76rem;
}

#app .profile-sheet-actions {
  display: flex;
  margin: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(218, 231, 241, 0.12);
}

#app .profile-logout-button {
  width: 100%;
  max-width: none;
  min-height: 46px;
  height: 46px;
  justify-content: center;
  border-radius: 15px;
}

@media (max-width: 820px) {
  #app .profile-sheet {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 24px);
  }

  #app .profile-sheet-head {
    display: flex;
    flex-wrap: nowrap;
  }

  #app .profile-lockup,
  #app .profile-head-actions {
    grid-column: auto;
  }
}

/* Restore the original event mark without bringing back a separate visual style. */
.event-page .event-overview-copy .event-overview-title {
  width: min(100%, 520px);
  max-width: none;
  margin: 0;
  line-height: 1;
}

.event-page .event-overview-logo {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.32));
}

@media (max-width: 680px) {
  .event-page .event-overview-copy .event-overview-title {
    width: min(100%, 430px);
  }
}

/* Decorative Aurebesh headings. Both versions occupy the same grid cell, so
   the quiet retro-display reveal never changes a panel's size. */
@font-face {
  font-family: "Kogel Aurebesh";
  src: url("./assets/fonts/aurebesh-condensed-bold.otf?v=1") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

#app .aurebesh-heading,
.event-page .aurebesh-heading {
  position: relative;
  width: fit-content;
  max-width: 100%;
  cursor: default;
  outline: none;
}

#app .split-flap-track,
.event-page .split-flap-track {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1em 0.2em;
  line-height: 1;
}

#app .split-flap-word,
.event-page .split-flap-word {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0;
  white-space: nowrap;
}

#app .split-flap-cell,
.event-page .split-flap-cell {
  position: relative;
  display: inline-grid;
  width: auto;
  min-width: 0.27em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
  border: 0;
  background: none;
  box-shadow: none;
}

#app .split-flap-cell::after,
.event-page .split-flap-cell::after {
  display: none;
}

#app .split-flap-face,
.event-page .split-flap-face {
  grid-area: 1 / 1;
  height: 1em;
  line-height: 1;
  place-self: center;
  border: 0;
  background: none;
  box-shadow: none;
  transform-origin: center;
  transition:
    transform 260ms cubic-bezier(0.2, 0.72, 0.18, 1),
    clip-path 240ms steps(2, end),
    opacity 90ms linear,
    filter 220ms ease,
    text-shadow 220ms ease;
  transition-delay: var(--flap-delay);
  will-change: transform, opacity;
}

#app .split-flap-face-english,
.event-page .split-flap-face-english {
  position: relative;
  width: max-content;
  color: rgba(247, 250, 252, 0.98);
  font-family: var(--system-label-font);
  font-size: 0.76em;
  font-weight: 820;
  letter-spacing: 0;
  opacity: 0;
  clip-path: inset(52% 0 0);
  transform: translateY(0.16em);
  filter: brightness(0.88);
  text-shadow:
    0 0 1px rgba(238, 252, 255, 0.82),
    0 0 7px rgba(96, 211, 248, 0.2);
}

#app .split-flap-face-aurebesh,
.event-page .split-flap-face-aurebesh {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  place-items: center;
  color: rgba(235, 248, 252, 0.96);
  font-family: "Kogel Aurebesh", sans-serif;
  font-size: 0.76em;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 1;
  clip-path: inset(0);
  transform: translateY(0);
  filter: brightness(1);
  text-shadow:
    0 0 1px rgba(241, 253, 255, 0.92),
    0 0 7px rgba(91, 215, 255, 0.32),
    0 0 15px rgba(91, 215, 255, 0.1);
}

/* The trailer heading shares its row with the YouTube control. */
#app .home-trailer-panel .split-flap-track {
  flex-wrap: nowrap;
  gap: 0.08em 0.2em;
}

#app .home-trailer-panel .split-flap-face-aurebesh,
#app .home-trailer-panel .split-flap-face-english {
  font-size: 0.7em;
}

:is(#app, .event-page) .aurebesh-heading:is(.is-decoded, :focus-visible) .split-flap-face-aurebesh {
  opacity: 0;
  clip-path: inset(0 0 52%);
  transform: translateY(-0.16em);
  filter: brightness(1.16);
}

:is(#app, .event-page) .aurebesh-heading:is(.is-decoded, :focus-visible) .split-flap-face-english {
  opacity: 1;
  clip-path: inset(0);
  transform: translateY(0);
  filter: brightness(1);
}

:is(#app, .event-page) .aurebesh-heading:is(.is-decoded, :focus-visible) .split-flap-track {
  animation: aurebesh-signal-refresh 300ms steps(1, end) both;
}

@media (hover: hover) and (pointer: fine) {
  :is(#app, .event-page) .aurebesh-heading:hover .split-flap-face-aurebesh {
    opacity: 0;
    clip-path: inset(0 0 52%);
    transform: translateY(-0.16em);
    filter: brightness(1.16);
  }

  :is(#app, .event-page) .aurebesh-heading:hover .split-flap-face-english {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0);
    filter: brightness(1);
  }

  :is(#app, .event-page) .aurebesh-heading:hover .split-flap-track {
    animation: aurebesh-signal-refresh 300ms steps(1, end) both;
  }
}

@keyframes aurebesh-signal-refresh {
  0%, 34%, 54%, 100% {
    transform: translateX(0);
    filter: brightness(1);
  }

  38% {
    transform: translateX(0.018em);
    filter: brightness(1.13);
  }

  43% {
    transform: translateX(-0.012em);
    filter: brightness(0.9);
  }

  48% {
    transform: translateX(0.006em);
    filter: brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#app, .event-page) .split-flap-face,
  :is(#app, .event-page) .split-flap-track {
    animation: none !important;
    transition: none !important;
  }
}

/* Blur the planet artwork behind the compact balance rows, matching the
   softer accepted-roster cards while keeping the labels crisp. */
#app .planet-capacity-row {
  position: relative;
  isolation: isolate;
  background: rgba(17, 20, 23, 0.76);
}

#app .planet-capacity-row::before {
  position: absolute;
  z-index: 0;
  inset: -12px;
  content: "";
  opacity: 0.34;
  background: var(--planet-capacity-art) var(--planet-capacity-position) / cover no-repeat;
  filter: blur(11px) saturate(0.86);
  transform: scale(1.12);
}

#app .planet-capacity-row::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(20, 23, 27, 0.66), rgba(16, 18, 21, 0.42) 50%, rgba(13, 15, 18, 0.68));
}

#app .planet-capacity-row > * {
  position: relative;
  z-index: 1;
}

/* Planet names and empty states are ordinary interface copy, not readouts. */
#app .planet-capacity-copy strong,
#app .roster-group header strong,
#app .roster-chip.muted {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

/* The profile always reports verified server data; there is no cosmetic badge picker. */
#app .profile-rank-line + .profile-rank-line {
  min-height: 54px;
  border-top: 1px solid rgba(218, 231, 241, 0.1);
}

#app .profile-priority-line > strong.has-priority {
  color: rgba(202, 245, 222, 0.96);
  text-shadow: 0 0 12px rgba(90, 207, 145, 0.14);
}

#app .profile-priority-line > strong.no-priority {
  color: rgba(229, 237, 243, 0.64);
}

/* Premium navigation rail: one smoked-glass surface with quiet text controls. */
#app .nav-tabs {
  --nav-ice: rgba(220, 239, 249, 0.94);
  --nav-glow: rgba(127, 196, 228, 0.2);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  min-width: 0;
  min-height: 62px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(38, 41, 45, 0.8), rgba(15, 17, 20, 0.84)) padding-box,
    linear-gradient(135deg, rgba(245, 250, 253, 0.34), rgba(168, 188, 202, 0.1) 58%, rgba(255, 255, 255, 0.05)) border-box !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 18px 46px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(30px) saturate(1.08);
  -webkit-backdrop-filter: blur(30px) saturate(1.08);
}

#app .nav-tabs::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(255, 255, 255, 0.12), transparent 62%),
    linear-gradient(90deg, transparent, rgba(181, 220, 239, 0.035) 50%, transparent);
}

#app .nav-tab {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 clamp(12px, 1.2vw, 20px);
  overflow: hidden;
  border: 0 !important;
  border-radius: 14px;
  color: rgba(235, 241, 246, 0.68) !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 680;
  letter-spacing: 0.005em;
  text-transform: none;
  transform: none;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 140ms ease;
}

#app .nav-tab::after {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--nav-ice), transparent);
  box-shadow: 0 0 10px var(--nav-glow);
  transform: translate(-50%, 3px) scaleX(0.45);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

#app .nav-tab:hover {
  color: rgba(255, 255, 255, 0.94) !important;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(154, 204, 228, 0.1), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  filter: none !important;
  transform: none;
}

#app .nav-tab.active {
  color: #fff !important;
  background:
    radial-gradient(ellipse at 50% 112%, rgba(135, 203, 234, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(124, 192, 224, 0.08) !important;
}

#app .nav-tab.active::after {
  opacity: 1;
  transform: translate(-50%, 0) scaleX(1);
}

#app .nav-tab:active {
  transform: translateY(1px) !important;
}

#app .nav-tab:focus-visible {
  outline: none;
  color: #fff !important;
  background: rgba(185, 221, 239, 0.075) !important;
  box-shadow:
    inset 0 0 0 1px rgba(211, 236, 248, 0.42),
    0 0 0 3px rgba(131, 196, 226, 0.13) !important;
}

#app .nav-tabs:has(.nav-tab:focus-visible) {
  border-color: rgba(205, 232, 246, 0.28);
}

#app .nav-tab:disabled {
  color: rgba(235, 241, 246, 0.32) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 820px) {
  #app .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    min-height: 54px;
    padding: 5px;
    border-radius: 17px;
  }

  #app .nav-tab {
    flex: 1 1 58px;
    min-width: 0;
    min-height: 42px;
    padding: 0 7px;
    border-radius: 12px;
    font-size: 0.8rem;
  }

  #app .nav-tab:last-child:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 340px) {
  #app .nav-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #app .nav-tab:last-child:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app .nav-tab,
  #app .nav-tab::after {
    transition-duration: 1ms;
  }
}

/* Final fit and interaction pass. */
#app .home-roster-grid {
  margin-top: 0;
}

#app .appeal-view-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

#app .auth-notice,
#app .app-notice {
  border: 1px solid rgba(226, 237, 246, 0.16);
  border-radius: var(--premium-card-radius);
  color: rgba(241, 246, 249, 0.76);
  background: linear-gradient(150deg, rgba(39, 43, 48, 0.78), rgba(18, 20, 23, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

#app .identity:focus-visible,
#app .priority-review-item:focus-visible,
#app .status-chip.status-chip-action:focus-visible,
#app .queue-row:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 3px rgba(176, 210, 235, 0.18),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

#app .profile-close-button {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

:is(#app, .event-page) .split-flap-face {
  will-change: auto;
}

:is(#app, .event-page) .aurebesh-heading:is(:hover, .is-decoded) .split-flap-face {
  will-change: transform, opacity;
}

@media (max-width: 1420px) {
  #app .admin-main {
    order: 1;
  }

  #app .admin-rail {
    order: 2;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  #app .hud,
  #app .hud.has-tools {
    grid-template-columns: minmax(220px, 286px) minmax(0, 1fr) minmax(132px, 160px);
    gap: 10px;
    align-items: stretch;
  }

  #app .hud.no-tools {
    grid-template-columns: minmax(220px, 286px) minmax(0, 1fr);
  }

  #app .identity,
  #app .nav-tabs,
  #app .hud-tools {
    grid-row: 1;
    min-height: 62px;
  }

  #app .identity {
    grid-column: 1;
  }

  #app .nav-tabs {
    grid-column: 2;
  }

  #app .hud-tools {
    grid-column: 3;
    padding: 5px;
  }

  #app .hud.no-tools .nav-tabs {
    grid-column: 2;
  }
}

@media (max-width: 1040px) and (min-width: 821px) {
  #app .smooth-form-panel .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  #app .home-stage {
    padding-top: clamp(230px, 37vw, 280px);
  }

  #app .home-stage::before {
    background:
      linear-gradient(180deg, rgba(5, 4, 4, 0.08) 0%, rgba(5, 4, 4, 0.42) 32%, rgba(5, 4, 4, 0.94) 64%, rgba(5, 4, 4, 0.98) 100%),
      url("./assets/discord-banner.webp") center top / 100% auto no-repeat,
      rgba(8, 7, 7, 0.98);
  }
}

@media (max-width: 820px) {
  .event-page-body {
    background-attachment: scroll;
  }

  #app .home-stage,
  #app .glass-panel,
  #app .queue-panel,
  #app .metric,
  .event-page .event-overview-panel {
    will-change: auto;
  }

  #app .nav-tab {
    min-height: 44px;
  }
}

@media (max-width: 340px) {
  #app .nav-tabs {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }
}

@media (hover: none) {
  #app .command:hover,
  #app .segmented button:hover,
  #app .metric-button:hover,
  #app .priority-review-toggle:hover,
  #app .priority-review-item:hover,
  #app .archive-event-toggle:hover,
  #app .status-chip.status-chip-action:hover,
  #app .view-as-trigger:hover,
  #app .view-as-menu button:hover,
  #app .profile-box-toggle:hover,
  #app .profile-role-option:hover,
  #app .choice-card:hover,
  #app .inline-choice-row label:hover,
  #app .audit-panel-trigger:hover,
  #app .icon-command:hover,
  .event-page .command:hover {
    transform: none !important;
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app .command,
  #app .segmented button,
  #app .metric-button,
  #app .priority-review-toggle,
  #app .archive-event-toggle,
  #app .view-as-trigger,
  #app .view-as-menu button,
  #app .choice-card,
  #app .inline-choice-row label,
  #app .icon-command,
  .event-page .command {
    transform: none !important;
  }
}

#app .planet-capacity-copy strong,
#app .roster-group header strong {
  font-weight: 760;
}

#app .roster-chip.muted {
  min-height: 28px;
  padding: 5px 10px;
  color: rgba(238, 243, 247, 0.66);
  font-size: 0.78rem;
  font-weight: 650;
}

/* Typography consolidation: one readable Latin interface family everywhere,
   with Aurebesh reserved for the intentional decoded headings. */
:root {
  --text-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --title-font: var(--text-font);
  --system-display-font: var(--title-font);
  --system-label-font: var(--text-font);
  --system-data-font: var(--text-font);
  font-family: var(--text-font);
}

body,
#app,
.event-page,
#app button,
#app input,
#app textarea,
#app select,
.event-page button,
.event-page input,
.event-page textarea,
.event-page select {
  font-family: var(--text-font);
}

#app :is(h1, h2, h3, .panel-title, .queue-title, .status-title),
.event-page :is(h1, h2, h3, .panel-title, .queue-title, .status-title) {
  font-family: var(--title-font);
  font-weight: 800;
  letter-spacing: -0.028em;
}

#app .home-stage h1 {
  font-family: var(--title-font);
  font-weight: 850;
  letter-spacing: -0.055em;
}

:is(#app, .event-page) :is(
  .kicker,
  .tag,
  .chip,
  .status-chip,
  .command,
  .nav-tab,
  .field-label,
  .metric,
  .countdown-parts,
  .planet-capacity-copy,
  .roster-group,
  .profile-rank-line,
  .event-fact-row
) {
  font-family: var(--text-font);
}

#app .split-flap-face-english,
.event-page .split-flap-face-english {
  font-family: var(--title-font);
  font-weight: 800;
  letter-spacing: -0.02em;
}
