:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", "Bahnschrift", Verdana, sans-serif;
  --font-display: "Impact", "Haettenschweiler", "Bahnschrift SemiCondensed", "Trebuchet MS", sans-serif;
  --font-tag: "Segoe Print", "Bradley Hand", "Trebuchet MS", cursive;
  --bg-ink: #151018;
  --bg-steel: #1f2429;
  --bg-panel: rgba(27, 29, 38, 0.88);
  --bg-panel-strong: rgba(17, 20, 28, 0.96);
  --bg-card: rgba(47, 47, 63, 0.54);
  --line-soft: rgba(255, 151, 193, 0.2);
  --line-strong: rgba(255, 207, 109, 0.42);
  --line-cyan: rgba(104, 236, 255, 0.46);
  --line-pink: rgba(255, 102, 170, 0.48);
  --text-main: #fff1ef;
  --text-muted: #cab7c4;
  --text-accent: #ffd46b;
  --text-olive: #b8f4d7;
  --text-pink: #ff8fc3;
  --text-cyan: #89ecff;
  --danger: #ff8f8b;
  --success: #9ff0ba;
  --shadow-lg: 0 30px 74px rgba(0, 0, 0, 0.44);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 95, 166, 0.28), transparent 20%),
    radial-gradient(circle at 84% 10%, rgba(94, 234, 255, 0.2), transparent 18%),
    radial-gradient(circle at 62% 0%, rgba(255, 212, 107, 0.14), transparent 22%),
    linear-gradient(140deg, #251721 0%, #17171e 36%, #132028 68%, #161018 100%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.82;
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 42px,
      rgba(255, 121, 185, 0.032) 42px,
      rgba(255, 121, 185, 0.032) 46px
    ),
    linear-gradient(
      90deg,
      transparent 0 12%,
      rgba(255, 213, 121, 0.04) 12% 12.4%,
      transparent 12.4% 82%,
      rgba(104, 236, 255, 0.045) 82% 82.4%,
      transparent 82.4% 100%
    ),
    radial-gradient(circle at 20% 14%, rgba(255, 93, 162, 0.16), transparent 18%),
    radial-gradient(circle at 84% 10%, rgba(104, 236, 255, 0.14), transparent 16%);
}

.page-backdrop::before,
.page-backdrop::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-backdrop::before {
  top: -40px;
  left: -90px;
  width: 430px;
  height: 430px;
  border-radius: 58% 42% 64% 36%;
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 133, 188, 0.2), transparent 34%),
    radial-gradient(circle at 58% 56%, rgba(255, 217, 122, 0.12), transparent 46%);
  filter: blur(8px);
}

.page-backdrop::after {
  right: -70px;
  top: 78px;
  width: 340px;
  height: 180px;
  border: 2px dashed rgba(104, 236, 255, 0.16);
  border-radius: 42px 20px 54px 16px;
  transform: rotate(-11deg);
  background:
    linear-gradient(180deg, rgba(255, 100, 170, 0.08), transparent 60%),
    repeating-linear-gradient(
      90deg,
      transparent 0 20px,
      rgba(255, 213, 121, 0.045) 20px 23px
    );
}

.container {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.site-credit {
  margin-top: 18px;
  padding: 0 4px 6px;
  color: rgba(231, 215, 224, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: var(--font-tag);
  text-shadow: 0 0 12px rgba(255, 143, 195, 0.2);
  transform: rotate(-1.5deg);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-cyan));
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border-radius: 28px 18px 30px 16px;
  background:
    linear-gradient(135deg, rgba(255, 102, 170, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 211, 116, 0.08), transparent 46%),
    linear-gradient(145deg, rgba(27, 31, 40, 0.96), rgba(20, 24, 31, 0.94) 58%, rgba(29, 18, 29, 0.96));
  border-color: rgba(255, 147, 193, 0.28);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(104, 236, 255, 0.05);
}

.masthead::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 14px;
  width: 180px;
  height: 88px;
  border-radius: 28px 22px 34px 14px;
  background:
    radial-gradient(circle at 72% 36%, rgba(104, 236, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 103, 173, 0.2), rgba(255, 212, 107, 0.06));
  transform: rotate(-4deg);
  opacity: 0.9;
}

.masthead-copy h1 {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff6f2;
  text-shadow:
    0 2px 0 rgba(14, 11, 16, 0.7),
    0 0 22px rgba(255, 120, 186, 0.16),
    0 0 42px rgba(104, 236, 255, 0.08);
}

.masthead-subtitle {
  margin: 0;
  max-width: 680px;
  color: #e7d7e0;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.masthead-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: end;
  gap: 12px;
}

.masthead-utility {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 10px;
  align-self: flex-end;
}

.tracked-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 240px);
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(104, 236, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.08), transparent 56%),
    rgba(17, 20, 28, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.tracked-player-chip.is-hidden {
  display: none;
}

.tracked-player-link {
  color: #ffb7d6;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracked-player-link:hover {
  color: #ffd9ea;
}

.tracked-player-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 149, 194, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  text-decoration: none;
}

.tracked-player-edit:hover {
  color: #fff6fb;
  border-color: rgba(255, 149, 194, 0.28);
}

.tracked-player-edit-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

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

.language-flags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 146, 191, 0.16);
  border-radius: 999px;
  background: rgba(17, 20, 28, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.language-flag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.language-flag-link:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 236, 255, 0.26);
  background: rgba(104, 236, 255, 0.08);
}

.language-flag-link.active {
  border-color: rgba(255, 214, 157, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 185, 218, 0.22), rgba(255, 104, 173, 0.18));
  box-shadow:
    0 0 0 1px rgba(255, 214, 157, 0.08),
    0 0 16px rgba(255, 104, 173, 0.16);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 146, 191, 0.22);
  border-radius: 999px;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  background:
    linear-gradient(180deg, rgba(255, 108, 177, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(37, 42, 52, 0.96), rgba(25, 27, 36, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 20px rgba(0, 0, 0, 0.16);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.main-nav a:hover {
  transform: translateY(-1px);
  border-color: var(--line-cyan);
  color: #ffffff;
}

.main-nav a.active {
  background:
    linear-gradient(135deg, rgba(255, 104, 173, 0.88), rgba(255, 206, 109, 0.92));
  border-color: rgba(255, 226, 162, 0.42);
  color: #261318;
  text-shadow: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 219, 167, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 172, 208, 0.98), rgba(255, 92, 163, 0.94));
  color: #2c1020;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(255, 102, 170, 0.24);
  transition: transform 150ms ease, filter 150ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.header-cta.active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 233, 188, 0.18),
    0 0 26px rgba(255, 118, 182, 0.22);
}

h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff3ef;
}

.panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 144, 190, 0.24);
  border-radius: 24px 18px 24px 14px;
  background:
    linear-gradient(145deg, rgba(255, 102, 170, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 210, 111, 0.08), transparent 90px),
    linear-gradient(180deg, rgba(27, 32, 41, 0.98), rgba(18, 23, 31, 0.98));
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.panel::before {
  content: "";
  position: absolute;
  left: -42px;
  bottom: -52px;
  width: 180px;
  height: 180px;
  border-radius: 60% 40% 65% 35%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 110, 178, 0.12), transparent 58%);
  pointer-events: none;
  opacity: 0.9;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 22%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 34px,
      rgba(255, 255, 255, 0.014) 34px,
      rgba(255, 255, 255, 0.014) 35px
    );
  mix-blend-mode: screen;
  opacity: 0.46;
}

.panel-success {
  border-color: rgba(159, 240, 186, 0.36);
  color: #e4f7dc;
}

.panel-error {
  border-color: rgba(255, 136, 177, 0.42);
  color: #ffe0ef;
}

.hero-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: 1.3fr 0.95fr;
  align-items: stretch;
}

.roster-grid {
  grid-template-columns: 1.15fr 1fr;
}

.content-grid {
  grid-template-columns: 1.15fr 0.95fr;
}

.roster-hero {
  margin-bottom: 18px;
}

.hero-panel {
  min-height: 280px;
}

.hero-copy {
  max-width: 720px;
  margin: 10px 0 20px;
  color: #e0d0da;
  line-height: 1.6;
}

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

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

.metric-card {
  position: relative;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 184, 145, 0.12);
  border-radius: 18px 14px 18px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(145deg, rgba(39, 43, 54, 0.9), rgba(26, 29, 39, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.metric-card:nth-child(3n + 1) {
  border-color: rgba(255, 104, 173, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 104, 173, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(39, 43, 54, 0.9), rgba(26, 29, 39, 0.92));
}

.metric-card:nth-child(3n + 2) {
  border-color: rgba(104, 236, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(39, 43, 54, 0.9), rgba(26, 29, 39, 0.92));
}

.metric-card:nth-child(3n + 3) {
  border-color: rgba(255, 212, 107, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 212, 107, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(39, 43, 54, 0.9), rgba(26, 29, 39, 0.92));
}

.metric-label,
.metric-note {
  display: block;
}

.metric-label {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff5f0;
}

.metric-value-commander {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.08;
  font-size: clamp(1.05rem, 2.1vw, 1.75rem);
}

.metric-note {
  margin-top: 6px;
  color: var(--text-cyan);
  font-size: 0.82rem;
}

.control-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.weekly-dashboard-grid {
  align-items: stretch;
}

.dashboard-week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
}

.dashboard-week-toolbar-copy {
  display: grid;
  gap: 4px;
}

.dashboard-week-toolbar-copy strong {
  color: #fff4ee;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
}

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

.train-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.train-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.train-toolbar-settings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.train-toolbar-select,
.train-day-select {
  min-width: 0;
}

.train-toolbar-select select,
.train-day-select select {
  min-width: 220px;
}

.train-toolbar-button {
  min-height: 40px;
  padding: 0 14px;
}

.train-toolbar-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.train-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 24, 33, 0.52);
  color: #f6dfea;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.train-summary-pill.is-eco {
  border-color: rgba(104, 236, 255, 0.22);
  color: #a6f4ff;
}

.train-summary-pill.is-push {
  border-color: rgba(255, 165, 195, 0.24);
  color: #ffb6d2;
}

.train-summary-link {
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.train-summary-link:hover,
.train-summary-link:focus-visible {
  border-color: rgba(104, 236, 255, 0.34);
  color: #dffcff;
  background: rgba(104, 236, 255, 0.08);
}

.train-day-grid {
  display: grid;
  gap: 10px;
}

.train-day-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px 12px 18px 10px;
  border: 1px solid rgba(255, 149, 194, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 109, 177, 0.05), transparent 24%),
    rgba(15, 18, 26, 0.52);
}

.train-day-row-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.train-day-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.train-day-heading {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.train-day-title {
  display: inline-block;
  color: #fff3f9;
  font-size: 0.96rem;
}

.train-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.train-state-badge.is-manual {
  color: #231622;
  background: linear-gradient(180deg, #ffb8d3, #ff7db3);
}

.train-state-badge.is-suggested {
  color: #07252d;
  background: linear-gradient(180deg, #abf6ff, #55d2ef);
}

.train-state-badge.is-pending {
  color: #fcead3;
  background: rgba(255, 214, 141, 0.12);
  border-color: rgba(255, 214, 141, 0.28);
}

.train-state-badge.is-auto {
  color: #eef5ff;
  background: rgba(92, 128, 255, 0.14);
  border-color: rgba(92, 128, 255, 0.26);
}

.train-day-rule {
  color: var(--text-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.train-driver-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.train-driver-name,
.train-driver-placeholder {
  font-family: var(--font-display);
  font-size: 0.96rem;
  letter-spacing: 0.03em;
}

.train-driver-placeholder {
  color: #fff4ee;
}

.train-driver-detail {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.35;
  font-size: 0.8rem;
}

.train-blocked-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.train-mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(92, 128, 255, 0.22);
  background: rgba(92, 128, 255, 0.12);
  color: #dbe6ff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.train-day-form {
  display: grid;
  gap: 8px;
}

.train-day-form-compact {
  min-width: 220px;
}

.train-day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.train-day-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.weekly-overview-panel {
  display: grid;
  gap: 20px;
}

.weekly-overview-head {
  display: flex;
  align-items: start;
  gap: 18px;
}

.weekly-overview-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.week-type-inline {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-type-inline.is-eco {
  color: #ffd68d;
}

.week-type-inline.is-push {
  color: var(--text-cyan);
}

.weekly-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.weekly-summary-item {
  min-width: 0;
  padding: 4px 0 4px 14px;
  border-left: 1px solid rgba(255, 149, 194, 0.16);
}

.weekly-summary-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.weekly-summary-item dt {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.weekly-summary-item dd {
  margin: 0;
  color: #fff5f0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  line-height: 1;
}

.week-type-value {
  font-size: clamp(1.05rem, 2vw, 1.5rem) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.week-type-value.is-eco {
  color: #ffd68d;
}

.week-type-value.is-push {
  color: var(--text-cyan);
}

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

.weekly-insight-panel {
  display: grid;
  gap: 12px;
}

.weekly-insight-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.weekly-insight-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff4ee;
}

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

.weekly-podium-metrics {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-compact-panel {
  justify-content: flex-start;
  gap: 18px;
}

.dashboard-compact-filter {
  display: grid;
  gap: 10px;
}

.compact-week-form {
  display: block;
}

.compact-week-picker {
  min-width: 0;
  gap: 0;
}

.compact-week-picker select {
  min-width: 0;
  padding: 10px 38px 10px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.compact-week-label {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.compact-panel-actions {
  margin-top: 0;
}

.dashboard-edit-week-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 149, 194, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.dashboard-edit-week-link:hover {
  color: #fff6fb;
  border-color: rgba(255, 149, 194, 0.28);
}

.dashboard-edit-week-inline {
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.78;
}

.dashboard-edit-week-inline:hover {
  color: #fff6fb;
  opacity: 1;
}

.week-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 149, 194, 0.16);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-status-badge.is-eco {
  color: #24131b;
  background: linear-gradient(180deg, rgba(255, 208, 111, 0.96), rgba(255, 145, 189, 0.92));
}

.week-status-badge.is-push {
  color: #e3fbff;
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.14), transparent 52%),
    rgba(25, 33, 44, 0.86);
  border-color: rgba(104, 236, 255, 0.22);
}

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

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

.delta-row {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px 12px 16px 10px;
  border: 1px solid rgba(255, 149, 194, 0.16);
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.05), transparent 26%),
    rgba(15, 18, 26, 0.46);
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.delta-row:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 236, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.08), transparent 26%),
    rgba(18, 23, 31, 0.56);
}

.delta-row-empty:hover {
  transform: none;
}

.delta-row-head,
.delta-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delta-row-head strong {
  color: #fff4ee;
}

.spotlight-row .delta-row-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spotlight-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.delta-value {
  color: var(--text-cyan);
  font-weight: 800;
}

.delta-row-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.dashboard-leaderboard-head {
  gap: 16px;
}

.dashboard-player-filter {
  min-width: min(260px, 100%);
  gap: 0;
}

.dashboard-player-filter input {
  min-height: 44px;
}

.dashboard-player-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.record-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 208, 111, 0.16);
  border: 1px solid rgba(255, 208, 111, 0.28);
  color: #ffdca4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 145, 191, 0.22);
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  background:
    linear-gradient(180deg, rgba(255, 104, 173, 0.08), transparent 44%),
    rgba(34, 39, 49, 0.78);
  transition: border-color 150ms ease, transform 150ms ease;
}

.tab:hover {
  transform: translateY(-1px);
  border-color: var(--line-cyan);
}

.tab.active {
  border-color: rgba(255, 224, 162, 0.44);
  background: linear-gradient(135deg, rgba(255, 108, 177, 0.9), rgba(255, 208, 111, 0.86));
  color: #261318;
}

.week-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px 14px 18px 12px;
  border: 1px solid rgba(104, 236, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(104, 236, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 110, 178, 0.1), rgba(27, 32, 41, 0.5));
}

.week-summary strong {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--text-cyan);
}

.week-summary span {
  color: var(--text-main);
}

.week-summary-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 185, 218, 0.96), rgba(255, 103, 173, 0.94));
  color: #311122 !important;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 22px rgba(255, 102, 170, 0.22);
}

.filter-form,
.stack-form {
  display: flex;
  gap: 12px;
}

.filter-form {
  align-items: end;
  flex-wrap: wrap;
}

.stack-form {
  flex-direction: column;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-main);
  font-size: 0.94rem;
}

.week-filter {
  min-width: min(420px, 100%);
}

.week-filter-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px 12px 16px 10px;
  border: 1px solid rgba(255, 148, 193, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 52%),
    rgba(16, 20, 28, 0.84);
  color: var(--text-main);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(104, 236, 255, 0.52);
  box-shadow:
    0 0 0 3px rgba(104, 236, 255, 0.12),
    0 0 24px rgba(255, 104, 173, 0.12);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-cyan) 50%),
    linear-gradient(135deg, var(--text-cyan) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button {
  width: auto;
  min-width: 170px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #301320;
  background: linear-gradient(180deg, #ffc3df, #ff73b5);
  border-color: rgba(255, 227, 183, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(255, 102, 170, 0.16);
  transition: transform 150ms ease, filter 150ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.secondary-button {
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.1), transparent 48%),
    rgba(28, 34, 44, 0.86);
  border-color: rgba(104, 236, 255, 0.18);
  box-shadow: none;
}

.secondary-button:hover {
  color: #fff6fb;
  border-color: rgba(255, 155, 197, 0.34);
  filter: none;
}

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

.roster-heading-copy {
  width: 100%;
}

.roster-toolbar {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
}

.roster-mobile-sort {
  display: none;
}

.roster-search-shell {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  min-width: min(320px, 100%);
  margin-top: 0;
}

.roster-search-label {
  width: 100%;
}

.roster-search-input {
  min-width: min(320px, 100%);
}

.roster-search-count {
  color: var(--text-cyan);
  font-size: 0.82rem;
}

.roster-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.roster-inline-stat {
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roster-empty-search td {
  color: var(--text-muted);
}

.roster-subheading {
  margin-bottom: 14px;
}

.roster-section-tabs {
  margin-top: 0;
  margin-bottom: 18px;
}

.roster-section-tab {
  min-width: 0;
  gap: 10px;
  padding-inline: 16px;
}

.roster-section-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(12, 16, 24, 0.28);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.roster-squad-stats-panel {
  margin-top: -2px;
}

.roster-squad-copy {
  max-width: 760px;
  margin-bottom: 0;
}

.roster-squad-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.roster-archive-panel {
  border-color: rgba(255, 170, 196, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 120, 162, 0.06), transparent 24%),
    rgba(18, 18, 26, 0.74);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 149, 194, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background:
    linear-gradient(180deg, rgba(255, 107, 175, 0.04), transparent 28%),
    rgba(15, 18, 26, 0.54);
}

.data-table thead {
  background:
    linear-gradient(90deg, rgba(255, 105, 173, 0.2), rgba(104, 236, 255, 0.08)),
    linear-gradient(180deg, rgba(42, 46, 58, 0.96), rgba(27, 31, 40, 0.96));
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #9ff7ff !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-family: var(--font-display);
  text-shadow: 0 0 16px rgba(104, 236, 255, 0.14);
}

.sortable-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ff7ff !important;
  text-decoration: none;
  transition: color 150ms ease;
}

.sortable-header:hover,
.sortable-header.active {
  color: #dffcff !important;
}

.sort-indicator {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.data-table tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(255, 110, 178, 0.1), rgba(104, 236, 255, 0.05));
}

.player-cell {
  font-weight: 700;
  color: #fff0f6;
}

.player-name-stack {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.player-role-r4 {
  color: #07252d;
  background: linear-gradient(180deg, #a7f4ff, #56cde8);
  border-color: rgba(174, 247, 255, 0.72);
}

.player-role-r5 {
  color: #311123;
  background: linear-gradient(180deg, #ffd0e4, #ff92bf);
  border-color: rgba(255, 203, 225, 0.72);
}

.player-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.player-name-static {
  color: #fff0f6;
  font-weight: 700;
}

.player-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-status-departed {
  color: #2f0814;
  background: linear-gradient(180deg, #ff9ab0, #d14f6c);
  border-color: rgba(255, 188, 201, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 188, 201, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.player-status-active {
  color: #062731;
  background: linear-gradient(180deg, #8ef6ff, #48cddd);
  border-color: rgba(178, 248, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(178, 248, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.detail-status-row {
  margin-top: 10px;
}

.status-toggle-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px 14px 18px 12px;
  border: 1px solid rgba(255, 149, 194, 0.16);
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.04), transparent 24%),
    rgba(15, 18, 26, 0.44);
}

.status-toggle-copy {
  display: grid;
  gap: 4px;
}

.status-toggle-copy span {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-toggle-copy strong {
  color: #fff4ee;
}

.status-toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(104, 236, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(34, 39, 49, 0.96), rgba(22, 26, 35, 0.96));
  color: #dffcff;
  box-shadow: none;
}

.status-toggle-button:hover {
  transform: none;
  filter: none;
}

.status-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(72, 84, 104, 0.92), rgba(39, 46, 61, 0.92));
}

.status-toggle-thumb {
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eff8ff, #c5dff1);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 180ms ease;
}

.status-toggle-button.is-active {
  border-color: rgba(255, 191, 207, 0.42);
  background:
    linear-gradient(180deg, rgba(99, 29, 54, 0.96), rgba(66, 22, 41, 0.96));
  color: #ffe7ef;
}

.status-toggle-button.is-active .status-toggle-track {
  background: linear-gradient(180deg, rgba(232, 114, 151, 0.96), rgba(189, 67, 105, 0.96));
}

.status-toggle-button.is-active .status-toggle-thumb {
  transform: translateX(26px);
  background: linear-gradient(180deg, #fff1f5, #ffd5e1);
}

.status-toggle-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.source-capture-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 22px 16px 20px 14px;
  border: 1px solid rgba(255, 150, 196, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 110, 178, 0.08), transparent 22%),
    rgba(15, 18, 26, 0.62);
}

.source-capture-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.source-capture-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(104, 236, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.source-capture-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(17, 20, 30, 0.98), rgba(24, 28, 38, 0.98));
}

.player-link:hover {
  color: var(--text-pink);
  border-color: rgba(255, 143, 195, 0.46);
}

.points-cell {
  white-space: nowrap;
  color: var(--text-cyan);
  font-weight: 700;
}

.filename-cell {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.players-table td:first-child {
  min-width: 220px;
}

.players-table td {
  vertical-align: middle;
}

.players-table td::before {
  display: none;
  content: attr(data-label);
}

.actions-cell {
  width: 56px;
  text-align: right;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-width: 196px;
}

.week-strip-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 145, 191, 0.14);
  color: #eef5ff !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.week-strip-item::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  opacity: 0.92;
}

.week-chip-actionable {
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.week-chip-actionable:hover {
  transform: translateY(-1px);
}

.players-table .week-strip-item-present {
  border-color: rgba(159, 240, 186, 0.26);
  background:
    linear-gradient(180deg, rgba(136, 255, 186, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(21, 58, 39, 0.96), rgba(13, 35, 25, 0.96));
}

.players-table .week-strip-item-present::after {
  background: #86ffba;
  box-shadow: 0 0 12px rgba(134, 255, 186, 0.34);
}

.players-table .week-strip-item-missing {
  border-color: rgba(118, 192, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(114, 190, 255, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(25, 43, 74, 0.96), rgba(15, 28, 49, 0.96));
}

.players-table .week-strip-item-missing::after {
  background: #7ac7ff;
  box-shadow: 0 0 12px rgba(122, 199, 255, 0.28);
}

.week-chip-actionable.week-strip-item-present:hover {
  border-color: rgba(159, 240, 186, 0.42);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(136, 255, 186, 0.24), transparent 46%),
    linear-gradient(180deg, rgba(26, 72, 48, 0.96), rgba(17, 44, 30, 0.96));
}

.week-chip-actionable.week-strip-item-missing:hover {
  border-color: rgba(122, 199, 255, 0.42);
  color: #f2f9ff;
  background:
    linear-gradient(180deg, rgba(114, 190, 255, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(31, 54, 92, 0.96), rgba(20, 34, 58, 0.96));
}

.squad-points-cell {
  min-width: 112px;
}

.muted-text {
  color: var(--text-muted);
}

.detail-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.detail-content-grid {
  grid-template-columns: 1fr 1fr;
}

.detail-content-grid-secondary {
  margin-top: 18px;
}

.detail-week-list {
  margin: 16px 0 18px;
}

.detail-summary-stack {
  margin-top: 20px;
}

.player-profile-panel {
  overflow: hidden;
}

.player-profile-heading {
  align-items: start;
  gap: 18px;
}

.player-profile-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.player-stats-strip {
  margin-top: 18px;
}

.player-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 18px;
}

.player-squad-rank-grid {
  display: grid;
  gap: 12px;
}

.player-squad-rank-copy h2 {
  margin: 2px 0 0;
}

.player-squad-rank-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.player-squad-rank-card {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border-radius: 16px 12px 15px 10px;
  border: 1px solid rgba(255, 149, 194, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 135, 180, 0.06), transparent 55%),
    rgba(17, 21, 31, 0.84);
}

.player-squad-rank-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.player-squad-rank-value {
  color: #fff4ee;
  font-size: 1.08rem;
}

.player-squad-rank-meta {
  color: var(--text-cyan);
  font-size: 0.82rem;
  font-weight: 700;
}

.player-squad-rank-note {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.action-link-quiet {
  padding-inline: 12px;
  min-height: 0;
  font-size: 0.78rem;
}

.player-history-table td {
  vertical-align: middle;
}

.player-history-week {
  display: grid;
  gap: 6px;
}

.player-history-date {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.player-history-points {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.record-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 112, 0.34);
  background: rgba(255, 208, 96, 0.12);
  color: #ffe19a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.player-edit-layout {
  align-items: start;
}

.player-edit-side,
.player-edit-main {
  min-height: 100%;
}

.player-history-panel {
  margin-top: 18px;
}

.summary-stack {
  display: grid;
  gap: 10px;
}

.rename-form {
  margin-top: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(104, 236, 255, 0.12);
  border-radius: 16px 12px 16px 10px;
  background:
    linear-gradient(135deg, rgba(104, 236, 255, 0.06), transparent 40%),
    rgba(15, 18, 26, 0.48);
}

.summary-row span {
  color: var(--text-muted);
}

.summary-row strong {
  color: #fff4ee;
}

.summary-input {
  min-width: 210px;
  gap: 0;
}

.summary-input input,
.summary-input select {
  min-width: 210px;
}

.summary-input-note {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.squad-summary-shell {
  margin-top: 20px;
}

.squad-summary-stack {
  margin-top: 12px;
}

.squad-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.summary-row-meta {
  grid-column: 1 / -1;
  color: var(--text-cyan);
  font-size: 0.8rem;
}

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

.squad-update-panel {
  max-width: 760px;
  margin-inline: auto;
}

.squad-update-header {
  margin-bottom: 20px;
}

.squad-update-copy {
  max-width: 100%;
  margin-bottom: 0;
}

.squad-update-form {
  gap: 14px;
}

.squad-picker-shell,
.squad-entry-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px 14px 18px 12px;
  border: 1px solid rgba(255, 149, 194, 0.16);
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.05), transparent 28%),
    rgba(15, 18, 26, 0.4);
}

.squad-player-search-shell,
.squad-date-label {
  gap: 8px;
}

.squad-player-search {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.94rem;
}

.squad-player-chip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.squad-player-chip {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 8px;
  border-radius: 14px;
  color: #fff0f6;
  background:
    linear-gradient(180deg, rgba(255, 109, 177, 0.12), transparent 52%),
    rgba(30, 35, 45, 0.92);
  border-color: rgba(255, 149, 194, 0.2);
  box-shadow: none;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.squad-player-chip:hover {
  filter: none;
}

.squad-player-chip.active {
  color: #2d1020;
  background: linear-gradient(180deg, #ffd2e7, #ff84bf);
  border-color: rgba(255, 228, 189, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(255, 115, 181, 0.18);
}

.squad-player-empty {
  margin: 0;
}

.squad-selected-strip {
  display: block;
  padding: 8px 10px;
  border-radius: 16px 12px 16px 10px;
  border: 1px solid rgba(104, 236, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(104, 236, 255, 0.06), transparent 42%),
    rgba(15, 18, 26, 0.48);
}

.squad-selected-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.squad-selected-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.squad-selected-copy strong {
  color: #fff4ee;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.squad-change-player-button {
  min-width: 0;
  width: auto;
  padding: 6px 10px;
  min-height: 0;
  border-radius: 999px;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.1), transparent 48%),
    rgba(28, 34, 44, 0.86);
  border-color: rgba(104, 236, 255, 0.18);
  box-shadow: none;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.squad-change-player-button:hover {
  color: #fff6fb;
  border-color: rgba(255, 155, 197, 0.34);
  filter: none;
}

.squad-change-player-button.is-hidden {
  display: none;
}

.squad-selected-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.squad-selected-meta strong {
  color: #fff4ee;
  font-size: 0.78rem;
}

.squad-picker-chooser {
  display: grid;
  gap: 10px;
}

.squad-picker-shell.is-collapsed {
  gap: 0;
}

.squad-picker-shell.is-collapsed .squad-picker-chooser {
  display: none;
}

.squad-power-hint {
  margin: 0;
}

.squad-quick-grid {
  display: grid;
  gap: 12px;
}

.squad-quick-field {
  gap: 8px;
}

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

.squad-million-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.squad-million-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: stretch;
}

.squad-million-input input {
  min-height: 54px;
  font-size: 1.06rem;
  text-align: right;
}

.squad-step-button {
  min-width: 0;
  min-height: 54px;
  padding: 0;
  border-radius: 16px 12px 16px 10px;
  color: #fff4ee;
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.1), transparent 52%),
    rgba(28, 34, 44, 0.9);
  border-color: rgba(104, 236, 255, 0.18);
  box-shadow: none;
  font-size: 1.1rem;
}

.squad-step-button:hover {
  filter: none;
  border-color: rgba(255, 149, 194, 0.28);
}

.squad-million-suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0 14px;
  border-radius: 16px 12px 16px 10px;
  border: 1px solid rgba(255, 148, 193, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 110, 178, 0.16), transparent 52%),
    rgba(27, 31, 40, 0.92);
  color: var(--text-cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.squad-million-guidance {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px 12px 16px 10px;
  border: 1px solid rgba(104, 236, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(104, 236, 255, 0.06), transparent 42%),
    rgba(15, 18, 26, 0.42);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.squad-million-guidance strong {
  color: #fff4ee;
}

.squad-submit-button {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  font-size: 0.92rem;
}

.squad-submit-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  filter: grayscale(0.2);
  box-shadow: none;
}

.squad-submit-button:disabled:hover {
  transform: none;
  filter: grayscale(0.2);
}

.squad-update-history-panel {
  max-width: 760px;
  margin-inline: auto;
}

.squad-history-mobile-list {
  display: grid;
  gap: 12px;
}

.squad-history-mobile-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px 12px 16px 10px;
  border: 1px solid rgba(255, 149, 194, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 109, 177, 0.07), transparent 30%),
    rgba(15, 18, 26, 0.44);
}

.squad-history-mobile-date {
  color: var(--text-cyan);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.squad-history-mobile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.squad-history-mobile-grid div {
  display: grid;
  gap: 4px;
}

.squad-history-mobile-grid span {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.squad-history-mobile-grid strong {
  color: #fff4ee;
  font-size: 0.96rem;
}

.squad-history-edit-grid {
  display: grid;
  gap: 12px;
}

.squad-history-card {
  padding: 14px 16px;
  border-radius: 18px 12px 16px 10px;
  border: 1px solid rgba(255, 149, 194, 0.18);
  background:
    linear-gradient(180deg, rgba(104, 236, 255, 0.05), transparent 28%),
    rgba(15, 18, 26, 0.48);
  display: grid;
  gap: 12px;
}

.squad-history-card-alert {
  border-color: rgba(255, 171, 187, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 171, 187, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.squad-invalid-badge {
  color: #2f0814;
  background: linear-gradient(180deg, #ffb5c2, #e06a84);
  border-color: rgba(255, 204, 214, 0.72);
}

.squad-history-copy {
  margin-bottom: 14px;
}

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

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

.squad-history-date {
  display: grid;
  gap: 4px;
}

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

.squad-history-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.squad-history-field span {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.squad-history-field input {
  min-width: 0;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.squad-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.squad-history-save-button,
.squad-history-delete-button {
  width: auto;
  min-width: 68px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.squad-history-save-button {
  color: #301320;
  background: linear-gradient(180deg, #ffc3df, #ff73b5);
  border-color: rgba(255, 227, 183, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 16px rgba(255, 102, 170, 0.12);
}

.squad-history-delete-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.squad-history-delete-button {
  color: #ffdbe7;
  background:
    linear-gradient(180deg, rgba(255, 111, 145, 0.12), transparent 52%),
    rgba(45, 22, 30, 0.86);
  border-color: rgba(255, 129, 151, 0.34);
  box-shadow: none;
}

.squad-history-save-button:hover,
.squad-history-delete-button:hover {
  transform: translateY(-1px);
}

.squad-history-delete-button:hover {
  box-shadow: 0 0 18px rgba(255, 132, 162, 0.16);
}

@media (max-width: 980px) {
  .squad-player-chip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .weekly-insight-grid,
  .weekly-summary-strip,
  .squad-player-chip-list,
  .squad-history-mobile-grid {
    grid-template-columns: 1fr;
  }

  .squad-million-input {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .squad-million-control {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .squad-selected-inline {
    align-items: start;
    flex-direction: column;
  }

  .weekly-summary-item {
    padding-left: 0;
    padding-top: 6px;
    border-left: 0;
    border-top: 1px solid rgba(255, 149, 194, 0.16);
  }

  .weekly-summary-item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .squad-history-fields-grid {
    grid-template-columns: 1fr;
  }

  .squad-history-actions,
  .squad-history-delete-form {
    justify-content: flex-start;
  }
}

.warning-summary-grid {
  display: grid;
  gap: 14px;
}

.warning-summary-copy {
  margin-top: 8px;
  color: #ffe4ef;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

.action-form {
  margin: 0;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 148, 193, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 105, 173, 0.08), transparent 52%),
    rgba(31, 36, 45, 0.86);
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.action-link:hover {
  border-color: rgba(104, 236, 255, 0.28);
  color: var(--text-cyan);
}

.action-link-strong {
  background: linear-gradient(180deg, rgba(255, 185, 218, 0.24), rgba(255, 104, 173, 0.2));
  border-color: rgba(255, 214, 157, 0.24);
}

.action-link-strong:hover {
  color: #fff7fb;
}

.chart-shell {
  padding: 12px 10px 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 149, 194, 0.16);
  background:
    radial-gradient(circle at top, rgba(104, 236, 255, 0.16), transparent 34%),
    radial-gradient(circle at 16% 18%, rgba(255, 110, 178, 0.12), transparent 22%),
    rgba(8, 11, 18, 0.58);
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 0.84rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 20, 28, 0.48);
  border: 1px solid rgba(255, 149, 194, 0.12);
}

.chart-legend-swatch {
  position: relative;
  width: 34px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chart-legend-line {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  height: 0;
  border-top-width: 4px;
  border-top-style: solid;
  transform: translateY(-50%);
  border-radius: 999px;
}

.chart-legend-line-tank {
  border-top-color: #ff5ca8;
}

.chart-legend-line-air {
  border-top-color: #5fe8ff;
  border-top-style: dashed;
}

.chart-legend-line-missile {
  border-top-color: #ffcf5c;
  border-top-style: dashed;
  border-top-width: 3px;
}

.chart-note {
  margin: 0 0 12px;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.chart-grid-label {
  fill: var(--text-muted);
  font-size: 12px;
}

.chart-area {
  fill: rgba(255, 110, 178, 0.16);
}

.chart-line {
  fill: none;
  stroke: #7eefff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(126, 239, 255, 0.16));
}

.chart-dot {
  fill: #fff4fa;
  stroke: #ff8fc3;
  stroke-width: 2;
}

.chart-line-tank {
  stroke: #ff5ca8;
}

.chart-line-air {
  stroke: #5fe8ff;
  stroke-dasharray: 10 9;
}

.chart-line-missile {
  stroke: #ffcf5c;
  stroke-dasharray: 15 9 3 9;
}

.chart-marker {
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
}

.chart-marker-tank {
  background: #fff2fa;
  border: 2px solid #ff5ca8;
  fill: #fff2fa;
  stroke: #ff5ca8;
}

.chart-marker-air {
  background: #eefcff;
  border: 2px solid #5fe8ff;
  fill: #eefcff;
  stroke: #5fe8ff;
}

.chart-marker-missile {
  background: #fff9e6;
  border: 2px solid #ffcf5c;
  fill: #fff9e6;
  stroke: #ffcf5c;
}

.chart-legend-marker {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 12px;
  height: 12px;
}

.chart-marker-circle {
  border-radius: 999px;
}

.chart-marker-square {
  border-radius: 2px;
}

.chart-legend-marker.chart-marker-diamond {
  transform: rotate(45deg);
}

.chart-x-label {
  fill: var(--text-muted);
  font-size: 12px;
  text-anchor: middle;
}

.import-grid {
  align-items: stretch;
}

.inline-panel {
  margin: 0 0 18px;
  padding: 14px 16px;
}

.import-note {
  margin-bottom: 18px;
}

.import-confirm-form {
  gap: 18px;
}

.import-table-wrap {
  margin-top: 4px;
}

.points-input-cell {
  min-width: 220px;
}

.points-input {
  width: min(220px, 100%);
}

.player-name-input,
.points-input {
  padding: 10px 12px;
  border-radius: 10px;
}

.input-invalid {
  border-color: rgba(255, 169, 184, 0.88) !important;
  box-shadow:
    0 0 0 1px rgba(255, 169, 184, 0.32),
    0 0 0 4px rgba(255, 108, 149, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 120, 155, 0.12), rgba(25, 31, 42, 0.96));
}

.player-name-input {
  width: min(280px, 100%);
}

.row-remove-button {
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.72rem;
  background: rgba(34, 39, 49, 0.9);
  color: var(--text-main);
  border-color: rgba(255, 148, 193, 0.18);
  box-shadow: none;
}

.row-remove-button:hover {
  color: #fff6fb;
  border-color: rgba(255, 145, 191, 0.32);
  filter: none;
}

.rank-cell {
  white-space: nowrap;
}

.warning-row {
  background: linear-gradient(90deg, rgba(255, 104, 173, 0.16), rgba(255, 142, 139, 0.1));
}

.warning-row:hover {
  background: linear-gradient(90deg, rgba(255, 104, 173, 0.22), rgba(255, 142, 139, 0.14)) !important;
}

.row-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.warning-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 91, 164, 0.2);
  border: 1px solid rgba(255, 143, 195, 0.32);
  color: #ffe3f0;
  font-size: 0.72rem;
  font-weight: 700;
}

.warning-suggestion {
  color: #ffe3f0;
  font-size: 0.78rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .content-grid,
  .roster-grid,
  .detail-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .control-panel {
    min-height: 0;
  }

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

  .weekly-insight-grid,
  .roster-squad-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .player-summary-layout {
    grid-template-columns: 1fr;
  }

  .player-squad-rank-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .masthead {
    padding: 18px 16px;
    flex-direction: column;
    align-items: start;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: stretch;
  }

  .masthead-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
  }

  .masthead-utility {
    width: 100%;
    justify-content: stretch;
  }

  .tracked-player-chip {
    width: 100%;
    justify-content: space-between;
  }

  .tracked-player-link {
    max-width: min(42vw, 220px);
  }

  .main-nav a {
    min-width: 0;
    width: 100%;
    flex: none;
  }

  .site-credit {
    text-align: center;
    font-size: 0.64rem;
  }

  .header-cta {
    width: 100%;
    min-width: 0;
  }

  .hero-metrics,
  .compact-metrics,
  .squad-form-grid,
  .roster-squad-metrics,
  .weekly-summary-metrics,
  .weekly-podium-metrics {
    grid-template-columns: 1fr;
  }

  .week-summary,
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .delta-row-head,
  .delta-row-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-heading {
    align-items: stretch;
  }

  .weekly-overview-head,
  .dashboard-week-toolbar,
  .dashboard-week-actions,
  .dashboard-leaderboard-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-player-filter {
    min-width: 100%;
  }

  .train-day-grid {
    grid-template-columns: 1fr;
  }

  .train-toolbar-main,
  .train-toolbar-settings,
  .train-toolbar-summary {
    align-items: stretch;
  }

  .train-toolbar-select select,
  .train-day-select select,
  .train-day-form-compact {
    min-width: 100%;
  }

  .train-day-card {
    grid-template-columns: 1fr;
  }

  .train-day-card-head,
  .train-day-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .tab,
  .action-link,
  .action-link-strong {
    width: 100%;
    min-width: 0;
  }

  .panel-actions,
  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .status-toggle-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .player-profile-heading,
  .player-profile-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-squad-rank-cards {
    grid-template-columns: 1fr;
  }

  .roster-search-shell {
    align-items: stretch;
    min-width: 100%;
  }

  .roster-search-meta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .roster-mobile-sort-field {
    display: grid;
    gap: 6px;
  }

  .roster-mobile-sort-field span {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .roster-mobile-sort-field select {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border-radius: 14px 10px 14px 10px;
    border: 1px solid rgba(88, 197, 255, 0.22);
    background: rgba(16, 22, 34, 0.85);
    color: var(--text-main);
    box-shadow: inset 0 0 0 1px rgba(255, 109, 177, 0.06);
  }

  .roster-section-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roster-section-tab {
    width: 100%;
  }

  .filter-form button {
    width: 100%;
  }

  .data-table th,
  .data-table td {
    padding: 11px 10px;
  }

  .table-wrap {
    overflow-x: visible;
    border: 0;
    box-shadow: none;
  }

  .players-table {
    background: transparent;
  }

  .players-table thead {
    display: none;
  }

  .players-table tbody {
    display: grid;
    gap: 12px;
  }

  .players-table tr.player-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px;
    border-radius: 18px 12px 16px 10px;
    border: 1px solid rgba(255, 149, 194, 0.18);
    background:
      linear-gradient(180deg, rgba(255, 109, 177, 0.06), transparent 28%),
      rgba(15, 18, 26, 0.56);
  }

  .players-table tr.player-row[hidden] {
    display: none !important;
  }

  .players-table tr.player-row td {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
    white-space: normal;
  }

  .players-table tr.player-row td::before {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .players-table tr.player-row .player-cell {
    grid-column: 1 / -1;
  }

  .players-table tr.player-row .player-cell::before {
    display: none;
  }

  .players-table td:first-child,
  .squad-points-cell {
    min-width: 0;
  }

  .points-cell {
    white-space: normal;
  }

  .player-name-stack {
    align-items: start;
    gap: 8px;
  }

}
