: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.13);
  --glass-strong: rgba(248, 250, 255, 0.2);
  --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: 28px;
  --glass-panel-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.068)),
    rgba(255, 255, 255, 0.068);
  --glass-card-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  --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: 320ms 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.png") 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(--glass-panel-bg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(var(--surface-blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--surface-blur)) saturate(1.25);
  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;
}

.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:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(23, 18, 15, 0.22)),
    rgba(30, 22, 18, 0.18);
  backdrop-filter: blur(32px) saturate(1.18);
  -webkit-backdrop-filter: blur(32px) 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;
}

.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;
}

.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;
  width: 48px;
  height: 48px;
  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-smooth), background var(--ease-smooth), box-shadow var(--ease-smooth), filter var(--ease-smooth);
}

.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(10px);
  -webkit-backdrop-filter: blur(10px);
}

.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;
}

.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:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

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

.profile-title-row {
  display: flex;
  align-items: flex-start;
  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.06rem;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

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

.profile-header-rank {
  flex: 0 0 auto;
  max-width: 100%;
}

.profile-box {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 40px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  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.045)),
    rgba(255, 255, 255, 0.058);
}

.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: 10px;
  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: 14px;
}

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

.profile-rank-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 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.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  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: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) 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.view-enter {
  animation: pageIn 420ms var(--ease-smooth) 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;
}

.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.12),
    0 14px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  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/tatooine-minimal-hero.png") 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.13), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)) border-box;
  transition: transform 180ms ease, filter 180ms ease;
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
}

.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.13), rgba(255, 236, 214, 0.045)) padding-box,
    linear-gradient(135deg, rgba(255, 247, 233, 0.38), rgba(223, 205, 183, 0.12)) border-box;
}

.home-status-panel:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 241, 236, 0.045)) padding-box,
    linear-gradient(135deg, rgba(255, 247, 243, 0.38), rgba(219, 202, 196, 0.12)) 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: rgba(255, 255, 255, 0.055);
  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: rgba(255, 255, 255, 0.075);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.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:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) 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.png");
  --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.png");
  --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.png");
  --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: rgba(0, 0, 0, 0.18);
}

.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(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.08);
}

.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.png") 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/tatooine-minimal-hero.png") 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.png");
  --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.png");
  --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.png");
  --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 220ms 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 260ms var(--ease-smooth);
}

.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(14px) scale(0.985); filter: blur(6px); }
  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(-8px) scale(0.98);
    filter: blur(6px);
  }

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

@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-timeline-panel,
.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.png");
}

.roster-group.hoth .roster-group-art {
  background-image: url("./assets/planet-hoth-card.png");
}

.roster-group.mustafar .roster-group-art {
  background-image: url("./assets/planet-mustafar-card.png");
}

.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-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(--glass-card-bg);
  box-shadow:
    0 22px 62px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(26px) saturate(1.16);
  -webkit-backdrop-filter: blur(26px) saturate(1.16);
  transform: translateZ(0);
}

.queue-panel,
.glass-panel,
.metric,
.home-status-panel,
.admin-section-panel {
  background: var(--glass-panel-bg);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
}

.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:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.034)),
    rgba(255, 255, 255, 0.038);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  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:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    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.08);
  backdrop-filter: blur(24px) saturate(1.14);
  -webkit-backdrop-filter: blur(24px) saturate(1.14);
}

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(--glass-panel-bg);
  box-shadow:
    0 32px 92px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(30px) saturate(1.18);
  -webkit-backdrop-filter: blur(30px) saturate(1.18);
  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-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:
    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);
}

.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;
  }
}
