:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #20231e;
  --muted: #667064;
  --line: #d7d0c2;
  --grass: #4f7f5a;
  --leaf: #7f9b72;
  --redstone: #b9645d;
  --copper: #b88a68;
  --gold: #d4b45e;
  --sky: #8fb1c4;
  --deep: #2e3440;
  --stone: #787c78;
  --shadow: 0 10px 28px rgba(45, 50, 43, 0.06);
  --shadow-soft: 0 6px 18px rgba(45, 50, 43, 0.045);
  --glass-line: rgba(32, 35, 30, 0.11);
  --glass-bg: rgba(255, 253, 248, 0.72);
  --glass-fill: rgba(255, 253, 248, 0.66);
  --surface-soft: rgba(255, 253, 248, 0.62);
  --surface-strong: rgba(255, 253, 248, 0.86);
  --focus-ring: 0 0 0 3px rgba(62, 124, 69, 0.18);
  --radius: 8px;
}

/* Dynamic glass material layer — visual only; existing layout metrics stay unchanged. */
:root {
  --system-canvas: #f4f3ee;
  --system-glass: rgba(255, 255, 255, 0.58);
  --system-glass-strong: rgba(255, 255, 255, 0.76);
  --system-glass-soft: rgba(255, 255, 255, 0.42);
  --system-glass-dark: rgba(24, 28, 24, 0.74);
  --system-edge: rgba(255, 255, 255, 0.82);
  --system-line: rgba(45, 54, 45, 0.10);
  --system-shadow: 0 18px 48px rgba(37, 45, 37, 0.10), 0 2px 8px rgba(37, 45, 37, 0.045);
  --system-shadow-soft: 0 10px 30px rgba(37, 45, 37, 0.075), 0 1px 3px rgba(37, 45, 37, 0.04);
  --system-inner: inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(48, 57, 48, 0.07);
  --system-green: #477653;
  --glass-x: 50%;
  --glass-y: 0%;
  --glass-shine: 0;
}

body,
.admin-page {
  background: var(--system-canvas);
  background-image: none;
}

.site-header,
.admin-site-header {
  border-bottom-color: rgba(45, 54, 45, 0.08);
  background: rgba(247, 246, 242, 0.68);
  background-image: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 26px rgba(37, 45, 37, 0.045);
  -webkit-backdrop-filter: blur(28px) saturate(1.32);
  backdrop-filter: blur(28px) saturate(1.32);
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.admin-site-header.is-scrolled {
  background-color: rgba(247, 246, 242, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 34px rgba(37, 45, 37, 0.075);
}

.site-nav a,
.admin-sidebar a,
.guide-toc a {
  background: transparent;
  background-image: none;
  box-shadow: none;
}

.site-nav a:hover,
.site-nav a.is-active,
.admin-sidebar a:hover,
.admin-sidebar a.is-active,
.guide-toc a:hover,
.guide-toc a.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.54);
  background-image: none;
  box-shadow: var(--system-inner), 0 5px 16px rgba(37, 45, 37, 0.055);
}

.button,
.archive-toggle-button,
.download-row em,
.admin-page button,
.admin-view-tabs button,
.row-actions button,
.admin-pagination button,
.table-mini-button,
.server-action-grid button {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.76);
  background: var(--system-glass-strong);
  background-image: none;
  box-shadow: var(--system-inner), 0 7px 20px rgba(37, 45, 37, 0.07) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.24);
  backdrop-filter: blur(20px) saturate(1.24);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button.primary,
.admin-page .button.primary,
.server-command-row .button.primary {
  border-color: rgba(42, 84, 52, 0.3);
  background: var(--system-green);
  background-image: none;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(16, 43, 23, 0.16), 0 10px 24px rgba(44, 91, 55, 0.16) !important;
}

.button:hover,
.archive-toggle-button:hover,
.download-row:hover em,
.admin-page button:hover,
.admin-view-tabs button:hover,
.row-actions button:hover,
.admin-pagination button:hover,
.table-mini-button:hover,
.server-action-grid button:hover {
  border-color: rgba(255, 255, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.88);
  background-image: none;
  box-shadow: var(--system-inner), 0 10px 26px rgba(37, 45, 37, 0.095) !important;
  opacity: 1;
  transform: translateY(-1px);
}

.button.primary:hover,
.admin-page .button.primary:hover,
.server-command-row .button.primary:hover {
  border-color: rgba(36, 74, 45, 0.38);
  background: #3e6c49;
  background-image: none;
}

.button:active,
.archive-toggle-button:active,
.admin-page button:active {
  transform: scale(0.985);
  transition-duration: 80ms;
}

.server-snapshot div,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.join-panel,
.download-box,
.qr-frame,
.qr-placeholder,
.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card,
.thanks-panel,
.admin-page-bar,
.admin-command-bar,
.admin-panel,
.admin-hero-card,
.admin-sidebar,
.admin-card-panel,
.admin-table-wrap,
.admin-drawer,
.admin-modal,
.mail-row,
.command-result,
.duration-preview {
  border-color: var(--system-line);
  background: var(--system-glass);
  background-image: none;
  box-shadow: var(--system-inner), var(--system-shadow-soft) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.22);
  backdrop-filter: blur(26px) saturate(1.22);
}

.info-card,
.tutorial-card,
.feature-row,
.join-panel,
.download-box,
.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card,
.thanks-panel,
.admin-panel,
.admin-card-panel {
  isolation: isolate;
}

.info-card::before,
.tutorial-card::before,
.feature-row::before,
.join-panel::before,
.download-box::before,
.guide-panel::before,
.staff-card::before,
.form-panel::before,
.admin-card::before,
.status-card::before,
.thanks-panel::before,
.admin-panel::before,
.admin-card-panel::before {
  background: transparent;
  background-image: none;
}

.glass-reactive::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16) 32%, transparent 68%);
  content: "";
  opacity: var(--glass-shine);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.button.glass-reactive::after,
.archive-toggle-button.glass-reactive::after,
.admin-page button.glass-reactive::after {
  background: radial-gradient(90px circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.46), transparent 72%);
}

.button.primary.glass-reactive::after,
.admin-page .button.primary.glass-reactive::after {
  background: radial-gradient(100px circle at var(--glass-x) var(--glass-y), rgba(255, 255, 255, 0.28), transparent 70%);
}

.download-hero,
.techpack-download .download-row,
.archive-downloads summary {
  border-color: var(--system-line);
  background: rgba(255, 255, 255, 0.46);
  background-image: none;
  box-shadow: var(--system-inner);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

.techpack-download .download-row:hover {
  border-color: rgba(71, 118, 83, 0.2);
  background: rgba(255, 255, 255, 0.68);
  background-image: none;
}

.download-meta span,
.download-kicker,
.tag-row span,
.status-pill,
.risk-chip {
  background-color: rgba(255, 255, 255, 0.62);
  background-image: none;
}

.admin-page input:not([type="checkbox"]):not([type="radio"]),
.admin-page select,
.admin-page textarea,
.form-panel input,
.form-panel select,
.form-panel textarea,
.admin-login-card input,
.admin-login-card select {
  border-color: rgba(48, 57, 48, 0.14);
  background: rgba(255, 255, 255, 0.54);
  background-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.admin-table th,
.admin-drawer .drawer-actions,
.admin-modal-actions,
.admin-modal-head,
.admin-drawer-head {
  background: rgba(248, 247, 243, 0.82);
  background-image: none;
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
}

@media (max-width: 760px) {
  .site-nav,
  .admin-sidebar,
  .guide-toc {
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(247, 246, 242, 0.78);
    background-image: none;
    box-shadow: var(--system-inner), var(--system-shadow);
    -webkit-backdrop-filter: blur(30px) saturate(1.28);
    backdrop-filter: blur(30px) saturate(1.28);
  }

  .mobile-menu-backdrop {
    background: rgba(28, 34, 28, 0.10);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

.rule-item > span,
.mail-toggle-row label,
#mail .mail-toggle-row label {
  background: rgba(255, 255, 255, 0.56);
  background-image: none;
  box-shadow: var(--system-inner);
}

.join-band {
  border-color: var(--system-line);
  background: rgba(255, 255, 255, 0.40);
  background-image: none;
  box-shadow: var(--system-inner), var(--system-shadow-soft);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  backdrop-filter: blur(24px) saturate(1.18);
}



@media (hover: none), (pointer: coarse) {
  .glass-reactive::after { display: none; }
  .button:hover,
  .archive-toggle-button:hover,
  .admin-page button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .admin-site-header,
  .button,
  .archive-toggle-button,
  .admin-page button,
  .glass-reactive::after { transition: none !important; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(32, 35, 30, 0.022) 1px, transparent 1px),
    linear-gradient(rgba(32, 35, 30, 0.022) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(32, 35, 30, 0.1);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(32, 35, 30, 0.2);
  border-radius: 8px;
  background: var(--paper);
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 8px 18px rgba(45, 50, 43, 0.08);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(62, 124, 69, 0.12);
  color: var(--ink);
}

.site-menu-toggle,
.admin-section-menu-toggle,
.guide-toc-toggle,
.admin-mobile-actions,
.mobile-menu-backdrop {
  display: none;
}

.side-rail {
  position: fixed;
  top: 50%;
  left: max(22px, calc((100vw - 1160px) / 2 - 98px));
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 76px;
  padding: 10px 0 10px 14px;
  border-left: 1px solid rgba(32, 35, 30, 0.14);
  transform: translateY(-50%);
}

.side-rail a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  transform-origin: left center;
  padding: 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, font-size 180ms ease, transform 180ms ease;
}

.side-rail a::before {
  position: absolute;
  left: -19px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(32, 35, 30, 0.24);
  border-radius: 50%;
  background: var(--bg);
  content: "";
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.side-rail a:hover,
.side-rail a.is-active {
  color: var(--ink);
  transform: translateX(2px);
}

.side-rail a.is-active {
  font-size: 13px;
  font-weight: 900;
}

.side-rail a:hover::before,
.side-rail a.is-active::before {
  border-color: var(--grass);
  background: var(--grass);
}

.side-rail a.is-active::before {
  box-shadow: 0 0 0 4px rgba(62, 124, 69, 0.14);
  transform: scale(1.18);
}

.hero,
.section,
.page-hero {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.hero > *,
.section > *,
.page-hero > * {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 54px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--redstone);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.hero-text {
  max-width: 680px;
  color: #444d42;
  font-size: clamp(16px, 2vw, 19px);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(32, 35, 30, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  border-color: rgba(62, 124, 69, 0.44);
  background: rgba(62, 124, 69, 0.08);
  transform: translateY(-1px);
}

.button:disabled,
.button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button.primary {
  background: var(--grass);
  border-color: var(--grass);
  color: white;
}

.button.secondary {
  background: var(--paper);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.server-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.server-snapshot div,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.join-panel,
.download-box,
.qr-frame,
.qr-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.server-snapshot div {
  padding: 14px;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  max-width: 100%;
  min-height: 520px;
  border: 4px solid var(--deep);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow), 9px 9px 0 var(--deep);
}

.photo-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 9px;
  border: 2px solid var(--deep);
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.9);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.block-sky {
  position: absolute;
  inset: 0 0 38%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 58px, transparent 58px 116px),
    var(--sky);
}

.block-world {
  position: absolute;
  inset: 28% 0 0;
  background:
    linear-gradient(180deg, var(--leaf) 0 17%, var(--grass) 17% 32%, #5d5548 32% 60%, #3b3f42 60%),
    repeating-linear-gradient(90deg, transparent 0 41px, rgba(0, 0, 0, 0.14) 41px 43px);
}

.block,
.machine,
.rail {
  position: absolute;
  display: block;
}

.block {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 -12px rgba(0, 0, 0, 0.16), inset 10px 10px rgba(255, 255, 255, 0.16);
}

.grass { background: var(--grass); }
.stone { background: var(--stone); }
.copper { background: var(--copper); }
.redstone { background: var(--redstone); }
.lamp { background: var(--gold); }

.b1 { left: 8%; top: 18%; }
.b2 { left: 25%; top: 41%; }
.b3 { right: 13%; top: 26%; }
.r1 { left: 43%; top: 53%; }
.r2 { right: 29%; top: 54%; }
.l1 { left: 17%; top: 62%; }
.l2 { right: 8%; top: 66%; }

.machine {
  width: 82px;
  height: 82px;
  border: 4px solid #1f2429;
  background:
    linear-gradient(90deg, transparent 38%, var(--redstone) 38% 48%, transparent 48%),
    linear-gradient(180deg, #9aa1a2 0 48%, #555b5f 48%);
  box-shadow: inset 0 -14px rgba(0, 0, 0, 0.22);
}

.m1 { left: 50%; top: 20%; }
.m2 { right: 21%; top: 44%; }
.m3 { left: 31%; top: 69%; }

.rail {
  height: 8px;
  background: var(--redstone);
  box-shadow: 0 0 18px rgba(195, 58, 43, 0.55);
}

.line-a {
  left: 19%;
  right: 18%;
  top: 48%;
  transform: rotate(14deg);
}

.line-b {
  left: 25%;
  right: 9%;
  top: 77%;
  transform: rotate(-8deg);
}

.section {
  padding: 72px 0;
}

.page-hero {
  padding: 72px 0 34px;
}

.page-hero p {
  max-width: 760px;
  color: #4b5449;
  font-size: clamp(16px, 2vw, 19px);
}

.compact-section {
  padding-top: 34px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}

.section p {
  color: #4b5449;
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.info-grid,
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.tutorial-card {
  min-height: 160px;
  padding: 22px;
}

.tutorial-card {
  color: inherit;
  text-decoration: none;
}

.tutorial-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 8px 22px rgba(45, 50, 43, 0.1);
}

.rule-list {
  display: grid;
  gap: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.gallery-grid .gallery-main {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 454px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(32, 35, 30, 0.78);
  color: white;
  font-size: 13px;
}

.rule-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.rule-item span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--deep);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--deep);
  font-weight: 900;
}

.join-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: 28px;
  padding: 36px;
  border: 4px solid var(--deep);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(62, 124, 69, 0.15), rgba(195, 58, 43, 0.12)),
    var(--paper);
  box-shadow: 7px 7px 0 var(--deep);
}

.join-panel {
  padding: 22px;
}

.join-panel ul {
  padding-left: 20px;
  color: #4b5449;
}

.download-box {
  margin-top: 22px;
  padding: 20px;
}

.download-box .button {
  margin-top: 8px;
}

.download-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.current-downloads {
  margin-top: 18px;
}

.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.download-row strong,
.download-row small {
  display: block;
}

.download-row small {
  margin-top: 4px;
  color: #68705f;
}

.download-row em {
  min-width: 56px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--gold);
  color: var(--deep);
  font-style: normal;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}

.download-row:hover em {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.archive-downloads {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.archive-downloads summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  color: var(--deep);
  cursor: pointer;
  list-style: none;
}

.archive-downloads summary::-webkit-details-marker {
  display: none;
}

.archive-downloads summary::after {
  content: "展开";
  min-width: 56px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--deep);
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}

.archive-downloads[open] summary::after {
  content: "收起";
}

.archive-downloads summary span,
.archive-downloads summary small {
  display: block;
}

.archive-downloads summary span {
  font-weight: 800;
}

.archive-downloads summary small {
  margin-top: 4px;
  color: #68705f;
  font-size: 0.92rem;
  font-weight: 500;
}

.archive-downloads .download-list {
  margin-top: 0;
}

.download-note {
  margin-bottom: 0;
  color: #4b5449;
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.guide-toc a {
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.guide-toc a:hover {
  background: rgba(62, 124, 69, 0.12);
  color: var(--ink);
}

.guide-content {
  display: grid;
  gap: 18px;
}

.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-fill);
  box-shadow: var(--shadow-soft);
}

.step-mark {
  display: inline-grid;
  min-width: 44px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  border: 2px solid var(--deep);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--deep);
  font-weight: 900;
}

.clean-list {
  margin: 0;
  padding-left: 22px;
  color: #4b5449;
}

.clean-list li + li {
  margin-top: 8px;
}

.setting-grid,
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setting-grid article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 245, 239, 0.7);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(247, 245, 239, 0.7);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 10px 0 0;
}

.staff-card.lead {
  border: 1px solid rgba(32, 35, 30, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(247, 245, 239, 0.78)) padding-box,
    linear-gradient(135deg, rgba(32, 35, 30, 0.34), rgba(62, 124, 69, 0.2), rgba(255, 255, 255, 0.64)) border-box;
  box-shadow: var(--shadow-soft);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-card {
  min-height: 190px;
}

.status-card h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.status-dot {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--deep);
  border-radius: 50%;
  background: var(--gold);
}

.status-dot.ok {
  background: var(--grass);
}

.status-dot.bad {
  background: var(--redstone);
}

.policy-stack {
  display: grid;
  gap: 18px;
}

.thanks-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.thanks-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.thanks-table {
  display: grid;
  gap: 12px;
}

.thanks-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.thanks-row strong,
.thanks-row span,
.thanks-row small {
  min-width: 0;
}

.thanks-row strong {
  font-size: 18px;
}

.thanks-row > span:not(.rank-mark),
.thanks-row small {
  grid-column: 2;
  color: #4b5449;
}

.rank-mark {
  grid-row: span 3;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--deep);
  border-radius: 5px;
  background: var(--gold);
  box-shadow: 3px 3px 0 var(--deep);
  font-weight: 900;
}

.not-found {
  min-height: 70vh;
  display: grid;
  align-content: center;
}

.avatar-block {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(62, 124, 69, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(62, 124, 69, 0.12), rgba(255, 253, 248, 0.84));
  color: #275d2e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
  font-size: 24px;
  font-weight: 900;
}

.muted-avatar {
  border-color: rgba(120, 124, 120, 0.28);
  background: linear-gradient(145deg, rgba(120, 124, 120, 0.12), rgba(255, 253, 248, 0.84));
  color: #4b5449;
}

.avatar-blue {
  border-color: rgba(95, 132, 150, 0.28);
  background: linear-gradient(145deg, rgba(149, 184, 201, 0.16), rgba(255, 253, 248, 0.84));
  color: #435f6d;
}

.avatar-gold {
  border-color: rgba(176, 136, 58, 0.28);
  background: linear-gradient(145deg, rgba(223, 170, 63, 0.14), rgba(255, 253, 248, 0.84));
  color: #665226;
}

.avatar-red {
  border-color: rgba(165, 65, 50, 0.26);
  background: linear-gradient(145deg, rgba(195, 58, 43, 0.1), rgba(255, 253, 248, 0.84));
  color: #7f2e25;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tag-row span {
  padding: 3px 7px;
  border: 1px solid rgba(32, 35, 30, 0.12);
  border-radius: 7px;
  background: rgba(247, 245, 239, 0.76);
  color: #4b5449;
  font-size: 12px;
  font-weight: 800;
}

.card-note {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
  }

.form-panel {
  display: grid;
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid,
.admin-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-panel label,
.admin-toolbar label {
  display: grid;
  gap: 7px;
  color: #4b5449;
  font-weight: 800;
}

.form-panel input,
.form-panel select,
.form-panel textarea,
.admin-toolbar input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus,
.admin-toolbar input:focus {
  outline: 3px solid rgba(62, 124, 69, 0.18);
  border-color: var(--grass);
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.check-list input {
  width: auto;
  min-height: auto;
  margin-top: 6px;
}

.form-message {
  margin: 0;
  color: var(--redstone);
  font-weight: 800;
}

.score-preview {
  padding: 12px 14px;
  border: 1px solid rgba(32, 35, 30, 0.14);
  background: #f7f7ef;
  color: #4b5449;
  font-weight: 800;
}

.score-preview.ok {
  border-color: rgba(62, 124, 69, 0.35);
  background: rgba(62, 124, 69, 0.08);
  color: var(--grass);
}

.score-preview.warn {
  border-color: rgba(165, 65, 50, 0.35);
  background: rgba(165, 65, 50, 0.08);
  color: var(--redstone);
}

.admin-toolbar {
  align-items: end;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.admin-stat-card,
.admin-insight,
.admin-filter-bar {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.admin-stat-card span,
.admin-stat-card strong,
.admin-stat-card small {
  display: block;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-stat-card strong {
  margin: 6px 0 4px;
  font-size: 34px;
  line-height: 1;
}

.admin-stat-card small {
  color: #4b5449;
}

.admin-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.distribution-list {
  display: grid;
  gap: 10px;
}

.distribution-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4b5449;
  font-size: 14px;
  font-weight: 800;
}

.distribution-row i {
  display: block;
  width: var(--bar-width);
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--grass);
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-filter-bar label {
  display: grid;
  gap: 7px;
  color: #4b5449;
  font-weight: 800;
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.admin-card h3 small {
  color: var(--muted);
  font-size: 14px;
}

.admin-card h4 {
  margin: 14px 0 4px;
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.meta-row span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f0ece2;
  color: #4b5449;
  font-size: 13px;
  font-weight: 800;
}

.admin-card pre {
  overflow: auto;
  max-width: 100%;
  padding: 12px;
  border-radius: 6px;
  background: #f0ece2;
  font-size: 12px;
}

.admin-actions {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f0ece2;
  font-family: Consolas, "Courier New", monospace;
}

.feature-stack,
.link-list {
  display: grid;
  gap: 14px;
}

.feature-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.mini-block {
  width: 40px;
  height: 40px;
  border: 2px solid var(--deep);
  box-shadow: inset 0 -8px rgba(0, 0, 0, 0.16);
}

.mini-block.red { background: var(--redstone); }
.mini-block.blue { background: #3d78a8; }
.mini-block.gold { background: var(--gold); }
.mini-block.green { background: var(--grass); }

.tutorial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
  display: block;
  padding: 20px;
  text-decoration: none;
}

.link-card span,
.link-card strong {
  display: block;
}

.link-card span {
  color: var(--muted);
  font-size: 13px;
}

.link-card strong {
  margin-top: 4px;
  font-size: 22px;
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
  align-items: center;
}

.qr-frame {
  overflow: hidden;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-frame img[hidden] {
  display: none;
}

.qr-placeholder {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  padding: 18px;
  text-align: center;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.qr-placeholder span {
  display: block;
  width: 96px;
  height: 96px;
  background:
    linear-gradient(90deg, var(--deep) 12px, transparent 12px 24px, var(--deep) 24px 36px, transparent 36px),
    linear-gradient(var(--deep) 12px, transparent 12px 24px, var(--deep) 24px 36px, transparent 36px);
  background-size: 36px 36px;
  opacity: 0.26;
}

.qr-placeholder small {
  color: var(--muted);
}

.qr-frame.has-image .qr-placeholder {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(32, 35, 30, 0.1);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .split.reverse,
  .join-band,
  .support,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 380px;
  }

  .server-snapshot,
  .info-grid,
  .tutorial-grid,
  .gallery-grid,
  .setting-grid,
  .staff-grid,
  .status-grid,
  .thanks-layout,
  .admin-stat-grid,
  .admin-insight-grid,
  .form-grid,
  .admin-toolbar,
  .admin-filter-bar,
  .admin-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-main {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }

  .join-band {
    padding: 24px;
  }
}

@media (max-width: 1320px) {
  .side-rail {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .page-hero {
    width: min(100% - 24px, 1160px);
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 310px;
    box-shadow: 5px 5px 0 var(--deep);
  }

  .rule-item {
    grid-template-columns: 1fr;
  }

  .download-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .archive-downloads summary {
    grid-template-columns: 1fr;
  }

  .download-row em {
    width: 100%;
  }

  .archive-downloads summary::after {
    width: 100%;
  }

  .guide-toc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 104px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .brand {
    width: 100%;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    box-shadow: 2px 2px 0 var(--deep);
  }

  .brand small {
    font-size: 11px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .site-nav::-webkit-scrollbar,
  .admin-sidebar::-webkit-scrollbar,
  .admin-command-bar::-webkit-scrollbar,
  .admin-pagination::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 8px 6px;
    border: 1px solid rgba(32, 35, 30, 0.1);
    background: rgba(255, 253, 248, 0.72);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
  }

  .hero,
  .section,
  .page-hero {
    width: min(100% - 24px, 1160px);
  }

  .hero,
  .page-hero,
  .section {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1.02;
  }

  .hero-text,
  .page-hero p,
  .section p {
    font-size: 15px;
  }

  .server-snapshot,
  .info-grid,
  .setting-grid,
  .status-grid,
  .staff-grid,
  .thanks-layout {
    gap: 10px;
  }

  .hero-actions,
  .join-panel .button,
  .download-box .button {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .row-actions button,
  .admin-pagination button,
  .admin-sidebar a,
  .site-nav a {
    min-height: 44px;
  }

  .site-toast-region,
  .admin-toast-region {
    top: auto;
    right: 12px;
    bottom: 16px;
    left: 12px;
    width: auto;
  }

  .site-toast,
  .admin-toast {
    padding: 13px 14px;
  }
}

.admin-page {
  background:
    linear-gradient(90deg, rgba(32, 35, 30, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(32, 35, 30, 0.025) 1px, transparent 1px),
    #f5f3ec;
  overflow-x: clip;
}

.admin-page:not(.is-authenticated) .admin-sidebar,
.admin-page:not(.is-authenticated) .admin-section-menu-toggle,
.admin-page:not(.is-authenticated) .admin-page-bar,
.admin-page:not(.is-authenticated) .admin-command-bar,
.admin-page:not(.is-authenticated) .admin-panel,
.admin-page:not(.is-authenticated) .admin-drawer-backdrop,
.admin-page:not(.is-authenticated) .admin-drawer {
  display: none;
}

.admin-page.is-authenticated:not(.role-super-admin) [data-super-only] {
  display: none !important;
}

.admin-page:not(.is-authenticated) [data-game-read-only],
.admin-page.is-authenticated:not(.role-game-read) [data-game-read-only] {
  display: none !important;
}

.admin-page[data-admin-view="overview"] .admin-page-bar {
  display: none;
}

.admin-site-header {
  z-index: 30;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.admin-page:not(.is-authenticated) .admin-shell {
  grid-template-columns: minmax(0, 1fr);
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 94px);
  align-items: center;
  padding: 44px 0 56px;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 30px rgba(45, 50, 43, 0.08);
}

.admin-sidebar strong {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.admin-sidebar a {
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.admin-sidebar a:hover {
  background: rgba(62, 124, 69, 0.12);
  color: var(--ink);
}

.admin-sidebar a.is-active {
  background: rgba(62, 124, 69, 0.14);
  color: var(--ink);
}

.admin-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-shell *,
.admin-drawer * {
  min-width: 0;
}

.admin-hero-card,
.admin-page-bar,
.admin-command-bar,
.admin-panel,
.admin-drawer {
  border: 1px solid rgba(32, 35, 30, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 44px rgba(45, 50, 43, 0.08);
}

.admin-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.admin-page-bar span,
.admin-page-bar small {
  display: block;
}

.admin-page-bar span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.admin-page-bar small {
  color: var(--muted);
  font-weight: 800;
}

.admin-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
  padding: 28px;
}

.admin-auth-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  min-height: 520px;
  align-items: center;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(238, 242, 232, 0.92)),
    #fffdf8;
}

.admin-auth-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, var(--grass), var(--gold), var(--redstone));
}

.admin-page.is-authenticated .admin-auth-hero {
  min-height: 0;
  padding: 28px;
}

.admin-hero-card h1,
.admin-auth-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 56px);
}

.admin-auth-copy {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.admin-auth-copy p {
  max-width: 540px;
  color: #4b5449;
  font-size: 18px;
}

.admin-auth-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-auth-ledger span {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(32, 35, 30, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.admin-auth-ledger strong,
.admin-auth-ledger small {
  display: block;
}

.admin-auth-ledger strong {
  font-size: 15px;
}

.admin-auth-ledger small {
  color: var(--muted);
  font-weight: 900;
}

.admin-login-card,
.admin-filter-row label,
.whitelist-tool-layout label {
  display: grid;
  gap: 7px;
}

.admin-login-card {
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(32, 35, 30, 0.14);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 22px 50px rgba(45, 50, 43, 0.12);
}

.admin-login-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(32, 35, 30, 0.1);
}

.admin-login-head img {
  width: 46px;
  height: 46px;
  border: 2px solid var(--deep);
  border-radius: 8px;
  background: var(--paper);
}

.admin-login-head span,
.admin-login-head strong {
  display: block;
}

.admin-login-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-login-head strong {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.15;
}

.admin-auth-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #4b5449;
  font-weight: 900;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 8px;
  background: rgba(247, 245, 239, 0.86);
}

.admin-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 8px;
  background: #f0ece2;
}

.admin-auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-auth-tabs button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(45, 50, 43, 0.1);
}

.admin-login-card [hidden] {
  display: none !important;
}

.admin-self-promote {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(62, 124, 69, 0.22);
  border-radius: 8px;
  background: rgba(62, 124, 69, 0.07);
}

.admin-self-promote strong,
.admin-self-promote small {
  display: block;
}

.admin-self-promote small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.admin-page.is-authenticated .admin-auth-tabs,
.admin-page.is-authenticated .admin-login-card label,
.admin-page.is-authenticated #login-admin,
.admin-page.is-authenticated #register-admin {
  display: none !important;
}

.admin-login-card input,
.admin-filter-row input,
.whitelist-tool-layout input,
.admin-filter-row select,
.admin-table select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.admin-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-inline-check input {
  width: 16px;
  height: 16px;
}

.admin-permission-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 4px;
}

.admin-permission-checks .admin-inline-check {
  min-height: 28px;
}

.admin-table tr.is-current-admin {
  background: rgba(62, 124, 69, 0.06);
}

.admin-table tr.is-selected {
  background: rgba(62, 124, 69, 0.08);
}

.admin-login-actions,
.admin-command-bar,
.row-actions,
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-login-actions .button {
  flex: 1 1 140px;
  justify-content: center;
}

.admin-bulk-bar {
  position: sticky;
  top: 84px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(62, 124, 69, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow-soft);
}

.admin-bulk-bar[hidden] {
  display: none;
}

.admin-bulk-bar.is-empty {
  border-color: rgba(32, 35, 30, 0.12);
  background: rgba(247, 245, 239, 0.76);
  box-shadow: none;
}

.admin-bulk-bar span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 900;
}

.admin-bulk-bar button {
  flex: 0 0 auto;
}

.admin-bulk-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-bulk-bar.is-empty span {
  color: rgba(75, 84, 73, 0.58);
}

.admin-action-pending button {
  cursor: progress;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 26, 23, 0.42);
  backdrop-filter: blur(4px);
}

.admin-modal-backdrop[hidden] {
  display: none;
}

.admin-modal {
  width: min(560px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid rgba(32, 35, 30, 0.14);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(24, 26, 23, 0.24);
}

.admin-modal-head,
.admin-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(32, 35, 30, 0.08);
}

.admin-modal-head h2 {
  margin: 0;
  font-size: 24px;
}

.admin-modal-head .button {
  flex: 0 0 auto;
}

.admin-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(32, 35, 30, 0.08);
  border-bottom: 0;
}

.duration-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 18px 0;
}

.duration-mode-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.duration-mode-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 245, 239, 0.72);
  font-weight: 900;
  cursor: pointer;
}

.duration-mode-grid label:has(input:checked) {
  border-color: rgba(62, 124, 69, 0.52);
  background: rgba(62, 124, 69, 0.12);
  color: #275d2e;
}

.duration-input-row {
  display: grid;
  grid-template-columns: minmax(80px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 18px;
  font-weight: 900;
}

.duration-input-row input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
}

.duration-hint,
.duration-preview {
  margin: 0 18px 18px;
  color: var(--muted);
}

.duration-preview {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(62, 124, 69, 0.2);
  border-radius: 8px;
  background: rgba(62, 124, 69, 0.07);
}

.duration-preview strong {
  color: var(--ink);
}

.admin-modal-open {
  overflow: hidden;
}

.admin-message {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--grass);
  font-weight: 800;
}

.admin-message.is-error {
  color: var(--redstone);
}

.site-toast-region,
.admin-toast-region {
  position: fixed;
  top: 88px;
  right: max(18px, calc((100vw - 1440px) / 2 + 24px));
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
  opacity: 0;
}

.site-toast-region.is-visible,
.admin-toast-region.is-visible {
  opacity: 1;
}

.site-toast-region.is-leaving,
.admin-toast-region.is-leaving {
  opacity: 1;
}

.site-toast,
.admin-toast {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(32, 35, 30, 0.16);
  border-left: 5px solid var(--redstone);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 16px 34px rgba(45, 50, 43, 0.16);
  animation: site-toast-in 0.22s ease both;
}

.site-toast.success,
.admin-toast.success {
  border-left-color: var(--grass);
}

.site-toast-region.is-leaving .site-toast,
.admin-toast-region.is-leaving .admin-toast {
  animation: site-toast-out 0.18s ease both;
}

.site-toast strong,
.site-toast span,
.admin-toast strong,
.admin-toast span {
  display: block;
}

.site-toast strong,
.admin-toast strong {
  color: var(--redstone);
  font-size: 13px;
  font-weight: 900;
}

.site-toast.success strong,
.admin-toast.success strong {
  color: var(--grass);
}

.site-toast span,
.admin-toast span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

@keyframes site-toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes site-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

.admin-command-bar {
  padding: 14px;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-color: var(--glass-line);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(247, 245, 239, 0.72)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(62, 124, 69, 0.12), rgba(32, 35, 30, 0.06)) border-box;
  box-shadow: var(--shadow-soft);
}

.admin-section-head,
.admin-filter-row,
.admin-bulk-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.admin-page input:not([type="checkbox"]):not([type="radio"]),
.admin-page select,
.admin-page textarea {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(32, 35, 30, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, outline-color 0.15s ease;
}

.admin-page input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: rgba(62, 124, 69, 0.56);
  outline: 3px solid rgba(62, 124, 69, 0.14);
}

.admin-page input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--grass);
}

.admin-muted,
.admin-table small,
.detail-block dt {
  color: var(--muted);
  font-size: 13px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.admin-metric,
.admin-card-panel {
  padding: 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-fill);
  box-shadow: none;
}

.admin-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  border-left: 4px solid var(--stone);
}

.admin-metric.pending,
.admin-metric.warning {
  border-left-color: var(--gold);
}

.admin-metric.active,
.admin-metric.ok {
  border-left-color: var(--grass);
}

.admin-metric strong,
.admin-metric span,
.admin-metric small,
.admin-table strong,
.admin-table small {
  display: block;
}

.admin-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-metric strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
}

.admin-metric small {
  grid-column: 1;
  overflow-wrap: normal;
}

.admin-overview-grid,
.admin-tools-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.admin-tools-grid {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr) minmax(280px, 0.65fr);
}

.admin-tools-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stack,
.admin-bars,
.admin-timeline {
  display: grid;
  gap: 10px;
}

.admin-risk-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-risk-row strong {
  color: var(--redstone);
}

.bar-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4b5449;
  font-size: 14px;
  font-weight: 800;
}

.bar-row i {
  display: block;
  width: var(--bar-width);
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--grass);
}

.admin-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-view-tabs button,
.row-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #4b5449;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.admin-view-tabs button:hover,
.row-actions button:hover {
  border-color: rgba(62, 124, 69, 0.42);
  background: rgba(62, 124, 69, 0.08);
}

.admin-view-tabs button {
  min-height: 34px;
  padding: 6px 10px;
}

.admin-view-tabs button.is-active {
  border-color: var(--grass);
  background: rgba(62, 124, 69, 0.12);
  color: var(--ink);
}

.admin-view-tabs span {
  margin-left: 4px;
  color: var(--muted);
}

.admin-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 190px;
}

.whitelist-tool-layout {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.whitelist-search-field,
.whitelist-add-grid label {
  min-width: 0;
}

.whitelist-add-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 1fr) minmax(120px, 150px) minmax(110px, auto) max-content;
  align-items: end;
  gap: 16px;
  min-width: 0;
}

.whitelist-add-grid .whitelist-permanent-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.whitelist-permanent-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.whitelist-filter-action {
  display: flex;
  align-items: end;
  min-width: 0;
}

.whitelist-filter-action .button {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .whitelist-add-grid {
    grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr) minmax(120px, 150px) minmax(110px, auto);
  }

  .whitelist-filter-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .whitelist-add-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .whitelist-filter-action .button {
    width: 100%;
  }
}

.admin-filter-panel {
  display: contents;
}

.admin-filter-panel > summary {
  display: none;
}

.admin-filter-panel-body {
  display: contents;
}

.event-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid rgba(62, 124, 69, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(245, 249, 243, 0.52)),
    rgba(255, 253, 248, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 22px rgba(31, 47, 28, 0.05);
}

.event-quick-filters button {
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.event-quick-filters button:hover,
.event-quick-filters button:focus-visible {
  border-color: rgba(62, 124, 69, 0.2);
  background: rgba(62, 124, 69, 0.08);
  color: #275d2e;
  outline: none;
}

.event-quick-filters button.is-active {
  border-color: rgba(62, 124, 69, 0.24);
  background: rgba(255, 253, 248, 0.88);
  color: #275d2e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 16px rgba(40, 80, 44, 0.08);
}

.admin-filter-row.two {
  grid-template-columns: minmax(260px, 1fr) 220px;
}

.admin-filter-row.single {
  grid-template-columns: minmax(260px, 1fr);
}

.admin-bulk-bar {
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(62, 124, 69, 0.18);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(62, 124, 69, 0.08), rgba(255, 253, 248, 0.76));
  box-shadow: none;
}

.admin-bulk-bar .button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
  box-shadow: none;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.application-table {
  min-width: 1080px;
}

.application-table th:nth-child(1),
.application-table td:nth-child(1) {
  width: 42px;
}

.application-table th:nth-child(2),
.application-table td:nth-child(2) {
  width: 160px;
}

.application-table th:nth-child(3),
.application-table td:nth-child(3) {
  width: 120px;
}

.application-table th:nth-child(4),
.application-table td:nth-child(4) {
  width: 130px;
}

.application-table th:nth-child(5),
.application-table td:nth-child(5) {
  width: 140px;
}

.application-table th:nth-child(6),
.application-table td:nth-child(6) {
  width: 300px;
}

.application-table th:nth-child(7),
.application-table td:nth-child(7) {
  width: 188px;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(32, 35, 30, 0.09);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0ece2;
  color: #4b5449;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-table code {
  display: inline-block;
  margin-top: 6px;
}

.clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-cell strong,
.contact-cell span,
.contact-cell small {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-code {
  max-width: 100%;
  padding: 4px 6px;
  border-radius: 4px;
  background: #f0ece2;
}

.player-meta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.player-meta-actions .payment-code {
  margin-top: 0;
}

.table-mini-button {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(62, 124, 69, 0.38);
  border-radius: 6px;
  background: rgba(62, 124, 69, 0.11);
  color: #275d2e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.table-mini-button:hover {
  border-color: rgba(62, 124, 69, 0.62);
  background: rgba(62, 124, 69, 0.16);
}

.table-mini-button.muted {
  border-color: rgba(75, 84, 73, 0.24);
  background: rgba(247, 245, 239, 0.86);
  color: #4b5449;
}

.admin-table td > button:not(.table-mini-button),
.admin-table .row-actions button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(32, 35, 30, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.admin-table td > button:not(.table-mini-button):hover,
.admin-table .row-actions button:hover {
  border-color: rgba(62, 124, 69, 0.42);
  background: rgba(62, 124, 69, 0.08);
}

.status-cell,
.review-cell,
.expiry-cell,
.risk-cell,
.action-cell {
  white-space: nowrap;
}

.admin-secret {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(32, 35, 30, 0.04);
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-table.compact {
  min-width: 820px;
}

.whitelist-table {
  min-width: 1080px;
}

.whitelist-table th:nth-child(1),
.whitelist-table td:nth-child(1) {
  width: 72px;
}

.whitelist-table th:nth-child(2),
.whitelist-table td:nth-child(2) {
  width: 22%;
}

.whitelist-table th:nth-child(3),
.whitelist-table td:nth-child(3),
.whitelist-table th:nth-child(4),
.whitelist-table td:nth-child(4) {
  width: 22%;
}

.whitelist-table th:nth-child(5),
.whitelist-table td:nth-child(5) {
  width: auto;
}

.whitelist-admin-table th:nth-child(1),
.whitelist-admin-table td:nth-child(1) {
  width: 56px;
}

.whitelist-admin-table th:nth-child(2),
.whitelist-admin-table td:nth-child(2) {
  width: 24%;
}

.whitelist-admin-table th:nth-child(3),
.whitelist-admin-table td:nth-child(3),
.whitelist-admin-table th:nth-child(4),
.whitelist-admin-table td:nth-child(4) {
  width: 20%;
}

.whitelist-admin-table th:nth-child(5),
.whitelist-admin-table td:nth-child(5) {
  width: auto;
}

.server-admin-table th:nth-child(1),
.server-admin-table td:nth-child(1) {
  width: 22%;
}

.server-admin-table th:nth-child(2),
.server-admin-table td:nth-child(2),
.server-admin-table th:nth-child(4),
.server-admin-table td:nth-child(4) {
  width: 18%;
}

.server-admin-table th:nth-child(5),
.server-admin-table td:nth-child(5) {
  width: 180px;
}

.select-cell {
  text-align: center;
}

.payment-table th:nth-child(1),
.payment-table td:nth-child(1) {
  width: 34%;
}

.payment-table th:nth-child(2),
.payment-table td:nth-child(2) {
  width: 15%;
}

.payment-table th:nth-child(6),
.payment-table td:nth-child(6) {
  width: 120px;
}

.mail-table {
  min-width: 960px;
}

.mail-table th:nth-child(1),
.mail-table td:nth-child(1) {
  width: 170px;
}

.mail-table th:nth-child(2),
.mail-table td:nth-child(2) {
  width: 220px;
}

.mail-table th:nth-child(4),
.mail-table td:nth-child(4) {
  width: 120px;
}

.mail-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  margin: 12px 0;
}

.mail-bound-summary {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(62, 124, 69, 0.22);
  border-radius: 10px;
  background: rgba(62, 124, 69, 0.08);
}

.mail-bound-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mail-bound-summary strong {
  overflow-wrap: anywhere;
}

.mail-sync-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.mail-sync-actions input {
  min-width: 0;
}

.mail-toggle-row {
  margin: 12px 0 16px;
}

.mail-toggle-row label {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(62, 124, 69, 0.18);
  border-radius: 8px;
  background: rgba(62, 124, 69, 0.06);
  font-weight: 900;
}

#mail .admin-card-panel > label {
  display: grid;
  gap: 7px;
}

#mail .admin-card-panel > label + .row-actions {
  margin-top: 10px;
}

#mail .admin-card-panel select {
  width: min(100%, 320px);
}

.mail-content-cell strong,
.mail-content-cell p,
.mail-reply-note {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mail-content-cell p {
  margin: 6px 0;
  color: var(--muted);
}

.mail-reply-note {
  color: #275d2e;
}

@media (max-width: 760px) {
  #mail .admin-tools-grid.two {
    grid-template-columns: 1fr;
  }

  .game-config-form {
    grid-template-columns: 1fr;
  }

  #mail .admin-section-head.compact .row-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    overflow: visible;
  }

  #mail .admin-section-head.compact input,
  #mail .admin-section-head.compact button {
    width: 100%;
  }

  .mail-settings-grid {
    grid-template-columns: 1fr;
  }

  .mail-table tr {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .mail-table td {
    display: grid;
    gap: 4px;
  }

  .mail-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .mail-table td:last-child button {
    width: 100%;
  }
}

.payment-order-cell strong,
.payment-order-cell small {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.status-pill,
.risk-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f0ece2;
  color: #4b5449;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.pending,
.status-pill.unmatched {
  border-color: rgba(176, 136, 58, 0.28);
  background: rgba(176, 136, 58, 0.08);
  color: #665226;
}

.status-pill.trialing,
.status-pill.active,
.status-pill.admin,
.status-pill.matched,
.status-pill.manual,
.status-pill.support {
  border-color: rgba(62, 124, 69, 0.28);
  background: rgba(62, 124, 69, 0.08);
  color: #275d2e;
}

.status-pill.expired,
.status-pill.rejected {
  border-color: rgba(165, 65, 50, 0.24);
  background: rgba(165, 65, 50, 0.06);
  color: #7f2e25;
}

.status-pill.success {
  border-color: rgba(62, 124, 69, 0.26);
  background: rgba(62, 124, 69, 0.08);
  color: #285c31;
}

.status-pill.warning {
  border-color: rgba(176, 136, 58, 0.28);
  background: rgba(176, 136, 58, 0.09);
  color: #6b5422;
}

.status-pill.critical {
  border-color: rgba(165, 65, 50, 0.28);
  background: rgba(165, 65, 50, 0.08);
  color: #7f2e25;
}

.status-pill.muted {
  border-color: rgba(32, 35, 30, 0.1);
  background: rgba(32, 35, 30, 0.04);
  color: var(--muted);
}

.risk-chip {
  margin: 0 5px 5px 0;
  border-color: rgba(165, 65, 50, 0.22);
  background: rgba(165, 65, 50, 0.05);
  color: #7f2e25;
}

.risk-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.risk-note {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: #8d2419;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  gap: 6px;
}

.row-actions button {
  min-height: 32px;
  padding: 5px 9px;
}

.application-actions {
  align-items: center;
  max-width: none;
}

.application-actions button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.application-actions button[data-action="view"] {
  border-color: rgba(62, 124, 69, 0.44);
  background: rgba(62, 124, 69, 0.13);
  color: #275d2e;
  box-shadow: inset 0 0 0 1px rgba(62, 124, 69, 0.08);
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
}

.timeline-item > span {
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border: 2px solid var(--grass);
  border-radius: 50%;
  background: var(--paper);
}

.timeline-item > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item details {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(210px, 0.75fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.timeline-item summary::-webkit-details-marker {
  display: none;
}

.event-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.event-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(32, 35, 30, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.timeline-item summary:hover .event-toggle {
  border-color: rgba(62, 124, 69, 0.38);
  background: rgba(62, 124, 69, 0.08);
  color: #275d2e;
}

.event-toggle::before {
  content: "+";
  display: block;
  transform: translateY(-0.5px);
}

.timeline-item details[open] .event-toggle::before {
  content: "-";
}

.timeline-item summary strong {
  display: flex;
  align-items: center;
  min-width: 0;
}

.timeline-item summary em {
  color: var(--muted);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-item small {
  display: block;
  color: var(--muted);
}

.timeline-item pre,
.admin-json,
.admin-card pre {
  overflow: auto;
  max-width: 100%;
  padding: 12px;
  border-radius: 6px;
  background: #f0ece2;
  font-size: 12px;
}

.admin-json.compact {
  min-height: 92px;
  margin-top: 12px;
}

.server-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.server-action-grid button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.server-action-grid button:hover,
.server-action-grid button:focus-visible {
  border-color: rgba(62, 124, 69, 0.42);
  background: rgba(62, 124, 69, 0.1);
}

.server-action-grid button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.server-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}

.server-command-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.server-command-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.server-command-row button {
  min-height: 36px;
  white-space: nowrap;
}

.game-ops-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: start;
}

.game-metrics-panel,
.game-onboarding-panel,
.game-stage-one-panel,
.game-activity-panel,
.game-alert-panel,
.game-task-panel,
.game-backup-panel,
.game-log-panel,
.game-console-panel,
.game-player-panel,
.game-mod-panel,
.game-file-panel,
.game-config-panel {
  grid-column: 1 / -1;
}

.game-agent-list,
.game-instance-grid,
.game-metrics-grid,
.game-backup-listing,
.game-player-groups,
.game-mod-list,
.game-file-listing {
  display: grid;
  gap: 10px;
}

.game-stage-one-checklist {
  display: grid;
  gap: 12px;
}

.game-activity-digest {
  display: grid;
  gap: 12px;
}

.game-stage-one-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-activity-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.game-stage-one-summary span,
.game-stage-one-check,
.game-stage-one-next,
.game-activity-card,
.game-activity-next {
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 252, 0.68));
  box-shadow: 0 10px 24px rgba(32, 35, 30, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-stage-one-summary span,
.game-activity-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
}

.game-stage-one-summary strong,
.game-stage-one-check strong,
.game-activity-card strong,
.game-activity-row strong {
  color: var(--text);
  font-size: 0.92rem;
}

.game-stage-one-summary small,
.game-stage-one-check small,
.game-stage-one-next li,
.game-activity-card small,
.game-activity-row small,
.game-activity-next li,
.game-activity-next small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.game-activity-card > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.game-activity-card.ok {
  border-color: rgba(87, 166, 111, 0.22);
}

.game-activity-card.warning {
  border-color: rgba(214, 164, 55, 0.3);
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.9), rgba(249, 245, 232, 0.72));
}

.game-activity-card.critical {
  border-color: rgba(206, 83, 83, 0.28);
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.9), rgba(249, 238, 238, 0.72));
}

.game-activity-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 10px;
  align-items: start;
}

.game-activity-timeline {
  display: grid;
  gap: 8px;
}

.game-activity-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.game-activity-row > span {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  color: #42614c;
  background: rgba(95, 176, 122, 0.14);
  font-size: 0.68rem;
  font-weight: 800;
}

.game-activity-row.warning > span {
  color: #846015;
  background: rgba(235, 185, 72, 0.18);
}

.game-activity-row.critical > span {
  color: #9a3434;
  background: rgba(231, 92, 92, 0.14);
}

.game-activity-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

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

.game-stage-one-check {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.game-stage-one-check:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 116, 255, 0.32);
  box-shadow: 0 16px 34px rgba(50, 78, 130, 0.1);
}

.game-stage-one-check > span {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  color: #246b3d;
  background: rgba(98, 207, 134, 0.16);
  font-size: 0.68rem;
  font-weight: 700;
}

.game-stage-one-check.warning > span {
  color: #846015;
  background: rgba(235, 185, 72, 0.18);
}

.game-stage-one-check.blocked > span {
  color: #9a3434;
  background: rgba(231, 92, 92, 0.14);
}

.game-stage-one-next,
.game-activity-next {
  padding: 12px 14px;
}

.game-stage-one-next > span,
.game-activity-next > span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
}

.game-stage-one-next ol,
.game-activity-next ol {
  margin: 0;
  padding-left: 18px;
}

.game-activity-next small {
  display: block;
  margin-top: 8px;
}

.game-agent-card,
.game-connection-readiness,
.game-instance-card,
.game-player-group,
.game-mod-card,
.game-file-listing button {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(247, 245, 239, 0.68));
  box-shadow: 0 10px 24px rgba(32, 35, 30, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-connection-readiness {
  border-color: rgba(61, 106, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 247, 255, 0.7));
}

.game-connection-readiness.blocked {
  border-color: rgba(196, 61, 61, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 241, 0.7));
}

.game-connection-readiness.warning {
  border-color: rgba(169, 119, 29, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 235, 0.72));
}

.game-connection-readiness ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.game-agent-card.connected {
  border-color: rgba(62, 124, 69, 0.22);
}

.game-agent-card.offline {
  opacity: 0.72;
}

.game-agent-card strong,
.game-instance-card strong,
.game-player-group strong,
.game-mod-card strong,
.game-file-listing strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-agent-card small,
.game-instance-card small,
.game-player-group small,
.game-mod-card small,
.game-file-listing small {
  color: var(--muted);
}

.game-agent-card dl,
.game-instance-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}

.game-agent-card dt,
.game-instance-card dt {
  color: var(--muted);
  font-weight: 900;
}

.game-agent-card dd,
.game-instance-card dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-selector-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.game-selector-row label,
.game-file-editor {
  display: grid;
  gap: 6px;
}

.game-selector-row span,
.game-file-editor span,
.game-follow-toggle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-action-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
}

.game-action-grid [data-game-instance-action="kill"] {
  border-color: rgba(165, 65, 50, 0.24);
  color: #7f2e25;
}

.game-instance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-instance-card.is-active {
  border-color: rgba(62, 124, 69, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(62, 124, 69, 0.08));
}

.game-instance-snapshot-output {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.game-instance-import-box {
  min-width: 0;
  margin-bottom: 12px;
  border: 1px solid rgba(32, 35, 30, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(247, 245, 239, 0.48));
  box-shadow: 0 14px 34px rgba(32, 35, 30, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.game-instance-import-box > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.game-instance-import-box > summary small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-instance-import-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.game-instance-import-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.game-instance-import-form label.wide {
  grid-column: span 2;
}

.game-instance-import-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-instance-import-form button {
  align-self: end;
  min-height: 42px;
}

.game-instance-import-output {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.game-instance-create-output {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.game-instance-registry-list {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.game-instance-merge-output {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.game-instance-import-result,
.game-instance-registry-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.game-instance-registry-card.connected {
  border-color: rgba(62, 124, 69, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 249, 241, 0.56));
}

.game-instance-registry-card.attention,
.game-instance-registry-card.pending,
.game-instance-registry-card.discovered {
  border-color: rgba(183, 116, 28, 0.14);
}

.game-instance-registry-card.agent_offline {
  opacity: 0.78;
}

.game-instance-registry-card dl {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 12px;
}

.game-instance-registry-card dt {
  color: var(--muted);
  font-weight: 900;
}

.game-instance-registry-card dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-import-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
}

.game-import-head strong,
.game-import-head small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-import-head small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-import-warnings {
  display: grid;
  gap: 7px;
}

.game-import-warnings span {
  padding: 8px 10px;
  border: 1px solid rgba(183, 116, 28, 0.16);
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.72);
  color: #76500e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.game-import-checklist {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-instance-plan-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.game-instance-plan-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 247, 242, 0.58));
}

.game-instance-plan-metrics strong,
.game-instance-plan-metrics small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-instance-plan-metrics strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.game-instance-plan-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.game-instance-create-wizard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.game-instance-create-wizard article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 245, 240, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-instance-create-wizard article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(32, 35, 30, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.game-instance-create-wizard article.done > span,
.game-instance-create-wizard article.ready > span {
  background: rgba(62, 124, 69, 0.14);
  color: #2f6d39;
}

.game-instance-create-wizard article.warning > span {
  background: rgba(183, 116, 28, 0.14);
  color: #76500e;
}

.game-instance-create-wizard article.blocked {
  opacity: 0.74;
}

.game-instance-create-wizard div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-instance-create-wizard strong,
.game-instance-create-wizard small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-instance-create-wizard strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.game-instance-create-wizard small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.35;
}

.game-instance-create-wizard .button {
  grid-column: 1 / -1;
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.game-instance-merge-instances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.game-instance-merge-instances span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.game-instance-merge-instances strong,
.game-instance-merge-instances small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-instance-merge-instances strong {
  color: var(--ink);
  font-size: 13px;
}

.game-instance-merge-instances small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.game-deploy-status.connected,
.game-deploy-status.ready {
  border-color: rgba(62, 124, 69, 0.2);
  background: rgba(232, 246, 234, 0.72);
  color: #2f6d39;
}

.game-deploy-status.pending,
.game-deploy-status.attention,
.game-deploy-status.untracked {
  border-color: rgba(183, 116, 28, 0.18);
  background: rgba(255, 247, 230, 0.72);
  color: #76500e;
}

.game-deploy-status.agent_offline,
.game-deploy-status.archived,
.game-deploy-status.controller_unconfigured {
  border-color: rgba(32, 35, 30, 0.1);
  background: rgba(245, 245, 241, 0.76);
  color: var(--muted);
}

.game-instance-snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.game-instance-snapshot-head strong {
  color: var(--ink);
}

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

.game-instance-snapshot-grid span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(240, 247, 241, 0.48)),
    rgba(255, 253, 248, 0.58);
}

.game-instance-snapshot-grid strong,
.game-instance-snapshot-grid small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-instance-snapshot-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-player-row {
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(130px, 0.42fr) auto;
}

.game-player-message-row {
  grid-template-columns: minmax(280px, 1fr) auto;
  margin-top: 10px;
}

.game-player-teleport-row {
  grid-template-columns: minmax(280px, 1fr) auto;
  margin-top: 10px;
}

.game-player-filter-row {
  grid-template-columns: minmax(240px, 1fr) max-content max-content;
  margin-top: 10px;
}

.game-player-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.game-player-selection {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(240, 247, 241, 0.48)),
    rgba(255, 253, 248, 0.58);
}

.game-player-selection > div:first-child,
.game-player-selection strong,
.game-player-selection small {
  min-width: 0;
}

.game-player-selection strong,
.game-player-selection small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player-selection small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-player-selected-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.game-player-selected-chips button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(62, 124, 69, 0.2);
  border-radius: 8px;
  color: #244f2b;
  background: rgba(232, 244, 232, 0.72);
  cursor: pointer;
}

.game-player-selected-chips button:hover {
  border-color: rgba(62, 124, 69, 0.34);
  background: rgba(222, 240, 223, 0.86);
}

.game-player-precheck {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.game-player-precheck span {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.56);
}

.game-player-precheck span.is-warning {
  border-color: rgba(163, 119, 40, 0.24);
  color: #7c5b1d;
  background: rgba(255, 247, 224, 0.64);
}

.game-player-precheck span.is-danger {
  border-color: rgba(165, 65, 50, 0.24);
  color: #7f2e25;
  background: rgba(255, 238, 235, 0.64);
}

.game-player-last-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(62, 124, 69, 0.12);
}

.game-player-last-action strong,
.game-player-last-action small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player-last-action small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-player-action-grid [data-game-player-action="kick"],
.game-player-action-grid [data-game-player-action="ban"] {
  border-color: rgba(165, 65, 50, 0.24);
  color: #7f2e25;
}

.game-player-output {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.game-player-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.game-player-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(246, 248, 244, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.game-player-summary strong {
  color: var(--ink);
  font-size: 18px;
}

.game-player-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-player-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-player-group > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-player-group > div:first-child > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.game-player-chips button {
  display: inline-grid;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
}

.game-player-chips button:hover {
  border-color: rgba(62, 124, 69, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

.game-player-chips button.is-selected {
  border-color: rgba(62, 124, 69, 0.38);
  color: #244f2b;
  background: rgba(232, 244, 232, 0.78);
  box-shadow: inset 0 0 0 1px rgba(62, 124, 69, 0.08);
}

.game-player-chips span,
.game-player-chips small {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player-detail-output {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.game-player-activity-output {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.game-player-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.game-player-detail-head strong {
  color: var(--ink);
}

.game-player-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.game-player-detail-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(245, 249, 243, 0.52)),
    rgba(255, 253, 248, 0.58);
}

.game-player-detail-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.game-player-detail-card strong,
.game-player-detail-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player-detail-card span,
.game-player-detail-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-player-detail-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  margin: 0;
}

.game-player-detail-card dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player-activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-player-activity-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.58);
}

.game-player-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-player-activity-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(240, 247, 241, 0.5)),
    rgba(255, 253, 248, 0.58);
}

.game-player-activity-card strong {
  color: var(--ink);
}

.game-player-activity-list {
  display: grid;
  gap: 6px;
}

.game-player-activity-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(62, 124, 69, 0.1);
}

.game-player-activity-list span:first-child {
  border-top: 0;
}

.game-player-activity-list b,
.game-player-activity-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-player-activity-list small {
  color: var(--muted);
  font-weight: 900;
}

.game-mod-row {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.game-mod-upload-row {
  grid-template-columns: minmax(150px, 0.4fr) auto;
  align-items: center;
}

.game-modpack-row {
  grid-template-columns: minmax(130px, 0.35fr) minmax(140px, 0.45fr) auto auto auto;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(238, 246, 241, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 10px 22px rgba(32, 35, 30, 0.045);
}

.game-mod-upload-check,
.game-modpack-check {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.game-modpack-check input {
  width: 15px;
  height: 15px;
  accent-color: #3e7c45;
}

.game-modpack-status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.game-modpack-status a {
  color: #245f35;
  font-weight: 950;
}

.game-mod-output {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

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

.game-mod-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(246, 248, 244, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.game-mod-summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-mod-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-mod-analysis {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 246, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 24px rgba(34, 52, 42, 0.05);
}

.game-mod-analysis.has-issues {
  border-color: rgba(143, 54, 40, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.86), rgba(249, 245, 239, 0.62));
}

.game-mod-analysis-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.game-mod-analysis-head span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-mod-analysis-head span:first-child {
  display: grid;
  gap: 2px;
}

.game-mod-analysis-head strong {
  color: var(--ink);
  font-size: 15px;
}

.game-mod-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-mod-analysis-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.game-mod-analysis-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}

.game-mod-analysis-grid ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.game-mod-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-mod-card.is-disabled {
  opacity: 0.74;
}

.game-mod-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.game-mod-main > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-mod-card dl {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}

.game-mod-card dt {
  color: var(--muted);
  font-weight: 900;
}

.game-mod-card dd,
.game-mod-card p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-mod-card dd {
  white-space: nowrap;
}

.game-mod-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-mod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-mod-tags span {
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-mod-tags span.danger {
  border-color: rgba(165, 65, 50, 0.2);
  color: #7f2e25;
  background: rgba(165, 65, 50, 0.08);
}

.game-mod-version-list {
  display: grid;
  gap: 6px;
}

.game-mod-version-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.game-mod-version-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.game-mod-version-row strong,
.game-mod-version-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-mod-version-row strong {
  color: var(--ink);
  font-size: 12px;
}

.game-mod-version-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.game-metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-metrics-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.game-metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.game-metric-summary-item {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(241, 247, 241, 0.5)),
    rgba(255, 253, 248, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.game-metric-summary-item strong,
.game-metric-summary-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-metric-summary-item strong {
  color: var(--ink);
  font-size: 16px;
}

.game-metric-summary-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.game-metric-summary-item.is-warning {
  border-color: rgba(165, 122, 42, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(253, 247, 232, 0.58));
}

.game-metric-summary-item.is-critical {
  border-color: rgba(165, 65, 50, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(252, 238, 233, 0.58));
}

.game-metric-summary-item.is-unknown {
  opacity: 0.72;
}

.game-metrics-alert-note {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(62, 124, 69, 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(241, 248, 242, 0.58);
  font-size: 12px;
  font-weight: 850;
}

.game-metrics-alert-note.is-critical {
  border-color: rgba(165, 65, 50, 0.22);
  color: #7f2e25;
  background: rgba(252, 238, 233, 0.62);
}

.game-backup-row {
  grid-template-columns: minmax(160px, 0.5fr) minmax(240px, 1fr) auto auto auto auto;
}

.game-backup-prune-row {
  grid-template-columns: minmax(120px, 0.28fr) minmax(140px, 0.32fr) auto auto;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(239, 246, 240, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 20px rgba(32, 35, 30, 0.04);
}

.game-backup-check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.game-backup-check input {
  width: 15px;
  height: 15px;
  accent-color: #3e7c45;
}

.game-backup-check:has(input:disabled) {
  opacity: 0.55;
}

.game-backup-listing {
  margin-top: 12px;
}

.game-backup-storage-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(238, 245, 242, 0.56));
  box-shadow: 0 14px 30px rgba(32, 35, 30, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.game-backup-storage-card.warning {
  border-color: rgba(165, 122, 42, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 252, 243, 0.82), rgba(248, 243, 229, 0.58));
}

.game-backup-storage-card.critical {
  border-color: rgba(165, 65, 50, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 248, 245, 0.86), rgba(249, 235, 231, 0.62));
}

.game-backup-storage-card > div,
.game-backup-storage-card dl,
.game-backup-storage-card p {
  min-width: 0;
}

.game-backup-storage-card span {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(62, 124, 69, 0.1);
  color: #315d36;
  font-size: 12px;
  font-weight: 900;
}

.game-backup-storage-card.warning span {
  background: rgba(165, 122, 42, 0.12);
  color: #7a5a1d;
}

.game-backup-storage-card.critical span {
  background: rgba(165, 65, 50, 0.12);
  color: #7f2e25;
}

.game-backup-storage-card strong,
.game-backup-storage-card small,
.game-backup-storage-card dd,
.game-backup-storage-card p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-backup-storage-card strong {
  display: block;
  margin-top: 6px;
}

.game-backup-storage-card small,
.game-backup-storage-card dt,
.game-backup-storage-card p {
  color: var(--muted);
}

.game-backup-storage-card dl {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}

.game-backup-storage-card dt {
  font-weight: 900;
}

.game-backup-storage-card dd,
.game-backup-storage-card p {
  margin: 0;
}

.game-backup-storage-card p {
  grid-column: 1 / -1;
  white-space: normal;
}

.game-backup-prune-result {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.game-backup-prune-result:empty {
  display: none;
}

.game-backup-prune-summary,
.game-backup-prune-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.game-backup-prune-summary {
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
}

.game-backup-prune-summary span {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(62, 124, 69, 0.1);
  color: #315d36;
  font-size: 12px;
  font-weight: 900;
}

.game-backup-prune-summary strong,
.game-backup-prune-list span,
.game-backup-prune-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-backup-prune-summary small,
.game-backup-prune-list small {
  color: var(--muted);
}

.game-backup-prune-list {
  grid-template-columns: minmax(180px, 0.44fr) minmax(0, 1fr);
  font-size: 13px;
}

.game-backup-schedule-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(237, 243, 246, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 26px rgba(32, 35, 30, 0.045);
}

.game-policy-box {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(237, 243, 246, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 26px rgba(32, 35, 30, 0.045);
}

.game-backup-schedule-box h4 {
  margin: 0;
  font-size: 15px;
}

.game-policy-box h4 {
  margin: 0;
  font-size: 15px;
}

.game-policy-row {
  grid-template-columns: auto minmax(150px, 0.64fr) minmax(160px, 0.5fr) auto minmax(90px, 0.28fr) minmax(92px, 0.22fr) minmax(92px, 0.22fr) auto;
}

.game-policy-threshold-row {
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  padding-top: 8px;
  border-top: 1px solid rgba(32, 35, 30, 0.08);
}

.game-alert-settings-row {
  grid-template-columns: repeat(6, minmax(92px, 1fr)) auto;
  align-items: end;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(237, 243, 246, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 22px rgba(32, 35, 30, 0.04);
}

.game-alert-ops-settings-row {
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  margin-top: -4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(237, 243, 246, 0.32));
}

.game-backup-schedule-row {
  grid-template-columns: minmax(150px, 0.7fr) minmax(110px, 0.34fr) minmax(130px, 0.42fr) auto auto auto;
}

.game-operation-schedule-row {
  grid-template-columns: minmax(150px, 0.58fr) minmax(104px, 0.26fr) minmax(110px, 0.28fr) minmax(130px, 0.34fr) minmax(220px, 0.9fr) auto auto auto;
}

.game-operation-schedule-row .wide {
  min-width: 220px;
}

.game-operation-sequence-editor {
  display: grid;
  gap: 6px;
}

.game-operation-sequence-editor[hidden] {
  display: none;
}

.game-operation-sequence-editor textarea {
  min-height: 108px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.game-backup-schedule-list {
  display: grid;
  gap: 8px;
}

.game-backup-schedule-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.game-backup-schedule-card.is-disabled {
  opacity: 0.68;
}

.game-backup-schedule-card.is-readiness-warning {
  border-color: rgba(176, 136, 58, 0.22);
}

.game-backup-schedule-card.is-readiness-blocked {
  border-color: rgba(165, 65, 50, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(252, 241, 238, 0.48));
}

.game-operation-playbook-card.is-current {
  border-color: rgba(64, 126, 112, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 248, 245, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(64, 126, 112, 0.07);
}

.game-operation-playbook-card.is-current.is-readiness-warning {
  border-color: rgba(176, 136, 58, 0.28);
}

.game-operation-playbook-card.is-current.is-readiness-blocked {
  border-color: rgba(165, 65, 50, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(252, 241, 238, 0.52));
}

.game-backup-schedule-card > div,
.game-backup-schedule-card dl {
  min-width: 0;
}

.game-backup-schedule-card strong,
.game-backup-schedule-card small,
.game-backup-schedule-card dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-backup-schedule-card small,
.game-backup-schedule-card dt {
  color: var(--muted);
}

.game-backup-schedule-card dl {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 5px 9px;
  margin: 0;
  font-size: 13px;
}

.game-backup-schedule-card dt {
  font-weight: 900;
}

.game-backup-schedule-card dd,
.game-backup-schedule-card p {
  margin: 0;
}

.game-backup-schedule-card p {
  grid-column: 1 / -1;
}

.game-backup-schedule-card .game-readiness-note {
  color: #755328;
  font-size: 13px;
}

.game-readiness-badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-readiness-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(64, 126, 112, 0.16);
  border-radius: 8px;
  background: rgba(237, 250, 246, 0.7);
  color: #2f6f62;
  font-size: 12px;
  font-weight: 900;
}

.game-readiness-steps {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.game-readiness-steps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-readiness-steps span.requires-auth {
  border-color: rgba(143, 54, 40, 0.16);
  background: rgba(255, 246, 238, 0.74);
  color: #8f3628;
}

.game-readiness-steps strong {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  border-radius: 50%;
  background: rgba(64, 126, 112, 0.12);
  color: #407e70;
  font-size: 11px;
  line-height: 1;
}

.game-readiness-steps em {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(143, 54, 40, 0.1);
  color: #8f3628;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.game-backup-schedule-card.is-readiness-blocked .game-readiness-note {
  color: #8f3628;
}

.game-schedule-agenda-list {
  display: grid;
  gap: 8px;
}

.game-schedule-agenda-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-left: 3px solid rgba(62, 124, 69, 0.44);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(250, 252, 250, 0.44)),
    rgba(255, 255, 255, 0.54);
  box-shadow: 0 10px 26px rgba(32, 35, 30, 0.04);
}

.game-schedule-agenda-card.is-warning {
  border-left-color: rgba(176, 136, 58, 0.52);
}

.game-schedule-agenda-card.is-blocked {
  border-left-color: rgba(165, 65, 50, 0.54);
}

.game-schedule-agenda-card.is-disabled {
  border-left-color: rgba(32, 35, 30, 0.18);
  opacity: 0.68;
}

.game-schedule-agenda-card > div,
.game-schedule-agenda-card dl {
  min-width: 0;
}

.game-schedule-agenda-card strong,
.game-schedule-agenda-card small,
.game-schedule-agenda-card dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-schedule-agenda-card > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
}

.game-schedule-agenda-card small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.game-schedule-agenda-card dl {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 5px 9px;
  margin: 0;
  font-size: 13px;
}

.game-schedule-agenda-card dt {
  color: var(--muted);
  font-weight: 900;
}

.game-schedule-agenda-card dd,
.game-schedule-agenda-card p {
  margin: 0;
}

.game-schedule-agenda-card p {
  grid-column: 1 / -1;
  color: #755328;
  font-size: 13px;
}

.game-active-task-list,
.game-alert-list,
.game-task-list {
  display: grid;
  gap: 8px;
}

.game-active-task-list {
  margin-bottom: 10px;
}

.game-task-filter-row {
  grid-template-columns: minmax(220px, 0.42fr) max-content;
  margin: 8px 0 10px;
}

.game-alert-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-alert-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 247, 242, 0.48));
  box-shadow: 0 10px 22px rgba(32, 35, 30, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-alert-row.is-critical {
  border-color: rgba(165, 65, 50, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.78), rgba(252, 238, 233, 0.42));
}

.game-alert-row.is-warning,
.game-alert-row.is-acknowledged {
  border-color: rgba(165, 122, 42, 0.18);
}

.game-alert-row.is-resolved {
  opacity: 0.68;
}

.game-alert-row > div,
.game-alert-row dl {
  min-width: 0;
}

.game-alert-row > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
}

.game-alert-row > div small,
.game-alert-row p {
  grid-column: 1 / -1;
}

.game-alert-row strong,
.game-alert-row small,
.game-alert-row dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-alert-row small,
.game-alert-row dt {
  color: var(--muted);
}

.game-alert-row dl {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 5px 9px;
  margin: 0;
  font-size: 13px;
}

.game-alert-row dt {
  font-weight: 900;
}

.game-alert-row dd,
.game-alert-row p {
  margin: 0;
}

.game-alert-row p {
  color: #4f5a50;
  font-size: 13px;
}

.game-active-task-empty {
  padding: 10px 12px;
  border: 1px dashed rgba(32, 35, 30, 0.12);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.game-task-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(244, 247, 242, 0.46));
  box-shadow: 0 10px 22px rgba(32, 35, 30, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-task-row.is-failed {
  border-color: rgba(165, 65, 50, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.74), rgba(252, 238, 233, 0.42));
}

.game-task-row.is-running {
  border-color: rgba(165, 122, 42, 0.18);
}

.game-active-task-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 246, 240, 0.52));
}

.game-task-row > div,
.game-task-row dl {
  min-width: 0;
}

.game-task-row > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
}

.game-task-row > div small {
  grid-column: 1 / -1;
}

.game-task-row strong,
.game-task-row small,
.game-task-row dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-task-row small,
.game-task-row dt {
  color: var(--muted);
}

.game-task-row dl {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 5px 9px;
  margin: 0;
  font-size: 13px;
}

.game-task-row dt {
  font-weight: 900;
}

.game-task-row dd,
.game-task-row p {
  margin: 0;
}

.game-task-row p {
  grid-column: 1 / -1;
}

.game-task-detail {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid rgba(32, 35, 30, 0.08);
  padding-top: 8px;
}

.game-task-detail summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.game-task-detail summary::-webkit-details-marker {
  display: none;
}

.game-task-detail dl {
  grid-template-columns: 72px minmax(0, 1fr) 72px minmax(0, 1fr);
  margin-top: 8px;
}

.game-task-detail .admin-json {
  max-height: 220px;
  margin: 8px 0 0;
  overflow: auto;
}

.game-task-row .status-pill.success {
  border-color: rgba(62, 124, 69, 0.2);
  color: #315d36;
}

.game-task-row .status-pill.danger {
  border-color: rgba(165, 65, 50, 0.22);
  color: #7f2e25;
}

.game-task-row .status-pill.warning {
  border-color: rgba(165, 122, 42, 0.22);
  color: #7a5a1d;
}

.game-backup-row-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(247, 245, 239, 0.7));
  box-shadow: 0 10px 24px rgba(32, 35, 30, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-backup-row-card.is-incremental {
  border-color: rgba(40, 114, 94, 0.2);
  background:
    linear-gradient(180deg, rgba(250, 255, 252, 0.9), rgba(241, 248, 245, 0.72));
}

.game-backup-row-card > div,
.game-backup-row-card dl {
  min-width: 0;
}

.game-backup-row-card strong,
.game-backup-row-card small,
.game-backup-row-card dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-backup-row-card small,
.game-backup-row-card dt {
  color: var(--muted);
}

.game-backup-row-card dl {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}

.game-backup-row-card dt {
  font-weight: 900;
}

.game-backup-row-card dd {
  margin: 0;
}

.game-backup-row-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.game-backup-row-card .table-mini-button.danger {
  border-color: rgba(165, 65, 50, 0.24);
  color: #7f2e25;
}

.game-backup-detail {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(241, 246, 248, 0.6));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 30px rgba(68, 76, 66, 0.08);
}

.game-backup-detail:empty {
  display: none;
}

.game-backup-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.game-backup-detail-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-backup-detail-head strong,
.game-backup-detail-paths strong {
  color: var(--ink);
  font-weight: 900;
}

.game-backup-detail-head small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-backup-detail dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 0;
  font-size: 12px;
}

.game-backup-detail dt {
  color: var(--muted);
  font-weight: 900;
}

.game-backup-detail dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-backup-detail-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.game-backup-restore-blockers {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(165, 65, 50, 0.16);
  border-radius: 8px;
  background: rgba(255, 244, 241, 0.62);
}

.game-backup-restore-blockers strong {
  color: #7f2e25;
  font-size: 12px;
  font-weight: 900;
}

.game-backup-restore-blockers span {
  color: #7f2e25;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.game-backup-detail-paths strong {
  flex: 0 0 100%;
  font-size: 12px;
}

.game-backup-detail-paths span {
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.game-metric-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.62fr) minmax(150px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 242, 0.5));
  box-shadow: 0 10px 22px rgba(32, 35, 30, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.game-metric-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.game-metric-card span,
.game-metric-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-metric-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.game-world-storage-card {
  grid-template-columns: minmax(120px, 0.52fr) minmax(170px, 1fr);
}

.game-world-dimensions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.game-world-dimensions span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.game-world-dimensions strong,
.game-world-dimensions small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-world-dimensions strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.game-sparkline {
  width: 100%;
  height: 54px;
  min-width: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(62, 124, 69, 0.06), rgba(255, 255, 255, 0.3));
}

.game-sparkline-line {
  fill: none;
  stroke: rgba(62, 124, 69, 0.82);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.game-sparkline-area {
  fill: rgba(62, 124, 69, 0.12);
}

.game-sparkline.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-log-output {
  min-height: 320px;
  max-height: 520px;
  white-space: pre-wrap;
}

.game-log-analysis {
  display: grid;
  gap: 10px;
  min-height: 128px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(244, 247, 242, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-log-analysis-head,
.game-log-analysis-grid,
.game-log-analysis-list,
.game-crash-report-list {
  min-width: 0;
}

.game-log-analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-log-analysis-head strong,
.game-crash-report-list > strong {
  color: var(--ink);
}

.game-log-analysis-head small,
.game-log-analysis-grid small,
.game-log-analysis-list span,
.game-crash-report-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-log-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.game-log-analysis-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.game-log-analysis-grid strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.game-log-analysis-grid span.is-warning,
.game-log-gc-summary.is-warning {
  border-color: rgba(174, 116, 25, 0.24);
  background: rgba(174, 116, 25, 0.08);
}

.game-log-analysis-grid span.is-critical,
.game-log-gc-summary.is-critical {
  border-color: rgba(165, 65, 50, 0.24);
  background: rgba(165, 65, 50, 0.08);
}

.game-log-analysis-grid span.is-ok,
.game-log-gc-summary.is-ok {
  border-color: rgba(62, 124, 69, 0.2);
  background: rgba(62, 124, 69, 0.07);
}

.game-log-gc-summary {
  display: grid;
  grid-template-columns: minmax(130px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.game-log-gc-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-log-gc-summary strong {
  color: var(--ink);
}

.game-log-gc-summary small,
.game-log-gc-summary p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-log-gc-summary p {
  min-width: 0;
  margin: 0;
}

.game-log-analysis-list,
.game-crash-report-list {
  display: grid;
  gap: 7px;
}

.game-log-analysis-list.compact {
  gap: 5px;
}

.game-log-analysis-list article,
.game-crash-report-list button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.game-log-analysis-list article.error,
.game-log-analysis-list article.exception {
  border-color: rgba(165, 65, 50, 0.2);
  background: rgba(165, 65, 50, 0.06);
}

.game-log-analysis-list article strong,
.game-crash-report-list button strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-crash-report-list button {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.game-crash-report-list button span {
  grid-row: span 2;
  width: 42px;
  padding: 3px 0;
  border-radius: 6px;
  background: rgba(165, 65, 50, 0.1);
  color: #7f2e25;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.game-follow-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.game-file-listing {
  margin: 12px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-file-checksum,
.game-file-versions {
  display: grid;
  gap: 8px;
  min-height: 86px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(244, 247, 242, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.game-file-checksum {
  min-height: 104px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.74), rgba(241, 246, 248, 0.56));
}

.game-file-checksum-head,
.game-file-versions-head,
.game-file-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.game-file-checksum-head strong,
.game-file-versions-head strong,
.game-file-version-row strong {
  color: var(--ink);
}

.game-file-checksum-head small,
.game-file-versions-head small,
.game-file-version-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-file-checksum dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 12px;
}

.game-file-checksum dt {
  color: var(--muted);
  font-weight: 900;
}

.game-file-checksum dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-file-version-list {
  display: grid;
  gap: 6px;
}

.game-file-version-row {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.game-file-version-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-file-version-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.game-file-listing button {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  border-color: rgba(32, 35, 30, 0.12);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.game-file-listing button span {
  grid-row: span 2;
  width: 42px;
  padding: 3px 0;
  border-radius: 6px;
  background: rgba(62, 124, 69, 0.1);
  color: #275d2e;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.game-file-listing button:hover {
  border-color: rgba(62, 124, 69, 0.34);
  background: rgba(255, 253, 248, 0.96);
}

.game-file-editor textarea {
  min-height: 300px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.game-file-panel .server-command-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto auto;
}

.game-log-panel .server-command-row {
  grid-template-columns: 140px minmax(220px, 1fr) auto auto auto;
}

.game-diagnostics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(32, 35, 30, 0.08);
}

.game-diagnostics-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-diagnostics-head strong {
  color: var(--ink);
  font-size: 14px;
}

.game-diagnostics-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-diagnostics-result {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.game-world-hotspots-result {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.game-world-pregen-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(5, minmax(96px, 1fr)) repeat(5, auto);
  gap: 8px;
  align-items: end;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
}

.game-world-pregen-tools > div,
.game-world-pregen-tools label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.game-world-pregen-tools strong,
.game-world-pregen-head strong,
.game-world-pregen-response strong {
  color: var(--ink);
}

.game-world-pregen-tools small,
.game-world-pregen-tools span,
.game-world-pregen-head small,
.game-world-pregen-response span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-world-pregen-result {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.game-world-pregen-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.game-world-pregen-head span,
.game-world-pregen-response article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.game-world-pregen-response {
  display: grid;
  gap: 7px;
}

.game-world-pregen-response strong {
  min-width: 0;
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-diagnostics-summary,
.game-diagnostics-props,
.game-diagnostics-checks {
  display: grid;
  gap: 8px;
}

.game-diagnostics-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-diagnostics-summary span,
.game-diagnostics-props span,
.game-diagnostics-check {
  min-width: 0;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 26px rgba(40, 48, 38, 0.06);
}

.game-diagnostics-summary span {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.game-diagnostics-summary strong,
.game-diagnostics-check strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-diagnostics-summary small,
.game-diagnostics-check small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-diagnostics-props {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.game-diagnostics-props span {
  padding: 7px 9px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.game-diagnostics-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-diagnostics-check {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
}

.game-diagnostics-check.ok {
  border-color: rgba(62, 124, 69, 0.2);
  background: rgba(246, 255, 248, 0.64);
}

.game-diagnostics-check.warning {
  border-color: rgba(191, 133, 50, 0.22);
  background: rgba(255, 250, 238, 0.64);
}

.game-diagnostics-check.error {
  border-color: rgba(181, 72, 65, 0.24);
  background: rgba(255, 244, 242, 0.64);
}

.game-hotspot-head,
.game-hotspot-sections,
.game-hotspot-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.game-hotspot-head {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-hotspot-head span,
.game-hotspot-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 10px 24px rgba(40, 48, 38, 0.045);
}

.game-hotspot-head span {
  display: grid;
  gap: 3px;
}

.game-hotspot-head strong,
.game-hotspot-item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-hotspot-head small,
.game-hotspot-item small,
.game-hotspot-item dt,
.game-hotspot-item dd {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-hotspot-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-hotspot-sections > section,
.game-hotspot-item {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.game-hotspot-item > div,
.game-hotspot-item dl {
  min-width: 0;
}

.game-hotspot-item dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  margin: 0;
}

.game-hotspot-item dd {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-spark-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 160px) auto auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(241, 248, 244, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.game-spark-tools > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-spark-tools strong,
.game-spark-result-head strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.game-spark-tools small,
.game-spark-result-head small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
}

.game-spark-result {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.game-spark-result-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr)) auto;
  gap: 10px;
  align-items: center;
}

.game-spark-result-head span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.game-spark-result pre {
  max-height: 160px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(24, 31, 27, 0.045);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.55;
}

.game-jvm-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.game-jvm-tools > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-jvm-tools strong,
.game-jvm-result-head strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.game-jvm-tools small,
.game-jvm-result-head small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-jvm-result {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.game-jvm-result-head,
.game-jvm-preview-grid {
  display: grid;
  gap: 10px;
}

.game-jvm-result-head {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-jvm-result-head span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.game-jvm-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-jvm-preview-grid pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(24, 31, 27, 0.045);
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.55;
}

.game-jvm-warning {
  padding: 10px 12px;
  border: 1px solid rgba(181, 72, 65, 0.24);
  border-radius: 8px;
  background: rgba(255, 244, 242, 0.64);
  color: #8a2f27;
  font-size: 12px;
  font-weight: 900;
}

.game-onboarding-content {
  display: grid;
  gap: 12px;
}

.game-agent-pairing-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(62, 124, 69, 0.2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(242, 250, 239, 0.82), rgba(255, 255, 255, 0.62));
}

.game-agent-pairing-card > p {
  margin: 0;
}

.game-agent-pairing-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
}

.game-agent-pairing-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-agent-pairing-form input {
  width: 100%;
  min-width: 0;
}

.game-agent-pairing-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(62, 124, 69, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.game-agent-pairing-code span,
.game-agent-pairing-code small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-agent-pairing-code strong {
  overflow-wrap: anywhere;
  color: #2f6d39;
  font: 900 15px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.game-agent-pairing-code .button {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.game-agent-pairing-list {
  display: grid;
  gap: 6px;
}

.game-agent-pairing-list > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.game-agent-pairing-list strong,
.game-agent-pairing-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-agent-pairing-list small {
  color: var(--muted);
  font-size: 12px;
}

.game-agent-pairing-list button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.game-onboarding-summary,
.game-onboarding-links,
.game-onboarding-steps,
.game-onboarding-templates {
  display: grid;
  gap: 8px;
}

.game-onboarding-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-onboarding-summary span,
.game-onboarding-steps span,
.game-onboarding-links a,
.game-onboarding-commands,
.game-onboarding-templates details {
  min-width: 0;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 26px rgba(40, 48, 38, 0.06);
}

.game-onboarding-summary span {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.game-onboarding-summary strong,
.game-onboarding-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-onboarding-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.game-onboarding-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-onboarding-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-onboarding-links a {
  padding: 9px 11px;
  color: #2f6d39;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.game-onboarding-links a:hover {
  border-color: rgba(62, 124, 69, 0.26);
  background: rgba(255, 255, 255, 0.78);
}

.game-onboarding-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-onboarding-steps span {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.game-onboarding-steps strong {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(62, 124, 69, 0.12);
  color: #2f6d39;
  font-size: 12px;
}

.game-onboarding-commands summary,
.game-onboarding-templates summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.game-onboarding-commands pre,
.game-onboarding-templates pre {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}

.game-onboarding-templates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-deploy-packages {
  display: grid;
  gap: 10px;
}

.game-deploy-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.game-deploy-package-head small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-deploy-release-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.game-deploy-readiness {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(238, 246, 235, 0.42));
}

.game-deploy-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.game-deploy-readiness-head small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.game-deploy-readiness-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(32, 35, 30, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.game-deploy-readiness-grid strong,
.game-deploy-readiness-grid small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-deploy-readiness-grid strong {
  color: var(--ink);
  font-size: 13px;
}

.game-deploy-readiness-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.game-deploy-retention-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.game-deploy-retention-tools span {
  flex: 1 1 240px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-deploy-package-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(32, 35, 30, 0.09);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(246, 250, 244, 0.58));
  box-shadow: 0 14px 34px rgba(40, 48, 38, 0.07);
}

.game-deploy-status {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.game-deploy-status.ok {
  border-color: rgba(62, 124, 69, 0.22);
  background: rgba(62, 124, 69, 0.1);
  color: #2f6d39;
}

.game-deploy-status.error {
  border-color: rgba(181, 72, 65, 0.24);
  background: rgba(181, 72, 65, 0.1);
  color: #8a2f27;
}

.game-deploy-package-card > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.game-deploy-package-card strong,
.game-deploy-package-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-deploy-package-card strong {
  color: var(--ink);
  font-size: 13px;
}

.game-deploy-package-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-deploy-package-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.game-deploy-package-card dt,
.game-deploy-package-card dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-deploy-package-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.game-deploy-package-card dd {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.game-deploy-package-card .row-actions {
  justify-content: flex-start;
}

.game-deploy-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-deploy-checks span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.game-deploy-checks strong {
  color: inherit;
  font-size: 11px;
}

.game-deploy-checks .ok {
  border-color: rgba(62, 124, 69, 0.18);
  background: rgba(62, 124, 69, 0.08);
  color: #2f6d39;
}

.game-deploy-checks .warning {
  border-color: rgba(171, 117, 38, 0.22);
  background: rgba(255, 244, 216, 0.48);
  color: #80601f;
}

.game-deploy-checks .error {
  border-color: rgba(181, 72, 65, 0.22);
  background: rgba(255, 244, 242, 0.58);
  color: #8a2f27;
}

.game-console-panel .server-command-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.game-console-templates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.game-console-template-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(50, 58, 48, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(239, 244, 241, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(32, 35, 30, 0.035);
}

.game-console-template-card strong,
.game-console-template-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-console-template-card small {
  color: var(--muted);
  font-size: 12px;
}

.game-console-template-card > div:last-child {
  display: flex;
  gap: 6px;
}

.game-console-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
}

.game-console-history button {
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(50, 58, 48, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.game-console-history button:hover {
  color: var(--ink);
  border-color: rgba(66, 126, 76, 0.24);
  background: rgba(255, 255, 255, 0.78);
}

.game-file-panel .game-file-mutate-row {
  margin-top: 8px;
  grid-template-columns: minmax(240px, 1fr) repeat(5, max-content);
}

.game-file-panel .game-file-search-row {
  margin-top: 8px;
  grid-template-columns: minmax(0, 1fr) 150px auto;
}

.game-config-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.game-config-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.game-config-form label > span,
.game-config-diff summary span,
.game-config-diff summary small,
.game-file-diff summary span,
.game-file-diff summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-config-form input,
.game-config-form select {
  width: 100%;
  min-width: 0;
}

.game-carpet-add-row {
  margin-top: 10px;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr) max-content;
}

.game-gamerule-row {
  margin-top: 10px;
  grid-template-columns: minmax(160px, 0.6fr) minmax(190px, 0.75fr) minmax(140px, 0.55fr) max-content max-content;
}

.game-access-json-row {
  margin-top: 10px;
  grid-template-columns: minmax(150px, 0.52fr) minmax(160px, 0.58fr) minmax(220px, 0.8fr) repeat(4, max-content);
}

.game-gamerule-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.game-gamerule-chip {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(245, 249, 243, 0.48)),
    rgba(255, 253, 248, 0.58);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.game-gamerule-chip:hover,
.game-gamerule-chip:focus-visible {
  border-color: rgba(62, 124, 69, 0.3);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(40, 80, 44, 0.08);
  outline: none;
}

.game-gamerule-chip strong,
.game-gamerule-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-gamerule-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.game-carpet-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.game-access-json-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.game-access-json-apply-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.game-access-json-entry {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(245, 249, 243, 0.5)),
    rgba(255, 253, 248, 0.56);
}

.game-access-json-entry > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.game-access-json-entry strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-access-json-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.game-access-json-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.game-access-json-fields label > span,
.game-access-json-row label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-access-json-fields input,
.game-access-json-row input,
.game-access-json-row select {
  width: 100%;
  min-width: 0;
}

.game-carpet-rule {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(62, 124, 69, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(245, 249, 243, 0.5)),
    rgba(255, 253, 248, 0.56);
}

.game-carpet-rule label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.game-carpet-rule label > span,
.game-carpet-add-row label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-carpet-rule input,
.game-carpet-add-row input {
  width: 100%;
  min-width: 0;
}

.game-config-toggle {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(62, 124, 69, 0.18);
  border-radius: 8px;
  background: rgba(62, 124, 69, 0.06);
}

.game-config-toggle input {
  width: auto;
}

.game-config-diff,
.game-file-diff {
  margin-top: 12px;
  border-top: 1px solid rgba(32, 35, 30, 0.08);
  padding-top: 10px;
}

.game-file-diff {
  margin-bottom: 10px;
}

.game-file-diff .admin-json {
  min-height: 88px;
  max-height: 240px;
}

.game-config-diff summary,
.game-file-diff summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.game-config-diff summary::-webkit-details-marker,
.game-file-diff summary::-webkit-details-marker {
  display: none;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-pagination button {
  min-width: 30px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.admin-pagination button.is-active {
  border-color: var(--grass);
  background: rgba(62, 124, 69, 0.12);
}

.admin-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-pagination i {
  color: var(--muted);
  font-style: normal;
}

.admin-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-checklist li {
  padding: 12px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
}

.admin-checklist li.ok {
  border-left-color: var(--grass);
}

.admin-checklist strong,
.admin-checklist span {
  display: block;
}

#configuration .system-config-group .mail-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#configuration .system-config-group label {
  align-content: start;
  min-width: 0;
}

#configuration .system-config-group label > small {
  min-height: 1.4em;
  overflow-wrap: anywhere;
}

#configuration [data-system-config-clear] {
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 9px;
}

#configuration #system-config-backup {
  min-width: min(360px, 100%);
}

@media (max-width: 720px) {
  #configuration > .admin-tools-grid.two,
  #configuration > #system-config-groups.admin-tools-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }

  #configuration .system-config-group .mail-settings-grid {
    grid-template-columns: 1fr;
  }

  #configuration .admin-section-head .row-actions,
  #configuration .admin-section-head.compact .row-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  #configuration .admin-section-head .row-actions > * {
    width: 100%;
  }
}

.admin-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1040px, calc(100% - 48px));
  height: 100vh;
  padding: 22px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  border: 0;
  background: rgba(20, 24, 20, 0.02);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.admin-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.drawer-close-tab {
  position: fixed;
  top: 92px;
  right: min(1040px, calc(100% - 48px));
  z-index: 51;
  display: grid;
  place-items: center;
  width: 64px;
  height: 76px;
  border: 1px solid rgba(32, 35, 30, 0.16);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(244, 240, 231, 0.96));
  box-shadow: -10px 14px 28px rgba(32, 35, 30, 0.16);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 160ms ease, transform 180ms ease, visibility 160ms ease, background 160ms ease;
  visibility: hidden;
}

.drawer-close-tab::after {
  position: absolute;
  top: 12px;
  right: -1px;
  bottom: 12px;
  width: 1px;
  background: rgba(255, 253, 248, 0.96);
  content: "";
}

.drawer-close-tab span {
  display: grid;
  gap: 2px;
  justify-items: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.drawer-close-tab span::before {
  content: "×";
  font-size: 24px;
  line-height: 0.8;
}

.drawer-close-tab:hover {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 1), rgba(232, 225, 211, 0.98));
  transform: translateX(6px);
}

.drawer-close-tab:focus-visible {
  outline: 3px solid rgba(62, 124, 69, 0.34);
  outline-offset: 3px;
}

.drawer-close-tab.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.admin-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.admin-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-drawer h2 {
  margin-bottom: 0;
  font-size: 28px;
}

#drawer-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

#drawer-actions-host {
  min-height: 0;
}

#drawer-actions-host:empty {
  display: none;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.drawer-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.detail-block,
.answer-block,
.drawer-notes {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 245, 239, 0.72);
}

.answer-block.wide,
.score-breakdown-block.wide {
  grid-column: 1 / -1;
}

.detail-block dl {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0 0;
}

.detail-block dd {
  overflow-wrap: anywhere;
}

.answer-block,
.drawer-notes,
.drawer-actions {
  margin-top: 12px;
}

.drawer-actions-toggle,
.drawer-actions-head {
  display: none;
}

.drawer-actions {
  position: static;
  bottom: auto;
  z-index: 2;
  margin-right: -2px;
  margin-left: -2px;
  padding: 16px 18px 24px;
  border-top: 1px solid rgba(32, 35, 30, 0.1);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.98) 34%);
  backdrop-filter: blur(8px);
}

.answer-block p,
.drawer-notes p {
  margin-bottom: 0;
  white-space: pre-wrap;
  line-height: 1.72;
}

.score-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.score-breakdown-head h3 {
  margin-bottom: 0;
}

.score-breakdown-head strong {
  padding: 4px 10px;
  border: 1px solid rgba(62, 124, 69, 0.34);
  border-radius: 999px;
  background: rgba(62, 124, 69, 0.1);
  color: #275d2e;
}

.score-breakdown-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 52px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.score-breakdown-row strong,
.score-breakdown-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-breakdown-row span {
  color: var(--muted);
  font-size: 13px;
}

.score-breakdown-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.score-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e0d4;
}

.score-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grass);
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-hero-card,
  .admin-overview-grid,
  .admin-tools-grid,
  .game-ops-layout,
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  .game-instance-grid,
  .game-instance-snapshot-grid,
  .game-stage-one-summary,
  .game-stage-one-grid,
  .game-activity-summary,
  .game-activity-body,
  .game-instance-import-form,
  .game-import-checklist,
  .game-instance-plan-metrics,
  .game-instance-create-wizard,
  .game-instance-registry-card dl,
  .game-instance-merge-instances,
  .game-metrics-grid,
  .game-metrics-summary-grid,
  .game-alert-list,
  .game-diagnostics-summary,
  .game-diagnostics-props,
  .game-diagnostics-checks,
  .game-hotspot-head,
  .game-hotspot-sections,
  .game-world-pregen-tools,
  .game-world-pregen-head,
  .game-spark-tools,
  .game-spark-result-head,
  .game-jvm-tools,
  .game-jvm-result-head,
  .game-jvm-preview-grid,
  .game-onboarding-summary,
  .game-agent-pairing-form,
  .game-onboarding-links,
  .game-onboarding-steps,
  .game-onboarding-templates,
  .game-deploy-readiness-grid,
  .game-deploy-package-card dl,
  .game-player-row,
  .game-player-message-row,
  .game-player-teleport-row,
  .game-player-filter-row,
  .game-player-selection,
  .game-player-summary,
  .game-player-groups,
  .game-player-detail-grid,
  .game-player-activity-grid,
  .game-mod-row,
  .game-mod-upload-row,
  .game-modpack-row,
  .game-mod-summary,
  .game-mod-analysis-head,
  .game-mod-analysis-grid,
  .game-mod-list,
  .game-mod-version-row,
  .game-backup-storage-card,
  .game-backup-row-card,
  .game-backup-schedule-card,
  .game-schedule-agenda-card,
  .game-alert-row,
  .game-task-row,
  .game-file-listing {
    grid-template-columns: 1fr;
  }

  .game-agent-pairing-code {
    grid-template-columns: 1fr;
  }

  .game-agent-pairing-code .button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .game-instance-import-form label.wide {
    grid-column: auto;
  }

  .game-action-grid,
  .game-player-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-metric-card {
    grid-template-columns: 1fr;
  }

  .game-backup-storage-card dl,
  .game-backup-detail dl {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .game-console-templates {
    grid-template-columns: 1fr;
  }

  .game-player-last-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-log-analysis-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-log-analysis-grid {
    grid-template-columns: 1fr;
  }

  .game-log-gc-summary {
    grid-template-columns: 1fr;
  }

  .game-config-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-gamerule-row {
    grid-template-columns: 1fr;
  }

  .game-access-json-row,
  .game-access-json-fields {
    grid-template-columns: 1fr;
  }

  .game-gamerule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 320px;
  }

  .game-carpet-add-row,
  .game-carpet-rule {
    grid-template-columns: 1fr;
  }

  .game-file-panel .server-command-row {
    grid-template-columns: 1fr;
  }

  .game-file-checksum-head,
  .game-file-versions-head,
  .game-file-version-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-file-version-row .table-mini-button {
    width: 100%;
  }

  .game-file-version-actions {
    width: 100%;
  }

  .game-file-version-actions .table-mini-button {
    flex: 1 1 0;
    width: auto;
  }

  .game-log-panel .server-command-row,
  .game-console-panel .server-command-row,
  .game-backup-panel .game-backup-row,
  .game-backup-panel .game-backup-prune-row,
  .game-task-filter-row,
  .game-policy-row,
  .game-policy-threshold-row,
  .game-alert-settings-row,
  .game-backup-panel .game-backup-schedule-row,
  .game-backup-panel .game-operation-schedule-row,
  .game-file-panel .game-file-mutate-row,
  .game-file-panel .game-file-search-row {
    grid-template-columns: 1fr;
  }

  .game-backup-prune-summary,
  .game-backup-prune-list,
  .game-backup-schedule-card dl,
  .game-task-detail dl,
  .game-task-row dl {
    grid-template-columns: 1fr;
  }

  .admin-page:not(.is-authenticated) .admin-shell {
    width: min(100% - 28px, 620px);
    min-height: auto;
    padding: 22px 0 36px;
  }

  .admin-auth-hero {
    min-height: 0;
    padding: 28px;
  }

  .admin-auth-ledger {
    grid-template-columns: 1fr;
  }

  .admin-command-bar {
    position: static;
  }
}

@media (max-width: 680px) {
  .admin-shell {
    width: min(100% - 24px, 1440px);
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-section-head,
  .admin-filter-row,
  .admin-filter-row.two {
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    display: grid;
  }

  .drawer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drawer-answer-grid,
  .score-breakdown-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-page .site-header {
    position: static;
  }

  .admin-shell {
    gap: 12px;
    width: 100%;
    padding: 0 0 28px;
  }

  .admin-workspace {
    width: min(100% - 20px, 1440px);
    margin: 0 auto;
    gap: 12px;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 28;
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    overflow-x: auto;
    border-width: 1px 0;
    border-radius: 0;
    background: rgba(247, 245, 239, 0.96);
    box-shadow: 0 10px 24px rgba(45, 50, 43, 0.1);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .admin-sidebar strong {
    display: none;
  }

  .admin-sidebar a {
    flex: 0 0 auto;
    min-width: 76px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid rgba(32, 35, 30, 0.1);
    background: rgba(255, 253, 248, 0.76);
    font-size: 13px;
    text-align: center;
    scroll-snap-align: start;
  }

  .admin-page-bar,
  .admin-command-bar,
  .admin-panel,
  .admin-hero-card {
    border-radius: 0;
  }

  .admin-page-bar {
    align-items: flex-start;
    padding: 12px;
  }

  .admin-page-bar > div:last-child {
    display: flex;
    gap: 8px;
  }

  .admin-command-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 10px;
    overflow: visible;
    border-right: 0;
    border-left: 0;
  }

  .admin-command-bar .button {
    width: 100%;
    min-width: 0;
  }

  .admin-panel,
  .admin-hero-card {
    padding: 16px;
  }

  .admin-auth-hero {
    margin: 10px;
    border-radius: var(--radius);
  }

  .admin-section-head {
    gap: 10px;
  }

  .admin-section-head h2 {
    font-size: 28px;
  }

  .admin-section-head .admin-muted {
    justify-self: start;
  }

  .admin-filter-row label,
  .whitelist-tool-layout label,
  .admin-filter-bar label,
  .admin-toolbar label {
    min-width: 0;
  }

  .admin-filter-row input,
  .whitelist-tool-layout input,
  .admin-filter-row select,
  .admin-filter-bar input,
  .admin-filter-bar select,
  .admin-toolbar input,
  .admin-toolbar select,
  .admin-login-card input,
  .admin-login-card select {
    min-height: 46px;
    font-size: 16px;
  }

  .admin-table-wrap {
    margin: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table,
  .admin-table.compact,
  .application-table {
    display: block;
    min-width: 0;
    table-layout: auto;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 10px;
  }

  .admin-table tr {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(32, 35, 30, 0.1);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 10px 24px rgba(45, 50, 43, 0.07);
  }

  .admin-table td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .admin-table td[data-label]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    content: attr(data-label);
  }

  .admin-table .select-cell[data-label]::before {
    display: none;
  }

  .application-table tr {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .application-table .select-cell {
    grid-row: 1 / span 4;
    padding-top: 3px;
  }

  .application-table .player-cell {
    display: grid;
    gap: 4px;
  }

  .application-table .player-cell strong {
    font-size: 20px;
  }

  .application-table .payment-code {
    width: fit-content;
    margin-top: 2px;
  }

  .application-table .status-cell,
  .application-table .review-cell,
  .application-table .expiry-cell,
  .application-table .contact-cell,
  .application-table .risk-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    align-items: center;
    white-space: normal;
  }

  .application-table .status-cell::before,
  .application-table .review-cell::before,
  .application-table .expiry-cell::before,
  .application-table .contact-cell::before,
  .application-table .risk-cell::before,
  .application-table .action-cell::before {
    flex: 0 0 100%;
  }

  .application-table .review-cell,
  .application-table .expiry-cell,
  .application-table .contact-cell {
    color: var(--muted);
    font-size: 13px;
  }

  .application-table .review-cell strong,
  .application-table .expiry-cell strong {
    color: var(--ink);
    font-size: 14px;
  }

  .application-table .contact-cell span,
  .application-table .contact-cell small {
    white-space: normal;
  }

  .application-table .risk-note {
    max-width: none;
    white-space: normal;
  }

  .application-table th:last-child,
  .application-table td:last-child {
    position: static;
    right: auto;
    z-index: auto;
    grid-column: 1 / -1;
    border-left: 0;
    background: transparent;
    box-shadow: none;
  }

  .row-actions,
  .drawer-actions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .row-actions button,
  .drawer-actions .button {
    flex: 0 0 auto;
  }

  .admin-table .row-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    overflow: visible;
  }

  .admin-table .row-actions button {
    width: 100%;
    min-height: 40px;
  }

  .application-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    overflow: visible;
  }

  .application-actions button {
    width: 100%;
    min-height: 42px;
    padding: 7px 8px;
  }

  .admin-pagination {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(86vh, 760px);
    border-radius: 14px 14px 0 0;
    transform: translateY(105%);
  }

  .drawer-close-tab {
    top: auto;
    right: auto;
    bottom: min(86vh, 760px);
    left: 18px;
    width: 84px;
    height: 44px;
    border: 1px solid rgba(32, 35, 30, 0.16);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 22px rgba(32, 35, 30, 0.14);
    transform: translateY(12px);
  }

  .drawer-close-tab::after {
    top: auto;
    right: 12px;
    bottom: -1px;
    left: 12px;
    width: auto;
    height: 1px;
  }

  .drawer-close-tab span {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .drawer-close-tab span::before {
    font-size: 22px;
  }

  .drawer-close-tab:hover,
  .drawer-close-tab.is-open {
    transform: translateY(0);
  }

  .admin-drawer.is-open {
    transform: translateY(0);
  }

  .admin-drawer-head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(255, 253, 248, 0.98);
  }

  .drawer-actions {
    bottom: 0;
    margin-right: -16px;
    margin-left: -16px;
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .drawer-grid {
    grid-template-columns: 1fr;
  }

  .score-breakdown-row {
    grid-template-columns: minmax(0, 1fr) 72px 48px;
  }

  .form-panel {
    gap: 14px;
  }

  .form-panel input,
  .form-panel select,
  .form-panel textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .check-list label {
    padding: 10px;
    border: 1px solid rgba(32, 35, 30, 0.1);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
  }

  .thanks-panel,
  .staff-card,
  .status-card,
  .form-panel,
  .guide-panel {
    padding: 16px;
  }

  .thanks-row {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 12px 0;
  }

  .rank-mark {
    width: 30px;
    height: 30px;
    box-shadow: 2px 2px 0 var(--deep);
  }

  .download-row {
    padding: 13px;
    border-radius: 8px;
  }

  .admin-view-tabs {
    justify-content: flex-start;
    gap: 7px;
  }

  .admin-view-tabs button {
    flex: 1 1 calc(33.333% - 8px);
    min-height: 42px;
    min-width: 92px;
    padding: 7px 9px;
    text-align: center;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  }

  .brand {
    align-items: center;
    gap: 10px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 20px;
    line-height: 1.15;
  }

  .brand small {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
  }

  .site-nav {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    width: calc(100% + 24px);
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 14px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .admin-page {
    background: #f5f3ec;
  }

  .admin-shell {
    gap: 0;
    width: 100%;
    padding: 0 0 calc(26px + env(safe-area-inset-bottom));
  }

  .admin-sidebar {
    top: 0;
    padding: 8px 12px;
    border-top: 1px solid rgba(32, 35, 30, 0.08);
    border-bottom: 1px solid rgba(32, 35, 30, 0.12);
    box-shadow: 0 8px 18px rgba(45, 50, 43, 0.08);
  }

  .admin-sidebar a {
    min-width: auto;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 14px;
    white-space: nowrap;
  }

  .admin-workspace {
    width: 100%;
    gap: 12px;
  }

  .admin-page-bar,
  .admin-command-bar,
  .admin-panel,
  .admin-hero-card {
    width: min(100% - 20px, 620px);
    margin-inline: auto;
    border-radius: 12px;
  }

  .admin-page-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 12px;
  }

  .admin-page-bar span {
    font-size: 20px;
  }

  .admin-page-bar > div:last-child,
  .admin-page-bar .row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-page-bar .row-actions button,
  .admin-command-bar .button {
    width: 100%;
    min-height: 36px;
  }

  .admin-command-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .admin-hero-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .admin-auth-copy h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .admin-auth-copy p {
    font-size: 16px;
    line-height: 1.65;
  }

  .admin-page.is-authenticated .admin-auth-ledger {
    display: none;
  }

  .admin-login-card {
    padding: 16px;
  }

  .admin-panel {
    padding: 14px;
  }

  .admin-section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-section-head h2 {
    font-size: 26px;
    line-height: 1.14;
  }

  .admin-view-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: calc(100% + 4px);
    margin-right: -4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .admin-view-tabs button {
    flex: 0 0 auto;
    min-width: 78px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .admin-filter-row,
  .admin-filter-row.two,
  .admin-filter-row.single {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-filter-row label > span,
  .whitelist-tool-layout label > span {
    font-size: 13px;
    font-weight: 900;
  }

  .admin-filter-row input,
  .whitelist-tool-layout input,
  .admin-filter-row select,
  .admin-toolbar input,
  .admin-toolbar select {
    min-height: 46px;
    border-radius: 9px;
  }

  .admin-bulk-bar {
    position: sticky;
    top: 56px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(45, 50, 43, 0.12);
  }

  .admin-bulk-bar > span {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .admin-bulk-bar .button {
    min-height: 34px;
    min-width: 0;
    width: 100%;
    padding: 7px 8px;
    white-space: normal;
  }

  .admin-modal-backdrop {
    place-items: end center;
    padding: 10px;
    background: rgba(24, 26, 23, 0.34);
  }

  .admin-modal {
    width: 100%;
    max-height: min(76dvh, 620px);
    border-radius: 14px 14px 10px 10px;
  }

  .admin-modal-head,
  .admin-modal-actions {
    padding: 12px;
  }

  .admin-modal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .admin-modal-head h2 {
    font-size: 20px;
  }

  .admin-modal-head .button {
    width: auto;
    min-width: 72px;
    min-height: 38px;
    padding: 7px 12px;
  }

  .duration-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 12px 0;
  }

  .duration-mode-grid.compact {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .duration-mode-grid label {
    min-height: 42px;
    padding: 8px 9px;
    font-size: 13px;
  }

  .duration-input-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px;
  }

  .duration-input-row input {
    min-height: 44px;
  }

  .duration-hint,
  .duration-preview {
    margin: 0 12px 12px;
    font-size: 13px;
  }

  .admin-modal-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 253, 248, 0.96);
  }

  .admin-modal-actions .button {
    width: 100%;
    min-height: 36px;
  }

  .admin-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .admin-table,
  .admin-table.compact,
  .application-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 12px;
    width: 100%;
  }

  .admin-table tr {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(32, 35, 30, 0.1);
    border-radius: 13px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 10px 24px rgba(45, 50, 43, 0.07);
  }

  .admin-table td,
  .application-table td,
  .application-table th {
    display: block;
    width: auto !important;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-table td[data-label]::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    content: attr(data-label);
  }

  .admin-table .select-cell[data-label]::before,
  .application-table .player-cell[data-label]::before {
    display: none;
  }

  .application-table tr {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas:
      "select player"
      "status status"
      "review review"
      "expiry expiry"
      "contact contact"
      "risk risk";
    align-items: start;
  }

  .application-table .select-cell {
    grid-area: select;
    padding-top: 3px;
  }

  .application-table .player-cell {
    grid-area: player;
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .application-table .player-cell strong {
    font-size: 22px;
    line-height: 1.12;
  }

  .application-table .payment-code {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .application-table .status-cell {
    grid-area: status;
  }

  .application-table .review-cell {
    grid-area: review;
  }

  .application-table .expiry-cell {
    grid-area: expiry;
  }

  .application-table .contact-cell {
    grid-area: contact;
  }

  .application-table .risk-cell {
    grid-area: risk;
  }

  .application-table .action-cell {
    grid-area: actions;
  }

  .application-table .status-cell,
  .application-table .review-cell,
  .application-table .expiry-cell,
  .application-table .contact-cell,
  .application-table .risk-cell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 8px;
    align-items: start;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    white-space: normal;
  }

  .application-table .status-cell::before,
  .application-table .review-cell::before,
  .application-table .expiry-cell::before,
  .application-table .contact-cell::before,
  .application-table .risk-cell::before,
  .application-table .action-cell::before {
    display: block;
    margin-bottom: -2px;
  }

  .application-table .review-cell strong,
  .application-table .expiry-cell strong,
  .application-table .contact-cell span {
    min-width: 0;
    color: var(--ink);
  }

  .application-table .contact-cell span,
  .application-table .contact-cell small,
  .clip {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .application-table .risk-stack,
  .application-table .risk-stack > div {
    width: 100%;
    min-width: 0;
  }

  .application-table .risk-note {
    max-width: 100%;
    white-space: normal;
  }

  .application-table th:last-child,
  .application-table td:last-child {
    position: static;
    right: auto;
    z-index: auto;
  }

  .admin-table .row-actions,
  .application-actions,
  .drawer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    overflow: visible;
  }

  .admin-table .row-actions button,
  .application-actions button,
  .drawer-actions .button {
    width: 100%;
    min-height: 42px;
    min-width: 0;
    padding: 8px;
    white-space: normal;
  }

  .admin-table:not(.application-table) tr {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .timeline-item summary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .timeline-item summary em,
  .timeline-item summary strong {
    white-space: normal;
  }

  .admin-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-drawer {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 0;
    transform: translateX(100%);
  }

  .admin-drawer.is-open {
    transform: none;
  }

  .drawer-close-tab {
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    bottom: auto;
    left: auto;
    width: 72px;
    height: 42px;
    border: 1px solid rgba(32, 35, 30, 0.16);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(32, 35, 30, 0.12);
    transform: translateY(-8px);
  }

  .drawer-close-tab::after {
    display: none;
  }

  .drawer-close-tab:hover,
  .drawer-close-tab.is-open {
    transform: translateY(0);
  }

  .admin-drawer-head {
    position: sticky;
    top: -16px;
    z-index: 2;
    margin: -16px -14px 12px;
    padding: calc(14px + env(safe-area-inset-top)) 94px 12px 14px;
    border-bottom: 1px solid rgba(32, 35, 30, 0.1);
    background: rgba(255, 253, 248, 0.98);
  }

  .admin-drawer h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .drawer-grid,
  .drawer-answer-grid,
  .score-breakdown-list {
    grid-template-columns: 1fr;
  }

  .detail-block,
  .answer-block,
  .drawer-notes {
    padding: 13px;
    border-radius: 10px;
  }

  .drawer-actions {
    position: sticky;
    bottom: calc(-18px - env(safe-area-inset-bottom));
    margin: 12px -14px calc(-18px - env(safe-area-inset-bottom));
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(32, 35, 30, 0.1);
    background: rgba(255, 253, 248, 0.98);
  }

  .score-breakdown-row {
    grid-template-columns: minmax(0, 1fr) 72px 44px;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .admin-page-bar,
  .admin-command-bar,
  .admin-panel,
  .admin-hero-card {
    width: min(100% - 16px, 620px);
  }

  .application-table tr {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "select player"
      "status status"
      "review review"
      "expiry expiry"
      "contact contact"
      "risk risk";
  }

  .admin-auth-copy h1 {
    font-size: 30px;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .site-menu-open .site-header {
    position: sticky;
    top: 0;
    z-index: 120;
  }

  .site-header .brand {
    min-width: 0;
    width: auto;
    max-width: 100%;
  }

  .site-header .brand > :last-child {
    min-width: 0;
  }

  .site-header .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-menu-toggle {
    position: relative;
    z-index: 72;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(32, 35, 30, 0.14);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 8px 18px rgba(45, 50, 43, 0.08);
    cursor: pointer;
  }

  .site-menu-toggle span,
  .site-menu-toggle span::before,
  .site-menu-toggle span::after,
  .admin-section-menu-toggle span,
  .admin-section-menu-toggle span::before,
  .admin-section-menu-toggle span::after,
  .guide-toc-toggle span,
  .guide-toc-toggle span::before,
  .guide-toc-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    content: "";
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-menu-toggle span,
  .admin-section-menu-toggle span,
  .guide-toc-toggle span {
    position: relative;
  }

  .site-menu-toggle span::before,
  .admin-section-menu-toggle span::before,
  .guide-toc-toggle span::before {
    position: absolute;
    transform: translateY(-6px);
  }

  .site-menu-toggle span::after,
  .admin-section-menu-toggle span::after,
  .guide-toc-toggle span::after {
    position: absolute;
    transform: translateY(6px);
  }

  .site-menu-open .site-menu-toggle span,
  .admin-section-menu-open .admin-section-menu-toggle span,
  .guide-toc-open .guide-toc-toggle span {
    background: transparent;
  }

  .site-menu-open .site-menu-toggle span::before,
  .admin-section-menu-open .admin-section-menu-toggle span::before,
  .guide-toc-open .guide-toc-toggle span::before {
    transform: rotate(45deg);
  }

  .site-menu-open .site-menu-toggle span::after,
  .admin-section-menu-open .admin-section-menu-toggle span::after,
  .guide-toc-open .guide-toc-toggle span::after {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: max(72px, calc(58px + env(safe-area-inset-top)));
    right: 12px;
    z-index: 122;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(270px, calc(100vw - 24px));
    max-height: calc(100dvh - 96px);
    margin: 0;
    padding: 10px;
    overflow: auto;
    border: 1px solid rgba(32, 35, 30, 0.12);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 42px rgba(45, 50, 43, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .site-menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(32, 35, 30, 0.08);
    border-radius: 9px;
    background: rgba(247, 245, 239, 0.76);
    font-size: 15px;
    text-align: left;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 10.5vw, 42px);
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    border: 0;
    background: rgba(32, 35, 30, 0.08);
    cursor: default;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .site-menu-open .mobile-menu-backdrop,
  .admin-section-menu-open .mobile-menu-backdrop,
  .guide-toc-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .admin-menu-from-bottom.admin-section-menu-open .mobile-menu-backdrop {
    bottom: var(--admin-menu-bottom, calc(42px + env(safe-area-inset-bottom)));
  }

  .admin-section-menu-toggle,
  .guide-toc-toggle {
    position: sticky;
    top: 8px;
    z-index: 28;
    display: inline-grid;
    grid-template-columns: 20px auto;
    align-items: center;
    gap: 10px;
    width: min(100% - 20px, 620px);
    min-height: 44px;
    margin: 10px auto 0;
    padding: 10px 13px;
    border: 1px solid rgba(32, 35, 30, 0.12);
    border-radius: 11px;
    background: rgba(255, 253, 248, 0.96);
    color: var(--ink);
    box-shadow: 0 10px 22px rgba(45, 50, 43, 0.09);
    cursor: pointer;
    font: inherit;
    text-align: left;
  }

  .admin-section-menu-open .admin-section-menu-toggle {
    z-index: 112;
  }

  .admin-section-menu-toggle strong,
  .guide-toc-toggle strong {
    font-size: 15px;
  }

  .guide-toc-toggle {
    width: 100%;
    margin: 0 0 10px;
  }

  .guide-toc {
    position: fixed;
    top: max(78px, calc(64px + env(safe-area-inset-top)));
    right: 12px;
    left: 12px;
    z-index: 111;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: auto;
    max-height: calc(100dvh - 110px);
    padding: 12px;
    overflow: auto;
    border: 1px solid rgba(32, 35, 30, 0.12);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 42px rgba(45, 50, 43, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .guide-toc a {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(32, 35, 30, 0.08);
    border-radius: 9px;
    background: rgba(247, 245, 239, 0.76);
    font-size: 15px;
    text-align: left;
  }

  .guide-toc-open .guide-toc {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .admin-sidebar {
    position: fixed;
    top: var(--admin-menu-top, calc(124px + env(safe-area-inset-top)));
    right: 12px;
    left: 12px;
    z-index: 111;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: auto;
    max-height: calc(100dvh - var(--admin-menu-top, calc(124px + env(safe-area-inset-top))) - 8px);
    padding: 10px;
    overflow: auto;
    border: 1px solid rgba(32, 35, 30, 0.12);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 42px rgba(45, 50, 43, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .admin-menu-from-bottom .admin-sidebar {
    top: auto;
    bottom: var(--admin-menu-bottom, calc(42px + env(safe-area-inset-bottom)));
    max-height: calc(100dvh - var(--admin-menu-bottom, calc(42px + env(safe-area-inset-bottom))) - 8px);
    border-radius: 12px 12px 0 0;
    transform: translateY(8px) scale(0.98);
    transform-origin: bottom center;
  }

  .admin-sidebar strong {
    display: block;
    margin-bottom: 2px;
  }

  .admin-sidebar a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(32, 35, 30, 0.08);
    border-radius: 9px;
    background: rgba(247, 245, 239, 0.76);
    font-size: 15px;
    text-align: left;
  }

  .admin-section-menu-open .admin-sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .admin-page.is-authenticated .admin-shell {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .admin-mobile-actions {
    position: fixed;
    right: 8px;
    bottom: env(safe-area-inset-bottom);
    left: 8px;
    z-index: 76;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(32, 35, 30, 0.12);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 18px 42px rgba(45, 50, 43, 0.22);
    backdrop-filter: blur(14px);
  }

  .admin-page.is-authenticated .admin-mobile-actions {
    display: grid;
  }

  .admin-page.site-menu-open .admin-mobile-actions,
  .admin-page.admin-section-menu-open .admin-mobile-actions,
  .admin-page.guide-toc-open .admin-mobile-actions,
  .admin-page.admin-drawer-open .admin-mobile-actions {
    display: none;
  }

  .admin-page.admin-menu-from-bottom.admin-section-menu-open .admin-mobile-actions {
    display: grid;
  }

  .admin-mobile-actions button {
    min-width: 0;
    min-height: 30px;
    border: 1px solid rgba(32, 35, 30, 0.12);
    border-radius: 9px;
    background: rgba(247, 245, 239, 0.82);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
  }

  .admin-mobile-actions button:nth-child(3) {
    border-color: rgba(62, 124, 69, 0.32);
    background: rgba(62, 124, 69, 0.16);
  }

  .admin-filter-panel {
    display: block;
  }

  .admin-filter-panel > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(32, 35, 30, 0.1);
    border-radius: 11px;
    background: rgba(247, 245, 239, 0.76);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

  .admin-filter-panel > summary::-webkit-details-marker {
    display: none;
  }

  .admin-filter-panel > summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(32, 35, 30, 0.12);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.82);
    font-size: 18px;
    line-height: 1;
  }

  .admin-filter-panel[open] > summary::after {
    content: "-";
  }

  .admin-filter-panel > summary span,
  .admin-filter-panel > summary small {
    display: block;
    min-width: 0;
  }

  .admin-filter-panel > summary span {
    font-weight: 900;
  }

  .admin-filter-panel > summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .admin-filter-panel[open] .admin-filter-panel-body {
    display: grid;
    gap: 10px;
    margin-top: 10px;
  }

  .admin-filter-panel-body .admin-command-bar.inline {
    width: 100%;
    margin: 0;
  }

  .application-table tr {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "select player"
      "status status"
      "review review"
      "expiry expiry"
      "contact contact"
      "risk risk";
    gap: 10px 12px;
    padding: 14px 14px 12px;
  }

  .application-table .select-cell {
    padding-top: 4px;
  }

  .application-table .player-cell {
    gap: 5px;
  }

  .application-table .player-cell strong {
    font-size: 21px;
    line-height: 1.08;
  }

  .application-table .status-cell,
  .application-table .review-cell,
  .application-table .expiry-cell,
  .application-table .contact-cell,
  .application-table .risk-cell {
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid rgba(32, 35, 30, 0.08);
    border-radius: 10px;
    background: rgba(247, 245, 239, 0.54);
  }

  .application-table .status-cell,
  .application-table .contact-cell,
  .application-table .risk-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .application-table .review-cell,
  .application-table .expiry-cell {
    display: grid;
    align-content: start;
  }

  .application-table .status-cell::before,
  .application-table .review-cell::before,
  .application-table .expiry-cell::before,
  .application-table .contact-cell::before,
  .application-table .risk-cell::before,
  .application-table .action-cell::before {
    margin: 0;
    color: rgba(97, 108, 95, 0.86);
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0;
  }

  .application-table .status-cell::before,
  .application-table .contact-cell::before,
  .application-table .risk-cell::before,
  .application-table .action-cell::before {
    flex: 0 0 100%;
  }

  .application-table .review-cell strong,
  .application-table .expiry-cell strong,
  .application-table .contact-cell span {
    line-height: 1.25;
  }

  .application-table .risk-stack {
    display: grid;
    gap: 6px;
  }

  .application-table .risk-stack > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .application-table .action-cell {
    padding-top: 2px;
  }

  .application-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-actions button[data-action="view"] {
    grid-column: 1 / -1;
  }

  .admin-drawer,
  .admin-drawer-backdrop,
  .drawer-close-tab {
    z-index: 140;
  }

  .admin-drawer-backdrop {
    z-index: 138;
  }

  .drawer-close-tab {
    z-index: 142;
  }

  .admin-drawer .drawer-actions-shell {
    position: fixed;
    top: 46%;
    right: 0;
    z-index: 146;
    margin: 0;
    pointer-events: none;
    transform: translateY(-50%);
  }

  .admin-drawer .drawer-actions-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    min-height: 86px;
    padding: 10px 6px 10px 8px;
    border: 1px solid rgba(32, 35, 30, 0.18);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: var(--grass);
    box-shadow: -10px 14px 26px rgba(32, 35, 30, 0.18);
    color: #fffdf8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.1;
    pointer-events: auto;
    writing-mode: vertical-rl;
    letter-spacing: 0;
    transition: transform 180ms ease, opacity 160ms ease;
  }

  .admin-drawer .drawer-actions-toggle::before {
    margin-bottom: 8px;
    content: "‹";
    font-size: 22px;
    line-height: 1;
    writing-mode: horizontal-tb;
  }

  .admin-drawer .drawer-actions-shell.is-expanded .drawer-actions-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
  }

  .admin-drawer .drawer-actions {
    position: absolute;
    top: 50%;
    right: 0;
    bottom: auto;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(324px, calc(100vw - 56px));
    max-height: min(72vh, 520px);
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    border: 1px solid rgba(32, 35, 30, 0.14);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: -16px 18px 34px rgba(32, 35, 30, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translate(100%, -50%);
    transition: opacity 160ms ease, transform 190ms ease, visibility 160ms ease;
    visibility: hidden;
    backdrop-filter: blur(14px);
  }

  .admin-drawer .drawer-actions-shell.is-expanded .drawer-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
    visibility: visible;
  }

  .admin-drawer .drawer-actions-head {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 2px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
  }

  .admin-drawer .drawer-actions-collapse {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(32, 35, 30, 0.14);
    border-radius: 8px;
    background: rgba(247, 245, 239, 0.92);
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
  }

  .admin-drawer .drawer-actions .button {
    min-width: 0;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 14px;
    line-height: 1.2;
  }
}

/* Final UI polish: flatter controls, denser action rows, softer color accents. */
.button,
.admin-view-tabs button,
.row-actions button,
.admin-pagination button,
.table-mini-button,
.admin-table td > button:not(.table-mini-button),
.admin-table .row-actions button,
.server-action-grid button,
.admin-auth-tabs button,
.drawer-actions .button {
  border-width: 1px;
  box-shadow: none;
}

.button.primary {
  background: linear-gradient(135deg, #3e7c45, #4d8d56);
}

.button.secondary,
.admin-view-tabs button,
.row-actions button,
.admin-pagination button,
.admin-table td > button:not(.table-mini-button),
.admin-table .row-actions button {
  background: rgba(255, 253, 248, 0.72);
}

.button:hover,
.admin-view-tabs button:hover,
.row-actions button:hover,
.admin-pagination button:hover,
.table-mini-button:hover,
.admin-table td > button:not(.table-mini-button):hover,
.admin-table .row-actions button:hover {
  background: linear-gradient(145deg, rgba(62, 124, 69, 0.1), rgba(255, 253, 248, 0.82));
  transform: none;
}

.button:disabled,
.button.disabled,
.admin-bulk-bar.is-empty .button {
  border-color: rgba(32, 35, 30, 0.1);
  background: rgba(247, 245, 239, 0.52);
  color: rgba(75, 84, 73, 0.52);
  opacity: 1;
}

.admin-command-bar,
.row-actions,
.drawer-actions {
  gap: 6px;
}

.admin-command-bar .button,
.row-actions button,
.drawer-actions .button,
.admin-pagination button {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 13px;
}

.admin-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
  padding: 8px;
  border-color: rgba(62, 124, 69, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.8), rgba(247, 245, 239, 0.62)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(62, 124, 69, 0.16)) border-box;
}

.admin-bulk-bar.is-empty {
  border-color: rgba(32, 35, 30, 0.1);
  background: rgba(247, 245, 239, 0.42);
}

.admin-bulk-bar > span {
  margin-right: 6px;
  font-size: 14px;
}

.admin-bulk-bar .button {
  min-height: 29px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.admin-page input:not([type="checkbox"]):not([type="radio"]),
.admin-page select,
.admin-page textarea,
.admin-login-card input,
.admin-filter-row input,
.whitelist-tool-layout input,
.admin-filter-row select,
.admin-table select {
  border-width: 1px;
  border-color: rgba(32, 35, 30, 0.15);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: none;
}

.admin-table th {
  background: rgba(240, 236, 226, 0.76);
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
}

.admin-table tr.is-selected,
.admin-table tr.is-current-admin {
  background: rgba(62, 124, 69, 0.055);
}

.status-pill,
.risk-chip,
.tag-row span,
.payment-code {
  box-shadow: none;
}

.status-pill {
  min-height: 22px;
  padding: 2px 7px;
}

.risk-chip {
  min-height: 22px;
  padding: 2px 7px;
}

.risk-note {
  color: #6d5a50;
}

#mail .mail-toggle-row label {
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(62, 124, 69, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(62, 124, 69, 0.08), rgba(255, 253, 248, 0.76));
}

#mail .admin-card-panel > label + .row-actions {
  margin-top: 12px;
}

.avatar-block,
.staff-card.lead,
.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card,
.download-box,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.thanks-panel {
  box-shadow: var(--shadow-soft);
}

.staff-card.lead {
  box-shadow: 0 12px 28px rgba(45, 50, 43, 0.08);
}

.avatar-block {
  box-shadow: none;
}

@media (min-width: 761px) {
  .admin-bulk-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .admin-bulk-bar > span {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .admin-bulk-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border-radius: 10px;
    box-shadow: none;
  }

  .admin-bulk-bar > span {
    grid-column: 1 / -1;
    margin: 0;
  }

  .admin-bulk-bar .button,
  .admin-command-bar .button,
  .row-actions button,
  .drawer-actions .button,
  .application-actions button,
  .admin-table .row-actions button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
  }

  .admin-table tbody {
    gap: 9px;
  }

  .admin-table tr {
    gap: 8px;
    padding: 12px;
    border-color: rgba(32, 35, 30, 0.1);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(255, 253, 248, 0.88), rgba(247, 245, 239, 0.62));
    box-shadow: none;
  }

  .admin-table .row-actions,
  .application-actions,
  .drawer-actions {
    gap: 7px;
  }

  #mail .admin-card-panel {
    grid-template-columns: 1fr;
  }

  #mail .mail-toggle-row label {
    width: 100%;
  }
}

/* Flat glass refinement pass. */
.button,
.download-row em,
.archive-toggle-button,
.admin-view-tabs button,
.row-actions button,
.admin-pagination button,
.table-mini-button,
.server-action-grid button,
.admin-table td > button:not(.table-mini-button),
.drawer-actions .button {
  min-height: 36px;
  border: 1px solid rgba(32, 35, 30, 0.14);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: none;
  font-weight: 800;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.button.primary {
  border-color: rgba(62, 124, 69, 0.35);
  background: #3e7c45;
  color: #fffdf8;
}

.button.secondary,
.download-row em,
.archive-toggle-button {
  background: rgba(255, 253, 248, 0.74);
  color: var(--deep);
}

.button:hover,
.download-row:hover em,
.archive-toggle-button:hover,
.admin-view-tabs button:hover,
.row-actions button:hover,
.admin-pagination button:hover,
.table-mini-button:hover,
.server-action-grid button:hover,
.admin-table td > button:not(.table-mini-button):hover,
.drawer-actions .button:hover {
  border-color: rgba(62, 124, 69, 0.34);
  background: rgba(62, 124, 69, 0.09);
  transform: none;
}

.button.primary:hover {
  border-color: rgba(62, 124, 69, 0.5);
  background: #356d3b;
  color: #fffdf8;
}

.button:focus-visible,
.download-row:focus-visible,
.archive-toggle-button:focus-visible,
.admin-page button:focus-visible,
.admin-page input:focus-visible,
.admin-page select:focus-visible,
.admin-page textarea:focus-visible,
.mail-row:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-header,
.admin-sidebar,
.admin-card-panel,
.admin-table-wrap,
.admin-drawer,
.admin-modal,
.download-box,
.guide-panel,
.staff-card,
.form-panel,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.thanks-panel,
.status-card {
  border-color: var(--glass-line);
  background: var(--glass-fill);
  backdrop-filter: blur(18px) saturate(1.12);
  box-shadow: var(--shadow-soft);
}

.brand-logo,
.hero-visual,
.download-row em,
.archive-downloads summary::after,
.rule-item span,
.join-panel,
.avatar-block,
.staff-card.lead {
  box-shadow: none;
}

.download-box {
  border-radius: var(--radius);
}

.download-list {
  border-top-color: rgba(32, 35, 30, 0.1);
}

.download-row {
  padding: 12px 0;
  border-bottom-color: rgba(32, 35, 30, 0.1);
}

.download-row em {
  min-width: 56px;
  padding: 6px 10px;
  font-style: normal;
  text-align: center;
}

.archive-downloads summary {
  cursor: default;
}

.archive-downloads summary::after {
  content: none;
}

.archive-toggle-button {
  justify-self: end;
  min-width: 58px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.admin-tools-grid {
  grid-template-columns: minmax(300px, 0.9fr) minmax(300px, 0.8fr) minmax(0, 1fr);
}

.command-library-panel {
  min-width: 0;
}

.command-library-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.command-library-search {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.command-library-search span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.command-library-results {
  display: grid;
  gap: 8px;
  max-height: 320px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.command-result {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.5);
}

.command-result-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.command-result-title strong,
.command-result-desc,
.command-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-result-title strong {
  white-space: nowrap;
  font-family: "Consolas", "Courier New", monospace;
}

.command-result-title span {
  padding: 2px 6px;
  border: 1px solid rgba(62, 124, 69, 0.18);
  border-radius: 999px;
  color: #4b5449;
  font-size: 12px;
  white-space: nowrap;
}

.command-result-desc {
  display: -webkit-box;
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.command-result small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
}

.command-result .table-mini-button {
  justify-self: start;
  min-height: 28px;
}

.application-table {
  min-width: 1120px;
}

.application-table th:nth-child(2),
.application-table td:nth-child(2) {
  width: 150px;
}

.application-table th:nth-child(6),
.application-table td:nth-child(6) {
  width: 260px;
}

.application-table th:nth-child(7),
.application-table td:nth-child(7) {
  width: 170px;
}

.application-table th:nth-child(8),
.application-table td:nth-child(8) {
  width: 78px;
}

.application-table .player-cell,
.application-table .status-cell,
.application-table .review-cell,
.application-table .expiry-cell,
.application-table .contact-cell,
.application-table .risk-cell,
.application-table .action-cell {
  vertical-align: middle;
}

.application-table .action-cell {
  text-align: right;
  white-space: nowrap;
}

.application-table .player-meta-actions {
  display: block;
}

.mail-row {
  cursor: pointer;
}

.mail-row:hover {
  background: rgba(62, 124, 69, 0.045);
}

.mail-content-cell strong {
  display: block;
}

.mail-preview {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #4b5449;
}

.mail-detail-body pre {
  max-height: 52vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.mail-drawer-actions {
  padding: 0;
}

@media (max-width: 1100px) {
  .admin-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .archive-downloads summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .command-library-results {
    max-height: 260px;
  }

  .application-table {
    min-width: 0;
  }

  .application-table .action-cell {
    text-align: left;
  }

  .application-table .action-cell::before {
    content: attr(data-label);
  }
}

/* Glass UI redesign pass: rebuild legacy pixel blocks into a quieter flat system. */
body {
  background:
    linear-gradient(90deg, rgba(32, 35, 30, 0.014) 1px, transparent 1px),
    linear-gradient(rgba(32, 35, 30, 0.014) 1px, transparent 1px),
    #f8f7f2;
  background-size: 48px 48px;
}

.button,
.archive-toggle-button,
.download-row em,
.admin-page button,
.admin-view-tabs button,
.row-actions button,
.admin-pagination button,
.table-mini-button,
.server-action-grid button {
  border: 1px solid rgba(32, 35, 30, 0.12);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.68);
  box-shadow: none !important;
  color: var(--ink);
  transform: none !important;
}

.button.primary,
.admin-page .button.primary,
.server-command-row .button.primary {
  border-color: rgba(79, 127, 90, 0.2);
  background: rgba(79, 127, 90, 0.96);
  color: #fffdf8;
}

.button:hover,
.archive-toggle-button:hover,
.download-row:hover em,
.admin-page button:hover,
.admin-view-tabs button:hover,
.row-actions button:hover,
.admin-pagination button:hover,
.table-mini-button:hover,
.server-action-grid button:hover {
  border-color: rgba(79, 127, 90, 0.28);
  background: rgba(79, 127, 90, 0.08);
  box-shadow: none !important;
  opacity: 0.96;
}

.button.primary:hover,
.admin-page .button.primary:hover,
.server-command-row .button.primary:hover {
  background: rgba(68, 113, 79, 0.98);
  color: #fffdf8;
}

.section-head,
.rule-list,
.feature-stack,
.guide-content {
  min-width: 0;
}

.rule-item {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid rgba(32, 35, 30, 0.08);
}

.rule-item span,
.step-mark {
  display: inline-grid;
  min-width: 54px;
  width: 54px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(79, 127, 90, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(245, 248, 241, 0.62));
  box-shadow: none !important;
  color: #526354;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.step-mark {
  margin-bottom: 14px;
}

.server-snapshot div,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.join-panel,
.download-box,
.qr-frame,
.qr-placeholder,
.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card,
.admin-card-panel,
.admin-table-wrap,
.admin-drawer,
.admin-modal {
  border: 1px solid rgba(32, 35, 30, 0.095);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.5));
  backdrop-filter: blur(22px) saturate(1.08);
  box-shadow: none !important;
}

.feature-row {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.mini-block {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: none !important;
  overflow: hidden;
}

.mini-block::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 999px;
  background: var(--block-accent, rgba(79, 127, 90, 0.7));
}

.mini-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 56%);
}

.mini-block.red { --block-accent: rgba(185, 100, 93, 0.68); background: rgba(185, 100, 93, 0.08); }
.mini-block.blue { --block-accent: rgba(90, 132, 162, 0.68); background: rgba(90, 132, 162, 0.08); }
.mini-block.gold { --block-accent: rgba(200, 164, 74, 0.72); background: rgba(200, 164, 74, 0.09); }
.mini-block.green { --block-accent: rgba(79, 127, 90, 0.68); background: rgba(79, 127, 90, 0.08); }

.join-band {
  border: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(237, 243, 234, 0.78), rgba(255, 253, 248, 0.72) 46%, rgba(247, 236, 230, 0.74));
  box-shadow: none !important;
}

.download-box {
  padding: 22px;
  border-radius: 16px;
}

.download-list,
.archive-downloads {
  border-top-color: rgba(32, 35, 30, 0.08);
}

.download-row {
  min-height: 74px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(32, 35, 30, 0.08);
}

.download-row em {
  min-width: 92px;
  min-height: 44px;
  padding: 9px 18px;
  border-color: rgba(32, 35, 30, 0.1);
  background: rgba(255, 253, 248, 0.74);
  font-size: 15px;
}

.download-row:hover {
  color: var(--ink);
}

.download-row:hover em {
  border-color: rgba(79, 127, 90, 0.28);
  background: rgba(79, 127, 90, 0.08);
}

.archive-downloads summary {
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  gap: 18px;
  padding: 18px 0;
  cursor: default;
}

.archive-downloads summary::after,
.archive-downloads[open] summary::after {
  content: none !important;
  display: none !important;
}

.archive-toggle-button {
  min-width: 132px;
  min-height: 46px;
  padding: 10px 22px;
  border-color: rgba(79, 127, 90, 0.22);
  background: rgba(245, 250, 243, 0.78);
  color: #405946;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.admin-tools-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.95fr) minmax(320px, 1.08fr);
  gap: 14px;
  align-items: start;
}

.admin-card-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.command-library-results {
  max-height: 360px;
}

.command-result {
  border-color: rgba(32, 35, 30, 0.08);
  background: rgba(255, 253, 248, 0.56);
  box-shadow: none;
}

.command-result-title span {
  border-color: rgba(79, 127, 90, 0.16);
  background: rgba(79, 127, 90, 0.055);
}

@media (max-width: 1180px) {
  .admin-tools-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .admin-card-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .rule-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-row {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 18px;
  }

  .archive-downloads summary {
    grid-template-columns: 1fr;
  }

  .archive-toggle-button {
    justify-self: stretch;
    width: 100%;
  }

  .admin-tools-grid,
  .admin-card-stack {
    grid-template-columns: 1fr;
  }
}

/* Admin drawer stability fixes. Keep the backdrop and footer independent from generic button polish. */
.admin-page .admin-drawer-backdrop,
.admin-page .admin-drawer-backdrop:hover,
.admin-page .admin-drawer-backdrop:focus,
.admin-page .admin-drawer-backdrop:active {
  border: 0;
  border-radius: 0;
  background: rgba(20, 24, 20, 0.02);
  box-shadow: none !important;
  color: transparent;
  opacity: 0;
  transform: none !important;
}

.admin-page .admin-drawer-backdrop.is-open,
.admin-page .admin-drawer-backdrop.is-open:hover,
.admin-page .admin-drawer-backdrop.is-open:focus,
.admin-page .admin-drawer-backdrop.is-open:active {
  background: rgba(20, 24, 20, 0.02);
  opacity: 1;
}

.admin-drawer {
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

#drawer-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-drawer .drawer-actions-shell {
  position: static;
  margin: 0;
  pointer-events: auto;
  transform: none;
}

.admin-drawer .drawer-actions-toggle,
.admin-drawer .drawer-actions-head {
  display: none;
}

.admin-drawer .drawer-actions {
  position: static;
  inset: auto;
  display: flex;
  flex-wrap: wrap;
  width: auto;
  max-height: none;
  margin: 12px -2px -2px;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(32, 35, 30, 0.1);
  border-radius: 0;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
  backdrop-filter: blur(10px);
}

/* Liquid glass refresh: translucent functional layers with crisp edges and restrained color. */
:root {
  --liquid-tint: rgba(255, 253, 248, 0.58);
  --liquid-tint-strong: rgba(255, 253, 248, 0.78);
  --liquid-tint-soft: rgba(255, 253, 248, 0.42);
  --liquid-edge: rgba(255, 255, 255, 0.72);
  --liquid-line: rgba(32, 35, 30, 0.105);
  --liquid-shadow: 0 18px 42px rgba(39, 45, 38, 0.09);
  --liquid-shadow-soft: 0 10px 26px rgba(39, 45, 38, 0.065);
  --liquid-inner: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -1px 0 rgba(32, 35, 30, 0.045);
  --liquid-green: rgba(79, 127, 90, 0.92);
  --liquid-green-soft: rgba(79, 127, 90, 0.12);
  --liquid-copper-soft: rgba(184, 138, 104, 0.12);
  --liquid-sky-soft: rgba(143, 177, 196, 0.13);
  --liquid-gold-soft: rgba(212, 180, 94, 0.12);
}

body,
.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(143, 177, 196, 0.095), transparent 32%),
    linear-gradient(240deg, rgba(184, 138, 104, 0.08), transparent 36%),
    linear-gradient(90deg, rgba(32, 35, 30, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(32, 35, 30, 0.015) 1px, transparent 1px),
    #f8f7f2;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

.site-header,
.admin-site-header {
  border-bottom-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(255, 253, 248, 0.52));
  box-shadow: 0 1px 0 rgba(32, 35, 30, 0.07), 0 12px 30px rgba(39, 45, 38, 0.055);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  backdrop-filter: blur(24px) saturate(1.18);
}

.site-nav a,
.admin-sidebar a,
.guide-toc a {
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.admin-sidebar a:hover,
.admin-sidebar a.is-active,
.guide-toc a:hover,
.guide-toc a.is-active {
  border-color: rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 253, 248, 0.28)),
    rgba(79, 127, 90, 0.08);
  box-shadow: var(--liquid-inner);
}

.button,
.archive-toggle-button,
.download-row em,
.admin-page button,
.admin-view-tabs button,
.row-actions button,
.admin-pagination button,
.table-mini-button,
.server-action-grid button {
  border-color: rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 253, 248, 0.36)),
    rgba(255, 253, 248, 0.64);
  box-shadow: var(--liquid-inner), 0 8px 18px rgba(39, 45, 38, 0.055) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  backdrop-filter: blur(18px) saturate(1.16);
}

.button.primary,
.admin-page .button.primary,
.server-command-row .button.primary {
  border-color: rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent),
    linear-gradient(135deg, rgba(79, 127, 90, 0.98), rgba(52, 109, 62, 0.96));
  color: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 24px rgba(45, 91, 54, 0.16) !important;
}

.button:hover,
.archive-toggle-button:hover,
.download-row:hover em,
.admin-page button:hover,
.admin-view-tabs button:hover,
.row-actions button:hover,
.admin-pagination button:hover,
.table-mini-button:hover,
.server-action-grid button:hover {
  border-color: rgba(79, 127, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 253, 248, 0.42)),
    rgba(79, 127, 90, 0.09);
  opacity: 1;
}

.button.primary:hover,
.admin-page .button.primary:hover,
.server-command-row .button.primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent),
    linear-gradient(135deg, rgba(72, 122, 83, 1), rgba(48, 101, 57, 0.98));
}

.server-snapshot div,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.join-panel,
.download-box,
.qr-frame,
.qr-placeholder,
.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card,
.thanks-panel,
.admin-page-bar,
.admin-command-bar,
.admin-panel,
.admin-hero-card,
.admin-sidebar,
.admin-card-panel,
.admin-table-wrap,
.admin-drawer,
.admin-modal,
.mail-row,
.command-result,
.duration-preview {
  position: relative;
  border-color: var(--liquid-line);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.56), rgba(255, 253, 248, 0.24) 45%, rgba(239, 244, 236, 0.34)),
    var(--liquid-tint);
  box-shadow: var(--liquid-inner), var(--liquid-shadow-soft) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  backdrop-filter: blur(24px) saturate(1.18);
}

.server-snapshot div::before,
.info-card::before,
.tutorial-card::before,
.feature-row::before,
.link-card::before,
.join-panel::before,
.download-box::before,
.guide-panel::before,
.staff-card::before,
.form-panel::before,
.admin-card::before,
.status-card::before,
.thanks-panel::before,
.admin-panel::before,
.admin-card-panel::before {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(300deg, rgba(143, 177, 196, 0.10), transparent 44%);
  content: "";
  pointer-events: none;
}

.page-hero,
.hero-copy {
  position: relative;
}

.hero-visual,
.gallery-grid figure,
.download-box,
.guide-panel,
.form-panel,
.admin-panel {
  overflow: hidden;
}

.techpack-download {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 20px;
}

.guide-download-card {
  margin-top: 18px;
}

.download-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79, 127, 90, 0.16), rgba(143, 177, 196, 0.10) 52%, rgba(255, 253, 248, 0.34)),
    rgba(255, 253, 248, 0.5);
  box-shadow: var(--liquid-inner);
}

.download-hero h3 {
  margin: 4px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.download-hero p {
  max-width: 560px;
  margin: 0;
  color: #4f5b50;
}

.download-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid rgba(79, 127, 90, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #416548;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.download-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(32, 35, 30, 0.08);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
  color: #566155;
  font-size: 13px;
  font-weight: 800;
}

.download-primary-action {
  min-width: 168px;
  min-height: 52px;
  justify-content: center;
  white-space: nowrap;
}

.techpack-download .download-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 0;
  border-top: 0;
}

.techpack-download .download-row {
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(32, 35, 30, 0.075);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 253, 248, 0.26)),
    rgba(255, 253, 248, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.techpack-download .download-row:hover {
  border-color: rgba(79, 127, 90, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 253, 248, 0.34)),
    rgba(79, 127, 90, 0.055);
  transform: translateY(-1px);
}

.techpack-download .generated-download-row {
  border-color: rgba(75, 124, 83, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(234, 246, 239, 0.46)),
    rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 26px rgba(54, 97, 67, 0.08);
}

.techpack-download .download-row em {
  min-width: 96px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.archive-downloads {
  position: relative;
  z-index: 1;
  margin-top: 0;
  border-top: 0;
}

.archive-downloads summary {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 80px;
  padding: 16px;
  border: 1px solid rgba(32, 35, 30, 0.075);
  border-radius: 16px;
  background:
    linear-gradient(130deg, var(--liquid-sky-soft), rgba(255, 253, 248, 0.42) 48%, var(--liquid-copper-soft)),
    rgba(255, 253, 248, 0.44);
  box-shadow: var(--liquid-inner);
}

.archive-downloads summary span {
  font-weight: 500;
}

.archive-downloads summary strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.archive-downloads summary small {
  max-width: 520px;
  margin-top: 5px;
  color: #5d675c;
}

.archive-toggle-button {
  justify-self: end;
  min-width: 148px;
  min-height: 46px;
  border-radius: 999px;
  white-space: nowrap;
}

.archive-downloads[open] .download-list {
  margin-top: 10px;
}

.download-note {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  padding: 0 2px;
}

.rule-item span,
.step-mark,
.mini-block,
.payment-code,
.status-pill,
.risk-chip,
.tag-row span {
  box-shadow: var(--liquid-inner) !important;
}

.admin-page input:not([type="checkbox"]):not([type="radio"]),
.admin-page select,
.admin-page textarea,
.form-panel input,
.form-panel select,
.form-panel textarea,
.admin-login-card input,
.admin-login-card select {
  border-color: rgba(32, 35, 30, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 253, 248, 0.28)),
    rgba(255, 253, 248, 0.58);
  box-shadow: var(--liquid-inner);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}

.admin-table th {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(240, 236, 226, 0.58));
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.admin-drawer .drawer-actions,
.admin-modal-actions,
.admin-modal-head,
.admin-drawer-head {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0.68));
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
  backdrop-filter: blur(24px) saturate(1.16);
}

.admin-page .admin-drawer-backdrop.is-open,
.admin-page .admin-drawer-backdrop.is-open:hover,
.admin-page .admin-drawer-backdrop.is-open:focus,
.admin-page .admin-drawer-backdrop.is-open:active {
  background: rgba(23, 27, 23, 0.045);
}

@media (max-width: 760px) {
  .techpack-download {
    padding: 12px;
    border-radius: 16px;
  }

  .download-hero,
  .archive-downloads summary {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .download-hero h3 {
    font-size: 30px;
  }

  .download-primary-action,
  .archive-toggle-button {
    justify-self: stretch;
    width: 100%;
  }

  .techpack-download .download-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .techpack-download .download-row em {
    width: 100%;
  }
}

/* Admin application detail drawer must stay anchored to the viewport.
   Generic glass-card rules above style it, but must not change its positioning. */
.admin-page .admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 50;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1040px, calc(100vw - 48px));
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: none;
  visibility: hidden;
}

.admin-page .admin-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

.admin-page .admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
}

.admin-page .drawer-close-tab {
  position: fixed;
  top: 92px;
  right: min(1040px, calc(100vw - 48px));
  bottom: auto;
  left: auto;
  z-index: 51;
}

@media (max-width: 760px) {
  .admin-page .admin-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: min(86dvh, 760px);
    max-height: min(86dvh, 760px);
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
  }

  .admin-page .admin-drawer.is-open {
    transform: translateY(0);
  }

  .admin-page .drawer-close-tab {
    top: auto;
    right: auto;
    bottom: min(86dvh, 760px);
    left: 18px;
  }
}

/* Fresh mobile admin shell: compact navigation, content-first layout, no viewport-sized spacer. */
@media (max-width: 760px) {
  .admin-page {
    min-height: 100dvh;
    background:
      linear-gradient(120deg, rgba(143, 177, 196, 0.08), transparent 34%),
      linear-gradient(240deg, rgba(184, 138, 104, 0.07), transparent 40%),
      linear-gradient(90deg, rgba(32, 35, 30, 0.018) 1px, transparent 1px),
      linear-gradient(rgba(32, 35, 30, 0.018) 1px, transparent 1px),
      #f8f7f2;
    background-size: auto, auto, 38px 38px, 38px 38px, auto;
  }

  .admin-page.is-authenticated .admin-site-header {
    display: none;
  }

  .admin-page:not(.is-authenticated) .admin-site-header {
    position: sticky;
    top: 0;
  }

  .admin-page .admin-shell,
  .admin-page.is-authenticated .admin-shell,
  .admin-page:not(.is-authenticated) .admin-shell {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 8px 0 calc(82px + env(safe-area-inset-bottom));
  }

  .admin-page:not(.is-authenticated) .admin-shell {
    padding-top: 12px;
  }

  .admin-page .admin-workspace {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 0;
  }

  .admin-page .admin-section-menu-toggle {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 92;
    display: inline-grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 24px);
    min-height: 48px;
    margin: 0 12px 10px;
    padding: 11px 14px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 248, 0.54)),
      rgba(255, 253, 248, 0.7);
    box-shadow: var(--liquid-inner), 0 12px 28px rgba(39, 45, 38, 0.1);
    -webkit-backdrop-filter: blur(22px) saturate(1.16);
    backdrop-filter: blur(22px) saturate(1.16);
  }

  .admin-page .admin-section-menu-toggle strong {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-page .admin-sidebar,
  .admin-page.admin-menu-from-bottom .admin-sidebar {
    position: fixed;
    top: calc(max(8px, env(safe-area-inset-top)) + 58px);
    right: 12px;
    bottom: auto;
    left: 12px;
    z-index: 111;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: auto;
    max-height: min(72dvh, 620px);
    padding: 10px;
    overflow: auto;
    border: 1px solid rgba(32, 35, 30, 0.1);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 253, 248, 0.56)),
      rgba(255, 253, 248, 0.82);
    box-shadow: 0 22px 48px rgba(39, 45, 38, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: top center;
    visibility: hidden;
    -webkit-backdrop-filter: blur(24px) saturate(1.18);
    backdrop-filter: blur(24px) saturate(1.18);
  }

  .admin-page.admin-section-menu-open .admin-sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
  }

  .admin-page .admin-sidebar strong {
    display: block;
    margin: 2px 4px 4px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .admin-page .admin-sidebar a {
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.62);
    font-size: 15px;
  }

  .admin-page .admin-sidebar a.is-active {
    background: rgba(79, 127, 90, 0.16);
    color: var(--ink);
  }

  .admin-page .mobile-menu-backdrop,
  .admin-page.admin-menu-from-bottom.admin-section-menu-open .mobile-menu-backdrop {
    inset: 0;
    bottom: 0;
    background: rgba(28, 32, 28, 0.12);
  }

  .admin-page .admin-page-bar,
  .admin-page .admin-command-bar,
  .admin-page .admin-panel,
  .admin-page .admin-hero-card {
    width: calc(100% - 20px);
    margin-inline: auto;
    border-radius: 18px;
  }

  .admin-page .admin-page-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 0;
    padding: 13px;
  }

  .admin-page.is-authenticated .admin-page-bar {
    gap: 2px;
    padding: 12px 14px;
  }

  .admin-page .admin-page-bar span {
    font-size: 19px;
  }

  .admin-page .admin-page-bar small {
    font-size: 12px;
  }

  .admin-page .admin-page-bar .row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-page.is-authenticated .admin-page-bar .row-actions {
    display: none;
  }

  .admin-page .admin-page-bar .row-actions button {
    min-height: 38px;
    border-radius: 12px;
  }

  .admin-page .admin-hero-card,
  .admin-page.is-authenticated .admin-auth-hero,
  .admin-page .admin-panel {
    min-height: 0;
    padding: 14px;
  }

  .admin-page .admin-auth-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 0;
  }

  .admin-page .admin-auth-hero::before {
    width: 6px;
  }

  .admin-page.is-authenticated .admin-auth-hero {
    display: block;
  }

  .admin-page.is-authenticated .admin-auth-copy {
    gap: 6px;
  }

  .admin-page.is-authenticated .admin-auth-copy .eyebrow {
    margin: 0;
    color: #465149;
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .admin-page.is-authenticated .admin-auth-copy h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
  }

  .admin-page.is-authenticated .admin-auth-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .admin-page.is-authenticated .admin-login-card {
    display: none;
  }

  .admin-page:not(.is-authenticated) .admin-auth-hero {
    width: calc(100% - 20px);
    min-height: 0;
    margin: 0 auto;
    padding: 16px;
  }

  .admin-page:not(.is-authenticated) .admin-auth-copy h1 {
    font-size: 31px;
  }

  .admin-page:not(.is-authenticated) .admin-auth-copy p {
    font-size: 15px;
    line-height: 1.55;
  }

  .admin-page:not(.is-authenticated) .admin-login-card {
    padding: 14px;
  }

  .admin-page .admin-command-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    overflow: visible;
  }

  .admin-page .admin-command-bar .button {
    min-height: 40px;
    border-radius: 12px;
  }

  .admin-page .admin-section-head {
    gap: 10px;
  }

  .admin-page .admin-section-head h2 {
    font-size: 24px;
  }

  .admin-page .admin-view-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    width: calc(100% + 4px);
    padding-bottom: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-page .admin-view-tabs button {
    flex: 0 0 auto;
    min-height: 36px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .admin-page .admin-filter-panel {
    width: calc(100% - 20px);
    margin-inline: auto;
  }

  .admin-page .admin-filter-panel > summary {
    border-radius: 16px;
  }

  .admin-page .admin-filter-panel-body {
    padding-top: 10px;
  }

  .admin-page .admin-filter-row,
  .admin-page .admin-filter-row.two,
  .admin-page .admin-filter-row.single {
    gap: 9px;
  }

  .admin-page .admin-filter-row input,
  .admin-page .admin-filter-row select,
  .admin-page .admin-toolbar input,
  .admin-page .admin-toolbar select {
    min-height: 44px;
    border-radius: 13px;
  }

  .admin-page .admin-bulk-bar {
    top: calc(max(8px, env(safe-area-inset-top)) + 58px);
    width: calc(100% - 20px);
    margin-inline: auto;
    border-radius: 16px;
  }

  .admin-page .admin-table-wrap {
    width: calc(100% - 20px);
    margin-inline: auto;
    border-radius: 18px;
  }

  .admin-page .admin-table {
    min-width: 780px;
  }

  .admin-page .admin-mobile-actions {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 76;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 253, 248, 0.58)),
      rgba(255, 253, 248, 0.78);
    box-shadow: 0 20px 42px rgba(39, 45, 38, 0.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.16);
    backdrop-filter: blur(24px) saturate(1.16);
  }

  .admin-page.is-authenticated .admin-mobile-actions,
  .admin-page.admin-menu-from-bottom.admin-section-menu-open .admin-mobile-actions {
    display: grid;
  }

  .admin-page.site-menu-open .admin-mobile-actions,
  .admin-page.admin-section-menu-open .admin-mobile-actions,
  .admin-page.guide-toc-open .admin-mobile-actions,
  .admin-page.admin-drawer-open .admin-mobile-actions {
    display: none;
  }

  .admin-page .admin-mobile-actions button {
    min-height: 42px;
    border-radius: 15px;
    font-size: 13px;
  }

  .admin-page .admin-mobile-actions button:nth-child(3) {
    background: rgba(79, 127, 90, 0.18);
  }

  .admin-page[data-admin-view="applications"] .admin-auth-hero,
  .admin-page[data-admin-view="server-admins"] .admin-auth-hero,
  .admin-page[data-admin-view="whitelist"] .admin-auth-hero,
  .admin-page[data-admin-view="blacklist"] .admin-auth-hero,
  .admin-page[data-admin-view="payments"] .admin-auth-hero,
  .admin-page[data-admin-view="mail"] .admin-auth-hero,
  .admin-page[data-admin-view="registration-keys"] .admin-auth-hero,
  .admin-page[data-admin-view="admin-users"] .admin-auth-hero,
  .admin-page[data-admin-view="events"] .admin-auth-hero,
  .admin-page[data-admin-view="access-logs"] .admin-auth-hero,
  .admin-page[data-admin-view="tools"] .admin-auth-hero {
    display: none;
  }
}

.mobile-card-summary {
  display: none;
}

@media (max-width: 760px) {
  .admin-page.is-authenticated .admin-page-bar {
    display: none;
  }

  .admin-page .admin-panel,
  .admin-page .admin-hero-card {
    padding: 12px;
  }

  .admin-page .admin-section-head {
    gap: 7px;
  }

  .admin-page .admin-section-head .eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .admin-page .admin-section-head h2 {
    font-size: 24px !important;
    line-height: 1.12;
  }

  .admin-page .admin-section-head .admin-muted {
    font-size: 14px;
  }

  .admin-page .admin-filter-panel > summary {
    grid-template-columns: max-content minmax(0, 1fr) 28px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 11px;
  }

  .admin-page .admin-filter-panel > summary span {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
    line-height: 1.1;
  }

  .admin-page .admin-filter-panel > summary small {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-page .admin-filter-panel > summary::after {
    grid-column: 3;
    grid-row: 1;
    width: 26px;
    height: 26px;
  }

  .admin-page .admin-table,
  .admin-page .admin-table.compact,
  .admin-page .application-table,
  .admin-page .whitelist-table,
  .admin-page .payment-table,
  .admin-page .mail-table {
    min-width: 0 !important;
  }

  .admin-page .admin-table-wrap {
    width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-page .admin-table tbody {
    gap: 7px;
  }

  .admin-page .admin-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 8px;
    min-height: 58px;
    padding: 9px 10px;
    border-radius: 10px;
    box-shadow: none;
  }

  .admin-page .admin-table td,
  .admin-page .application-table td,
  .admin-page .application-table th {
    min-width: 0;
  }

  .admin-page .admin-table td[data-label]::before {
    display: none !important;
  }

  .admin-page .admin-table td strong {
    display: block;
    min-width: 0;
    font-size: 15px;
    line-height: 1.2;
  }

  .admin-page .admin-table td small {
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-card-summary {
    display: block !important;
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-page .application-table tr {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    grid-template-areas: "select player actions";
    min-height: 58px;
    cursor: pointer;
  }

  .admin-page .application-table .select-cell {
    grid-area: select;
    align-self: start;
    padding-top: 2px;
  }

  .admin-page .application-table .player-cell {
    grid-area: player;
    gap: 2px;
  }

  .admin-page .application-table .player-cell strong {
    font-size: 16px !important;
    line-height: 1.12;
  }

  .admin-page .application-table .player-meta-actions {
    display: none;
  }

  .admin-page .application-table .status-cell,
  .admin-page .application-table .status-cell small,
  .admin-page .application-table .review-cell,
  .admin-page .application-table .expiry-cell,
  .admin-page .application-table .contact-cell,
  .admin-page .application-table .risk-cell {
    display: none !important;
  }

  .admin-page .application-table .action-cell {
    grid-area: actions;
    display: block !important;
    justify-self: end;
    align-self: center;
    padding: 0;
  }

  .admin-page .application-table .action-cell .table-mini-button {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
  }

  .admin-page .admin-table:not(.application-table) tr {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-page .admin-table:not(.application-table) td {
    display: none;
  }

  .admin-page .admin-table:not(.application-table) td:first-child {
    display: block;
    grid-column: 1;
  }

  .admin-page .admin-table:not(.application-table) td:last-child {
    display: block;
    grid-column: 2;
    justify-self: end;
  }

  .admin-page .whitelist-table tr {
    grid-template-columns: 26px minmax(0, 1fr);
    cursor: pointer;
  }

  .admin-page .whitelist-table .select-cell {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-top: 2px;
  }

  .admin-page .whitelist-table .player-cell {
    display: block !important;
    grid-column: 2;
  }

  .admin-page .whitelist-table td:not(.select-cell):not(.player-cell) {
    display: none !important;
  }

  .admin-page .payment-table .payment-order-cell strong {
    max-width: min(62vw, 320px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-page .payment-table td:last-child button,
  .admin-page .mail-table td:last-child button,
  .admin-page .server-admin-table td:last-child button,
  .admin-page .whitelist-admin-table td:last-child button,
  .admin-page .admin-user-table td:last-child button {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .admin-page .mail-table tr {
    cursor: pointer;
  }

  .admin-page .mail-table td:first-child strong {
    font-size: 14px;
  }

  .admin-page .mail-table td:last-child .admin-muted {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(247, 245, 239, 0.82);
    white-space: nowrap;
  }

  .admin-page .admin-bulk-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px;
    width: calc(100% - 20px);
    margin-inline: auto;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .admin-page .admin-bulk-bar[hidden] {
    display: none !important;
  }

  .admin-page .admin-bulk-bar > span {
    flex: 0 0 auto;
    grid-column: auto;
    margin: 0 2px 0 0;
    white-space: nowrap;
  }

  .admin-page .admin-bulk-bar .button {
    flex: 0 0 auto;
    width: auto !important;
    min-width: max-content;
    min-height: 31px;
    padding: 5px 9px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .admin-page .admin-pagination {
    width: calc(100% - 20px);
    margin-inline: auto;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding: 7px 0 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .admin-page .admin-pagination span,
  .admin-page .admin-pagination i,
  .admin-page .admin-pagination button {
    flex: 0 0 auto;
  }

  .admin-page .admin-pagination span {
    font-size: 12px;
    white-space: nowrap;
  }

  .admin-page .admin-pagination button {
    min-width: 31px;
    min-height: 31px;
    padding: 4px 9px;
    border-radius: 999px;
  }
}

/* Mobile admin correction pass: keep cards compact without hiding required controls. */
.admin-page:not(.is-authenticated) #refresh {
  display: none;
}

.admin-auth-tabs button.is-active {
  border: 1px solid rgba(62, 124, 69, 0.32);
  background: rgba(62, 124, 69, 0.14);
  color: #275d2e;
}

.admin-auth-tabs button:not(.is-active) {
  color: rgba(75, 84, 73, 0.68);
}

@media (max-width: 760px) {
  .admin-page.is-authenticated .admin-section-menu-toggle {
    display: none !important;
  }

  .admin-page.admin-section-menu-open .admin-sidebar {
    top: auto;
    bottom: var(--admin-menu-bottom, calc(62px + env(safe-area-inset-bottom)));
    max-height: calc(100dvh - var(--admin-menu-bottom, calc(62px + env(safe-area-inset-bottom))) - 12px);
    transform-origin: bottom center;
  }

  .admin-page .admin-table tr:has(.admin-empty),
  .admin-page .admin-table tr:has(td[colspan]) {
    grid-template-columns: 1fr !important;
  }

  .admin-page .admin-table td[colspan] {
    display: block !important;
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
  }

  .admin-page .admin-empty {
    display: grid;
    width: 100%;
    min-height: 118px;
    place-items: center;
  }

  .admin-page .admin-table td:last-child button,
  .admin-page .admin-table td:last-child .row-actions button {
    width: auto !important;
  }

  .admin-page .server-admin-table tr {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .admin-page .server-admin-table td:first-child {
    display: block;
    grid-column: 1;
  }

  .admin-page .server-admin-table td:last-child {
    display: block;
    grid-column: 2;
    justify-self: end;
  }

  .admin-page .server-admin-table .row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 176px;
  }

  .admin-page .server-admin-table .row-actions button {
    min-width: 0;
    padding-inline: 11px;
    white-space: nowrap;
  }

  .admin-page .admin-table.whitelist-table tr {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    column-gap: 8px;
    align-items: center;
    padding-inline: 8px;
  }

  .admin-page .admin-table.whitelist-table .select-cell {
    justify-self: start;
    align-self: center;
    padding: 0;
  }

  .admin-page .admin-table.whitelist-table .player-cell {
    padding: 0;
  }

  .admin-page .admin-table.whitelist-table td:not(.select-cell):not(.player-cell) {
    display: none !important;
  }

  .admin-page .admin-user-table tr {
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
  }

  .admin-page .admin-user-table td:first-child {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }

  .admin-page .admin-user-table td:first-child .mobile-card-summary {
    display: none !important;
  }

  .admin-page .admin-user-table td:nth-child(2),
  .admin-page .admin-user-table td:nth-child(4) {
    display: block;
    grid-column: 1 / -1;
    padding-top: 4px;
  }

  .admin-page .admin-user-table td:nth-child(3),
  .admin-page .admin-user-table td:nth-child(5) {
    display: none !important;
  }

  .admin-page .admin-user-table td:last-child {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    padding: 0;
    text-align: right;
  }

  .admin-page .admin-user-table td:last-child .row-actions {
    display: inline-flex !important;
    justify-content: flex-end;
    width: auto !important;
  }

  .admin-page .admin-user-table td:nth-child(2)::before,
  .admin-page .admin-user-table td:nth-child(4)::before {
    display: block !important;
    margin-bottom: 4px;
    color: var(--muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 900;
  }

  .admin-page .admin-user-table select {
    width: 100%;
    min-height: 34px;
    font-size: 14px;
  }

  .admin-page .admin-user-table .admin-inline-check {
    width: fit-content;
    min-height: 32px;
  }

  .admin-page .admin-drawer {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .admin-page .drawer-close-tab {
    top: calc(100dvh - min(86dvh, 760px));
    right: auto;
    bottom: auto;
    left: 0;
    width: 96px;
    height: 48px;
    border-top: 0;
    border-left: 0;
    border-radius: 0 0 14px 0;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: none;
    transform: none;
  }

  .admin-page .drawer-close-tab:hover,
  .admin-page .drawer-close-tab.is-open {
    transform: none;
  }

  .admin-page .drawer-close-tab span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .admin-page .drawer-close-tab span::before {
    content: "×";
    font-size: 20px;
    line-height: 1;
  }

  .admin-page .admin-drawer-head {
    padding-left: 108px !important;
  }

  .admin-page #drawer-actions-host {
    margin: 0 -14px calc(-18px - env(safe-area-inset-bottom));
  }

  .admin-page .admin-drawer .drawer-actions-shell {
    position: static;
    margin: 0;
    pointer-events: auto;
    transform: none;
  }

  .admin-page .admin-drawer .drawer-actions-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(32, 35, 30, 0.12);
    border-right: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
    background: rgba(255, 253, 248, 0.98);
    color: var(--ink);
    box-shadow: 0 -8px 20px rgba(32, 35, 30, 0.08);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    visibility: visible;
    writing-mode: horizontal-tb;
  }

  .admin-page .admin-drawer .drawer-actions-toggle::before {
    width: 42px;
    height: 4px;
    margin: 0 9px 0 0;
    border-radius: 999px;
    background: rgba(75, 84, 73, 0.42);
    content: "";
  }

  .admin-page .admin-drawer .drawer-actions-head {
    display: none !important;
  }

  .admin-page .admin-drawer .drawer-actions {
    position: static;
    display: none !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: auto;
    max-height: 42dvh;
    margin: 0;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-top: 1px solid rgba(32, 35, 30, 0.1);
    border-radius: 0;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .admin-page .admin-drawer .drawer-actions-shell.is-expanded .drawer-actions {
    display: grid !important;
  }

  .admin-page .admin-drawer .drawer-actions .button {
    min-height: 34px;
    min-width: 0;
    padding: 5px 4px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
  }
}

/* Dynamic glass cascade finalizer. Kept last so legacy theme layers cannot reintroduce static gradients. */
body,
.admin-page {
  background: var(--system-canvas);
  background-image: none;
}

.site-header,
.admin-site-header {
  border-bottom-color: rgba(45, 54, 45, 0.08);
  background: rgba(247, 246, 242, 0.68);
  background-image: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 26px rgba(37, 45, 37, 0.045);
  -webkit-backdrop-filter: blur(28px) saturate(1.32);
  backdrop-filter: blur(28px) saturate(1.32);
}

.site-header.is-scrolled,
.admin-site-header.is-scrolled {
  background-color: rgba(247, 246, 242, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 34px rgba(37, 45, 37, 0.075);
}

.site-nav a,
.admin-sidebar a,
.guide-toc a {
  background: transparent;
  background-image: none;
  box-shadow: none;
}

.site-nav a:hover,
.site-nav a.is-active,
.admin-sidebar a:hover,
.admin-sidebar a.is-active,
.guide-toc a:hover,
.guide-toc a.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.54);
  background-image: none;
  box-shadow: var(--system-inner), 0 5px 16px rgba(37, 45, 37, 0.055);
}

.button,
.archive-toggle-button,
.download-row em,
.admin-page button,
.admin-view-tabs button,
.row-actions button,
.admin-pagination button,
.table-mini-button,
.server-action-grid button {
  border-color: rgba(255, 255, 255, 0.76);
  background: var(--system-glass-strong);
  background-image: none;
  box-shadow: var(--system-inner), 0 7px 20px rgba(37, 45, 37, 0.07) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.24);
  backdrop-filter: blur(20px) saturate(1.24);
}

.button.primary,
.admin-page .button.primary,
.server-command-row .button.primary {
  border-color: rgba(42, 84, 52, 0.3);
  background: var(--system-green);
  background-image: none;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(16, 43, 23, 0.16), 0 10px 24px rgba(44, 91, 55, 0.16) !important;
}

.button:hover,
.archive-toggle-button:hover,
.download-row:hover em,
.admin-page button:hover,
.admin-view-tabs button:hover,
.row-actions button:hover,
.admin-pagination button:hover,
.table-mini-button:hover,
.server-action-grid button:hover {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.88);
  background-image: none;
  box-shadow: var(--system-inner), 0 10px 26px rgba(37, 45, 37, 0.095) !important;
}

.button.primary:hover,
.admin-page .button.primary:hover,
.server-command-row .button.primary:hover {
  border-color: rgba(36, 74, 45, 0.38);
  background: #3e6c49;
  background-image: none;
}

.server-snapshot div,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.join-panel,
.download-box,
.qr-frame,
.qr-placeholder,
.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card,
.thanks-panel,
.admin-page-bar,
.admin-command-bar,
.admin-panel,
.admin-hero-card,
.admin-sidebar,
.admin-card-panel,
.admin-table-wrap,
.admin-drawer,
.admin-modal,
.mail-row,
.command-result,
.duration-preview {
  border-color: var(--system-line);
  background: var(--system-glass);
  background-image: none;
  box-shadow: var(--system-inner), var(--system-shadow-soft) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.22);
  backdrop-filter: blur(26px) saturate(1.22);
}

.server-snapshot div::before,
.info-card::before,
.tutorial-card::before,
.feature-row::before,
.link-card::before,
.join-panel::before,
.download-box::before,
.guide-panel::before,
.staff-card::before,
.form-panel::before,
.admin-card::before,
.status-card::before,
.thanks-panel::before,
.admin-panel::before,
.admin-card-panel::before {
  background: transparent;
  background-image: none;
}

.download-hero,
.techpack-download .download-row,
.archive-downloads summary {
  border-color: var(--system-line);
  background: rgba(255, 255, 255, 0.46);
  background-image: none;
  box-shadow: var(--system-inner);
}

.techpack-download .download-row:hover {
  border-color: rgba(71, 118, 83, 0.2);
  background: rgba(255, 255, 255, 0.68);
  background-image: none;
}

.download-meta span,
.download-kicker,
.tag-row span,
.status-pill,
.risk-chip {
  background-color: rgba(255, 255, 255, 0.62);
  background-image: none;
}

.admin-page input:not([type="checkbox"]):not([type="radio"]),
.admin-page select,
.admin-page textarea,
.form-panel input,
.form-panel select,
.form-panel textarea,
.admin-login-card input,
.admin-login-card select {
  border-color: rgba(48, 57, 48, 0.14);
  background: rgba(255, 255, 255, 0.54);
  background-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.admin-table th,
.admin-page .admin-drawer .drawer-actions,
.admin-modal-actions,
.admin-modal-head,
.admin-drawer-head,
.admin-page .drawer-close-tab,
.admin-page .admin-drawer .drawer-actions-toggle {
  background: rgba(248, 247, 243, 0.86);
  background-image: none;
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
}

@media (max-width: 760px) {
  .site-nav,
  .admin-sidebar,
  .guide-toc {
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(247, 246, 242, 0.80);
    background-image: none;
    box-shadow: var(--system-inner), var(--system-shadow);
    -webkit-backdrop-filter: blur(30px) saturate(1.28);
    backdrop-filter: blur(30px) saturate(1.28);
  }

  .mobile-menu-backdrop {
    background: rgba(28, 34, 28, 0.10);
    background-image: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

.rule-item > span,
.mail-toggle-row label,
#mail .mail-toggle-row label {
  background: rgba(255, 255, 255, 0.56);
  background-image: none;
  box-shadow: var(--system-inner);
}

.join-band {
  border-color: var(--system-line);
  background: rgba(255, 255, 255, 0.40);
  background-image: none;
  box-shadow: var(--system-inner), var(--system-shadow-soft);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  backdrop-filter: blur(24px) saturate(1.18);
}

/* 2026-07-26 liquid glass layout tuning. */
:root {
  --lg-canvas: #f7f7f4;
  --lg-ink: #171b18;
  --lg-muted: #687268;
  --lg-line: rgba(24, 28, 24, 0.1);
  --lg-edge: rgba(255, 255, 255, 0.76);
  --lg-panel: rgba(255, 255, 255, 0.54);
  --lg-panel-strong: rgba(255, 255, 255, 0.72);
  --lg-green: #477a55;
  --lg-red: #a55b58;
  --lg-shadow: 0 16px 44px rgba(28, 34, 28, 0.08), 0 2px 8px rgba(28, 34, 28, 0.04);
  --lg-inner: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(24, 28, 24, 0.045);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 247, 244, 0.74) 38%, rgba(241, 244, 239, 0.78)),
    linear-gradient(115deg, rgba(132, 164, 181, 0.13), transparent 34%),
    linear-gradient(245deg, rgba(186, 145, 111, 0.11), transparent 38%),
    var(--lg-canvas);
  color: var(--lg-ink);
  letter-spacing: 0;
}

.site-header {
  left: 0;
  right: 0;
  min-height: 72px;
  padding: 11px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 250, 247, 0.52)),
    rgba(248, 248, 244, 0.68);
  box-shadow: 0 1px 0 rgba(24, 28, 24, 0.05), 0 10px 28px rgba(28, 34, 28, 0.055);
  -webkit-backdrop-filter: blur(30px) saturate(1.24);
  backdrop-filter: blur(30px) saturate(1.24);
}

.brand {
  gap: 11px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: var(--lg-panel-strong);
  box-shadow: var(--lg-inner), 0 8px 20px rgba(28, 34, 28, 0.07);
}

.brand strong {
  font-size: 18px;
  line-height: 1.15;
}

.brand small {
  color: var(--lg-muted);
  line-height: 1.25;
}

.site-nav {
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: var(--lg-inner);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
}

.site-nav a {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 7px;
  color: #4d574e;
  font-size: 14px;
  line-height: 1.4;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.62);
  color: var(--lg-ink);
}

.hero,
.section,
.page-hero {
  width: min(1120px, calc(100% - 48px));
}

.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(28px, 4.5vw, 54px);
  min-height: auto;
  padding: clamp(54px, 8vh, 78px) 0 48px;
}

.hero::before {
  position: absolute;
  inset: 96px max(24px, calc((100vw - 1120px) / 2)) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 28, 24, 0.14), transparent);
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--lg-red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(46px, 7.1vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text {
  max-width: 600px;
  margin-bottom: 10px;
  color: #3f4940;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.72;
}

.hero-note {
  max-width: 600px;
  margin: 0;
  color: #546055;
  font-size: 15px;
  font-weight: 700;
}

.hero-note strong {
  color: var(--lg-ink);
}

.hero-actions {
  gap: 10px;
  margin: 24px 0 18px;
}

.button,
.archive-toggle-button,
.download-row em,
.admin-page button,
.admin-view-tabs button,
.row-actions button,
.admin-pagination button,
.table-mini-button,
.server-action-grid button {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--lg-edge);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    var(--lg-panel);
  box-shadow: var(--lg-inner), 0 8px 18px rgba(28, 34, 28, 0.055) !important;
  color: var(--lg-ink);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

.button.primary,
.admin-page .button.primary,
.server-command-row .button.primary {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    var(--lg-green);
  color: white;
}

.server-snapshot {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.server-snapshot div,
.info-card,
.tutorial-card,
.feature-row,
.link-card,
.join-panel,
.download-box,
.qr-frame,
.qr-placeholder,
.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card,
.thanks-panel,
.admin-page-bar,
.admin-command-bar,
.admin-panel,
.admin-hero-card,
.admin-sidebar,
.admin-card-panel,
.admin-table-wrap,
.mail-row,
.command-result,
.duration-preview {
  border: 1px solid var(--lg-line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24) 52%, rgba(238, 244, 236, 0.34)),
    var(--lg-panel);
  box-shadow: var(--lg-inner), var(--lg-shadow) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
  backdrop-filter: blur(28px) saturate(1.18);
}

.server-snapshot div {
  min-height: 78px;
  padding: 13px 14px;
}

dt {
  color: var(--lg-muted);
  font-size: 12px;
}

dd {
  color: var(--lg-ink);
  font-size: 17px;
  line-height: 1.25;
}

.hero-visual {
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: #1d211e;
  box-shadow: var(--lg-inner), 0 28px 70px rgba(28, 34, 28, 0.16);
}

.hero-visual::after,
.gallery-grid figure::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(0deg, rgba(12, 16, 12, 0.14), transparent 48%);
  content: "";
  pointer-events: none;
}

.photo-label {
  z-index: 1;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--lg-inner), 0 10px 24px rgba(12, 16, 12, 0.16);
  color: #1d231f;
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.section {
  padding: clamp(54px, 8vw, 86px) 0;
}

.split {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 58px);
}

.split.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
}

.section p {
  color: #4f5a50;
}

.section-head {
  max-width: 680px;
  margin-bottom: 26px;
}

.info-grid,
.tutorial-grid {
  gap: 10px;
}

.info-card,
.tutorial-card {
  min-height: 142px;
  padding: 20px;
}

.info-card h3,
.tutorial-card h3,
.feature-row h3,
.link-card strong {
  letter-spacing: 0;
}

.gallery-grid {
  gap: 10px;
}

.gallery-grid figure {
  min-height: 230px;
  border-color: rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(28, 34, 28, 0.1);
}

.gallery-grid .gallery-main {
  min-height: 470px;
}

.gallery-grid figcaption {
  z-index: 1;
  left: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #172019;
  font-weight: 800;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

.rule-item {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top-color: rgba(24, 28, 24, 0.09);
}

.rule-item span {
  width: 42px;
  min-width: 42px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #4d6c54;
}

.join-band {
  gap: 24px;
  padding: 30px;
  border-radius: 8px;
}

.join-panel ul {
  padding-left: 19px;
}

.download-box {
  padding: 18px;
}

.download-hero,
.techpack-download .download-row,
.archive-downloads summary {
  border-radius: 8px;
}

.link-list {
  gap: 10px;
}

.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: #6a746b;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 44px;
  }

  .hero-copy,
  .hero-text,
  .hero-note,
  h1 {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    min-height: 64px;
    padding: 9px 12px;
  }

  .brand {
    width: auto;
    min-width: 0;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 17px;
  }

  .site-menu-toggle {
    justify-self: end;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
      rgba(255, 255, 255, 0.62);
    box-shadow: var(--lg-inner), 0 8px 18px rgba(28, 34, 28, 0.08);
  }

  .site-nav {
    top: calc(64px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
  }

  .site-nav a {
    min-height: 42px;
    padding: 9px 12px;
    text-align: left;
  }

  .hero,
  .section,
  .page-hero,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    gap: 18px;
    padding: 32px 0 30px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 11px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(40px, 13vw, 58px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(28px, 10vw, 38px);
  }

  .hero-text {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-note {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0 14px;
  }

  .button {
    min-height: 44px;
    width: 100%;
  }

  .server-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .server-snapshot div {
    min-height: 68px;
    padding: 12px;
  }

  dd {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 245px;
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 46px 0;
  }

  .split,
  .split.reverse,
  .join-band,
  .support {
    gap: 18px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .info-card,
  .tutorial-card,
  .feature-row,
  .join-panel,
  .download-box {
    padding: 17px;
  }

  .info-card,
  .tutorial-card {
    min-height: auto;
  }

  .gallery-grid figure,
  .gallery-grid .gallery-main {
    min-height: 220px;
  }

  .join-band {
    padding: 18px;
  }

  .download-hero,
  .archive-downloads summary {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .server-snapshot {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 210px;
  }
}

/* Final cascade lock for the public site refresh. */
.site-header {
  min-height: 72px;
  padding: 11px clamp(18px, 5vw, 64px);
}

.site-nav {
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: var(--system-inner);
}

.site-nav a {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 7px;
}

.hero,
.section,
.page-hero {
  width: min(1120px, calc(100% - 48px));
}

.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(28px, 4.5vw, 54px);
  min-height: auto;
  padding: clamp(54px, 8vh, 78px) 0 48px;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(46px, 7.1vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 600px;
  margin-bottom: 10px;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.72;
}

.hero-note {
  max-width: 600px;
  margin: 0;
  color: #546055;
  font-size: 15px;
  font-weight: 700;
}

.hero-actions {
  gap: 10px;
  margin: 24px 0 18px;
}

.server-snapshot {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.server-snapshot div {
  min-height: 78px;
  padding: 13px 14px;
  border-radius: 8px;
}

dd {
  font-size: 17px;
  line-height: 1.25;
}

.hero-visual {
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow: var(--system-inner), 0 28px 70px rgba(28, 34, 28, 0.16) !important;
}

.photo-label,
.gallery-grid figcaption {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #1d231f;
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.info-card,
.tutorial-card,
.feature-row,
.link-card,
.join-panel,
.download-box,
.qr-frame,
.qr-placeholder,
.guide-panel,
.staff-card,
.form-panel,
.admin-card,
.status-card,
.thanks-panel,
.admin-card-panel {
  border-radius: 8px;
}

.section {
  padding: clamp(54px, 8vw, 86px) 0;
}

.split {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 58px);
}

.info-card,
.tutorial-card {
  min-height: 142px;
  padding: 20px;
}

.gallery-grid {
  gap: 10px;
}

.gallery-grid figure,
.gallery-grid .gallery-main {
  border-radius: 8px;
}

.join-band {
  gap: 24px;
  padding: 30px;
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 44px;
  }

  .hero-copy,
  .hero-text,
  .hero-note,
  h1 {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    min-height: 64px;
    padding: 9px 12px;
  }

  .brand {
    width: auto;
    min-width: 0;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    box-shadow: var(--system-inner), 0 8px 20px rgba(28, 34, 28, 0.07);
  }

  .site-menu-toggle {
    justify-self: end;
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .site-nav {
    top: calc(64px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
  }

  .site-nav a {
    min-height: 42px;
    padding: 9px 12px;
    text-align: left;
  }

  .hero,
  .section,
  .page-hero,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    gap: 16px;
    padding: 30px 0 28px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(40px, 13vw, 58px);
    line-height: 0.98;
  }

  .hero-text {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-note {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0 14px;
  }

  .button {
    min-height: 44px;
    width: 100%;
  }

  .server-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .server-snapshot div {
    min-height: 64px;
    padding: 12px;
  }

  dd {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }

  .section {
    padding: 46px 0;
  }

  .info-card,
  .tutorial-card,
  .feature-row,
  .join-panel,
  .download-box {
    padding: 17px;
  }

  .info-card,
  .tutorial-card {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .server-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 205px;
  }
}

/* Homepage composition refresh and selective text luminance. */
.hero.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1180px, calc(100% - 48px));
  min-height: min(620px, calc(100dvh - 116px));
  margin-top: 16px;
  margin-bottom: 18px;
  padding: clamp(34px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: #161b18;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 32px 80px rgba(25, 31, 27, 0.18);
  isolation: isolate;
}

.hero.hero-stage::before,
.hero.hero-stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero.hero-stage::before {
  background:
    linear-gradient(90deg, rgba(13, 17, 14, 0.78), rgba(13, 17, 14, 0.42) 42%, rgba(13, 17, 14, 0.03) 72%),
    linear-gradient(0deg, rgba(13, 17, 14, 0.76), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 32%);
}

.hero.hero-stage::after {
  inset: 1px;
  border-radius: 7px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(300deg, rgba(119, 153, 174, 0.16), transparent 44%);
  mix-blend-mode: screen;
}

.hero.hero-stage .hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #161b18;
  box-shadow: none !important;
}

.hero.hero-stage .hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero.hero-stage .hero-visual::after {
  content: none;
}

.hero.hero-stage .hero-copy {
  align-self: center;
  max-width: 620px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.32);
}

.hero.hero-stage .eyebrow {
  color: rgba(255, 218, 210, 0.92);
  text-shadow: 0 0 22px rgba(255, 190, 176, 0.26);
}

.hero.hero-stage h1 {
  max-width: 600px;
  color: #fff;
  font-size: clamp(52px, 8.2vw, 102px);
  text-wrap: balance;
}

.hero.hero-stage .hero-text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
}

.hero.hero-stage .hero-note {
  color: rgba(255, 255, 255, 0.82);
}

.hero.hero-stage .hero-note strong {
  color: #fff;
}

.hero.hero-stage .button {
  color: #111712;
}

.hero.hero-stage .button.primary {
  color: #fff;
}

.hero.hero-stage .server-snapshot {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: clamp(24px, 4vw, 38px) 0 0;
}

.hero.hero-stage .server-snapshot div {
  min-height: 82px;
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 14px 34px rgba(0, 0, 0, 0.16) !important;
  -webkit-backdrop-filter: blur(26px) saturate(1.22);
  backdrop-filter: blur(26px) saturate(1.22);
}

.hero.hero-stage dt {
  color: rgba(255, 255, 255, 0.66);
}

.hero.hero-stage dd {
  color: #fff;
}

.hero.hero-stage .photo-label {
  right: 18px;
  bottom: 18px;
}

@media (min-width: 761px) {
  .hero.hero-stage .server-snapshot {
    position: absolute;
    right: clamp(28px, 4vw, 50px);
    bottom: clamp(24px, 4vw, 42px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(430px, 38%);
    margin: 0;
  }

  .hero.hero-stage .photo-label {
    top: 18px;
    right: 18px;
    bottom: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover strong,
  .site-nav a:hover,
  .side-rail a:hover,
  .guide-toc a:hover,
  .info-card:hover h3,
  .tutorial-card:hover h3,
  .feature-row:hover h3,
  .download-row:hover strong,
  .link-card:hover strong,
  .guide-panel:hover > h2,
  .staff-card:hover h2,
  .status-card:hover h3,
  .thanks-panel:hover h2 {
    color: #162018;
    text-shadow: 0 0 18px rgba(94, 146, 108, 0.24), 0 0 1px rgba(255, 255, 255, 0.86);
  }

  .hero.hero-stage .button:hover,
  .button.primary:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 12px 30px rgba(72, 122, 83, 0.24) !important;
  }

  .info-card:hover,
  .tutorial-card:hover,
  .feature-row:hover,
  .download-row:hover,
  .link-card:hover,
  .guide-panel:hover,
  .staff-card:hover,
  .status-card:hover {
    border-color: rgba(255, 255, 255, 0.86);
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.32) 54%, rgba(238, 246, 236, 0.42)),
      rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
  }
}

.section.split {
  align-items: center;
}

#server.section.split {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  padding-top: 72px;
}

#server .info-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

#server .info-card {
  grid-column: span 3;
  min-height: 150px;
}

#server .info-card:nth-child(5) {
  grid-column: span 6;
  min-height: 128px;
}

#gallery .section-head {
  max-width: 820px;
}

.gallery-grid {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.82fr));
}

.gallery-grid .gallery-main {
  grid-column: span 1;
  grid-row: span 2;
}

.gallery-grid figure {
  min-height: 224px;
}

.rule-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
}

.rule-item {
  border-top: 1px solid rgba(24, 28, 24, 0.08);
}

@media (max-width: 1180px) {
  .hero.hero-stage {
    min-height: auto;
  }

  #server .info-grid,
  .rule-list {
    grid-template-columns: 1fr;
  }

  #server .info-card,
  #server .info-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .hero.hero-stage {
    width: min(100% - 24px, 1180px);
    min-height: auto;
    margin-top: 14px;
    padding: 22px 14px 14px;
  }

  .hero.hero-stage::before {
    background:
      linear-gradient(180deg, rgba(12, 16, 13, 0.72), rgba(12, 16, 13, 0.36) 48%, rgba(12, 16, 13, 0.68)),
      linear-gradient(90deg, rgba(12, 16, 13, 0.28), transparent 64%);
  }

  .hero.hero-stage .hero-copy {
    align-self: start;
  }

  .hero.hero-stage h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero.hero-stage .hero-text {
    font-size: 15px;
    line-height: 1.58;
  }

  .hero.hero-stage .server-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .hero.hero-stage .server-snapshot div {
    min-height: 68px;
    padding: 11px;
  }

  .hero.hero-stage .photo-label {
    display: none;
  }

  #server.section.split {
    padding-top: 46px;
  }

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

  .gallery-grid .gallery-main {
    grid-column: auto;
    grid-row: auto;
  }

  .rule-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Liquid-04: editorial hero, denser page rhythm, and interaction feedback. */
html {
  scroll-padding-top: 96px;
}

body {
  background:
    linear-gradient(180deg, rgba(244, 247, 243, 0.72), rgba(250, 250, 248, 0) 420px),
    #f8f9f7;
}

.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 140;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #4f805d, #86a7b7 62%, #c49a72);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.site-header,
.admin-site-header {
  border-bottom-color: rgba(35, 42, 36, 0.08);
  background: rgba(250, 251, 249, 0.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  backdrop-filter: blur(24px) saturate(1.35);
}

.site-header.is-scrolled,
.admin-site-header.is-scrolled {
  background: rgba(250, 251, 249, 0.86);
  box-shadow: 0 8px 28px rgba(34, 42, 35, 0.055);
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: #4f805d;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.hero.hero-stage {
  grid-template-rows: 1fr auto;
  width: min(1720px, calc(100% - 48px));
  min-height: clamp(610px, 72vh, 700px);
  margin-top: 18px;
  margin-bottom: 24px;
  padding: clamp(42px, 5vw, 64px);
  padding-bottom: 150px;
  border-color: rgba(255, 255, 255, 0.62);
  background: #111714;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 28px 72px rgba(27, 34, 28, 0.16);
}

.hero.hero-stage::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 9, 0.82) 0%, rgba(8, 12, 9, 0.61) 33%, rgba(8, 12, 9, 0.18) 66%, rgba(8, 12, 9, 0.06) 100%),
    linear-gradient(0deg, rgba(8, 12, 9, 0.82) 0%, rgba(8, 12, 9, 0.16) 44%, rgba(8, 12, 9, 0.08) 100%);
}

.hero.hero-stage::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 26%),
    linear-gradient(315deg, rgba(129, 163, 178, 0.11), transparent 38%);
}

.hero.hero-stage .hero-visual img {
  object-position: 57% center;
  transform: scale(1.002);
  transition: transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero.hero-stage .hero-copy {
  align-self: end;
  max-width: 650px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-heading-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.hero.hero-stage .hero-heading-row .eyebrow {
  margin: 0;
  color: rgba(255, 224, 216, 0.9);
}

.hero-presence {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.hero-presence span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83d29a;
  box-shadow: 0 0 14px rgba(131, 210, 154, 0.72);
}

.hero.hero-stage h1 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 6.5vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero.hero-stage .hero-text {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.68;
}

.hero.hero-stage .hero-actions {
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.hero.hero-stage .button {
  min-height: 46px;
  padding: 0 20px;
}

.hero.hero-stage .button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
}

.hero.hero-stage .server-copy.is-copied {
  border-color: rgba(139, 220, 161, 0.5);
  background: rgba(84, 145, 100, 0.32);
}

.hero-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-inline-link::after {
  margin-left: 8px;
  content: "\2192";
  transition: transform 180ms ease;
}

.hero.hero-stage .server-snapshot {
  position: absolute;
  right: clamp(42px, 5vw, 64px);
  bottom: 28px;
  left: clamp(42px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: auto;
  margin: 0;
  padding: 12px 8px;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(10, 14, 11, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 36px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  backdrop-filter: blur(24px) saturate(1.28);
}

.hero.hero-stage .server-snapshot div {
  min-height: 54px;
  padding: 5px 20px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: none;
  box-shadow: none !important;
}

.hero.hero-stage .server-snapshot div:first-child {
  border-left: 0;
}

.hero.hero-stage .server-snapshot dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  text-transform: uppercase;
}

.hero.hero-stage .server-snapshot dd {
  color: #fff;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.25;
}

.hero.hero-stage .photo-label {
  top: 22px;
  right: 22px;
  bottom: auto;
  padding: 8px 11px;
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.76);
  background: rgba(11, 15, 12, 0.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.page-hero {
  gap: 10px;
  padding: clamp(40px, 5vw, 54px) 0 18px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.72;
}

.form-panel {
  padding-top: 28px;
}

.form-progress {
  position: sticky;
  top: 82px;
  right: auto;
  left: auto;
  z-index: 6;
  margin: 0 0 22px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(248, 250, 247, 0.84);
  box-shadow: 0 8px 24px rgba(36, 44, 37, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.form-panel > label:not(.hp-field) {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.page-hero::after {
  width: 72px;
  margin-top: 10px;
}

.compact-section {
  padding-top: 18px;
}

.guide-layout {
  gap: 22px;
}

.guide-toc {
  top: 94px;
  padding: 10px;
}

.guide-toc a {
  position: relative;
  padding: 11px 12px 11px 17px;
  border-radius: 6px;
}

.guide-toc a::before {
  position: absolute;
  top: 50%;
  left: 7px;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #4f805d;
  content: "";
  opacity: 0;
  transform: translateY(-50%) scaleY(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.guide-toc a.is-active {
  color: #1d3223;
  background: rgba(79, 128, 93, 0.09);
}

.guide-toc a.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.guide-panel,
.form-panel,
.staff-card,
.status-card,
.thanks-panel {
  border-color: rgba(38, 45, 39, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48)),
    rgba(247, 249, 246, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 38px rgba(33, 41, 34, 0.065);
}

.guide-panel,
.policy-stack > .guide-panel {
  scroll-margin-top: 104px;
}

.form-panel {
  position: relative;
  padding-top: 86px;
}

.form-progress {
  position: absolute;
  top: 24px;
  right: 28px;
  left: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 16px;
  color: #59635b;
  font-size: 12px;
  font-weight: 700;
}

.form-progress strong {
  color: #274330;
  font-size: 13px;
}

.form-progress > div {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(52, 65, 55, 0.09);
}

.form-progress i {
  display: block;
  width: var(--form-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f805d, #8aa7b4);
  transition: width 220ms ease;
}

.form-panel input,
.form-panel select,
.form-panel textarea,
.admin-page input:not([type="checkbox"]):not([type="radio"]),
.admin-page select,
.admin-page textarea {
  border-color: rgba(39, 47, 40, 0.13);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 2px rgba(38, 47, 40, 0.035);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus,
.admin-page input:not([type="checkbox"]):not([type="radio"]):focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: rgba(70, 123, 84, 0.56);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(79, 128, 93, 0.1), inset 0 1px 2px rgba(38, 47, 40, 0.025);
}

.form-panel > label:not(.hp-field) {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(37, 44, 38, 0.065);
}

.form-panel .form-grid label {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.check-list {
  padding: 18px;
  border: 1px solid rgba(79, 128, 93, 0.12);
  border-radius: 8px;
  background: rgba(79, 128, 93, 0.045);
}

.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.side-rail a:focus-visible,
.guide-toc a:focus-visible,
.download-row:focus-visible,
.link-card:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(70, 123, 84, 0.42);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .hero.hero-stage:hover .hero-visual img {
    transform: scale(1.018);
  }

  .hero-inline-link:hover {
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
  }

  .hero-inline-link:hover::after {
    transform: translateX(4px);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero.hero-stage {
    display: grid;
    width: calc(100% - 20px);
    min-height: auto;
    margin-top: 10px;
    padding: 210px 18px 16px;
  }

  .hero.hero-stage::before {
    background:
      linear-gradient(180deg, rgba(8, 12, 9, 0.08) 0%, rgba(8, 12, 9, 0.32) 25%, rgba(8, 12, 9, 0.86) 54%, rgba(8, 12, 9, 0.94) 100%),
      linear-gradient(90deg, rgba(8, 12, 9, 0.35), rgba(8, 12, 9, 0.08));
  }

  .hero.hero-stage .hero-visual img {
    object-position: 58% center;
  }

  .hero-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .hero-presence {
    padding-left: 0;
    border-left: 0;
  }

  .hero.hero-stage h1 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.98;
  }

  .hero.hero-stage .hero-text {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.58;
  }

  .hero.hero-stage .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .hero.hero-stage .button {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
  }

  .hero-inline-link {
    grid-column: 1 / -1;
    min-height: 36px;
    padding: 0 2px;
  }

  .hero.hero-stage .server-snapshot {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    padding: 6px;
  }

  .hero.hero-stage .server-snapshot div {
    min-height: 62px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }

  .hero.hero-stage .server-snapshot div:nth-child(-n + 2) {
    border-top: 0;
  }

  .hero.hero-stage .server-snapshot div:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
  }

  .hero.hero-stage .server-snapshot dt {
    font-size: 10px;
  }

  .hero.hero-stage .server-snapshot dd {
    font-size: 14px;
  }

  .hero.hero-stage .photo-label {
    display: none;
  }

  .page-hero {
    padding: 30px 0 12px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.06;
  }

  .page-hero p:not(.eyebrow) {
    line-height: 1.62;
  }

  .compact-section {
    padding-top: 14px;
  }

  .guide-toc {
    top: auto;
  }

  .guide-panel,
  .policy-stack > .guide-panel {
    scroll-margin-top: 80px;
  }

  .form-panel {
    padding-top: 78px;
  }

  .form-progress {
    top: 20px;
    right: 18px;
    left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress i,
  .form-progress i,
  .hero.hero-stage .hero-visual img,
  .hero-inline-link::after {
    transition: none !important;
  }
}

/* Inner-page rhythm: less empty vertical drift, same premium scale. */
.page-hero {
  display: grid;
  gap: 12px;
  padding: clamp(42px, 6vw, 62px) 0 22px;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(40px, 6.8vw, 76px);
  line-height: 0.98;
  text-wrap: balance;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  font-size: clamp(16px, 1.7vw, 18px);
}

.compact-section {
  padding-top: 26px;
}

.guide-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.guide-content {
  gap: 14px;
}

.guide-panel,
.staff-card,
.form-panel,
.status-card,
.thanks-panel {
  padding: clamp(20px, 3vw, 28px);
}

.guide-panel > .step-mark {
  margin-bottom: 14px;
}

.setting-grid {
  gap: 10px;
}

.setting-grid article,
.faq-list details {
  border-color: rgba(24, 28, 24, 0.085);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

@media (max-width: 760px) {
  .page-hero {
    padding: 34px 0 14px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .compact-section {
    padding-top: 18px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-content,
  .guide-panel {
    width: 100%;
  }

  .guide-panel h2 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.08;
  }
}

/* Liquid-03: readability and full-site polish pass. */
.hero.hero-stage::before {
  background:
    radial-gradient(720px 520px at 24% 44%, rgba(5, 8, 6, 0.68), rgba(5, 8, 6, 0.36) 48%, transparent 74%),
    linear-gradient(90deg, rgba(7, 10, 8, 0.62), rgba(7, 10, 8, 0.24) 46%, rgba(7, 10, 8, 0.08) 72%),
    linear-gradient(0deg, rgba(7, 10, 8, 0.58), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%);
}

.hero.hero-stage .hero-copy {
  max-width: 640px;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(12, 16, 13, 0.48), rgba(12, 16, 13, 0.2) 58%, rgba(255, 255, 255, 0.08)),
    rgba(10, 14, 11, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 48px rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.14);
  backdrop-filter: blur(14px) saturate(1.14);
}

.hero.hero-stage h1,
.hero.hero-stage .hero-text,
.hero.hero-stage .hero-note,
.hero.hero-stage .eyebrow {
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.42),
    0 8px 26px rgba(0, 0, 0, 0.34),
    0 0 1px rgba(0, 0, 0, 0.7);
}

.hero.hero-stage .hero-text {
  color: rgba(255, 255, 255, 0.92);
}

.hero.hero-stage .hero-note {
  color: rgba(255, 255, 255, 0.88);
}

.hero.hero-stage .button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
}

.hero.hero-stage .server-snapshot div {
  background:
    linear-gradient(150deg, rgba(19, 24, 20, 0.44), rgba(255, 255, 255, 0.12)),
    rgba(12, 16, 13, 0.26);
}

.hero.hero-stage .server-snapshot dt {
  color: rgba(255, 255, 255, 0.72);
}

.hero.hero-stage .server-snapshot dd {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.38), 0 8px 22px rgba(0, 0, 0, 0.24);
}

.page-hero {
  position: relative;
}

.page-hero::after {
  width: min(140px, 38vw);
  height: 2px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(71, 122, 83, 0.55), rgba(143, 177, 196, 0.22), transparent);
  content: "";
}

.page-hero .button {
  width: fit-content;
}

.form-panel,
.staff-card,
.status-card,
.thanks-panel,
.guide-panel,
.admin-login-card,
.admin-hero-card,
.admin-page-bar,
.admin-command-bar,
.admin-panel,
.admin-card-panel,
.admin-table-wrap {
  border-radius: 8px;
}

.form-panel label > span,
.admin-login-card label > span,
.setting-grid h3,
.status-card h3,
.staff-card h2,
.staff-card h3,
.thanks-panel h2,
.guide-panel h2 {
  color: #151b17;
}

.clean-list,
.faq-list,
.feature-stack,
.staff-grid,
.status-grid,
.thanks-layout {
  min-width: 0;
}

.clean-list li,
.faq-list details,
.setting-grid article {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .clean-list li:hover,
  .faq-list details:hover,
  .setting-grid article:hover {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(28, 34, 28, 0.055);
  }

  .page-hero h1:hover,
  .admin-auth-copy h1:hover {
    text-shadow: 0 0 24px rgba(94, 146, 108, 0.16);
  }
}

.redirect-page .page-hero,
body:not(.admin-page) main > .page-hero:only-child {
  min-height: calc(100dvh - 140px);
  align-content: center;
}

.contributors-page .page-hero {
  min-height: calc(100dvh - 140px);
  align-content: center;
}

@media (max-width: 760px) {
  .hero.hero-stage::before {
    background:
      radial-gradient(420px 420px at 34% 24%, rgba(5, 8, 6, 0.68), rgba(5, 8, 6, 0.32) 54%, transparent 82%),
      linear-gradient(180deg, rgba(7, 10, 8, 0.64), rgba(7, 10, 8, 0.34) 46%, rgba(7, 10, 8, 0.7)),
      linear-gradient(90deg, rgba(7, 10, 8, 0.22), transparent 68%);
  }

  .hero.hero-stage .hero-copy {
    padding: 16px 13px;
  }

  .hero.hero-stage h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .page-hero .button {
    width: 100%;
  }

  .redirect-page .page-hero,
  body:not(.admin-page) main > .page-hero:only-child,
  .contributors-page .page-hero {
    min-height: calc(100dvh - 104px);
  }
}

/* Liquid-04 cascade guard: keep the redesigned hero above the legacy polish layer. */
@media (min-width: 761px) and (max-width: 1540px) {
  .side-rail {
    display: none;
  }
}

.form-progress i {
  width: 100%;
  transform: scaleX(var(--form-progress-scale, 0));
  transform-origin: left center;
}

.form-panel {
  padding-top: 28px;
}

.form-progress {
  position: sticky;
  top: 82px;
  right: auto;
  left: auto;
  z-index: 6;
  margin: 0 0 22px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(248, 250, 247, 0.84);
  box-shadow: 0 8px 24px rgba(36, 44, 37, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.form-panel > label:not(.hp-field) {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

.hero.hero-stage::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 9, 0.9) 0%, rgba(8, 12, 9, 0.76) 36%, rgba(8, 12, 9, 0.28) 66%, rgba(8, 12, 9, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 12, 9, 0.78) 0%, rgba(8, 12, 9, 0.18) 46%, rgba(8, 12, 9, 0.08) 100%);
}

.hero.hero-stage .hero-copy {
  position: relative;
  isolation: isolate;
  max-width: 650px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.62), 0 12px 30px rgba(0, 0, 0, 0.52);
}

.hero.hero-stage .hero-copy::before {
  position: absolute;
  inset: -58px -110px -52px -62px;
  z-index: -1;
  background: radial-gradient(ellipse at 32% 50%, rgba(4, 7, 5, 0.8) 0%, rgba(4, 7, 5, 0.57) 44%, rgba(4, 7, 5, 0.22) 67%, transparent 80%);
  content: "";
  pointer-events: none;
}

.hero.hero-stage h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(56px, 5.9vw, 78px);
  line-height: 0.96;
}

.hero.hero-stage .hero-text {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.68;
}

.hero.hero-stage .button.secondary {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero.hero-stage .server-snapshot div {
  min-height: 54px;
  padding: 5px 20px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: none;
  box-shadow: none !important;
}

.hero.hero-stage .server-snapshot div:first-child {
  border-left: 0;
}

.hero.hero-stage .server-snapshot dt {
  color: rgba(255, 255, 255, 0.58);
}

.hero.hero-stage .server-snapshot dd {
  color: #fff;
}

.page-hero {
  gap: 10px;
  padding: clamp(40px, 5vw, 54px) 0 18px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.72;
}

@media (max-width: 760px) {
  .hero.hero-stage::before {
    background:
      linear-gradient(180deg, rgba(8, 12, 9, 0.08) 0%, rgba(8, 12, 9, 0.32) 25%, rgba(8, 12, 9, 0.86) 54%, rgba(8, 12, 9, 0.94) 100%),
      linear-gradient(90deg, rgba(8, 12, 9, 0.35), rgba(8, 12, 9, 0.08));
  }

  .hero.hero-stage .hero-copy {
    padding: 0;
  }

  .hero.hero-stage .hero-copy::before {
    display: none;
  }

  .hero.hero-stage h1 {
    font-size: clamp(44px, 13vw, 58px);
    line-height: 0.98;
  }

  .hero.hero-stage .hero-text {
    font-size: 15px;
    line-height: 1.58;
  }

  .hero.hero-stage .server-snapshot div {
    min-height: 62px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }

  .hero.hero-stage .server-snapshot div:nth-child(-n + 2) {
    border-top: 0;
  }

  .hero.hero-stage .server-snapshot div:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
  }

  .page-hero {
    padding: 30px 0 12px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.06;
  }

  .form-panel {
    padding-top: 20px;
  }

  .form-progress {
    top: 68px;
    right: auto;
    left: auto;
    margin-bottom: 18px;
  }
}

/* Liquid-06 final regression guard. */
.form-progress {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: 1;
}

/* Liquid-07 wide canvas: full layouts with readable inner measure. */
.home-page main > .section,
.wide-page main > .page-hero,
.wide-page main > .section,
.home-page .site-footer,
.wide-page .site-footer {
  width: min(1760px, calc(100% - clamp(36px, 6vw, 112px)));
}

.home-page main > .section,
.wide-page main > .section {
  padding-block: clamp(48px, 6vw, 82px);
}

.wide-page .page-hero {
  padding-top: clamp(42px, 5vw, 68px);
}

.wide-page .page-hero p:not(.eyebrow),
.home-page .section > div > p,
.home-page .section-head > p,
.wide-page .section-head > p,
.wide-page .guide-panel > p,
.wide-page .status-card > p,
.wide-page .staff-card > p,
.wide-page .thanks-panel .section-head > p {
  max-width: 880px;
}

.home-page .section.split {
  gap: clamp(38px, 5vw, 96px);
}

.home-page #server.section.split {
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.48fr);
}

.home-page #gallery .section-head,
.home-page #community > div:first-child,
.home-page #support > div:first-child {
  max-width: 900px;
}

.wide-page .guide-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(20px, 2.2vw, 38px);
}

.wide-page .guide-content,
.wide-page .policy-stack {
  width: 100%;
  max-width: none;
}

.wide-page .guide-panel,
.wide-page .staff-card,
.wide-page .status-card,
.wide-page .thanks-panel,
.home-page .info-card,
.home-page .tutorial-card,
.home-page .join-panel,
.home-page .download-box,
.home-page .link-card {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 246, 0.42) 56%, rgba(229, 239, 232, 0.28)),
    rgba(247, 249, 247, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(43, 55, 46, 0.04),
    0 18px 44px rgba(34, 44, 36, 0.07);
  -webkit-backdrop-filter: blur(28px) saturate(1.28);
  backdrop-filter: blur(28px) saturate(1.28);
}

.wide-page .guide-toc {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(248, 250, 248, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 16px 38px rgba(34, 44, 36, 0.065);
  -webkit-backdrop-filter: blur(26px) saturate(1.24);
  backdrop-filter: blur(26px) saturate(1.24);
}

.status-page .status-grid {
  gap: clamp(14px, 1.6vw, 26px);
}

.supporters-page .thanks-layout,
.staff-page .staff-grid {
  gap: clamp(14px, 1.6vw, 26px);
}

@media (min-width: 1500px) {
  .staff-page .staff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .staff-page .staff-card {
    min-height: 390px;
  }
}

@media (max-width: 900px) {
  .home-page #server.section.split,
  .home-page .section.split,
  .wide-page .guide-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .wide-page .guide-toc {
    position: static;
  }
}

@media (max-width: 760px) {
  .home-page main > .section,
  .wide-page main > .page-hero,
  .wide-page main > .section,
  .home-page .site-footer,
  .wide-page .site-footer {
    width: calc(100% - 24px);
  }

  .home-page main > .section,
  .wide-page main > .section {
    padding-block: 38px;
  }
}

/* Liquid-08 depth pass: restrained tonal bands and layered glass surfaces. */
:root {
  --depth-canvas: #f4f6f3;
  --depth-green: rgba(220, 233, 224, 0.34);
  --depth-blue: rgba(222, 232, 238, 0.28);
  --depth-warm: rgba(238, 232, 221, 0.24);
  --depth-shadow-low: 0 8px 22px rgba(31, 40, 33, 0.055), 0 1px 3px rgba(31, 40, 33, 0.035);
  --depth-shadow-mid: 0 18px 42px rgba(31, 40, 33, 0.075), 0 3px 10px rgba(31, 40, 33, 0.04);
  --depth-shadow-high: 0 28px 64px rgba(31, 40, 33, 0.09), 0 5px 16px rgba(31, 40, 33, 0.045);
  --panel-accent: rgba(76, 128, 91, 0.72);
}

body:not(.admin-page) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 420px),
    var(--depth-canvas);
}

.home-page main > .section,
.wide-page main > .page-hero,
.wide-page main > .section,
.apply-page main > .page-hero,
.apply-page main > .section {
  position: relative;
  isolation: isolate;
}

.home-page main > .section:nth-of-type(even) {
  background: linear-gradient(90deg, rgba(231, 239, 233, 0.3), rgba(226, 235, 240, 0.2) 58%, rgba(244, 244, 240, 0.08));
  box-shadow:
    0 0 0 100vmax rgba(230, 237, 232, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(45, 58, 48, 0.035) !important;
  clip-path: inset(0 -100vmax);
}

.home-page #join.join-band {
  border: 0;
  border-radius: 0;
  background: linear-gradient(100deg, rgba(213, 230, 219, 0.46), rgba(226, 235, 241, 0.34) 56%, rgba(240, 233, 221, 0.22));
  box-shadow:
    0 0 0 100vmax rgba(224, 234, 226, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(45, 58, 48, 0.05) !important;
  clip-path: inset(0 -100vmax);
}

.wide-page main > .page-hero,
.apply-page main > .page-hero {
  background: linear-gradient(100deg, rgba(219, 233, 224, 0.4), rgba(225, 234, 240, 0.28) 56%, rgba(244, 243, 238, 0.08) 82%);
  box-shadow:
    0 0 0 100vmax rgba(231, 237, 232, 0.24),
    inset 0 -1px 0 rgba(45, 58, 48, 0.045) !important;
  clip-path: inset(0 -100vmax);
}

.home-page .section-head,
.wide-page .section-head,
.apply-page .section-head {
  position: relative;
  padding-left: 17px;
}

.home-page .section-head::before,
.wide-page .section-head::before,
.apply-page .section-head::before {
  position: absolute;
  top: 3px;
  bottom: 4px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(74, 126, 89, 0.8), rgba(126, 161, 178, 0.55));
  box-shadow: 0 0 12px rgba(86, 135, 99, 0.12);
  content: "";
}

.wide-page .guide-panel,
.wide-page .staff-card,
.wide-page .status-card,
.wide-page .thanks-panel,
.apply-page .form-panel,
.home-page .info-card,
.home-page .tutorial-card,
.home-page .download-box,
.home-page .link-card,
.home-page .join-panel {
  position: relative;
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(248, 251, 248, 0.5) 56%, rgba(233, 240, 235, 0.32)),
    rgba(247, 250, 247, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(43, 55, 46, 0.045),
    var(--depth-shadow-mid) !important;
}

.wide-page .guide-panel,
.apply-page .form-panel,
.wide-page .thanks-panel {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(43, 55, 46, 0.05),
    var(--depth-shadow-high) !important;
}

.wide-page .guide-panel:nth-child(even),
.supporters-page .thanks-panel:nth-child(even),
.status-page .status-card:nth-child(2) {
  --panel-accent: rgba(102, 139, 158, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(242, 248, 251, 0.52) 58%, rgba(218, 231, 238, 0.3)),
    rgba(246, 249, 250, 0.64);
}

.status-page .status-card:nth-child(3),
.staff-page .staff-card:nth-child(3),
.supporters-page .thanks-panel:nth-child(1) {
  --panel-accent: rgba(177, 145, 79, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(251, 249, 243, 0.52) 58%, rgba(238, 229, 209, 0.3)),
    rgba(249, 248, 244, 0.64);
}

.staff-page .staff-card:nth-child(2),
.staff-page .staff-card:nth-child(4) {
  --panel-accent: rgba(105, 137, 154, 0.68);
}

.wide-page .guide-panel::before,
.wide-page .staff-card::before,
.wide-page .status-card::before,
.wide-page .thanks-panel::before,
.apply-page .form-panel::before {
  position: absolute;
  top: 0;
  right: auto;
  bottom: auto;
  left: 24px;
  width: 48px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--panel-accent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--panel-accent) 24%, transparent);
  content: "";
  pointer-events: none;
}

.guide-panel > .step-mark,
.policy-stack .step-mark {
  border-color: rgba(66, 100, 75, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 7px 18px rgba(43, 55, 46, 0.07);
  color: #3f664b;
}

.wide-page .setting-grid article,
.wide-page .faq-list details,
.wide-page .feature-row,
.status-page .notice-card,
.supporters-page .thanks-row,
.apply-page .form-progress {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 0 0 1px rgba(44, 57, 47, 0.025),
    var(--depth-shadow-low);
}

.wide-page .guide-toc {
  border-color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.78), rgba(235, 242, 237, 0.52)),
    rgba(246, 249, 246, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 48px rgba(33, 43, 35, 0.085) !important;
}

.home-page .info-card,
.home-page .tutorial-card,
.home-page .link-card,
.wide-page .staff-card,
.wide-page .status-card {
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .info-card:hover,
  .home-page .tutorial-card:hover,
  .home-page .link-card:hover,
  .wide-page .staff-card:hover,
  .wide-page .status-card:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      inset 0 -1px 0 rgba(43, 55, 46, 0.045),
      0 24px 54px rgba(31, 40, 33, 0.1),
      0 5px 14px rgba(31, 40, 33, 0.04) !important;
    transform: translateY(-2px);
  }
}

.site-footer {
  position: relative;
  background: rgba(236, 241, 237, 0.42);
  box-shadow:
    0 0 0 100vmax rgba(236, 241, 237, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  clip-path: inset(0 -100vmax);
}

.admin-page {
  background:
    linear-gradient(180deg, rgba(225, 236, 229, 0.28), transparent 440px),
    linear-gradient(90deg, rgba(226, 235, 241, 0.18), transparent 48%),
    #f4f6f3;
}

.admin-page .admin-hero-card,
.admin-page .admin-panel,
.admin-page .admin-login-card {
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 247, 0.5) 60%, rgba(224, 235, 227, 0.3)),
    rgba(247, 249, 247, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(43, 55, 46, 0.05),
    var(--depth-shadow-high) !important;
}

.admin-page .admin-page-bar,
.admin-page .admin-command-bar,
.admin-page .admin-sidebar,
.admin-page .admin-card-panel,
.admin-page .admin-table-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    var(--depth-shadow-mid) !important;
}

@media (max-width: 760px) {
  .home-page .section-head,
  .wide-page .section-head,
  .apply-page .section-head {
    padding-left: 13px;
  }

  .home-page .section-head::before,
  .wide-page .section-head::before,
  .apply-page .section-head::before {
    width: 2px;
  }

  .wide-page .guide-panel,
  .wide-page .staff-card,
  .wide-page .status-card,
  .wide-page .thanks-panel,
  .apply-page .form-panel,
  .home-page .info-card,
  .home-page .tutorial-card,
  .home-page .download-box,
  .home-page .link-card,
  .home-page .join-panel,
  .admin-page .admin-hero-card,
  .admin-page .admin-panel,
  .admin-page .admin-login-card {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -1px 0 rgba(43, 55, 46, 0.04),
      0 14px 34px rgba(31, 40, 33, 0.075),
      0 2px 7px rgba(31, 40, 33, 0.035) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .info-card,
  .home-page .tutorial-card,
  .home-page .link-card,
  .wide-page .staff-card,
  .wide-page .status-card {
    transition: none !important;
  }
}

/* Admin Workbench-01: operational density inspired by server control panels. */
.admin-page {
  --admin-sidebar-bg: #232c27;
  --admin-sidebar-ink: rgba(255, 255, 255, 0.92);
  --admin-sidebar-muted: rgba(255, 255, 255, 0.5);
  --admin-sidebar-active: rgba(114, 168, 128, 0.2);
  --admin-surface: rgba(250, 252, 250, 0.96);
  --admin-surface-muted: #f3f6f3;
  --admin-line: rgba(35, 48, 39, 0.1);
  --admin-shadow: 0 7px 22px rgba(29, 39, 32, 0.055);
  background: #eef2ef;
  color: #1c241f;
}

.admin-page .admin-site-header {
  min-height: 64px;
  border-bottom: 1px solid rgba(35, 48, 39, 0.09);
  background: rgba(249, 251, 249, 0.94);
  box-shadow: 0 2px 10px rgba(29, 39, 32, 0.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.admin-page .admin-site-header .brand-logo {
  width: 38px;
  height: 38px;
}

.admin-page .admin-site-header .site-nav a {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  font-size: 13px;
}

.admin-sidebar-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-head img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.admin-sidebar-head span,
.admin-sidebar-head strong,
.admin-sidebar-head small {
  display: block;
  min-width: 0;
}

.admin-sidebar-head strong {
  margin: 0;
  overflow: hidden;
  color: var(--admin-sidebar-ink);
  font-size: 14px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.admin-sidebar-head small {
  margin-top: 2px;
  color: var(--admin-sidebar-muted);
  font-size: 10px;
  font-weight: 700;
}

.admin-nav-group {
  display: grid;
  gap: 2px;
}

.admin-nav-group > span {
  margin: 10px 8px 4px;
  color: var(--admin-sidebar-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-nav-group.is-current > span {
  color: #b9d8c1;
}

.admin-page .admin-page-context {
  margin-bottom: 3px;
  color: #829087;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-page .admin-page-bar > div:first-child {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  gap: 0 12px;
}

.admin-page .admin-page-bar .admin-page-context {
  grid-column: 1 / -1;
}

.admin-page .admin-page-bar #admin-page-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 761px) {
  .admin-page.is-authenticated .admin-site-header {
    position: sticky;
    top: 0;
  }

  .admin-page.is-authenticated .admin-shell {
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 14px;
    width: min(1880px, calc(100% - 28px));
    margin: 0 auto;
    padding: 14px 0 32px;
  }

  .admin-page.is-authenticated .admin-sidebar {
    position: sticky;
    top: 78px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    height: calc(100dvh - 92px);
    padding: 12px;
    overflow-y: auto;
    border: 0;
    border-radius: 6px;
    background: var(--admin-sidebar-bg);
    box-shadow: 0 10px 28px rgba(24, 32, 27, 0.14) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }

  .admin-page.is-authenticated .admin-nav-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .admin-page.is-authenticated .admin-sidebar a {
    position: relative;
    min-height: 34px;
    padding: 8px 10px 8px 13px;
    border: 0;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.68);
    background: transparent;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 700;
  }

  .admin-page.is-authenticated .admin-sidebar a::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #7ab188;
    content: "";
    opacity: 0;
  }

  .admin-page.is-authenticated .admin-sidebar a:hover {
    color: var(--admin-sidebar-ink);
    background: rgba(255, 255, 255, 0.07);
  }

  .admin-page.is-authenticated .admin-sidebar a.is-active {
    color: #fff;
    background: var(--admin-sidebar-active);
  }

  .admin-page.is-authenticated .admin-sidebar a.is-active::before {
    opacity: 1;
  }

  .admin-page.is-authenticated .admin-workspace {
    gap: 12px;
  }

  .admin-page.is-authenticated .admin-page-bar {
    position: sticky;
    top: 76px;
    z-index: 20;
    min-height: 58px;
    padding: 9px 12px 9px 16px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: rgba(250, 252, 250, 0.94);
    box-shadow: 0 5px 16px rgba(29, 39, 32, 0.055) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.06);
    backdrop-filter: blur(18px) saturate(1.06);
  }

  .admin-page.is-authenticated .admin-page-bar span {
    font-size: 17px;
  }

  .admin-page.is-authenticated .admin-page-bar small {
    font-size: 11px;
  }

  .admin-page.is-authenticated .admin-auth-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 12px 16px;
    overflow: visible;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow) !important;
  }

  .admin-page.is-authenticated .admin-auth-hero::before {
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #5f9470;
  }

  .admin-page.is-authenticated .admin-auth-copy {
    display: block;
    padding-left: 6px;
  }

  .admin-page.is-authenticated .admin-auth-copy .eyebrow,
  .admin-page.is-authenticated .admin-auth-copy > p:not(.eyebrow),
  .admin-page.is-authenticated .admin-auth-ledger {
    display: none;
  }

  .admin-page.is-authenticated .admin-auth-copy h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
  }

  .admin-page.is-authenticated .admin-login-card {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .admin-page.is-authenticated .admin-login-head,
  .admin-page.is-authenticated .admin-message {
    display: none;
  }

  .admin-page.is-authenticated .admin-auth-status {
    min-height: 34px;
    padding: 5px 8px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: var(--admin-surface-muted);
  }

  .admin-page.is-authenticated .admin-self-promote {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .admin-page.is-authenticated .admin-self-promote > div {
    display: none;
  }

  .admin-page.is-authenticated .admin-self-promote input {
    width: 180px;
  }

  .admin-page.is-authenticated .admin-login-actions {
    display: none;
  }

  .admin-page.is-authenticated .admin-command-bar {
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow) !important;
  }

  .admin-page.is-authenticated .admin-command-bar .button {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
  }

  .admin-page.is-authenticated .admin-panel {
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--admin-line);
    border-radius: 6px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .admin-page.is-authenticated .admin-section-head {
    min-height: 42px;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--admin-line);
  }

  .admin-page.is-authenticated .admin-section-head .eyebrow {
    margin-bottom: 2px;
    color: #718078;
    font-size: 10px;
  }

  .admin-page.is-authenticated .admin-section-head h2 {
    font-size: 21px;
    line-height: 1.2;
  }

  .admin-page.is-authenticated .admin-metric-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 8px;
  }

  .admin-page.is-authenticated .admin-metric,
  .admin-page.is-authenticated .admin-card-panel {
    padding: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: #f8faf8;
    box-shadow: none !important;
  }

  .admin-page.is-authenticated .admin-metric {
    min-height: 78px;
    border-left-width: 3px;
  }

  .admin-page.is-authenticated .admin-metric strong {
    font-size: 25px;
  }

  .admin-page.is-authenticated .admin-overview-grid,
  .admin-page.is-authenticated .admin-tools-grid {
    gap: 10px;
  }

  .admin-page.is-authenticated .admin-filter-panel {
    display: block;
    padding: 10px;
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: var(--admin-surface-muted);
  }

  .admin-page.is-authenticated .admin-filter-panel > summary {
    display: none;
  }

  .admin-page.is-authenticated .admin-filter-panel-body {
    display: block;
  }

  .admin-page.is-authenticated .admin-filter-row,
  .admin-page.is-authenticated .admin-filter-row.two,
  .admin-page.is-authenticated .admin-filter-row.single {
    display: grid;
    gap: 8px;
  }

  .admin-page.is-authenticated .admin-filter-row label > span,
  .admin-page.is-authenticated .admin-toolbar label > span {
    margin-bottom: 3px;
    color: #66746c;
    font-size: 11px;
  }

  .admin-page.is-authenticated input:not([type="checkbox"]):not([type="radio"]),
  .admin-page.is-authenticated select,
  .admin-page.is-authenticated textarea {
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid rgba(35, 48, 39, 0.16);
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
  }

  .admin-page.is-authenticated .admin-table-wrap {
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: #fff;
    box-shadow: none !important;
  }

  .admin-page.is-authenticated .admin-table th {
    height: 38px;
    padding: 9px 10px;
    background: #f1f4f1;
    color: #5e6d64;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .admin-page.is-authenticated .admin-table td {
    padding: 10px;
    border-bottom-color: rgba(35, 48, 39, 0.075);
    font-size: 13px;
  }

  .admin-page.is-authenticated .admin-table tbody tr:nth-child(even) {
    background: rgba(241, 245, 242, 0.46);
  }

  .admin-page.is-authenticated .admin-table tbody tr:hover {
    background: rgba(222, 235, 225, 0.58);
  }

  .admin-page.is-authenticated .admin-table td > button:not(.table-mini-button),
  .admin-page.is-authenticated .admin-table .row-actions button,
  .admin-page.is-authenticated .table-mini-button,
  .admin-page.is-authenticated .admin-pagination button {
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 4px;
    box-shadow: none !important;
    font-size: 12px;
  }

  .admin-page.is-authenticated .admin-pagination {
    min-height: 36px;
    padding-top: 4px;
  }
}

.admin-page:not(.is-authenticated) .admin-shell {
  width: min(1040px, calc(100% - 36px));
  min-height: calc(100dvh - 64px);
  padding: 28px 0 40px;
}

.admin-page:not(.is-authenticated) .admin-auth-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: clamp(28px, 5vw, 64px);
  min-height: 430px;
  padding: 24px 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.admin-page:not(.is-authenticated) .admin-auth-hero::before {
  display: none;
}

.admin-page:not(.is-authenticated) .admin-auth-copy h1 {
  font-size: clamp(34px, 4vw, 46px);
}

.admin-page:not(.is-authenticated) .admin-auth-copy > p:not(.eyebrow) {
  max-width: 500px;
  font-size: 16px;
}

.admin-page:not(.is-authenticated) .admin-auth-ledger {
  gap: 8px;
  margin-top: 8px;
}

.admin-page:not(.is-authenticated) .admin-auth-ledger span {
  min-height: 66px;
  padding: 12px;
  border-color: var(--admin-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.admin-page:not(.is-authenticated) .admin-login-card {
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: #fbfcfb;
  box-shadow: 0 14px 40px rgba(29, 39, 32, 0.1) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.admin-page:not(.is-authenticated) .admin-auth-tabs {
  padding: 3px;
  border-radius: 5px;
  background: #eef2ef;
}

.admin-page:not(.is-authenticated) .admin-auth-tabs button {
  min-height: 34px;
  border-radius: 4px;
  box-shadow: none !important;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .admin-page.is-authenticated .admin-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .admin-page.is-authenticated .admin-metric-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .admin-sidebar-head {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .admin-sidebar-head img {
    width: 30px;
    height: 30px;
  }

  .admin-page.is-authenticated #applications .admin-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page.is-authenticated #applications .admin-filter-row label:first-child {
    grid-column: 1 / -1;
  }

  .admin-page.is-authenticated .admin-filter-row.two {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.62fr);
  }
}

@media (max-width: 760px) {
  .admin-page .mobile-menu-backdrop,
  .admin-page.admin-menu-from-bottom.admin-section-menu-open .mobile-menu-backdrop {
    position: fixed;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 0;
  }

  .admin-page {
    background: #eef2ef;
  }

  .admin-page .admin-toast,
  .admin-page .site-toast {
    top: auto;
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-width: none;
  }

  .admin-page:not(.is-authenticated) .admin-toast,
  .admin-page:not(.is-authenticated) .site-toast {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .admin-page:not(.is-authenticated) .admin-shell {
    width: 100%;
    min-height: 0;
    padding: 8px 10px 28px;
  }

  .admin-page:not(.is-authenticated) .admin-auth-hero {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .admin-page:not(.is-authenticated) .admin-auth-copy {
    padding: 14px 4px 18px;
  }

  .admin-page:not(.is-authenticated) .admin-auth-copy h1 {
    font-size: 32px;
  }

  .admin-page:not(.is-authenticated) .admin-auth-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .admin-page:not(.is-authenticated) .admin-auth-ledger {
    display: none;
  }

  .admin-page:not(.is-authenticated) .admin-login-card {
    padding: 14px;
    border-radius: 6px;
  }

  .admin-page .admin-sidebar,
  .admin-page.admin-menu-from-bottom .admin-sidebar {
    gap: 4px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: var(--admin-sidebar-bg);
    box-shadow: 0 12px 34px rgba(24, 32, 27, 0.2) !important;
  }

  .admin-page .admin-sidebar-head {
    display: none;
  }

  .admin-page .admin-nav-group {
    gap: 2px;
  }

  .admin-page .admin-nav-group > span {
    margin: 8px 8px 3px;
    color: var(--admin-sidebar-muted);
  }

  .admin-page .admin-sidebar a {
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    box-shadow: none !important;
  }

  .admin-page .admin-sidebar a.is-active {
    color: #fff;
    background: var(--admin-sidebar-active);
  }

  .admin-page .admin-workspace {
    gap: 8px;
  }

  .admin-page .admin-panel,
  .admin-page .admin-hero-card {
    padding: 10px;
    border-radius: 6px;
    background: var(--admin-surface);
    box-shadow: none !important;
  }

  .admin-page .admin-section-head {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--admin-line);
  }

  .admin-page .admin-filter-panel > summary,
  .admin-page .admin-filter-row input,
  .admin-page .admin-filter-row select,
  .admin-page .admin-toolbar input,
  .admin-page .admin-toolbar select {
    border-radius: 5px;
  }

  .admin-page .admin-table tr {
    border: 1px solid var(--admin-line);
    border-radius: 5px;
    background: #fff;
  }

  .admin-page .admin-mobile-actions {
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--admin-line);
    border-radius: 7px;
    background: rgba(250, 252, 250, 0.96);
    box-shadow: 0 9px 24px rgba(29, 39, 32, 0.12);
  }

  .admin-page .admin-mobile-actions button {
    min-height: 38px;
    border-radius: 5px;
    box-shadow: none !important;
  }
}

/* Admin Workflow-02: state-aware controls and a single source of truth per task. */
.admin-page .admin-self-promote[hidden],
.admin-page .admin-bulk-bar[hidden] {
  display: none !important;
}

.admin-page.is-authenticated .admin-auth-hero {
  display: none !important;
}

.admin-page.is-authenticated .admin-sidebar .admin-self-promote {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: transparent;
}

.admin-page.is-authenticated .admin-sidebar .admin-self-promote > span {
  color: var(--admin-sidebar-muted);
  font-size: 10px;
  font-weight: 800;
}

.admin-page.is-authenticated .admin-sidebar .admin-self-promote input {
  width: 100%;
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
}

.admin-page.is-authenticated .admin-sidebar .admin-self-promote input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.admin-page.is-authenticated .admin-sidebar .admin-self-promote button {
  width: 100%;
  min-height: 32px;
  border-color: rgba(133, 194, 148, 0.34);
  color: #f5fff7;
  background: rgba(91, 151, 106, 0.48);
}

.admin-page.is-authenticated #applications > .admin-view-tabs {
  margin-top: -2px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-page.is-authenticated #applications > .admin-view-tabs::-webkit-scrollbar {
  display: none;
}

.admin-page.is-authenticated .admin-danger-action {
  border-color: rgba(173, 69, 69, 0.25) !important;
  color: #9d3f3f !important;
  background: rgba(173, 69, 69, 0.06) !important;
}

.admin-page.is-authenticated .admin-danger-action:hover {
  border-color: rgba(173, 69, 69, 0.4) !important;
  background: rgba(173, 69, 69, 0.1) !important;
}

@media (min-width: 761px) {
  .admin-page.is-authenticated #applications .admin-filter-row {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.28fr);
  }

  .admin-page.is-authenticated #applications .admin-filter-row label:first-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .admin-page.is-authenticated .admin-sidebar .admin-self-promote {
    margin-top: 8px;
    padding: 10px 8px 2px;
  }

  .admin-page.is-authenticated #applications > .admin-view-tabs {
    width: calc(100% - 20px);
    margin-inline: auto;
  }
}

/* Admin Workbench-03: full-width desktop console. */
@media (min-width: 761px) {
  .admin-page.is-authenticated {
    min-height: 100dvh;
  }

  .admin-page.is-authenticated .admin-site-header {
    display: none;
  }

  .admin-page.is-authenticated .admin-shell {
    grid-template-columns: clamp(204px, 14vw, 228px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
  }

  .admin-page.is-authenticated .admin-sidebar {
    top: 0;
    height: 100dvh;
    padding: 14px 11px;
    border-radius: 0;
    box-shadow: 4px 0 18px rgba(24, 32, 27, 0.1) !important;
  }

  .admin-page.is-authenticated .admin-workspace {
    align-content: start;
    width: 100%;
    padding: 12px 14px 32px;
  }

  .admin-page.is-authenticated .admin-page-bar {
    top: 12px;
  }

  .admin-page.is-authenticated[data-admin-view="overview"] .admin-page-bar {
    display: flex;
  }
}

/* Admin Workflow-05: keep bulk controls mounted to prevent table movement. */
.admin-page.is-authenticated .admin-bulk-bar.is-empty .button,
.admin-page.is-authenticated .admin-bulk-bar.is-empty .admin-danger-action {
  border-color: rgba(35, 48, 39, 0.1) !important;
  color: rgba(69, 81, 73, 0.42) !important;
  background: rgba(238, 242, 239, 0.72) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}
/* Administrator TOTP setup */
.admin-security-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.admin-mfa-setup {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(180px, 256px) minmax(0, 1fr);
  align-items: start;
}

.admin-mfa-setup img {
  display: block;
  width: min(100%, 256px);
  aspect-ratio: 1;
  border-radius: 18px;
  background: #fff;
}

.admin-mfa-setup code {
  display: block;
  max-width: 100%;
  margin: 10px 0 18px;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  user-select: all;
}

.admin-mfa-recovery pre {
  max-width: 100%;
  padding: 16px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.76);
  line-height: 1.7;
}

@media (max-width: 680px) {
  .admin-mfa-setup {
    grid-template-columns: 1fr;
  }

  .admin-mfa-setup img {
    margin-inline: auto;
  }
}

/* Admin IA refresh: task-first descriptions, contextual actions and workspaces. */
.admin-section-description {
  max-width: 68ch;
  margin: 7px 0 0;
  color: var(--admin-muted, #68746c);
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-settings-disclosure {
  margin-bottom: 22px;
  border: 1px solid rgba(43, 60, 49, 0.1);
  border-radius: 14px;
  background: rgba(246, 248, 246, 0.72);
}

.admin-settings-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 16px;
  color: #314238;
  font-weight: 750;
  cursor: pointer;
}

.admin-settings-disclosure > summary small {
  color: #748078;
  font-weight: 500;
}

.admin-settings-disclosure > .admin-tools-grid {
  padding: 0 14px 14px;
}

.admin-page .admin-bulk-bar {
  overflow: visible;
}

.admin-page .admin-bulk-bar[hidden] {
  display: none !important;
}

.admin-action-menu {
  position: relative;
  flex: 0 0 auto;
}

.admin-action-menu > summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(43, 60, 49, 0.16);
  border-radius: 10px;
  color: #314238;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.admin-action-menu > summary::-webkit-details-marker {
  display: none;
}

.admin-action-menu > summary::after {
  content: "⌄";
  margin-left: 8px;
  font-size: 0.8em;
}

.admin-action-menu[open] > summary {
  border-color: rgba(70, 123, 86, 0.45);
  box-shadow: 0 0 0 3px rgba(70, 123, 86, 0.1);
}

.admin-action-menu-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 40px));
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(43, 60, 49, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 35, 28, 0.18);
}

.admin-action-menu-popover .button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  box-shadow: none;
}

.admin-workspace-tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(43, 60, 49, 0.1);
  border-radius: 14px;
  background: rgba(238, 242, 239, 0.78);
  scrollbar-width: thin;
}

.admin-workspace-tabs button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: #536159;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.admin-workspace-tabs button:hover {
  color: #263b2f;
  background: rgba(255, 255, 255, 0.7);
}

.admin-workspace-tabs button.is-active {
  color: #1f5131;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 54, 38, 0.1);
}

.game-ops-layout > [data-game-workspace-panel][hidden] {
  display: none !important;
}

.duration-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr);
  gap: 12px;
}

.duration-control-grid label {
  display: grid;
  gap: 7px;
  color: #4e5c53;
  font-weight: 700;
}

.duration-control-grid select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(43, 60, 49, 0.16);
  border-radius: 11px;
  color: #25342b;
  background: #fff;
  font: inherit;
}

.duration-control-grid label[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .admin-section-description {
    font-size: 0.84rem;
  }

  .admin-page .admin-bulk-bar {
    align-items: stretch;
  }

  .admin-action-menu,
  .admin-action-menu > summary {
    width: 100%;
  }

  .admin-action-menu-popover {
    position: static;
    width: 100%;
    margin-top: 7px;
    box-shadow: 0 10px 28px rgba(25, 35, 28, 0.12);
  }

  .admin-workspace-tabs {
    margin-inline: -2px;
  }

  .duration-control-grid {
    grid-template-columns: 1fr;
  }
}

/* Personal home and Minecraft knowledge pages. */
.personal-intro .info-grid,
.knowledge-grid {
  align-items: stretch;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.knowledge-grid article {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--system-line, rgba(45, 54, 45, 0.1));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.knowledge-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.knowledge-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.knowledge-note {
  margin-top: 22px !important;
  padding: 14px 16px;
  border-left: 3px solid var(--grass);
  background: rgba(79, 127, 90, 0.08);
}

.paused-notice {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(185, 138, 104, 0.32);
  border-radius: 14px;
  background: rgba(212, 180, 94, 0.12);
  color: var(--muted);
  line-height: 1.7;
}

.paused-notice strong {
  color: var(--ink);
}

.paused-notice a {
  color: var(--grass);
  font-weight: 700;
}

.apply-page fieldset[disabled] {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  opacity: 0.68;
}

/* Shared site navigation and public-page layout. */
:root {
  --site-content-width: 1280px;
  --site-gutter: 20px;
  --site-card-padding: 24px;
}

.site-header,
.admin-page .admin-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-direction: row;
  min-height: 72px;
  padding: 12px max(var(--site-gutter), calc((100vw - var(--site-content-width)) / 2));
  background: rgba(247, 246, 242, 0.92);
}

.site-header .brand { width: auto; flex: 0 0 auto; gap: 10px; margin: 0; }
.site-header .brand strong { font-size: 18px; line-height: 1.4; }
.site-header .brand small { font-size: 12px; line-height: 1.4; }
.site-header .site-nav { display: flex; flex-wrap: nowrap; width: auto; gap: 4px; margin: 0; padding: 0; }
.site-header .site-nav a,
.admin-page .admin-site-header .site-nav a { min-height: 38px; padding: 8px 10px; font-size: 14px; line-height: 22px; white-space: nowrap; }

.public-page { font-size: 16px; line-height: 1.8; }
.public-page main > .hero,
.public-page main > .section,
.public-page main > .page-hero,
.public-page .site-footer { width: min(var(--site-content-width), calc(100% - 2 * var(--site-gutter))); margin-inline: auto; }
.public-page main > .section { padding-block: 48px; }
.public-page main > .compact-section { padding-top: 24px; }
.public-page main > .page-hero { padding: 48px 0 24px; }
.public-page main h1 { max-width: none; margin-bottom: 18px; font-size: clamp(34px, 4vw, 48px); line-height: 1.18; }
.public-page .hero.hero-stage h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.04; }
.public-page main h2 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.3; }
.public-page main h3 { font-size: 20px; line-height: 1.4; }
.public-page main p,
.public-page main li { font-size: 16px; line-height: 1.8; }
.public-page .page-hero p:not(.eyebrow) { max-width: 880px; font-size: 18px; line-height: 1.8; }
.public-page .eyebrow { font-size: 12px; line-height: 1.5; }
.public-page .guide-panel,
.public-page .info-card,
.public-page .tutorial-card,
.public-page .staff-card,
.public-page .status-card,
.public-page .thanks-panel,
.public-page .download-box,
.public-page .join-panel,
.public-page .link-card { padding: var(--site-card-padding); border-radius: 12px; }
.public-page .guide-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.public-page .guide-panel { margin-bottom: 0; }
.public-page .policy-stack,
.public-page .guide-content { display: grid; gap: 24px; }
.public-page .section-head { max-width: 880px; }
.public-page .site-footer { padding-block: 32px; font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 12px 0; }
.footer-nav a { text-decoration: none; }
.admin-page:not(.is-authenticated) .admin-shell { width: min(var(--site-content-width), calc(100% - 2 * var(--site-gutter))); max-width: var(--site-content-width); }
.admin-page:not(.is-authenticated) .admin-auth-copy h1 { font-size: clamp(34px, 4vw, 48px); }
.admin-page:not(.is-authenticated) .admin-auth-copy p:not(.eyebrow) { font-size: 16px; line-height: 1.8; }

@media (max-width: 900px) {
  .site-header,
  .admin-page .admin-site-header { position: sticky; top: 0; min-height: 64px; gap: 12px; padding: 10px var(--site-gutter); flex-direction: row; z-index: 40; }
  .site-menu-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
  .site-menu-toggle span,
  .site-menu-toggle span::before,
  .site-menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); }
  .site-menu-toggle span { position: relative; }
  .site-menu-toggle span::before,
  .site-menu-toggle span::after { position: absolute; content: ""; left: 0; }
  .site-menu-toggle span::before { top: -6px; }
  .site-menu-toggle span::after { top: 6px; }
  .site-menu-open .site-menu-toggle span { background: transparent; transform: none; }
  .site-menu-open .site-menu-toggle span::before { top: 0; transform: rotate(45deg); }
  .site-menu-open .site-menu-toggle span::after { top: 0; transform: rotate(-45deg); }
  .site-header .site-nav { position: fixed; top: 72px; right: var(--site-gutter); left: var(--site-gutter); z-index: 50; display: none; flex-direction: column; gap: 4px; width: auto; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(250, 251, 248, 0.98); box-shadow: var(--system-shadow); opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .site-menu-open .site-header .site-nav { display: flex; }
  .mobile-menu-backdrop { position: fixed; inset: 64px 0 0; z-index: 30; width: 100%; height: calc(100dvh - 64px); border: 0; background: rgba(24, 28, 24, 0.2); }
  .site-menu-open .mobile-menu-backdrop { display: block; opacity: 1; visibility: visible; pointer-events: auto; }
  .site-header .site-nav a,
  .admin-page .admin-site-header .site-nav a { display: block; min-height: 44px; padding: 10px 12px; text-align: left; }
  .public-page .guide-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --site-gutter: 12px; --site-card-padding: 20px; }
  .public-page main > .section { padding-block: 32px; }
  .public-page main > .compact-section { padding-top: 20px; }
  .public-page main > .page-hero { padding: 32px 0 20px; }
  .public-page main h1 { font-size: 34px; }
  .public-page main h2 { font-size: 26px; }
  .public-page main h3 { font-size: 19px; }
  .public-page main p,
  .public-page main li,
  .public-page .page-hero p:not(.eyebrow) { font-size: 16px; }
  .public-page .policy-stack,
  .public-page .guide-content { gap: 20px; }
  .site-header .brand strong { font-size: 17px; }
  .site-header .brand small { font-size: 11px; }
}

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