
:root {
  color-scheme: dark;
  --bg: #06101f;
  --bg-accent: #0b1730;
  --panel: rgba(11, 21, 40, 0.78);
  --panel-strong: rgba(16, 29, 54, 0.9);
  --panel-soft: rgba(12, 22, 41, 0.62);
  --border: rgba(121, 176, 255, 0.18);
  --border-strong: rgba(122, 190, 255, 0.3);
  --text: #f4f8ff;
  --muted: #91a7c6;
  --accent: #2B7CFF;
  --accent-glow: #00C5FF;
  --accent-secondary: #6f7dff;
  --accent-soft: rgba(43, 124, 255, 0.16);
  --danger: #ff7aa2;
  --danger-soft: rgba(255, 122, 162, 0.16);
  --shadow:
    0 26px 64px rgba(3, 8, 20, 0.52),
    0 0 0 1px rgba(116, 176, 255, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Aptos", "Bahnschrift", "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 197, 255, 0.14), transparent 23rem),
    radial-gradient(circle at 84% 10%, rgba(111, 125, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #030a14 0%, #07101d 48%, var(--bg) 100%);
  color: var(--text);
}

body {
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

body.page-landing {
  padding: 12px;
  background:
    radial-gradient(circle at top left, rgba(130, 152, 214, 0.12), transparent 22rem),
    linear-gradient(180deg, #05070b 0%, #0a1018 100%);
}

a {
  color: inherit;
}

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

button,
select {
  font: inherit;
}

.shell {
  max-width: 1600px;
  margin: 0 auto;
}

.hero,
.app-shell,
.content-card {
  background:
    linear-gradient(180deg, rgba(22, 37, 68, 0.44), rgba(8, 16, 30, 0.18)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(135%);
}

.hero {
  max-width: 720px;
  padding: 40px;
  margin: 8vh auto 0;
}

.content-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 0 40px;
}

.content-banner {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dashboard-banner {
  aspect-ratio: 1536 / 85;
  max-height: 85px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 10px;
}

.content-card {
  padding: 28px;
}

.content-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.content-intro {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.content-section + .content-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: #ffffff;
}

.content-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-section p + p {
  margin-top: 12px;
}

.content-section ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.content-section li {
  line-height: 1.7;
}

.content-section li::marker {
  color: #9adfff;
}

.content-callout {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 197, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(43, 124, 255, 0.18), rgba(0, 197, 255, 0.08)),
    rgba(11, 21, 40, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(173, 227, 255, 0.06),
    0 0 36px rgba(0, 197, 255, 0.08);
}

.content-callout strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.98rem;
}

.content-callout p {
  margin: 0;
  color: #d5e8ff;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  text-decoration: none;
}

.landing-shell {
  max-width: 1320px;
  min-height: calc(100vh - 24px);
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.landing-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(8, 12, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.38);
}

.landing-image {
  display: block;
  width: 100%;
  height: auto;
}

.landing-hotspot {
  position: absolute;
  display: block;
  /* Button bounds measured in the 1536 × 1024 landing artwork. */
  top: calc(638 / 1024 * 100%);
  height: calc(62 / 1024 * 100%);
  border-radius: 6% / 18%;
  background: transparent;
  outline: none;
  transition: box-shadow 120ms ease, background-color 120ms ease;
}

.landing-hotspot:hover,
.landing-hotspot:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.landing-hotspot.dashboard {
  left: calc(91 / 1536 * 100%);
  width: calc(340 / 1536 * 100%);
  border-radius: 3.25% / 18%;
}

.landing-hotspot.policies {
  left: calc(450 / 1536 * 100%);
  width: calc(193 / 1536 * 100%);
}

.landing-hotspot.credits {
  left: calc(663 / 1536 * 100%);
  width: calc(194 / 1536 * 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 125, 255, 0.18);
  background: rgba(43, 124, 255, 0.1);
  color: #a8deff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(0, 197, 255, 0.04);
}

.hero h1,
.title {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 197, 255, 0.12);
}

.hero p,
.subtitle,
.empty-state p,
.panel-note {
  color: var(--muted);
  line-height: 1.6;
}

.primary-button,
.ghost-button,
.danger-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms ease,
    opacity 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, #3c97ff 100%);
  color: #f7fbff;
  box-shadow:
    0 0 0 1px rgba(113, 193, 255, 0.18),
    0 0 28px rgba(0, 197, 255, 0.18);
}

.ghost-button {
  background: rgba(111, 125, 255, 0.1);
  color: #d9e7ff;
  border: 1px solid rgba(111, 125, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(255, 122, 162, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow:
    0 0 0 1px rgba(148, 218, 255, 0.28),
    0 0 34px rgba(0, 197, 255, 0.24);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  box-shadow:
    inset 0 0 0 1px rgba(148, 178, 255, 0.08),
    0 0 22px rgba(111, 125, 255, 0.14);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.hero-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(18, 34, 64, 0.86), rgba(10, 19, 35, 0.82));
  box-shadow: inset 0 1px 0 rgba(154, 209, 255, 0.05);
}

.app-shell {
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.identity-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(135deg, var(--accent-secondary), var(--accent-glow));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 197, 255, 0.2);
}

.identity-meta {
  display: grid;
  gap: 2px;
}

.identity-meta strong {
  font-size: 0.98rem;
}

.identity-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  margin-bottom: 18px;
  align-items: end;
}

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

.field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field select {
  min-width: 0;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  background:
    linear-gradient(180deg, rgba(21, 38, 69, 0.92), rgba(13, 24, 44, 0.92));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(153, 210, 255, 0.05);
}

.context-bar,
.summary-grid,
.board {
  display: grid;
  gap: 16px;
}

.context-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.context-card,
.summary-card,
.panel,
.room-card {
  background:
    linear-gradient(180deg, rgba(21, 38, 69, 0.86), rgba(10, 19, 35, 0.82));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(153, 210, 255, 0.05);
}

.context-card,
.summary-card,
.panel {
  padding: 16px;
}

.context-card strong,
.summary-card strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 8px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.board {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.panel {
  position: sticky;
  top: 24px;
}

.panel-header,
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel h2,
.room-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.status-chip,
.meta-chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-chip,
.meta-chip {
  padding: 7px 10px;
}

.status-chip {
  background: rgba(43, 124, 255, 0.16);
  color: #bde6ff;
  box-shadow: inset 0 0 0 1px rgba(0, 197, 255, 0.08);
}

.status-chip.full {
  background: rgba(111, 125, 255, 0.18);
  color: #d7dcff;
}

.status-chip.locked {
  background: rgba(124, 102, 255, 0.2);
  color: #ded6ff;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.04);
  color: #c7d7ef;
  border: 1px solid rgba(121, 176, 255, 0.12);
}

.panel-list,
.room-player-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.drop-zone {
  min-height: 90px;
  border: 1px dashed transparent;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.drop-zone.active-drop {
  border-color: rgba(0, 197, 255, 0.46);
  background: rgba(0, 197, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: inset 0 0 24px rgba(0, 197, 255, 0.08);
}

.drop-zone.drop-disabled {
  opacity: 0.75;
}

.player-card {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(22, 40, 73, 0.94), rgba(14, 26, 48, 0.92));
  cursor: grab;
  box-shadow: inset 0 1px 0 rgba(153, 210, 255, 0.05);
}

.player-card:active {
  cursor: grabbing;
}

.player-card.dragging {
  opacity: 0.55;
}

.player-card strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.player-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pill {
  padding: 5px 9px;
  background: var(--accent-soft);
  color: #bfe6ff;
  border: 1px solid rgba(0, 197, 255, 0.08);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.room-card {
  padding: 14px;
}

.room-card h3 {
  font-size: 1.05rem;
}

.room-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-state,
.empty-slot {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  background: rgba(15, 27, 49, 0.58);
}

.notice {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.notice.visible {
  display: block;
}

.notice.error {
  background: var(--danger-soft);
  border-color: rgba(255, 122, 162, 0.24);
  color: var(--danger);
}

.notice.info {
  background: rgba(43, 124, 255, 0.12);
  border-color: rgba(0, 197, 255, 0.18);
  color: #bde6ff;
}

.loading-cover {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.loading-cover.visible {
  display: flex;
}

.loading-card {
  padding: 20px 24px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(22, 40, 73, 0.9), rgba(11, 21, 39, 0.94));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: #dff1ff;
}

@media (max-width: 1120px) {
  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding: 14px;
  }

  body.page-landing {
    padding: 8px;
  }

  .app-shell,
  .hero,
  .content-card {
    padding: 16px;
    border-radius: 20px;
  }

  .landing-shell {
    min-height: calc(100vh - 16px);
  }

  .landing-stage {
    border-radius: 20px;
  }

  .topbar,
  .toolbar,
  .context-bar,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }
}


.admin-shell {
  padding: 24px;
}

.topbar-admin {
  margin-bottom: 24px;
}

.identity-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.identity-shell {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(121, 176, 255, 0.12);
}

.identity-avatar {
  overflow: hidden;
}

.identity-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.dashboard-layout-with-rail {
  grid-template-columns: 280px minmax(0, 1fr);
}

.dashboard-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.eyebrow-link {
  text-decoration: none;
}

.guild-rail {
  position: sticky;
  top: 24px;
}

.guild-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.nav-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #dbe9ff;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background-color 120ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 197, 255, 0.22);
  background: rgba(43, 124, 255, 0.12);
}

.nav-link.active {
  border-color: rgba(0, 197, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(43, 124, 255, 0.18), rgba(0, 197, 255, 0.08)),
    rgba(11, 21, 40, 0.72);
}

.nav-link-meta {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs-separator {
  color: rgba(145, 167, 198, 0.48);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

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

.guild-card-actions {
  margin-top: 10px;
}

.compact-button {
  padding: 10px 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-tile {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(121, 176, 255, 0.1);
}

.stat-tile strong {
  display: block;
  font-size: 1.2rem;
}

.stat-tile span {
  color: var(--muted);
  font-size: 0.82rem;
}

.war-list,
.player-list,
.diagnostic-list {
  display: grid;
  gap: 10px;
}

.war-inline,
.player-line,
.checkbox-card,
.player-card-static {
  border-radius: 14px;
  border: 1px solid rgba(121, 176, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.war-inline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.war-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(121, 176, 255, 0.08);
}

.detail-list div:last-child {
  border-bottom: none;
}

.detail-list span {
  color: var(--muted);
}

.detail-card,
.guild-summary-card,
.war-card-large {
  min-width: 0;
}

.action-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dbe9ff;
}

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

.subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #d9e7ff;
  border: 1px solid rgba(111, 125, 255, 0.2);
  background: rgba(111, 125, 255, 0.08);
}

.subnav-link.active {
  background: linear-gradient(135deg, var(--accent) 0%, #3c97ff 100%);
  color: #f7fbff;
  border-color: rgba(113, 193, 255, 0.18);
}

.player-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(121, 176, 255, 0.1);
}

.player-chip small {
  color: var(--muted);
}

.player-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.player-form select,
.form-grid select {
  min-width: 0;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  padding: 11px 12px;
  background:
    linear-gradient(180deg, rgba(21, 38, 69, 0.92), rgba(13, 24, 44, 0.92));
  color: var(--text);
}

.player-card-static {
  padding: 12px;
}

.board-admin {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.roster-room-card {
  display: grid;
  gap: 14px;
}

.pill-confirmed {
  background: rgba(72, 191, 145, 0.16);
  color: #bff8df;
}

.pill-pending {
  background: rgba(255, 191, 87, 0.14);
  color: #ffe2a8;
}

.warning-block {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 122, 162, 0.12);
  border: 1px solid rgba(255, 122, 162, 0.18);
}

.warning-block.warning-soft {
  background: rgba(255, 191, 87, 0.1);
  border-color: rgba(255, 191, 87, 0.18);
}

.warning-block strong {
  display: block;
  margin-bottom: 8px;
}

.warning-block ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  color: #f7fbff;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid .field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.radio-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.checkbox-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
}

.checkbox-card.disabled {
  opacity: 0.72;
}

.checkbox-card strong {
  display: block;
  margin-bottom: 4px;
}

.checkbox-card input {
  margin-top: 4px;
}

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

  .guild-rail {
    position: static;
  }
}

@media (max-width: 720px) {
  .admin-shell {
    padding: 16px;
  }

  .identity-cluster,
  .player-form,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .war-inline,
  .player-line {
    display: grid;
  }
}


.command-center { margin: 0; padding: 0; background: #070d19; color: #edf3ff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; }
.command-center * { box-sizing: border-box; }
.command-center [hidden] { display: none !important; }
.command-center button, .command-center input, .command-center select { font: inherit; }
.command-center button, .command-center a, .command-center summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.command-center button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.command-center :focus-visible { outline: 2px solid #58ccff; outline-offset: 3px; }
.command-center h1, .command-center h2, .command-center h3, .command-center p { margin: 0; }
.command-center h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.2; letter-spacing: -.04em; }
.command-center h2 { font-size: 1.06rem; line-height: 1.35; letter-spacing: -.015em; }
.command-center h3 { font-size: 1rem; }
.command-center a { color: inherit; text-decoration: none; }
.command-center svg { width: 20px; height: 20px; flex-shrink: 0; }
.cc-root { max-width: 1500px; margin: 0 auto; padding: 16px 24px 0; }
.cc-root > .dashboard-banner { border-radius: 9px; margin: 0 0 12px; box-shadow: none; }
.cc-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; border: 1px solid #25354e; background: #101a2b; padding: 11px 18px; border-radius: 14px; position: sticky; top: 8px; z-index: 20; box-shadow: 0 8px 24px #0003; }
.cc-context { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cc-context > svg { color: #45c8ff; width: 29px; height: 29px; }
.cc-context > div { display: grid; gap: 5px; min-width: 0; }
.cc-context strong { font-size: 1.12rem; overflow-wrap: anywhere; }
.cc-eyebrow { color: #92abc9; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; }
.cc-change-clan { color: #90b3df !important; font-size: .8rem; padding: 12px 6px; margin-left: 14px; white-space: nowrap; }
.cc-header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.cc-account { position: relative; }
.cc-account summary { display: grid; place-items: center; width: 42px; height: 42px; background: #243754; border: 1px solid #3b5377; border-radius: 50%; font-size: .8rem; font-weight: 700; cursor: pointer; list-style: none; }
.cc-account summary::-webkit-details-marker { display: none; }
.cc-account > div { position: absolute; right: 0; top: 50px; min-width: 220px; padding: 20px; background: #15243b; border: 1px solid #365070; border-radius: 12px; box-shadow: 0 12px 35px #0007; display: grid; gap: 14px; }
.cc-account > div > span { color: #9eb4d1; font-size: .8rem; }
.cc-clan-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid #1f2d42; }
.cc-clan-nav a { display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 8px; color: #94a8c4; font-weight: 600; font-size: .85rem; }
.cc-clan-nav a[aria-current] { background: #17283f; color: #7ad6ff; }
.cc-clan-nav > span { margin-left: auto; font-size: .75rem; color: #7e94b0; text-align: right; }
.cc-workspace { padding: 16px 0 12px; display: grid; gap: 14px; }
.cc-roster-page .cc-workspace { gap: 10px; }
.cc-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.cc-page-heading h1 { margin: 6px 0 8px; }
.cc-page-heading p, .cc-panel > p { color: #9aadc7; line-height: 1.6; max-width: 750px; }
.cc-back { font-size: .8rem; color: #a1b9d6 !important; padding: 8px 0; width: fit-content; }
.cc-war-context { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cc-war-context > strong { font-size: 1.1rem; }
.cc-war-context > span { color: #8fa6c6; font-size: .85rem; }
.cc-war-context > div { margin-left: auto; display: flex; gap: 8px; }
.cc-war-context .cc-back { margin-right: 10px; }
.cc-war-context ~ .cc-page-heading .cc-eyebrow { display: none; }
.cc-tabs { display: flex; gap: 8px; border-bottom: 1px solid #293a53; }
.cc-tabs a { padding: 14px 20px; color: #a0b2cc; font-size: .85rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.cc-tabs a[aria-current] { border-color: #47c6ff; color: #6ed7ff; }
.cc-panel { padding: 22px; background: #101a2a; border: 1px solid #24354d; border-radius: 13px; min-width: 0; }
.cc-panel h2 + p { margin-top: 7px; }
.cc-panel-heading, .cc-section-heading, .cc-card-heading, .cc-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cc-panel-heading { margin-bottom: 18px; }
.cc-panel-heading h2 { margin-top: 3px; }
.cc-card-heading > svg { color: #71caff; width: 25px; height: 25px; }
.cc-card-heading > div { display: flex; gap: 5px; flex-wrap: wrap; }
.cc-badge { display: inline-flex; align-items: center; padding: 5px 9px; line-height: 1.3; border: 1px solid #344761; border-radius: 6px; background: #18273c; color: #b4c6df; font-size: .7rem; white-space: nowrap; }
.cc-badge-green { background: #12322f; color: #71d8b0; border-color: #205648; }
.cc-badge-cyan { background: #0e3148; color: #7ad9fd; border-color: #225975; }
.cc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.cc-war-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cc-stat { border: 1px solid #25354e; border-radius: 10px; padding: 18px 20px; background: #101a2a; display: grid; gap: 8px; }
.cc-stat > span { color: #9bafcb; font-size: .8rem; }
.cc-stat strong { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-stat small { color: #8ba3c4; }
.cc-button { border: 1px solid #364c6b; background: #192a42; color: #c8d7eb !important; border-radius: 8px; min-height: 44px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: .8rem !important; cursor: pointer; white-space: normal; text-align: center; }
.cc-button svg { width: 17px; height: 17px; }
.cc-button-primary { background: #2466d8; border-color: #407ee4; color: white !important; box-shadow: 0 3px 10px #00163a44; }
.cc-button-danger { background: #351d2c; border-color: #6b3546; color: #f4a6b2 !important; }
.cc-button:not(:disabled):hover { filter: brightness(1.14); }
.cc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-clan-grid, .cc-war-grid { display: grid; gap: 18px; }
.cc-clan-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cc-war-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-war-grid > .cc-empty { grid-column: 1 / -1; }
.cc-clan-card, .cc-war-card { border: 1px solid #2d4160; border-radius: 14px; padding: 24px; background: linear-gradient(140deg, #15263f, #101a2b 75%); min-width: 0; }
.cc-clan-card { display: grid; gap: 18px; }
.cc-clan-card:hover { border-color: #4f88bd; }
.cc-clan-card h2, .cc-war-card h2 { font-size: 1.28rem; }
.cc-clan-card p, .cc-war-card p { font-size: .86rem; color: #a2b7d3; line-height: 1.6; }
.cc-clan-emblem { width: 54px; height: 54px; border: 1px solid #366390; background: #17365a; border-radius: 12px; color: #81cfff; display: grid; place-items: center; font-size: 1.2rem; font-weight: 650; }
.cc-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: #9bbce2; font-size: .8rem; }
.cc-war-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.cc-war-info { display: grid; align-content: start; gap: 14px; min-width: 0; }
.cc-war-info .cc-card-footer { flex-wrap: wrap; justify-content: flex-start; }
.cc-war-signups { min-width: 0; padding-left: 20px; border-left: 1px solid #2d4160; }
.cc-war-signups .cc-war-signup-total { font-size: .78rem; color: #b7cbe4; }
.cc-war-signups dl { display: grid; gap: 14px; margin: 18px 0 0; }
.cc-war-signups dl > div { display: grid; gap: 5px; }
.cc-war-signups dt { font-size: .74rem; color: #a2b7d3; line-height: 1.4; }
.cc-war-signups dd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-variant-numeric: tabular-nums; }
.cc-war-signups dd strong { font-size: 1.1rem; }
.cc-war-signups dd span { font-size: .8rem; color: #83d7f3; }
.cc-date { color: #cedaf0; font-size: .85rem; }
.cc-two-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.cc-readiness-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cc-readiness-list > a { display: grid; grid-template-rows: 1fr auto auto; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--tier-border, #345974); border-left: 4px solid var(--tier-accent, #83bce6); border-radius: 9px; background: var(--tier-bg, #101f31); overflow-wrap: anywhere; }
.cc-readiness-list > a:hover { border-color: var(--tier-accent, #83bce6); background: var(--tier-room, #14283d); }
.cc-readiness-list strong { color: var(--tier-accent, #83bce6); font-size: .84rem; line-height: 1.45; }
.cc-readiness-list small { display: block; color: #95accb; font-size: .75rem; margin-top: 5px; }
.cc-readiness-list progress { width: 100%; height: 5px; accent-color: var(--tier-accent, #83bce6); }
.cc-readiness-list .cc-badge { justify-self: start; color: var(--tier-accent, #83bce6); border-color: var(--tier-border, #345974); background: var(--tier-room, #14283d); }
.cc-overview-actions { display: grid; gap: 18px; align-content: start; min-width: 0; }
.cc-status-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; }
.cc-status-tile { display: grid; gap: 8px; padding: 14px; border: 1px solid #2d4160; border-radius: 9px; background: #0c1729; min-width: 0; }
.cc-status-tile > span { color: #9bafcb; font-size: .8rem; }
.cc-status-tile > strong { color: #b4c6df; font-size: 1rem; }
.cc-status-tile.is-active { border-color: #205648; background: #12322f; }
.cc-status-tile.is-active > strong { color: #71d8b0; }
.cc-status-tile.needs-attention { border-color: #785c2f; background: #302619; }
.cc-status-tile.needs-attention > strong { color: #f0c67c; }
.cc-next-steps { display: grid; gap: 10px; margin-top: 18px; }
.cc-details { margin: 22px 0 0; }
.cc-details > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid #23334a; font-size: .8rem; }
.cc-details dt { color: #8fa8c8; }
.cc-details dd { margin: 0; text-align: right; }
.cc-player-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; align-items: start; }
.cc-player-list { display: grid; gap: 8px; align-content: start; }
.cc-player { display: flex; align-items: center; gap: 10px; border: 1px solid #2a3c57; border-radius: 9px; padding: 10px; background: #152238; min-width: 0; min-height: 66px; position: relative; }
.cc-player:hover { border-color: #41668d; }
.cc-player.is-selected { outline: 1px solid #52b8ed; background: #193652; }
.cc-player.is-added { border-color: #377a6d; }
.cc-class-mark { display: grid; place-items: center; width: 34px; height: 34px; background: #203852; color: #84c4f1; border-radius: 8px; font-size: .65rem; font-weight: 700; flex-shrink: 0; }
.cc-player-name { display: grid; gap: 5px; min-width: 0; flex: 1; padding: 3px 0; }
.cc-player-name strong { font-size: .86rem; font-weight: 650; overflow-wrap: anywhere; }
.cc-player-name > span { color: #9ab5d6; font-size: .74rem; }
.cc-player-note { color: #98afcc; font-size: .72rem; max-width: 100px; text-align: right; }
.cc-player-pick { display: flex; align-items: center; flex: 1; gap: 10px; text-align: left; color: #edf3ff; border: 0; background: transparent; padding: 0; min-width: 0; min-height: 44px; cursor: pointer; }
.cc-player-pick .cc-player-name { pointer-events: none; }
.cc-player-tools { display: flex; align-items: center; gap: 2px; }
.cc-icon-button { display: grid; place-items: center; background: transparent; border: none; color: #8bcff9; width: 40px; height: 44px; border-radius: 7px; font-size: 1.2rem !important; cursor: pointer; flex-shrink: 0; padding: 5px; }
.cc-icon-button:hover { background: #203c59; }
.cc-icon-button svg { width: 16px; height: 16px; }
.cc-confirm { font-size: .62rem; color: #9babc3; border: 1px solid #37465d; padding: 4px 5px; border-radius: 5px; }
.cc-confirm.is-confirmed { color: #6cdbb5; border-color: #2b5f54; }
.cc-search { display: flex; align-items: center; gap: 10px; border: 1px solid #324761; border-radius: 9px; background: #0c1625; padding: 0 12px; min-width: 0; }
.cc-search svg { color: #87a2c2; width: 18px; }
.cc-search input { border: 0; outline: none; background: transparent; padding: 12px 0; min-width: 0; width: 100%; color: #dfeaff; min-height: 44px; border-radius: 0; }
.cc-search input::placeholder { color: #839bb9; }
.cc-search:focus-within { border-color: #65bce9; }
.cc-list-toolbar .cc-search { width: min(420px, 65%); }
.cc-segmented { display: flex; padding: 4px; border: 1px solid #30455f; border-radius: 9px; background: #0e1828; }
.cc-segmented a { padding: 10px 16px; color: #96aecc; font-size: .8rem; border-radius: 6px; }
.cc-segmented a[aria-current] { background: #25405e; color: #e2f2ff; }
.cc-roster-summary { display: flex; align-items: center; gap: 22px; font-size: .8rem; color: #9bb1cd; flex-wrap: wrap; }
.cc-roster-summary strong { color: #dfedff; margin-right: 4px; }
.cc-roster-workspace { display: grid; grid-template-columns: clamp(250px, 23vw, 310px) minmax(0, 1fr); gap: 20px; align-items: start; }
.cc-roster-players { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; height: min(760px, calc(100dvh - 110px)); min-height: 380px; padding: 18px; }
.cc-roster-players .cc-panel-heading { margin: 0; flex-wrap: wrap; gap: 8px; }
.cc-roster-players .cc-muted { margin: 0 !important; }
.cc-autosave { font-size: .68rem; color: #85cbb5; }
.cc-autosave.is-saving { color: #8fcef0; }
.cc-autosave.is-error { color: #ffbdc8; }
.cc-player-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid #30455f; border-radius: 9px; background: #0b1626; }
.cc-player-tabs button { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; min-height: 44px; padding: 8px 5px; border: 0; border-radius: 6px; background: transparent; color: #9cb2d0; font-size: .72rem !important; cursor: pointer; }
.cc-player-tabs button[aria-selected=true] { background: #244664; color: #e2f3ff; box-shadow: inset 0 -2px #62cdfa; }
.cc-player-tabs button span { font-size: .65rem; padding: 2px 5px; background: #07132280; border-radius: 5px; }
.cc-roster-player-list { flex: 1; min-height: 0; display: grid; grid-auto-rows: max-content; gap: 8px; align-content: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 3px; }
.cc-roster-player { display: grid; grid-template-columns: auto minmax(0, 1fr) 36px; align-items: center; gap: 4px 10px; width: 100%; min-height: 66px; padding: 10px; border: 1px solid #2a3c57; border-radius: 9px; background: #142439; color: #dcecff; text-align: left; }
.command-center .cc-roster-player:disabled { opacity: 1; cursor: default; }
.cc-roster-player:not(:disabled):hover { border-color: #589bc8; background: #1a324d; }
.cc-roster-player.is-selected { border-color: #67d4ff; background: #153c57; box-shadow: inset 3px 0 #67d4ff; }
.cc-player-selected { color: #7bd8ff; margin-left: auto; }
.cc-roster-player .cc-player-name small { color: #8ba5c6; font-size: .67rem; }
.cc-player-select { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 0; background: transparent; color: inherit; padding: 3px 0; min-width: 0; width: 100%; text-align: left; cursor: pointer; }
.command-center .cc-player-select:disabled { opacity: 1; cursor: default; }
.cc-player-select:not(:disabled):hover strong { color: #82ddff; }
.cc-player-edit { grid-column: 3; grid-row: 1; width: 36px; min-height: 44px; display: grid; place-items: center; border: 1px solid #385673; border-radius: 7px; background: transparent; color: #a9c8e9; cursor: pointer; font-size: 1.2rem !important; }
.cc-player-edit:not(:disabled):hover { color: #85ddff; background: #203c59; }
.cc-roster-rooms { min-width: 0; }
.cc-room-rows { display: grid; gap: 22px; }
.cc-roster-tier { --tier-accent: #83bce6; --tier-border: #345974; --tier-bg: #101f31; --tier-room: #14283d; padding: 16px; border: 1px solid var(--tier-border); border-left: 4px solid var(--tier-accent); border-radius: 13px; background: var(--tier-bg); min-width: 0; }
.cc-tier-exalted { --tier-accent: #68d8f5; --tier-border: #286079; --tier-bg: #0c2230; --tier-room: #102c3b; }
.cc-tier-eminent { --tier-accent: #82afff; --tier-border: #354f83; --tier-bg: #101e37; --tier-room: #172b48; }
.cc-tier-famed { --tier-accent: #b4a2f2; --tier-border: #594b80; --tier-bg: #201c34; --tier-room: #2a2442; }
.cc-tier-proud { --tier-accent: #76d3c1; --tier-border: #2e635d; --tier-bg: #0d2529; --tier-room: #153035; }
.cc-tier-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--tier-accent); }
.cc-tier-heading h2 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.cc-tier-heading > span { font-size: .72rem; font-variant-numeric: tabular-nums; }
.cc-tier-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cc-roster-room { min-width: 0; padding: 12px; border: 1px solid var(--tier-border); border-radius: 10px; background: var(--tier-room); }
.cc-room-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 42px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--tier-border); }
.cc-room-heading h3 { color: #e4efff; font-size: .78rem; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.cc-room-allocated { flex-shrink: 0; margin-left: auto; color: var(--tier-accent); font-size: .68rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cc-room-heading-interactive { display: block; }
.cc-room-header-button { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.cc-room-header-button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.cc-room-header-button:not(:disabled):hover, .cc-room-header-button[aria-pressed=true] { border-color: var(--tier-accent); background: #07122170; }
.command-center .cc-room-header-button:disabled { opacity: 1; cursor: default; }
.cc-roster-room.is-selected { outline: 2px solid var(--tier-accent); outline-offset: 2px; }
.cc-room-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 6px; }
.cc-roster-slot { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; min-height: 52px; padding: 8px; text-align: left; border: 1px solid var(--tier-border); border-radius: 7px; background: #07122170; color: #d7e8fd; cursor: pointer; }
.cc-room-slots > .cc-roster-slot { flex-direction: column; align-items: stretch; gap: 4px; overflow-wrap: anywhere; }
.command-center .cc-roster-slot:disabled { opacity: 1; cursor: default; }
.cc-roster-slot.is-empty { border-style: dashed; color: #8faac4; font-size: .71rem !important; }
.cc-roster-slot.is-available { color: var(--tier-accent); border-color: var(--tier-accent); }
.cc-roster-slot:not(:disabled):hover { background: #25415e80; border-color: var(--tier-accent); }
.cc-roster-slot .cc-player-name strong { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: .77rem; }
.cc-roster-slot .cc-player-name > span { font-size: .66rem; }
.cc-roster-slot .cc-player-name { gap: 0; padding: 0; }
.cc-roster-slot.is-occupied:not(:disabled):hover strong { color: #82ddff; }
.cc-roster-slot.is-selected { outline: 2px solid #67d4ff; outline-offset: 1px; background: #153c57; }
.cc-player-name > .cc-player-resonance { color: #b5d9ed; font-size: .66rem; }
.cc-slot-overflow { margin-top: 12px; display: grid; gap: 6px; }
.cc-slot-overflow p { color: #ffbdc8; font-size: .72rem; line-height: 1.5; }
.cc-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.command-center .cc-attendance-player input[type=checkbox] { width: 18px; height: 18px; margin: 0 0 0 auto; flex-shrink: 0; accent-color: var(--tier-accent); }
.cc-attendance-player:has(input:disabled) { cursor: default; }
.cc-attendance-player:has(input:disabled):hover { background: #07122170; border-color: var(--tier-border); }
.cc-attendance-player:has(input:disabled):hover strong { color: inherit; }
.cc-history-picker { display: flex; gap: 14px; align-items: end; }
.cc-history-picker .cc-field { flex: 1; }
.cc-room-grid { margin-bottom: 18px; }
.cc-room-choice { background: transparent; border: 1px solid transparent; border-radius: 9px; color: #a9bdd8; text-align: left; padding: 13px 11px; display: grid; gap: 7px; cursor: pointer; min-height: 64px; }
.cc-room-choice > strong { font-size: .85rem; }
.cc-room-choice > span { color: #859dbf; font-size: .73rem; }
.cc-room-choice[aria-pressed=true] { background: #183756; border-color: #31638b; color: #d7eeff; box-shadow: inset 3px 0 #50c5ff; }
.cc-room-choice[aria-pressed=true] > span { color: #95c5e6; }
.cc-muted { color: #9ab0cf; font-size: .76rem; line-height: 1.6; margin-bottom: 14px !important; }
.cc-save-bar { padding-top: 12px; margin-top: 12px; border-top: 1px solid #2d425f; display: flex; flex-direction: column; gap: 10px; }
.cc-save-bar > span { font-size: .74rem; color: #8faac8; }
.cc-save-bar .cc-actions { justify-content: flex-end; }
.cc-save-bar .cc-button { flex: 1; }
.cc-save-bar .is-dirty { color: #f4cf86; }
.cc-empty { padding: 28px 16px; text-align: center; background: #0b1523; border: 1px dashed #2b405d; border-radius: 9px; color: #abc0dc; display: grid; gap: 8px; }
.cc-empty strong { font-size: .85rem; }
.cc-empty p { font-size: .77rem; line-height: 1.6; color: #819abb; }
.cc-notice { border: 1px solid #3c6990; background: #15304a; color: #c3e5ff; border-radius: 10px; padding: 15px 18px; line-height: 1.6; }
.cc-notice-error { background: #321e2b; border-color: #864559; color: #ffbdc8; }
.cc-notice-success { background: #12302b; border-color: #2d6d5c; color: #a5e9cf; }
.cc-advanced > summary, .cc-panel > summary { cursor: pointer; color: #bdcfe7; font-size: .88rem; padding: 4px 0; min-height: 30px; }
.cc-advanced[open] > summary, .cc-panel[open] > summary { margin-bottom: 20px; }
.cc-controls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cc-controls-grid p { color: #9aafca; font-size: .8rem; line-height: 1.6; margin: 10px 0 16px; }
.command-center fieldset { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; min-width: 0; }
.command-center fieldset:disabled { opacity: .5; }
.cc-field { display: grid; gap: 8px; font-size: .8rem; color: #a9c0dd; }
.cc-field input, .cc-field select { color: #e1edff; background: #0a1424; border: 1px solid #334e71; padding: 12px; border-radius: 8px; min-height: 44px; width: 100%; }
.cc-roster-controls-content, .cc-previous-roster-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.cc-roster-control { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; border: 1px solid #2d4160; border-radius: 10px; background: #0c1729; }
.cc-roster-controls p { margin: 0; color: #9aafca; font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.cc-roster-controls form, .cc-roster-controls .cc-field { min-width: 0; max-width: 100%; }
.cc-roster-control form { margin-top: auto; }
.cc-roster-controls fieldset { grid-template-columns: minmax(0, 1fr); margin: 0; gap: 16px; }
.cc-roster-controls .cc-field { width: 100%; }
.cc-roster-controls select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.cc-roster-controls .cc-button { justify-self: start; max-width: 100%; overflow-wrap: anywhere; }
.cc-check { display: flex; align-items: center; gap: 12px; font-size: .8rem; padding: 12px 0; }
.command-center input[type=checkbox] { width: 20px; height: 20px; accent-color: #409aff; flex-shrink: 0; }
.cc-deployment-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.cc-deployment-controls .cc-status-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-deployment-controls .cc-status-tile { align-content: start; }
.cc-deployment-controls fieldset { margin-top: 4px; }
.cc-deployment-controls .cc-button { width: 100%; }
.cc-deployment-controls p { line-height: 1.5; }
.cc-deployment-rooms { min-width: 0; display: grid; gap: 18px; }
.cc-deployment-confirm { display: inline-grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; border: 1px solid #8c703c; background: #382b19; color: #f0c67c; font-weight: 700; font-size: .78rem; }
.cc-deployment-confirm.is-confirmed { border-color: #2b755a; background: #153b2f; color: #79efb8; }
.cc-deploy-check { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 20px; align-items: center; }
.cc-deploy-status { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #513b21; color: #f0c67c; }
.cc-deploy-status.is-ready { background: #173f39; color: #6addb3; }
.cc-deploy-status svg { width: 26px; height: 26px; }
.cc-deploy-check p { margin-top: 8px; color: #98b0cb; font-size: .8rem; line-height: 1.6; }
.cc-issues, .cc-diagnostics { color: #b3c6df; padding-left: 20px; line-height: 1.8; font-size: .84rem; }
.cc-deploy-check details { font-size: .8rem; color: #ebca8b; margin-top: 12px; }
.cc-open-war-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cc-open-war { display: flex; flex-direction: column; }
.cc-open-war .cc-panel-heading { flex-direction: column; align-items: flex-start; }
.cc-open-war h2 { line-height: 1.4; }
.cc-open-war form { display: flex; flex-direction: column; flex: 1; }
.command-center .cc-open-war fieldset { display: flex; flex-direction: column; flex: 1; margin: 0; }
.cc-open-war .cc-button { margin-top: auto; width: 100%; }
.cc-occurrences { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cc-occurrence { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #304761; border-radius: 9px; background: #0c1729; }
.cc-occurrence-details { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.cc-occurrence strong { font-size: .84rem; line-height: 1.5; }
.cc-player-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.cc-profile-hero { display: flex; align-items: center; gap: 24px; }
.cc-profile-hero h2 { font-size: 1.6rem; margin: 8px 0; }
.cc-profile-hero p { color: #9fbbdc; font-size: .84rem; }
.cc-profile-avatar { width: 86px; height: 86px; display: grid; place-items: center; background: #1c3b5f; border: 1px solid #39648e; border-radius: 18px; font-size: 1.7rem; color: #80d2ff; flex-shrink: 0; }
.cc-profile-wars a { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid #293b55; }
.cc-profile-wars a > div { flex: 1; display: grid; gap: 8px; }
.cc-profile-wars strong { font-size: .86rem; }
.cc-profile-wars a span { font-size: .75rem; color: #9ab5d6; }
.cc-profile-stat { display: flex; justify-content: space-between; gap: 18px; padding: 24px 0; font-size: .88rem; }
.cc-profile-stat span { color: #a4b8d1; }
.cc-import-instructions { line-height: 1.65; }
.cc-import-instructions li { margin: 8px 0; }
.cc-import-instructions pre { overflow-x: auto; padding: 14px; background: #0a1422; border-radius: 8px; }
.cc-import-instructions p + p { margin-top: 12px; }
.cc-import-table { overflow-x: auto; max-height: 520px; margin: 18px 0; }
.cc-import-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8rem; }
.cc-import-table th, .cc-import-table td { padding: 12px; border-bottom: 1px solid #304761; overflow-wrap: anywhere; }
.cc-import-table th { position: sticky; top: 0; background: #15263f; }
.cc-import-error { border-color: #a45567; }
#player-import-details { margin-top: 14px; }
#player-import-details summary { cursor: pointer; min-height: 44px; }
#player-import-form fieldset, #player-import-confirm-form fieldset { border: 0; margin: 16px 0 0; padding: 0; }
.cc-filter-empty { grid-column: 1/-1; color: #a1b5cf; padding: 20px; }
.cc-dialog { background: #122138; color: #e6f2ff; border: 1px solid #416388; border-radius: 16px; padding: 28px; max-width: min(460px, calc(100vw - 32px)); box-shadow: 0 18px 80px #000b; }
.cc-dialog::backdrop { background: #020812c9; backdrop-filter: blur(3px); }
.cc-dialog h2 { font-size: 1.2rem; }
.cc-dialog p { margin: 18px 0 24px; color: #b6cae4; line-height: 1.6; }
.cc-dialog .cc-actions { justify-content: end; }
.cc-add-player-dialog { width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.cc-add-player-dialog fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cc-add-player-dialog label { display: block; margin-top: 16px; font-size: .9rem; font-weight: 600; }
.cc-add-player-dialog input, .cc-add-player-dialog select { display: block; width: 100%; min-width: 0; box-sizing: border-box; margin-top: 6px; padding: 10px; border: 1px solid #40536f; border-radius: 6px; background: #0e1b2e; color: #e4ecf8; font: inherit; }
.cc-add-player-dialog small { display: block; margin-top: 5px; font-size: .75rem; color: #b6cae4; font-weight: 400; }
.cc-add-player-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cc-add-player-dialog .cc-actions { margin-top: 24px; }
.cc-add-player-dialog p.cc-player-field-error { color: #ffaaaa; max-width: none; }
.cc-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 24px 0; color: #7289a6; font-size: .7rem; line-height: 1.6; }
.cc-footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; margin-left: auto; }
.cc-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.cc-footer-nav a:hover, .cc-footer-nav a:focus-visible { color: #b3d7ff; text-decoration: underline; }
.cc-skip { position: fixed; top: -80px; left: 24px; padding: 16px; background: #1c4164; z-index: 100; }
.cc-skip:focus { top: 12px; }
@media (max-width: 1050px) {
  .cc-war-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-root { padding: 12px 18px 0; }
  .cc-player { gap: 7px; padding: 8px; }
  .cc-class-mark { width: 27px; height: 32px; font-size: .55rem; }
  .cc-player-tools { gap: 0; }
  .cc-icon-button { width: 44px; }
  .cc-player-name strong { font-size: .8rem; }
  .cc-player-name > span { font-size: .7rem; }
}
@media (max-width: 900px) {
  .cc-war-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-roster-workspace { grid-template-columns: minmax(0, 1fr); }
  .cc-roster-players { position: static; height: 380px; min-height: 0; }
}
@media (max-width: 820px) {
  .cc-roster-controls .cc-button { width: 100%; }
  .cc-open-war-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cc-room-choice { min-width: 135px; }
  .cc-clan-nav > span { display: none; }
  .cc-controls-grid { grid-template-columns: 1fr; }
  .cc-two-columns { grid-template-columns: 1fr; }
  .cc-deploy-check { grid-template-columns: 44px 1fr; }
}
@media (max-width: 620px) {
  .cc-deployment-controls .cc-status-tiles { grid-template-columns: minmax(0, 1fr); }
  .cc-tier-rooms { grid-template-columns: minmax(0, 1fr); }
  .cc-roster-tier { padding: 12px; }
  .cc-room-heading { min-height: 0; }
}
@media (max-width: 540px) {
  .cc-war-card { grid-template-columns: minmax(0, 1fr); }
  .cc-war-signups { padding: 18px 0 0; border-left: 0; border-top: 1px solid #2d4160; }
  .cc-readiness-list { grid-template-columns: minmax(0, 1fr); }
  .cc-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cc-footer-nav { justify-content: flex-start; margin-left: 0; }
  .cc-room-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-history-picker { flex-direction: column; align-items: stretch; }
  .cc-root { padding: 8px 12px 0; }
  .cc-header { padding: 12px; gap: 10px; min-height: 70px; }
  .cc-context { gap: 8px; }
  .cc-context > svg { display: none; }
  .cc-context strong { font-size: .88rem; }
  .cc-change-clan { margin-left: 0; font-size: .68rem; padding: 8px 0; }
  .cc-header-actions { gap: 8px; }
  .cc-account summary { height: 34px; width: 34px; font-size: .64rem; }
  .cc-clan-nav a { padding: 10px 12px; }
  .cc-player-directory, .cc-player-groups, .cc-clan-grid, .cc-war-grid { grid-template-columns: minmax(0, 1fr); }
  .cc-roster-workspace .cc-rooms-panel { grid-column: 1; }
  .cc-roster-summary { gap: 10px; }
  .cc-panel { padding: 18px; }
  .cc-list-toolbar { flex-direction: column; align-items: stretch; }
  .cc-list-toolbar .cc-search { width: 100%; }
  .cc-tabs { gap: 0; }
  .cc-tabs a { padding: 12px 10px; font-size: .76rem; }
  .cc-war-context > div { margin-left: 0; }
  .cc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cc-stat { padding: 14px; }
  .cc-stat strong { font-size: 1.4rem; }
  .cc-class-mark { width: 34px; }
  .cc-icon-button { width: 44px; }
  .cc-player-name strong { font-size: .86rem; }
  .cc-player-name > span { font-size: .74rem; }
}
.cc-player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.cc-player-actions [role="status"] { color: #a5b6cd; font-size: .85rem; }
.cc-player-table-scroll { overflow-x: auto; border: 1px solid #2b3d58; border-radius: 10px; }
.cc-player-table { width: 100%; min-width: 1000px; border-collapse: collapse; text-align: left; font-size: .85rem; }
.cc-player-table th, .cc-player-table td { padding: 12px; border-bottom: 1px solid #2b3d58; vertical-align: top; }
.cc-player-table th { background: #17253b; }
.cc-player-table th button { border: 0; background: transparent; color: #d9e6f8; cursor: pointer; font: inherit; font-weight: 600; min-height: 36px; text-align: left; }
.cc-player-table input, .cc-player-table select { width: 100%; min-width: 110px; max-width: 240px; padding: 9px; border: 1px solid #40536f; border-radius: 6px; background: #0e1b2e; color: #e4ecf8; font: inherit; }
.cc-player-table input:disabled, .cc-player-table select:disabled { opacity: 1; color: #b4c5dd; border-color: transparent; background: transparent; }
.cc-player-table .cc-player-select-cell { width: 44px; min-width: 44px; text-align: center; }
.cc-player-table input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; max-width: 18px; padding: 0; accent-color: #76b5ff; cursor: pointer; }
.cc-player-table input[type="checkbox"]:disabled { cursor: default; opacity: .5; }
.cc-player-removal-list { max-height: 240px; overflow-y: auto; padding-left: 22px; overflow-wrap: anywhere; }
.cc-player-removal-list li { margin-bottom: 8px; }
.cc-player-table [aria-invalid="true"] { border-color: #fb9292; }
.cc-player-field-error { display: block; color: #ffaaaa; font-size: .75rem; margin-top: 4px; max-width: 200px; }
.cc-player-row-dirty { background: #223249; }
.cc-player-table td:nth-child(2) { min-width: 150px; overflow-wrap: anywhere; }
.cc-signup-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.cc-signup-layout > * { min-width: 0; margin-bottom: 0; }
.cc-signup-table { min-width: 600px; font-size: .78rem; }
.cc-signup-table th, .cc-signup-table td { padding: 10px 7px; text-align: left; vertical-align: middle; }
.cc-signup-table th:nth-child(n+3), .cc-signup-table td:nth-child(n+3) { text-align: center; }
.cc-signup-table th button { width: 100%; text-align: inherit; }
.cc-signup-table td:first-child { width: 23%; min-width: 100px; overflow-wrap: anywhere; }
.cc-signup-table td:nth-child(2) { min-width: 130px; }
.cc-signup-table select { padding: 8px 4px; min-width: 120px; min-height: 40px; text-align: left; text-align-last: left; }
.cc-signup-table [data-signup-field="signupStatus"] { text-align: center; text-align-last: center; }
.cc-signup-table td:nth-child(3), .cc-signup-table td:last-child { font-variant-numeric: tabular-nums; }
.cc-attendance-rate { white-space: nowrap; }
.cc-attendance-rate small { display: block; color: #9ab0cf; margin-top: 4px; }
.cc-signup-stats h2 { margin-bottom: 10px; }
.cc-signup-stats h3 { font-size: .95rem; margin: 22px 0 12px; }
.cc-signup-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.cc-signup-metrics > div { padding: 14px; border: 1px solid #304661; background: #101e31; border-radius: 9px; display: grid; gap: 7px; }
.cc-signup-metrics span, .cc-signup-metrics small { color: #a2b7d3; font-size: .75rem; }
.cc-signup-metrics strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.cc-signup-class-table { min-width: 0; font-size: .8rem; }
.cc-signup-class-table th, .cc-signup-class-table td { padding: 9px 10px; }
.cc-signup-class-table th[scope="row"] { background: transparent; font-weight: 500; }
.cc-signup-class-table td:nth-child(2) { min-width: 0; }
.cc-signup-class-table td { font-variant-numeric: tabular-nums; }
.cc-signup-class-table small { display: block; color: #e7c58c; margin-top: 4px; }
.cc-signup-trend figure { margin: 14px 0; }
.cc-signup-trend figcaption { color: #b5cce8; font-size: .78rem; margin-bottom: 8px; }
.command-center .cc-signup-chart { width: 100%; height: auto; overflow: visible; }
.cc-signup-chart text { fill: #a9bdd8; font-size: 11px; }
.cc-chart-grid { stroke: #30445e; stroke-width: 1; }
.cc-chart-area { fill: #67d4ff; opacity: .1; }
.cc-chart-war-window { fill: #b59aff; opacity: .16; }
.cc-chart-war-opened line { stroke: #c9b4ff; stroke-width: 1.5; stroke-dasharray: 4 3; }
.cc-chart-war-scheduled line { stroke: #ffd28a; stroke-width: 1.5; stroke-dasharray: 4 3; }
.cc-chart-war-opened text { fill: #c9b4ff; }
.cc-chart-war-scheduled text { fill: #ffd28a; }
.cc-chart-window-key { display: flex; align-items: center; gap: 8px; color: #baa8e4; font-size: .75rem; }
.cc-chart-window-key > span { width: 14px; height: 10px; background: #b59aff29; border: 1px solid #b59aff80; }
.cc-signup-war-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; font-size: .75rem; }
.cc-signup-war-times dt { color: #a9bdd8; margin-bottom: 5px; }
.cc-signup-war-times dd { margin: 0; color: #d8e6fa; line-height: 1.5; }
.cc-chart-line { fill: none; stroke: #67d4ff; stroke-width: 2.5; }
.cc-signup-chart circle { fill: #67d4ff; stroke: none; }
.cc-signup-chart circle:hover, .cc-signup-chart circle:focus { r: 3; }
.cc-signup-chart circle:focus { outline: 2px solid #fff; outline-offset: 3px; }
@media (min-width: 1380px) { .cc-signup-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#signup-workspace .cc-list-toolbar { margin-bottom: 12px; }
#signup-result-count { margin-top: 14px; }
.cc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .command-center * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
