:root {
  --bg: #dfeaf8;
  --panel: #f7fbff;
  --panel-soft: #edf4fc;
  --border: #b8c7d9;
  --text: #172334;
  --muted: #667891;
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --danger: #ef4444;
  --warning: #f59e0b;
  --secondary: #3b82f6;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.78) 0%, rgba(243, 248, 238, 0.68) 100%),
    url("./assets/soccer-sky-background-v2.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #eef6fb;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(255,255,255,0.20) 7% 7.25%, transparent 7.25% 92.75%, rgba(255,255,255,0.20) 92.75% 93%, transparent 93% 100%),
    linear-gradient(transparent 0 11%, rgba(255,255,255,0.16) 11% 11.25%, transparent 11.25% 88.75%, rgba(255,255,255,0.16) 88.75% 89%, transparent 89% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 82px, rgba(255,255,255,0.14) 82px 84px, transparent 84px),
    linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(21, 128, 61, 0.04));
  opacity: 0.7;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  width: 170px;
  height: 170px;
  right: 4%;
  bottom: 5%;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.92) 0 34%, rgba(17,24,39,0.14) 35% 36%, transparent 37%),
    conic-gradient(
      from 0deg,
      rgba(17,24,39,0.10) 0deg 18deg,
      transparent 18deg 54deg,
      rgba(17,24,39,0.10) 54deg 72deg,
      transparent 72deg 126deg,
      rgba(17,24,39,0.10) 126deg 144deg,
      transparent 144deg 198deg,
      rgba(17,24,39,0.10) 198deg 216deg,
      transparent 216deg 270deg,
      rgba(17,24,39,0.10) 270deg 288deg,
      transparent 288deg 360deg
    ),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.62) 0 68%, transparent 69%);
  box-shadow: 0 18px 45px rgba(20, 35, 52, 0.10);
  opacity: 0.5;
  z-index: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .24s ease;
}

.app-shell.guest-mode {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: relative;
  z-index: 20;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: rgba(238, 245, 253, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity .18s ease, transform .24s ease;
}

.app-shell.guest-mode .sidebar {
  display: none;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
  padding: 24px 8px;
  align-items: center;
}

.app-shell.sidebar-collapsed .sidebar > :not(.sidebar-toggle) {
  display: none !important;
}

#profileDrawer,
#profileDrawer[hidden] {
  display: none !important;
}

.main {
  padding: 24px;
  min-width: 0;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

.card {
  background: rgba(247, 251, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(27, 43, 66, 0.10);
}

.card.compact {
  padding: 14px;
}

.note-card {
  margin-top: auto;
}

.version-chip {
  margin-top: 4px;
  padding: 10px 12px 0;
  text-align: left;
  line-height: 1.45;
  opacity: 0.95;
}

.auth-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: 20px;
}

.auth-card {
  padding: 24px;
}

.auth-view-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 48px);
  padding-top: 0;
}

.auth-version-note {
  width: 100%;
  max-width: 560px;
  margin: 12px auto 0;
  text-align: center;
}

.auth-shell-ready > .card + .card {
  margin-top: 14px;
}

.auth-shell-ready > .card {
  width: 100%;
}

.auth-shell-ready > .card.hidden {
  display: none !important;
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.auth-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(184, 199, 217, 0.9);
  border-radius: 999px;
  background: rgba(237, 244, 252, 0.95);
}

.auth-toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-toggle-btn.active {
  background: rgba(34, 197, 94, 0.14);
  color: var(--text);
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-switch-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-inline-link {
  border: none;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-module-switch {
  margin-top: 4px;
  padding: 14px 16px;
}

.auth-module-switch .module-switch-label {
  font-size: 0.96rem;
}

.auth-module-switch .module-switch-description {
  font-size: 0.82rem;
}

.statistics-overview-grid {
  margin-bottom: 8px;
}

.statistics-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.statistics-rank-box {
  text-align: center;
}

.statistics-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 199, 217, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.statistics-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.statistics-table-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.6fr) repeat(6, minmax(88px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(184, 199, 217, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.statistics-table-head {
  background: rgba(237, 244, 252, 0.94);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.statistics-rank-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.statistics-movement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(103, 117, 137, 0.12);
  color: var(--text);
  font-weight: 700;
}

.statistics-movement.is-neutral {
  background: rgba(103, 117, 137, 0.12);
  color: var(--text);
}

@media (max-width: 1100px) {
  .statistics-table-row {
    grid-template-columns: 1fr;
  }

  .statistics-table-head {
    display: none;
  }
}

.profile-drawer {
  display: none !important;
}

.profile-drawer-panel {
  width: 360px;
  padding: 24px 0 24px 20px;
  overflow-y: auto;
  transition: width .24s ease, padding .24s ease;
}

.profile-drawer-tab {
  width: 44px;
  border: none;
  border-left: 1px solid rgba(184, 199, 217, 0.8);
  border-right: 1px solid rgba(184, 199, 217, 0.8);
  background: rgba(238, 245, 253, 0.9);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
}

.profile-drawer-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-drawer.profile-drawer-open .profile-drawer-tab-label {
  writing-mode: horizontal-tb;
  transform: none;
  letter-spacing: 0.02em;
}

.profile-drawer.profile-drawer-collapsed .profile-drawer-panel {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.sidebar-toggle {
  position: absolute;
  top: 18px;
  right: 10px;
  transform: none;
  width: 44px;
  min-height: 170px;
  border: 1px solid rgba(184, 199, 217, 0.9);
  border-radius: 16px;
  background: rgba(238, 245, 253, 0.96);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  pointer-events: auto;
}

.sidebar-toggle-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-profile-panel {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.one-col { grid-template-columns: 1fr; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.five-col { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.inner-grid { gap: 14px; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
}
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.align-center { align-items: center; }
.gap { gap: 10px; }
.full { width: 100%; }
.top-space { margin-top: 16px; }

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

textarea {
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #04130a;
}

.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.15);
}
.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}
.nav-btn.active {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.4);
}

.admin-subnav-card {
  padding: 10px 12px;
}

.event-form-subnav-card {
  padding: 8px 10px;
  background: rgba(247, 251, 255, 0.86);
  border-color: rgba(59, 130, 246, 0.16);
}

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

.event-form-guide {
  margin-bottom: 0;
}

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

.event-form-panel .pricing-block,
.event-form-panel .notification-collapse,
.event-form-panel .recurring-box {
  margin-top: 0;
}

.finance-task-block.is-current .event-card,
.finance-task-block.is-current {
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
  border-radius: 16px;
}

.finance-finish-row.is-current {
  padding: 12px 14px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  background: rgba(240, 253, 244, 0.84);
}

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

.subnav-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.subnav-btn.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}

.subnav-btn.is-done {
  background: rgba(240, 253, 244, 0.92);
  border-color: rgba(34, 197, 94, 0.34);
}

.subnav-btn.is-current-focus:not(.active) {
  border-color: rgba(59, 130, 246, 0.34);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.06);
}

.event-form-progress-summary {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-guide-card {
  border-color: rgba(59, 130, 246, 0.22);
}

.admin-workspace-guide {
  border-color: rgba(59, 130, 246, 0.22);
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.94) 0%, rgba(234, 244, 254, 0.82) 100%);
}

.event-card.is-current-focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.98) 0%, rgba(235, 246, 255, 0.9) 100%);
}

.admin-workspace-flow {
  border-color: rgba(16, 185, 129, 0.18);
  background: linear-gradient(180deg, rgba(247, 255, 251, 0.95) 0%, rgba(237, 253, 245, 0.84) 100%);
}

.admin-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-flow-step {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 6px;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.admin-flow-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.admin-flow-step.is-done {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(240, 253, 244, 0.92);
}

.admin-flow-step.is-current {
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.admin-flow-step.is-upcoming {
  border-style: dashed;
}

.admin-flow-step-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}

.admin-flow-step-hint {
  font-size: 0.84rem;
  color: var(--muted);
  min-height: 2.4em;
}

.admin-flow-step-state {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.admin-guide-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-checklist-item {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-checklist-item.is-done {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(240, 253, 244, 0.82);
}

.admin-checklist-dot {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-muted { background: #e8f0f8; color: var(--muted); }
.badge-success { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.badge-warning { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.badge-danger { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.badge-draft { background: rgba(59,130,246,.16); color: #93c5fd; }
.badge-rank { background: rgba(14, 165, 233, 0.16); color: #7dd3fc; }

.view { display: none; }
.view.active { display: block; }

.view.surface-layout-active.active {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.view.surface-layout-active > [data-layout-item] {
  grid-column: span var(--surface-col-span, 12);
  grid-row: span var(--surface-row-span, 1);
  min-height: calc(var(--surface-row-span, 1) * 120px);
  min-width: 0;
  position: relative;
}

.view.surface-layout-active > :not([data-layout-item]) {
  grid-column: 1 / -1;
  min-width: 0;
}

.view.surface-layout-active.surface-layout-editing > [data-layout-item] {
  outline: 2px dashed rgba(59, 130, 246, 0.35);
  outline-offset: 6px;
}

.message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.message.hidden { display: none; }
.message.success { background: rgba(34, 197, 94, 0.14); color: #166534; border-color: rgba(34,197,94,.4); }
.message.error { background: rgba(239, 68, 68, 0.14); color: #b91c1c; border-color: rgba(239,68,68,.4); }
.message.info { background: rgba(245, 158, 11, 0.16); color: #92400e; border-color: rgba(245,158,11,.42); }

.message-dock {
  min-height: 86px;
  margin-top: 14px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  line-height: 1.45;
}

.message-dock.hidden {
  display: flex;
  visibility: hidden;
}

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.session-info { line-height: 1.5; }

.profile-panel {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.95) 0%, rgba(236, 244, 252, 0.94) 58%, rgba(228, 243, 231, 0.92) 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

.profile-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-panel-actions .btn {
  flex: 1 1 auto;
}

.surface-layout-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(23, 35, 52, 0.78);
  box-shadow: 0 10px 24px rgba(27, 43, 66, 0.18);
}

.view.surface-layout-active.surface-layout-editing > [data-layout-item] .surface-layout-controls {
  display: inline-flex;
}

.surface-layout-chip {
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.surface-layout-chip:hover {
  background: rgba(255, 255, 255, 0.28);
}

.surface-drag-handle {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.surface-drag-handle:active {
  cursor: grabbing;
}

.surface-resize-handle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: none;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,0.95) 44% 56%, transparent 56% 100%),
    rgba(59, 130, 246, 0.92);
  cursor: nwse-resize;
  touch-action: none;
  z-index: 5;
  box-shadow: 0 8px 18px rgba(27, 43, 66, 0.18);
}

.view.surface-layout-active.surface-layout-editing > [data-layout-item] .surface-resize-handle {
  display: block;
}

.surface-layout-dragging {
  opacity: 0.72;
}

.profile-panel-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-panel-title {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.profile-avatar-preview {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(27, 43, 66, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.profile-avatar-section {
  border: 1px solid rgba(184, 199, 217, 0.8);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.56);
}

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

.avatar-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(184, 199, 217, 0.9);
  background: rgba(247, 251, 255, 0.82);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.avatar-preset-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 10px 20px rgba(27, 43, 66, 0.08);
}

.avatar-preset-btn.active {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.14);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.avatar-preset-btn img {
  width: 100%;
  max-width: 84px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: block;
}

#profileAvatarUpload {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.68);
}

.hidden:not(.message-dock) {
  display: none !important;
}

.pricing-box {
  border: 1px solid rgba(184, 199, 217, 0.8);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.payment-summary-box {
  margin-top: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(237, 250, 240, 0.95) 0%, rgba(228, 247, 232, 0.92) 100%);
}

.payment-summary-amount {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #166534;
}

.holiday-warning {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.holiday-warning.compact {
  padding: 8px 10px;
  margin-top: 12px;
}

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

.notification-box {
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.94) 0%, rgba(230, 242, 232, 0.84) 100%);
}

.notification-collapse {
  margin-top: 4px;
}

.notification-prefs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.notification-switch-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.notification-switch-card > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.notification-switch-card:hover {
  transform: translateY(-1px);
}

.notification-switch-card.is-enabled {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18) 0%, rgba(22, 163, 74, 0.12) 100%);
  border-color: rgba(34, 197, 94, 0.34);
}

.notification-switch-card.is-disabled {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14) 0%, rgba(127, 29, 29, 0.12) 100%);
  border-color: rgba(239, 68, 68, 0.28);
}

.notification-switch-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.notification-switch-card .module-switch-control {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: auto;
  margin-top: 2px;
}

@media (max-width: 1240px) {
  .notification-prefs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .notification-prefs-grid {
    grid-template-columns: 1fr;
  }
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.94) 0%, rgba(236, 244, 252, 0.9) 60%, rgba(230, 242, 232, 0.84) 100%);
}
.event-card h4 { margin-bottom: 8px; }
.event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 0.92rem;
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rank-registration-notice {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 244, 214, 0.92) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-registration-notice.compact {
  padding: 12px 14px;
}

.rank-registration-notice-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #92400e;
}

.rank-registration-countdown {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-registration-countdown strong {
  font-size: 1rem;
  color: #7c2d12;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.member-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  display: inline-flex;
  width: fit-content;
  gap: 8px;
}

.readiness-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.readiness-panel.compact {
  margin-top: 10px;
  padding: 10px 12px;
}

.readiness-panel.is-good {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.readiness-panel.is-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.readiness-panel.is-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.readiness-panel.is-neutral {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.24);
}

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

.participant-preview.compact {
  margin-top: 12px;
}

.participant-preview-section {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.participant-preview-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-list.compact {
  gap: 6px;
}

.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.participant-chip.compact {
  font-size: 0.84rem;
  padding: 6px 10px;
}

.participant-position {
  color: var(--muted);
  font-weight: 700;
}

.participant-name {
  font-weight: 600;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}


.module-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.96) 0%, rgba(236, 244, 252, 0.92) 100%);
  cursor: pointer;
}

.module-switch.is-saving {
  opacity: 0.7;
  cursor: progress;
}

.module-switch-label {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.module-switch-description {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.module-switch-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.module-switch-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.module-switch-track {
  position: relative;
  display: inline-flex;
  width: 86px;
  height: 46px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.28);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.module-switch-track::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.32);
  transition: transform 0.18s ease;
}

.module-switch-control input:checked + .module-switch-track {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.42);
}

.module-switch-control input:checked + .module-switch-track::before {
  transform: translateX(40px);
}

.module-switch-control input:focus-visible + .module-switch-track {
  outline: 2px solid rgba(59, 130, 246, 0.72);
  outline-offset: 3px;
}

.notification-switch-card .module-switch-track {
  width: 43px;
  height: 23px;
}

.notification-switch-card .module-switch-track::before {
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
}

.notification-switch-card .module-switch-control input:checked + .module-switch-track::before {
  transform: translateX(20px);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-form-mode-note {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.is-readonly-field {
  opacity: 0.52;
}

.is-hidden-admin-event {
  opacity: 0.72;
  border-style: dashed;
}

.is-readonly-field summary,
.is-readonly-field .module-switch-label,
.is-readonly-field .module-switch-description {
  opacity: 0.9;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .profile-drawer {
    position: fixed;
    left: 0;
    bottom: 0;
    top: auto;
    height: auto;
    z-index: 20;
  }
  .profile-drawer-panel {
    width: min(92vw, 360px);
    max-height: min(80vh, 760px);
    padding: 16px 16px 24px 12px;
  }
  .two-col, .three-col, .four-col, .five-col { grid-template-columns: 1fr; }
}


.card .small + .small {
  margin-top: 4px;
}

#teamInvitesAdminList .event-card,
#myInvitesList .event-card {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.94) 0%, rgba(237, 245, 252, 0.86) 100%);
}


.section-note {
  margin-top: -6px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.invite-card.is-pending {
  border-color: rgba(59,130,246,.35);
}

.invite-card-highlight {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12), 0 14px 24px rgba(239, 68, 68, 0.12);
  animation: inviteTargetFlash 0.8s ease-in-out 4;
}

.invite-card.is-closed {
  opacity: 0.96;
}

.invite-jump-highlight {
  border-color: rgba(239, 68, 68, 0.42);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.08), 0 18px 32px rgba(239, 68, 68, 0.12);
}

.invite-note {
  padding-top: 4px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.invite-landing-shell {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.invite-landing-copy {
  padding: 8px 4px 8px 0;
}

.invite-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 700;
}

.invite-landing-title {
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
  color: #0f172a;
}

.invite-landing-subtitle {
  max-width: 42ch;
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
}

.invite-landing-card {
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.22), transparent 34%),
    linear-gradient(160deg, rgba(248, 252, 255, 0.96) 0%, rgba(229, 246, 236, 0.92) 100%);
  border: 1px solid rgba(34, 197, 94, 0.18);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.invite-team-name {
  font-size: 1.18rem;
  color: #0f172a;
}

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

.invite-meta-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.invite-meta-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.invite-meta-value {
  margin-top: 6px;
  font-weight: 700;
  color: #0f172a;
}

.invite-message-strip {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

.invite-landing-footnote {
  color: #475569;
  max-width: 64ch;
}

.finance-prep-card {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(245, 250, 255, 0.97) 0%, rgba(240, 247, 255, 0.92) 100%);
}

.finance-settlement-hero {
  border-color: rgba(16, 185, 129, 0.2);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(247, 255, 251, 0.98) 0%, rgba(238, 252, 245, 0.94) 100%);
}

.finance-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.finance-filter-field {
  display: grid;
  gap: 6px;
}

.finance-filter-field input,
.finance-filter-field select {
  width: 100%;
}

.finance-member-collapse summary span.row {
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .invite-landing-shell {
    grid-template-columns: 1fr;
  }

  .invite-meta-grid {
    grid-template-columns: 1fr;
  }
}

.message {
  transition: opacity .18s ease, transform .18s ease;
}

.message.hidden {
  opacity: 0;
  transform: translateY(-4px);
}


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

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

.compact-overview {
  max-width: 720px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.stat-card-button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
}

.stat-card-button:disabled {
  opacity: 1;
  filter: none;
}

.user-invite-alert-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.user-invite-alert-card:hover {
  transform: translateY(-1px);
}

.user-invite-alert-card.is-pulsing {
  border-color: rgba(239, 68, 68, 0.52);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96) 0%, rgba(255, 228, 230, 0.92) 100%);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.10), 0 16px 28px rgba(239, 68, 68, 0.14);
  animation: pendingInvitePulse 1s ease-in-out 5;
}

@keyframes pendingInvitePulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes inviteTargetFlash {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}

.stat-helper {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b91c1c;
}

.section-note {
  margin-bottom: 10px;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.is-current-card {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.context-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.invite-note {
  padding-top: 4px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

@media (max-width: 1100px) {
  .view-header {
    flex-direction: column;
  }

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

@media (max-width: 720px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .context-strip {
    flex-direction: column;
  }

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

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

.hero-card {
  padding: 20px;
}

.hero-headline-row {
  align-items: flex-start;
}

.section-header-wrap {
  align-items: flex-start;
}

.focus-event-card {
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.97) 0%, rgba(235, 244, 251, 0.92) 56%, rgba(230, 242, 232, 0.9) 100%);
}

.focus-event-title {
  margin: 4px 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.focus-event-date-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.focus-event-weekday {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: capitalize;
}

.focus-event-subtitle {
  color: #27445f;
  font-size: 1.02rem;
  font-weight: 700;
}

.hero-status-stack {
  align-items: flex-end;
}

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

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

.mini-stat {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.compact-mini-stat {
  padding: 10px;
}

.mini-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.mini-stat-value {
  font-size: 1rem;
  font-weight: 700;
}

.event-accordion {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.event-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 600;
}

.event-accordion summary::-webkit-details-marker {
  display: none;
}

.event-accordion summary::after {
  content: '▾';
  float: right;
  color: var(--muted);
}

.event-accordion[open] summary::after {
  content: '▴';
}

.accordion-body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-box {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.attendance-summary-card.compact {
  margin-top: 0;
}

.attendance-summary-grid {
  align-items: stretch;
}

.attendance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-row-main {
  min-width: 0;
}

.attendance-row-name {
  font-weight: 700;
}

.attendance-row-status {
  display: inline-flex;
  justify-content: center;
}

.attendance-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.attendance-row-payment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.finance-player-summary-grid .detail-box {
  min-height: 78px;
}

.finance-player-settlement-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.finance-player-settlement-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248, 250, 252, 0.76);
}

.finance-player-settlement-item .detail-value {
  margin-left: auto;
}

.attendance-payment-input {
  min-width: 0;
}

.attendance-row-payment .small.muted {
  line-height: 1.35;
}

.payment-qr-preview-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.payment-qr-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.88);
}

.payment-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.payment-qr-dialog {
  position: relative;
  width: min(92vw, 420px);
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
  text-align: center;
}

.payment-qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.payment-qr-image-large {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 18px auto 14px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: white;
  padding: 12px;
}

.payment-qr-username {
  font-weight: 700;
  margin-bottom: 10px;
}

.attendance-ledger-row {
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr));
  align-items: stretch;
}

.detail-label {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.detail-value {
  font-weight: 600;
}

.finance-delta-positive {
  color: #15803d;
}

.finance-delta-negative {
  color: #b91c1c;
}

.finance-delta-neutral {
  color: inherit;
}

.detail-multiline {
  white-space: pre-wrap;
  line-height: 1.5;
}

.btn-inline-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.user-event-card {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.95) 0%, rgba(236, 244, 252, 0.9) 100%);
}

.compact-team-card {
  padding: 12px 14px;
}

.secondary-user-card {
  opacity: 0.96;
}

.collapsed-group {
  margin-top: 12px;
}

.event-actions-inline .btn,
.event-actions-inline .btn-inline-link {
  min-height: 42px;
}

@media (max-width: 1100px) {
  .hero-metrics,
  .compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-metrics,
  .compact-metrics {
    grid-template-columns: 1fr;
  }

  .hero-status-stack {
    align-items: flex-start;
  }
}


.admin-collapse {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.82);
  overflow: hidden;
}

.admin-collapse + .admin-collapse {
  margin-top: 12px;
}

.admin-collapse summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.admin-collapse summary::-webkit-details-marker {
  display: none;
}

.admin-collapse summary::after {
  content: '▾';
  color: var(--muted);
  font-size: 0.95rem;
  margin-left: auto;
}

.admin-collapse:not([open]) summary::after {
  content: '▸';
}

.admin-collapse-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.hidden-block {
  display: none;
}

.recurring-box {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.recurring-toggle-line {
  font-weight: 600;
}

.recurring-note {
  margin-top: 6px;
  margin-bottom: 0;
}

.recurring-options {
  margin-top: 12px;
}

.rank-hero-card {
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.97) 0%, rgba(235, 244, 251, 0.9) 100%);
}

.rank-hero-headline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-hero-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 2rem;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rank-hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.rank-list-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.rank-list-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  min-height: 150px;
}

.rank-list-emoji {
  font-size: 1.85rem;
  line-height: 1;
  margin-bottom: 10px;
}

.rank-list-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.rank-admin-box {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.weather-placeholder-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.96) 0%, rgba(244, 250, 255, 0.92) 100%);
}

.weather-placeholder-card.compact {
  padding: 14px 16px;
  gap: 14px;
}

.weather-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 2rem;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  flex: 0 0 auto;
}

.weather-placeholder-card.compact .weather-placeholder-icon {
  width: 56px;
  height: 56px;
  font-size: 1.65rem;
}

.weather-widget-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.weather-widget-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weather-widget-metrics.compact {
  gap: 8px;
}

.weather-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 0.9rem;
}

.admin-home-sidecard {
  background: rgba(247, 251, 255, 0.86);
}

.bottom-space {
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .rank-hero-headline,
  .weather-placeholder-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-hero-emoji,
  .weather-placeholder-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

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

  .event-actions,
  .event-actions-inline {
    width: 100%;
  }

  .event-actions .btn,
  .event-actions .btn-inline-link,
  .event-actions-inline .btn,
  .event-actions-inline .btn-inline-link {
    width: 100%;
    justify-content: center;
  }

  .profile-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar-preview {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 720px) {
  .auth-card-head,
  .auth-switch-note {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-toggle {
    width: 100%;
  }

  .auth-toggle-btn {
    flex: 1 1 0;
  }

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

  .attendance-row-actions {
    justify-content: flex-start;
  }

  .attendance-row-payment {
    width: 100%;
  }

  .attendance-ledger-row {
    grid-template-columns: 1fr;
  }

  .finance-player-settlement-strip {
    grid-template-columns: 1fr;
  }

  .finance-player-settlement-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-qr-preview-card {
    grid-template-columns: 1fr;
  }

  .finance-filter-bar {
    grid-template-columns: 1fr;
  }
}
