/* =========================================================
   Global Theme
========================================================= */
:root {
  --bg: #4D4D4D;
  --text: #EAEAEA;
  --surface: #5C5C5C;
  --surface-dark: #333333;
  --surface-darker: #222222;
  --accent: #42A5F5;       /* Blue */
  --accent-weak: #E3F2FD;  /* Light blue */
  --border: #666666;
  --white: #FFFFFF;
}

/* =========================================================
   Signed-in Workspace: Phone and Tablet Pass
========================================================= */
body:not(.welcome-page):not(.auth-page) {
  max-width: 100%;
  overflow-x: hidden;
}

body:not(.welcome-page):not(.auth-page) :where(
  .page-container,
  .topbar,
  .topbar__left,
  .topbar__nav,
  .subbar,
  .subbar__tabs,
  .chip-sections,
  .chip-card,
  .widgets-grid,
  .widget-card,
  .gameplan-shell,
  .game-day-shell,
  .manage-team-shell,
  .team-profile-shell,
  .message-board-shell,
  .support-shell,
  .upload-data-shell
) {
  min-width: 0;
  max-width: 100%;
}

body:not(.welcome-page):not(.auth-page) :where(
  input,
  select,
  textarea,
  button
) {
  touch-action: manipulation;
}

body:not(.welcome-page):not(.auth-page) :where(
  .mini-table-wrap,
  .hit-chart-wrap,
  .pass-depth-summary-wrap,
  .pc-table-wrap,
  .manage-team-table-wrap,
  .upload-data-table-wrap
) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
  body:not(.welcome-page):not(.auth-page) .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 8px 12px;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__left {
    display: contents;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__brand {
    grid-column: 1;
    grid-row: 1;
    width: 126px;
    height: 40px;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__brand-logo {
    height: 56px;
    transform: translateY(-50%) scale(1.16);
  }

  body:not(.welcome-page):not(.auth-page) .topbar__right {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-self: end;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__nav::-webkit-scrollbar,
  body:not(.welcome-page):not(.auth-page) .subbar__tabs::-webkit-scrollbar {
    display: none;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__link {
    flex: 1 0 auto;
    min-height: 42px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  body:not(.welcome-page):not(.auth-page) .subbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  body:not(.welcome-page):not(.auth-page) .subbar__team {
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px 4px 5px;
  }

  body:not(.welcome-page):not(.auth-page) .team-logo-wrap {
    width: 36px;
    height: 36px;
  }

  body:not(.welcome-page):not(.auth-page) .team-name {
    min-width: 0;
    overflow: hidden;
    font-size: 0.94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.welcome-page):not(.auth-page) .subbar__tabs {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.welcome-page):not(.auth-page) .theme-switch,
  body:not(.welcome-page):not(.auth-page) .subtab,
  body:not(.welcome-page):not(.auth-page) .subtab-dropdown {
    flex: 0 0 auto;
  }

  body:not(.welcome-page):not(.auth-page) .subtab,
  body:not(.welcome-page):not(.auth-page) .subtab-dropdown__toggle {
    min-height: 42px;
    padding: 9px 12px;
    white-space: nowrap;
  }

  body:not(.welcome-page):not(.auth-page) .theme-switch {
    min-height: 42px;
    margin-right: 0;
  }

  body:not(.welcome-page):not(.auth-page) .page-container {
    width: 100%;
    margin-top: 12px;
    padding: 0 12px max(20px, env(safe-area-inset-bottom));
  }

  body:not(.welcome-page):not(.auth-page) .widgets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.welcome-page):not(.auth-page) :where(
    .gameplan-control-grid,
    .gameplan-grid,
    .game-day-predictor-grid,
    .game-day-result-grid,
    .game-day-entry-grid,
    .upload-data-grid,
    .upload-data-example-grid,
    .team-profile-grid--main,
    .message-board-grid,
    .support-grid
  ) {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.welcome-page):not(.auth-page) .manage-team-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.welcome-page):not(.auth-page) .manage-team-side {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  body:not(.welcome-page):not(.auth-page) .topbar {
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  body:not(.welcome-page):not(.auth-page) .topbar__brand {
    width: 104px;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__brand-logo {
    height: 50px;
    transform: translateY(-50%) scale(1.08);
  }

  body:not(.welcome-page):not(.auth-page) .topbar__right {
    padding: 2px;
  }

  body:not(.welcome-page):not(.auth-page) .user-chip {
    width: 42px;
    max-width: 42px;
    min-height: 42px;
    padding: 4px;
    justify-content: center;
  }

  body:not(.welcome-page):not(.auth-page) .user-chip__name {
    display: none;
  }

  body:not(.welcome-page):not(.auth-page) .avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  body:not(.welcome-page):not(.auth-page) .user-menu__panel {
    right: 0;
    left: auto;
    min-width: 180px;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__link {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 0.86rem;
  }

  body:not(.welcome-page):not(.auth-page) .subbar {
    padding-right: max(10px, env(safe-area-inset-right));
    padding-left: max(10px, env(safe-area-inset-left));
  }

  body:not(.welcome-page):not(.auth-page) .theme-switch {
    padding: 4px 7px;
  }

  body:not(.welcome-page):not(.auth-page) .theme-switch__label {
    min-width: auto;
    font-size: 0.62rem;
  }

  body:not(.welcome-page):not(.auth-page) .page-container {
    margin-top: 10px;
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }

  body:not(.welcome-page):not(.auth-page) .report-overview-title,
  body:not(.welcome-page):not(.auth-page) .opponents-heading {
    margin: 0 4px 10px;
    font-size: 1.22rem;
    line-height: 1.2;
  }

  body:not(.welcome-page):not(.auth-page) #report-overview-section,
  body:not(.welcome-page):not(.auth-page) #qb-summary-section,
  body:not(.welcome-page):not(.auth-page) #rb-summary-section,
  body:not(.welcome-page):not(.auth-page) #wr-summary-section,
  body:not(.welcome-page):not(.auth-page) #qb-pass-summary-section {
    padding: 10px;
    clip-path: none;
    border-radius: 12px;
  }

  body:not(.welcome-page):not(.auth-page) .chip-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  body:not(.welcome-page):not(.auth-page) .chip-card {
    padding: 8px;
  }

  body:not(.welcome-page):not(.auth-page) .chip-list--scroll {
    max-height: 190px;
  }

  body:not(.welcome-page):not(.auth-page) #chips-opponent,
  body:not(.welcome-page):not(.auth-page) #chips-offense-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body:not(.welcome-page):not(.auth-page) .chip {
    min-width: 0;
    min-height: 40px;
    padding: 7px 9px;
    line-height: 1.15;
  }

  body:not(.welcome-page):not(.auth-page) .playtype-toggle {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  body:not(.welcome-page):not(.auth-page) .playtype-pill {
    flex: 1 0 auto;
    min-height: 40px;
  }

  body:not(.welcome-page):not(.auth-page) .widgets-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body:not(.welcome-page):not(.auth-page) .widget-card {
    padding: 12px;
    clip-path: none;
    border-radius: 12px;
  }

  body:not(.welcome-page):not(.auth-page) .widget-value {
    font-size: 1.35rem;
  }

  body:not(.welcome-page):not(.auth-page) :where(
    input,
    select,
    textarea,
    .filter-control
  ) {
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  body:not(.welcome-page):not(.auth-page) :where(
    .btn-reset-filters,
    .btn-reset-targets,
    .manage-team-secondary-btn,
    .manage-team-save-btn,
    .game-day-action-btn,
    .gameplan-sheet-edit-toggle,
    .upload-data-primary,
    .upload-data-secondary-action
  ) {
    min-height: 44px;
  }

  body:not(.welcome-page):not(.auth-page) :where(
    .manage-team-card,
    .manage-team-hero,
    .team-profile-card,
    .message-board-card,
    .support-card,
    .upload-data-card
  ) {
    padding: 14px;
    border-radius: 14px;
  }

  body:not(.welcome-page):not(.auth-page) :where(
    .manage-team-card__head,
    .upload-data-card__head,
    .gameplan-plan-head,
    .game-day-card__head
  ) {
    flex-wrap: wrap;
  }

  body:not(.welcome-page):not(.auth-page) .manage-team-summary-grid,
  body:not(.welcome-page):not(.auth-page) .gameplan-source-grid,
  body:not(.welcome-page):not(.auth-page) .gameplan-phase-grid,
  body:not(.welcome-page):not(.auth-page) .gameplan-plan-sections,
  body:not(.welcome-page):not(.auth-page) .message-board-seen__lists,
  body:not(.welcome-page):not(.auth-page) .upload-data-mode-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.welcome-page):not(.auth-page) .manage-team-toolbar,
  body:not(.welcome-page):not(.auth-page) .upload-data-map-toolbar {
    align-items: stretch;
  }

  body:not(.welcome-page):not(.auth-page) .manage-team-filter-pills,
  body:not(.welcome-page):not(.auth-page) .game-day-pill-row,
  body:not(.welcome-page):not(.auth-page) .game-day-toolbar-pills {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.welcome-page):not(.auth-page) :where(
    .manage-team-filter-pill,
    .situational-pill,
    .game-day-side-pill
  ) {
    flex: 0 0 auto;
    min-height: 40px;
  }

  body:not(.welcome-page):not(.auth-page) .manage-team-table,
  body:not(.welcome-page):not(.auth-page) .upload-data-table {
    min-width: 680px;
  }

  body:not(.welcome-page):not(.auth-page) .mini-table-wrap::after,
  body:not(.welcome-page):not(.auth-page) .manage-team-table-wrap::after,
  body:not(.welcome-page):not(.auth-page) .upload-data-table-wrap::after {
    content: "Swipe table sideways";
    display: block;
    padding: 7px 2px 1px;
    color: var(--pro-text-soft);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: right;
  }

  body:not(.welcome-page):not(.auth-page) .subtab-dropdown__menu {
    max-width: calc(100vw - 20px);
  }
}

/* Gameplan */
.gameplan-shell {
  display: grid;
  gap: 22px;
}

.gameplan-shell.gameplan-widget {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(159, 203, 241, 0.14);
  background:
    radial-gradient(circle at top right, rgba(66, 165, 245, 0.1), transparent 30%),
    radial-gradient(circle at bottom left, rgba(101, 187, 149, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(11, 18, 28, 0.88) 0%, rgba(8, 14, 22, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(4, 9, 15, 0.28);
}

.gameplan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(159, 203, 241, 0.16);
  background:
    linear-gradient(135deg, rgba(17, 31, 49, 0.98) 0%, rgba(9, 17, 27, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 46px rgba(5, 10, 17, 0.26);
  position: relative;
  overflow: hidden;
}

.gameplan-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(96, 183, 255, 0.9) 0%, rgba(59, 138, 214, 0.3) 100%);
}

.gameplan-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(126, 196, 255, 0.22);
  background: rgba(66, 165, 245, 0.08);
  color: #9bd5ff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gameplan-hero__title {
  margin: 14px 0 10px;
  color: #f3f8fc;
  font-size: clamp(1.35rem, 1.7vw, 1.8rem);
  line-height: 1.14;
  max-width: 1120px;
}

.gameplan-hero__text {
  margin: 0;
  max-width: 1120px;
  color: #c7d7e6;
  line-height: 1.65;
  font-size: 0.96rem;
}

.gameplan-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.05fr) minmax(260px, 0.84fr);
  grid-template-areas:
    "opponents opponents season"
    "notes notes summary";
  gap: 16px;
  align-items: start;
}

.gameplan-control-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(13, 22, 34, 0.82) 0%, rgba(10, 17, 27, 0.92) 100%);
  border: 1px solid rgba(159, 203, 241, 0.15);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 32px rgba(6, 11, 18, 0.22);
  position: relative;
  overflow: hidden;
}

.gameplan-control-card::before,
.gameplan-plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 192, 255, 0.18), rgba(110, 192, 255, 0));
}

.gameplan-control-card--opponents { grid-area: opponents; }
.gameplan-control-card--season { grid-area: season; }
.gameplan-control-card--notes { grid-area: notes; }
.gameplan-control-card--summary { grid-area: summary; }

.gameplan-control-card--season,
.gameplan-control-card--summary {
  align-self: stretch;
  height: 100%;
}

.gameplan-card-head {
  margin-bottom: 12px;
}

.gameplan-card-sub {
  color: #9bb1c6;
  font-size: 0.84rem;
  line-height: 1.52;
}

.gameday-opponent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gameplan-control-card--opponents .gameday-opponent-list,
.gameplan-control-card--season .gameday-opponent-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.gameplan-control-card--opponents .gameday-opponent-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.gameplan-control-card--season .gameday-opponent-list {
  align-content: start;
}

.gameday-opponent-chip {
  min-height: 38px;
  border: 1px solid rgba(159, 203, 241, 0.15);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(18, 30, 45, 0.86) 0%, rgba(14, 24, 36, 0.92) 100%);
  color: #e7f1fa;
  box-shadow: 0 8px 18px rgba(6, 11, 18, 0.12);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.gameday-opponent-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 196, 255, 0.34);
  box-shadow: 0 10px 20px rgba(8, 16, 24, 0.18);
}

.gameplan-control-card--opponents .gameday-opponent-chip,
.gameplan-control-card--season .gameday-year-chip {
  width: 100%;
  justify-content: center;
}

.gameplan-control-card--summary {
  padding-bottom: 16px;
}

.gameplan-control-card--notes {
  min-height: 100%;
}

.gameday-opponent-chip.chip--selected {
  background: linear-gradient(180deg, rgba(102, 183, 255, 0.95), rgba(63, 149, 231, 0.95));
  color: #0b1420;
  border-color: rgba(159, 203, 241, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 22px rgba(27, 98, 156, 0.26);
}

.gameday-year-chip.chip--selected {
  background: linear-gradient(180deg, rgba(143, 221, 180, 0.96), rgba(92, 182, 139, 0.96));
  color: #0b1a17;
  border-color: rgba(143, 221, 180, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 20px rgba(31, 107, 74, 0.22);
}

.gameday-notes {
  width: 100%;
  min-height: 174px;
  resize: vertical;
  border-radius: 15px;
  border: 1px solid rgba(191, 214, 234, 0.15);
  background: linear-gradient(180deg, rgba(9, 17, 26, 0.84) 0%, rgba(8, 15, 24, 0.74) 100%);
  color: #eef5fb;
  padding: 13px 15px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  line-height: 1.55;
}

.gameplan-control-actions {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.gameday-refresh-btn {
  flex: 0 1 calc(100% - 120px);
  height: 42px;
  min-height: 42px;
  max-width: calc(100% - 120px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.gameday-reset-btn {
  flex: 0 0 92px;
  height: 42px;
  min-height: 42px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.gameplan-control-actions > #gameday-refresh-plan,
.gameplan-control-actions > #gameday-reset-plan {
  margin: 0 !important;
  box-sizing: border-box;
  position: relative;
  top: 0;
}

.gameplan-control-actions > #gameday-refresh-plan {
  height: 42px !important;
  min-height: 42px !important;
}

.gameplan-control-actions > #gameday-reset-plan {
  height: 42px !important;
  min-height: 42px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

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

.gameplan-control-card--season .gameday-opponent-list,
.gameplan-control-card--summary .gameplan-source-grid {
  align-content: start;
}

.gameplan-source-stat {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.gameplan-source-stat__label {
  color: #97adc2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.gameplan-source-stat__value {
  color: #f5f9fc;
  font-size: 1.16rem;
  font-weight: 900;
}

.gameplan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.gameplan-plan-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(16, 27, 40, 0.9) 0%, rgba(10, 18, 28, 0.95) 100%);
  border: 1px solid rgba(159, 203, 241, 0.15);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 38px rgba(6, 11, 18, 0.24);
  display: grid;
  gap: 16px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.gameplan-plan-card--offense {
  background:
    linear-gradient(180deg, rgba(21, 37, 55, 0.94) 0%, rgba(11, 20, 31, 0.97) 100%);
}

.gameplan-plan-card--defense {
  background:
    linear-gradient(180deg, rgba(22, 33, 48, 0.94) 0%, rgba(10, 18, 28, 0.97) 100%);
}

.gameplan-plan-card--offense::after,
.gameplan-plan-card--defense::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  opacity: 0.95;
}

.gameplan-plan-card--offense::after {
  background: linear-gradient(180deg, rgba(99, 184, 255, 0.96) 0%, rgba(65, 144, 221, 0.2) 100%);
}

.gameplan-plan-card--defense::after {
  background: linear-gradient(180deg, rgba(117, 208, 176, 0.94) 0%, rgba(72, 156, 132, 0.2) 100%);
}

.gameplan-plan-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(191, 214, 234, 0.08);
}

.gameplan-plan-kicker {
  color: #93cfff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gameplan-plan-head .section-title {
  margin: 0;
  color: #f4f8fb;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.gameplan-sheet-edit-toggle {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(159, 203, 241, 0.22);
  border-radius: 999px;
  background: rgba(66, 165, 245, 0.12);
  color: #b7ddff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 8px 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gameplan-sheet-edit-toggle:hover,
.gameplan-sheet-edit-toggle:focus-visible {
  border-color: rgba(126, 195, 255, 0.5);
  background: rgba(66, 165, 245, 0.24);
  outline: none;
}

.gameplan-plan-card--editing .gameplan-sheet-edit-toggle {
  border-color: rgba(121, 216, 178, 0.44);
  background: rgba(88, 205, 158, 0.18);
  color: #bff7dd;
}

.gameplan-top-priority {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(191, 214, 234, 0.12);
  background: linear-gradient(180deg, rgba(66, 165, 245, 0.08), rgba(255, 255, 255, 0.03));
}

.gameplan-top-priority__label {
  color: #9fd4ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gameplan-top-priority__text {
  color: #e4eef7;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.gameday-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.gameday-metric {
  padding: 12px 14px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(191, 214, 234, 0.075) 0%, rgba(191, 214, 234, 0.04) 100%);
  border: 1px solid rgba(191, 214, 234, 0.11);
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gameday-metric__label {
  font-size: 10px;
  color: #aec3d6;
  margin-bottom: 6px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gameday-metric__value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f4f8fb;
  line-height: 1.1;
}

.gameplan-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gameplan-phase-card {
  padding: 16px 17px 17px;
  border-radius: 18px;
  border: 1px solid rgba(191, 214, 234, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.028) 100%);
  display: grid;
  align-content: start;
  gap: 6px;
}

.gameplan-phase-card .widget-title {
  margin-bottom: 2px;
  color: #7ec3ff;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gameplan-phase-card--passing {
  box-shadow:
    inset 0 1px 0 rgba(111, 190, 255, 0.08),
    inset 0 0 0 1px rgba(92, 176, 244, 0.04);
}

.gameplan-phase-card--running {
  box-shadow:
    inset 0 1px 0 rgba(136, 227, 184, 0.08),
    inset 0 0 0 1px rgba(91, 180, 137, 0.04);
}

.gameplan-plan-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "primary primary"
    "strengths cautions";
  gap: 14px;
}

.gameplan-plan-section {
  padding: 16px 17px 17px;
  border-radius: 18px;
  border: 1px solid rgba(191, 214, 234, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.042) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.gameplan-plan-section .widget-title {
  color: #9fd4ff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gameplan-plan-section--primary {
  grid-area: primary;
}

.gameplan-plan-section--strengths {
  grid-area: strengths;
}

.gameplan-plan-section--cautions {
  grid-area: cautions;
}

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

.gameday-list--compact {
  gap: 9px;
}

.gameday-list--compact li {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
}

.gameday-list--compact .gameplan-list-index {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
}

.gameday-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
}

.gameday-list .gameplan-list-empty {
  grid-template-columns: 28px minmax(0, 1fr);
}

.gameday-list--compact .gameplan-list-empty {
  grid-template-columns: 22px minmax(0, 1fr);
}

.gameplan-list-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(66, 165, 245, 0.22) 0%, rgba(45, 123, 190, 0.18) 100%);
  color: #a4d8ff;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.gameplan-list-text {
  color: #d8e3ec;
  line-height: 1.58;
  font-size: 0.95rem;
  min-width: 0;
}

.gameplan-list-text--editing {
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 10px;
  outline: 2px solid rgba(93, 178, 247, 0.55);
  background: rgba(8, 16, 25, 0.44);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
}

.gameplan-list-actions {
  display: none;
  align-items: center;
  gap: 6px;
  opacity: 0.72;
  transform: translateY(-1px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.gameplan-plan-card--editing .gameplan-list-actions {
  display: inline-flex;
}

.gameplan-list-item:hover .gameplan-list-actions,
.gameplan-list-item:focus-within .gameplan-list-actions {
  opacity: 1;
  transform: translateY(0);
}

.gameplan-list-action {
  appearance: none;
  border: 1px solid rgba(159, 203, 241, 0.2);
  border-radius: 999px;
  background: rgba(66, 165, 245, 0.12);
  color: #b7ddff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gameplan-list-action:hover,
.gameplan-list-action:focus-visible {
  border-color: rgba(126, 195, 255, 0.48);
  background: rgba(66, 165, 245, 0.24);
  outline: none;
}

.gameplan-list-action--danger {
  border-color: rgba(255, 120, 120, 0.22);
  background: rgba(220, 72, 72, 0.1);
  color: #ffc1c1;
}

.gameplan-list-action--danger:hover,
.gameplan-list-action--danger:focus-visible {
  border-color: rgba(255, 140, 140, 0.52);
  background: rgba(220, 72, 72, 0.2);
}

.gameplan-list-empty .gameplan-list-index {
  background: rgba(191, 214, 234, 0.08);
  color: rgba(214, 225, 235, 0.58);
}

.game-day-shell {
  display: grid;
  gap: 22px;
}

.game-day-shell.game-day-widget {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(159, 203, 241, 0.14);
  background:
    radial-gradient(circle at top right, rgba(77, 176, 255, 0.09), transparent 30%),
    radial-gradient(circle at bottom left, rgba(99, 188, 146, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(11, 18, 28, 0.9) 0%, rgba(8, 14, 22, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(4, 9, 15, 0.28);
}

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

.game-day-card {
  padding: 21px 22px 22px;
  background:
    linear-gradient(180deg, rgba(16, 27, 40, 0.92) 0%, rgba(10, 18, 28, 0.97) 100%);
  border: 1px solid rgba(159, 203, 241, 0.15);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 38px rgba(6, 11, 18, 0.24);
  position: relative;
  overflow: hidden;
}

.game-day-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 192, 255, 0.18), rgba(110, 192, 255, 0));
}

.game-day-card__head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(191, 214, 234, 0.08);
}

.game-day-card__head .section-title {
  margin: 0;
  color: #f4f8fb;
  font-size: 1.34rem;
  letter-spacing: 0.01em;
}

.gameday-intro {
  margin: 2px 0 0;
  max-width: 860px;
  color: #c0d3e4;
  line-height: 1.6;
  font-size: 0.95rem;
}

.game-day-call-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

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

.game-day-projected-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 166px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: linear-gradient(180deg, rgba(14, 24, 36, 0.9) 0%, rgba(10, 18, 28, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.game-day-projected-card--empty {
  background: linear-gradient(180deg, rgba(15, 24, 36, 0.54) 0%, rgba(10, 17, 26, 0.72) 100%);
}

.game-day-projected-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(83, 181, 255, 0.14);
  border: 1px solid rgba(83, 181, 255, 0.24);
  color: #8fd0ff;
  font-size: 0.8rem;
  font-weight: 800;
}

.game-day-projected-title {
  color: #f4f8fb;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.game-day-projected-meta {
  color: #d2e1ef;
  font-size: 0.8rem;
  line-height: 1.45;
}

.game-day-projected-note {
  margin-top: auto;
  color: #8fc7ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-day-projected-confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.game-day-projected-confidence__label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 194, 255, 0.22);
  background: rgba(44, 101, 152, 0.14);
  color: #9fd4ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-day-projected-confidence__value {
  font-size: 1rem;
  font-weight: 800;
  color: #ffd38a;
}

.game-day-field {
  display: grid;
  gap: 8px;
}

.game-day-field__label,
.game-day-current__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9bcfff;
}

.game-day-field__input {
  min-height: 72px;
}

.game-day-live-notes {
  min-height: 280px;
}

.game-day-checklist {
  display: grid;
  gap: 8px;
}

.game-day-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6e1eb;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(191, 214, 234, 0.03);
  border: 1px solid rgba(191, 214, 234, 0.07);
}

.game-day-check input {
  width: 16px;
  height: 16px;
}

.game-day-current {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(191, 214, 234, 0.075) 0%, rgba(191, 214, 234, 0.04) 100%);
  border: 1px solid rgba(191, 214, 234, 0.11);
}

.game-day-current__value {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
  color: #f4f8fb;
}

.game-day-predictor-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) minmax(320px, 1.45fr) minmax(180px, 0.9fr);
  gap: 12px;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.game-day-predictor-grid > .game-day-field {
  gap: 6px;
  padding: 10px 12px 11px;
  min-height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: linear-gradient(180deg, rgba(16, 27, 40, 0.78) 0%, rgba(11, 19, 29, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 20px rgba(5, 10, 17, 0.14);
}

.game-day-predictor-grid > .game-day-field--chips {
  align-content: start;
}

.game-day-side-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(159, 203, 241, 0.17);
  background: rgba(12, 21, 33, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.game-day-side-pill {
  min-width: 0;
}

.game-day-predictor-card .game-day-card__head {
  margin-bottom: 14px;
}

.game-day-predictor-card .widget-sub {
  max-width: 760px;
  line-height: 1.5;
  color: #c7d9e9;
}

.game-day-predictor-card .game-day-field__label {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.game-day-predictor-card .filter-control {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.18);
  background: linear-gradient(180deg, rgba(17, 29, 43, 0.96) 0%, rgba(12, 21, 32, 0.98) 100%);
  color: #eef5fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}

.game-day-card .filter-control::placeholder,
.game-day-card textarea::placeholder {
  color: rgba(202, 216, 229, 0.46);
}

.game-day-predictor-card .filter-control:focus {
  border-color: rgba(102, 180, 242, 0.75);
  box-shadow:
    0 0 0 3px rgba(61, 145, 214, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.game-day-predictor-card .filter-control[multiple] {
  min-height: 74px;
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 1.3;
}

.game-day-predictor-card .filter-control[multiple] option {
  padding: 3px 6px;
  border-radius: 6px;
  background: #172434;
  color: #eef5fb;
}

.game-day-predictor-card .filter-control[multiple] option:checked {
  background: linear-gradient(180deg, #5fb7f4 0%, #2f86cf 100%);
  color: #fff;
}

.game-day-predictor-card .filter-control option {
  background: #172434;
  color: #eef5fb;
}

.game-day-predictor-card .game-day-field--chips .filter-control[multiple] {
  display: none;
}

.game-day-toolbar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  align-content: flex-start;
  min-height: 46px;
  max-height: 96px;
  overflow: auto;
  padding: 7px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: rgba(9, 17, 26, 0.56);
}

.game-day-toolbar-pill {
  min-width: 0;
  padding: 7px 11px;
  font-size: 0.76rem;
  line-height: 1;
  border-radius: 999px;
}

.game-day-toolbar-pill.active {
  border-color: rgba(97, 184, 246, 0.66);
  box-shadow: 0 5px 12px rgba(38, 117, 183, 0.24);
}

.game-day-predictor-card .game-day-side-pill {
  min-height: 30px;
  font-weight: 700;
  color: #c2d8eb;
}

.game-day-predictor-card .game-day-side-pill.active {
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 16px rgba(30, 101, 162, 0.28);
}

.game-day-filter-pills {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 0.86fr);
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}

.game-day-filter-pill-group {
  display: grid;
  gap: 8px;
  padding: 10px 12px 11px;
  border-radius: 14px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: linear-gradient(180deg, rgba(15, 24, 36, 0.6) 0%, rgba(10, 17, 26, 0.76) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 20px rgba(5, 10, 17, 0.12);
}

.game-day-filter-pill-group--wide {
  grid-column: span 2;
}

.game-day-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  align-content: flex-start;
}

#game-day-predictor-down,
#game-day-predictor-dist,
#game-day-predictor-hash {
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: space-evenly;
}

#game-day-predictor-down .game-day-filter-pill,
#game-day-predictor-dist .game-day-filter-pill,
#game-day-predictor-hash .game-day-filter-pill {
  padding-inline: 10px;
  font-size: 0.78rem;
}

.game-day-filter-pill-group--wide .game-day-pill-row {
  gap: 10px 12px;
}

#game-day-predictor-off-form {
  max-height: 118px; /* ~3 rows of pills */
  overflow-y: auto;
  padding-right: 4px;
}

.game-day-filter-pill {
  min-width: 0;
  padding: 8px 14px;
  font-size: 0.82rem;
  line-height: 1.1;
}

.game-day-filter-pill.is-empty {
  cursor: default;
  opacity: 0.78;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(205, 223, 239, 0.72);
  font-weight: 700;
  justify-content: flex-start;
  box-shadow: none;
}

#game-day-predictor-personnel .game-day-filter-pill.is-empty {
  width: 100%;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  border: 1px dashed rgba(159, 203, 241, 0.16);
  border-radius: 12px;
  background: rgba(191, 214, 234, 0.025);
  color: rgba(218, 231, 243, 0.74);
}

.game-day-predictor-card .game-day-actions {
  margin-top: 8px;
  justify-content: flex-end;
}

.game-day-predictor-card #game-day-predictor-reset {
  width: auto;
  min-width: 148px;
  margin-top: 0;
  padding: 8px 16px;
  border-color: rgba(159, 203, 241, 0.2);
  background: linear-gradient(180deg, rgba(28, 41, 57, 0.96) 0%, rgba(17, 28, 40, 0.98) 100%);
  color: #e7f2fb;
}

.game-day-predictor-card .game-day-current {
  margin-top: 12px;
  margin-bottom: 0;
  padding: 12px 14px;
}

.game-day-live-predictor-zone {
  position: relative;
  margin-top: 18px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(83, 181, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(27, 52, 76, 0.38), rgba(8, 16, 26, 0.36));
  box-shadow:
    inset 0 4px 0 rgba(83, 181, 255, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(2, 8, 15, 0.18);
}

.game-day-live-predictor-zone::before {
  content: "";
  position: absolute;
  inset: -10px 16px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(83, 181, 255, 0.62), transparent);
}

.game-day-predictor-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  margin-top: 0;
  margin-bottom: 12px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(204, 255, 0, 0.62);
  background:
    linear-gradient(90deg, rgba(143, 190, 0, 0.28), rgba(18, 31, 18, 0.86));
  box-shadow:
    inset 5px 0 0 rgba(204, 255, 0, 0.96),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 22px rgba(204, 255, 0, 0.08);
}

.game-day-predictor-section-label__title {
  color: #1f3d02;
  font-size: 1.12rem;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

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

.game-day-result-section {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(159, 203, 241, 0.14);
  background: linear-gradient(180deg, rgba(15, 24, 36, 0.58) 0%, rgba(10, 17, 26, 0.7) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.game-day-result-title {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #87cfff;
  margin-bottom: 8px;
}

.game-day-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(118px, auto);
  gap: 7px;
  align-items: stretch;
}

.game-day-result-group {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.14);
  background: rgba(191, 214, 234, 0.045);
}

.game-day-result-group .game-day-pill-row {
  min-height: 30px;
  gap: 6px;
}

.game-day-result-log-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 286px;
  padding: 0;
  border-radius: 14px;
  border: 0;
  background: transparent;
  overflow: visible;
  position: relative;
}

.game-day-result-log-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 54px;
  margin-top: 0;
  padding: 0 14px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, #ffd46e 0%, #e0a12e 100%);
  color: #18212b;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 24px rgba(158, 103, 28, 0.3);
}

.game-day-drive-state-btn {
  flex: 0 0 128px;
  min-width: 0;
  min-height: 42px;
  margin-top: 0;
  padding: 0 12px;
  border-radius: 12px;
  border-color: rgba(83, 181, 255, 0.28);
  background: rgba(83, 181, 255, 0.08);
  color: #a9d8ff;
  box-shadow: none;
}

.game-day-drive-state-btn--ending {
  border-color: rgba(255, 164, 164, 0.36);
  background: rgba(91, 39, 39, 0.3);
  color: #ffd6d6;
}

.game-day-drive-control-stack {
  position: relative;
  flex: 0 0 128px;
  display: grid;
  gap: 7px;
}

.game-day-drive-control-stack .game-day-drive-state-btn,
.game-day-drive-control-stack .game-day-yardline-btn {
  width: 100%;
  flex: none;
}

.game-day-yardline-btn {
  min-height: 34px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 10px;
  border-color: rgba(159, 203, 241, 0.2);
  background: rgba(191, 214, 234, 0.06);
  color: #c7d9e9;
  box-shadow: none;
  font-size: 0.76rem;
}

.game-day-yardline-pad {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 38px);
  gap: 6px;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.18);
  background: rgba(12, 21, 33, 0.98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.game-day-yardline-pad[hidden] {
  display: none;
}

.game-day-yardline-pad button {
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(159, 203, 241, 0.14);
  background: rgba(191, 214, 234, 0.08);
  color: #e7f2fb;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.game-day-result-log-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(159, 203, 241, 0.14);
  background: linear-gradient(180deg, rgba(15, 24, 36, 0.54) 0%, rgba(10, 17, 26, 0.68) 100%);
}

.game-day-result-log-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.game-day-result-log-toggle {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.game-day-result-log-toggle-icon {
  color: #eef7ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 191, 246, 0.24);
  background: linear-gradient(180deg, rgba(40, 67, 93, 0.9) 0%, rgba(25, 43, 61, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-day-result-log-body {
  display: block;
}

.game-day-result-log-head .game-day-result-export-btn {
  width: auto;
  min-width: 112px;
  margin-top: 0;
  padding: 8px 13px;
  border-color: rgba(112, 214, 164, 0.34);
  background: linear-gradient(180deg, rgba(28, 86, 66, 0.96) 0%, rgba(20, 61, 48, 0.98) 100%);
  color: #ecfff5;
}

.game-day-result-log-head .game-day-result-clear-btn {
  width: auto;
  min-width: 112px;
  margin-top: 0;
  padding: 8px 13px;
  border-color: rgba(255, 164, 164, 0.34);
  background: linear-gradient(180deg, rgba(91, 39, 39, 0.92) 0%, rgba(62, 26, 26, 0.94) 100%);
  color: #ffecec;
}

.game-day-result-log-list {
  display: grid;
  gap: 9px;
}

.game-day-result-log-row {
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: rgba(191, 214, 234, 0.04);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.game-day-result-log-row:hover {
  border-color: rgba(114, 185, 245, 0.28);
  background: rgba(191, 214, 234, 0.08);
}

.game-day-result-log-row__head {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.game-day-result-log-row__index {
  color: #7dc4f8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-day-result-log-row__stamp {
  color: #9eb5ca;
  font-size: 0.7rem;
}

.game-day-result-log-row__actions {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.game-day-result-log-row:hover .game-day-result-log-row__actions {
  opacity: 1;
  pointer-events: auto;
}

.game-day-result-log-action {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(159, 203, 241, 0.2);
  background: rgba(33, 45, 61, 0.85);
  color: #dce8f5;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.game-day-result-log-action:hover {
  border-color: rgba(114, 185, 245, 0.45);
  background: rgba(53, 76, 101, 0.9);
}

.game-day-result-log-row__main {
  margin-top: 6px;
  color: #f4f8fb;
  font-size: 0.94rem;
  font-weight: 800;
}

.game-day-result-log-row__meta {
  margin-top: 4px;
  color: #bfd1e2;
  font-size: 0.75rem;
  line-height: 1.35;
}

.game-day-log-edit {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(159, 203, 241, 0.14);
  background: rgba(9, 15, 24, 0.45);
  display: grid;
  gap: 8px;
}

.game-day-log-edit__row {
  display: grid;
  gap: 6px;
}

.game-day-log-edit__label {
  font-size: 0.72rem;
  color: #9fc5e6;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-day-log-edit__actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.game-day-log-edit-btn {
  min-width: 88px;
  width: auto;
}

.game-day-predictor-source {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: #e5eef7;
}

#game-day-predictor-output.game-day-predictor-placeholder {
  margin-top: 14px;
  border: 1px dashed rgba(159, 203, 241, 0.18);
  background: rgba(191, 214, 234, 0.035);
  border-radius: 16px;
  padding: 16px 18px;
  color: #b9cada;
  min-height: 62px;
  display: flex;
  align-items: center;
  font-size: 0.92rem;
}

#game-day-predictor-output.game-day-predictor-ready {
  margin-top: 14px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  display: block;
}

.game-day-predictor-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr));
  gap: 10px;
  width: 100%;
}

.game-day-predictor-block {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: linear-gradient(180deg, rgba(13, 23, 34, 0.78) 0%, rgba(9, 17, 27, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.game-day-predictor-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(159, 203, 241, 0.12);
}

.game-day-predictor-sample {
  font-size: 0.74rem;
  font-weight: 700;
  color: #abcde8;
}

.game-day-ratio-bar {
  display: flex;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-day-ratio-bar__run,
.game-day-ratio-bar__pass {
  height: 100%;
}

.game-day-ratio-bar__run {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.game-day-ratio-bar__pass {
  background: linear-gradient(90deg, #3ecf8e 0%, #2fbf7d 100%);
}

.game-day-ratio-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.game-day-ratio-stat {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(191, 214, 234, 0.045);
  border: 1px solid rgba(191, 214, 234, 0.1);
}

.game-day-ratio-stat__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9fc5e6;
}

.game-day-ratio-stat__value {
  font-size: 0.94rem;
  font-weight: 800;
  color: #f4f8fb;
}

.game-day-direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.game-day-direction-card {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: rgba(191, 214, 234, 0.035);
}

.game-day-direction-card.is-top {
  border-color: rgba(83, 181, 255, 0.36);
  background: rgba(52, 120, 181, 0.19);
  box-shadow: inset 0 0 0 1px rgba(130, 204, 255, 0.12);
}

.game-day-direction-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9fc5e6;
}

.game-day-direction-card__value {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f4f8fb;
}

.game-day-direction-card__meta,
.game-day-predictor-empty {
  font-size: 0.84rem;
  color: #c1d3e4;
}

.game-day-predictor-detail-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.13);
  background: rgba(9, 17, 27, 0.5);
}

.game-day-predictor-detail-card--inline {
  margin-top: 8px;
}

.game-day-projected-summary {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px 14px 14px 18px;
  border-color: rgba(83, 181, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(38, 95, 145, 0.24), rgba(8, 16, 26, 0.72));
  box-shadow:
    inset 5px 0 0 rgba(83, 181, 255, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(2, 8, 15, 0.18);
}

.game-day-projected-summary + .game-day-predictor-block__head {
  margin-top: 10px;
}

.game-day-projected-summary__title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #f4f8fb;
}

.game-day-projected-summary__meta {
  font-size: 0.8rem;
  color: #c6d9ea;
  line-height: 1.45;
}

.game-day-projected-summary__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.game-day-projected-summary__certainty {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 194, 255, 0.36);
  background: rgba(67, 137, 201, 0.22);
  color: #c7e8ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-day-projected-summary__pct {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffd38a;
  text-shadow: 0 0 12px rgba(255, 211, 138, 0.24);
}

.game-day-predictor-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.game-day-predictor-chart-title {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7fc3ff;
}

.game-day-predictor-chart-sub {
  margin-top: 3px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: #bfd1e2;
}

.game-day-pass-hit-chart {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  position: relative;
}

.game-day-pass-hit-chart-hint {
  font-size: 0.73rem;
  color: #a9c5db;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-day-pass-heat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.game-day-pass-heat-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.game-day-pass-heat-legend__label {
  font-size: 0.7rem;
  color: #b8cde0;
  font-weight: 700;
}

.game-day-pass-heat-legend__swatch {
  width: 14px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(191, 214, 234, 0.2);
  display: inline-block;
}

.game-day-pass-heat-legend__swatch.is-heat-0 { background: rgba(25, 37, 49, 0.9); }
.game-day-pass-heat-legend__swatch.is-heat-1 { background: rgba(25, 74, 108, 0.8); }
.game-day-pass-heat-legend__swatch.is-heat-2 { background: rgba(31, 98, 142, 0.85); }
.game-day-pass-heat-legend__swatch.is-heat-3 { background: rgba(43, 126, 178, 0.9); }
.game-day-pass-heat-legend__swatch.is-heat-4 { background: rgba(63, 154, 208, 0.95); }

.game-day-pass-heat {
  display: grid;
  grid-template-columns: 60px repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(143, 193, 242, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(143, 193, 242, 0.12);
  min-width: 0;
}

.game-day-pass-heat__corner {
  background: rgba(23, 35, 50, 0.72);
}

.game-day-pass-heat__zone-head {
  padding: 8px 6px 7px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d4e6f8;
  background: rgba(38, 62, 86, 0.78);
}

.game-day-pass-heat__band-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 5px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #dcecff;
  background: rgba(26, 40, 56, 0.84);
}

.game-day-pass-heat__cell {
  padding: 10px 8px 11px;
  min-height: 66px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  background: rgba(16, 26, 37, 0.9);
}

.game-day-pass-heat__cell.has-routes {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.game-day-pass-heat__cell.has-routes:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(164, 220, 255, 0.35);
}

.game-day-pass-heat__main {
  font-size: 1.08rem;
  font-weight: 950;
  color: #f4f9ff;
  line-height: 1.05;
}

.game-day-pass-heat__sub {
  font-size: 0.72rem;
  font-weight: 800;
  color: #d1e5f7;
  line-height: 1.18;
}

.game-day-pass-heat__meta {
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.22;
  text-align: center;
  color: #b8cde0;
}

.game-day-pass-heat__cell.is-heat-0 {
  background: rgba(25, 37, 49, 0.9);
}

.game-day-pass-heat__cell.is-heat-1 {
  background: linear-gradient(180deg, rgba(25, 74, 108, 0.72) 0%, rgba(21, 57, 86, 0.82) 100%);
}

.game-day-pass-heat__cell.is-heat-2 {
  background: linear-gradient(180deg, rgba(31, 98, 142, 0.76) 0%, rgba(24, 75, 111, 0.86) 100%);
}

.game-day-pass-heat__cell.is-heat-3 {
  background: linear-gradient(180deg, rgba(43, 126, 178, 0.8) 0%, rgba(31, 97, 142, 0.9) 100%);
}

.game-day-pass-heat__cell.is-heat-4 {
  background: linear-gradient(180deg, rgba(63, 154, 208, 0.86) 0%, rgba(39, 121, 177, 0.94) 100%);
  box-shadow: inset 0 0 0 1px rgba(156, 215, 255, 0.4);
}

.game-day-pass-heat-popup {
  position: absolute;
  z-index: 20;
  width: 260px;
  max-width: calc(100% - 16px);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(129, 196, 246, 0.34);
  background: linear-gradient(180deg, rgba(9, 19, 31, 0.96) 0%, rgba(7, 14, 23, 0.96) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
}

.game-day-pass-heat-popup__title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ad3ff;
}

.game-day-pass-heat-popup__sub {
  margin-top: 2px;
  font-size: 0.72rem;
  color: #bfd7ea;
}

.game-day-pass-heat-popup__list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.game-day-pass-heat-popup__row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 8px;
  border: 1px solid rgba(129, 196, 246, 0.2);
  background: rgba(191, 214, 234, 0.04);
}

.game-day-pass-heat-popup__rank {
  color: #8fd0ff;
  font-size: 0.72rem;
  font-weight: 800;
}

.game-day-pass-heat-popup__route {
  color: #f3f8fe;
  font-size: 0.77rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-day-pass-heat-popup__meta {
  color: #bed8ea;
  font-size: 0.71rem;
  font-weight: 700;
}

.game-day-pass-heat-popup__empty {
  font-size: 0.74rem;
  color: #bfd7ea;
}

.game-day-pass-hit-chart .hit-chart {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.game-day-pass-hit-chart .hit-chart th,
.game-day-pass-hit-chart .hit-chart td {
  padding: 6px 7px;
  font-size: 0.76rem;
  line-height: 1.15;
}

.game-day-run-gap-chart {
  margin-top: 0;
}

.game-day-run-gap-chart.offensive-line-chart,
.game-day-run-gap-chart .offensive-line-plot {
  width: 100%;
}

.game-day-run-gap-chart.offensive-line-chart {
  overflow-x: visible;
}

.game-day-run-gap-chart .offensive-line-bars,
.game-day-run-gap-chart .offensive-line-row,
.game-day-run-gap-chart .offensive-line-gap-row {
  min-width: 0;
  gap: 4px;
  grid-template-columns: repeat(19, minmax(0, 1fr));
}

.game-day-run-gap-chart .offensive-line-bar-cell {
  min-height: 72px;
}

.game-day-run-gap-chart .offensive-line-bar-count {
  font-size: 0.66rem;
}

.game-day-run-gap-chart .offensive-line-bar-track {
  height: 48px;
}

.game-day-run-gap-chart .offensive-line-tech {
  min-height: 24px;
  font-size: 0.68rem;
}

.game-day-run-gap-chart .offensive-line-node {
  min-height: 36px;
  border-radius: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.2px;
}

.game-day-run-gap-chart .offensive-line-gap-label {
  font-size: 0.62rem;
}

.game-day-run-gap-chart .offensive-line-gap-metric {
  font-size: 0.54rem;
}

.game-day-run-gap-chart .offensive-line-total {
  margin-top: 10px;
  color: #bfd1e2;
}

.game-day-pass-routes-list {
  display: grid;
  gap: 7px;
  min-height: 0;
}

.game-day-pass-route-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: rgba(191, 214, 234, 0.045);
}

.game-day-pass-route-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(83, 181, 255, 0.14);
  border: 1px solid rgba(83, 181, 255, 0.18);
  color: #8fd0ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.game-day-pass-route-main {
  min-width: 0;
}

.game-day-pass-route-name {
  color: #f4f8fb;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.game-day-pass-route-meta {
  margin-top: 2px;
  color: #bfd1e2;
  font-size: 0.78rem;
}

.game-day-pass-route-pct {
  color: #8fd0ff;
  font-size: 0.92rem;
  font-weight: 800;
}

.game-day-script-wrap {
  display: grid;
  gap: 10px;
}

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

.game-day-script-stat {
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: rgba(191, 214, 234, 0.045);
}

.game-day-script-stat__label {
  font-size: 0.74rem;
  color: #9fb7cd;
}

.game-day-script-stat__value {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f4f8fb;
}

.game-day-script-shifts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-day-script-shift {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(159, 203, 241, 0.18);
  background: rgba(191, 214, 234, 0.04);
  color: #d6e7f6;
  font-size: 0.78rem;
  font-weight: 800;
}

.game-day-script-shift.is-up {
  color: #9be1b2;
  border-color: rgba(112, 224, 148, 0.32);
  background: rgba(43, 124, 69, 0.22);
}

.game-day-script-shift.is-down {
  color: #ffb6b6;
  border-color: rgba(235, 123, 123, 0.32);
  background: rgba(126, 47, 47, 0.22);
}

.game-day-script-list {
  display: grid;
  gap: 7px;
}

.game-day-script-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.12);
  background: rgba(191, 214, 234, 0.04);
}

.game-day-script-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(83, 181, 255, 0.14);
  border: 1px solid rgba(83, 181, 255, 0.18);
  color: #8fd0ff;
  font-size: 0.76rem;
  font-weight: 800;
}

.game-day-script-main {
  min-width: 0;
}

.game-day-script-type {
  color: #f4f8fb;
  font-size: 0.86rem;
  font-weight: 800;
}

.game-day-script-meta {
  margin-top: 2px;
  color: #bfd1e2;
  font-size: 0.76rem;
  line-height: 1.35;
}

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

.game-day-entry-grid--call-library {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.game-day-entry-grid--call-library .game-day-action-btn {
  grid-column: 1 / -1;
  width: 100%;
}

.game-day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.game-day-action-btn {
  min-width: 152px;
}

.game-day-log {
  gap: 12px;
}

.game-day-log__item {
  padding: 14px 15px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(191, 214, 234, 0.075) 0%, rgba(191, 214, 234, 0.045) 100%);
  border: 1px solid rgba(191, 214, 234, 0.1);
}

.game-day-log {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.game-day-log__item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(191, 214, 234, 0.07);
  border: 1px solid rgba(191, 214, 234, 0.1);
}

.game-day-log-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(159, 203, 241, 0.14);
  background: rgba(191, 214, 234, 0.03);
  color: rgba(214, 228, 240, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.game-day-log-toggle {
  appearance: none;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(159, 203, 241, 0.18);
  background: rgba(83, 181, 255, 0.08);
  color: #a9d8ff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.game-day-log-toggle:hover,
.game-day-log-toggle:focus-visible {
  border-color: rgba(83, 181, 255, 0.38);
  background: rgba(83, 181, 255, 0.14);
  outline: none;
}

.game-day-call-library-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.game-day-call-library-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(159, 203, 241, 0.12);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.game-day-call-library-toggle .section-title,
.game-day-call-library-toggle .widget-sub {
  display: block;
}

.game-day-call-library-body {
  padding-top: 12px;
}

.game-day-text-keyboard {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(83, 181, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(21, 36, 52, 0.96) 0%, rgba(12, 22, 34, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.game-day-text-keyboard[hidden] {
  display: none;
}

.game-day-text-keyboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #9fcbf1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-day-text-keyboard__close {
  appearance: none;
  border: 1px solid rgba(159, 203, 241, 0.2);
  border-radius: 999px;
  background: rgba(191, 214, 234, 0.08);
  color: #d6e4f0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 11px;
  text-transform: uppercase;
}

.game-day-text-keyboard__close:hover,
.game-day-text-keyboard__close:focus-visible {
  border-color: rgba(83, 181, 255, 0.4);
  background: rgba(83, 181, 255, 0.14);
  outline: none;
}

.game-day-text-keyboard__keys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 7px;
}

.game-day-text-keyboard__keys button {
  appearance: none;
  min-height: 42px;
  border: 1px solid rgba(159, 203, 241, 0.16);
  border-radius: 11px;
  background: rgba(191, 214, 234, 0.08);
  color: #edf6ff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.game-day-text-keyboard__keys button[data-keyboard-token] {
  background: rgba(83, 181, 255, 0.12);
  color: #a9d8ff;
}

.game-day-text-keyboard__keys button[data-keyboard-action] {
  background: rgba(236, 172, 60, 0.12);
  border-color: rgba(236, 172, 60, 0.28);
  color: #ffd98d;
}

.game-day-text-keyboard__keys button:hover,
.game-day-text-keyboard__keys button:focus-visible {
  border-color: rgba(83, 181, 255, 0.44);
  background: rgba(83, 181, 255, 0.22);
  outline: none;
}

.game-day-call-library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.game-day-drive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.game-day-drive-filter {
  min-width: 0;
  padding: 7px 12px;
  font-size: 0.76rem;
}

.game-day-call-library-filter {
  min-width: 0;
  padding: 7px 11px;
  font-size: 0.76rem;
}

.game-day-call-library-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(191, 214, 234, 0.1);
  background: rgba(191, 214, 234, 0.055);
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.game-day-call-library-row:hover,
.game-day-call-library-row:focus-within {
  border-color: rgba(83, 181, 255, 0.28);
  background: rgba(83, 181, 255, 0.055);
}

.game-day-call-library-pick {
  appearance: none;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.game-day-call-library-pick:hover,
.game-day-call-library-pick:focus-visible {
  background: rgba(83, 181, 255, 0.08);
  outline: none;
}

.game-day-call-library-name {
  color: #f4f8fb;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
}

.game-day-call-library-tag {
  color: #adc4d8;
  font-size: 0.74rem;
  font-weight: 750;
}

.game-day-call-library-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.game-day-call-library-edit {
  appearance: none;
  border: 1px solid rgba(83, 181, 255, 0.22);
  border-radius: 999px;
  background: rgba(83, 181, 255, 0.08);
  color: #a9d8ff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.game-day-call-library-edit:hover,
.game-day-call-library-edit:focus-visible {
  border-color: rgba(83, 181, 255, 0.42);
  background: rgba(83, 181, 255, 0.16);
  outline: none;
}

.game-day-call-library-remove {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.game-day-call-library-row:hover .game-day-call-library-remove,
.game-day-call-library-row:focus-within .game-day-call-library-remove {
  opacity: 0.78;
}

.game-day-call-library-edit-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8px;
  min-width: 0;
}

.game-day-call-library-row--editing {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(83, 181, 255, 0.34);
  background: rgba(83, 181, 255, 0.08);
}

.game-day-call-library-row--editing .filter-control {
  min-height: 34px;
  font-size: 0.78rem;
}

.game-day-card--primary {
  background:
    linear-gradient(180deg, rgba(17, 29, 43, 0.94) 0%, rgba(10, 18, 28, 0.98) 100%);
}

.game-day-card--drive {
  border-color: rgba(123, 191, 246, 0.16);
}

.game-day-card--playcall {
  border-color: rgba(121, 214, 161, 0.16);
}

.game-day-card--call-log {
  border-color: rgba(112, 214, 164, 0.2);
}

.game-day-card--wide {
  grid-column: 1 / -1;
}

.game-day-card--footer {
  padding: 14px 18px 16px;
}

.game-day-card--footer .game-day-card__head {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.game-day-card--footer .game-day-actions {
  margin-top: 0;
}

.game-day-card--footer .game-day-action-btn {
  flex: 1 1 220px;
}

.game-day-card--inline {
  margin-top: 8px;
}

#game-day-log-play {
  width: 100%;
  border-color: rgba(112, 214, 164, 0.34);
  background: linear-gradient(180deg, rgba(28, 86, 66, 0.96) 0%, rgba(20, 61, 48, 0.98) 100%);
  color: #ecfff5;
}

#game-day-export {
  border-color: rgba(123, 191, 246, 0.26);
  background: linear-gradient(180deg, rgba(34, 58, 82, 0.96) 0%, rgba(23, 40, 57, 0.98) 100%);
  color: #eef7ff;
}

#game-day-print {
  border-color: rgba(255, 201, 94, 0.28);
  background: linear-gradient(180deg, rgba(97, 73, 32, 0.96) 0%, rgba(68, 50, 21, 0.98) 100%);
  color: #fff8e8;
}

.game-day-card--drive .filter-control,
.game-day-card--playcall .filter-control {
  background: #eef2f6;
  border-color: rgba(159, 203, 241, 0.2);
  color: #000000;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.game-day-card--drive .filter-control::placeholder,
.game-day-card--playcall .filter-control::placeholder {
  color: #000000;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 1;
}

.game-day-card--drive .filter-control:focus,
.game-day-card--playcall .filter-control:focus {
  border-color: rgba(102, 180, 242, 0.6);
  box-shadow:
    0 0 0 3px rgba(61, 145, 214, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.game-day-log__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-day-log__index {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8ec5ff;
}

.game-day-log__index--Success {
  color: #9be38f;
}

.game-day-log__index--Fail {
  color: #ff9c9c;
}

.game-day-drive-item.is-active {
  border-color: rgba(83, 181, 255, 0.34);
  background: linear-gradient(180deg, rgba(83, 181, 255, 0.1) 0%, rgba(191, 214, 234, 0.055) 100%);
}

.game-day-drive-toggle {
  appearance: none;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.game-day-drive-toggle:focus-visible {
  outline: 2px solid rgba(83, 181, 255, 0.52);
  outline-offset: 4px;
  border-radius: 8px;
}

.game-day-drive-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: -2px;
  border-radius: 999px;
  border: 1px solid rgba(83, 181, 255, 0.2);
  background: rgba(83, 181, 255, 0.1);
  color: #8ec5ff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.game-day-drive-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.game-day-drive-meta-line {
  color: #adc4d8;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.game-day-drive-plays {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(191, 214, 234, 0.1);
}

.game-day-drive-play {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 8px 9px;
  border-radius: 11px;
  background: rgba(10, 17, 26, 0.38);
  border: 1px solid rgba(191, 214, 234, 0.08);
}

.game-day-drive-play__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(83, 181, 255, 0.14);
  color: #9fd4ff;
  font-size: 0.72rem;
  font-weight: 900;
}

.game-day-drive-play__body {
  display: grid;
  gap: 2px;
  color: #d8e6f2;
  font-size: 0.78rem;
  line-height: 1.35;
}

.game-day-drive-play__body strong {
  color: #f4f8fb;
  font-size: 0.84rem;
}

.game-day-drive-play__body em {
  color: #b8cad9;
  font-style: normal;
}

.game-day-log-empty--compact {
  min-height: 44px;
  justify-content: flex-start;
}

.game-day-log__remove {
  border: 0;
  background: transparent;
  color: #c7d3df;
  cursor: pointer;
  font: inherit;
}

.game-day-log__meta {
  margin-top: 6px;
  font-size: 12px;
  color: #b9c8d6;
}

.game-day-log__text {
  margin-top: 6px;
  color: #e7f0f8;
}

.run-personnel-label--combo {
  line-height: 1.15;
}

.run-personnel-label--combo .combo-label-top,
.run-personnel-label--combo .combo-label-bottom {
  display: block;
}

.run-personnel-label--combo .combo-label-bottom {
  font-size: 10px;
  opacity: 0.9;
}

@media (max-width: 980px) {
  .gameplan-hero,
  .gameplan-control-grid,
  .gameplan-grid {
    grid-template-columns: 1fr;
  }

  .gameplan-control-grid {
    grid-template-areas:
      "opponents"
      "season"
      "notes"
      "summary";
  }

  .gameplan-shell.gameplan-widget {
    padding: 14px;
  }

  .gameplan-hero,
  .gameplan-control-card,
  .gameplan-plan-card {
    padding: 18px;
  }

  .gameplan-control-card--opponents .gameday-opponent-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .game-day-grid,
  .game-day-predictor-grid,
  .game-day-filter-pills,
  .game-day-result-grid,
  .game-day-predictor-results,
  .game-day-ratio-stats,
  .game-day-direction-grid,
  .game-day-script-summary,
  .game-day-projected-grid,
  .game-day-call-grid,
  .game-day-entry-grid {
    grid-template-columns: 1fr;
  }

  .game-day-result-log-wrap {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .game-day-result-log-btn,
  .game-day-drive-state-btn {
    width: 100%;
    flex-basis: auto;
  }

  .game-day-drive-control-stack {
    width: 100%;
    flex-basis: auto;
  }

  .game-day-result-log-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .game-day-result-log-head .game-day-result-export-btn {
    width: 100%;
  }

  .game-day-result-log-head .game-day-result-clear-btn {
    width: 100%;
  }

  .game-day-filter-pill-group--wide {
    grid-column: span 1;
  }

  .game-day-entry-grid--call-library {
    grid-template-columns: 1fr;
  }

  .game-day-predictor-card .game-day-actions {
    justify-content: stretch;
  }

  .game-day-predictor-card #game-day-predictor-reset {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .gameplan-source-grid,
  .gameday-metrics,
  .gameplan-phase-grid,
  .gameplan-plan-sections {
    grid-template-columns: 1fr;
  }

  .gameplan-plan-sections {
    grid-template-areas:
      "primary"
      "strengths"
      "cautions";
  }

  .gameday-list li,
  .gameday-list--compact li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .gameday-list--compact .gameplan-list-index {
    width: 28px;
    height: 28px;
  }

  .gameplan-list-actions {
    grid-column: 2;
    justify-self: start;
  }

}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

/* Headings */
h1, h2, h3 { margin: 0 0 10px; }
h1, h2 { color: var(--accent); }

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   Brand / Buttons (generic)
========================================================= */
.brand-link {
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
}

.brand-link:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

/* Generic buttons */
.logout-btn,
.btn {
  background-color: var(--white);
  color: var(--accent);
  border: none;
  padding: 8px 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn:active,
.logout-btn:active {
  transform: translateY(1px);
}

.logout-btn:hover,
.btn:hover {
  opacity: 0.9;
}

/* =========================================================
   Topbar (Hudl-style)
========================================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 18px;
  background: #12171b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 1 auto;
  min-width: 0;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
  color: #cdd9e5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.theme-switch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-switch__track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(146, 177, 208, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 160ms ease, border-color 160ms ease;
}

.theme-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #d7e4f1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease;
}

.theme-switch__input:checked + .theme-switch__track {
  background: linear-gradient(180deg, rgba(99, 181, 255, 0.84), rgba(62, 143, 219, 0.92));
  border-color: rgba(99, 181, 255, 0.88);
}

.theme-switch__input:checked + .theme-switch__track .theme-switch__thumb {
  transform: translateX(20px);
}

.theme-switch__input:focus-visible + .theme-switch__track {
  outline: 2px solid rgba(99, 181, 255, 0.34);
  outline-offset: 2px;
}

.theme-switch--view .theme-switch__track {
  background: linear-gradient(180deg, rgba(49, 78, 45, 0.78), rgba(27, 53, 32, 0.88));
  border-color: rgba(127, 201, 125, 0.38);
}

.theme-switch--view .theme-switch__thumb {
  background: linear-gradient(180deg, #f9fff8, #dbeed9);
}

.theme-switch--view .theme-switch__input:checked + .theme-switch__track {
  background: linear-gradient(180deg, rgba(90, 155, 221, 0.84), rgba(53, 112, 176, 0.92));
  border-color: rgba(112, 182, 248, 0.88);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  height: 40px;
  width: 182px;
  overflow: visible;
}

.topbar__brand-logo {
  display: block;
  position: absolute;
  top: 50%;
  left: 4px;
  height: 64px;
  width: auto;
  object-fit: contain;
  transform: translateY(-50%) scale(1.42);
  transform-origin: left center;
}

.topbar__nav {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.topbar__link {
  color: #cfd6de;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 5px 7px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.topbar__link.active {
  color: #fff;
  background: rgba(66, 165, 245, 0.18);
}

/* Upload CTA */
.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(180deg, #5aa4de, #286394);
  border: 1px solid rgba(130, 188, 239, 0.32);
  color: #f4f9ff;
  font-weight: 900;
  min-height: 38px;
  padding: 4px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(2, 8, 15, 0.2);
}

.btn-upload::before {
  content: none;
}

.btn-upload:hover {
  filter: brightness(1.06);
  border-color: rgba(155, 210, 255, 0.44);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  padding: 0;
  border-radius: 8px;
  color: #e7eef7;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.06); }

.user-menu {
  position: relative;
  flex: 0 0 auto;
}

.user-menu:hover .user-chip,
.user-menu:focus-within .user-chip {
  border-color: rgba(103, 190, 255, 0.34);
  background: linear-gradient(180deg, rgba(25, 39, 54, 0.96), rgba(13, 24, 36, 0.98));
}

.user-menu__panel {
  z-index: 200;
  min-width: 140px;
}

/* User chip */
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 190px;
  padding: 3px 9px 3px 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.92), rgba(11, 18, 27, 0.96));
  border: 1px solid rgba(116, 171, 219, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(4, 12, 20, 0.24);
  cursor: pointer;
  font-family: inherit;
}

.avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #67bfff, #315f8a);
  color: #eff8ff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 14px rgba(13, 55, 93, 0.26);
}

.user-chip__name {
  min-width: 0;
  overflow: hidden;
  color: #f1f7fd;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip__logout {
  flex: 0 0 auto;
  margin: 0;
}

.logout-mini {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: #dceaf8;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  font-family: inherit;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.logout-mini:hover,
.logout-mini:focus-visible {
  background: rgba(103, 190, 255, 0.1);
  border-color: rgba(103, 190, 255, 0.18);
  color: #ffffff;
  outline: none;
}

@media (max-width: 1120px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar__left,
  .topbar__right {
    width: 100%;
  }

  .topbar__right {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 8px 12px;
  }

  .topbar__right {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .user-chip {
    max-width: min(100%, 230px);
  }

  .logout-mini {
    padding-inline: 10px;
  }
}

/* =========================================================
   Subbar (Team + submenu)
========================================================= */
.subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #333333;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.subbar__team {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
}

.team-name {
  color: #e7eef7;
  font-weight: 900;
  letter-spacing: 0.3px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 16px;
  margin-right: 8px;
  font-size: 1.15rem;
}

.subbar__tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.subtab {
  color: #cfd6de;
  text-decoration: none;
  font-weight: 800;
  padding: 6px 6px;
  border-radius: 8px;
}

.subtab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.subtab-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 0;
  margin-bottom: 0;
}

.subtab-dropdown__toggle {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.subtab-dropdown__toggle::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.85;
}

.subtab-dropdown__menu {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  left: auto;
  min-width: 200px;
  max-width: min(240px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(103, 190, 255, 0.18);
  background: linear-gradient(180deg, rgba(19, 30, 46, 0.98), rgba(13, 22, 35, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
  display: none;
  z-index: 50;
}

.subtab-dropdown:hover .subtab-dropdown__menu,
.subtab-dropdown:focus-within .subtab-dropdown__menu,
.subtab-dropdown.is-open .subtab-dropdown__menu {
  display: grid;
  gap: 6px;
}

.subtab-dropdown__item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dbe9f7;
  text-decoration: none;
  font-weight: 700;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.subtab-dropdown__item:hover,
.subtab-dropdown__item.is-active {
  background: rgba(103, 190, 255, 0.14);
  color: #ffffff;
  transform: translateX(1px);
}

/* Team logo circle */
.team-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #1b1f23;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.team-logo {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

/* =========================================================
   Page Layout / Flash
========================================================= */
.page-container {
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 20px;
}

main { padding: 30px 0; }

.flash {
  background-color: var(--accent);
  color: var(--white);
  padding: 10px 12px;
  border-radius: 6px;
  margin: 0 0 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* simple stack container for auth flashes */
.flash-stack { display: grid; gap: 8px; }

.flash-message {
  background: rgba(66, 165, 245, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: #e9eef7;
}

/* Heading under top bars */
.opponents-heading { margin-bottom: 25px; }

/* =========================================================
   Teams-mode Offense / Defense pills
========================================================= */
.team-mode-toggle {
  margin-top: 10px;
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
}

.team-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface-dark);
  color: var(--accent-weak);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.08s ease, box-shadow 0.2s ease;
}

.team-mode-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-mode-pill.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(66, 165, 245, 0.4);
}

/* =========================================================
   Overall / Run / Pass pills
========================================================= */
.playtype-toggle {
  display: flex;
  gap: 10px;
  margin: 6px 0 18px 0;
}

.playtype-pill {
  border: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface-dark);
  color: var(--accent-weak);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.08s ease, box-shadow 0.2s ease;
}

.playtype-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.playtype-pill.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(66, 165, 245, 0.4);
}

/* =========================================================
   Filters (invite / dropdowns)
========================================================= */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

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

.filter-control {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 160px;
}

.filter-control.grow { flex: 1 1 200px; }

/* Refresh dropdown */
.refresh-dropdown {
  background-color: var(--white);
  color: var(--accent);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid var(--white);
  cursor: pointer;
}

/* =========================================================
   Chip Sections (Season / Opponent / Completed Games)
========================================================= */
.chip-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 26px;
  margin: 12px 0 24px;
}

.chip-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chip-card__title {
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  width: 82%;
  margin: -32px auto 16px;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chip-group { margin-top: 6px; }

/* Base chip grid layout */
.chip-group__wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 12px;
}

/* Optional 2-column helper */
.chip-group--cols2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px 12px;
}

@media (max-width: 820px) {
  .chip-sections { grid-template-columns: 1fr; }
  .chip-group--cols2 { grid-template-columns: 1fr; }
}

/* Scrollable cards */
.chip-card--scrollable {
  overflow: visible;
  max-height: none;
  padding-right: 18px;
}

/* The scrolling list inside Opponent / Completed Games */
.chip-list--scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

/* WebKit scrollbar styling */
.chip-list--scroll::-webkit-scrollbar { width: 8px; }
.chip-list--scroll::-webkit-scrollbar-track { background: transparent; }
.chip-list--scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}
.chip-list--scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

/* Individual chip pill */
.chip {
  background: var(--accent-weak);
  border: 1px solid #cfe6ff;
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.08s ease, box-shadow 0.18s ease,
    background-color 0.12s ease, color 0.12s ease;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.2;
}

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

.chip:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.chip--selected {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(66, 165, 245, 0.35);
}

/* Reset button under Season */
.btn-reset-filters {
  margin-top: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #e9eef7;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: transform 0.08s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-reset-filters:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.btn-reset-filters:active { transform: translateY(0px); }

/* =========================================================
   Widgets
========================================================= */
.widgets { margin-top: 10px; }

.widget-section-title {
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
}

.qb-pill-filter {
  display: none;
  margin: 4px 0 14px;
}

.qb-pill-filter--active {
  display: block;
}

.qb-pill-filter__title {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.wr-pill-filter {
  display: none;
  margin: 4px 0 14px;
}

.wr-pill-filter--active {
  display: block;
}

.wr-pill-filter__title {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.rb-pill-filter {
  display: none;
  margin: 4px 0 14px;
}

.rb-pill-filter--active {
  display: block;
}

.rb-pill-filter__title {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.qb-pill-filter__head,
.wr-pill-filter__head,
.rb-pill-filter__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.btn-reset-targets {
  margin: 0 0 8px 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #e9eef7;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-reset-targets:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.btn-reset-targets:active {
  transform: translateY(0);
}

.chip-group__wrap--qb {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  max-width: 760px;
}

.chip-group__wrap--target {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  max-width: none;
  width: 100%;
}

.chip-group__wrap--rb {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  max-width: 760px;
}

body.table-teams[data-team-side="offense"][data-play-type="run"] .chip-group__wrap--qb,
body.table-teams[data-team-side="offense"][data-play-type="run"] .chip-group__wrap--rb {
  max-width: none;
  width: 100%;
}

/* Section titles like "QB Summary" / "Hit Chart" */
.section-title {
  margin: 22px 0 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.25rem;
}

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.widgets-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.widgets-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 1200px) {
  .widgets-grid,
  .widgets-grid--3,
  .widgets-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .widgets-grid,
  .widgets-grid--3,
  .widgets-grid--2 {
    grid-template-columns: 1fr;
  }
}

.widget-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
}

.overall-team-grid {
  gap: 12px;
  margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.overall-team-card {
  background:
    linear-gradient(180deg, rgba(66, 165, 245, 0.08) 0%, rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(66, 165, 245, 0.16);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  padding: 11px 14px 12px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.overall-team-card .widget-title {
  font-size: 0.78rem;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: rgba(110, 192, 255, 0.98);
  margin-bottom: 5px;
}

.overall-team-card .widget-value {
  font-size: clamp(1.85rem, 2.35vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.overall-team-card .widget-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: rgba(225, 236, 245, 0.8);
}

/* Extra-tight rows used by QB/WR summary + bottom summary cards */
.compact-cards-grid {
  align-items: start;
  gap: 10px;
}

.compact-cards-grid .overall-team-card {
  padding: 9px 12px 10px;
}

.compact-cards-grid .overall-team-card .widget-title {
  margin-bottom: 4px;
}

.compact-cards-grid .overall-team-card .widget-value {
  font-size: clamp(1.7rem, 2.1vw, 1.95rem);
}

.compact-cards-grid .overall-team-card .widget-sub {
  margin-top: 2px;
  font-size: 0.76rem;
}

.summary-single-grid {
  grid-template-columns: minmax(240px, 320px) !important;
  justify-content: start;
}

.summary-row {
  margin-top: 24px;
}

.expected-points-card {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px 14px;
}

.expected-points-title {
  color: rgba(233, 238, 247, 0.95);
  font-weight: 800;
  font-size: 1rem;
}

.expected-points-sub {
  margin-top: 4px;
  margin-bottom: 10px;
  color: rgba(225, 236, 245, 0.75);
  font-size: 0.84rem;
}

#overall-expected-points-canvas {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.5);
}

.run-pass-ratio {
  margin-top: 10px;
}

.run-pass-ratio__row {
  display: grid;
  grid-template-columns: 48px 1fr 90px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.run-pass-ratio__label {
  color: rgba(233, 238, 247, 0.9);
  font-weight: 700;
  font-size: 0.86rem;
}

.run-pass-ratio__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.run-pass-ratio__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 220ms ease;
}

.run-pass-ratio__fill--run {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.run-pass-ratio__fill--pass {
  background: linear-gradient(90deg, #3ecf8e, #2fbf7d);
}

.run-pass-ratio__value {
  text-align: right;
  color: rgba(225, 236, 245, 0.9);
  font-weight: 700;
  font-size: 0.84rem;
}

.run-pass-ratio__total {
  margin-top: 2px;
  color: rgba(225, 236, 245, 0.75);
  font-size: 0.82rem;
}

.situational-dn-dist-interactive {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.situational-dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.situational-dd-title {
  color: rgba(233, 238, 247, 0.95);
  font-size: 0.88rem;
  font-weight: 800;
}

.situational-dd-reset {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(233, 238, 247, 0.92);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.situational-dd-pill-block {
  margin-top: 8px;
}

.situational-dd-label {
  color: rgba(225, 236, 245, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.situational-dd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.situational-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 238, 247, 0.92);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.situational-pill.active {
  border-color: rgba(120, 188, 255, 0.85);
  background: rgba(120, 188, 255, 0.18);
  color: #fff;
}

.situational-dd-ratio {
  margin-top: 10px;
}

.situational-dd-ratio-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.1);
}

.situational-dd-ratio-run {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.situational-dd-ratio-pass {
  height: 100%;
  background: linear-gradient(90deg, #3ecf8e, #2fbf7d);
}

.situational-dd-ratio-meta {
  margin-top: 5px;
  color: rgba(225, 236, 245, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
}

.situational-down-chart {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.situational-down-title {
  color: rgba(233, 238, 247, 0.95);
  font-weight: 800;
  font-size: 0.92rem;
}

.situational-down-sub {
  margin-top: 2px;
  color: rgba(225, 236, 245, 0.75);
  font-size: 0.8rem;
}

.situational-down-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.situational-down-row {
  display: grid;
  grid-template-columns: 72px 1fr 170px;
  align-items: center;
  gap: 10px;
}

.situational-down-label {
  color: rgba(233, 238, 247, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
}

.situational-down-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
}

.situational-down-bar-run {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.situational-down-bar-pass {
  height: 100%;
  background: linear-gradient(90deg, #3ecf8e, #2fbf7d);
}

.situational-down-values {
  text-align: right;
  color: rgba(225, 236, 245, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
}

.run-personnel-chart {
  margin-top: 10px;
}

.run-personnel-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 10px;
  align-items: end;
}

.run-personnel-label {
  color: rgba(233, 238, 247, 0.92);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  margin-top: 6px;
}

.run-personnel-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.run-personnel-track {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.run-personnel-fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #5cc8ff, #3a9de8);
}

.run-personnel-value {
  color: rgba(225, 236, 245, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
}

.run-personnel-total {
  margin-top: 2px;
  color: rgba(225, 236, 245, 0.74);
  font-size: 0.8rem;
}

.run-offplay-efficiency-chart {
  margin-top: 10px;
}

.run-eff-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 12px;
  margin: 4px 0 10px;
}

.run-eff-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(225, 236, 245, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
}

.run-eff-legend__swatch {
  width: 22px;
  height: 7px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.run-eff-legend__swatch--good {
  background: linear-gradient(90deg, #20bf74, #39d89b);
}

.run-eff-legend__swatch--ok {
  background: linear-gradient(90deg, #f4b13d, #e89c18);
}

.run-eff-legend__swatch--bad {
  background: linear-gradient(90deg, #e45b5b, #c93f3f);
}

.run-eff-head,
.run-eff-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1.35fr) minmax(180px, 2fr) 72px 110px 90px;
  gap: 8px;
  align-items: center;
}

.run-eff-head {
  color: rgba(225, 236, 245, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-bottom: 6px;
}

.run-eff-grid {
  display: grid;
  gap: 6px;
}

.run-eff-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 9px;
}

.run-eff-rank {
  color: rgba(233, 238, 247, 0.95);
  font-weight: 900;
  text-align: center;
}

.run-eff-play {
  color: rgba(233, 238, 247, 0.95);
  font-weight: 800;
  font-size: 0.84rem;
}

.run-eff-bar-wrap {
  min-width: 0;
}

.run-eff-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.run-eff-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #41d39b;
}

.run-eff-bar-fill--good {
  background: linear-gradient(90deg, #20bf74, #39d89b);
}

.run-eff-bar-fill--ok {
  background: linear-gradient(90deg, #f4b13d, #e89c18);
}

.run-eff-bar-fill--bad {
  background: linear-gradient(90deg, #e45b5b, #c93f3f);
}

.run-eff-rate,
.run-eff-meta,
.run-eff-avg {
  color: rgba(225, 236, 245, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.run-eff-total {
  margin-top: 8px;
  color: rgba(225, 236, 245, 0.75);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .run-eff-head,
  .run-eff-row {
    grid-template-columns: 28px minmax(120px, 1.2fr) minmax(130px, 1.7fr) 62px 88px 78px;
    gap: 6px;
  }

  .run-eff-head {
    font-size: 0.68rem;
  }

  .run-eff-play {
    font-size: 0.78rem;
  }
}

.offensive-line-chart {
  margin-top: 10px;
  overflow-x: auto;
}

.offensive-line-row {
  display: grid;
  grid-template-columns: repeat(19, minmax(26px, 1fr));
  gap: 6px;
  min-width: 700px;
  align-items: center;
}

.offensive-line-tech {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  color: rgba(210, 230, 248, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.offensive-line-node {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.8rem;
  color: rgba(233, 238, 247, 0.96);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.4px;
}

.offensive-line-node--center {
  border-color: rgba(92, 200, 255, 0.7);
  background: linear-gradient(180deg, rgba(70, 156, 210, 0.36), rgba(34, 103, 158, 0.34));
}

.offensive-line-node--wr {
  background: linear-gradient(180deg, rgba(112, 168, 255, 0.2), rgba(82, 132, 212, 0.2));
  border-color: rgba(140, 188, 255, 0.4);
}

.offensive-line-node--te {
  background: linear-gradient(180deg, rgba(92, 203, 188, 0.2), rgba(59, 148, 137, 0.2));
  border-color: rgba(113, 220, 206, 0.42);
}

.offensive-line-node--t {
  background: linear-gradient(180deg, rgba(255, 178, 104, 0.2), rgba(186, 120, 58, 0.2));
  border-color: rgba(255, 194, 137, 0.42);
}

.offensive-line-node--g {
  background: linear-gradient(180deg, rgba(190, 160, 255, 0.2), rgba(125, 92, 196, 0.2));
  border-color: rgba(209, 183, 255, 0.42);
}

.offensive-line-plot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offensive-line-bars {
  display: grid;
  grid-template-columns: repeat(19, minmax(26px, 1fr));
  gap: 6px;
  min-width: 700px;
  align-items: end;
}

.offensive-line-bar-cell {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.offensive-line-bar-count {
  margin-bottom: 4px;
  color: rgba(225, 236, 245, 0.9);
  font-size: 0.74rem;
  font-weight: 800;
}

.offensive-line-bar-track {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.offensive-line-bar-fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #7cc7ff, #3f9ff0);
}

.offensive-line-bar-spacer {
  min-height: 1px;
}

.offensive-line-total {
  margin-top: 8px;
  color: rgba(225, 236, 245, 0.74);
  font-size: 0.8rem;
}

.offensive-line-gap-row {
  display: grid;
  grid-template-columns: repeat(19, minmax(26px, 1fr));
  gap: 6px;
  min-width: 700px;
  align-items: center;
}

.offensive-line-gap-label {
  text-align: center;
  color: rgba(210, 230, 248, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.offensive-line-gap-metric {
  margin-top: 3px;
  color: #8fc7ff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.offensive-line-gap-metric--success {
  color: #7fe0a2;
}

.offensive-line-gap-metric--empty {
  color: rgba(210, 230, 248, 0.35);
}

.offensive-line-gap-spacer {
  min-height: 1px;
}

.structural-chart-wrap {
  margin-top: 10px;
}

.structural-chart-table-wrap {
  overflow-x: auto;
}

.structural-chart-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.structural-chart-table th {
  color: rgba(233, 238, 247, 0.94);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.structural-chart-table thead th {
  background: rgba(255, 255, 255, 0.07);
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.structural-chart-table tbody th {
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}

.structural-chart-table tfoot th {
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
}

.structural-chart-cell {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  min-height: 58px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 8px 6px;
}

.structural-chart-count {
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.05;
}

.structural-chart-pct {
  color: rgba(232, 239, 248, 0.88);
  font-size: 0.74rem;
  margin-top: 2px;
}

.structural-chart-cell--total {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22);
}

.structural-chart-total {
  margin-top: 10px;
  color: rgba(225, 236, 245, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
}

.struct-off-head,
.struct-off-row {
  display: grid;
  grid-template-columns: 34px minmax(170px, 1.3fr) minmax(170px, 1.8fr) 110px;
  gap: 8px;
  align-items: center;
}

.struct-off-head {
  margin-bottom: 6px;
  color: rgba(225, 236, 245, 0.82);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.struct-top-pill-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 22, 30, 0.45);
  border: 1px solid rgba(183, 209, 230, 0.22);
}

.struct-top-pill-filter--down {
  margin-left: 8px;
}

.struct-top-pill {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(225, 236, 245, 0.86);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.struct-top-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.struct-top-pill.active {
  background: linear-gradient(180deg, #53b5ff 0%, #3f9fe9 100%);
  color: #fff;
  border-color: rgba(123, 196, 255, 0.9);
}

.struct-off-grid {
  display: grid;
  gap: 6px;
}

.struct-off-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 9px;
}

.struct-off-rank {
  color: rgba(233, 238, 247, 0.95);
  font-weight: 900;
  text-align: center;
}

.struct-off-name {
  color: rgba(233, 238, 247, 0.95);
  font-weight: 800;
  font-size: 0.84rem;
}

.struct-off-bar-wrap {
  min-width: 0;
}

.struct-off-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.struct-off-fill-run,
.struct-off-fill-pass {
  height: 100%;
}

.struct-off-fill-run {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.struct-off-fill-pass {
  background: linear-gradient(90deg, #3ecf8e, #2fbf7d);
}

.struct-off-ratio {
  margin-top: 4px;
  color: rgba(225, 236, 245, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
}

.struct-off-meta {
  color: rgba(225, 236, 245, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 980px) {
  .struct-top-pill-filter--down {
    margin-left: 0;
    margin-top: 6px;
    display: flex;
  }

  .struct-off-head,
  .struct-off-row {
    grid-template-columns: 28px minmax(120px, 1.2fr) minmax(120px, 1.4fr) 88px;
    gap: 6px;
  }

  .struct-off-head {
    font-size: 0.68rem;
  }
}

.explosive-dd-chart {
  margin-top: 10px;
}

.explosive-dd-pill-filter {
  margin-top: 10px;
  display: none;
  gap: 8px;
}

.explosive-dd-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 238, 247, 0.92);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.explosive-dd-pill.active {
  border-color: rgba(120, 188, 255, 0.85);
  background: rgba(120, 188, 255, 0.18);
  color: #ffffff;
}


.explosive-dd-table-wrap {
  overflow-x: auto;
}

.explosive-dd-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.explosive-dd-table th,
.explosive-dd-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 10px;
  text-align: center;
  color: rgba(233, 238, 247, 0.94);
  font-size: 0.82rem;
}

.explosive-dd-table thead th {
  background: rgba(255, 255, 255, 0.07);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  font-weight: 800;
}

.explosive-dd-table tbody th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.explosive-dd-total {
  margin-top: 8px;
  color: rgba(225, 236, 245, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.pass-explosive-fr-chart {
  margin-top: 10px;
}

.pass-explosive-fr-table-wrap {
  overflow-x: auto;
}

.pass-explosive-fr-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.pass-explosive-fr-table th,
.pass-explosive-fr-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 10px;
  text-align: center;
  color: rgba(233, 238, 247, 0.94);
  font-size: 0.8rem;
}

.pass-explosive-fr-table thead th {
  background: rgba(255, 255, 255, 0.07);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.pass-explosive-fr-table tbody th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.pass-explosive-fr-total {
  margin-top: 8px;
  color: rgba(225, 236, 245, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.pass-explosive-breakout-toggle-row {
  margin-top: 10px;
}

.pass-explosive-breakout-toggle {
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(114, 176, 236, 0.45);
  background: rgba(43, 92, 136, 0.24);
  color: rgba(221, 238, 251, 0.95);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.pass-explosive-breakout-toggle:hover {
  background: rgba(66, 127, 178, 0.3);
  border-color: rgba(129, 198, 255, 0.56);
}

.pass-explosive-breakout-hidden {
  display: none !important;
}

/* Defense-wide surface polish */
body.table-defense .widgets,
body.table-offense .widgets {
  margin-top: 16px;
  gap: 14px;
}

body.table-defense #report-overview-section,
body.table-offense #report-overview-section,
body.table-defense #qb-summary-section,
body.table-offense #qb-summary-section,
body.table-defense #rb-summary-section,
body.table-offense #rb-summary-section,
body.table-defense #wr-summary-section,
body.table-offense #wr-summary-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 14px 16px 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

body.table-defense .widget-section-title,
body.table-offense .widget-section-title {
  margin: 14px 0 18px;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
}

body.table-defense .section-title,
body.table-offense .section-title {
  margin: 18px 0 10px;
  font-size: 1.08rem;
  letter-spacing: 0.25px;
}

body.table-defense .widget-card,
body.table-offense .widget-card {
  border-color: rgba(255, 255, 255, 0.11);
}

@media (max-width: 980px) {
  body.table-defense #report-overview-section,
  body.table-offense #report-overview-section,
  body.table-defense #qb-summary-section,
  body.table-offense #qb-summary-section,
  body.table-defense #rb-summary-section,
  body.table-offense #rb-summary-section,
  body.table-defense #wr-summary-section,
  body.table-offense #wr-summary-section {
    padding: 12px 12px 14px;
  }
}

/* Defense -> Pass cleanup */
body.table-defense[data-play-type="pass"] .widgets,
body.table-offense[data-play-type="pass"] .widgets {
  margin-top: 16px;
  gap: 14px;
}

body.table-defense[data-play-type="pass"] .widget-section-title,
body.table-offense[data-play-type="pass"] .widget-section-title {
  margin: 14px 0 18px;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
}

body.table-defense[data-play-type="pass"] .section-title,
body.table-offense[data-play-type="pass"] .section-title {
  margin: 18px 0 10px;
  font-size: 1.08rem;
  letter-spacing: 0.25px;
}

body.table-defense[data-play-type="pass"] #report-overview-section,
body.table-offense[data-play-type="pass"] #report-overview-section,
body.table-defense[data-play-type="pass"] #qb-summary-section,
body.table-offense[data-play-type="pass"] #qb-summary-section,
body.table-defense[data-play-type="pass"] #wr-summary-section,
body.table-offense[data-play-type="pass"] #wr-summary-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 14px 16px 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

body.table-defense[data-play-type="pass"] .overall-team-grid,
body.table-offense[data-play-type="pass"] .overall-team-grid {
  gap: 12px;
  margin-bottom: 14px;
}

body.table-defense[data-play-type="pass"] .compact-cards-grid,
body.table-offense[data-play-type="pass"] .compact-cards-grid {
  gap: 10px;
}

body.table-defense[data-play-type="pass"] .sub-section-title,
body.table-offense[data-play-type="pass"] .sub-section-title {
  display: block;
  opacity: 0.92;
}

body.table-defense[data-play-type="pass"] #qb-hit-chart .hit-chart,
body.table-offense[data-play-type="pass"] #qb-hit-chart .hit-chart,
body.table-defense[data-play-type="pass"] #wr-hit-chart .hit-chart,
body.table-offense[data-play-type="pass"] #wr-hit-chart .hit-chart {
  min-width: 760px;
  max-width: 860px;
}

body.table-defense[data-play-type="pass"] #qb-hit-chart .hit-chart th,
body.table-offense[data-play-type="pass"] #qb-hit-chart .hit-chart th,
body.table-defense[data-play-type="pass"] #qb-hit-chart .hit-chart td,
body.table-offense[data-play-type="pass"] #qb-hit-chart .hit-chart td,
body.table-defense[data-play-type="pass"] #wr-hit-chart .hit-chart th,
body.table-offense[data-play-type="pass"] #wr-hit-chart .hit-chart th,
body.table-defense[data-play-type="pass"] #wr-hit-chart .hit-chart td,
body.table-offense[data-play-type="pass"] #wr-hit-chart .hit-chart td {
  padding: 7px 8px;
  font-size: 0.82rem;
}

body.table-defense[data-play-type="pass"] .pass-depth-summary th,
body.table-offense[data-play-type="pass"] .pass-depth-summary th,
body.table-defense[data-play-type="pass"] .pass-depth-summary td,
body.table-offense[data-play-type="pass"] .pass-depth-summary td {
  padding: 7px 8px;
  font-size: 0.84rem;
}

body.table-defense[data-play-type="pass"] .top-targets th,
body.table-offense[data-play-type="pass"] .top-targets th,
body.table-defense[data-play-type="pass"] .top-targets td,
body.table-offense[data-play-type="pass"] .top-targets td,
body.table-defense[data-play-type="pass"] .top-targets-table th,
body.table-offense[data-play-type="pass"] .top-targets-table th,
body.table-defense[data-play-type="pass"] .top-targets-table td,
body.table-offense[data-play-type="pass"] .top-targets-table td,
body.table-defense[data-play-type="pass"] .leading-rushers-table th,
body.table-offense[data-play-type="pass"] .leading-rushers-table th,
body.table-defense[data-play-type="pass"] .leading-rushers-table td,
body.table-offense[data-play-type="pass"] .leading-rushers-table td {
  padding: 7px 8px;
  font-size: 0.82rem;
}

body.table-defense[data-play-type="pass"] #qb-pass-summary-section,
body.table-offense[data-play-type="pass"] #qb-pass-summary-section {
  margin-top: 8px;
}

body.table-defense[data-play-type="pass"] .qb-level-row,
body.table-offense[data-play-type="pass"] .qb-level-row {
  margin: 10px 0 14px;
  gap: 14px;
}

body.table-defense[data-play-type="pass"] .qb-pie-card,
body.table-offense[data-play-type="pass"] .qb-pie-card {
  border-color: rgba(255, 255, 255, 0.12);
}

body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "pc-pressure pc-coverage"
    "pc-matrix pc-matrix";
  width: 100%;
  max-width: none;
  align-items: stretch;
  margin: 8px 0 14px;
}

body.table-defense[data-play-type="pass"] #qb-comp-vs-pressure,
body.table-offense[data-play-type="pass"] #qb-comp-vs-pressure {
  grid-area: pc-pressure;
}

body.table-defense[data-play-type="pass"] #qb-comp-vs-coverage,
body.table-offense[data-play-type="pass"] #qb-comp-vs-coverage {
  grid-area: pc-coverage;
}

body.table-defense[data-play-type="pass"] #qb-comp-vs-pressure-coverage,
body.table-offense[data-play-type="pass"] #qb-comp-vs-pressure-coverage {
  grid-area: pc-matrix;
}

body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table-wrap,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table-wrap {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: visible;
}

body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
}

body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table th,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table th,
body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table td,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table td {
  padding: 6px 6px;
  font-size: 0.77rem;
  line-height: 1.15;
  white-space: normal;
}

body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-title,

body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-title,
body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-group th,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-group th,
body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-head th,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-head th {
  font-size: 0.74rem;
}

body.table-defense[data-play-type="pass"] .qb-pill-filter,
body.table-offense[data-play-type="pass"] .qb-pill-filter,
body.table-defense[data-play-type="pass"] .wr-pill-filter,
body.table-offense[data-play-type="pass"] .wr-pill-filter {
  margin-bottom: 12px;
}

body.table-defense[data-play-type="pass"] .widget-card,
body.table-offense[data-play-type="pass"] .widget-card,
body.table-teams[data-team-side="offense"][data-play-type="pass"] .widget-card,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .widget-card {
  border-color: rgba(255, 255, 255, 0.11);
}

body.table-defense[data-play-type="pass"] #wr-top-targets,
body.table-offense[data-play-type="pass"] #wr-top-targets,
body.table-defense[data-play-type="pass"] #wr-top-targets-down,
body.table-offense[data-play-type="pass"] #wr-top-targets-down,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down {
  overflow-x: visible;
}

body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets,
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets,
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table,
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}

body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th,
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th,
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets td,
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets td,
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th,
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th,
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td,
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets td,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets td,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td {
  padding: 5px 6px;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(2),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(2),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(2),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(2),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(2),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(2),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(2),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(2) {
  width: 92px;
}

body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets .tt-rank,
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets .tt-rank,
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table .tt-rank,
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table .tt-rank,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets .tt-rank,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table .tt-rank,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets .tt-rank,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table .tt-rank {
  width: 28px;
}

body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(1),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(1),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(1),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(1),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(1),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(1),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(1),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(1) {
  width: 34px;
}

body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(2),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(2),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(2),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(2),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(2),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(2),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(2),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(2) {
  width: 114px;
}

body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(6),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(6),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(6),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(6),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(6),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(6),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(6),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(6) {
  width: 96px;
}

body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(3),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(3),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(3),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(3),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(4),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(4),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(4),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(4),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(5),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(5),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(5),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(5),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(7),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(7),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(7),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(7),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(8),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(8),
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(8),
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(8),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(3),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(3),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(4),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(4),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(5),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(5),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(7),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(7),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(8),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(8),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(3),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(3),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(4),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(4),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(5),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(5),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(7),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(7),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th:nth-child(8),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets td:nth-child(8) {
  width: 54px;
}

body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(3),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(3),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(3),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(3),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(4),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(4),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(4),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(4),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(5),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(5),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(5),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(5),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(6),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(6),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(6),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(6),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(3),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(3),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(4),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(4),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(5),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(5),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(6),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(6),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(3),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(3),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(4),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(4),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(5),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(5),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(6),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(6) {
  width: 44px;
}

body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(7),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(7),
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(7),
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(7),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(7),
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(7),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th:nth-child(7),
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table td:nth-child(7) {
  width: 52px;
}

body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets th,
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets th,
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th,
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table th,
body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets .tt-target,
body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets .tt-target,
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table .tt-name,
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table .tt-name,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets th,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets .top-targets .tt-target,
body.table-teams[data-team-side="offense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table .tt-name,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets th,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table th,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets .top-targets .tt-target,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #wr-top-targets-down .top-targets-table .tt-name {
  white-space: nowrap;
}

@media (max-width: 980px) {
  body.table-defense[data-play-type="pass"] #report-overview-section,
  body.table-offense[data-play-type="pass"] #report-overview-section,
  body.table-defense[data-play-type="pass"] #qb-summary-section,
  body.table-offense[data-play-type="pass"] #qb-summary-section,
  body.table-defense[data-play-type="pass"] #wr-summary-section,
  body.table-offense[data-play-type="pass"] #wr-summary-section {
    padding: 12px 12px 14px;
  }

  body.table-defense[data-play-type="pass"] .section-title,
  body.table-offense[data-play-type="pass"] .section-title {
    margin: 16px 0 9px;
  }

  body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section,
  body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pc-pressure"
      "pc-coverage"
      "pc-matrix";
  }
}

/* =========================================================
   Defense Tab Refinement
========================================================= */
body.table-defense {
  --defense-shell-bg: linear-gradient(180deg, rgba(10, 19, 30, 0.64) 0%, rgba(14, 24, 36, 0.78) 100%);
  --defense-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  --defense-panel-border: rgba(143, 193, 242, 0.18);
  --defense-card-bg: linear-gradient(180deg, rgba(81, 103, 126, 0.28) 0%, rgba(48, 63, 79, 0.34) 100%);
  --defense-card-border: rgba(143, 193, 242, 0.16);
  --defense-muted: rgba(218, 231, 243, 0.72);
}

body.table-defense .opponents-heading {
  margin-bottom: 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(143, 193, 242, 0.16);
  letter-spacing: 0.02em;
}

body.table-defense .chip-sections {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

body.table-defense .chip-card {
  background: var(--defense-panel-bg);
  border: 1px solid var(--defense-panel-border);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(4, 9, 16, 0.24);
}

body.table-defense .chip-card__title {
  color: #93cbff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

body.table-defense .playtype-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 0 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(143, 193, 242, 0.16);
  background: rgba(12, 21, 33, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.table-defense .playtype-pill {
  min-width: 76px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

body.table-defense .playtype-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 193, 242, 0.22);
}

body.table-defense .playtype-pill.active {
  border-color: rgba(143, 193, 242, 0.26);
  box-shadow: 0 6px 16px rgba(36, 109, 176, 0.22);
}

body.table-defense #report-overview-section,
body.table-defense #qb-summary-section,
body.table-defense #rb-summary-section,
body.table-defense #wr-summary-section {
  background: var(--defense-shell-bg);
  border: 1px solid rgba(143, 193, 242, 0.14);
  border-radius: 20px;
  padding: 18px 18px 20px;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(6, 11, 19, 0.24);
}

body.table-defense .widget-section-title,
body.table-defense .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.table-defense .widget-section-title::before,
body.table-defense .section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6ec2ff 0%, #3d8fda 100%);
  box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.12);
  flex: 0 0 auto;
}

body.table-defense .widget-card {
  background: var(--defense-card-bg);
  border: 1px solid var(--defense-card-border);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(7, 12, 19, 0.18);
}

body.table-defense .widget-card .widget-sub,
body.table-defense .widget-card .tt-filter-title,
body.table-defense .widget-card .run-pass-ratio__total {
  color: var(--defense-muted);
}

body.table-defense .widget-card .widget-value {
  letter-spacing: 0.01em;
}

body.table-defense .qb-pill-filter,
body.table-defense .rb-pill-filter,
body.table-defense .wr-pill-filter {
  background: rgba(10, 18, 28, 0.28);
  border: 1px solid rgba(143, 193, 242, 0.12);
  border-radius: 16px;
  padding: 12px 12px 10px;
}

body.table-defense .qb-pill-filter__title,
body.table-defense .rb-pill-filter__title,
body.table-defense .wr-pill-filter__title {
  color: #a4d4ff;
  letter-spacing: 0.06em;
}

body.table-defense .tt-filter-wrap {
  background: rgba(12, 20, 31, 0.26);
  border: 1px solid rgba(143, 193, 242, 0.12);
  border-radius: 14px;
}

body.table-defense #qb-hit-chart,
body.table-defense #wr-hit-chart,
body.table-defense #wr-top-targets,
body.table-defense #wr-top-targets-down,
body.table-defense #wr-top-routes,
body.table-defense #wr-down-distance {
  border-radius: 14px;
}

body.table-defense .summary-row .widget-card {
  background: linear-gradient(180deg, rgba(63, 83, 103, 0.34) 0%, rgba(42, 58, 74, 0.34) 100%);
}

@media (max-width: 1100px) {
  body.table-defense .chip-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.table-defense #report-overview-section,
  body.table-defense #qb-summary-section,
  body.table-defense #rb-summary-section,
  body.table-defense #wr-summary-section {
    padding: 14px;
    border-radius: 18px;
  }
}

/* Keep Defense -> Pass aligned with the same visual system as Defense overall/run. */
body.table-defense[data-play-type="pass"] #report-overview-section,
body.table-defense[data-play-type="pass"] #qb-summary-section,
body.table-defense[data-play-type="pass"] #wr-summary-section {
  background: var(--defense-shell-bg);
  border: 1px solid rgba(143, 193, 242, 0.14);
  border-radius: 20px;
  padding: 18px 18px 20px;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(6, 11, 19, 0.24);
}

body.table-defense[data-play-type="pass"] .overall-team-grid,
body.table-defense[data-play-type="pass"] .compact-cards-grid {
  gap: 14px;
}

body.table-defense[data-play-type="pass"] .qb-level-row,
body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section {
  margin: 12px 0 18px;
}

body.table-defense[data-play-type="pass"] #qb-hit-chart .hit-chart,
body.table-defense[data-play-type="pass"] #wr-hit-chart .hit-chart {
  min-width: 0;
  max-width: none;
}

body.table-defense[data-play-type="pass"] .pass-depth-summary th,
body.table-defense[data-play-type="pass"] .pass-depth-summary td,
body.table-defense[data-play-type="pass"] .top-targets th,
body.table-defense[data-play-type="pass"] .top-targets td,
body.table-defense[data-play-type="pass"] .top-targets-table th,
body.table-defense[data-play-type="pass"] .top-targets-table td,
body.table-defense[data-play-type="pass"] .leading-rushers-table th,
body.table-defense[data-play-type="pass"] .leading-rushers-table td,
body.table-defense[data-play-type="pass"] #qb-hit-chart .hit-chart th,
body.table-defense[data-play-type="pass"] #qb-hit-chart .hit-chart td,
body.table-defense[data-play-type="pass"] #wr-hit-chart .hit-chart th,
body.table-defense[data-play-type="pass"] #wr-hit-chart .hit-chart td {
  padding: 8px 9px;
  font-size: 0.82rem;
  line-height: 1.18;
}

body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table th,
body.table-defense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table td {
  padding: 7px 7px;
  font-size: 0.79rem;
  line-height: 1.18;
}

body.table-defense[data-play-type="pass"] #wr-top-targets .top-targets,
body.table-defense[data-play-type="pass"] #wr-top-targets-down .top-targets-table {
  table-layout: auto;
}

@media (max-width: 980px) {
  body.table-defense[data-play-type="pass"] #report-overview-section,
  body.table-defense[data-play-type="pass"] #qb-summary-section,
  body.table-defense[data-play-type="pass"] #wr-summary-section {
    padding: 14px;
    border-radius: 18px;
  }
}

/* =========================================================
   Offense Tab Refinement
========================================================= */
body.table-offense {
  --offense-shell-bg: linear-gradient(180deg, rgba(10, 19, 30, 0.64) 0%, rgba(14, 24, 36, 0.78) 100%);
  --offense-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  --offense-panel-border: rgba(143, 193, 242, 0.18);
  --offense-card-bg: linear-gradient(180deg, rgba(81, 103, 126, 0.28) 0%, rgba(48, 63, 79, 0.34) 100%);
  --offense-card-border: rgba(143, 193, 242, 0.16);
  --offense-muted: rgba(218, 231, 243, 0.72);
}

body.table-offense .opponents-heading {
  margin-bottom: 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(143, 193, 242, 0.16);
  letter-spacing: 0.02em;
}

body.table-offense .chip-sections {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

body.table-offense .chip-card {
  background: var(--offense-panel-bg);
  border: 1px solid var(--offense-panel-border);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(4, 9, 16, 0.24);
}

body.table-offense .chip-card__title {
  color: #93cbff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

body.table-offense .playtype-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 0 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(143, 193, 242, 0.16);
  background: rgba(12, 21, 33, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.table-offense .playtype-pill {
  min-width: 76px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

body.table-offense .playtype-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 193, 242, 0.22);
}

body.table-offense .playtype-pill.active {
  border-color: rgba(143, 193, 242, 0.26);
  box-shadow: 0 6px 16px rgba(36, 109, 176, 0.22);
}

body.table-offense #report-overview-section,
body.table-offense #qb-summary-section,
body.table-offense #rb-summary-section,
body.table-offense #wr-summary-section {
  background: var(--offense-shell-bg);
  border: 1px solid rgba(143, 193, 242, 0.14);
  border-radius: 20px;
  padding: 18px 18px 20px;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(6, 11, 19, 0.24);
}

body.table-offense .widget-section-title,
body.table-offense .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.table-offense .widget-section-title::before,
body.table-offense .section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6ec2ff 0%, #3d8fda 100%);
  box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.12);
  flex: 0 0 auto;
}

body.table-offense .widget-card {
  background: var(--offense-card-bg);
  border: 1px solid var(--offense-card-border);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(7, 12, 19, 0.18);
}

body.table-offense .widget-card .widget-sub,
body.table-offense .widget-card .tt-filter-title,
body.table-offense .widget-card .run-pass-ratio__total {
  color: var(--offense-muted);
}

body.table-offense .widget-card .widget-value {
  letter-spacing: 0.01em;
}

body.table-offense .qb-pill-filter,
body.table-offense .rb-pill-filter,
body.table-offense .wr-pill-filter {
  background: rgba(10, 18, 28, 0.28);
  border: 1px solid rgba(143, 193, 242, 0.12);
  border-radius: 16px;
  padding: 12px 12px 10px;
}

body.table-offense .qb-pill-filter__title,
body.table-offense .rb-pill-filter__title,
body.table-offense .wr-pill-filter__title {
  color: #a4d4ff;
  letter-spacing: 0.06em;
}

body.table-offense .tt-filter-wrap {
  background: rgba(12, 20, 31, 0.26);
  border: 1px solid rgba(143, 193, 242, 0.12);
  border-radius: 14px;
}

body.table-offense #qb-hit-chart,
body.table-offense #wr-hit-chart,
body.table-offense #wr-top-targets,
body.table-offense #wr-top-targets-down,
body.table-offense #wr-top-routes,
body.table-offense #wr-down-distance {
  border-radius: 14px;
}

body.table-offense .summary-row .widget-card {
  background: linear-gradient(180deg, rgba(63, 83, 103, 0.34) 0%, rgba(42, 58, 74, 0.34) 100%);
}

@media (max-width: 1100px) {
  body.table-offense .chip-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.table-offense #report-overview-section,
  body.table-offense #qb-summary-section,
  body.table-offense #rb-summary-section,
  body.table-offense #wr-summary-section {
    padding: 14px;
    border-radius: 18px;
  }
}

/* Keep Offense -> Pass aligned with the same visual system as Offense overall/run. */
body.table-offense[data-play-type="pass"] #report-overview-section,
body.table-offense[data-play-type="pass"] #qb-summary-section,
body.table-offense[data-play-type="pass"] #wr-summary-section {
  background: var(--offense-shell-bg);
  border: 1px solid rgba(143, 193, 242, 0.14);
  border-radius: 20px;
  padding: 18px 18px 20px;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(6, 11, 19, 0.24);
}

body.table-offense[data-play-type="pass"] .overall-team-grid,
body.table-offense[data-play-type="pass"] .compact-cards-grid {
  gap: 14px;
}

body.table-offense[data-play-type="pass"] .qb-level-row,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section {
  margin: 12px 0 18px;
}

body.table-offense[data-play-type="pass"] #qb-hit-chart .hit-chart,
body.table-offense[data-play-type="pass"] #wr-hit-chart .hit-chart {
  min-width: 0;
  max-width: none;
}

body.table-offense[data-play-type="pass"] .pass-depth-summary th,
body.table-offense[data-play-type="pass"] .pass-depth-summary td,
body.table-offense[data-play-type="pass"] .top-targets th,
body.table-offense[data-play-type="pass"] .top-targets td,
body.table-offense[data-play-type="pass"] .top-targets-table th,
body.table-offense[data-play-type="pass"] .top-targets-table td,
body.table-offense[data-play-type="pass"] .leading-rushers-table th,
body.table-offense[data-play-type="pass"] .leading-rushers-table td,
body.table-offense[data-play-type="pass"] #qb-hit-chart .hit-chart th,
body.table-offense[data-play-type="pass"] #qb-hit-chart .hit-chart td,
body.table-offense[data-play-type="pass"] #wr-hit-chart .hit-chart th,
body.table-offense[data-play-type="pass"] #wr-hit-chart .hit-chart td {
  padding: 8px 9px;
  font-size: 0.82rem;
  line-height: 1.18;
}

body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table th,
body.table-offense[data-play-type="pass"] .qb-pressure-coverage-section .pc-table td {
  padding: 7px 7px;
  font-size: 0.79rem;
  line-height: 1.18;
}

body.table-offense[data-play-type="pass"] #wr-top-targets .top-targets,
body.table-offense[data-play-type="pass"] #wr-top-targets-down .top-targets-table {
  table-layout: auto;
}

@media (max-width: 980px) {
  body.table-offense[data-play-type="pass"] #report-overview-section,
  body.table-offense[data-play-type="pass"] #qb-summary-section,
  body.table-offense[data-play-type="pass"] #wr-summary-section {
    padding: 14px;
    border-radius: 18px;
  }
}

/* =========================================================
   Dashboard Filter Bar Redesign
   Revert by removing this block.
========================================================= */
body.table-defense .chip-sections,
body.table-offense .chip-sections,
body.table-teams .chip-sections {
  position: relative;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 0;
  padding: 14px;
  margin: 22px 0 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(9, 16, 25, 0.78) 0%, rgba(12, 21, 32, 0.92) 100%);
  border: 1px solid rgba(143, 193, 242, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(5, 10, 17, 0.24);
}

body.table-defense .chip-sections::before,
body.table-offense .chip-sections::before,
body.table-teams .chip-sections::before {
  content: "Filters";
  position: absolute;
  top: -11px;
  left: 16px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 15, 24, 0.96);
  border: 1px solid rgba(143, 193, 242, 0.14);
  color: #9fd1ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.table-defense .chip-card,
body.table-offense .chip-card,
body.table-teams .chip-card {
  position: relative;
  min-height: 280px;
  padding: 14px 14px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.table-defense .chip-card + .chip-card::before,
body.table-offense .chip-card + .chip-card::before,
body.table-teams .chip-card + .chip-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(143, 193, 242, 0) 0%,
    rgba(143, 193, 242, 0.14) 10%,
    rgba(143, 193, 242, 0.14) 90%,
    rgba(143, 193, 242, 0) 100%
  );
}

body.table-defense .chip-card__title,
body.table-offense .chip-card__title,
body.table-teams .chip-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 0 2px;
  text-align: center;
  color: #0f2f4a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.table-defense .chip-group,
body.table-defense .chip-list--scroll,
body.table-offense .chip-group,
body.table-offense .chip-list--scroll,
body.table-teams .chip-group,
body.table-teams .chip-list--scroll {
  min-height: 198px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(143, 193, 242, 0.08);
}

body.table-defense .chip-group__wrap,
body.table-offense .chip-group__wrap,
body.table-teams .chip-group__wrap {
  gap: 6px;
}

body.table-defense .chip,
body.table-offense .chip,
body.table-teams .chip {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(222, 233, 243, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #173b60;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: none;
}

body.table-defense .chip:hover,
body.table-offense .chip:hover,
body.table-teams .chip:hover {
  transform: translateY(-1px);
  background: #f1f7fd;
  border-color: rgba(143, 193, 242, 0.18);
}

body.table-defense .chip--selected,
body.table-defense .chip.chip--selected,
body.table-offense .chip--selected,
body.table-offense .chip.chip--selected,
body.table-teams .chip--selected,
body.table-teams .chip.chip--selected {
  background: linear-gradient(180deg, #58b4ff 0%, #2f85d3 100%);
  border-color: rgba(143, 193, 242, 0.28);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 110, 180, 0.22);
}

body.table-defense #btn-reset-filters,
body.table-offense #btn-reset-filters,
body.table-teams #btn-reset-filters {
  width: 100%;
  margin-top: 8px;
  min-height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(143, 193, 242, 0.12);
  color: #d7e7f7;
  box-shadow: none;
  font-size: 0.74rem;
}

body.table-defense #btn-reset-filters:hover,
body.table-offense #btn-reset-filters:hover,
body.table-teams #btn-reset-filters:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(143, 193, 242, 0.18);
}

body.table-defense .chip-list--scroll,
body.table-offense .chip-list--scroll,
body.table-teams .chip-list--scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 193, 242, 0.42) rgba(255, 255, 255, 0.02);
}

body.table-defense .chip-list--scroll::-webkit-scrollbar,
body.table-offense .chip-list--scroll::-webkit-scrollbar,
body.table-teams .chip-list--scroll::-webkit-scrollbar {
  width: 8px;
}

body.table-defense .chip-list--scroll::-webkit-scrollbar-track,
body.table-offense .chip-list--scroll::-webkit-scrollbar-track,
body.table-teams .chip-list--scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

body.table-defense .chip-list--scroll::-webkit-scrollbar-thumb,
body.table-offense .chip-list--scroll::-webkit-scrollbar-thumb,
body.table-teams .chip-list--scroll::-webkit-scrollbar-thumb {
  background: rgba(143, 193, 242, 0.36);
  border-radius: 999px;
}

@media (max-width: 1100px) {
  body.table-defense .chip-sections,
  body.table-offense .chip-sections,
  body.table-teams .chip-sections {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 16px;
  }

  body.table-defense .chip-card,
  body.table-offense .chip-card,
  body.table-teams .chip-card {
    min-height: 0;
    padding: 10px 0 0;
  }

  body.table-defense .chip-card + .chip-card::before,
  body.table-offense .chip-card + .chip-card::before,
  body.table-teams .chip-card + .chip-card::before {
    display: none;
  }

  body.table-defense .chip-group,
  body.table-defense .chip-list--scroll,
  body.table-offense .chip-group,
  body.table-offense .chip-list--scroll,
  body.table-teams .chip-group,
  body.table-teams .chip-list--scroll {
    min-height: 0;
  }
}

/* =========================================================
   Team Tab Refinement
========================================================= */
body.table-teams {
  --team-shell-bg: linear-gradient(180deg, rgba(14, 18, 24, 0.66) 0%, rgba(18, 24, 32, 0.82) 100%);
  --team-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  --team-panel-border: rgba(160, 209, 255, 0.14);
  --team-card-bg: linear-gradient(180deg, rgba(73, 88, 108, 0.22) 0%, rgba(47, 59, 74, 0.32) 100%);
  --team-card-border: rgba(160, 209, 255, 0.12);
  --team-muted: rgba(222, 232, 242, 0.74);
}

body.table-teams .report-overview-title {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(160, 209, 255, 0.12);
  letter-spacing: 0.02em;
}

body.table-teams .team-mode-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 0 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(160, 209, 255, 0.12);
  background: rgba(10, 16, 24, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.table-teams .team-mode-pill {
  min-width: 88px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #d6e6f5;
  box-shadow: none;
}

body.table-teams .team-mode-pill:hover {
  border-color: rgba(160, 209, 255, 0.16);
  box-shadow: 0 6px 14px rgba(7, 11, 17, 0.18);
}

body.table-teams .team-mode-pill.active {
  background: linear-gradient(180deg, #59aef5 0%, #2d7fc8 100%);
  border-color: rgba(160, 209, 255, 0.18);
  box-shadow: 0 8px 18px rgba(28, 101, 168, 0.24);
}

body.table-teams .chip-sections {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 0;
  margin: 10px 0 20px;
}

body.table-teams .chip-sections.chip-sections--team-two-col {
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.55fr);
}

body.table-teams .chip-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.table-teams .chip-card__title {
  color: #a9d6ff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

body.table-teams .playtype-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 0 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(160, 209, 255, 0.12);
  background: rgba(12, 18, 27, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.table-teams .playtype-pill {
  min-width: 76px;
  border-radius: 999px;
  border: 1px solid transparent;
}

body.table-teams .playtype-pill:hover {
  border-color: rgba(160, 209, 255, 0.16);
}

body.table-teams #report-overview-section,
body.table-teams #qb-summary-section,
body.table-teams #rb-summary-section,
body.table-teams #wr-summary-section {
  background: var(--team-shell-bg);
  border: 1px solid rgba(160, 209, 255, 0.12);
  border-radius: 20px;
  padding: 18px 18px 20px;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 36px rgba(7, 11, 17, 0.22);
}

body.table-teams .widget-section-title,
body.table-teams .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.table-teams .widget-section-title::before,
body.table-teams .section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8fd2ff 0%, #4f93d2 100%);
  box-shadow: 0 0 0 4px rgba(160, 209, 255, 0.1);
  flex: 0 0 auto;
}

body.table-teams .widget-card {
  background: var(--team-card-bg);
  border: 1px solid var(--team-card-border);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 24px rgba(7, 11, 17, 0.16);
}

body.table-teams .widget-card .widget-sub,
body.table-teams .widget-card .tt-filter-title,
body.table-teams .widget-card .run-pass-ratio__total {
  color: var(--team-muted);
}

body.table-teams .qb-pill-filter,
body.table-teams .rb-pill-filter,
body.table-teams .wr-pill-filter {
  background: rgba(12, 18, 27, 0.26);
  border: 1px solid rgba(160, 209, 255, 0.1);
  border-radius: 16px;
  padding: 12px 12px 10px;
}

body.table-teams .qb-pill-filter__title,
body.table-teams .rb-pill-filter__title,
body.table-teams .wr-pill-filter__title {
  color: #a9d8ff;
  letter-spacing: 0.06em;
}

body.table-teams .tt-filter-wrap {
  background: rgba(12, 18, 27, 0.22);
  border: 1px solid rgba(160, 209, 255, 0.1);
  border-radius: 14px;
}

@media (max-width: 1100px) {
  body.table-teams .chip-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.table-teams #report-overview-section,
  body.table-teams #qb-summary-section,
  body.table-teams #rb-summary-section,
  body.table-teams #wr-summary-section {
    padding: 14px;
    border-radius: 18px;
  }
}

/* Team -> Offense -> Pass: levels section refinement */
body.table-teams[data-team-side="offense"][data-play-type="pass"] #qb-pass-summary-section {
  margin-top: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-level-row {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  margin: 10px 0 16px;
  align-items: start;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pie-card {
  display: block;
  min-height: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  justify-self: start;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pie-title {
  margin: 4px 0 8px;
  text-align: center;
  font-size: inherit;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] #qb-completions-pie {
  margin: 0 auto 0 0;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pie-legend {
  width: 180px;
  max-width: none;
  margin: 0 auto 0;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .pass-depth-summary-wrap {
  margin: 10px 0 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow-x: auto;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .pass-depth-summary {
  min-width: 640px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .pass-depth-summary th,
body.table-teams[data-team-side="offense"][data-play-type="pass"] .pass-depth-summary td {
  padding: 8px 10px;
  font-size: 0.92rem;
  line-height: normal;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .pass-depth-summary .pds-head th {
  background: rgba(66,165,245,0.18);
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .pass-depth-summary .pds-overall td {
  background: rgba(255,255,255,0.06);
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .pass-depth-summary .pds-sep td {
  background: rgba(0,0,0,0.25);
}

@media (max-width: 980px) {
  body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-level-row {
    grid-template-columns: 1fr;
  }

  body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pie-card {
    justify-self: start;
  }
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "pc-pressure pc-coverage"
    "pc-matrix pc-matrix";
  width: 100%;
  max-width: none;
  align-items: stretch;
  margin: 8px 0 14px;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] #qb-comp-vs-pressure,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #qb-comp-vs-pressure {
  grid-area: pc-pressure;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] #qb-comp-vs-coverage,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #qb-comp-vs-coverage {
  grid-area: pc-coverage;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] #qb-comp-vs-pressure-coverage,
body.table-teams[data-team-side="defense"][data-play-type="pass"] #qb-comp-vs-pressure-coverage {
  grid-area: pc-matrix;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table-wrap,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table-wrap {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: visible;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 100%;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table th,
body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table td,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table th,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table td {
  padding: 6px 6px;
  font-size: 0.77rem;
  line-height: 1.15;
  white-space: normal;
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-title,
body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-group th,
body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-head th,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-title,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-group th,
body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-head th {
  font-size: 0.74rem;
}

@media (max-width: 980px) {
  body.table-teams[data-team-side="defense"][data-play-type="pass"] .qb-pressure-coverage-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pc-pressure"
      "pc-coverage"
      "pc-matrix";
  }
}

body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-title,
body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-group th,
body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section .pc-table .pc-head th {
  font-size: 0.74rem;
}

@media (max-width: 980px) {
  body.table-teams[data-team-side="offense"][data-play-type="pass"] .qb-pressure-coverage-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pc-pressure"
      "pc-coverage"
      "pc-matrix";
  }
}

.widget-title,
.widget-label {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px;
}

.widget-value {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.widget-sub {
  margin-top: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* =========================================================
   Auth / Login / Register / Accept Invite
========================================================= */
.auth-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(89, 180, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255, 196, 74, 0.1), transparent 28%),
    linear-gradient(180deg, #040608 0%, #0a0d11 46%, #101419 100%);
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px 24px;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.auth-page--signin {
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(36, 36, 36, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(68, 68, 68, 0.12), transparent 30%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 42%, #111111 100%);
}

.auth-page--signin::before,
.auth-page--signin::after {
  display: none;
}

.auth-page--signin .welcome-atmosphere {
  z-index: 0;
}

.auth-page::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 124px, rgba(247, 242, 233, 0.03) 124px 125px, transparent 125px 248px),
    linear-gradient(180deg, transparent 0 7%, rgba(247, 242, 233, 0.015) 7% 7.08%, transparent 7.08% 100%);
  opacity: 0.55;
}

.auth-page::after {
  inset: 42px 26px;
  background:
    radial-gradient(circle at 14% 28%, rgba(247, 242, 233, 0.08), transparent 12%),
    radial-gradient(circle at 86% 24%, rgba(247, 242, 233, 0.07), transparent 12%),
    radial-gradient(circle at 82% 78%, rgba(247, 242, 233, 0.05), transparent 14%);
  opacity: 0.7;
}

/* ===== Hudl-style login shell ===== */
.welcome-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(36, 36, 36, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(68, 68, 68, 0.12), transparent 30%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 42%, #111111 100%);
  color: #ecf3fb;
}

.welcome-shell {
  width: min(1120px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 8px 0 32px;
}

.marketing-page .welcome-shell {
  width: min(1160px, calc(100vw - 56px));
}

.welcome-topbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 0;
  row-gap: 0;
  margin-bottom: -28px;
}

.welcome-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.8vw, 42px);
  width: 100%;
  padding: 0 220px;
  box-sizing: border-box;
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  margin-top: -18px;
  margin-bottom: -8px;
}

.welcome-dropdown {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.welcome-menu__item {
  display: inline-flex;
  align-items: center;
}

.welcome-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
}

.welcome-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #eef6ff;
  font-size: clamp(1.02rem, 1.1vw, 1.16rem);
  font-weight: 800;
  padding: 8px 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 140ms ease, opacity 140ms ease;
}

.welcome-menu__button--link {
  text-decoration: none;
}

.welcome-menu__button--active {
  color: #8bc7ff;
}

.welcome-menu__button:hover,
.welcome-menu__button:focus-visible {
  color: #85c8ff;
  outline: none;
}

.welcome-menu__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 140ms ease;
}

.welcome-dropdown:hover .welcome-menu__chevron,
.welcome-dropdown:focus-within .welcome-menu__chevron,
.welcome-dropdown.is-open .welcome-menu__chevron {
  transform: rotate(225deg) translateY(-1px);
}

.welcome-dropdown__panel {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(124, 176, 222, 0.2);
  background: rgba(11, 18, 29, 0.96);
  box-shadow: 0 18px 36px rgba(2, 7, 14, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
  z-index: 20;
}

.welcome-dropdown:hover .welcome-dropdown__panel,
.welcome-dropdown:focus-within .welcome-dropdown__panel,
.welcome-dropdown.is-open .welcome-dropdown__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.welcome-dropdown__link {
  color: #dbe9f7;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background-color 140ms ease, color 140ms ease;
}

.welcome-dropdown__link:hover,
.welcome-dropdown__link:focus-visible {
  color: #f7fbff;
  background: rgba(133, 200, 255, 0.12);
  outline: none;
}

.welcome-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  color: #f4f8fc;
  font-size: 1.52rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  flex: 0 0 auto;
  grid-column: 1;
  justify-self: center;
}

.welcome-brand__banner {
  display: block;
  width: 310px;
  height: auto;
  object-fit: contain;
  margin-left: 0;
  margin-bottom: -52px;
}

.welcome-topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  align-self: center;
}

.welcome-auth-box {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.welcome-link {
  color: #dbe9f7;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
}

.welcome-auth-box .welcome-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px 0 26px;
  border-radius: 0;
  color: rgba(222, 234, 246, 0.88);
  transition: background-color 140ms ease, color 140ms ease;
  font-size: 0.98rem;
  font-weight: 800;
  position: relative;
}

.welcome-auth-box .welcome-link:hover,
.welcome-auth-box .welcome-link:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: #f4f8fc;
  outline: none;
}

.welcome-main {
  display: grid;
  gap: 24px;
  margin-top: 0;
  position: relative;
}

.welcome-stage {
  position: relative;
  isolation: isolate;
}

.welcome-stage__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.welcome-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.62;
}

.welcome-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(84, 96, 84, 0.05), rgba(72, 82, 71, 0.07)),
    radial-gradient(circle at 8% 16%, rgba(245, 239, 229, 0.08), transparent 18%),
    radial-gradient(circle at 92% 24%, rgba(233, 225, 212, 0.06), transparent 16%),
    radial-gradient(circle at 84% 84%, rgba(236, 230, 219, 0.05), transparent 18%);
}

.welcome-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(247, 242, 233, 0.035) 5% 5.08%, transparent 5.08% 23%, rgba(247, 242, 233, 0.03) 23% 23.08%, transparent 23.08% 41%, rgba(247, 242, 233, 0.03) 41% 41.08%, transparent 41.08% 59%, rgba(247, 242, 233, 0.028) 59% 59.08%, transparent 59.08% 77%, rgba(247, 242, 233, 0.024) 77% 77.08%, transparent 77.08% 95%, rgba(247, 242, 233, 0.02) 95% 95.08%, transparent 95.08% 100%),
    linear-gradient(180deg, transparent 0 8%, rgba(247, 242, 233, 0.024) 8% 8.08%, transparent 8.08% 24%, rgba(247, 242, 233, 0.022) 24% 24.08%, transparent 24.08% 40%, rgba(247, 242, 233, 0.02) 40% 40.08%, transparent 40.08% 56%, rgba(247, 242, 233, 0.018) 56% 56.08%, transparent 56.08% 72%, rgba(247, 242, 233, 0.016) 72% 72.08%, transparent 72.08% 88%, rgba(247, 242, 233, 0.014) 88% 88.08%, transparent 88.08% 100%);
}

.welcome-atmosphere__grid,
.welcome-atmosphere__route,
.welcome-atmosphere__hash,
.welcome-atmosphere__ring,
.welcome-atmosphere__laces,
.welcome-atmosphere__x {
  position: absolute;
}

.welcome-atmosphere__grid {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 132px, rgba(250, 245, 237, 0.034) 132px 133px, transparent 133px 264px),
    radial-gradient(circle at 6% 78%, rgba(255, 252, 246, 0.12), transparent 18%),
    radial-gradient(circle at 92% 22%, rgba(255, 252, 246, 0.1), transparent 16%);
  mask-image: none;
}

.welcome-atmosphere__hash {
  width: 52px;
  height: 430px;
  opacity: 0.16;
  background:
    repeating-linear-gradient(180deg, rgba(250, 245, 237, 0.56) 0 3px, transparent 3px 28px);
}

.welcome-atmosphere__hash--left {
  top: 52px;
  left: 28px;
}

.welcome-atmosphere__hash--right {
  top: 118px;
  right: 28px;
}

/* Shared hex background */
.welcome-page,
.auth-page--signin,
body:not(.welcome-page):not(.auth-page) {
  background:
    linear-gradient(180deg, #111416 0%, #08090a 100%);
}

.welcome-page .welcome-atmosphere,
.auth-page--signin .welcome-atmosphere,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere {
  opacity: 1;
}

.welcome-page .welcome-atmosphere::before,
.auth-page--signin .welcome-atmosphere::before,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere::before {
  inset: 0;
  opacity: 1;
  filter: saturate(0.16) brightness(0.82) contrast(1.08);
  background:
    url("img/hex-bg.png") center center / cover no-repeat;
}

.welcome-page .welcome-atmosphere::after,
.auth-page--signin .welcome-atmosphere::after,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere::after {
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.54) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.54) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, transparent 24%, transparent 66%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(ellipse at center, rgba(44, 47, 49, 0.1) 0%, transparent 44%, rgba(0, 0, 0, 0.26) 100%);
}

.welcome-page .welcome-atmosphere__grid,
.auth-page--signin .welcome-atmosphere__grid,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere__grid {
  display: none;
}

.welcome-page .welcome-atmosphere__route,
.welcome-page .welcome-atmosphere__ring,
.welcome-page .welcome-atmosphere__x,
.welcome-page .welcome-atmosphere__laces,
.welcome-page .welcome-atmosphere__hash,
.auth-page--signin .welcome-atmosphere__route,
.auth-page--signin .welcome-atmosphere__ring,
.auth-page--signin .welcome-atmosphere__x,
.auth-page--signin .welcome-atmosphere__laces,
.auth-page--signin .welcome-atmosphere__hash,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere__route,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere__ring,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere__x,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere__laces,
body:not(.welcome-page):not(.auth-page) .welcome-atmosphere__hash {
  display: none;
}

.welcome-atmosphere__hash--mid-left {
  top: 344px;
  left: 196px;
  height: 320px;
  opacity: 0.12;
}

.welcome-atmosphere__hash--mid-right {
  top: 412px;
  right: 196px;
  height: 280px;
  opacity: 0.1;
}

.welcome-atmosphere__route {
  height: 126px;
  border-top: 3px solid rgba(244, 239, 230, 0.28);
  border-right: 3px solid rgba(244, 239, 230, 0.28);
  border-top-right-radius: 160px;
  filter: drop-shadow(0 0 10px rgba(244, 239, 230, 0.08));
}

.welcome-atmosphere__route::before,
.welcome-atmosphere__route::after {
  content: "";
  position: absolute;
}

.welcome-atmosphere__route::before {
  width: 14px;
  height: 14px;
  left: -7px;
  top: -8px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.46);
  box-shadow: 0 0 0 7px rgba(244, 239, 230, 0.05);
}

.welcome-atmosphere__route::after {
  width: 14px;
  height: 14px;
  right: -2px;
  top: -8px;
  border-top: 3px solid rgba(244, 239, 230, 0.3);
  border-right: 3px solid rgba(244, 239, 230, 0.3);
  transform: rotate(45deg);
}

.welcome-atmosphere__route--hero {
  top: 104px;
  right: 44px;
  width: 300px;
}

.welcome-atmosphere__route--mid {
  top: 470px;
  left: 10px;
  width: 330px;
  transform: scaleX(-1);
  border-color: rgba(244, 239, 230, 0.24);
}

.welcome-atmosphere__route--mid::before {
  background: rgba(244, 239, 230, 0.3);
}

.welcome-atmosphere__route--mid::after {
  border-top-color: rgba(244, 239, 230, 0.26);
  border-right-color: rgba(244, 239, 230, 0.26);
}

.welcome-atmosphere__route--low {
  bottom: 92px;
  right: 34px;
  width: 342px;
  border-color: rgba(244, 239, 230, 0.24);
}

.welcome-atmosphere__route--sweep {
  top: 288px;
  left: 42px;
  width: 220px;
  height: 98px;
  transform: scaleX(-1) rotate(-8deg);
  border-color: rgba(244, 239, 230, 0.22);
}

.welcome-atmosphere__route--corner {
  top: 136px;
  right: 164px;
  width: 132px;
  height: 168px;
  border-top-right-radius: 180px;
  border-color: rgba(244, 239, 230, 0.16);
}

.welcome-atmosphere__route--flat {
  bottom: 246px;
  left: 68px;
  width: 232px;
  height: 74px;
  transform: rotate(8deg);
  border-color: rgba(244, 239, 230, 0.2);
}

.welcome-atmosphere__route--low::before {
  background: rgba(244, 239, 230, 0.3);
}

.welcome-atmosphere__route--low::after {
  border-top-color: rgba(244, 239, 230, 0.26);
  border-right-color: rgba(244, 239, 230, 0.26);
}

.welcome-atmosphere__ring {
  width: 204px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(244, 239, 230, 0.1);
  opacity: 0.18;
}

.welcome-atmosphere__route--hero,
.welcome-atmosphere__route--low {
  border-top-style: dashed;
  border-right-style: dashed;
}

.welcome-atmosphere__route--corner::before,
.welcome-atmosphere__route--flat::before {
  box-shadow:
    0 0 0 7px rgba(244, 239, 230, 0.045),
    26px 0 0 -3px rgba(244, 239, 230, 0.28);
}

.welcome-atmosphere__ring::before,
.welcome-atmosphere__ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 2px dashed rgba(244, 239, 230, 0.08);
}

.welcome-atmosphere__ring::after {
  inset: 52px;
  border-style: solid;
  border-color: rgba(244, 239, 230, 0.06);
}

.welcome-atmosphere__ring--hero {
  top: 238px;
  right: -42px;
}

.welcome-atmosphere__ring--footer {
  bottom: 28px;
  left: -18px;
  width: 156px;
  opacity: 0.14;
}

.welcome-atmosphere__ring--midfield {
  top: 408px;
  right: 188px;
  width: 118px;
  opacity: 0.1;
}

.welcome-atmosphere__x {
  width: 32px;
  height: 32px;
  opacity: 0.22;
}

.welcome-atmosphere__x::before,
.welcome-atmosphere__x::after {
  content: "";
  position: absolute;
  inset: 15px 0 auto;
  height: 3px;
  background: rgba(244, 239, 230, 0.24);
  box-shadow: 0 0 10px rgba(244, 239, 230, 0.06);
}

.welcome-atmosphere__x::before {
  transform: rotate(45deg);
}

.welcome-atmosphere__x::after {
  transform: rotate(-45deg);
}

.welcome-atmosphere__x--left {
  top: 286px;
  left: 172px;
}

.welcome-atmosphere__x--right {
  top: 198px;
  right: 128px;
}

.welcome-atmosphere__x--low {
  bottom: 148px;
  right: 248px;
}

.welcome-atmosphere__laces {
  width: 122px;
  height: 24px;
  opacity: 0.1;
  border-top: 3px solid rgba(244, 239, 230, 0.12);
}

.welcome-atmosphere__laces::before {
  content: "";
  position: absolute;
  inset: -2px 10px auto;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(244, 239, 230, 0.14) 12px 18px, transparent 18px 30px);
}

.welcome-atmosphere__laces--top {
  top: 44px;
  right: 260px;
  transform: rotate(-9deg);
}

.welcome-atmosphere__laces--bottom {
  bottom: 150px;
  left: 300px;
  transform: rotate(8deg);
}

.company-title {
  max-width: 14ch;
}

.careers-title {
  max-width: 13ch;
}

@media (max-width: 1320px) {
  .welcome-atmosphere {
    inset: 0;
  }

  .welcome-atmosphere__route--hero {
    width: 150px;
    right: 34px;
  }

  .welcome-atmosphere__route--low {
    width: 180px;
    right: 42px;
  }

  .welcome-topbar {
    gap: 2px;
    row-gap: 0;
    margin-bottom: -28px;
  }

  .welcome-brand {
    gap: 4px;
    font-size: 1.38rem;
  }

  .welcome-brand__banner {
    width: 286px;
    margin-left: 0;
    margin-bottom: -42px;
  }

  .welcome-menu {
    gap: clamp(16px, 2vw, 28px);
    padding: 0 184px;
    margin-top: -14px;
    margin-bottom: -6px;
  }

  .welcome-menu__button {
    font-size: 1rem;
    gap: 6px;
  }

  .welcome-topbar__actions {
    gap: 10px;
  }

  .welcome-link {
    font-size: 0.9rem;
  }

  .welcome-auth-box .welcome-button--small {
    min-height: 46px;
    padding: 0 20px;
  }
}

@media (max-width: 1400px) {
  .welcome-topbar {
    grid-template-columns: 1fr;
    align-items: center;
    row-gap: 0;
    gap: 2px;
    margin-bottom: -26px;
  }

  .welcome-brand {
    gap: 4px;
  }

  .welcome-brand__banner {
    width: 258px;
    margin-left: 0;
    margin-bottom: -38px;
  }

  .welcome-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0 178px;
    grid-column: 1;
    margin-top: -12px;
    margin-bottom: -4px;
  }

  .welcome-topbar__actions {
    grid-column: 1;
    align-self: center;
  }
}

@media (max-width: 1080px) {
  .welcome-topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .welcome-brand {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .welcome-menu {
    grid-column: 1 / -1;
    grid-row: auto;
    padding: 0;
    justify-content: flex-start;
    justify-self: stretch;
  }

  .welcome-topbar__actions {
    width: 100%;
    justify-content: flex-start;
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
  }
}

.company-hero {
  grid-template-columns: minmax(280px, 0.58fr) minmax(620px, 1.42fr);
  justify-items: stretch;
  min-height: 330px;
  align-items: center;
  padding: 44px 48px;
  background:
    radial-gradient(circle at 50% 20%, rgba(89, 180, 255, 0.12), transparent 36%),
    linear-gradient(140deg, rgba(10, 20, 33, 0.97), rgba(16, 28, 46, 0.94));
}

.company-hero .welcome-hero__visual {
  display: none;
}

.company-hero .welcome-hero__copy {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  justify-items: stretch;
  text-align: left;
  gap: 24px;
}

.company-hero .company-title {
  grid-column: 1;
  max-width: 13ch;
  margin-bottom: 6px;
  font-size: clamp(2.4rem, 3.78vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.company-hero .welcome-subtitle {
  grid-column: 2;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  transform: none;
  color: #d8e5f0;
  font-size: 0.96rem;
  line-height: 1.92;
  padding: 32px 30px 26px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 31, 47, 0.7), rgba(10, 22, 35, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  position: relative;
}

.company-hero .welcome-eyebrow {
  grid-column: 1 / -1;
  justify-self: center;
  margin-bottom: -18px;
}

.welcome-subtitle__quote-mark {
  position: absolute;
  top: 8px;
  right: 18px;
  color: rgba(255, 208, 113, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  pointer-events: none;
}

.welcome-subtitle__quote-label {
  color: #ffd071;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.company-hero .welcome-subtitle--stacked {
  gap: 18px;
}

.customers-hero {
  padding: 28px 30px;
  background:
    linear-gradient(140deg, rgba(11, 19, 32, 0.97), rgba(14, 26, 42, 0.94)),
    radial-gradient(circle at top right, rgba(90, 240, 234, 0.14), transparent 30%);
}

.careers-hero {
  align-items: stretch;
}

.company-preview {
  border-color: rgba(255, 198, 78, 0.18);
}

.company-preview .welcome-preview__body {
  gap: 12px;
}

.company-preview .welcome-preview__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-preview .welcome-preview__card {
  min-height: 0;
  padding: 14px 15px;
  border-color: rgba(255, 198, 78, 0.12);
  background:
    linear-gradient(180deg, rgba(23, 32, 43, 0.88), rgba(14, 23, 34, 0.94));
}

.company-preview .welcome-preview__card--wide {
  border-color: rgba(255, 198, 78, 0.22);
  background:
    linear-gradient(180deg, rgba(41, 36, 25, 0.88), rgba(20, 27, 36, 0.96));
}

.customers-preview {
  border-color: rgba(90, 240, 234, 0.18);
}

.careers-preview {
  min-height: 100%;
}

.company-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.careers-highlights .company-highlights__item {
  min-height: 100%;
}

.company-highlights__item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(124, 176, 222, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.company-highlights__value {
  color: #f4f8fc;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-highlights__label {
  color: #9ab0c4;
  line-height: 1.6;
}

.company-team {
  display: grid;
  gap: 20px;
  padding: 26px 30px 28px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background:
    linear-gradient(140deg, rgba(10, 19, 31, 0.94), rgba(15, 26, 40, 0.9)),
    radial-gradient(circle at top left, rgba(89, 180, 255, 0.12), transparent 30%);
  box-shadow: 0 16px 34px rgba(4, 10, 18, 0.18);
  position: relative;
  overflow: hidden;
}

.company-team::before,
.company-philosophy::before,
.careers-board::before,
.contact-page__hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(90, 240, 234, 0.95), rgba(90, 240, 234, 0.06));
}

.company-team::after,
.company-philosophy::after,
.careers-board::after,
.contact-page__hero::after,
.contact-form-card::after {
  content: "";
  position: absolute;
  inset: 14px 16px auto auto;
  width: 42px;
  height: 10px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.28) 0 24%,
      transparent 24% 38%,
      rgba(255, 255, 255, 0.2) 38% 62%,
      transparent 62% 76%,
      rgba(255, 255, 255, 0.16) 76% 100%);
  opacity: 0.58;
}

.company-team__header {
  display: grid;
  gap: 10px;
  max-width: 72ch;
  justify-self: center;
  text-align: center;
}

.company-team__title {
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 1.05;
}

.company-team__text {
  margin: 0;
  color: #b8c8da;
  font-size: 0.94rem;
  line-height: 1.62;
}

.company-team__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.company-team__tab {
  min-width: 118px;
  padding: 13px 18px;
  border: 1px solid rgba(124, 176, 222, 0.18);
  color: #c5d6e7;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  background: rgba(8, 17, 29, 0.42);
}

.company-team__tab--active {
  color: #07111d;
  border-color: rgba(255, 196, 74, 0.72);
  background: linear-gradient(180deg, #ffcf61, #d79524);
  box-shadow: 0 10px 24px rgba(255, 196, 74, 0.16);
}

.company-team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  justify-items: center;
}

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

.company-proof-card {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(21, 33, 47, 0.88), rgba(13, 23, 35, 0.94));
}

.company-proof-card__label {
  color: #8fcfff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-proof-card__value {
  color: #d9e6f3;
  font-size: 0.88rem;
  line-height: 1.55;
}

.company-team__card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background: linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(18, 24, 31, 0.98));
}

.company-team__card--featured {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at top right, rgba(255, 198, 78, 0.08), transparent 30%);
  border-color: rgba(255, 198, 78, 0.16);
}

.company-team__founder-card {
  width: min(100%, 470px);
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 16px;
  padding: 30px 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(89, 180, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(18, 31, 47, 0.96), rgba(10, 20, 32, 0.98));
  border-color: rgba(124, 176, 222, 0.2);
}

.company-team__avatar {
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid rgba(244, 248, 252, 0.78);
  background: #0f1d2c;
  box-shadow:
    0 18px 34px rgba(4, 10, 18, 0.32),
    0 0 0 8px rgba(89, 180, 255, 0.1);
}

.company-team__profile {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.company-team__card--pillar {
  gap: 12px;
}

.company-team__toggle {
  gap: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(31, 41, 53, 0.92), rgba(24, 34, 46, 0.96)),
    radial-gradient(circle at top right, rgba(255, 198, 78, 0.06), transparent 30%);
}

.company-team__toggle-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  cursor: pointer;
  list-style: none;
}

.company-team__toggle-summary::-webkit-details-marker {
  display: none;
}

.company-team__toggle-chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid #89c9ff;
  border-bottom: 2px solid #89c9ff;
  transform: rotate(45deg);
  transition: transform 140ms ease;
  margin-right: 4px;
}

.company-team__toggle[open] .company-team__toggle-chevron {
  transform: rotate(225deg);
}

.company-team__toggle-content {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.company-team__toggle .company-team__role {
  margin-bottom: 4px;
}

.company-team__toggle .company-team__name {
  font-size: 1.32rem;
  line-height: 1.12;
}

.company-team__founder-note {
  max-width: 42ch;
  margin: 0;
  color: #c5d6e7;
  font-size: 0.92rem;
  line-height: 1.55;
}

.company-team__profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.company-team__profile-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 176, 222, 0.18);
  color: #9fd4ff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 31, 48, 0.76);
}

.company-team__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.company-team__meta-item {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(124, 176, 222, 0.1);
  background: rgba(8, 15, 24, 0.28);
}

.company-team__meta-label {
  color: #89c9ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-team__meta-value {
  color: #e3edf7;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 700;
}

.company-team__story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
  text-align: left;
}

.company-team__story-block {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  border: 1px solid rgba(124, 176, 222, 0.12);
  background: rgba(7, 17, 28, 0.34);
}

.company-team__story-block--wide {
  grid-column: auto;
}

.company-team__role {
  color: #85c8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-team__name {
  margin: 0;
  color: #f4f8fc;
  font-size: 1.22rem;
  line-height: 1.2;
}

.company-team__profile-title {
  margin: -2px 0 0;
  color: #aebfd1;
  font-size: 0.9rem;
  line-height: 1.4;
}

.company-team__section-label {
  color: #89c9ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-team__bio {
  margin: 0;
  color: #b8c8da;
  line-height: 1.72;
  font-size: 0.93rem;
}

.customers-groups {
  display: grid;
  gap: 22px;
  padding: 28px 30px 32px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background:
    linear-gradient(140deg, rgba(10, 19, 31, 0.94), rgba(15, 26, 40, 0.9)),
    radial-gradient(circle at top left, rgba(90, 240, 234, 0.12), transparent 30%);
  box-shadow: 0 16px 34px rgba(4, 10, 18, 0.18);
  position: relative;
  overflow: hidden;
}

.customers-groups::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(90, 240, 234, 0.95), rgba(90, 240, 234, 0.06));
}

.customers-groups::after {
  content: "";
  position: absolute;
  inset: 14px 16px auto auto;
  width: 42px;
  height: 10px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.28) 0 24%,
      transparent 24% 38%,
      rgba(255, 255, 255, 0.2) 38% 62%,
      transparent 62% 76%,
      rgba(255, 255, 255, 0.16) 76% 100%);
  opacity: 0.58;
}

.customers-groups__header {
  display: grid;
  gap: 12px;
  max-width: 72ch;
}

.customers-groups__title {
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.05;
}

.customers-groups__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.customers-groups__card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background: linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(18, 24, 31, 0.98));
  position: relative;
  overflow: hidden;
}

.customers-groups__card::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--customers-accent, #85c8ff), rgba(255, 255, 255, 0.04));
}

.customers-groups__card--lime {
  --customers-accent: #d9ff17;
}

.customers-groups__card--cyan {
  --customers-accent: #5af0ea;
}

.customers-groups__card--gold {
  --customers-accent: #ffc44a;
}

.customers-groups__eyebrow {
  color: var(--customers-accent, #85c8ff);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customers-groups__card-title {
  margin: 0;
  color: #f4f8fc;
  font-size: 1.22rem;
  line-height: 1.2;
}

.customers-groups__card-text {
  margin: 0;
  color: #b8c8da;
  line-height: 1.68;
  font-size: 0.93rem;
}

.customers-groups__list {
  margin-top: 4px;
}

.customers-map {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  padding: 28px 30px 32px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background:
    linear-gradient(140deg, rgba(12, 20, 31, 0.95), rgba(15, 27, 40, 0.9)),
    radial-gradient(circle at bottom right, rgba(255, 198, 78, 0.08), transparent 30%);
  box-shadow: 0 16px 34px rgba(4, 10, 18, 0.18);
  position: relative;
  overflow: hidden;
}

.customers-map--lead {
  margin-top: 4px;
}

.customers-map::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(255, 196, 74, 0.95), rgba(255, 196, 74, 0.06));
}

.customers-map::after {
  content: "";
  position: absolute;
  inset: 14px 16px auto auto;
  width: 42px;
  height: 10px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.28) 0 24%,
      transparent 24% 38%,
      rgba(255, 255, 255, 0.2) 38% 62%,
      transparent 62% 76%,
      rgba(255, 255, 255, 0.16) 76% 100%);
  opacity: 0.58;
}

.customers-map__copy {
  display: grid;
  align-content: start;
  gap: 12px;
  max-width: 46ch;
}

.customers-map__title {
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  line-height: 1.05;
}

.customers-map__text {
  margin: 0;
  color: #b8c8da;
  font-size: 0.94rem;
  line-height: 1.66;
}

.customers-map__board {
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(239, 244, 248, 0.98), rgba(222, 231, 239, 0.98));
  position: relative;
  overflow: hidden;
}

.customers-map__board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0;
  pointer-events: none;
}

.customers-us-map {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 1.72;
  position: relative;
  z-index: 1;
}

.customers-us-map__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.customers-us-map__mainland,
.customers-us-map__inset {
  fill: #f7fafc;
  stroke: #111827;
  stroke-width: 2;
  filter: drop-shadow(0 10px 18px rgba(4, 10, 18, 0.16));
}

.customers-us-map__inset {
  opacity: 1;
}

.customers-us-map__state-lines {
  fill: none;
  stroke: rgba(17, 24, 39, 0.72);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
}

.customers-map__label {
  display: grid;
  place-items: center;
  position: absolute;
  transform: translate(-50%, -50%);
  color: #101827;
  font-size: clamp(0.48rem, 0.7vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
  transition: transform 140ms ease, color 140ms ease;
  z-index: 2;
}

.customers-map__label:hover {
  transform: translate(-50%, -50%) scale(1.12);
  color: #0b5ea8;
}

.customers-map__label--west,
.customers-map__label--central,
.customers-map__label--east {
  color: #101827;
}

.customers-footprint {
  display: grid;
  gap: 22px;
  padding: 28px 30px 32px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background:
    linear-gradient(140deg, rgba(10, 19, 31, 0.94), rgba(15, 26, 40, 0.9)),
    radial-gradient(circle at top right, rgba(90, 240, 234, 0.12), transparent 30%);
  box-shadow: 0 16px 34px rgba(4, 10, 18, 0.18);
  position: relative;
  overflow: hidden;
}

.customers-footprint::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(90, 240, 234, 0.95), rgba(90, 240, 234, 0.06));
}

.customers-footprint::after {
  content: "";
  position: absolute;
  inset: 14px 16px auto auto;
  width: 42px;
  height: 10px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.28) 0 24%,
      transparent 24% 38%,
      rgba(255, 255, 255, 0.2) 38% 62%,
      transparent 62% 76%,
      rgba(255, 255, 255, 0.16) 76% 100%);
  opacity: 0.58;
}

.customers-footprint__header {
  display: grid;
  gap: 10px;
  max-width: none;
}

.customers-footprint__title {
  max-width: none;
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.7rem, 2.65vw, 2.65rem);
  line-height: 1.05;
}

.customers-footprint__text {
  max-width: 92ch;
  margin: 0;
  color: #b8c8da;
  font-size: 0.94rem;
  line-height: 1.66;
}

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

.customers-footprint__panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background:
    linear-gradient(180deg, rgba(17, 31, 47, 0.94), rgba(10, 22, 35, 0.98)),
    radial-gradient(circle at top right, rgba(89, 180, 255, 0.08), transparent 32%);
}

.customers-footprint__panel--regions,
.customers-footprint__panel--levels {
  min-height: 280px;
}

.customers-footprint__label {
  color: #85c8ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.customers-footprint__concept-title,
.customers-footprint__statement {
  margin: 0;
  color: #f4f8fc;
  font-size: 1.28rem;
  line-height: 1.18;
}

.customers-region-grid,
.customers-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customers-region-grid div,
.customers-stat-grid div,
.customers-type-list div {
  display: grid;
  gap: 5px;
  align-content: center;
  justify-items: center;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid rgba(124, 176, 222, 0.12);
  background: rgba(7, 17, 28, 0.42);
  text-align: center;
}

.customers-region-grid span,
.customers-type-list span,
.customers-stat-grid span {
  color: #b8c8da;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.customers-region-grid strong,
.customers-stat-grid strong {
  color: #f4f8fc;
  font-size: 1.75rem;
  line-height: 1;
}

.customers-region-grid small {
  color: #85c8ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customers-type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customers-type-list div {
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 88px;
}

.customers-type-list strong {
  color: #f4f8fc;
  font-size: 1.75rem;
  line-height: 1;
}

.customers-map-showcase {
  display: grid;
  gap: 20px;
}

.customers-map-showcase__header {
  display: grid;
  gap: 8px;
  max-width: 60ch;
}

.customers-map-showcase__title {
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.08;
}

.customers-map-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.customers-map-showcase__card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background: linear-gradient(180deg, rgba(21, 28, 35, 0.98), rgba(16, 22, 29, 0.98));
}

.customers-map-showcase__copy {
  display: grid;
  gap: 6px;
}

.customers-map-showcase__name {
  color: #f4f8fc;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.customers-map-showcase__text {
  margin: 0;
  color: #9eb3c6;
  font-size: 0.88rem;
  line-height: 1.56;
}

.customers-map__grid--compact {
  max-width: 100%;
  grid-auto-rows: 20px;
  gap: 4px;
}

.customers-map__grid--compact .customers-map__tile {
  font-size: 0.48rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.customers-map__board--minimal {
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.985), rgba(16, 20, 25, 0.99));
}

.customers-map__board--minimal::before {
  opacity: 0.18;
}

.customers-map__tile--minimal {
  box-shadow: none;
  border-color: rgba(170, 186, 201, 0.14);
}

.customers-map__tile--minimal.customers-map__tile--west,
.customers-map__tile--minimal.customers-map__tile--central,
.customers-map__tile--minimal.customers-map__tile--east {
  background: linear-gradient(180deg, rgba(28, 35, 43, 0.98), rgba(22, 28, 35, 0.98));
  color: #d7e0e9;
}

.customers-map__board--tactical {
  background:
    linear-gradient(180deg, rgba(12, 16, 24, 0.99), rgba(9, 13, 19, 0.99)),
    radial-gradient(circle at 14% 18%, rgba(90, 240, 234, 0.14), transparent 20%),
    radial-gradient(circle at 86% 82%, rgba(212, 178, 255, 0.16), transparent 22%);
}

.customers-map__tile--tactical.customers-map__tile--west {
  box-shadow: 0 0 14px rgba(90, 240, 234, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.customers-map__tile--tactical.customers-map__tile--central {
  box-shadow: 0 0 14px rgba(132, 169, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.customers-map__tile--tactical.customers-map__tile--east {
  box-shadow: 0 0 14px rgba(255, 196, 74, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.customers-map__board--chalkboard {
  background:
    linear-gradient(180deg, rgba(18, 28, 18, 0.99), rgba(13, 20, 14, 0.99)),
    radial-gradient(circle at center, rgba(245, 239, 230, 0.04), transparent 40%);
}

.customers-map__board--chalkboard::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(245, 239, 230, 0.03) 34px 35px),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(245, 239, 230, 0.022) 34px 35px);
  opacity: 0.55;
}

.customers-map__tile--chalkboard.customers-map__tile--west,
.customers-map__tile--chalkboard.customers-map__tile--central,
.customers-map__tile--chalkboard.customers-map__tile--east {
  background: linear-gradient(180deg, rgba(32, 43, 34, 0.98), rgba(24, 34, 27, 0.98));
  border-color: rgba(233, 226, 214, 0.14);
  color: #f2eadc;
}

.customers-map__board--heatmap {
  background:
    linear-gradient(180deg, rgba(17, 20, 28, 0.99), rgba(11, 14, 20, 0.99));
}

.customers-map__tile--heatmap {
  color: #fff;
}

.customers-map__tile--heatmap.customers-map__tile--west {
  background: linear-gradient(180deg, rgba(54, 138, 163, 0.98), rgba(31, 92, 111, 0.98));
  border-color: rgba(90, 240, 234, 0.3);
}

.customers-map__tile--heatmap.customers-map__tile--central {
  background: linear-gradient(180deg, rgba(79, 103, 196, 0.98), rgba(52, 72, 142, 0.98));
  border-color: rgba(132, 169, 255, 0.34);
}

.customers-map__tile--heatmap.customers-map__tile--east {
  background: linear-gradient(180deg, rgba(184, 125, 43, 0.98), rgba(133, 82, 23, 0.98));
  border-color: rgba(255, 196, 74, 0.34);
}

.customers-map__board--metal {
  background:
    linear-gradient(180deg, rgba(35, 39, 45, 0.99), rgba(24, 28, 33, 0.99));
}

.customers-map__tile--metal.customers-map__tile--west,
.customers-map__tile--metal.customers-map__tile--central,
.customers-map__tile--metal.customers-map__tile--east {
  background: linear-gradient(180deg, rgba(98, 106, 117, 0.98), rgba(60, 69, 79, 0.98));
  border-color: rgba(181, 194, 204, 0.24);
  color: #f4f8fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.customers-map__board--glass {
  background:
    linear-gradient(180deg, rgba(14, 19, 25, 0.92), rgba(11, 15, 20, 0.92));
  backdrop-filter: blur(10px);
}

.customers-map__tile--glass.customers-map__tile--west,
.customers-map__tile--glass.customers-map__tile--central,
.customers-map__tile--glass.customers-map__tile--east {
  background: rgba(141, 175, 207, 0.08);
  border-color: rgba(189, 213, 233, 0.18);
  color: #e8f0f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.customers-map__board--regional {
  background:
    linear-gradient(90deg,
      rgba(14, 34, 37, 0.98) 0 33.33%,
      rgba(17, 24, 42, 0.98) 33.33% 66.66%,
      rgba(42, 28, 16, 0.98) 66.66% 100%);
}

.customers-map__board--regional::before {
  opacity: 0.22;
}

.customers-map__board--hover {
  background:
    linear-gradient(180deg, rgba(17, 22, 29, 0.985), rgba(12, 17, 23, 0.99));
}

.customers-map__tile--hover {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.customers-map__board--hover .customers-map__tile:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 14px 18px rgba(4, 10, 18, 0.22);
}

.company-philosophy {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 29, 42, 0.92), rgba(14, 24, 35, 0.94)),
    radial-gradient(circle at bottom left, rgba(255, 198, 78, 0.08), transparent 28%);
  position: relative;
  overflow: hidden;
}

.company-philosophy__header {
  display: grid;
  gap: 10px;
  max-width: 68ch;
}

.company-philosophy__title {
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
}

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

.company-philosophy__card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  border: 1px solid rgba(124, 176, 222, 0.1);
  background: linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(18, 24, 31, 0.98));
}

.company-philosophy__label {
  color: #f4f8fc;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-philosophy__text {
  margin: 0;
  color: #9ab0c4;
  line-height: 1.65;
}

.careers-board {
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 28, 41, 0.92), rgba(12, 22, 34, 0.96)),
    radial-gradient(circle at top right, rgba(74, 174, 255, 0.11), transparent 26%);
  position: relative;
  overflow: hidden;
}

.careers-board__header {
  display: grid;
  gap: 10px;
  max-width: 68ch;
}

.careers-board__title {
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.careers-board__text {
  margin: 0;
  color: #9ab0c4;
  line-height: 1.65;
}

.careers-board__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.careers-role {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px 18px 20px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(25, 38, 53, 0.92), rgba(17, 28, 41, 0.96));
  box-shadow: none;
}

.careers-role--featured {
  border-color: rgba(89, 180, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 38, 57, 0.98), rgba(15, 28, 42, 0.98)),
    radial-gradient(circle at top right, rgba(74, 174, 255, 0.16), transparent 32%);
}

.careers-role--empty {
  grid-column: 1 / -1;
  justify-items: start;
}

.careers-role__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.careers-role__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 208, 90, 0.14);
  border: 1px solid rgba(255, 208, 90, 0.22);
  color: #ffd05a;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.careers-role__badge--secondary {
  background: rgba(89, 180, 255, 0.1);
  border-color: rgba(89, 180, 255, 0.18);
  color: #8fcfff;
}

.careers-role__location {
  color: #88a3bc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.careers-role__title {
  margin: 0;
  color: #f4f8fc;
  font-size: 1.08rem;
  line-height: 1.2;
}

.careers-role__summary {
  margin: 0;
  color: #a3b8cb;
  line-height: 1.66;
  font-size: 0.94rem;
}

.careers-role__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.careers-role__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(124, 176, 222, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe7f4;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.careers-role__action:hover {
  transform: translateY(-1px);
  border-color: rgba(89, 180, 255, 0.24);
  background: rgba(89, 180, 255, 0.08);
}

.careers-role__action--primary {
  border-color: rgba(89, 180, 255, 0.28);
  background: linear-gradient(180deg, rgba(88, 190, 255, 0.2), rgba(40, 140, 204, 0.16));
  color: #f4f8fc;
}

.careers-role__tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(124, 176, 222, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7f4;
  font-size: 0.8rem;
  font-weight: 700;
}

.careers-values {
  margin-bottom: 6px;
}

.careers-admin-hero {
  padding: 22px 24px;
}

.careers-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.2fr);
  gap: 18px;
}

.careers-admin-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(17, 28, 41, 0.94), rgba(11, 20, 31, 0.97));
  box-shadow: 0 18px 34px rgba(4, 10, 18, 0.18);
}

.careers-admin-card__title {
  margin: 0;
  color: #f4f8fc;
  font-size: 1.28rem;
  line-height: 1.15;
}

.careers-admin-form {
  display: grid;
  gap: 14px;
}

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

.careers-admin-form__field {
  display: grid;
  gap: 8px;
}

.careers-admin-form__label {
  color: #d9e7f5;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.careers-admin-form__input,
.careers-admin-form__textarea {
  width: 100%;
  border: 1px solid rgba(124, 176, 222, 0.14);
  border-radius: 14px;
  background: rgba(7, 14, 23, 0.72);
  color: #eef5fb;
  font: inherit;
  padding: 12px 14px;
  box-sizing: border-box;
}

.careers-admin-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.careers-admin-form__input:focus,
.careers-admin-form__textarea:focus {
  outline: none;
  border-color: rgba(89, 180, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(89, 180, 255, 0.1);
}

.careers-admin-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.careers-admin-form__actions {
  align-items: center;
  gap: 10px;
}

.careers-admin-form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7d7e6;
  font-size: 0.92rem;
}

.careers-admin-list {
  display: grid;
  gap: 12px;
}

.careers-admin-list__item {
  display: grid;
  gap: 12px;
  padding: 16px 17px;
  border-radius: 18px;
  border: 1px solid rgba(124, 176, 222, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.careers-admin-list__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.careers-admin-list__title {
  color: #f4f8fc;
  font-size: 1rem;
  font-weight: 800;
}

.careers-admin-list__meta {
  margin-top: 5px;
  color: #8ea7be;
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.careers-admin-list__state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 176, 222, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #b7c8d9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.careers-admin-list__state--live {
  border-color: rgba(92, 201, 125, 0.18);
  background: rgba(92, 201, 125, 0.08);
  color: #95e0ab;
}

.careers-admin-list__summary {
  margin: 0;
  color: #a8bbcd;
  line-height: 1.65;
}

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

.careers-admin-list__actions form {
  margin: 0;
}

.careers-admin-list__edit,
.careers-admin-list__toggle,
.careers-admin-list__delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.careers-admin-list__edit {
  border: 1px solid rgba(124, 176, 222, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe7f4;
}

.careers-admin-list__edit:hover {
  background: rgba(89, 180, 255, 0.08);
}

.careers-admin-list__toggle {
  border: 1px solid rgba(89, 180, 255, 0.18);
  background: rgba(89, 180, 255, 0.08);
  color: #9fd6ff;
}

.careers-admin-list__toggle:hover {
  background: rgba(89, 180, 255, 0.12);
}

.careers-admin-list__delete {
  border: 1px solid rgba(255, 108, 108, 0.18);
  background: rgba(255, 108, 108, 0.08);
  color: #ffc0c0;
}

.careers-admin-list__delete:hover {
  background: rgba(255, 108, 108, 0.12);
}

.careers-admin-list__empty {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(124, 176, 222, 0.18);
  color: #9ab0c4;
}

.contact-page {
  display: grid;
}

.contact-page__hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 22px;
  padding: 24px 26px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  border: 1px solid rgba(124, 176, 222, 0.14);
  background:
    linear-gradient(140deg, rgba(10, 20, 33, 0.97), rgba(16, 28, 46, 0.94)),
    radial-gradient(circle at top right, rgba(74, 174, 255, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255, 198, 78, 0.08), transparent 28%);
  box-shadow: 0 16px 34px rgba(4, 10, 18, 0.18);
  position: relative;
  overflow: hidden;
}

.contact-page__copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.contact-page__title {
  margin: 0;
  color: #f4f8fc;
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  max-width: 8ch;
}

.contact-page__text {
  margin: 0;
  max-width: 54ch;
  color: #b8c8da;
  line-height: 1.72;
  font-size: 1rem;
}

.contact-page__email-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  border: 1px solid rgba(89, 180, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 39, 58, 0.9), rgba(14, 27, 41, 0.96));
  box-shadow: none;
  width: fit-content;
  min-width: min(100%, 320px);
}

.contact-page__email-label {
  color: #8fcfff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-page__email-label--secondary {
  margin-top: 8px;
}

.contact-page__email-link {
  color: #f4f8fc;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
}

.contact-page__email-link:hover {
  color: #8fcfff;
}

.contact-page__highlights {
  margin-top: 6px;
}

.contact-form-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(89, 180, 255, 0.08), transparent 28%);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.contact-form-card__header {
  display: grid;
  gap: 10px;
}

.contact-form-card__title {
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form__field {
  display: grid;
  gap: 8px;
}

.contact-form__label {
  color: #dce8f4;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  border: 1px solid rgba(124, 176, 222, 0.14);
  border-radius: 14px;
  background: rgba(7, 14, 23, 0.66);
  color: #eef5fb;
  font: inherit;
  padding: 13px 14px;
  box-sizing: border-box;
}

.contact-form__textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: rgba(89, 180, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(89, 180, 255, 0.1);
}

.contact-form__actions {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 4px;
}

.contact-form__submit {
  min-width: 220px;
}

.contact-form__note {
  color: #90a9c0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.welcome-hero {
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(400px, 0.92fr);
  gap: 34px;
  padding: 32px 34px 34px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  border: 1px solid rgba(106, 137, 168, 0.2);
  background:
    linear-gradient(180deg, rgba(16, 22, 30, 0.985), rgba(12, 18, 26, 0.99)),
    radial-gradient(circle at 12% 14%, rgba(87, 179, 255, 0.08), transparent 24%),
    radial-gradient(circle at 88% 84%, rgba(90, 240, 234, 0.08), transparent 24%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(4, 10, 18, 0.16);
}

.welcome-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(89, 180, 255, 0.84), rgba(255, 196, 74, 0.22));
}

.welcome-hero::after {
  content: "";
  position: absolute;
  inset: 16px 18px auto auto;
  width: 58px;
  height: 12px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.3) 0 20%,
      transparent 20% 34%,
      rgba(255, 255, 255, 0.22) 34% 54%,
      transparent 54% 68%,
      rgba(255, 255, 255, 0.16) 68% 100%);
  opacity: 0.7;
}

.welcome-hero__copy {
  max-width: 760px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.welcome-eyebrow,
.welcome-panel__eyebrow {
  color: #85c8ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-grid.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.welcome-panel {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(124, 176, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 29, 43, 0.94), rgba(13, 22, 34, 0.97)),
    radial-gradient(circle at top right, rgba(89, 180, 255, 0.08), transparent 32%);
  box-shadow: 0 16px 30px rgba(4, 10, 18, 0.16);
}

.company-grid .welcome-panel {
  min-height: 172px;
  align-content: start;
  gap: 14px;
  padding: 24px 26px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border-color: rgba(124, 176, 222, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 31, 47, 0.94), rgba(10, 22, 35, 0.98)),
    radial-gradient(circle at top right, rgba(89, 180, 255, 0.1), transparent 34%);
}

.company-grid .welcome-panel:first-child {
  border-color: rgba(89, 180, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 35, 54, 0.96), rgba(10, 22, 35, 0.98)),
    radial-gradient(circle at top left, rgba(89, 180, 255, 0.16), transparent 34%);
}

.welcome-panel__title {
  margin: 0;
  color: #7fc0ff;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.welcome-panel__text {
  margin: 0;
  color: #d0deeb;
  font-size: 0.94rem;
  line-height: 1.72;
}

.welcome-title {
  max-width: 16.5ch;
  margin: 6px 0 12px;
  color: #f4f8fc;
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: clamp(2.35rem, 3vw, 3.45rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.welcome-subtitle {
  max-width: 48ch;
  margin: 0;
  color: #d5e0eb;
  font-size: 1rem;
  line-height: 1.74;
}

.welcome-subtitle--stacked {
  display: grid;
  gap: 14px;
}

.welcome-subtitle--stacked p {
  margin: 0;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.welcome-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(124, 176, 222, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #edf5fc;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(7, 12, 19, 0.12);
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease, color 140ms ease;
}

.welcome-button--primary {
  min-height: 50px;
  min-width: 190px;
  padding: 0 28px;
  border-radius: 0;
  border: 1px solid rgba(105, 163, 214, 0.26);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background:
    linear-gradient(180deg, rgba(88, 174, 248, 0.98), rgba(39, 102, 162, 0.98)),
    linear-gradient(90deg, rgba(255, 196, 74, 0.18), transparent 44%);
  color: #f5f9fd;
  box-shadow:
    0 14px 26px rgba(16, 71, 119, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.welcome-button--small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
}

.welcome-button:hover,
.welcome-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.welcome-button--primary:hover,
.welcome-button--primary:focus-visible {
  background:
    linear-gradient(180deg, rgba(98, 188, 255, 0.98), rgba(45, 115, 179, 0.98)),
    linear-gradient(90deg, rgba(255, 196, 74, 0.22), transparent 48%);
  color: #ffffff;
  box-shadow:
    0 16px 28px rgba(16, 71, 119, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.demo-modal-open {
  overflow: hidden;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 9, 15, 0.7);
  backdrop-filter: blur(10px);
}

.demo-modal[hidden] {
  display: none !important;
}

.demo-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 24px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  border: 1px solid rgba(118, 149, 180, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 22, 31, 0.985), rgba(10, 17, 26, 0.995));
  box-shadow:
    0 26px 60px rgba(2, 8, 14, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.demo-modal__header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-right: 36px;
}

.demo-modal__title {
  margin: 0;
  color: #f1f6fb;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.demo-modal__text {
  margin: 0;
  color: #c7d4e1;
  font-size: 0.95rem;
  line-height: 1.65;
}

.demo-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(118, 149, 180, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #e6eff8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.demo-modal__close:hover,
.demo-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.demo-modal__form {
  gap: 14px;
}

.demo-modal__actions {
  align-items: center;
}

.demo-scheduler-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(124, 176, 222, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(13, 20, 31, 0.94), rgba(8, 14, 23, 0.98)),
    radial-gradient(circle at top right, rgba(89, 180, 255, 0.08), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 28px rgba(2, 8, 14, 0.16);
}

.demo-scheduler-panel__header {
  display: grid;
  gap: 8px;
  align-items: start;
}

.demo-scheduler-panel__note {
  margin-top: 4px;
  max-width: none;
  color: #9aafc4;
  font-size: 0.92rem;
  line-height: 1.55;
}

.demo-scheduler-panel__grid {
  align-items: start;
  gap: 16px;
}

.demo-date-trigger-wrap {
  position: relative;
}

.demo-date-trigger {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  border: 1px solid rgba(124, 176, 222, 0.14);
  border-radius: 14px;
  background: rgba(7, 14, 23, 0.66);
  color: #c4d3e1;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}

.demo-date-trigger.has-value {
  color: #eef5fb;
}

.demo-date-trigger:hover,
.demo-date-trigger:focus-visible {
  outline: none;
  border-color: rgba(89, 180, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(89, 180, 255, 0.1);
}

.demo-date-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  min-height: 50px;
  padding-right: 18px;
  font-weight: 700;
}

.demo-slot-picker {
  display: grid;
  gap: 8px;
}

.demo-slot-picker__status {
  min-height: 20px;
  color: #8ea7bf;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.demo-slot-picker__status.is-error {
  color: #ffb1b1;
}

.demo-slot-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(124, 176, 222, 0.1);
  border-radius: 16px;
  background: rgba(5, 11, 18, 0.56);
  min-height: 74px;
  align-content: start;
}

.demo-slot-picker__grid:empty::before {
  content: "Available times will appear here after you pick a date.";
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: #6f859b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.demo-slot-button {
  min-height: 50px;
  border: 1px solid rgba(124, 176, 222, 0.14);
  border-radius: 14px;
  background: rgba(10, 18, 29, 0.82);
  color: #e9f3fb;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.demo-slot-button:hover,
.demo-slot-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(89, 180, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(89, 180, 255, 0.08);
}

.demo-slot-button.is-selected {
  border-color: rgba(89, 180, 255, 0.46);
  background: linear-gradient(180deg, rgba(72, 167, 255, 0.94), rgba(52, 124, 204, 0.98));
  color: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.demo-slot-button.is-booked,
.demo-slot-button:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(1, 3, 7, 0.96);
  color: rgba(187, 198, 211, 0.54);
  cursor: not-allowed;
  box-shadow: none;
}

.demo-slot-button.is-booked:hover,
.demo-slot-button:disabled:hover {
  transform: none;
}

.welcome-hero__visual {
  display: flex;
  align-items: stretch;
}

.welcome-showcase {
  position: relative;
  width: 100%;
  min-height: 0;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  border: 1px solid rgba(97, 129, 162, 0.2);
  background:
    linear-gradient(180deg, rgba(30, 38, 48, 0.99), rgba(18, 25, 35, 0.995)),
    radial-gradient(circle at 76% 12%, rgba(212, 178, 255, 0.06), transparent 26%),
    radial-gradient(circle at 18% 84%, rgba(90, 240, 234, 0.05), transparent 26%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(4, 10, 18, 0.2);
  overflow: hidden;
  padding: 76px 22px 20px;
}

.welcome-showcase::before {
  content: "Inside ScoutOpp";
  position: absolute;
  top: 0;
  left: 0;
  right: 72px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(255, 196, 74, 0.98), rgba(255, 175, 42, 0.92));
  color: rgba(24, 29, 36, 0.88);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-product-board {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
  align-items: start;
}

.welcome-module-card,
.welcome-support-card {
  display: grid;
  gap: 8px;
}

.welcome-module-tag {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 186, 230, 0.2);
  background: rgba(9, 14, 22, 0.8);
  color: #eff6fd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.welcome-module-tag--hero {
  color: #5af0ea;
}

.welcome-product-board__hero-frame,
.welcome-module-card__frame {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(118, 149, 180, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 25, 38, 0.97), rgba(9, 16, 26, 0.99));
  box-shadow:
    0 14px 28px rgba(4, 10, 18, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.welcome-product-board__hero-frame {
  gap: 12px;
  padding: 16px;
  min-height: 360px;
  border-color: rgba(93, 213, 206, 0.22);
  box-shadow:
    0 22px 42px rgba(4, 10, 18, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.welcome-product-board__hero-topbar,
.welcome-module-card__filters,
.welcome-product-board__hero-filters,
.welcome-product-board__hero-metrics,
.welcome-product-board__hero-actions,
.welcome-module-card__stats {
  display: grid;
  gap: 10px;
}

.welcome-product-board__hero-topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.welcome-product-board__hero-title,
.welcome-module-card__title {
  color: #f3f8fc;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.welcome-product-board__hero-state,
.welcome-filter-chip,
.welcome-action-card,
.welcome-module-stat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(118, 149, 180, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e7f4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.welcome-product-board__hero-state {
  padding: 0 10px;
  background: rgba(80, 157, 228, 0.15);
  color: #cfe7ff;
}

.welcome-product-board__hero-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.welcome-filter-chip {
  min-height: 34px;
  padding: 0 10px;
  color: #b4c6d8;
}

.welcome-filter-chip--active {
  background: linear-gradient(180deg, rgba(89, 186, 255, 0.95), rgba(57, 120, 192, 0.88));
  color: #f4f8fc;
  border-color: rgba(89, 186, 255, 0.34);
}

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

.welcome-mini-metric {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 88px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(118, 149, 180, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.welcome-mini-metric__label,
.welcome-product-board__hero-chart-title {
  color: #8fb9df;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-mini-metric__value {
  color: #f3f8fc;
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.05;
}

.welcome-product-board__hero-chart {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(118, 149, 180, 0.14);
  background: linear-gradient(180deg, rgba(17, 28, 42, 0.92), rgba(11, 19, 30, 0.96));
}

.welcome-ratio-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-ratio-bar__run {
  width: 39%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.welcome-ratio-bar__pass {
  width: 61%;
  background: linear-gradient(90deg, #3ecf8e, #2fbf7d);
}

.welcome-product-board__hero-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.welcome-action-card {
  min-height: 68px;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  line-height: 1.45;
  padding: 10px 12px;
}

.welcome-module-card__filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.welcome-module-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.welcome-module-card__eyebrow {
  margin-bottom: 5px;
  color: #8fb9df;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-module-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(89, 186, 255, 0.24);
  background: rgba(89, 186, 255, 0.1);
  color: #cfe7ff;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.welcome-module-stat {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 60px;
  padding: 10px 12px;
  text-align: left;
}

.welcome-module-stat__label {
  color: #8fb9df;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.welcome-module-stat__value {
  color: #f3f8fc;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.welcome-module-card__stack {
  display: grid;
  gap: 8px;
}

.welcome-module-card__stack span {
  display: grid;
  gap: 3px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(118, 149, 180, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7f4;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
}

.welcome-module-card__stack strong {
  color: #f3f8fc;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.welcome-support-deck {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 0;
  padding-top: 0;
  outline: none;
  overflow: visible;
}

.welcome-support-deck__stage {
  position: relative;
  min-height: 392px;
  perspective: none;
  cursor: pointer;
  margin-bottom: 0;
}

.welcome-support-card {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transform-origin: center;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease,
    filter 260ms ease;
}

.welcome-support-card .welcome-module-card__frame {
  min-height: 314px;
}

.welcome-support-card--hero .welcome-product-board__hero-frame {
  min-height: 360px;
}

.welcome-support-card.is-active {
  z-index: 3;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.welcome-support-card.is-next,
.welcome-support-card.is-last {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.welcome-support-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.welcome-support-card.is-active .welcome-module-card__frame,
.welcome-support-card.is-active .welcome-product-board__hero-frame {
  box-shadow:
    0 22px 42px rgba(4, 10, 18, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.welcome-support-deck__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 6;
}

.welcome-support-deck__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(118, 149, 180, 0.12);
  border-radius: 999px;
  background: rgba(5, 10, 17, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.welcome-support-deck__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 0;
  flex: 1 1 0;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #b8cada;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.welcome-support-deck__tab:hover,
.welcome-support-deck__tab:focus-visible,
.welcome-support-deck__tab.is-active {
  background: linear-gradient(180deg, rgba(89, 186, 255, 0.18), rgba(46, 96, 152, 0.16));
  border-color: rgba(89, 186, 255, 0.3);
  color: #eef6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  outline: none;
}

.welcome-support-deck__tab:not(.is-active) {
  opacity: 0.88;
}

.welcome-support-deck__hint {
  color: #90a8bf;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.welcome-preview__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 2px;
  color: #a9bfd4;
  font-size: 0.82rem;
  line-height: 1.4;
}

.welcome-preview__status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #5cc97d;
  box-shadow: 0 0 0 4px rgba(92, 201, 125, 0.12);
}

.welcome-proofband {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.welcome-proofband__item,
.welcome-story__panel,
.welcome-cta-card,
.welcome-flow__card,
.welcome-trust__item {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  border: 1px solid rgba(110, 141, 173, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(18, 24, 31, 0.98));
  box-shadow: none;
}

.welcome-proofband__item {
  display: grid;
  gap: 10px;
  min-height: 96px;
  padding: 24px 20px 22px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.welcome-proofband__item::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(214, 166, 66, 0.78), rgba(214, 166, 66, 0.06));
}

.welcome-proofband__item::after {
  content: "";
  position: absolute;
  inset: 12px 14px auto auto;
  width: 36px;
  height: 10px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.26) 0 22%,
      transparent 22% 36%,
      rgba(255, 255, 255, 0.18) 36% 58%,
      transparent 58% 72%,
      rgba(255, 255, 255, 0.12) 72% 100%);
  opacity: 0.58;
}

.welcome-proofband__label {
  color: #f4f8fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-proofband__text {
  color: #c9d7e4;
  font-size: 0.96rem;
  line-height: 1.62;
}

.welcome-link--muted {
  color: #cfdef0;
  opacity: 0.94;
}

.welcome-link--muted:hover,
.welcome-link--muted:focus-visible {
  color: #eef6ff;
  opacity: 1;
}

.welcome-auth-box .welcome-button--small {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 0;
  border: 1px solid rgba(105, 163, 214, 0.26);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background:
    linear-gradient(180deg, rgba(61, 103, 140, 0.96), rgba(38, 71, 104, 0.98));
  color: #f5f9fd;
  box-shadow:
    0 12px 22px rgba(4, 10, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin: 0;
  position: relative;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.welcome-auth-box .welcome-button--small:hover,
.welcome-auth-box .welcome-button--small:focus-visible {
  background:
    linear-gradient(180deg, rgba(72, 116, 156, 0.94), rgba(46, 84, 122, 0.98));
  color: #ffffff;
  box-shadow:
    0 14px 24px rgba(6, 14, 22, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.welcome-story-toggle {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border: 1px solid rgba(108, 141, 173, 0.18);
  background:
    linear-gradient(180deg, rgba(16, 22, 30, 0.98), rgba(11, 18, 26, 0.99));
  box-shadow: none;
  overflow: hidden;
}

.welcome-story-toggle__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.welcome-story-toggle__summary::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(69, 170, 166, 0.72), rgba(69, 170, 166, 0.05));
}

.welcome-story-toggle__summary::-webkit-details-marker {
  display: none;
}

.welcome-story-toggle__title {
  margin-top: 6px;
  color: #eef4fb;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.welcome-story-toggle__chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid #89c9ff;
  border-bottom: 2px solid #89c9ff;
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.welcome-story-toggle[open] .welcome-story-toggle__chevron {
  transform: rotate(225deg);
}

.welcome-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, 0.86fr);
  gap: 18px;
  padding: 0 18px 18px;
  margin: 0;
}

.welcome-story__panel,
.welcome-cta-card {
  padding: 22px 22px 24px;
}

.welcome-story__title,
.welcome-flow__title {
  margin: 8px 0 12px;
  color: #f4f8fc;
  font-size: 1.52rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.welcome-story__text {
  margin: 0;
  color: #c7d5e3;
  line-height: 1.72;
  font-size: 0.94rem;
}

.welcome-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #dce7f3;
  line-height: 1.8;
  font-size: 0.88rem;
}

.welcome-panel__actions {
  margin-top: 12px;
}

.welcome-cta-card {
  background:
    linear-gradient(180deg, rgba(21, 27, 34, 0.985), rgba(15, 21, 28, 0.99)),
    radial-gradient(circle at top right, rgba(255, 196, 74, 0.08), transparent 30%);
  border-color: rgba(255, 196, 74, 0.2);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.welcome-cta-card::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  height: auto;
  background: linear-gradient(180deg, rgba(255, 196, 74, 0.95), rgba(255, 196, 74, 0.06));
}

.welcome-cta-card__steps {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.welcome-cta-card__step {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(114, 146, 178, 0.12);
  color: #dbe7f4;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.42;
}

.welcome-flow {
  display: grid;
  gap: 18px;
  padding: 24px 24px 26px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border: 1px solid rgba(108, 141, 173, 0.18);
  background:
    linear-gradient(180deg, rgba(16, 22, 30, 0.98), rgba(11, 18, 26, 0.99));
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.welcome-flow::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(69, 170, 166, 0.66), rgba(69, 170, 166, 0.05));
}

.welcome-flow__intro {
  max-width: none;
}

.welcome-flow__title {
  white-space: nowrap;
}

.welcome-flow__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.welcome-flow__card {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 244px;
  padding: 26px 28px 28px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  border: 1px solid rgba(123, 151, 180, 0.18);
  background:
    linear-gradient(180deg, rgba(31, 35, 39, 0.98), rgba(26, 31, 36, 0.98)),
    radial-gradient(circle at 14% 72%, rgba(255, 255, 255, 0.03), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.welcome-flow__card::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--flow-accent), transparent 92%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.welcome-flow__card::after {
  content: "";
  position: absolute;
  inset: 12px 12px auto auto;
  width: 42px;
  height: 10px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.28) 0 24%,
      transparent 24% 38%,
      rgba(255, 255, 255, 0.2) 38% 62%,
      transparent 62% 76%,
      rgba(255, 255, 255, 0.16) 76% 100%);
  opacity: 0.7;
}

.welcome-flow__card:nth-child(1) {
  --flow-accent: #8eae40;
  --flow-text-accent: #d9ff17;
}

.welcome-flow__card:nth-child(2) {
  --flow-accent: #45aaa6;
  --flow-text-accent: #5af0ea;
}

.welcome-flow__card:nth-child(3) {
  --flow-accent: #a78ac8;
  --flow-text-accent: #d4b2ff;
}

.welcome-flow__card:nth-child(4) {
  --flow-accent: #d6a642;
  --flow-text-accent: #ffc44a;
}

.welcome-flow__number {
  color: var(--flow-text-accent, var(--flow-accent));
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.welcome-flow__card-title {
  margin: 0 0 16px;
  color: var(--flow-text-accent, var(--flow-accent));
  font-size: clamp(1.5rem, 1.8vw, 2.05rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 9ch;
}

.welcome-flow__card-text {
  margin: 0;
  color: rgba(244, 248, 252, 0.9);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 16ch;
}

.welcome-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 2px 0;
}

.welcome-trust__item {
  display: grid;
  gap: 8px;
  padding: 20px 18px 20px 20px;
  background:
    linear-gradient(180deg, rgba(23, 29, 36, 0.98), rgba(18, 24, 30, 0.98));
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.welcome-trust__item::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(214, 166, 66, 0.78), rgba(214, 166, 66, 0.06));
}

.welcome-trust__title {
  color: #f4f8fc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-trust__text {
  color: #c5d3e0;
  line-height: 1.66;
  font-size: 0.92rem;
}

.welcome-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.5fr);
  gap: 30px 38px;
  margin-top: 12px;
  padding: 28px 30px 24px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  border: 1px solid rgba(108, 141, 173, 0.18);
  background:
    linear-gradient(180deg, rgba(15, 20, 27, 0.985), rgba(10, 15, 22, 0.99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.welcome-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(167, 138, 200, 0.7), rgba(167, 138, 200, 0.05));
}

.welcome-footer__brand {
  display: grid;
  align-content: start;
  gap: 14px;
}

.welcome-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: #f4f8fc;
  text-decoration: none;
}

.welcome-footer__logo-mark {
  width: 112px;
  height: 76px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.welcome-footer__logo-text {
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.welcome-footer__tagline {
  margin: 0;
  max-width: 34ch;
  color: #b8c9d8;
  line-height: 1.74;
  font-size: 0.94rem;
}

.welcome-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.welcome-footer__column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.welcome-footer__heading {
  color: #f4f8fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.welcome-footer__link {
  color: #a9bfd4;
  text-decoration: none;
  line-height: 1.56;
  font-size: 0.92rem;
  transition: color 140ms ease, transform 140ms ease;
}

.welcome-footer__link:hover {
  color: #e8f2fb;
  transform: translateX(2px);
}

.welcome-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 176, 222, 0.1);
}

.welcome-footer__legal {
  color: #8ea7be;
  font-size: 0.86rem;
}

.hudl-auth-shell {
  width: min(560px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto auto;
  row-gap: 14px;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.hudl-brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hudl-brand__wordmark--image {
  align-items: center;
}

.hudl-brand {
  height: 74px;
  overflow: hidden;
}

.hudl-brand__banner {
  display: block;
  width: min(360px, 68vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 0;
  transform: translateY(-36%);
}

.hudl-card--dark {
  background:
    linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(18, 24, 31, 0.98)),
    radial-gradient(circle at top right, rgba(90, 240, 234, 0.08), transparent 28%);
  border: 1px solid rgba(110, 141, 173, 0.18);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 0 16px 34px rgba(4, 10, 18, 0.18);
  padding: 28px 28px 24px;
  width: 100%;
  display: grid;
  row-gap: 14px;
  position: relative;
  overflow: hidden;
}

.hudl-card--dark::before,
.hudlish-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(69, 170, 166, 0.66), rgba(69, 170, 166, 0.05));
}

.hudl-card--dark::after,
.hudlish-card::after {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 40px;
  height: 10px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.28) 0 24%,
      transparent 24% 38%,
      rgba(255, 255, 255, 0.2) 38% 62%,
      transparent 62% 76%,
      rgba(255, 255, 255, 0.16) 76% 100%);
  opacity: 0.58;
}

.hudl-card__title {
  margin: 2px 0 8px;
  text-align: left;
  font-size: 1.7rem;
  font-weight: 900;
  color: #f4f8fc;
}

.hudl-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: #e9eef5;
  background: rgba(8, 14, 21, 0.86);
  border: 1px solid rgba(110, 141, 173, 0.18);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
  margin-bottom: 12px;
}

.hudl-input::placeholder { color: #9aa3ad; }

.hudl-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.28);
  background: #0c1115;
}

.hudl-primary {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(99, 187, 255, 0.42);
  border-radius: 12px;
  font-weight: 900;
  color: #07131e;
  background: linear-gradient(180deg, #63bbff, #3a98ec);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(7, 18, 30, 0.24);
  transition: transform 0.05s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.hudl-primary:hover { filter: brightness(1.06); }
.hudl-primary:active { transform: translateY(1px); }

.hudl-note {
  margin: 8px 0 0;
  text-align: left;
  color: #cdd6df;
  opacity: 0.9;
  font-size: 0.95rem;
}

.hudl-legal {
  color: #8d98a4;
  font-size: 0.86rem;
  margin: 4px 0 0;
  text-align: center;
}

.hudl-legal a { color: var(--accent); text-decoration: none; }
.hudl-legal a:hover { text-decoration: underline; }

/* ===== Hudlish-style register / accept-invite ===== */
.hudlish-auth {
  display: grid;
  grid-template-rows: auto auto auto auto;
  justify-items: center;
  row-gap: 14px;
  width: min(560px, 92vw);
  position: relative;
  z-index: 1;
}

.hudlish-brand__wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.hudlish-brand__banner {
  display: block;
  width: min(360px, 68vw);
  height: auto;
  object-fit: contain;
  margin-bottom: -18px;
}

.invite-brand {
  justify-content: center;
  width: 100%;
}

.hudlish-card {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(18, 24, 31, 0.98)),
    radial-gradient(circle at top right, rgba(212, 178, 255, 0.08), transparent 26%);
  border: 1px solid rgba(110, 141, 173, 0.18);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 0 16px 34px rgba(4, 10, 18, 0.18);
  padding: 30px 28px 28px;
  display: grid;
  row-gap: 14px;
  position: relative;
  overflow: hidden;
}

.hudlish-title {
  margin: 0 0 6px;
  text-align: left;
  font-weight: 800;
  color: #f4f8fc;
  opacity: 1;
  font-size: 1.7rem;
}

.hudlish-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  color: #e9eef5;
  background: rgba(8, 14, 21, 0.86);
  border: 1px solid rgba(110, 141, 173, 0.18);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.hudlish-input::placeholder { color: #9aa3ad; }

.hudlish-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.25);
  background: #0c1115;
}

.hudlish-primary-btn {
  margin-top: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(99, 187, 255, 0.42);
  border-radius: 10px;
  font-weight: 800;
  color: #07131e;
  background: linear-gradient(180deg, #63bbff, #3a98ec);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(7, 18, 30, 0.24);
  transition: transform 0.05s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.hudlish-primary-btn:hover { filter: brightness(1.05); }
.hudlish-primary-btn:active { transform: translateY(1px); }

.hudlish-subrow {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #cdd6df;
  font-size: 0.95rem;
}

.hudlish-subrow a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.hudlish-subrow a:hover { text-decoration: underline; }

.invite-setup-card {
  row-gap: 18px;
}

.invite-setup-hero {
  display: grid;
  gap: 8px;
  text-align: center;
}

.invite-setup-eyebrow {
  justify-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(66, 165, 245, 0.14);
  border: 1px solid rgba(66, 165, 245, 0.2);
  color: #9bd1ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invite-setup-title {
  margin-bottom: 0;
}

.invite-setup-copy {
  margin: 0;
  color: #cdd6df;
  line-height: 1.55;
}

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

.invite-setup-summary__item {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #11171c;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.invite-setup-summary__label {
  color: #8fa0b2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-setup-summary__value {
  color: #eef4fb;
  font-size: 0.98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

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

.invite-setup-form-group {
  display: grid;
  gap: 8px;
}

.invite-setup-field-label {
  color: #9aacbd;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-setup-input {
  box-sizing: border-box;
}

.invite-setup-input--password {
  padding-right: 78px;
}

.invite-setup-input--locked {
  color: #9fb0c0;
  background: #131920;
  border-color: #26313b;
}

.invite-setup-input--locked:focus {
  box-shadow: none;
  border-color: #26313b;
  background: #131920;
}

.invite-setup-password-help {
  margin-top: -4px;
  color: #91a2b4;
  font-size: 0.9rem;
  line-height: 1.45;
}

.invite-setup-password-row {
  position: relative;
}

.invite-setup-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #8fcaff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.invite-setup-password-toggle:hover {
  color: #b6deff;
}

.invite-setup-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #c7d2dd;
  line-height: 1.55;
  text-align: center;
}

.invite-setup-subrow {
  margin-top: -4px;
}

.join-team-card .invite-setup-summary__item--wide {
  text-align: left;
}

.hudlish-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #97a3af;
  font-size: 0.95rem;
  margin: 8px 0 4px;
}

.hudlish-divider::before,
.hudlish-divider::after {
  content: "";
  height: 1px;
  background: rgba(110, 141, 173, 0.18);
  display: block;
}

.hudlish-social {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(110, 141, 173, 0.18);
  background: rgba(8, 14, 21, 0.86);
  color: #e9eef5;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.hudlish-social:hover { background: rgba(17, 27, 38, 0.96); }
.hudlish-social:active { transform: translateY(1px); }

.hudlish-social-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: #25303a;
}

.hudlish-google .hudlish-social-icon { background: #DB4437; }
.hudlish-facebook .hudlish-social-icon { background: #1877F2; }
.hudlish-apple .hudlish-social-icon { background: #000; }

.hudlish-legal {
  color: #8d98a4;
  font-size: 0.86rem;
  margin: 6px 0 0;
  text-align: center;
}

.hudlish-legal a { color: var(--accent); text-decoration: none; }
.hudlish-legal a:hover { text-decoration: underline; }

.auth-team-shell {
  width: min(680px, 94vw);
}

.auth-team-card {
  row-gap: 18px;
}

.auth-team-card__hero {
  text-align: left;
}

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

.auth-team-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(110, 141, 173, 0.18);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  background: rgba(8, 14, 21, 0.86);
  color: #eef5fc;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.auth-team-link:hover,
.auth-team-link:focus-visible {
  background: rgba(17, 27, 38, 0.96);
  border-color: rgba(99, 187, 255, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.auth-team-link__name {
  font-weight: 800;
  font-size: 1rem;
}

.auth-team-link__meta {
  color: #a9bccf;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-team-empty {
  margin: 0;
  color: #cdd6df;
  line-height: 1.6;
}

.auth-team-form {
  gap: 12px;
}

/* Screen-reader-only helper (for labels) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .invite-setup-summary {
    grid-template-columns: 1fr;
  }

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

/* ================================
   Hit Chart — Professional Polish
================================== */

.hit-chart-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

.hit-chart {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
}

/* softer grid */
.hit-chart th,
.hit-chart td {
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 10px 12px;
  text-align: center;
  color: #e9eef7;
  font-weight: 700;
  font-size: 0.95rem;
}

.hit-chart tr:last-child td { border-bottom: none; }
.hit-chart tr th:last-child,
.hit-chart tr td:last-child { border-right: none; }

/* Title bar */
.hit-chart .hc-title {
  background: #b80000;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  padding: 12px 12px;
}

/* Header rows */
.hit-chart .hc-subhead {
  background: rgba(66,165,245,0.18);
  color: #e9eef7;
  font-weight: 900;
}

.hit-chart .hc-subhead th {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Labels on left */
.hit-chart .hc-label {
  text-align: left;
  font-weight: 900;
  color: rgba(255,255,255,0.90);
  width: 120px;
  white-space: nowrap;
}

/* Distance bands (cleaner, less muddy) */
.hit-chart .hc-band-deep  { background: rgba(255, 80, 80, 0.16); }
.hit-chart .hc-band-mid   { background: rgba(255, 235, 59, 0.11); }
.hit-chart .hc-band-short { background: rgba(0, 230, 118, 0.11); }

/* Summary column on far right */
.hit-chart .hc-side-tot {
  background: rgba(255,255,255,0.07);
  font-weight: 900;
}

/* Strong vertical separators (CMP/ATT pair edges) */
.hit-chart .hc-divider {
  border-right: 2px solid rgba(255,255,255,0.18) !important;
}

/* Bottom summary styling */
.hit-chart .hc-summary-head th,
.hit-chart .hc-summary-sub th {
  background: rgba(66,165,245,0.22);
}

.hit-chart .hc-summary-row td {
  background: rgba(255,255,255,0.06);
}

/* QB/WR Summary hit chart: compact footprint */
#qb-hit-chart,
#wr-hit-chart {
  max-width: 840px;
}

#qb-hit-chart .hit-chart,
#wr-hit-chart .hit-chart {
  min-width: 760px;
  max-width: 840px;
  margin: 0 auto;
}

#qb-hit-chart .hit-chart th,
#qb-hit-chart .hit-chart td,
#wr-hit-chart .hit-chart th,
#wr-hit-chart .hit-chart td {
  padding: 7px 8px;
  font-size: 0.84rem;
}

#qb-hit-chart .hit-chart .hc-title,
#wr-hit-chart .hit-chart .hc-title {
  font-size: 0.95rem;
  padding: 9px 10px;
}

#qb-hit-chart .hit-chart .hc-subhead th,
#wr-hit-chart .hit-chart .hc-subhead th {
  font-size: 0.78rem;
}

#qb-hit-chart .hit-chart .hc-label,
#wr-hit-chart .hit-chart .hc-label {
  width: 96px;
  font-size: 0.8rem;
}


.pass-depth-summary-wrap {
  margin: 10px 0 12px;
  overflow-x: auto;
}

.pass-depth-summary {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
}

.pass-depth-summary th,
.pass-depth-summary td {
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 8px 10px;
  text-align: center;
  color: #e9eef7;
  font-weight: 800;
  font-size: 0.92rem;
}

.pass-depth-summary tr:last-child td { border-bottom: none; }
.pass-depth-summary tr th:last-child,
.pass-depth-summary tr td:last-child { border-right: none; }

.pass-depth-summary .pds-head th {
  background: rgba(66,165,245,0.18);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.85rem;
}

.pass-depth-summary .pds-label {
  text-align: left;
  width: 120px;
  white-space: nowrap;
}

.pass-depth-summary .pds-overall td {
  background: rgba(255,255,255,0.06);
}

.pass-depth-summary .pds-sep td {
  text-align: left;
  background: rgba(0,0,0,0.25);
  font-weight: 900;
  letter-spacing: 0.3px;
}

.pass-depth-summary .pds-deep  td:first-child { background: rgba(255, 80, 80, 0.85); color: #111; }
.pass-depth-summary .pds-mid   td:first-child { background: rgba(255, 235, 59, 0.85); color: #111; }
.pass-depth-summary .pds-short td:first-child { background: rgba(0, 230, 118, 0.85); color: #111; }

.pass-depth-summary .pds-deep td:not(:first-child)  { background: rgba(255, 80, 80, 0.14); }
.pass-depth-summary .pds-mid  td:not(:first-child)  { background: rgba(255, 235, 59, 0.11); }
.pass-depth-summary .pds-short td:not(:first-child) { background: rgba(0, 230, 118, 0.11); }

.qb-pressure-coverage-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
  margin: 6px 0 14px;
  max-width: 1120px;
}

.pc-table-wrap {
  overflow-x: auto;
}

.pc-table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}

.pc-table th,
.pc-table td {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 9px;
  text-align: center;
  color: #e9eef7;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: normal;
}

.pc-table tr:last-child td { border-bottom: none; }
.pc-table tr th:last-child,
.pc-table tr td:last-child { border-right: none; }

.pc-table .pc-title {
  background: rgba(66,165,245,0.18);
  color: #e9eef7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.81rem;
  font-weight: 900;
}

.pc-table .pc-group th,
.pc-table .pc-head th {
  background: rgba(66,165,245,0.18);
  color: #e9eef7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.81rem;
  font-weight: 900;
}

.pc-table .pc-row-label {
  text-align: center;
  font-weight: 900;
}

.pc-table--matrix .pc-row-label {
  text-align: center;
}

.pc-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.03);
}

.pc-table tbody tr:hover td {
  background: rgba(66,165,245,0.12);
}

@media (max-width: 1200px) {
  .qb-pressure-coverage-section {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 820px) {
  .qb-pressure-coverage-section {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Top Targets (WR Summary)
========================================================= */
.top-targets-wrap {
  margin: 10px 0 16px;
  overflow-x: visible;
}

.top-targets {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}

.top-targets th,
.top-targets td {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 9px;
  text-align: center;
  color: #e9eef7;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: normal;
}

.top-targets .tt-head th {
  background: rgba(66,165,245,0.18);
  color: #e9eef7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.81rem;
  font-weight: 900;
}

.top-targets .tt-rank {
  width: 36px;
  font-weight: 900;
}

.top-targets .tt-target {
  text-align: center;
  font-weight: 900;
  white-space: normal;
  min-width: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.top-targets th:nth-child(2),
.top-targets td:nth-child(2) {
  width: 72px;
}

.top-targets th:nth-child(2) {
  white-space: normal;
  line-height: 1.1;
}

.mini-table-wrap {
  overflow-x: auto;
}

.top-targets-table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}

.top-targets-table th,
.top-targets-table td {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 9px;
  text-align: center;
  color: #e9eef7;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: normal;
}

.top-targets-table .tt-rank {
  width: 36px;
  font-weight: 900;
}

.top-targets-table th:nth-child(2),
.top-targets-table td:nth-child(2) {
  width: 72px;
}

.top-targets-table .tt-head th {
  background: rgba(66,165,245,0.18);
  color: #e9eef7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.81rem;
  font-weight: 900;
}

.top-targets-table .tt-name {
  text-align: center;
  font-weight: 900;
  white-space: normal;
  min-width: 0;
  width: auto;
}

.top-targets-table th:nth-child(2) {
  white-space: normal;
  line-height: 1.1;
}

.top-targets tr:last-child td,
.top-targets-table tr:last-child td { border-bottom: none; }
.top-targets tr th:last-child,
.top-targets tr td:last-child,
.top-targets-table tr th:last-child,
.top-targets-table tr td:last-child { border-right: none; }

.top-targets tbody tr:nth-child(odd) td,
.top-targets-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.03);
}

.top-targets tbody tr:hover td,
.top-targets-table tbody tr:hover td {
  background: rgba(66,165,245,0.12);
}

.tt-filter-wrap {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.tt-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tt-filter-title {
  color: #cfe6ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tt-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tt-filter-chip {
  min-width: 52px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.tt-filter-chip.chip {
  border-color: #9ec9f4;
  box-shadow: 0 1px 5px rgba(0,0,0,0.20);
}

.tt-filter-chip.chip--selected {
  box-shadow: 0 3px 10px rgba(66,165,245,0.35);
}

.tt-filter-wrap .btn-reset-targets {
  margin: 0;
  padding: 4px 11px;
  font-size: 0.76rem;
  letter-spacing: 0.2px;
}

/* =========================================================
   Down & Distance (Pass)
========================================================= */
.down-distance-table {
  width: 100%;
  min-width: 560px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}

.down-distance-table th,
.down-distance-table td {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 9px;
  text-align: center;
  color: #e9eef7;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: normal;
}

.down-distance-table .dd-head th {
  background: rgba(66,165,245,0.18);
  color: #e9eef7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.81rem;
  font-weight: 900;
}

.down-distance-table tr:last-child td { border-bottom: none; }
.down-distance-table tr th:last-child,
.down-distance-table tr td:last-child { border-right: none; }

.down-distance-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.03);
}

.down-distance-table tbody tr:hover td {
  background: rgba(66,165,245,0.12);
}

/* =========================================================
   Top Targeted Routes (WR Summary)
========================================================= */
.top-routes-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}

.top-routes-table th,
.top-routes-table td {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 9px;
  text-align: center;
  color: #e9eef7;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: normal;
}

.top-routes-table .tr-head th {
  background: rgba(66,165,245,0.18);
  color: #e9eef7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.81rem;
  font-weight: 900;
}

.top-routes-table .tr-rank {
  width: 36px;
  font-weight: 900;
}

.top-routes-table .tr-route {
  text-align: center;
  font-weight: 900;
}

.top-routes-table th:nth-child(2),
.top-routes-table td:nth-child(2) {
  width: 180px;
}

.top-routes-table tr:last-child td { border-bottom: none; }
.top-routes-table tr th:last-child,
.top-routes-table tr td:last-child { border-right: none; }

.top-routes-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.03);
}

.top-routes-table tbody tr:hover td {
  background: rgba(66,165,245,0.12);
}

.qb-pass-insights {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.qb-pass-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qb-pass-insight-card {
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(139, 186, 233, 0.2);
}

.qb-pass-insight-card--redzone {
  grid-column: auto;
}

.qb-pass-insight-card--redzone .qb-pass-insight-headline,
.qb-pass-insight-card--redzone .qb-pass-insight-chip,
.qb-pass-insight-card--redzone .qb-pass-insight-mini-row,
.qb-pass-insight-card--redzone .qb-pass-insight-mini-row strong {
  font-weight: 900;
}

.qb-pass-insight-title {
  margin-bottom: 6px;
  color: rgba(114, 194, 255, 0.95);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.qb-pass-insight-headline {
  color: rgba(218, 232, 245, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
}

.qb-pass-insight-subhead {
  margin-top: 6px;
  margin-bottom: 5px;
  color: rgba(176, 206, 235, 0.86);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.32px;
  font-weight: 800;
}

.qb-pass-insight-list {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.qb-pass-insight-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid rgba(149, 188, 227, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.qb-pass-insight-row:hover {
  border-color: rgba(171, 211, 248, 0.36);
  background: rgba(71, 128, 178, 0.14);
}

.qb-pass-insight-rank {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(77, 161, 235, 0.28);
  border: 1px solid rgba(125, 193, 255, 0.45);
  color: rgba(234, 245, 255, 0.95);
  font-size: 0.72rem;
  font-weight: 800;
}

.qb-pass-insight-main {
  color: rgba(231, 241, 250, 0.95);
  font-weight: 700;
  font-size: 0.75rem;
}

.qb-pass-insight-meta {
  color: rgba(200, 221, 241, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.qb-pass-insight-chip-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.qb-pass-insight-chip {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(164, 204, 242, 0.3);
  background: rgba(68, 129, 181, 0.18);
  color: rgba(225, 238, 249, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
}

.qb-pass-insight-mini-list {
  margin-top: 4px;
  display: grid;
  gap: 4px;
}

.qb-pass-insight-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border: 1px solid rgba(149, 188, 227, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(221, 234, 245, 0.9);
  font-size: 0.73rem;
}

.qb-pass-insight-mini-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qb-pass-insight-rank-sm {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(149, 188, 227, 0.4);
  background: rgba(77, 161, 235, 0.22);
  color: rgba(233, 244, 255, 0.95);
  font-size: 0.62rem;
  font-weight: 800;
}

.qb-pass-insight-empty {
  color: rgba(190, 207, 225, 0.78);
  font-size: 0.74rem;
  border: 1px dashed rgba(151, 185, 220, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 980px) {
  .qb-pass-insights-grid {
    grid-template-columns: 1fr;
  }

  .qb-pass-insight-card--redzone {
    grid-column: auto;
  }
}

/* =========================================================
   Leading Rushers (Defense Run)
========================================================= */
.leading-rushers-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
}

.leading-rushers-table th,
.leading-rushers-table td {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 9px 10px;
  text-align: center;
  color: #e9eef7;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: normal;
}

.leading-rushers-table .lr-head th {
  background: rgba(66,165,245,0.18);
  color: #e9eef7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.82rem;
  font-weight: 900;
}

.leading-rushers-table .lr-name {
  font-weight: 900;
}

.leading-rushers-table tr:last-child td { border-bottom: none; }
.leading-rushers-table tr th:last-child,
.leading-rushers-table tr td:last-child { border-right: none; }

.leading-rushers-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.03);
}

.leading-rushers-table tbody tr:hover td {
  background: rgba(66,165,245,0.12);
}

/* Level table + pie row */
.qb-level-row{
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 10px 0 16px;
}

@media (max-width: 980px){
  .qb-level-row{
    grid-template-columns: 1fr;
  }
}

.qb-pie-card{
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  justify-self: start;
}

.qb-pie-title{
  text-align: center;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  margin: 4px 0 8px;
}

#qb-completions-pie{
  display:block;
  margin: 0 auto 0 0;
}

.qb-pie-legend{
  display: grid;
  gap: 4px;
  margin: 0 auto 0;
  width: 180px;
}

.qb-pie-legend-item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
}

.qb-pie-dot{
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display:inline-block;
  margin-right: 8px;
}

.qb-pie-left{
  display:flex;
  align-items:center;
  gap: 8px;
}

/* =========================================================
   Internal App Tokens / Tactical Shell System
   Shared by dashboard, manage-team, team-profile, widgets
========================================================= */
:root {
  --pro-bg-1: #0b0f14;
  --pro-bg-2: #121820;
  --pro-panel: #171d24;
  --pro-panel-2: #11171e;
  --pro-border: rgba(138, 173, 205, 0.22);
  --pro-border-soft: rgba(138, 173, 205, 0.14);
  --pro-text: #eef5fc;
  --pro-text-soft: #a9bccf;
  --pro-accent: #5796c8;
  --pro-gold: #d6a642;
  --pro-cyan: #45aaa6;
  --pro-shell-bg:
    linear-gradient(180deg, rgba(16, 22, 30, 0.985), rgba(12, 18, 26, 0.99));
  --pro-shell-bg-soft:
    linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(18, 24, 31, 0.98));
  --pro-shell-shadow: 0 16px 34px rgba(4, 10, 18, 0.18);
  --pro-shell-shadow-soft: 0 10px 20px rgba(4, 10, 18, 0.14);
  --pro-shell-clip-lg: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --pro-shell-clip-sm: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  --pro-rail-gold: linear-gradient(180deg, rgba(214, 166, 66, 0.74), rgba(214, 166, 66, 0.06));
  --pro-rail-cyan: linear-gradient(180deg, rgba(69, 170, 166, 0.62), rgba(69, 170, 166, 0.05));
  --pro-rail-violet: linear-gradient(180deg, rgba(167, 138, 200, 0.64), rgba(167, 138, 200, 0.05));
}

body {
  background:
    radial-gradient(circle at top left, rgba(89, 180, 255, 0.08), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 196, 74, 0.06), transparent 20%),
    linear-gradient(180deg, #040608 0%, #0b0f14 42%, #121820 100%);
  color: var(--pro-text);
}

body:not(.welcome-page):not(.auth-page) {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, #111416 0%, #08090a 100%);
}

body:not(.welcome-page):not(.auth-page)::before,
body:not(.welcome-page):not(.auth-page)::after {
  content: "";
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body:not(.welcome-page):not(.auth-page) .welcome-atmosphere {
  z-index: 0;
}

body:not(.welcome-page):not(.auth-page) .topbar,
body:not(.welcome-page):not(.auth-page) .subbar,
body:not(.welcome-page):not(.auth-page) .page-container {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] {
  --bg: #e9eef4;
  --text: #16212d;
  --surface: #fdfefe;
  --surface-dark: #dbe4ec;
  --surface-darker: #c7d2dd;
  --border: #c2cfdb;
  --accent: #3d95e8;
  --accent-weak: #1f4f7c;
  --pro-bg-1: #f3f5f7;
  --pro-bg-2: #e2e8ef;
  --pro-panel: #fcfdfd;
  --pro-panel-2: #f4f7fa;
  --pro-border: rgba(96, 127, 158, 0.2);
  --pro-border-soft: rgba(96, 127, 158, 0.14);
  --pro-text: #142231;
  --pro-text-soft: #5f7387;
  --pro-accent: #408fdc;
  --pro-gold: #c79634;
  --pro-shell-bg: linear-gradient(180deg, rgba(252, 253, 253, 0.99), rgba(241, 245, 249, 0.99));
  --pro-shell-bg-soft: linear-gradient(180deg, rgba(251, 252, 253, 0.985), rgba(242, 246, 250, 0.985));
  --pro-shell-shadow: 0 16px 34px rgba(47, 76, 106, 0.1);
  --pro-shell-shadow-soft: 0 10px 20px rgba(47, 76, 106, 0.08);
  --pro-rail-gold: linear-gradient(180deg, rgba(199, 150, 52, 0.72), rgba(199, 150, 52, 0.08));
  --pro-rail-cyan: linear-gradient(180deg, rgba(64, 143, 220, 0.46), rgba(64, 143, 220, 0.05));
}

html[data-theme="light"] body {
  background:
    linear-gradient(180deg, #dde5ee 0%, #c9d4df 100%);
  color: var(--pro-text);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) {
  background:
    linear-gradient(180deg, #d9e2eb 0%, #c7d2dd 100%);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .welcome-atmosphere {
  opacity: 0.03;
  filter: saturate(0.5) brightness(1.01);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .topbar {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(240, 245, 250, 0.96) 74%, rgba(234, 240, 246, 0.96));
  border-bottom-color: rgba(78, 111, 144, 0.14);
  box-shadow: 0 6px 18px rgba(38, 63, 88, 0.1);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .topbar__link,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .icon-btn,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .user-chip__name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .subtab,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .theme-switch {
  color: #223446;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .topbar__link:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .subtab:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .icon-btn:hover {
  background: rgba(47, 112, 174, 0.08);
  color: #16304b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .topbar__link.active {
  color: #16304b;
  background: linear-gradient(180deg, rgba(98, 177, 247, 0.28), rgba(82, 158, 226, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .btn-upload {
  border-color: rgba(62, 118, 171, 0.3);
  background: linear-gradient(180deg, #5fb2f4, #2f7fc6);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(47, 111, 168, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .user-chip,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .logout-mini,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .theme-switch__track {
  border-color: rgba(103, 131, 161, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .theme-switch--view .theme-switch__track {
  background: linear-gradient(180deg, rgba(223, 240, 223, 0.98), rgba(201, 225, 201, 0.98));
  border-color: rgba(111, 156, 111, 0.26);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .theme-switch--view .theme-switch__input:checked + .theme-switch__track {
  background: linear-gradient(180deg, rgba(176, 214, 246, 0.98), rgba(147, 194, 236, 0.98));
  border-color: rgba(89, 143, 191, 0.34);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .user-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 245, 251, 0.96));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .logout-mini {
  color: #38516b;
  background: rgba(244, 248, 252, 0.96);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .subbar {
  background:
    linear-gradient(180deg, rgba(238, 244, 250, 0.98), rgba(226, 235, 244, 0.98));
  border-bottom-color: rgba(78, 111, 144, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-name {
  border-right-color: rgba(77, 106, 135, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .subtab-dropdown__menu {
  border-color: rgba(103, 190, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 251, 0.98));
  box-shadow: 0 16px 28px rgba(38, 63, 88, 0.12);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .subtab-dropdown__item {
  color: #29405a;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-logo-wrap {
  background: #f9fbfd;
  box-shadow: 0 6px 14px rgba(38, 63, 88, 0.1);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .report-overview-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .widget-section-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .section-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .widget-title {
  color: #266aa9;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .report-overview-title {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(199, 150, 52, 0.36);
}

html[data-theme="light"] body.table-teams:not(.welcome-page):not(.auth-page) .report-overview-title {
  display: block;
  width: fit-content;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .widget-value {
  color: #0f1d2c;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .widget-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-card-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .subtab-dropdown__item .widget-sub {
  color: #42586d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .widget-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #report-overview-section,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #qb-summary-section,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #rb-summary-section,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-shell.gameplan-widget,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-control-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-hero,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .manage-team-shell > *,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-shell > * {
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.985), rgba(236, 242, 248, 0.985));
  border-color: rgba(99, 131, 162, 0.26);
  box-shadow:
    0 12px 24px rgba(47, 76, 106, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #report-overview-section,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #qb-summary-section,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #rb-summary-section,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section {
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #report-overview-section::before,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #qb-summary-section::before,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #rb-summary-section::before,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--pro-rail-gold);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .overall-team-card {
  background:
    linear-gradient(180deg, rgba(241, 247, 252, 0.99), rgba(227, 237, 246, 0.99)),
    radial-gradient(circle at top right, rgba(74, 174, 255, 0.1), transparent 28%);
  border-color: rgba(101, 156, 201, 0.32);
  box-shadow: 0 10px 18px rgba(57, 87, 117, 0.11);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .playtype-toggle {
  background: rgba(215, 225, 236, 0.98);
  border-color: rgba(96, 127, 158, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .playtype-pill {
  color: #34495f;
  font-weight: 800;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .playtype-pill:hover {
  background: rgba(47, 112, 174, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .btn-reset-filters {
  background: #d7e1eb;
  color: #1f3951;
  border-color: rgba(96, 127, 158, 0.24);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-card__title {
  background: linear-gradient(180deg, #58adf4 0%, #3185d5 100%);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(55, 116, 175, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-group,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-list--scroll {
  background:
    linear-gradient(180deg, rgba(235, 241, 247, 0.98), rgba(224, 232, 240, 0.98));
  border-color: rgba(108, 138, 168, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-btn,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-opponent-chip {
  background: linear-gradient(180deg, rgba(229, 237, 245, 0.98), rgba(214, 225, 236, 0.98));
  border-color: rgba(104, 136, 168, 0.24);
  color: #24425d;
  box-shadow: 0 4px 10px rgba(57, 87, 117, 0.08);
  font-weight: 800;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-btn:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-opponent-chip:hover {
  border-color: rgba(53, 132, 207, 0.34);
  color: #173856;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip--selected,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-opponent-chip.active,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .playtype-pill.active,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-mode-pill.active {
  background: linear-gradient(180deg, #5eb4fb 0%, #378ddf 100%);
  border-color: #378ddf;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(55, 116, 175, 0.2);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-mode-toggle {
  background: rgba(214, 224, 235, 0.98);
  border-color: rgba(96, 127, 158, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 14px rgba(57, 87, 117, 0.06);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-mode-pill {
  color: #34495f;
  font-weight: 800;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .widget-section-title::before,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .section-title::before {
  background: linear-gradient(180deg, rgba(199, 150, 52, 0.9), rgba(163, 119, 28, 0.42));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .overall-team-card .widget-title {
  color: #246daf;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .overall-team-card .widget-sub {
  color: #41586c;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-pass-ratio__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-pass-ratio__value,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-pass-ratio__total,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-ratio-meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-values,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-bar-count,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-total,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-gap-label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-gap-metric,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-count,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-pct,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-total,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-targets th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-targets td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-targets-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-targets-table td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table td {
  color: #22384d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .widget-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-card-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-pass-ratio__total,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-total,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-total {
  color: #4a6075;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-hero {
  background:
    linear-gradient(135deg, rgba(236, 247, 255, 0.98) 0%, rgba(218, 232, 244, 0.98) 100%);
  border-color: rgba(74, 128, 180, 0.28);
  box-shadow:
    0 14px 26px rgba(47, 76, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-eyebrow {
  background: rgba(47, 143, 220, 0.12);
  border-color: rgba(47, 143, 220, 0.28);
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-hero__title {
  color: #15324d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-hero__text {
  color: #486176;
  font-weight: 700;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-notes {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(232, 241, 249, 0.98));
  border-color: rgba(83, 119, 153, 0.28);
  color: #17324c;
  box-shadow:
    inset 0 1px 2px rgba(47, 76, 106, 0.08),
    0 6px 14px rgba(47, 76, 106, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-notes::placeholder {
  color: #657a8e;
  opacity: 1;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-card--offense,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-card--defense {
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.99), rgba(232, 240, 248, 0.99));
  border-color: rgba(83, 119, 153, 0.24);
  box-shadow:
    0 12px 24px rgba(47, 76, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-head {
  border-bottom-color: rgba(83, 119, 153, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-kicker,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-phase-card .widget-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-section .widget-title {
  color: #1f6eac;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-head .section-title {
  color: #15324d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-sheet-edit-toggle {
  border-color: rgba(55, 141, 223, 0.24);
  background: rgba(55, 141, 223, 0.1);
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-sheet-edit-toggle:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-sheet-edit-toggle:focus-visible {
  border-color: rgba(55, 141, 223, 0.48);
  background: rgba(55, 141, 223, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-card--editing .gameplan-sheet-edit-toggle {
  border-color: rgba(31, 140, 101, 0.38);
  background: rgba(31, 140, 101, 0.12);
  color: #1f7c5c;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-top-priority {
  background: linear-gradient(180deg, rgba(245, 249, 253, 0.98), rgba(229, 238, 247, 0.98));
  border-color: rgba(83, 119, 153, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-top-priority__label {
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-top-priority__text {
  color: #20384d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-metric,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-phase-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-plan-section {
  background: linear-gradient(180deg, rgba(245, 249, 253, 0.98), rgba(229, 238, 247, 0.98));
  border-color: rgba(83, 119, 153, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-metric__label {
  color: #5b7185;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-metric__value {
  color: #102b43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-index {
  background: linear-gradient(180deg, rgba(72, 172, 240, 0.22), rgba(52, 139, 214, 0.18));
  color: #1f6eac;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-text {
  color: #334b61;
  font-weight: 750;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-text--editing {
  background: rgba(248, 251, 254, 0.96);
  outline-color: rgba(55, 141, 223, 0.62);
  box-shadow:
    inset 0 1px 2px rgba(47, 76, 106, 0.08),
    0 4px 10px rgba(47, 76, 106, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-action {
  border-color: rgba(55, 141, 223, 0.22);
  background: rgba(55, 141, 223, 0.1);
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-action:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-action:focus-visible {
  border-color: rgba(55, 141, 223, 0.45);
  background: rgba(55, 141, 223, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-action--danger {
  border-color: rgba(185, 62, 62, 0.22);
  background: rgba(185, 62, 62, 0.08);
  color: #a33f3f;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-action--danger:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-action--danger:focus-visible {
  border-color: rgba(185, 62, 62, 0.45);
  background: rgba(185, 62, 62, 0.15);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-list-empty .gameplan-list-index {
  background: rgba(83, 119, 153, 0.12);
  color: #60778b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-source-stat {
  background: linear-gradient(180deg, rgba(248, 251, 254, 0.99), rgba(232, 240, 248, 0.99));
  border-color: rgba(83, 119, 153, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-source-stat__label {
  color: #5b7185;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameplan-source-stat__value {
  color: #15324d;
  font-weight: 950;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-shell.game-day-widget {
  background:
    linear-gradient(180deg, rgba(247, 251, 254, 0.99), rgba(232, 241, 249, 0.99));
  border-color: rgba(82, 126, 169, 0.24);
  box-shadow:
    0 14px 28px rgba(47, 76, 106, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card--primary {
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.99), rgba(233, 241, 248, 0.99));
  border-color: rgba(83, 119, 153, 0.24);
  box-shadow:
    0 10px 22px rgba(47, 76, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card::before {
  background: linear-gradient(90deg, rgba(51, 141, 220, 0.24), rgba(51, 141, 220, 0));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card__head {
  border-bottom-color: rgba(83, 119, 153, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card__head .section-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-current__value,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-ratio-stat__value,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-direction-card__value,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-summary__title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-row__main,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-route-name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-type,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log__text {
  color: #15324d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .gameday-intro,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-card .widget-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-row__stamp,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-row__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-direction-card__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-empty,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-summary__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-chart-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-hit-chart-hint,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-legend__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-note,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-route-meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-tag,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log__meta {
  color: #4a6075;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-field__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-current__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-row__index,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-ratio-stat__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-direction-card__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-chart-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-stat__label {
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-sample {
  color: #2d6fa8;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-stat__value {
  color: #20384d;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-grid > .game-day-field,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-filter-pill-group,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-section,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-group,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-panel,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-block,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-ratio-stat,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-direction-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-detail-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-route-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-stat,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-current,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log__item {
  background: linear-gradient(180deg, rgba(245, 249, 253, 0.98), rgba(228, 238, 247, 0.98));
  border-color: rgba(83, 119, 153, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-toolbar-pills,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-side-toggle {
  background: rgba(215, 226, 237, 0.9);
  border-color: rgba(96, 127, 158, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-card .filter-control,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card--drive .filter-control,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card--playcall .filter-control {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(231, 240, 248, 0.98));
  border-color: rgba(83, 119, 153, 0.28);
  color: #17324c;
  color-scheme: light;
  box-shadow: inset 0 1px 2px rgba(47, 76, 106, 0.07);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-card .filter-control option,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-card .filter-control[multiple] option {
  background: #f6fafe;
  color: #17324c;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card .filter-control::placeholder,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-card textarea::placeholder {
  color: #657a8e;
  opacity: 1;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-filter-pill.is-empty,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #game-day-predictor-personnel .game-day-filter-pill.is-empty {
  color: #60778b;
  border-color: rgba(83, 119, 153, 0.18);
  background: rgba(232, 240, 248, 0.72);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-card #game-day-predictor-reset,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-action-btn,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #game-day-export {
  border-color: rgba(83, 119, 153, 0.26);
  background: linear-gradient(180deg, rgba(229, 237, 245, 0.98), rgba(214, 225, 236, 0.98));
  color: #1f3951;
  box-shadow: 0 5px 12px rgba(57, 87, 117, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-btn {
  background: linear-gradient(180deg, #fff0b9 0%, #e8bd55 100%);
  color: #263447;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 16px rgba(158, 103, 28, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-state-btn {
  border-color: rgba(55, 141, 223, 0.28);
  background: rgba(55, 141, 223, 0.1);
  color: #1f6eac;
  box-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-state-btn--ending {
  border-color: rgba(185, 62, 62, 0.3);
  background: rgba(185, 62, 62, 0.1);
  color: #a33f3f;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-yardline-btn {
  border-color: rgba(83, 119, 153, 0.22);
  background: rgba(232, 240, 248, 0.72);
  color: #2a4b66;
  box-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-yardline-pad {
  border-color: rgba(83, 119, 153, 0.18);
  background: rgba(245, 250, 254, 0.98);
  box-shadow: 0 14px 30px rgba(57, 87, 117, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-yardline-pad button {
  border-color: rgba(83, 119, 153, 0.16);
  background: rgba(218, 231, 242, 0.8);
  color: #18324b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-toggle-icon {
  border-color: rgba(55, 141, 223, 0.24);
  background: rgba(55, 141, 223, 0.1);
  color: #1f6eac;
  box-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-action,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log-edit-btn {
  border-color: rgba(55, 141, 223, 0.22);
  background: rgba(55, 141, 223, 0.1);
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-action:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log-edit-btn:hover {
  border-color: rgba(55, 141, 223, 0.42);
  background: rgba(55, 141, 223, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log-toggle {
  border-color: rgba(55, 141, 223, 0.22);
  background: rgba(55, 141, 223, 0.08);
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log-toggle:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log-toggle:focus-visible {
  border-color: rgba(55, 141, 223, 0.42);
  background: rgba(55, 141, 223, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log-edit {
  background: rgba(232, 240, 248, 0.78);
  border-color: rgba(83, 119, 153, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log-edit__label {
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-pick:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-pick:focus-visible {
  background: rgba(55, 141, 223, 0.1);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-row:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-row:focus-within {
  border-color: rgba(55, 141, 223, 0.3);
  background: rgba(55, 141, 223, 0.06);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-edit {
  border-color: rgba(55, 141, 223, 0.24);
  background: rgba(55, 141, 223, 0.08);
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-edit:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-edit:focus-visible {
  border-color: rgba(55, 141, 223, 0.44);
  background: rgba(55, 141, 223, 0.15);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-call-library-row--editing {
  border-color: rgba(55, 141, 223, 0.34);
  background: rgba(55, 141, 223, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-text-keyboard {
  background: linear-gradient(180deg, #eaf3fb 0%, #dfeaf3 100%);
  border-color: #aac7df;
  box-shadow: 0 14px 26px rgba(57, 93, 121, 0.13);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-text-keyboard__head {
  color: #1d65a4;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-text-keyboard__close {
  background: #d8e7f3;
  border-color: #aac7df;
  color: #16344f;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-text-keyboard__keys button {
  background: #f4f9fd;
  border-color: #b7cee1;
  color: #17314a;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-text-keyboard__keys button[data-keyboard-token] {
  background: #d9edfc;
  color: #165f9d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-text-keyboard__keys button[data-keyboard-action] {
  background: #fff2d2;
  border-color: #e1ba66;
  color: #60420e;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-text-keyboard__keys button:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-text-keyboard__keys button:focus-visible {
  background: #cfe9fb;
  border-color: #65a9dc;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-item.is-active {
  border-color: rgba(55, 141, 223, 0.3);
  background: rgba(214, 232, 247, 0.82);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-chevron {
  border-color: rgba(55, 141, 223, 0.24);
  background: rgba(55, 141, 223, 0.1);
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-meta-line {
  color: #496176;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-play {
  border-color: rgba(83, 119, 153, 0.14);
  background: rgba(246, 250, 253, 0.78);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-play__body,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-play__body em {
  color: #496176;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-drive-play__body strong {
  color: #18324b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-head .game-day-result-export-btn,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #game-day-log-play {
  border-color: rgba(31, 140, 101, 0.3);
  background: rgba(31, 140, 101, 0.1);
  color: #1f7c5c;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-result-log-head .game-day-result-clear-btn {
  border-color: rgba(185, 62, 62, 0.28);
  background: rgba(185, 62, 62, 0.08);
  color: #a33f3f;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #game-day-print {
  border-color: rgba(188, 139, 38, 0.28);
  background: rgba(188, 139, 38, 0.1);
  color: #7a5715;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #game-day-predictor-output.game-day-predictor-placeholder,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log-empty {
  background: rgba(232, 240, 248, 0.72);
  border-color: rgba(83, 119, 153, 0.2);
  color: #60778b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-section-label {
  border-color: rgba(101, 163, 13, 0.42);
  background:
    linear-gradient(90deg, rgba(236, 252, 203, 0.96), rgba(247, 252, 237, 0.9));
  box-shadow:
    inset 5px 0 0 rgba(132, 204, 22, 0.72),
    0 8px 18px rgba(63, 98, 18, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-predictor-section-label__title {
  color: #1f3d02;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-live-predictor-zone {
  border-color: rgba(55, 141, 223, 0.3);
  background:
    linear-gradient(180deg, rgba(218, 238, 255, 0.64), rgba(247, 251, 255, 0.72));
  box-shadow:
    inset 0 4px 0 rgba(55, 141, 223, 0.58),
    0 14px 28px rgba(49, 78, 107, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-live-predictor-zone::before {
  background: linear-gradient(90deg, transparent, rgba(55, 141, 223, 0.48), transparent);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-ratio-bar {
  background: rgba(132, 156, 180, 0.22);
  border-color: rgba(83, 119, 153, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-direction-card.is-top {
  border-color: rgba(55, 141, 223, 0.42);
  background: rgba(55, 141, 223, 0.12);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-summary {
  border-color: rgba(55, 141, 223, 0.36);
  background:
    linear-gradient(135deg, rgba(219, 239, 255, 0.98), rgba(244, 249, 253, 0.96));
  box-shadow:
    inset 5px 0 0 rgba(55, 141, 223, 0.66),
    0 10px 22px rgba(49, 78, 107, 0.1);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-confidence__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-summary__certainty,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-rank,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-route-rank,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-rank {
  background: rgba(55, 141, 223, 0.12);
  border-color: rgba(55, 141, 223, 0.24);
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-confidence__value,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-projected-summary__pct {
  color: #9c6a0a;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-route-pct {
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat {
  background: rgba(143, 193, 242, 0.2);
  border-color: rgba(83, 119, 153, 0.2);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-legend__swatch.is-heat-0 { background: rgba(241, 247, 252, 0.98); }
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-legend__swatch.is-heat-1 { background: rgba(198, 224, 244, 0.98); }
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-legend__swatch.is-heat-2 { background: rgba(155, 202, 238, 0.98); }
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-legend__swatch.is-heat-3 { background: rgba(101, 181, 235, 0.98); }
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-legend__swatch.is-heat-4 { background: rgba(79, 166, 229, 0.98); }

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__corner,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__zone-head,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__band-label {
  background: rgba(214, 226, 238, 0.96);
  color: #102b43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell {
  background: rgba(241, 247, 252, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-0 {
  background: rgba(241, 247, 252, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-1 {
  background: linear-gradient(180deg, rgba(213, 233, 247, 0.98), rgba(198, 224, 244, 0.98));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-2 {
  background: linear-gradient(180deg, rgba(178, 216, 244, 0.98), rgba(155, 202, 238, 0.98));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-3 {
  background: linear-gradient(180deg, rgba(140, 203, 244, 0.98), rgba(101, 181, 235, 0.98));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-4 {
  background: linear-gradient(180deg, rgba(112, 190, 239, 0.98), rgba(79, 166, 229, 0.98));
  box-shadow: inset 0 0 0 1px rgba(21, 94, 158, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-3 .game-day-pass-heat__main,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-4 .game-day-pass-heat__main,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-3 .game-day-pass-heat__sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-4 .game-day-pass-heat__sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-3 .game-day-pass-heat__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-4 .game-day-pass-heat__meta {
  color: #102b43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__main {
  color: #102b43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__meta {
  color: #20384d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-2 .game-day-pass-heat__main,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-3 .game-day-pass-heat__main,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-4 .game-day-pass-heat__main,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-2 .game-day-pass-heat__sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-3 .game-day-pass-heat__sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-4 .game-day-pass-heat__sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-2 .game-day-pass-heat__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-3 .game-day-pass-heat__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat__cell.is-heat-4 .game-day-pass-heat__meta {
  color: #102b43;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-popup {
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(235, 243, 250, 0.98));
  border-color: rgba(55, 141, 223, 0.28);
  box-shadow: 0 14px 28px rgba(47, 76, 106, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-popup__title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-popup__rank {
  color: #1f6eac;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-popup__route {
  color: #15324d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-popup__sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-popup__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-popup__empty {
  color: #4a6075;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-pass-heat-popup__row {
  background: rgba(232, 240, 248, 0.72);
  border-color: rgba(83, 119, 153, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-check {
  background: rgba(232, 240, 248, 0.72);
  border-color: rgba(83, 119, 153, 0.18);
  color: #334b61;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-shift {
  color: #365066;
  background: rgba(232, 240, 248, 0.78);
  border-color: rgba(83, 119, 153, 0.2);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-shift.is-up {
  color: #1f7c5c;
  background: rgba(31, 140, 101, 0.13);
  border-color: rgba(31, 140, 101, 0.3);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-script-shift.is-down {
  color: #a33f3f;
  background: rgba(185, 62, 62, 0.1);
  border-color: rgba(185, 62, 62, 0.28);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .game-day-log__remove {
  color: #60778b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-reset,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-pill {
  border-color: rgba(96, 127, 158, 0.24);
  background: linear-gradient(180deg, rgba(229, 237, 245, 0.98), rgba(214, 225, 236, 0.98));
  color: #24425d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-pill.active {
  border-color: #378ddf;
  background: linear-gradient(180deg, #5eb4fb 0%, #378ddf 100%);
  color: #ffffff;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-pass-ratio__track,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-ratio-track,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-bar,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-bar-track {
  background: rgba(132, 156, 180, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dn-dist-interactive,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-chart {
  border-top-color: rgba(96, 127, 158, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-node {
  color: #1d3348;
  background: rgba(223, 232, 241, 0.96);
  border-color: rgba(96, 127, 158, 0.24);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-gap-metric--empty {
  color: rgba(74, 96, 117, 0.5);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-cell {
  border-color: rgba(96, 127, 158, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-targets,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-targets-table {
  background: rgba(243, 248, 252, 0.96);
  border-color: rgba(96, 127, 158, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary .pds-label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table .pc-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table .pc-group th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table .pc-head th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-targets .tt-target,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-targets-table .tt-name {
  color: #1c3550;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-head,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-rank,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-ratio,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-routes-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-routes-table td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table td {
  color: #20384d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table thead th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table tbody th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table tfoot th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table thead th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table tbody th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table thead th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table tbody th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table .dd-head th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-routes-table .tr-head th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table .lr-head th {
  color: #16304a;
  background: rgba(213, 224, 236, 0.92);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .top-routes-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table {
  border-color: rgba(96, 127, 158, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-cell--total {
  background: rgba(210, 222, 234, 0.96) !important;
  border-color: rgba(96, 127, 158, 0.24);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-top-pill-filter {
  background: rgba(213, 224, 236, 0.98);
  border-color: rgba(96, 127, 158, 0.24);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-top-pill {
  color: #30485d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-top-pill:hover {
  background: rgba(47, 112, 174, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-row {
  background: rgba(233, 240, 247, 0.96);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-bar {
  background: rgba(132, 156, 180, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .expected-points-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .expected-points-sub {
  color: #20384d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .expected-points-sub {
  color: #4a6075;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #overall-expected-points-canvas {
  background: rgba(235, 242, 248, 0.96);
  border: 1px solid rgba(96, 127, 158, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table {
  background: rgba(233, 240, 247, 0.98);
  border-color: rgba(96, 127, 158, 0.24);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table td {
  border-right-color: rgba(96, 127, 158, 0.16);
  border-bottom-color: rgba(96, 127, 158, 0.16);
  color: #1f3750;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table .dd-head th {
  background: rgba(213, 224, 236, 0.94);
  color: #17314a;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table tbody tr:nth-child(odd) td {
  background: rgba(222, 231, 240, 0.86);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .down-distance-table tbody tr:hover td {
  background: rgba(160, 198, 234, 0.26);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-list--scroll::-webkit-scrollbar-track {
  background: rgba(139, 163, 187, 0.1);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-list--scroll::-webkit-scrollbar-thumb {
  background: rgba(107, 148, 189, 0.34);
}

body:not(.welcome-page):not(.auth-page)::before {
  z-index: -2;
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 132px,
      rgba(247, 242, 233, 0.032) 132px 133px,
      transparent 133px 264px
    ),
    linear-gradient(
      180deg,
      transparent 0 8%,
      rgba(247, 242, 233, 0.02) 8% 8.08%,
      transparent 8.08% 24%,
      rgba(247, 242, 233, 0.018) 24% 24.08%,
      transparent 24.08% 40%,
      rgba(247, 242, 233, 0.016) 40% 40.08%,
      transparent 40.08% 56%,
      rgba(247, 242, 233, 0.014) 56% 56.08%,
      transparent 56.08% 72%,
      rgba(247, 242, 233, 0.012) 72% 72.08%,
      transparent 72.08% 88%,
      rgba(247, 242, 233, 0.01) 88% 88.08%,
      transparent 88.08% 100%
    ),
    repeating-linear-gradient(
      180deg,
      rgba(247, 242, 233, 0.18) 0 3px,
      transparent 3px 28px
    ) left 30px top 48px / 52px 420px no-repeat,
    repeating-linear-gradient(
      180deg,
      rgba(247, 242, 233, 0.16) 0 3px,
      transparent 3px 28px
    ) right 28px top 118px / 52px 420px no-repeat,
    repeating-linear-gradient(
      180deg,
      rgba(247, 242, 233, 0.1) 0 3px,
      transparent 3px 28px
    ) left 196px top 344px / 52px 320px no-repeat,
    repeating-linear-gradient(
      180deg,
      rgba(247, 242, 233, 0.08) 0 3px,
      transparent 3px 28px
    ) right 196px top 412px / 52px 280px no-repeat,
    radial-gradient(circle at 8% 76%, rgba(247, 242, 233, 0.08), transparent 18%),
    radial-gradient(circle at 92% 20%, rgba(247, 242, 233, 0.06), transparent 16%);
}

body:not(.welcome-page):not(.auth-page)::after {
  z-index: -1;
  opacity: 0.34;
  background:
    radial-gradient(circle at 86% 26%, transparent 0 106px, rgba(247, 242, 233, 0.16) 106px 109px, transparent 109px 100%),
    radial-gradient(circle at 86% 26%, transparent 0 72px, rgba(247, 242, 233, 0.1) 72px 74px, transparent 74px 100%),
    radial-gradient(circle at 10% 84%, transparent 0 84px, rgba(247, 242, 233, 0.16) 84px 87px, transparent 87px 100%),
    linear-gradient(90deg, rgba(247, 242, 233, 0.18), rgba(247, 242, 233, 0.18)) left 42px top 168px / 182px 3px no-repeat,
    linear-gradient(90deg, rgba(247, 242, 233, 0.16), rgba(247, 242, 233, 0.16)) left 66px bottom 148px / 156px 3px no-repeat,
    linear-gradient(90deg, rgba(247, 242, 233, 0.16), rgba(247, 242, 233, 0.16)) right 38px bottom 164px / 182px 3px no-repeat,
    linear-gradient(90deg, rgba(247, 242, 233, 0.14), rgba(247, 242, 233, 0.14)) right 88px top 118px / 172px 3px no-repeat,
    radial-gradient(circle at 92% 74%, rgba(247, 242, 233, 0.05), transparent 18%),
    radial-gradient(circle at 7% 30%, rgba(247, 242, 233, 0.04), transparent 14%);
}

body[class^="table-"] {
  font-size: 13px;
}

@media (min-width: 1200px) {
  body[class^="table-"] {
    zoom: 0.8;
  }
}

/* =========================================================
   Internal App Shell
   Topbar / subbar / shared page framing
========================================================= */
body:not(.welcome-page):not(.auth-page) .subbar {
  position: relative;
  background: var(--pro-shell-bg);
  border-bottom: 1px solid var(--pro-border-soft);
  padding: 10px 18px;
  overflow: visible;
  z-index: 20;
}

body:not(.welcome-page):not(.auth-page) .subbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--pro-rail-cyan);
}

body:not(.welcome-page):not(.auth-page) .subbar__team {
  gap: 10px;
  padding: 2px 8px;
}

body:not(.welcome-page):not(.auth-page) .team-logo-wrap {
  width: 48px;
  height: 48px;
  border: 1px solid var(--pro-border-soft);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
  background: linear-gradient(180deg, rgba(28, 34, 41, 0.98), rgba(18, 24, 30, 0.98));
}

body:not(.welcome-page):not(.auth-page) .team-name {
  color: var(--pro-text);
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

body:not(.welcome-page):not(.auth-page) .subbar__tabs {
  gap: 10px;
}

body:not(.welcome-page):not(.auth-page)[data-view-mode="player"] [data-view-access="coach"] {
  display: none !important;
}

body[data-view-mode="player"] .team-profile-grid--main {
  display: none !important;
}

body:not(.welcome-page):not(.auth-page) .subbar__tabs > .theme-switch {
  order: 0;
}

body:not(.welcome-page):not(.auth-page) .theme-switch--view .theme-switch__label {
  min-width: 52px;
}

body:not(.welcome-page):not(.auth-page) .subbar__tabs > .theme-switch--view {
  order: 1;
}

body:not(.welcome-page):not(.auth-page) .subbar__tabs > .subtab,
body:not(.welcome-page):not(.auth-page) .subbar__tabs > .subtab-dropdown {
  order: 2;
}

body:not(.welcome-page):not(.auth-page) .subtab {
  color: var(--pro-text-soft);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

body:not(.welcome-page):not(.auth-page) .subtab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6fc2ff, #3e8fdb);
  color: #04101c;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 16px rgba(11, 61, 106, 0.2);
}

body:not(.welcome-page):not(.auth-page) .subtab__badge--demo {
  outline: 1px dashed rgba(4, 16, 28, 0.45);
  outline-offset: 2px;
}

body:not(.welcome-page):not(.auth-page) .subtab:hover {
  color: var(--pro-text);
  background: rgba(255, 255, 255, 0.05);
}

body:not(.welcome-page):not(.auth-page) .subtab.is-active {
  color: var(--pro-text);
  background: rgba(255, 255, 255, 0.05);
}

body:not(.welcome-page):not(.auth-page) .subbar__tabs > .subtab[data-menu="team"] {
  display: none;
}

body:not(.welcome-page):not(.auth-page) .subtab-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pro-text-soft);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  line-height: 1;
  min-height: 40px;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

body:not(.welcome-page):not(.auth-page) .subtab-dropdown__toggle:hover,
body:not(.welcome-page):not(.auth-page) .subtab-dropdown__toggle.is-active,
body:not(.welcome-page):not(.auth-page) .subtab-dropdown:hover .subtab-dropdown__toggle {
  color: var(--pro-text);
  background: rgba(255, 255, 255, 0.05);
}

body:not(.welcome-page):not(.auth-page) .page-container {
  max-width: 1600px;
  margin: 16px auto 0;
  padding: 0 20px 20px;
}

body:not(.welcome-page):not(.auth-page) .report-overview-title,
body:not(.welcome-page):not(.auth-page) .opponents-heading {
  margin-bottom: 14px;
  color: #7ec8ff;
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: clamp(1.35rem, 1.7vw, 1.8rem);
  font-weight: 750;
  letter-spacing: 0.1px;
}

body:not(.welcome-page):not(.auth-page) .topbar {
  position: relative;
  padding: 10px 18px;
  background:
    linear-gradient(180deg, rgba(15, 20, 27, 0.985), rgba(10, 15, 22, 0.99));
  border-bottom: 1px solid var(--pro-border-soft);
  box-shadow: 0 12px 24px rgba(4, 10, 18, 0.18);
  overflow: hidden;
}

body:not(.welcome-page):not(.auth-page) .topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--pro-rail-violet);
}

body:not(.welcome-page):not(.auth-page) .topbar__nav {
  gap: 12px;
}

body:not(.welcome-page):not(.auth-page) .topbar__link {
  color: var(--pro-text-soft);
  font-size: 0.98rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
}

body:not(.welcome-page):not(.auth-page) .topbar__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pro-text);
}

body:not(.welcome-page):not(.auth-page) .topbar__link.active {
  color: #f7fbff;
  background: linear-gradient(180deg, rgba(55, 96, 134, 0.62), rgba(34, 67, 98, 0.72));
  border: 1px solid rgba(87, 150, 200, 0.18);
}

body:not(.welcome-page):not(.auth-page) .btn-upload {
  border: 1px solid rgba(87, 150, 200, 0.34);
  background: linear-gradient(180deg, #5796c8, #315f8a);
  color: #eef7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(7, 18, 30, 0.24);
}

body:not(.welcome-page):not(.auth-page) .user-chip {
  padding: 5px 7px 5px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 29, 39, 0.96), rgba(12, 20, 29, 0.98));
  border: 1px solid rgba(124, 176, 222, 0.18);
}

body:not(.welcome-page):not(.auth-page) .avatar {
  background: linear-gradient(180deg, #5796c8, #315f8a);
  color: #eef7ff;
}

/* =========================================================
   Premium Header Preview
========================================================= */
body:not(.welcome-page):not(.auth-page) .topbar {
  min-height: 54px;
  padding: 7px 18px;
  z-index: 60;
  overflow: visible;
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 156, 222, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(10, 17, 25, 0.995), rgba(7, 12, 18, 0.995));
  border-bottom: 1px solid rgba(132, 178, 219, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(3, 8, 14, 0.24);
}

body:not(.welcome-page):not(.auth-page) .topbar::before {
  display: none;
}

body:not(.welcome-page):not(.auth-page) .topbar__left {
  gap: 14px;
}

body:not(.welcome-page):not(.auth-page) .topbar__brand {
  width: 150px;
  height: 42px;
}

body:not(.welcome-page):not(.auth-page) .topbar__brand-logo {
  left: 0;
  height: 64px;
  transform: translateY(-50%) scale(1.28);
}

body:not(.welcome-page):not(.auth-page) .topbar__nav {
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(143, 193, 242, 0.1);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body:not(.welcome-page):not(.auth-page) .topbar__link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 10px;
  color: rgba(214, 228, 241, 0.78);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

body:not(.welcome-page):not(.auth-page) .topbar__link:hover {
  background: rgba(123, 186, 239, 0.1);
  color: #f5fbff;
}

body:not(.welcome-page):not(.auth-page) .topbar__link.active {
  background:
    linear-gradient(180deg, rgba(83, 155, 216, 0.46), rgba(43, 86, 126, 0.62));
  border: 1px solid rgba(133, 199, 255, 0.2);
  color: #f8fcff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 16px rgba(12, 48, 82, 0.22);
}

body:not(.welcome-page):not(.auth-page) .topbar__right {
  gap: 5px;
  min-width: 0;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(143, 193, 242, 0.1);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body:not(.welcome-page):not(.auth-page) .btn-upload {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

body:not(.welcome-page):not(.auth-page) .btn-upload::before {
  content: none;
}

body:not(.welcome-page):not(.auth-page) .icon-btn {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(213, 228, 241, 0.72);
  font-size: 0.82rem;
}

body:not(.welcome-page):not(.auth-page) .icon-btn:hover,
body:not(.welcome-page):not(.auth-page) .icon-btn:focus-visible {
  border-color: rgba(143, 193, 242, 0.14);
  background: rgba(123, 186, 239, 0.1);
  color: #f6fbff;
  outline: none;
}

body:not(.welcome-page):not(.auth-page) .topbar .user-chip {
  gap: 8px;
  max-width: 178px;
  margin-left: 4px;
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border-color: rgba(130, 188, 239, 0.32);
  background:
    linear-gradient(180deg, #5796c8, #315f8a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(7, 18, 30, 0.24);
}

body:not(.welcome-page):not(.auth-page) .topbar .user-chip__name {
  max-width: 76px;
  color: #f4f9ff;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: lowercase;
}

body:not(.welcome-page):not(.auth-page) .topbar .user-chip::after {
  margin-left: 2px;
  color: rgba(244, 249, 255, 0.74);
}

body:not(.welcome-page):not(.auth-page) .topbar .user-chip:hover,
body:not(.welcome-page):not(.auth-page) .topbar .user-menu:focus-within .user-chip {
  border-color: rgba(155, 210, 255, 0.44);
  background:
    linear-gradient(180deg, #63aee7, #346f9f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(2, 8, 15, 0.28);
}

body:not(.welcome-page):not(.auth-page) .topbar .avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(20, 31, 43, 0.96), rgba(9, 17, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .topbar .user-chip {
  border-color: rgba(62, 118, 171, 0.3);
  background: linear-gradient(180deg, #5fb2f4, #2f7fc6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(47, 111, 168, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .topbar .user-chip__name {
  color: #ffffff;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .topbar .user-chip::after {
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .topbar .avatar {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #29435c, #172838);
  border-color: rgba(255, 255, 255, 0.2);
}

body:not(.welcome-page):not(.auth-page) .topbar .logout-mini {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
}

body:not(.welcome-page):not(.auth-page) .subbar {
  z-index: 20;
  min-height: 60px;
  padding: 8px 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 174, 247, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(13, 21, 31, 0.985), rgba(9, 15, 23, 0.99));
  border-bottom: 1px solid rgba(132, 178, 219, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 24px rgba(3, 8, 14, 0.18);
}

body:not(.welcome-page):not(.auth-page) .subbar::before {
  display: none;
}

body:not(.welcome-page):not(.auth-page) .subbar__team {
  gap: 10px;
  padding: 5px 12px 5px 7px;
  border-radius: 16px;
  border: 1px solid rgba(143, 193, 242, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

body:not(.welcome-page):not(.auth-page) .team-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border-color: rgba(143, 193, 242, 0.18);
}

body:not(.welcome-page):not(.auth-page) .team-name {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

body:not(.welcome-page):not(.auth-page) .subbar__tabs {
  align-items: center;
  gap: 7px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(143, 193, 242, 0.1);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body:not(.welcome-page):not(.auth-page) .theme-switch {
  gap: 7px;
  margin-right: 4px;
  padding: 4px 8px;
  border-radius: 10px;
  color: rgba(216, 229, 241, 0.78);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

body:not(.welcome-page):not(.auth-page) .theme-switch__track {
  width: 38px;
  height: 21px;
}

body:not(.welcome-page):not(.auth-page) .theme-switch__thumb {
  width: 15px;
  height: 15px;
}

body:not(.welcome-page):not(.auth-page) .theme-switch__input:checked + .theme-switch__track .theme-switch__thumb {
  transform: translateX(17px);
}

body:not(.welcome-page):not(.auth-page) .subbar__tabs > .theme-switch--view {
  margin-right: 8px;
}

body:not(.welcome-page):not(.auth-page) .subtab,
body:not(.welcome-page):not(.auth-page) .subtab-dropdown__toggle {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
  color: rgba(214, 228, 241, 0.78);
  font-size: 0.84rem;
}

body:not(.welcome-page):not(.auth-page) .subtab:hover,
body:not(.welcome-page):not(.auth-page) .subtab-dropdown__toggle:hover,
body:not(.welcome-page):not(.auth-page) .subtab-dropdown:hover .subtab-dropdown__toggle {
  background: rgba(123, 186, 239, 0.1);
  color: #f6fbff;
}

body:not(.welcome-page):not(.auth-page) .subtab.is-active,
body:not(.welcome-page):not(.auth-page) .subtab-dropdown__toggle.is-active {
  background: rgba(83, 177, 255, 0.12);
  border-color: rgba(132, 202, 255, 0.18);
  color: #f6fbff;
}

body:not(.welcome-page):not(.auth-page) .subtab__badge {
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  color: #071421;
  font-size: 0.66rem;
}

/* =========================================================
   Shared Internal Shell Panels
   Large report shells, card shells, widget shells
========================================================= */
body:not(.welcome-page):not(.auth-page) #report-overview-section,
body:not(.welcome-page):not(.auth-page) #qb-summary-section,
body:not(.welcome-page):not(.auth-page) #rb-summary-section,
body:not(.welcome-page):not(.auth-page) #wr-summary-section,
body:not(.welcome-page):not(.auth-page) #qb-pass-summary-section {
  position: relative;
  padding: 18px;
  border: 1px solid var(--pro-border-soft);
  border-radius: 0;
  clip-path: var(--pro-shell-clip-lg);
  background: var(--pro-shell-bg);
  box-shadow: var(--pro-shell-shadow);
  overflow: hidden;
}

body:not(.welcome-page):not(.auth-page) #report-overview-section::before,
body:not(.welcome-page):not(.auth-page) #qb-summary-section::before,
body:not(.welcome-page):not(.auth-page) #rb-summary-section::before,
body:not(.welcome-page):not(.auth-page) #wr-summary-section::before,
body:not(.welcome-page):not(.auth-page) #qb-pass-summary-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--pro-rail-gold);
}

body:not(.welcome-page):not(.auth-page) #report-overview-section::after,
body:not(.welcome-page):not(.auth-page) #qb-summary-section::after,
body:not(.welcome-page):not(.auth-page) #rb-summary-section::after,
body:not(.welcome-page):not(.auth-page) #wr-summary-section::after,
body:not(.welcome-page):not(.auth-page) #qb-pass-summary-section::after {
  content: "";
  position: absolute;
  inset: 14px 16px auto auto;
  width: 42px;
  height: 10px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.28) 0 24%,
      transparent 24% 38%,
      rgba(255, 255, 255, 0.2) 38% 62%,
      transparent 62% 76%,
      rgba(255, 255, 255, 0.16) 76% 100%);
  opacity: 0.58;
}

/* =========================================================
   Manage Team
========================================================= */
body .manage-team-shell {
  display: grid;
  gap: 18px;
}

body .manage-team-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
  gap: 18px;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid rgba(103, 190, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(17, 31, 48, 0.96), rgba(10, 19, 31, 0.94)),
    radial-gradient(circle at top left, rgba(87, 179, 255, 0.2), transparent 42%);
  box-shadow: 0 18px 40px rgba(5, 10, 18, 0.22);
}

body .manage-team-hero--compact {
  align-items: start;
  padding: 20px 22px;
}

body .manage-team-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(103, 190, 255, 0.28);
  background: rgba(103, 190, 255, 0.08);
  color: #9dcfff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body .manage-team-title {
  margin: 14px 0 10px;
}

body .manage-team-intro {
  max-width: 720px;
  margin: 0;
  color: var(--pro-text-soft);
  font-size: 0.95rem;
  line-height: 1.58;
}

body .manage-team-hero__meta {
  display: grid;
  gap: 12px;
}

body .manage-team-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body .manage-team-meta-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: rgba(8, 16, 27, 0.6);
}

body .manage-team-meta-card__label {
  color: #8eb8de;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body .manage-team-meta-card__value {
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.25;
}

body .manage-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

body .manage-team-main,
body .manage-team-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body .manage-team-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .manage-team-card {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(67, 73, 83, 0.9), rgba(58, 64, 74, 0.92));
  border: 1px solid rgba(171, 191, 212, 0.14);
  box-shadow: 0 14px 28px rgba(7, 12, 19, 0.14);
}

body .manage-team-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body .manage-team-card__head .section-title {
  margin-bottom: 6px;
}

body .manage-team-card__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(103, 190, 255, 0.16);
  background: rgba(103, 190, 255, 0.08);
  color: #9fd6ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body .manage-team-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 22px;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  border-radius: 18px;
  background: rgba(13, 22, 35, 0.34);
}

body .manage-team-toolbar__group {
  display: grid;
  gap: 8px;
}

body .manage-team-toolbar__label {
  color: var(--pro-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

body .manage-team-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

body .manage-team-filter-pills--grouping {
  margin: 0;
}

body .manage-team-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(103, 190, 255, 0.14);
  background: rgba(16, 27, 40, 0.44);
  color: #cfe2f3;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

body .manage-team-filter-pill:hover,
body .manage-team-filter-pill:focus-visible {
  color: #ffffff;
  border-color: rgba(103, 190, 255, 0.22);
  background: rgba(21, 37, 55, 0.62);
  outline: none;
  transform: translateY(-1px);
}

body .manage-team-filter-pill.is-active {
  color: #eaf5ff;
  border-color: rgba(103, 190, 255, 0.24);
  background: rgba(103, 190, 255, 0.18);
}

@media (max-width: 760px) {
  body .manage-team-toolbar {
    padding: 12px;
    gap: 12px;
  }

  body .manage-team-toolbar__group {
    width: 100%;
  }
}

body .manage-team-flash-stack {
  display: grid;
  gap: 8px;
}

body .manage-team-flash {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(103, 190, 255, 0.18);
  background: linear-gradient(180deg, rgba(77, 165, 243, 0.92), rgba(64, 148, 224, 0.92));
  color: #f7fbff;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(20, 83, 138, 0.14);
}

body .manage-team-flash--error {
  border-color: rgba(255, 137, 137, 0.22);
  background: linear-gradient(180deg, rgba(192, 84, 84, 0.94), rgba(166, 62, 62, 0.94));
}

body .manage-team-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 980px) {
  body .manage-team-side {
    grid-template-columns: 1fr;
  }
}

body .manage-team-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body .manage-team-table thead th {
  padding: 10px 12px;
  border-top: 1px solid rgba(103, 190, 255, 0.14);
  border-bottom: 1px solid rgba(103, 190, 255, 0.14);
  background: rgba(21, 34, 49, 0.84);
  color: #9dcaef;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

body .manage-team-table thead th:nth-child(2),
body .manage-team-table thead th:nth-child(3),
body .manage-team-table thead th:nth-child(7),
body .manage-team-table tbody td:nth-child(2),
body .manage-team-table tbody td:nth-child(3),
body .manage-team-table tbody td:nth-child(7) {
  text-align: center;
}

body .manage-team-table thead th:first-child {
  border-top-left-radius: 14px;
}

body .manage-team-table thead th:last-child {
  border-top-right-radius: 14px;
}

body .manage-team-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(103, 190, 255, 0.08);
  color: var(--pro-text);
  vertical-align: middle;
}

body .manage-team-group-row td {
  padding: 12px 0 8px;
  border-bottom: 0;
}

body .manage-team-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #f4f9ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body .manage-team-group-label::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 190, 255, 0.95), rgba(72, 150, 223, 0.95));
  box-shadow: 0 0 0 4px rgba(103, 190, 255, 0.12);
}

body .manage-team-group-label span {
  color: var(--pro-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body .manage-team-member-name {
  font-weight: 800;
}

body .manage-team-jersey-number {
  color: #f2f7fc;
  font-weight: 800;
  white-space: nowrap;
  width: 56px;
}

body .manage-team-position {
  color: #d9e7f4;
  min-width: 120px;
  white-space: nowrap;
}

body .manage-team-member-email {
  color: var(--pro-text-soft);
}

body .manage-team-visit-count {
  color: #eaf4ff;
  font-weight: 800;
  white-space: nowrap;
  width: 70px;
}

body .manage-team-role-form {
  display: flex;
  align-items: center;
  margin: 0;
}

body .manage-team-role-select {
  min-width: 108px;
}

body .manage-team-card .filter-control {
  color: #eef6ff;
  background:
    linear-gradient(180deg, rgba(7, 13, 21, 0.98), rgba(10, 17, 26, 0.98));
  border: 1px solid rgba(161, 193, 224, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(4, 10, 18, 0.18);
}

body .manage-team-card select.filter-control {
  appearance: none;
  padding-right: 38px;
  background:
    linear-gradient(45deg, transparent 50%, #9fd6ff 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, #9fd6ff 50%, transparent 50%) right 11px center / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(7, 13, 21, 0.98), rgba(10, 17, 26, 0.98));
}

body .manage-team-card select.filter-control option {
  color: #102133;
  background: #f3f8fd;
}

body .manage-team-card .filter-control::placeholder {
  color: rgba(210, 226, 241, 0.56);
}

/* Data import workflow */
body .upload-data-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

body .upload-data-hero {
  display: block;
  padding: 18px 0 2px;
}

body .upload-data-title {
  margin-bottom: 8px;
}

body .upload-data-intro {
  max-width: 720px;
  margin: 0;
  color: rgba(225, 236, 245, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

body .upload-data-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

body .upload-data-step {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(146, 177, 208, 0.2);
  color: rgba(225, 236, 245, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body .upload-data-step.is-active {
  border-color: rgba(87, 196, 255, 0.44);
  background: rgba(87, 196, 255, 0.12);
  color: #f6fbff;
}

body .upload-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 16px;
  align-items: start;
}

body .upload-data-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px;
}

body .upload-data-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

body .upload-data-form {
  display: grid;
  gap: 10px;
}

body .upload-data-label {
  color: rgba(225, 236, 245, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body .upload-data-type-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

body .upload-data-type-help__item {
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(146, 177, 208, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(225, 236, 245, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

body .upload-data-drop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 16px;
  border: 1px dashed rgba(146, 177, 208, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

body .upload-data-drop:hover,
body .upload-data-drop:focus-within {
  border-color: rgba(87, 196, 255, 0.58);
  background: rgba(87, 196, 255, 0.055);
}

body .upload-data-drop.is-dragging {
  border-color: rgba(87, 196, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(87, 196, 255, 0.14), rgba(87, 196, 255, 0.07));
  box-shadow:
    inset 0 0 0 1px rgba(87, 196, 255, 0.22),
    0 0 0 3px rgba(87, 196, 255, 0.08);
}

body .upload-data-drop.has-file {
  border-color: rgba(99, 232, 164, 0.62);
  background:
    linear-gradient(180deg, rgba(99, 232, 164, 0.095), rgba(87, 196, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .upload-data-drop.has-error {
  border-color: rgba(255, 111, 111, 0.7);
  background: rgba(255, 111, 111, 0.08);
}

body .upload-data-drop.needs-data-type {
  border-color: rgba(255, 197, 90, 0.72);
  background: rgba(255, 197, 90, 0.08);
}

body .upload-data-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

body .upload-data-drop__content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body .upload-data-drop__title {
  color: #f6fbff;
  font-weight: 900;
}

body .upload-data-drop__meta {
  color: rgba(225, 236, 245, 0.66);
  font-size: 0.82rem;
}

body .upload-data-file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(87, 196, 255, 0.44);
  border-radius: 8px;
  background: rgba(87, 196, 255, 0.13);
  color: #f6fbff;
  font-size: 0.78rem;
  font-weight: 900;
}

body .upload-data-popover {
  position: absolute;
  right: 14px;
  bottom: calc(100% + 8px);
  z-index: 3;
  max-width: min(260px, calc(100vw - 56px));
  padding: 8px 10px;
  border: 1px solid rgba(255, 197, 90, 0.44);
  border-radius: 8px;
  background: #152434;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
  color: #fff4d6;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 140ms ease, transform 140ms ease;
}

body .upload-data-popover::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #152434;
}

body .upload-data-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body .upload-data-file-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  margin-top: 2px;
  padding: 5px 9px;
  border: 1px solid rgba(146, 177, 208, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(225, 236, 245, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .upload-data-drop.has-file .upload-data-file-name {
  border-color: rgba(99, 232, 164, 0.34);
  background: rgba(99, 232, 164, 0.11);
  color: #d7ffe7;
}

body .upload-data-drop.has-error .upload-data-file-name {
  border-color: rgba(255, 111, 111, 0.36);
  background: rgba(255, 111, 111, 0.1);
  color: #ffd3d3;
}

body .upload-data-primary {
  justify-self: stretch;
  min-height: 38px;
  padding-inline: 16px;
}

body .upload-data-history {
  display: grid;
  gap: 10px;
}

body .upload-data-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(146, 177, 208, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

body .upload-data-history__row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body .upload-data-history__row strong {
  overflow: hidden;
  color: #f6fbff;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .upload-data-history__row span,
body .upload-data-empty {
  color: rgba(225, 236, 245, 0.62);
  font-size: 0.76rem;
}

body .upload-data-history__row b {
  color: #8ee0ff;
  font-size: 1rem;
}

body .upload-data-downloads {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(146, 177, 208, 0.12);
}

body .upload-data-downloads h3 {
  margin: 0;
  color: #f6fbff;
  font-size: 0.9rem;
}

body .upload-data-downloads p {
  margin: 0;
  color: rgba(225, 236, 245, 0.62);
  font-size: 0.76rem;
  line-height: 1.45;
}

body .upload-data-downloads__links {
  display: grid;
  gap: 8px;
}

body .upload-data-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(146, 177, 208, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

body .upload-data-download-row > span {
  min-width: 0;
  color: #dff4ff;
  font-size: 0.78rem;
  font-weight: 900;
}

body .upload-data-download-row > div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

body .upload-data-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 52px;
  padding: 7px 9px;
  border: 1px solid rgba(87, 196, 255, 0.26);
  border-radius: 8px;
  background: rgba(87, 196, 255, 0.065);
  color: #dff4ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

body .upload-data-download-link:hover,
body .upload-data-download-link:focus-visible {
  border-color: rgba(87, 196, 255, 0.44);
  background: rgba(87, 196, 255, 0.11);
}

body .upload-data-download-link--secondary {
  border-color: rgba(146, 177, 208, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(225, 236, 245, 0.72);
}

body .upload-data-preview {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body .upload-data-examples {
  overflow: hidden;
}

body .upload-data-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body .upload-data-example {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(146, 177, 208, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(87, 196, 255, 0.06), rgba(255, 255, 255, 0.03));
}

body .upload-data-example__kicker {
  color: #7fd3ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .upload-data-example h3 {
  margin: 0;
  color: #f6fbff;
  font-size: 0.98rem;
  line-height: 1.25;
}

body .upload-data-example__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body .upload-data-example__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(127, 211, 255, 0.18);
  border-radius: 7px;
  background: rgba(127, 211, 255, 0.08);
  color: rgba(235, 246, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 800;
}

body .upload-data-mini-table {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(146, 177, 208, 0.13);
  border-radius: 8px;
}

body .upload-data-mini-table div {
  min-width: 0;
  padding: 8px 7px;
  border-right: 1px solid rgba(146, 177, 208, 0.1);
  border-bottom: 1px solid rgba(146, 177, 208, 0.1);
  color: rgba(225, 236, 245, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .upload-data-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 340px;
  border: 1px solid rgba(146, 177, 208, 0.14);
  border-radius: 8px;
  scrollbar-color: rgba(120, 174, 222, 0.34) rgba(255, 255, 255, 0.025);
  scrollbar-width: thin;
}

body .upload-data-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body .upload-data-table-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
}

body .upload-data-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(120, 174, 222, 0.34);
}

body .upload-data-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 174, 222, 0.5);
}

body .upload-data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

body .upload-data-table th,
body .upload-data-table td {
  max-width: 170px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(146, 177, 208, 0.11);
  color: rgba(225, 236, 245, 0.76);
  font-size: 0.78rem;
  text-align: left;
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
}

body .upload-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 20, 31, 0.96);
  color: #f6fbff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body .upload-data-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body .upload-data-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 6px 10px;
  min-height: 42px;
  border: 1px solid rgba(146, 177, 208, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
}

body .upload-data-map-summary,
body .upload-data-map-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

body .upload-data-map-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(127, 211, 255, 0.16);
  border-radius: 8px;
  background: rgba(127, 211, 255, 0.065);
  color: rgba(225, 236, 245, 0.78);
  font-size: 0.74rem;
  font-weight: 900;
}

body .upload-data-secondary-action,
body .upload-data-toolbar-import {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
}

body .upload-data-secondary-action {
  padding: 7px 10px;
  border: 1px solid rgba(146, 177, 208, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(225, 236, 245, 0.72);
}

body .upload-data-secondary-action:hover,
body .upload-data-secondary-action:focus-visible {
  border-color: rgba(126, 200, 255, 0.32);
  background: rgba(126, 200, 255, 0.08);
  color: #f6fbff;
}

body .upload-data-toolbar-import {
  width: auto;
  min-width: 92px;
  margin-top: 0;
  padding: 7px 14px;
  border-color: rgba(87, 150, 200, 0.34);
  background: linear-gradient(180deg, #5796c8, #315f8a);
  color: #eef7ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 16px rgba(7, 18, 30, 0.2);
}

body .upload-data-toolbar-import:hover,
body .upload-data-toolbar-import:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

body .upload-data-warning {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 199, 99, 0.34);
  border-radius: 8px;
  background: rgba(255, 199, 99, 0.1);
  color: #ffe0a3;
  font-size: 0.84rem;
  font-weight: 800;
}

body .upload-data-map-row {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(146, 177, 208, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

body .upload-data-map-row > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

body .upload-data-map-row strong {
  min-width: 0;
  overflow: hidden;
  color: #f6fbff;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .upload-data-map-row .filter-control {
  min-height: 36px;
  min-width: 0;
  width: 100%;
  appearance: none;
  padding: 8px 36px 8px 10px;
  border: 1px solid rgba(161, 193, 224, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #9fd6ff 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, #9fd6ff 50%, transparent 50%) right 11px center / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(7, 13, 21, 0.98), rgba(10, 17, 26, 0.98));
  color: #edf6ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(4, 10, 18, 0.16);
  color-scheme: dark;
}

body .upload-data-map-row .filter-control:focus {
  border-color: rgba(126, 200, 255, 0.64);
  box-shadow:
    0 0 0 3px rgba(83, 168, 235, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  outline: none;
}

body .upload-data-map-row .filter-control option {
  color: #eef6ff;
  background: #121d2a;
}

body .upload-data-map-status {
  flex: 0 0 auto;
  color: rgba(225, 236, 245, 0.58);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

body .upload-data-map-status--auto {
  color: #8ee0ff;
}

body .upload-data-map-status--saved {
  color: #b8f7c1;
}

body .upload-data-import-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(146, 177, 208, 0.12);
}

body .upload-data-import-panel__head h3 {
  margin: 0 0 4px;
  color: #f6fbff;
  font-size: 0.95rem;
}

body .upload-data-import-panel__head p {
  margin: 0;
  color: rgba(225, 236, 245, 0.64);
  font-size: 0.8rem;
}

body .upload-data-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body .upload-data-mode-card {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 12px 13px;
  border: 1px solid rgba(146, 177, 208, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body .upload-data-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body .upload-data-mode-card.is-selected {
  border-color: rgba(87, 196, 255, 0.54);
  background: rgba(87, 196, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body .upload-data-mode-card--danger.is-selected {
  border-color: rgba(255, 199, 99, 0.5);
  background: rgba(255, 199, 99, 0.085);
}

body .upload-data-mode-card__title {
  color: #f6fbff;
  font-size: 0.88rem;
  font-weight: 900;
}

body .upload-data-mode-card__copy {
  color: rgba(225, 236, 245, 0.66);
  font-size: 0.78rem;
  line-height: 1.42;
}

body .upload-data-import-help {
  padding: 10px 12px;
  border: 1px solid rgba(87, 196, 255, 0.16);
  border-radius: 8px;
  background: rgba(87, 196, 255, 0.055);
  color: rgba(225, 236, 245, 0.72);
  font-size: 0.8rem;
  line-height: 1.45;
}

body .upload-data-replace-confirm {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 199, 99, 0.3);
  border-radius: 8px;
  background: rgba(255, 199, 99, 0.07);
}

body .upload-data-replace-confirm[hidden] {
  display: none;
}

body .upload-data-import-mode {
  display: grid;
  gap: 7px;
}

body .upload-data-import-mode span {
  color: #ffe0a3;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

body .upload-data-replace-confirm p {
  margin: 0;
  color: rgba(255, 224, 163, 0.82);
  font-size: 0.78rem;
  line-height: 1.42;
}

@media (max-width: 980px) {
  body .upload-data-hero,
  body .upload-data-replace-confirm {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  body .upload-data-steps {
    justify-content: flex-start;
  }

  body .upload-data-grid {
    grid-template-columns: 1fr;
  }

  body .upload-data-card__head {
    flex-direction: column;
  }

  body .upload-data-map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body .upload-data-map-actions {
    justify-content: flex-start;
  }

  body .upload-data-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .upload-data-example-grid {
    grid-template-columns: 1fr;
  }

  body .upload-data-mode-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body .upload-data-map-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-shell {
  color: #17304a;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-shell .manage-team-eyebrow {
  border-color: rgba(47, 131, 216, 0.28);
  background: rgba(231, 244, 255, 0.88);
  color: #2470af;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-intro,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-card .widget-sub,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-empty,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-downloads p,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-import-panel__head p {
  color: #324d66;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-card {
  border-color: rgba(86, 118, 149, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 252, 0.98));
  box-shadow: 0 12px 24px rgba(49, 78, 107, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-row strong,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-drop__title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-history__row strong,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-download-row > span,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-downloads h3,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-example h3,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-import-panel__head h3,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-mode-card__title {
  color: #17304a;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-step {
  border-color: rgba(47, 131, 216, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: #4e6a84;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-step.is-active {
  border-color: rgba(47, 131, 216, 0.38);
  background: rgba(47, 131, 216, 0.1);
  color: #1b5f9d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-type-help__item,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-drop,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-history__row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-download-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-example,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-toolbar,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-mode-card,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-import-help {
  border-color: rgba(86, 118, 149, 0.18);
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(235, 242, 249, 0.98));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-type-help__item,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-drop__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-file-name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-history__row span,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-mode-card__copy,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-import-help {
  color: #3e5a73;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-shell .manage-team-flash {
  border-color: rgba(47, 131, 216, 0.26);
  background: #dff0ff;
  color: #174f82;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-shell .manage-team-flash--error {
  border-color: rgba(192, 70, 70, 0.28);
  background: #ffe7e7;
  color: #8a2f2f;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-drop:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-drop:focus-within {
  border-color: rgba(47, 131, 216, 0.42);
  background: rgba(229, 243, 255, 0.86);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-drop.needs-data-type {
  border-color: rgba(189, 126, 36, 0.5);
  background: rgba(255, 244, 222, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-popover {
  border-color: rgba(189, 126, 36, 0.32);
  background: #fff8e8;
  color: #7a531c;
  box-shadow: 0 14px 28px rgba(49, 78, 107, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-popover::after {
  border-top-color: #fff8e8;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-file-action,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-file-name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-download-link,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-download-link--secondary {
  border-color: rgba(47, 131, 216, 0.34);
  background: rgba(225, 241, 255, 0.96);
  color: #155c96;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-primary,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-toolbar-import {
  border-color: rgba(47, 111, 168, 0.34);
  background: linear-gradient(180deg, #5fb2f4, #2f7fc6);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 16px rgba(47, 111, 168, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-downloads {
  border-top-color: rgba(86, 118, 149, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-example__kicker,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-status,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-status--auto,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-status--saved {
  color: #176ba8;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-example__chips span,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-summary span {
  border-color: rgba(47, 131, 216, 0.3);
  background: rgba(224, 240, 254, 0.98);
  color: #174f82;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-mini-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-table-wrap {
  border-color: rgba(86, 118, 149, 0.18);
  background: rgba(249, 252, 255, 0.84);
  scrollbar-color: rgba(65, 121, 174, 0.34) rgba(44, 73, 101, 0.07);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-mini-table div,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-table td {
  border-color: rgba(86, 118, 149, 0.12);
  color: #314a62;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-table th {
  background: #e6f0f9;
  color: #17304a;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-row .filter-control,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-form .filter-control,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-import-mode .filter-control {
  border-color: rgba(89, 121, 153, 0.3);
  background:
    linear-gradient(45deg, transparent 50%, #2f6fa8 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, #2f6fa8 50%, transparent 50%) right 11px center / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 252, 0.99));
  color: #17304a;
  color-scheme: light;
  box-shadow: inset 0 1px 2px rgba(47, 76, 106, 0.07);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-map-row .filter-control option,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-form .filter-control option {
  background: #f6fafe;
  color: #17304a;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-secondary-action {
  border-color: rgba(89, 121, 153, 0.26);
  background: rgba(246, 250, 253, 0.92);
  color: #3f5870;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-mode-card.is-selected {
  border-color: rgba(47, 131, 216, 0.38);
  background: rgba(231, 244, 255, 0.88);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-mode-card--danger.is-selected,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-replace-confirm {
  border-color: rgba(189, 126, 36, 0.32);
  background: rgba(255, 244, 222, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-import-mode span,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-replace-confirm p {
  color: #82581d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .upload-data-warning {
  border-color: rgba(189, 126, 36, 0.34);
  background: rgba(255, 244, 222, 0.92);
  color: #7a531c;
}

body .manage-team-role-badge,
body .manage-team-view-badge,
body .manage-team-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(210, 226, 241, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #dce8f5;
}

body .manage-team-view-badge {
  min-width: 96px;
  white-space: nowrap;
}

body .manage-team-role-badge--owner {
  background: rgba(255, 196, 98, 0.12);
  border: 1px solid rgba(255, 196, 98, 0.28);
  color: #ffd98f;
}

body .manage-team-view-badge--coach {
  background: rgba(103, 190, 255, 0.12);
  border: 1px solid rgba(103, 190, 255, 0.24);
  color: #9fd6ff;
}

body .manage-team-view-badge--player {
  background: rgba(112, 214, 170, 0.12);
  border: 1px solid rgba(112, 214, 170, 0.22);
  color: #9aebc9;
}

body .manage-team-status-badge--active {
  background: rgba(103, 190, 255, 0.12);
  border: 1px solid rgba(103, 190, 255, 0.24);
  color: #9fd6ff;
}

body .manage-team-status-badge--pending {
  background: rgba(255, 196, 98, 0.12);
  border: 1px solid rgba(255, 196, 98, 0.26);
  color: #ffd98f;
}

body .manage-team-save-btn,
body .manage-team-invite-btn {
  min-height: 36px;
  min-width: 100px;
  justify-content: center;
}

body .manage-team-save-btn--role {
  min-width: 72px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

body .manage-team-save-btn--role.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body .manage-team-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 96px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(103, 190, 255, 0.16);
  background: rgba(16, 27, 40, 0.5);
  color: #d8e7f6;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

body .manage-team-secondary-btn:hover,
body .manage-team-secondary-btn:focus-visible {
  color: #ffffff;
  background: rgba(24, 39, 57, 0.72);
  border-color: rgba(103, 190, 255, 0.24);
  transform: translateY(-1px);
  outline: none;
}

body .manage-team-locked {
  color: var(--pro-text-soft);
  font-weight: 700;
}

body .manage-team-invite-form {
  display: grid;
  gap: 10px;
}

body .manage-team-invite-form__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 96px);
  gap: 10px;
  align-items: end;
}

body .manage-team-invite-form__split > .game-day-field {
  min-width: 0;
}

body .manage-team-invite-form__split input {
  width: 100%;
  min-width: 0;
}

body .manage-team-card--invite,
body .manage-team-card--guide {
  padding: 14px;
}

body .manage-team-inline-note {
  margin-top: 12px;
  color: var(--pro-text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

body .manage-team-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body .manage-team-inline-actions form {
  margin: 0;
}

body .manage-team-inline-link {
  color: #8fcfff;
  font-weight: 700;
  text-decoration: none;
}

body .manage-team-inline-link:hover {
  color: #ffffff;
}

body .manage-team-empty {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(103, 190, 255, 0.16);
  background: rgba(13, 22, 35, 0.28);
  color: var(--pro-text-soft);
  line-height: 1.5;
}

body .manage-team-share-link {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  border-radius: 16px;
  background: rgba(13, 22, 35, 0.22);
}

body .manage-team-share-link__label {
  color: #9fd6ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .manage-team-share-link__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

body .manage-team-share-link__input {
  min-width: 0;
}

body .manage-team-share-link__copy.is-copied {
  color: #f5fffb;
  background: rgba(78, 193, 144, 0.2);
  border-color: rgba(78, 193, 144, 0.34);
}

body .manage-team-share-link__open {
  white-space: nowrap;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .manage-team-card .filter-control {
  color: #17304a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 252, 0.99));
  border-color: rgba(89, 121, 153, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(61, 91, 122, 0.05);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .manage-team-card select.filter-control {
  background:
    linear-gradient(45deg, transparent 50%, #2f6fa8 50%) right 16px center / 7px 7px no-repeat,
    linear-gradient(135deg, #2f6fa8 50%, transparent 50%) right 11px center / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 252, 0.99));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .manage-team-card .filter-control::placeholder {
  color: rgba(64, 86, 108, 0.66);
}

@media (max-width: 760px) {
  body .manage-team-share-link__row {
    grid-template-columns: 1fr;
  }

  body .manage-team-guide {
    grid-template-columns: 1fr;
  }
}

body .message-board-card {
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}

body .message-board-shell .manage-team-hero {
  padding: 16px 18px;
}

body .message-board-card--board {
  order: -2;
}

body .message-board-card--compose {
  order: -1;
}

body .message-board-card--social {
  order: -3;
}

body .message-board-card .filter-control {
  color: #eef6ff;
  background:
    linear-gradient(180deg, rgba(7, 13, 21, 0.98), rgba(10, 17, 26, 0.98));
  border: 1px solid rgba(161, 193, 224, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(4, 10, 18, 0.18);
}

body .message-board-card select.filter-control {
  appearance: none;
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, #9fd6ff 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, #9fd6ff 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(7, 13, 21, 0.98), rgba(10, 17, 26, 0.98));
}

body .message-board-card select.filter-control option {
  color: #102133;
  background: #f3f8fd;
}

body .message-board-card select.filter-control option:checked {
  color: #ffffff;
  background: #2f6fa8;
}

body .message-board-card .filter-control::placeholder {
  color: rgba(210, 226, 241, 0.56);
}

body .message-board-card .filter-control:focus {
  border-color: rgba(126, 200, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(83, 168, 235, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .message-board-social-form {
  margin-bottom: 14px;
}

body .message-board-social-intro {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

body .message-board-social-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
  gap: 20px;
  align-items: start;
}

body .message-board-social-form__shell {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(14, 23, 35, 0.94), rgba(9, 16, 25, 0.98)),
    radial-gradient(circle at top left, rgba(103, 190, 255, 0.08), transparent 28%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 44px rgba(4, 10, 18, 0.18);
  position: relative;
  overflow: hidden;
}

body .message-board-social-form__shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(93, 182, 249, 0.92), rgba(46, 110, 168, 0.3));
}

body .message-board-social-form__intro {
  display: grid;
  gap: 6px;
}

body .message-board-social-form__eyebrow {
  color: #a7d8ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body .message-board-social-form__copy {
  color: #d5e2ef;
  font-size: 0.95rem;
  line-height: 1.65;
}

body .message-board-social-form__textarea {
  width: 100%;
  min-height: 124px;
  resize: vertical;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 12, 19, 0.98), rgba(9, 15, 23, 0.98));
  color: #f3f8fd;
  line-height: 1.65;
  border: 1px solid rgba(199, 219, 237, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(5, 12, 20, 0.2);
  caret-color: #7ec8ff;
  font-size: 0.98rem;
  padding: 14px 16px;
}

body .message-board-social-form__textarea::placeholder {
  color: rgba(219, 232, 244, 0.58);
}

body .message-board-social-form__textarea:focus {
  border-color: rgba(126, 200, 255, 0.88);
  box-shadow:
    0 0 0 3px rgba(83, 168, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .message-board-social-form .message-board-compose-form__actions {
  justify-content: stretch;
}

body .message-board-social-form .manage-team-save-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(67, 77, 90, 0.94), rgba(47, 55, 66, 0.98));
  border: 1px solid rgba(162, 184, 208, 0.16);
  color: #f4f8fd;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 24px rgba(5, 12, 20, 0.12);
}

body .message-board-social-form .manage-team-save-btn:hover,
body .message-board-social-form .manage-team-save-btn:focus-visible {
  background:
    linear-gradient(180deg, rgba(78, 90, 104, 0.96), rgba(53, 62, 74, 1));
  border-color: rgba(180, 203, 226, 0.26);
  transform: translateY(-1px);
}

body .message-board-social-carousel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body .message-board-social-carousel__viewport {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 46px 18px 46px;
  border-radius: 24px;
  border: 1px solid rgba(196, 212, 228, 0.52);
  background:
    linear-gradient(180deg, rgba(244, 248, 252, 0.98), rgba(225, 234, 243, 0.98)),
    radial-gradient(circle at top left, rgba(126, 184, 235, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(173, 192, 212, 0.14), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 24px 46px rgba(26, 47, 69, 0.14);
  overflow: hidden;
}

body .message-board-social-carousel__viewport::before,
body .message-board-social-carousel__viewport::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  height: 42px;
  z-index: 1;
  pointer-events: none;
}

body .message-board-social-carousel__viewport::before {
  top: 0;
  background: linear-gradient(180deg, rgba(232, 239, 246, 0.96), rgba(232, 239, 246, 0));
}

body .message-board-social-carousel__viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(232, 239, 246, 0.96), rgba(232, 239, 246, 0));
}

body .message-board-social-feed {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: minmax(150px, auto);
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 380px;
  padding: 8px 12px;
  scroll-snap-type: y mandatory;
  align-items: stretch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  position: relative;
  z-index: 2;
}

body .message-board-social-post {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(103, 190, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(15, 25, 38, 0.82), rgba(10, 18, 28, 0.94));
  min-height: 160px;
  scroll-snap-align: center;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease, filter 220ms ease;
  opacity: 0.36;
  filter: saturate(0.76) blur(0.2px);
  transform: scale(0.95) translateY(4px);
}

body .message-board-social-post[data-active-slide] {
  opacity: 1;
  filter: none;
  border-color: rgba(103, 190, 255, 0.3);
  box-shadow:
    0 22px 34px rgba(5, 12, 20, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: scale(1) translateY(0);
}

body .message-board-social-post:hover {
  border-color: rgba(103, 190, 255, 0.22);
}

body .message-board-social-carousel__arrow {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border-radius: 999px;
  border: 1px solid rgba(110, 149, 185, 0.26);
  background: rgba(245, 249, 253, 0.94);
  color: #294764;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 28px rgba(44, 70, 97, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  backdrop-filter: blur(8px);
}

body .message-board-social-carousel__arrow--prev {
  top: 12px;
}

body .message-board-social-carousel__arrow--next {
  bottom: 12px;
}

body .message-board-social-carousel__arrow span {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

body .message-board-social-carousel__arrow--prev span {
  transform: rotate(-45deg);
  margin-top: 4px;
}

body .message-board-social-carousel__arrow--next span {
  transform: rotate(135deg);
  margin-bottom: 4px;
}

body .message-board-social-carousel__arrow:hover:not(:disabled),
body .message-board-social-carousel__arrow:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(89, 143, 191, 0.34);
  background: rgba(255, 255, 255, 0.98);
}

body .message-board-social-carousel__arrow:disabled {
  opacity: 0.42;
  cursor: default;
}

body .message-board-social-carousel__footer {
  width: 100%;
  margin: 4px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

body .message-board-social-carousel__dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body .message-board-social-carousel__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(103, 190, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, width 180ms ease;
}

body .message-board-social-carousel__dot.is-active {
  background: #58abff;
  border-color: rgba(103, 190, 255, 0.42);
  width: 24px;
  transform: none;
}

body .message-board-social-carousel__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #274562;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110, 149, 185, 0.2);
  background: rgba(247, 250, 253, 0.88);
}

body .message-board-social-post--mock {
  border-style: dashed;
}

body .message-board-social-post__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

body .message-board-social-post__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body .message-board-social-post__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #62b8ff, #367fcb);
  color: #06111c;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 18px rgba(11, 61, 106, 0.22);
}

body .message-board-social-post__author {
  color: #f2f8fe;
  font-size: 0.98rem;
  font-weight: 800;
}

body .message-board-social-post__handle,
body .message-board-social-post__time {
  color: #8da8c2;
  font-size: 0.8rem;
}

body .message-board-social-post__body {
  color: #dbe8f5;
  line-height: 1.7;
  white-space: pre-wrap;
  min-height: 3.4em;
  font-size: 0.97rem;
}

body .message-board-social-post__role-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .message-board-social-post--coach {
  border-color: rgba(241, 194, 92, 0.22);
}

body .message-board-social-post--coach .message-board-social-post__avatar {
  background: linear-gradient(180deg, #ffd56f, #c9962a);
  color: #241607;
  box-shadow: 0 10px 18px rgba(118, 79, 12, 0.24);
}

body .message-board-social-post--coach .message-board-social-post__author {
  color: #fff5d8;
}

body .message-board-social-post--coach.coach-1 {
  background:
    linear-gradient(90deg, rgba(231, 184, 77, 0.28), rgba(231, 184, 77, 0.28)) left 0 top 18px / 4px calc(100% - 36px) no-repeat,
    radial-gradient(circle at top right, rgba(238, 190, 84, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(21, 28, 36, 0.86), rgba(13, 19, 28, 0.95));
}

body .message-board-social-post--coach.coach-1 .message-board-social-post__role-badge {
  color: #ffdfa2;
  background: rgba(233, 183, 70, 0.12);
  border: 1px solid rgba(233, 183, 70, 0.22);
}

body .message-board-social-post--coach.coach-2 {
  background:
    radial-gradient(circle at top left, rgba(255, 220, 140, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(24, 24, 31, 0.88), rgba(14, 17, 24, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 233, 186, 0.06),
    0 18px 30px rgba(5, 12, 20, 0.22);
}

body .message-board-social-post--coach.coach-2 .message-board-social-post__role-badge {
  color: #251808;
  background: linear-gradient(180deg, #ffd870, #e0ae43);
  border: 1px solid rgba(255, 222, 144, 0.24);
}

body .message-board-social-post--coach.coach-3 {
  background:
    linear-gradient(180deg, rgba(18, 22, 30, 0.86), rgba(10, 16, 24, 0.95));
  border-color: rgba(227, 173, 64, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(237, 190, 86, 0.08),
    0 18px 30px rgba(5, 12, 20, 0.22);
}

body .message-board-social-post--coach.coach-3 .message-board-social-post__role-badge {
  color: #ffe7b7;
  background: rgba(255, 214, 118, 0.08);
  border: 1px dashed rgba(233, 183, 70, 0.34);
}

body .message-board-compose-form {
  display: grid;
  gap: 14px;
}

body .message-board-compose-toggle {
  padding: 0;
}

body .message-board-compose-toggle__summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

body .message-board-compose-toggle__summary::-webkit-details-marker {
  display: none;
}

body .message-board-compose-toggle__summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-right: 2px solid rgba(159, 214, 255, 0.9);
  border-bottom: 2px solid rgba(159, 214, 255, 0.9);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

body .message-board-compose-toggle[open] .message-board-compose-toggle__summary::after {
  transform: rotate(225deg);
}

body .message-board-compose-intro {
  display: grid;
  gap: 6px;
  max-width: 760px;
}

body .message-board-card--compose .widget-sub {
  color: #ccd9e7;
}

body .message-board-compose-form__shell {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-radius: 0;
  border-width: 0;
  border-top: 1px solid rgba(103, 190, 255, 0.1);
  background: transparent;
  box-shadow: none;
}

body .message-board-compose-toggle:not([open]) .message-board-compose-form {
  display: none;
}

body .message-board-compose-toggle[open] .message-board-compose-form {
  display: grid;
}

body .message-board-compose-form__targeting {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body .message-board-dependent-field[hidden] {
  display: none !important;
}

body .message-board-position-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(9, 15, 23, 0.98), rgba(11, 18, 27, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(5, 12, 20, 0.18);
}

body .message-board-position-pill {
  position: relative;
  display: inline-flex;
}

body .message-board-position-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body .message-board-position-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 56px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(138, 169, 200, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: #d7e5f3;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

body .message-board-position-pill:hover span {
  border-color: rgba(103, 190, 255, 0.28);
  background: rgba(103, 190, 255, 0.08);
  color: #f2f8fe;
  transform: translateY(-1px);
}

body .message-board-position-pill input:checked + span {
  border-color: rgba(103, 190, 255, 0.42);
  background: linear-gradient(180deg, rgba(83, 168, 235, 0.28), rgba(46, 111, 168, 0.24));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(13, 55, 93, 0.18);
}

body .message-board-position-pill input:focus-visible + span {
  outline: 2px solid rgba(99, 181, 255, 0.34);
  outline-offset: 2px;
}

body .message-board-field-hint {
  display: inline-block;
  margin-top: 8px;
  color: #96acc2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body .message-board-audience-summary {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(103, 190, 255, 0.16);
  background: rgba(103, 190, 255, 0.08);
  color: #cfe8fb;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body .message-board-compose-form__textarea,
body .message-board-reply-form__textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  color: #f2f8fe;
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.98), rgba(10, 16, 24, 0.98));
  border: 1px solid rgba(205, 222, 239, 0.68);
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.65;
}

body .message-board-compose-form__textarea::placeholder,
body .message-board-reply-form__textarea::placeholder {
  color: rgba(219, 232, 244, 0.58);
}

body .message-board-compose-form__actions,
body .message-board-reply-form__actions {
  display: flex;
  justify-content: stretch;
}

body .message-board-card--compose .manage-team-save-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(67, 77, 90, 0.94), rgba(47, 55, 66, 0.98));
  border: 1px solid rgba(162, 184, 208, 0.16);
  color: #f4f8fd;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 24px rgba(5, 12, 20, 0.12);
}

body .message-board-card--compose .manage-team-save-btn:hover,
body .message-board-card--compose .manage-team-save-btn:focus-visible {
  background:
    linear-gradient(180deg, rgba(78, 90, 104, 0.96), rgba(53, 62, 74, 1));
  border-color: rgba(180, 203, 226, 0.26);
  transform: translateY(-1px);
}

body .message-board-feed {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
  overflow: visible;
  padding: 2px;
  align-items: stretch;
}

body .message-board-post {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(103, 190, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(14, 22, 33, 0.88), rgba(10, 17, 26, 0.94)),
    radial-gradient(circle at top right, rgba(103, 190, 255, 0.06), transparent 32%);
  min-height: 180px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 30px rgba(4, 10, 18, 0.12);
}

body .message-board-post--mock {
  border-style: dashed;
}

body .message-board-post__summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  list-style: none;
}

body .message-board-post__summary::-webkit-details-marker {
  display: none;
}

body .message-board-post__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex: 1 1 auto;
}

body .message-board-post__content {
  display: grid;
  gap: 12px;
}

body .message-board-post__toggle {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 10px;
  border-right: 2px solid rgba(159, 214, 255, 0.9);
  border-bottom: 2px solid rgba(159, 214, 255, 0.9);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

body .message-board-post[open] .message-board-post__toggle {
  transform: rotate(225deg);
}

body .message-board-post__audience {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(103, 190, 255, 0.16);
  background: rgba(103, 190, 255, 0.1);
  color: #9fd6ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .message-board-post[data-message-audience="coaches"] .message-board-post__audience,
body .message-board-post[data-message-audience="member"] .message-board-post__audience {
  padding-left: 12px;
  border-color: rgba(238, 190, 84, 0.26);
  background: rgba(238, 190, 84, 0.1);
  color: #ffe2a5;
}

body .message-board-post[data-message-audience="coaches"] .message-board-post__audience::before,
body .message-board-post[data-message-audience="member"] .message-board-post__audience::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(238, 190, 84, 0.12);
}

body .message-board-post__visibility {
  margin-top: 8px;
  color: #a9bfd5;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body .message-board-post__title {
  margin: 8px 0 0;
  color: #f2f8fe;
  font-size: 1rem;
  font-weight: 800;
}

body .message-board-post__meta,
body .message-board-reply__meta {
  display: grid;
  gap: 3px;
  color: #9ab2ca;
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}

body .message-board-post__body,
body .message-board-reply__body {
  color: #dbe8f5;
  line-height: 1.62;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

body .message-board-seen {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(109, 153, 194, 0.12);
  background:
    linear-gradient(180deg, rgba(20, 29, 41, 0.84), rgba(14, 22, 31, 0.92));
}

body[data-view-mode="player"] .message-board-seen {
  display: none !important;
}

body[data-view-mode="player"] .message-board-post[data-message-audience="coaches"] {
  display: none !important;
}

body .message-board-seen__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #e3eef9;
  font-size: 0.82rem;
  font-weight: 800;
}

body .message-board-seen__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body .message-board-seen__group {
  display: grid;
  gap: 8px;
}

body .message-board-seen__label {
  color: var(--pro-text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .message-board-seen__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body .message-board-seen__chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(92, 190, 146, 0.22);
  background: rgba(92, 190, 146, 0.12);
  color: #c5f1dc;
  font-size: 0.76rem;
  font-weight: 700;
}

body .message-board-seen__chip--muted {
  border-color: rgba(146, 167, 189, 0.16);
  background: rgba(146, 167, 189, 0.08);
  color: #b9c9da;
}

body .message-board-replies {
  display: grid;
  gap: 12px;
  padding: 12px 0 0 18px;
  border-left: 1px solid rgba(103, 190, 255, 0.14);
}

body .message-board-reply {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body .message-board-reply-form {
  display: grid;
  gap: 10px;
}

body .message-board-reply-form__textarea {
  min-height: 76px;
}

body .message-board-reply-form--demo {
  opacity: 0.72;
}

body .message-board-reply-form--demo .message-board-reply-form__textarea,
body .message-board-reply-form--demo .manage-team-secondary-btn {
  cursor: not-allowed;
}

body .message-board-preview-note {
  color: var(--pro-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body .message-board-feed::-webkit-scrollbar {
  height: 10px;
}

body .message-board-social-feed::-webkit-scrollbar {
  display: none;
}

body .message-board-feed::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

body .message-board-feed::-webkit-scrollbar-thumb {
  background: rgba(103, 190, 255, 0.24);
  border-radius: 999px;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-card {
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.99), rgba(235, 243, 250, 0.99));
  border-color: rgba(94, 128, 160, 0.22);
  box-shadow:
    0 14px 28px rgba(47, 76, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-card .filter-control {
  color: #17304a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 252, 0.99));
  border-color: rgba(89, 121, 153, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(61, 91, 122, 0.05);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-card select.filter-control {
  background:
    linear-gradient(45deg, transparent 50%, #2f6fa8 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, #2f6fa8 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 252, 0.99));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-card .filter-control::placeholder {
  color: rgba(64, 86, 108, 0.68);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-card .filter-control:focus {
  border-color: rgba(47, 111, 168, 0.54);
  box-shadow:
    0 0 0 3px rgba(71, 148, 218, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-reply,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-form__shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 252, 0.98)),
    radial-gradient(circle at top right, rgba(72, 158, 231, 0.1), transparent 32%);
  border-color: rgba(80, 121, 160, 0.22);
  box-shadow:
    0 14px 26px rgba(47, 76, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post__title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post__body,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-reply__body,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-form__copy {
  color: #1f354b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-reply__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post__visibility,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-preview-note {
  color: #5b7288;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post__audience {
  border-color: rgba(47, 111, 168, 0.18);
  background: rgba(47, 111, 168, 0.08);
  color: #2469a4;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post[data-message-audience="coaches"] .message-board-post__audience,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post[data-message-audience="member"] .message-board-post__audience {
  border-color: rgba(163, 119, 28, 0.28);
  background: rgba(216, 164, 57, 0.12);
  color: #8a6417;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-post__toggle,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-compose-toggle__summary::after {
  border-color: #2f6fa8;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-seen {
  background: rgba(232, 240, 248, 0.82);
  border-color: rgba(84, 116, 148, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-seen__summary {
  color: #1f354b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-seen__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-field-hint {
  color: #5a7085;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-seen__chip {
  border-color: rgba(65, 139, 104, 0.22);
  background: rgba(65, 139, 104, 0.1);
  color: #245f45;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-seen__chip--muted {
  border-color: rgba(95, 119, 143, 0.2);
  background: rgba(95, 119, 143, 0.08);
  color: #5a7085;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-audience-summary {
  border-color: rgba(47, 111, 168, 0.2);
  background: rgba(47, 111, 168, 0.08);
  color: #245f93;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-position-picker {
  background: rgba(235, 243, 250, 0.9);
  border-color: rgba(89, 121, 153, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-position-pill span {
  border-color: rgba(89, 121, 153, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #28435d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-position-pill input:checked + span {
  border-color: rgba(47, 111, 168, 0.38);
  background: linear-gradient(180deg, rgba(82, 164, 236, 0.2), rgba(47, 111, 168, 0.16));
  color: #174b7a;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-form__textarea,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-compose-form__textarea,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-reply-form__textarea {
  color: #17304a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 252, 0.99));
  border-color: rgba(89, 121, 153, 0.32);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-form__textarea::placeholder,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-compose-form__textarea::placeholder,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-reply-form__textarea::placeholder {
  color: rgba(64, 86, 108, 0.66);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-form .manage-team-save-btn,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-card--compose .manage-team-save-btn {
  background:
    linear-gradient(180deg, rgba(215, 226, 237, 0.98), rgba(195, 211, 226, 0.98));
  border-color: rgba(89, 121, 153, 0.26);
  color: #17304a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 18px rgba(47, 76, 106, 0.1);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-post {
  background:
    radial-gradient(circle at top right, rgba(72, 158, 231, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 251, 0.98));
  border-color: rgba(80, 121, 160, 0.2);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-post__author,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-post__body {
  color: #1f354b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-post__handle,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-post__time {
  color: #61778e;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-post--coach.coach-1,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-post--coach.coach-2,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .message-board-social-post--coach.coach-3 {
  background:
    radial-gradient(circle at top right, rgba(216, 164, 57, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 252, 0.98));
  border-color: rgba(163, 119, 28, 0.22);
}

@media (max-width: 900px) {
  body .message-board-social-layout {
    grid-template-columns: 1fr;
  }

  body .message-board-position-picker {
    gap: 8px;
    padding: 12px;
  }

  body .message-board-position-pill span {
    min-width: 52px;
    padding-inline: 12px;
  }

  body .message-board-social-carousel {
    gap: 10px;
  }

  body .message-board-social-carousel__viewport {
    padding: 14px 14px 10px;
  }

  body .message-board-social-feed {
    grid-auto-rows: minmax(160px, auto);
    max-height: 380px;
    padding: 8px 4px;
  }

  body .message-board-social-post__head {
    display: grid;
    gap: 4px;
  }

  body .message-board-compose-form__targeting {
    grid-template-columns: 1fr;
  }

  body .message-board-post__head {
    grid-template-columns: 1fr;
    display: grid;
  }

  body .message-board-post__summary {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  body .message-board-post__meta,
  body .message-board-reply__meta {
    text-align: left;
    white-space: normal;
  }

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

  body .message-board-social-carousel__footer {
    justify-content: center;
  }

  body .message-board-social-carousel__arrow {
    display: none;
  }
}

/* =========================================================
   Team Profile
========================================================= */
body .team-profile-shell {
  display: grid;
  gap: 18px;
}

body .team-profile-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: linear-gradient(180deg, rgba(58, 69, 84, 0.96), rgba(50, 61, 76, 0.96));
  box-shadow: 0 16px 32px rgba(5, 10, 18, 0.14);
}

body .team-profile-hero {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(103, 190, 255, 0.14);
  background: linear-gradient(180deg, rgba(11, 21, 35, 0.98), rgba(19, 31, 48, 0.96));
  box-shadow: 0 20px 40px rgba(5, 10, 18, 0.22);
}

body .team-profile-banner {
  position: relative;
  min-height: 82px;
  padding: 12px 24px;
  background:
    linear-gradient(135deg, var(--team-banner-primary, #FFCD45), var(--team-banner-secondary, #F0B31A)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 30%);
}

body .team-profile-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 14px;
  background: linear-gradient(90deg, var(--team-banner-accent, #123E79), #4eb1ff);
}

body .team-profile-banner__watermark {
  color: rgba(20, 37, 62, 0.24);
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: clamp(1.9rem, 3.55vw, 3.75rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

body .team-profile-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 6px 24px 24px 30px;
  margin-top: -4px;
}

body .team-profile-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}

body .team-profile-logo-wrap {
  width: 118px;
  height: 118px;
  flex: 0 0 118px;
  padding: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: #f4f6fb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

body .team-profile-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
}

body .team-profile-copy {
  padding-top: 10px;
  max-width: 760px;
}

body .team-profile-eyebrow {
  color: #9fcfff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body .team-profile-title {
  margin: 6px 0 2px;
  color: #f4f8fc;
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: clamp(1.85rem, 2.55vw, 2.8rem);
  line-height: 1.05;
}

body .team-profile-location {
  color: #bdd1e5;
  font-size: 1.08rem;
  font-weight: 600;
}

body .team-profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

body .team-profile-metric {
  min-width: 0;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body .team-profile-metric__value {
  color: #f7fbff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

body .team-profile-metric__label {
  margin-top: 6px;
  color: #a9bfd4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

body .team-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-end;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 0 8px;
  margin-left: 0;
}

body .team-profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(103, 190, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #edf5fc;
  text-decoration: none;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body .team-profile-action--primary {
  background: linear-gradient(180deg, rgba(94, 184, 255, 0.98), rgba(52, 137, 216, 0.98));
  color: #071421;
  border-color: rgba(130, 205, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 22px rgba(38, 116, 184, 0.22);
}

body .team-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 6px;
}

body .team-profile-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: rgba(14, 23, 36, 0.44);
  color: #c8d8e8;
  text-decoration: none;
  font-weight: 700;
}

body .team-profile-tab.is-active {
  background: rgba(103, 190, 255, 0.14);
  color: #ffffff;
  border-color: rgba(103, 190, 255, 0.24);
}

body .team-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
}

body .team-profile-grid--main {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: start;
}

body .team-profile-grid--support {
  grid-template-columns: minmax(0, 1fr);
}

body .team-profile-card {
  padding: 18px;
  border-radius: 16px;
}

body .team-profile-card__head {
  margin-bottom: 16px;
}

body .team-profile-summary-card__copy .section-title {
  margin-bottom: 6px;
}

body .team-profile-card__head--subsection {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(103, 190, 255, 0.12);
}

body .team-profile-toggle {
  overflow: hidden;
}

body .team-profile-toggle__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 0 2px;
  min-height: 58px;
}

body .team-profile-toggle__summary::-webkit-details-marker {
  display: none;
}

body .team-profile-toggle__summary .section-title {
  margin-bottom: 6px;
}

body .team-profile-toggle__chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-right: 6px;
  border-right: 1.5px solid #7ebfff;
  border-bottom: 1.5px solid #7ebfff;
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

body .team-profile-toggle[open] .team-profile-toggle__chevron {
  transform: rotate(225deg);
}

body .team-profile-toggle__content {
  margin-top: 14px;
}

body .team-profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body .team-profile-stat-grid--summary {
  align-content: start;
}

body .team-profile-stat {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: rgba(19, 30, 45, 0.36);
}

body .team-profile-stat__label {
  color: #8fb9dd;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .team-profile-stat__value {
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
}

body .team-profile-summary {
  margin-top: 12px;
  color: #d7e5f3;
  line-height: 1.58;
  max-width: 76ch;
}

body .team-profile-shortcut-grid {
  display: grid;
  gap: 12px;
}

body .team-profile-shortcut {
  display: block;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: rgba(12, 22, 35, 0.44);
  color: #edf5fc;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

body .team-profile-shortcut:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 190, 255, 0.22);
  background: rgba(14, 28, 44, 0.58);
}

body .team-profile-shortcut__title {
  font-size: 1rem;
  font-weight: 800;
}

body .team-profile-shortcut__text {
  margin-top: 8px;
  color: var(--pro-text-soft);
  line-height: 1.55;
}

body .team-profile-member-list,
body .team-profile-notes {
  display: grid;
  gap: 12px;
}

body .team-profile-member-list--compact {
  gap: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: rgba(10, 18, 29, 0.32);
}

body .team-profile-member-list__header {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(220px, 0.46fr) minmax(230px, 0.22fr);
  gap: 16px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(103, 190, 255, 0.08);
  color: #8fb9dd;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body .team-profile-member-list__header span:last-child {
  text-align: right;
}

body .team-profile-member,
body .team-profile-note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: rgba(12, 22, 35, 0.44);
}

body .team-profile-member-list--compact .team-profile-member {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(230px, 0.22fr);
  gap: 16px;
  align-items: center;
  min-height: 56px;
  padding: 11px 14px;
  border-width: 0;
  border-bottom: 1px solid rgba(103, 190, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

body .team-profile-member-list--compact .team-profile-member:last-child {
  border-bottom-width: 0;
}

body .team-profile-member-list--compact .team-profile-member:hover {
  background: rgba(103, 190, 255, 0.045);
}

body .team-profile-member__identity {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(140px, 0.41fr) minmax(220px, 0.59fr);
  gap: 16px;
  align-items: baseline;
}

body .team-profile-member__name,
body .team-profile-note__label {
  color: #ffffff;
  font-weight: 800;
}

body .team-profile-member__meta,
body .team-profile-note__text {
  margin-top: 4px;
  color: var(--pro-text-soft);
  line-height: 1.55;
}

body .team-profile-member-list--compact .team-profile-member__meta {
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .team-profile-member__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body .team-profile-member-list--compact .team-profile-member__badges {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

body .team-profile-member-list--compact .manage-team-role-badge,
body .team-profile-member-list--compact .manage-team-view-badge {
  min-height: 26px;
  padding: 0 10px;
  font-size: 0.7rem;
}

body .team-profile-staff-position {
  margin-top: 10px;
}

body .team-profile-staff-position__label {
  color: #8fb9dd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .team-profile-staff-position__value {
  margin-top: 6px;
  color: #eef5fc;
  font-weight: 700;
  line-height: 1.45;
}

body .team-profile-staff-position__value--muted {
  color: var(--pro-text-soft);
  font-weight: 600;
}

body .team-profile-staff-editor {
  margin-top: 12px;
  border-top: 1px solid rgba(103, 190, 255, 0.08);
}

body .team-profile-staff-editor__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  cursor: pointer;
  list-style: none;
  color: #9fd6ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .team-profile-staff-editor__summary::-webkit-details-marker {
  display: none;
}

body .team-profile-staff-editor[open] .team-profile-toggle__chevron {
  transform: rotate(225deg);
}

body .team-profile-staff-form {
  display: grid;
  gap: 10px;
  padding: 2px 0 4px;
}

body .team-profile-staff-form .filter-control,
body .team-profile-details-form .filter-control {
  color: #f2f8fe;
  background:
    linear-gradient(180deg, rgba(8, 14, 22, 0.98), rgba(10, 16, 24, 0.98));
  border: 1px solid rgba(161, 193, 224, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(4, 10, 18, 0.18);
}

body .team-profile-staff-form__field {
  display: grid;
  gap: 8px;
}

body .team-profile-staff-form__submit {
  width: fit-content;
  min-width: 132px;
  min-height: 36px;
}

body .team-profile-branding-preview {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(103, 190, 255, 0.14);
  background: rgba(10, 18, 29, 0.5);
}

body .team-profile-branding-preview__banner {
  position: relative;
  min-height: 92px;
  padding: 16px 18px 18px 96px;
  background:
    linear-gradient(135deg, var(--team-banner-primary, #FFCD45), var(--team-banner-secondary, #F0B31A)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 30%);
}

body .team-profile-branding-preview__banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--team-banner-accent, #123E79), #4eb1ff);
}

body .team-profile-branding-preview__text {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(20, 37, 62, 0.22);
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-size: clamp(1.32rem, 2.45vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body .team-profile-branding-preview__logo {
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: 64px;
  height: 64px;
  padding: 5px;
  border-radius: 50%;
  background: #f4f6fb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

body .team-profile-branding-preview__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
}

body .team-profile-branding-form {
  display: grid;
  gap: 18px;
}

body .team-profile-details-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(103, 190, 255, 0.12);
}

body .team-profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body .team-profile-text-field {
  display: grid;
  gap: 8px;
}

body .team-profile-branding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body .team-profile-color-field {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(103, 190, 255, 0.1);
  background: rgba(17, 29, 43, 0.32);
}

body .team-profile-color-field input[type="color"] {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(103, 190, 255, 0.14);
  border-radius: 14px;
  background: rgba(12, 22, 35, 0.52);
  padding: 5px;
  cursor: pointer;
}

body .team-profile-color-value,
body .team-profile-file-note {
  color: var(--pro-text-soft);
  font-size: 0.78rem;
}

body .team-profile-file-field {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(103, 190, 255, 0.1);
  background: rgba(17, 29, 43, 0.32);
}

body .team-profile-file-field input[type="file"] {
  width: 100%;
  border: 1px solid rgba(103, 190, 255, 0.14);
  border-radius: 12px;
  background: rgba(11, 20, 32, 0.56);
  color: #d9e7f4;
  padding: 8px 10px;
}

body .team-profile-file-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(103, 190, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf5fc;
  font-weight: 700;
  cursor: pointer;
}

body .team-profile-file-field input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(103, 190, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf5fc;
  font-weight: 700;
  cursor: pointer;
}

body .team-profile-branding-actions {
  display: flex;
  justify-content: flex-start;
}

body .team-profile-branding-actions .manage-team-save-btn {
  min-width: 184px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(103, 190, 255, 0.14);
  box-shadow: none;
}

body .team-profile-branding-form .team-profile-branding-actions .manage-team-save-btn,
body .team-profile-details-form .team-profile-branding-actions .manage-team-save-btn {
  width: auto;
  flex: 0 0 auto;
}

body .team-profile-card__head--subsection {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(103, 190, 255, 0.12);
}

body .team-profile-branding-actions .manage-team-save-btn:hover,
body .team-profile-branding-actions .manage-team-save-btn:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(103, 190, 255, 0.22);
}

body .team-profile-inline-action {
  margin-top: 12px;
}

body .team-profile-inline-link {
  color: #8fcfff;
  font-weight: 700;
  text-decoration: none;
}

body .team-profile-inline-link:hover {
  color: #ffffff;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-hero {
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(229, 239, 248, 0.98));
  border-color: rgba(99, 131, 162, 0.26);
  box-shadow:
    0 16px 30px rgba(47, 76, 106, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-head {
  background: rgba(23, 43, 64, 0.92);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-summary-card {
  background:
    linear-gradient(180deg, rgba(248, 251, 254, 0.985), rgba(236, 242, 248, 0.985));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-member__name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-note__label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-stat__value {
  color: #172c42;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-head .team-profile-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-head .team-profile-metric__value {
  color: #f7fbff;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-summary,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-member__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-note__text,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-staff-position__value--muted {
  color: #42586d;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-stat,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-member,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-note,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-shortcut,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-color-field,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-file-field {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(235, 243, 250, 0.86));
  border-color: rgba(89, 121, 153, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-member-list--compact {
  background: rgba(235, 243, 250, 0.74);
  border-color: rgba(89, 121, 153, 0.2);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-member-list__header {
  color: #4d789e;
  border-bottom-color: rgba(89, 121, 153, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-member-list--compact .team-profile-member {
  border-bottom-color: rgba(89, 121, 153, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-member-list--compact .team-profile-member:hover {
  background: rgba(47, 111, 168, 0.055);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-head .team-profile-metric {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(161, 199, 232, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-action--primary {
  color: #071421;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-inline-link {
  color: #2469a4;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-staff-editor {
  border-top-color: rgba(89, 121, 153, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-staff-editor__summary {
  color: #2469a4;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-staff-form .filter-control,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .team-profile-details-form .filter-control {
  color: #17304a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 252, 0.99));
  border-color: rgba(89, 121, 153, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(61, 91, 122, 0.05);
}

body .manage-team-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body .manage-team-guide__item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(103, 190, 255, 0.12);
  background: rgba(12, 22, 35, 0.4);
}

body .manage-team-guide__label {
  color: #9dcaef;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .manage-team-guide__value {
  margin-top: 6px;
  color: var(--pro-text);
  line-height: 1.42;
  font-size: 0.82rem;
}

body #report-overview-section,
body #qb-summary-section,
body #rb-summary-section,
body #wr-summary-section {
  background: linear-gradient(180deg, rgba(61, 68, 78, 0.88) 0%, rgba(50, 56, 65, 0.9) 100%);
  border: 1px solid var(--pro-border-soft);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  padding: 12px;
  margin-bottom: 10px;
}

body .chip-sections {
  gap: 12px;
  margin: 8px 0 14px;
}

body .chip-card {
  background: linear-gradient(180deg, var(--pro-panel) 0%, var(--pro-panel-2) 100%);
  border: 1px solid var(--pro-border-soft);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 10px 10px 12px;
}

body .chip-card__title {
  width: 100%;
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: linear-gradient(180deg, #53b5ff 0%, #3f9fe9 100%);
  color: #0f2f4a;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.45px;
  box-shadow: none;
}

body .chip-list--scroll {
  max-height: 284px;
}

body #chips-opponent,
body #chips-offense-team {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body .chip {
  position: relative;
  background: #dbe9f5;
  border: 1px solid #c3d9ed;
  color: #2d4e6a;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body .chip--has-attempt-meter {
  position: relative;
  overflow: visible;
}

body .chip--has-attempt-meter:hover,
body .chip--has-attempt-meter:focus-visible {
  z-index: 60;
}

body .chip__label {
  display: inline-block;
}

body .chip__attempt-hover {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translate(-50%, 4px);
  min-width: 156px;
  padding: 7px 8px 8px;
  border-radius: 9px;
  border: 1px solid rgba(150, 201, 246, 0.42);
  background: rgba(12, 20, 30, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

body .chip:hover .chip__attempt-hover,
body .chip:focus-visible .chip__attempt-hover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

body .chip__attempt-label {
  display: block;
  color: #d9e9f8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  text-align: left;
}

body .chip__attempt-track {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

body .chip__attempt-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #63c7ff 0%, #3d96df 100%);
}

body .chip--selected {
  background: #4caefc;
  border-color: #4caefc;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(49, 148, 230, 0.35);
}

body .btn-reset-filters {
  border-radius: 10px;
  border: 1px solid var(--pro-border);
  background: #2f343b;
  color: #dce8f5;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

body .game-day-result-log-btn.btn-reset-filters {
  margin-top: 0;
  width: 100%;
  height: 100%;
  min-height: 58px;
  padding: 0 14px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, #ffd46e 0%, #e0a12e 100%);
  color: #18212b;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 24px rgba(158, 103, 28, 0.3);
}

body .playtype-toggle {
  margin: 2px 0 10px;
  padding: 3px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(23, 28, 34, 0.7);
  border: 1px solid rgba(173, 198, 220, 0.2);
  gap: 4px;
}

body .playtype-pill {
  min-width: 74px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #c2d5e9;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

body .playtype-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: none;
}

body .playtype-pill.active {
  background: linear-gradient(180deg, #53b5ff 0%, #3f9fe9 100%);
  border-color: #53b5ff;
  color: #fff;
  box-shadow: 0 3px 10px rgba(53, 152, 232, 0.35);
}

body .widget-section-title,
body .section-title {
  color: #65bcff;
  font-family: "Bahnschrift", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  font-weight: 750;
  letter-spacing: 0.2px;
}

/* =========================================================
   Report Widgets / Tables / Interactive Panels
========================================================= */
body:not(.welcome-page):not(.auth-page) .widget-section-title {
  font-size: 1.28rem;
  margin: 10px 0 14px;
}

body:not(.welcome-page):not(.auth-page) .section-title {
  font-size: 0.96rem;
  margin: 14px 0 10px;
}

body:not(.welcome-page):not(.auth-page) .widgets-grid {
  gap: 8px;
  margin-bottom: 10px;
}

body:not(.welcome-page):not(.auth-page) .widget-card {
  background: var(--pro-shell-bg-soft);
  border: 1px solid var(--pro-border-soft);
  border-radius: 0;
  clip-path: var(--pro-shell-clip-sm);
  box-shadow: var(--pro-shell-shadow-soft);
  padding: 12px 14px;
}

body:not(.welcome-page):not(.auth-page) .overall-team-card {
  background:
    linear-gradient(180deg, rgba(20, 38, 57, 0.98), rgba(15, 28, 42, 0.98)),
    radial-gradient(circle at top right, rgba(74, 174, 255, 0.12), transparent 28%);
  border: 1px solid rgba(126, 183, 229, 0.28);
  box-shadow: 0 12px 22px rgba(4, 10, 18, 0.18);
}

body:not(.welcome-page):not(.auth-page) .widget-title {
  color: #78c6ff;
  font-size: 0.68rem;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

body:not(.welcome-page):not(.auth-page) .widget-value {
  color: #f6fbff;
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  font-weight: 850;
}

body:not(.welcome-page):not(.auth-page) .widget-sub {
  color: #c1d0df;
  font-size: 0.72rem;
}

body:not(.welcome-page):not(.auth-page) .qb-pill-filter,
body:not(.welcome-page):not(.auth-page) .wr-pill-filter,
body:not(.welcome-page):not(.auth-page) .rb-pill-filter {
  background: rgba(21, 28, 36, 0.42);
  border: 1px solid var(--pro-border-soft);
  border-radius: 10px;
  padding: 10px;
}

body:not(.welcome-page):not(.auth-page) .btn-reset-targets {
  border-radius: 8px;
  border: 1px solid rgba(183, 209, 230, 0.26);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
}

body:not(.welcome-page):not(.auth-page) .run-pass-ratio,
body:not(.welcome-page):not(.auth-page) .situational-dn-dist-interactive,
body:not(.welcome-page):not(.auth-page) .situational-down-chart {
  border-top-color: rgba(183, 209, 230, 0.22);
}

body:not(.welcome-page):not(.auth-page) .situational-dd-title,
body:not(.welcome-page):not(.auth-page) .situational-down-title {
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

body:not(.welcome-page):not(.auth-page) .situational-dd-label {
  color: #d7e6f4;
  font-size: 0.8rem;
}

body:not(.welcome-page):not(.auth-page) .situational-pill {
  min-height: 28px;
  padding: 4px 12px;
  border-color: rgba(183, 209, 230, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e6f4;
  font-size: 0.78rem;
}

body:not(.welcome-page):not(.auth-page) .situational-pill.active {
  background: rgba(89, 169, 234, 0.28);
  border-color: rgba(109, 184, 244, 0.85);
}

body:not(.welcome-page):not(.auth-page) .top-targets,
body:not(.welcome-page):not(.auth-page) .top-targets-table,
body:not(.welcome-page):not(.auth-page) .top-routes-table,
body:not(.welcome-page):not(.auth-page) .down-distance-table,
body:not(.welcome-page):not(.auth-page) .leading-rushers-table,
body:not(.welcome-page):not(.auth-page) .explosive-dd-table,
body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table,
body:not(.welcome-page):not(.auth-page) .hit-chart,
body:not(.welcome-page):not(.auth-page) .pc-table,
body:not(.welcome-page):not(.auth-page) .pass-depth-summary {
  border-color: rgba(183, 209, 230, 0.24);
  background: rgba(32, 40, 49, 0.82);
}

body:not(.welcome-page):not(.auth-page) .top-targets th,
body:not(.welcome-page):not(.auth-page) .top-targets td,
body:not(.welcome-page):not(.auth-page) .top-targets-table th,
body:not(.welcome-page):not(.auth-page) .top-targets-table td,
body:not(.welcome-page):not(.auth-page) .top-routes-table th,
body:not(.welcome-page):not(.auth-page) .top-routes-table td,
body:not(.welcome-page):not(.auth-page) .down-distance-table th,
body:not(.welcome-page):not(.auth-page) .down-distance-table td,
body:not(.welcome-page):not(.auth-page) .leading-rushers-table th,
body:not(.welcome-page):not(.auth-page) .leading-rushers-table td,
body:not(.welcome-page):not(.auth-page) .explosive-dd-table th,
body:not(.welcome-page):not(.auth-page) .explosive-dd-table td,
body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table th,
body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table td,
body:not(.welcome-page):not(.auth-page) .hit-chart th,
body:not(.welcome-page):not(.auth-page) .hit-chart td,
body:not(.welcome-page):not(.auth-page) .pc-table th,
body:not(.welcome-page):not(.auth-page) .pc-table td,
body:not(.welcome-page):not(.auth-page) .pass-depth-summary th,
body:not(.welcome-page):not(.auth-page) .pass-depth-summary td {
  border-color: rgba(183, 209, 230, 0.18);
  font-size: 0.74rem;
  line-height: 1.2;
  padding: 6px 7px;
}

body:not(.welcome-page):not(.auth-page) .mini-table-wrap,
body:not(.welcome-page):not(.auth-page) .hit-chart-wrap,
body:not(.welcome-page):not(.auth-page) .pass-depth-summary-wrap,
body:not(.welcome-page):not(.auth-page) .pc-table-wrap {
  background: rgba(17, 24, 32, 0.22);
  border: 1px solid rgba(183, 209, 230, 0.16);
  border-radius: 10px;
  padding: 8px;
}

/* =========================================================
   Internal App Responsive Overrides
========================================================= */
@media (max-width: 980px) {
  body:not(.welcome-page):not(.auth-page) .page-container {
    padding: 0 12px 16px;
  }

  body:not(.welcome-page):not(.auth-page) #report-overview-section,
  body:not(.welcome-page):not(.auth-page) #qb-summary-section,
  body:not(.welcome-page):not(.auth-page) #rb-summary-section,
  body:not(.welcome-page):not(.auth-page) #wr-summary-section {
    padding: 12px;
    border-radius: 12px;
  }

  body:not(.welcome-page):not(.auth-page) .chip-sections {
    grid-template-columns: 1fr;
  }

  body:not(.welcome-page):not(.auth-page) #chips-opponent,
  body:not(.welcome-page):not(.auth-page) #chips-offense-team {
    grid-template-columns: 1fr;
  }

  body:not(.welcome-page):not(.auth-page) .chip-list--scroll {
    max-height: 290px;
  }

  body:not(.welcome-page):not(.auth-page) .playtype-pill {
    min-width: 78px;
  }
}

/* =========================================================
   Defense Premium Polish
========================================================= */
body.table-defense .chip-sections {
  background:
    linear-gradient(180deg, rgba(9, 16, 25, 0.72) 0%, rgba(12, 21, 32, 0.88) 100%);
  border-color: rgba(143, 193, 242, 0.14);
}

body.table-defense .chip-sections::before {
  background: linear-gradient(180deg, rgba(44, 91, 132, 0.98), rgba(19, 45, 69, 0.98));
  border-color: rgba(132, 202, 255, 0.28);
  color: #e9f6ff;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 16px rgba(5, 18, 30, 0.24);
}

body.table-defense .chip-card__title {
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91, 176, 245, 0.9), rgba(50, 124, 194, 0.9));
  border: 1px solid rgba(171, 217, 255, 0.28);
  color: #f7fcff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 7px 14px rgba(17, 73, 120, 0.16);
}

body.table-defense .chip-group,
body.table-defense .chip-list--scroll {
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(143, 193, 242, 0.075);
}

body.table-defense .chip {
  min-height: 26px;
  padding: 4px 10px;
  background: rgba(210, 225, 239, 0.14);
  border-color: rgba(161, 203, 240, 0.18);
  color: rgba(221, 235, 247, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

body.table-defense .chip:hover {
  background: rgba(225, 238, 249, 0.2);
  border-color: rgba(161, 203, 240, 0.28);
  color: #f5fbff;
}

body.table-defense .chip--selected,
body.table-defense .chip.chip--selected {
  background: linear-gradient(180deg, rgba(91, 176, 245, 0.88) 0%, rgba(50, 124, 194, 0.88) 100%);
  border-color: rgba(171, 217, 255, 0.34);
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(37, 110, 180, 0.18);
}

body.table-defense .playtype-toggle {
  background: rgba(9, 17, 27, 0.54);
  border-color: rgba(143, 193, 242, 0.15);
}

body.table-defense .playtype-pill {
  color: rgba(218, 232, 245, 0.82);
}

body.table-defense .playtype-pill.active {
  background: rgba(83, 177, 255, 0.2);
  border-color: rgba(132, 202, 255, 0.46);
  color: #f6fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.table-defense .widget-section-title,
body.table-defense .section-title {
  gap: 8px;
}

body.table-defense .widget-section-title::before,
body.table-defense .section-title::before {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(108, 194, 255, 0.95) 0%, rgba(54, 135, 211, 0.78) 100%);
  box-shadow: 0 0 16px rgba(66, 165, 245, 0.22);
}

body.table-defense .widget-card .widget-title,
body.table-defense .expected-points-title,
body.table-defense .tt-filter-title {
  letter-spacing: 0.04em;
  text-transform: none;
}

body.table-defense .widget-card .widget-sub,
body.table-defense .expected-points-sub,
body.table-defense .run-pass-ratio__total {
  line-height: 1.45;
}

body.table-defense .run-pass-ratio__label,
body.table-defense .run-pass-ratio__value,
body.table-defense .situational-dd-label,
body.table-defense .structural-chart-table th,
body.table-defense .structural-chart-table td,
body.table-defense .explosive-dd-table th,
body.table-defense .explosive-dd-table td,
body.table-defense .top-targets th,
body.table-defense .top-targets td,
body.table-defense .top-targets-table th,
body.table-defense .top-targets-table td,
body.table-defense .top-routes-table th,
body.table-defense .top-routes-table td,
body.table-defense .leading-rushers-table th,
body.table-defense .leading-rushers-table td,
body.table-defense .pass-explosive-fr-table th,
body.table-defense .pass-explosive-fr-table td {
  letter-spacing: 0;
}

body.table-defense .structural-chart-table thead th,
body.table-defense .structural-chart-table tbody th,
body.table-defense .structural-chart-table tfoot th,
body.table-defense .explosive-dd-table thead th,
body.table-defense .explosive-dd-table tbody th {
  color: rgba(227, 238, 248, 0.88);
  font-weight: 760;
  text-transform: none;
}

body.table-defense .structural-chart-count,
body.table-defense .structural-chart-total {
  font-size: 1.02rem;
}

body.table-defense .structural-chart-pct {
  color: rgba(221, 234, 246, 0.72);
  font-size: 0.72rem;
}

/* =========================================================
   Offense Premium Polish
========================================================= */
body.table-offense .chip-sections {
  background:
    linear-gradient(180deg, rgba(9, 16, 25, 0.72) 0%, rgba(12, 21, 32, 0.88) 100%);
  border-color: rgba(143, 193, 242, 0.14);
}

body.table-offense .chip-sections::before {
  background: linear-gradient(180deg, rgba(44, 91, 132, 0.98), rgba(19, 45, 69, 0.98));
  border-color: rgba(132, 202, 255, 0.28);
  color: #e9f6ff;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 16px rgba(5, 18, 30, 0.24);
}

body.table-offense .chip-card__title {
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91, 176, 245, 0.9), rgba(50, 124, 194, 0.9));
  border: 1px solid rgba(171, 217, 255, 0.28);
  color: #f7fcff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 7px 14px rgba(17, 73, 120, 0.16);
}

body.table-offense .chip-group,
body.table-offense .chip-list--scroll {
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(143, 193, 242, 0.075);
}

body.table-offense .chip {
  min-height: 26px;
  padding: 4px 10px;
  background: rgba(210, 225, 239, 0.14);
  border-color: rgba(161, 203, 240, 0.18);
  color: rgba(221, 235, 247, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

body.table-offense .chip:hover {
  background: rgba(225, 238, 249, 0.2);
  border-color: rgba(161, 203, 240, 0.28);
  color: #f5fbff;
}

body.table-offense .chip--selected,
body.table-offense .chip.chip--selected {
  background: linear-gradient(180deg, rgba(91, 176, 245, 0.88) 0%, rgba(50, 124, 194, 0.88) 100%);
  border-color: rgba(171, 217, 255, 0.34);
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(37, 110, 180, 0.18);
}

body.table-offense .playtype-toggle {
  background: rgba(9, 17, 27, 0.54);
  border-color: rgba(143, 193, 242, 0.15);
}

body.table-offense .playtype-pill {
  color: rgba(218, 232, 245, 0.82);
}

body.table-offense .playtype-pill.active {
  background: rgba(83, 177, 255, 0.2);
  border-color: rgba(132, 202, 255, 0.46);
  color: #f6fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.table-offense .widget-section-title,
body.table-offense .section-title {
  gap: 8px;
}

body.table-offense .widget-section-title::before,
body.table-offense .section-title::before {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(108, 194, 255, 0.95) 0%, rgba(54, 135, 211, 0.78) 100%);
  box-shadow: 0 0 16px rgba(66, 165, 245, 0.22);
}

body.table-offense .widget-card .widget-title,
body.table-offense .expected-points-title,
body.table-offense .tt-filter-title {
  letter-spacing: 0.04em;
  text-transform: none;
}

body.table-offense .widget-card .widget-sub,
body.table-offense .expected-points-sub,
body.table-offense .run-pass-ratio__total {
  line-height: 1.45;
}

body.table-offense .run-pass-ratio__label,
body.table-offense .run-pass-ratio__value,
body.table-offense .situational-dd-label,
body.table-offense .structural-chart-table th,
body.table-offense .structural-chart-table td,
body.table-offense .explosive-dd-table th,
body.table-offense .explosive-dd-table td,
body.table-offense .top-targets th,
body.table-offense .top-targets td,
body.table-offense .top-targets-table th,
body.table-offense .top-targets-table td,
body.table-offense .top-routes-table th,
body.table-offense .top-routes-table td,
body.table-offense .leading-rushers-table th,
body.table-offense .leading-rushers-table td,
body.table-offense .pass-explosive-fr-table th,
body.table-offense .pass-explosive-fr-table td {
  letter-spacing: 0;
}

body.table-offense .structural-chart-table thead th,
body.table-offense .structural-chart-table tbody th,
body.table-offense .structural-chart-table tfoot th,
body.table-offense .explosive-dd-table thead th,
body.table-offense .explosive-dd-table tbody th {
  color: rgba(227, 238, 248, 0.88);
  font-weight: 760;
  text-transform: none;
}

body.table-offense .structural-chart-count,
body.table-offense .structural-chart-total {
  font-size: 1.02rem;
}

body.table-offense .structural-chart-pct {
  color: rgba(221, 234, 246, 0.72);
  font-size: 0.72rem;
}

/* =========================================================
   Team Premium Polish
========================================================= */
body.table-teams .team-mode-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin: 2px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(143, 193, 242, 0.15);
  background: rgba(9, 17, 27, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.table-teams .team-mode-pill {
  min-width: 92px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(218, 232, 245, 0.82);
  background: transparent;
  box-shadow: none;
}

body.table-teams .team-mode-pill:hover {
  background: rgba(225, 238, 249, 0.08);
  border-color: rgba(161, 203, 240, 0.18);
  color: #f5fbff;
}

body.table-teams .team-mode-pill.active {
  background: rgba(83, 177, 255, 0.2);
  border-color: rgba(132, 202, 255, 0.46);
  color: #f6fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.table-teams .chip-sections {
  background:
    linear-gradient(180deg, rgba(9, 16, 25, 0.72) 0%, rgba(12, 21, 32, 0.88) 100%);
  border-color: rgba(143, 193, 242, 0.14);
}

body.table-teams .chip-sections::before {
  background: linear-gradient(180deg, rgba(44, 91, 132, 0.98), rgba(19, 45, 69, 0.98));
  border-color: rgba(132, 202, 255, 0.28);
  color: #e9f6ff;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 16px rgba(5, 18, 30, 0.24);
}

body.table-teams .chip-card__title {
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(91, 176, 245, 0.9), rgba(50, 124, 194, 0.9));
  border: 1px solid rgba(171, 217, 255, 0.28);
  color: #f7fcff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 7px 14px rgba(17, 73, 120, 0.16);
}

body.table-teams .chip-group,
body.table-teams .chip-list--scroll {
  background: rgba(255, 255, 255, 0.018);
  border-color: rgba(143, 193, 242, 0.075);
}

body.table-teams .chip {
  min-height: 26px;
  padding: 4px 10px;
  background: rgba(210, 225, 239, 0.14);
  border-color: rgba(161, 203, 240, 0.18);
  color: rgba(221, 235, 247, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

body.table-teams .chip:hover {
  background: rgba(225, 238, 249, 0.2);
  border-color: rgba(161, 203, 240, 0.28);
  color: #f5fbff;
}

body.table-teams .chip--selected,
body.table-teams .chip.chip--selected {
  background: linear-gradient(180deg, rgba(91, 176, 245, 0.88) 0%, rgba(50, 124, 194, 0.88) 100%);
  border-color: rgba(171, 217, 255, 0.34);
  color: #ffffff;
  box-shadow: 0 7px 16px rgba(37, 110, 180, 0.18);
}

body.table-teams .playtype-toggle {
  background: rgba(9, 17, 27, 0.54);
  border-color: rgba(143, 193, 242, 0.15);
}

body.table-teams .playtype-pill {
  color: rgba(218, 232, 245, 0.82);
}

body.table-teams .playtype-pill.active {
  background: rgba(83, 177, 255, 0.2);
  border-color: rgba(132, 202, 255, 0.46);
  color: #f6fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.table-teams .widget-section-title,
body.table-teams .section-title {
  gap: 8px;
}

body.table-teams .widget-section-title::before,
body.table-teams .section-title::before {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(108, 194, 255, 0.95) 0%, rgba(54, 135, 211, 0.78) 100%);
  box-shadow: 0 0 16px rgba(66, 165, 245, 0.22);
}

body.table-teams .widget-card .widget-title,
body.table-teams .expected-points-title,
body.table-teams .tt-filter-title {
  letter-spacing: 0.04em;
  text-transform: none;
}

body.table-teams .widget-card .widget-sub,
body.table-teams .expected-points-sub,
body.table-teams .run-pass-ratio__total {
  line-height: 1.45;
}

body.table-teams .run-pass-ratio__label,
body.table-teams .run-pass-ratio__value,
body.table-teams .situational-dd-label,
body.table-teams .structural-chart-table th,
body.table-teams .structural-chart-table td,
body.table-teams .explosive-dd-table th,
body.table-teams .explosive-dd-table td,
body.table-teams .top-targets th,
body.table-teams .top-targets td,
body.table-teams .top-targets-table th,
body.table-teams .top-targets-table td,
body.table-teams .top-routes-table th,
body.table-teams .top-routes-table td,
body.table-teams .leading-rushers-table th,
body.table-teams .leading-rushers-table td,
body.table-teams .pass-explosive-fr-table th,
body.table-teams .pass-explosive-fr-table td {
  letter-spacing: 0;
}

body.table-teams .structural-chart-table thead th,
body.table-teams .structural-chart-table tbody th,
body.table-teams .structural-chart-table tfoot th,
body.table-teams .explosive-dd-table thead th,
body.table-teams .explosive-dd-table tbody th {
  color: rgba(227, 238, 248, 0.88);
  font-weight: 760;
  text-transform: none;
}

body.table-teams .structural-chart-count,
body.table-teams .structural-chart-total {
  font-size: 1.02rem;
}

body.table-teams .structural-chart-pct {
  color: rgba(221, 234, 246, 0.72);
  font-size: 0.72rem;
}

/* =========================================================
   Print Overrides
========================================================= */
@media print {
  @page {
    size: auto;
    margin: 0.45in;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  .topbar,
  .subbar,
  .playtype-toggle,
  #debug-banner,
  .btn-reset-filters,
  .btn-reset-targets,
  #invite-section {
    display: none !important;
  }

  .page-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-overview-title {
    margin: 0 0 6px !important;
    color: #000 !important;
    break-after: avoid-page;
    page-break-after: avoid;
  }

  #report-overview-section {
    break-inside: avoid-page;
    page-break-inside: avoid;
    margin-bottom: 8px;
  }

  #qb-summary-section {
    break-before: page;
    page-break-before: always;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  #wr-summary-section {
    break-before: page;
    page-break-before: always;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  #report-overview-section,
  #qb-summary-section,
  #wr-summary-section {
    zoom: 0.88;
  }

  .widget-section-title,
  .section-title,
  .chip-card__title,
  .widget-title,
  .widget-value,
  .widget-sub {
    color: #000 !important;
    text-shadow: none !important;
  }

  .widgets-grid,
  .widgets-grid--2,
  .widgets-grid--3,
  .overall-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .widget-card,
  .overall-team-card,
  .chip-card {
    background: #fff !important;
    border: 1px solid #d3d7dc !important;
    box-shadow: none !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    min-height: 0 !important;
  }

  .chip-sections {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 4px 0 8px !important;
  }

  .chip-card {
    padding: 6px 7px 7px !important;
  }

  .chip-card__title {
    background: #e5e9ef !important;
    border: 1px solid #ccd3dc !important;
    color: #000 !important;
    margin: 0 0 5px !important;
    width: 100% !important;
    border-radius: 4px !important;
    font-size: 7.4pt !important;
    padding: 3px 4px !important;
    box-shadow: none !important;
  }

  .chip-list--scroll {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  .chip-group__wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  .chip {
    padding: 2px 6px !important;
    border-radius: 999px !important;
    border: 1px solid #c7cfda !important;
    background: #f2f5f9 !important;
    color: #111 !important;
    box-shadow: none !important;
    font-size: 7.1pt !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
  }

  .chip:not(.chip--selected) {
    display: none !important;
  }

  .chip--selected {
    display: inline-flex !important;
    background: #dbe5f1 !important;
    border-color: #95a8c0 !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .widget-title {
    font-size: 8.1pt !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.25px !important;
  }

  .widget-value {
    font-size: 13pt !important;
    line-height: 1.05 !important;
  }

  .widget-sub {
    font-size: 7pt !important;
    margin-top: 1px !important;
  }

  #qb-hit-chart .hit-chart,
  #wr-hit-chart .hit-chart,
  .pass-depth-summary,
  .top-targets,
  .top-targets-table {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #cfd4da !important;
    background: #fff !important;
  }

  #qb-hit-chart .hit-chart th,
  #qb-hit-chart .hit-chart td,
  #wr-hit-chart .hit-chart th,
  #wr-hit-chart .hit-chart td,
  .pass-depth-summary th,
  .pass-depth-summary td,
  .top-targets th,
  .top-targets td,
  .top-targets-table th,
  .top-targets-table td {
    color: #000 !important;
    border-color: #d5dbe2 !important;
    background: #fff !important;
    padding: 3px 4px !important;
    font-size: 6.8pt !important;
  }
}

@media (max-width: 1180px) {
  .welcome-atmosphere__ring--hero,
  .welcome-atmosphere__route--low,
  .welcome-atmosphere__laces--bottom {
    display: none;
  }

  .welcome-hero,
  .welcome-story,
  .welcome-grid.company-grid {
    grid-template-columns: 1fr;
  }

  .welcome-hero {
    padding: 26px 24px 28px;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  }

  .welcome-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .welcome-showcase {
    padding: 76px 20px 20px;
  }

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

  .welcome-support-deck {
    min-height: 0;
  }

  .welcome-support-deck__stage {
    min-height: 392px;
  }

  .company-team__grid,
  .company-proof-strip,
  .company-philosophy__grid,
  .customers-groups__grid,
  .customers-footprint__dashboard,
  .customers-map,
  .customers-map-showcase__grid,
  .careers-board__grid,
  .careers-admin-grid,
  .contact-page__hero {
    grid-template-columns: 1fr;
  }

  .company-team__meta,
  .company-team__story-grid,
  .customers-type-list {
    grid-template-columns: 1fr;
  }

  .company-team__founder-card {
    grid-template-columns: 1fr;
  }

  .company-team__founder-intro {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(124, 176, 222, 0.12);
  }

  .company-team__story-block--wide {
    grid-column: auto;
  }

  .welcome-proofband,
  .welcome-trust,
  .welcome-footer,
  .welcome-footer__links {
    grid-template-columns: 1fr;
  }

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

  body .manage-team-hero,
  body .team-profile-summary-card,
  body .manage-team-grid,
  body .team-profile-grid,
  body .team-profile-grid--main,
  body .team-profile-grid--support {
    grid-template-columns: 1fr;
  }

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

  body .team-profile-head {
    flex-direction: column;
  }

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

  body .team-profile-actions {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 780px) {
  .welcome-atmosphere {
    inset: -4px -8px -10px;
    opacity: 0.7;
  }

  .welcome-atmosphere__route--mid,
  .welcome-atmosphere__hash--right,
  .welcome-atmosphere__laces--top,
  .welcome-atmosphere__ring--footer {
    display: none;
  }

  .welcome-shell {
    width: min(100vw - 24px, 100%);
    padding: 18px 0 30px;
  }

  .welcome-topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .welcome-brand {
    gap: 4px;
  }

  .welcome-brand__banner {
    width: 190px;
    margin: 0 0 -4px;
  }

  .welcome-atmosphere__hash--mid-right,
  .welcome-atmosphere__route--corner,
  .welcome-atmosphere__ring--midfield,
  .welcome-atmosphere__x--right {
    display: none;
  }


  .welcome-menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .welcome-topbar__actions {
    width: 100%;
  }

  .welcome-auth-box {
    width: fit-content;
  }

  .welcome-dropdown__panel {
    left: 0;
    transform: translateX(0) translateY(8px);
    min-width: min(240px, calc(100vw - 48px));
  }

  .welcome-dropdown:hover .welcome-dropdown__panel,
  .welcome-dropdown:focus-within .welcome-dropdown__panel {
    transform: translateX(0) translateY(0);
  }

  .welcome-hero {
    padding: 22px 18px 24px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  }

  .welcome-title {
    font-size: clamp(1.92rem, 8vw, 2.65rem);
  }

  .welcome-showcase {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    padding: 70px 16px 18px;
  }

  .welcome-showcase::before {
    right: 44px;
  }

  .welcome-product-board__hero-filters,
  .welcome-product-board__hero-metrics,
  .welcome-product-board__hero-actions,
  .welcome-module-card__filters,
  .welcome-module-card__stats {
    grid-template-columns: 1fr;
  }

  .welcome-product-board__hero-frame,
  .welcome-module-card__frame {
    min-height: 0;
  }

  .welcome-support-deck {
    min-height: 0;
  }

  .welcome-support-deck__stage {
    min-height: 0;
    perspective: none;
    margin-bottom: 18px;
  }

  .welcome-support-card {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .welcome-support-card:not(.is-active) {
    display: none;
  }

  .welcome-support-card .welcome-module-card__frame {
    min-height: 0;
  }

  .welcome-support-deck__controls {
    margin-top: 0;
    align-items: stretch;
    padding-left: 0;
  }

  .welcome-support-deck__tabs {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .welcome-product-board__hero-topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .welcome-proofband,
  .welcome-flow__grid,
  .welcome-trust {
    grid-template-columns: 1fr;
  }

  .welcome-flow__card {
    min-height: 220px;
    padding: 24px 24px 26px;
  }

  .welcome-footer {
    padding: 22px 20px 20px;
    gap: 22px;
  }

  .welcome-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-hero,
  .customers-hero,
  .company-team {
    padding: 24px 20px;
  }

  .company-hero {
    grid-template-columns: 1fr;
  }

  .company-hero .welcome-hero__copy {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
    gap: 18px;
    text-align: center;
  }

  .company-hero .welcome-eyebrow,
  .company-hero .company-title,
  .company-hero .welcome-subtitle {
    grid-column: 1;
  }

  .company-hero .welcome-eyebrow {
    justify-self: center;
    margin-bottom: 0;
  }

  .company-hero .company-title {
    max-width: none;
  }

  .company-hero .welcome-subtitle {
    max-width: none;
    text-align: left;
    width: 100%;
    transform: none;
  }

  .company-highlights,
  .company-philosophy__grid,
  .customers-groups__grid,
  .customers-map,
  .customers-map-showcase__grid,
  .careers-board__grid,
  .careers-admin-grid,
  .careers-admin-form__split,
  .contact-form__grid,
  .demo-slot-picker__grid {
    grid-template-columns: 1fr;
  }

  .company-philosophy {
    padding: 24px 20px;
  }

  .customers-groups {
    padding: 24px 20px;
  }

  .customers-map {
    padding: 24px 20px;
  }

  .customers-map-showcase__card {
    padding: 18px;
  }

  .company-team__grid {
    grid-template-columns: 1fr;
  }

  .customers-map__board {
    overflow-x: auto;
  }

  .customers-map__grid {
    min-width: 620px;
    grid-auto-rows: 30px;
    gap: 5px;
  }

  .welcome-title {
    max-width: none;
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }

  .welcome-flow__title {
    white-space: normal;
  }

  body .manage-team-hero,
  body .manage-team-card {
    padding: 18px;
  }

  body .manage-team-table {
    min-width: 680px;
  }

  body .manage-team-summary-grid {
    grid-template-columns: 1fr;
  }

  body .manage-team-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  body .team-profile-logo-wrap {
    width: 140px;
    height: 140px;
    flex-basis: 140px;
  }

  body .team-profile-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  body .team-profile-copy {
    padding-top: 0;
  }

  body .team-profile-metrics {
    grid-template-columns: 1fr 1fr;
  }

  body .team-profile-stat-grid {
    grid-template-columns: 1fr;
  }

  body .team-profile-member-list--compact .team-profile-member,
  body .team-profile-member-list__header,
  body .team-profile-member__identity {
    grid-template-columns: 1fr;
  }

  body .team-profile-member-list__header {
    display: none;
  }

  body .team-profile-member-list--compact .team-profile-member__badges {
    justify-content: flex-start;
  }

  body .team-profile-branding-grid {
    grid-template-columns: 1fr;
  }

  body .team-profile-details-grid {
    grid-template-columns: 1fr;
  }

  body .team-profile-branding-preview__logo {
    width: 68px;
    height: 68px;
  }

  body .team-profile-branding-preview__banner {
    padding-left: 92px;
  }

  body .subtab-dropdown__menu {
    min-width: 180px;
  }
}

/* Light theme chart/table contrast fix */
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .expected-points-card {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(235, 244, 252, 0.98));
  border-color: rgba(79, 113, 145, 0.28);
  box-shadow: 0 16px 34px rgba(52, 82, 112, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .expected-points-title {
  color: #18334e;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .expected-points-sub {
  color: #405a72;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #overall-expected-points-canvas {
  background: rgba(229, 239, 249, 0.96);
  border: 1px solid rgba(86, 122, 156, 0.28);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-pill {
  border-color: rgba(75, 108, 140, 0.28);
  background: linear-gradient(180deg, rgba(241, 247, 253, 0.98), rgba(222, 233, 244, 0.98));
  color: #34516b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-pill.active {
  border-color: rgba(47, 131, 216, 0.72);
  background: linear-gradient(180deg, #62b9ff 0%, #2f83d8 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(47, 131, 216, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table {
  background: rgba(244, 249, 254, 0.98);
  border-color: rgba(75, 108, 140, 0.3);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table td {
  border-color: rgba(75, 108, 140, 0.18);
  color: #17324c;
  font-size: 0.92rem;
  font-weight: 780;
  padding: 9px 12px;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table thead th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table tbody th {
  background: rgba(210, 224, 238, 0.96);
  color: #102a43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table tbody td {
  background: rgba(233, 241, 249, 0.98);
  font-size: 1rem;
  font-weight: 800;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-table tbody tr:nth-child(even) td {
  background: rgba(224, 235, 246, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .explosive-dd-total {
  color: #405a72;
  font-size: 0.95rem;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table-wrap {
  padding: 10px;
  border-radius: 12px;
  background: rgba(244, 249, 254, 0.72);
  border: 1px solid rgba(75, 108, 140, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table {
  overflow: hidden;
  border-color: rgba(75, 108, 140, 0.28);
  background: rgba(247, 251, 255, 0.96);
  box-shadow: 0 14px 28px rgba(52, 82, 112, 0.06);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table th {
  color: #14304a;
  font-size: 0.86rem;
  font-weight: 850;
  padding: 10px 12px;
  border-color: rgba(75, 108, 140, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table thead th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table tbody th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table tfoot th {
  background: rgba(214, 228, 241, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table thead th {
  color: #102a43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-table td {
  padding: 3px;
  border-color: rgba(75, 108, 140, 0.12);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-cell {
  min-height: 70px;
  border-color: rgba(55, 111, 162, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-count {
  color: #102a43;
  font-size: 1.18rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-pct {
  color: #294a68;
  font-size: 0.78rem;
  font-weight: 750;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-cell--total {
  background: linear-gradient(180deg, rgba(215, 228, 240, 0.98), rgba(198, 214, 229, 0.98)) !important;
  border-color: rgba(75, 108, 140, 0.3);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .structural-chart-total {
  margin-top: 12px;
  color: #314c66;
  font-size: 0.98rem;
  font-weight: 850;
}

html[data-theme="light"] body.table-defense .chip-sections,
html[data-theme="light"] body.table-offense .chip-sections,
html[data-theme="light"] body.table-teams .chip-sections {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.88), rgba(232, 241, 249, 0.9));
  border-color: rgba(83, 119, 153, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 24px rgba(56, 83, 110, 0.08);
}

html[data-theme="light"] body.table-defense .chip-sections::before,
html[data-theme="light"] body.table-offense .chip-sections::before,
html[data-theme="light"] body.table-teams .chip-sections::before {
  background: linear-gradient(180deg, rgba(72, 126, 174, 0.98), rgba(42, 91, 136, 0.98));
  border-color: rgba(62, 112, 158, 0.28);
  box-shadow: 0 6px 14px rgba(55, 105, 150, 0.16);
}

html[data-theme="light"] body.table-defense .chip-card + .chip-card::before,
html[data-theme="light"] body.table-offense .chip-card + .chip-card::before,
html[data-theme="light"] body.table-teams .chip-card + .chip-card::before {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(83, 119, 153, 0.14),
    transparent
  );
}

html[data-theme="light"] body.table-defense #btn-reset-filters,
html[data-theme="light"] body.table-offense #btn-reset-filters,
html[data-theme="light"] body.table-teams #btn-reset-filters {
  background: linear-gradient(180deg, rgba(239, 246, 253, 0.98), rgba(219, 231, 243, 0.98));
  border-color: rgba(62, 103, 143, 0.34);
  color: #17324c;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(57, 88, 116, 0.08);
}

html[data-theme="light"] body.table-defense #btn-reset-filters:hover,
html[data-theme="light"] body.table-offense #btn-reset-filters:hover,
html[data-theme="light"] body.table-teams #btn-reset-filters:hover {
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(229, 239, 249, 0.98));
  border-color: rgba(47, 131, 216, 0.52);
  color: #0f2a44;
}

html[data-theme="light"] body.table-defense #btn-reset-filters:focus-visible,
html[data-theme="light"] body.table-offense #btn-reset-filters:focus-visible,
html[data-theme="light"] body.table-teams #btn-reset-filters:focus-visible {
  outline: 2px solid rgba(47, 131, 216, 0.58);
  outline-offset: 2px;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table {
  background: rgba(247, 251, 255, 0.98);
  border: 0;
  box-shadow: 0 10px 22px rgba(52, 82, 112, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #run-leading-rushers {
  background: transparent;
  border: 0;
  padding: 0;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table .lr-head th {
  background: rgba(209, 224, 238, 0.98);
  color: #102a43;
  border-color: rgba(75, 108, 140, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table td {
  color: #17324c;
  border-color: rgba(75, 108, 140, 0.16);
  font-weight: 820;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table tbody tr td {
  background: rgba(234, 242, 250, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table tbody tr:nth-child(even) td {
  background: rgba(224, 235, 246, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .leading-rushers-table tbody tr:hover td {
  background: rgba(204, 225, 246, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-personnel-bars {
  padding: 12px 10px 8px;
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.64);
  border: 1px solid rgba(75, 108, 140, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-personnel-value {
  color: #15304a;
  font-size: 0.9rem;
  font-weight: 900;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-personnel-track {
  background: rgba(207, 222, 237, 0.82);
  border: 1px solid rgba(75, 108, 140, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-personnel-fill {
  background: linear-gradient(180deg, #43b5f2 0%, #2385d0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-personnel-label {
  color: #17324c;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-personnel-total {
  color: #314c66;
  font-size: 0.95rem;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-chart {
  padding: 10px;
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.64);
  border: 1px solid rgba(75, 108, 140, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-bar-count {
  color: #15304a;
  font-size: 0.84rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-bar-track {
  background: rgba(207, 222, 237, 0.92);
  border: 1px solid rgba(75, 108, 140, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-bar-fill {
  background: linear-gradient(180deg, #43b5f2 0%, #2385d0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-tech {
  color: #4b6a85;
  background: transparent;
  border-color: transparent;
  font-size: 0.82rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-node {
  color: #17324c;
  background: linear-gradient(180deg, rgba(232, 241, 250, 0.98), rgba(215, 229, 242, 0.98));
  border-color: rgba(75, 108, 140, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-node--center {
  color: #0f2a44;
  border-color: rgba(47, 131, 216, 0.42);
  background: linear-gradient(180deg, rgba(207, 231, 250, 0.98), rgba(183, 215, 242, 0.98));
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-node--wr,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-node--te,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-node--t,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-node--g {
  color: #17324c;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-gap-label {
  color: #17324c;
  font-size: 0.76rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-gap-metric {
  color: #1f5f9e;
  font-size: 0.68rem;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-gap-metric--success {
  color: #236f4b;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-gap-metric--empty {
  color: rgba(49, 76, 102, 0.52);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .offensive-line-total {
  color: #314c66;
  font-size: 0.95rem;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table {
  background: rgba(247, 251, 255, 0.98);
  border-color: rgba(75, 108, 140, 0.3);
  box-shadow: 0 10px 22px rgba(52, 82, 112, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table td {
  border-color: rgba(75, 108, 140, 0.16);
  color: #17324c;
  font-size: 0.86rem;
  font-weight: 820;
  padding: 8px 10px;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table thead th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table tbody th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table tfoot th {
  background: rgba(209, 224, 238, 0.98);
  color: #102a43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table tbody td {
  background: rgba(234, 242, 250, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table tbody tr:nth-child(even) td {
  background: rgba(224, 235, 246, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table tfoot th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-table tfoot td {
  background: rgba(200, 216, 232, 0.98);
  color: #102a43;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-fr-total {
  color: #314c66;
  font-size: 0.95rem;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-breakout-toggle {
  background: linear-gradient(180deg, rgba(239, 246, 253, 0.98), rgba(219, 231, 243, 0.98));
  border-color: rgba(62, 103, 143, 0.34);
  color: #17324c;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-explosive-breakout-toggle:hover {
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(229, 239, 249, 0.98));
  border-color: rgba(47, 131, 216, 0.52);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-offplay-efficiency-chart {
  padding: 10px;
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.64);
  border: 1px solid rgba(75, 108, 140, 0.14);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-head {
  color: #294a68;
  font-size: 0.8rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-legend__item {
  color: #294a68;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-legend__swatch {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 1px 2px rgba(44, 70, 96, 0.12);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-row {
  background: rgba(234, 242, 250, 0.98);
  border-color: rgba(75, 108, 140, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-row:nth-child(even) {
  background: rgba(224, 235, 246, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-rank,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-play,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-rate,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-avg {
  color: #17324c;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-play {
  font-size: 0.9rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-bar {
  background: rgba(207, 222, 237, 0.74);
  border: 1px solid rgba(75, 108, 140, 0.16);
  box-shadow:
    inset 0 1px 2px rgba(44, 70, 96, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-bar-fill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-eff-total {
  color: #314c66;
  font-size: 0.95rem;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pill-filter,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .rb-pill-filter,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .wr-pill-filter {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.92), rgba(232, 241, 249, 0.94));
  border-color: rgba(75, 108, 140, 0.18);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(56, 83, 110, 0.07);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pill-filter__head,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .rb-pill-filter__head,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .wr-pill-filter__head {
  margin-bottom: 10px;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pill-filter__title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .rb-pill-filter__title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .wr-pill-filter__title {
  color: #1f5f9e;
  font-size: 0.9rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-group__wrap--qb,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-group__wrap--rb,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .chip-group__wrap--target {
  gap: 8px;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .btn-reset-targets {
  background: linear-gradient(180deg, rgba(239, 246, 253, 0.98), rgba(219, 231, 243, 0.98));
  border-color: rgba(62, 103, 143, 0.34);
  color: #17324c;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(57, 88, 116, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .btn-reset-targets:hover {
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(229, 239, 249, 0.98));
  border-color: rgba(47, 131, 216, 0.52);
  color: #0f2a44;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pie-card {
  background: rgba(247, 251, 255, 0.98);
  border-color: rgba(75, 108, 140, 0.2);
  box-shadow:
    0 12px 24px rgba(52, 82, 112, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pie-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pie-legend-item {
  color: #17324c;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pie-title {
  font-size: 0.86rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pie-legend-item {
  font-size: 0.78rem;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart-wrap,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary-wrap,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table-wrap {
  background: rgba(247, 251, 255, 0.78);
  border-color: rgba(75, 108, 140, 0.16);
  box-shadow: 0 10px 22px rgba(52, 82, 112, 0.07);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table {
  background: rgba(247, 251, 255, 0.98);
  border-color: rgba(75, 108, 140, 0.28);
  box-shadow: 0 8px 18px rgba(52, 82, 112, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table td {
  border-color: rgba(75, 108, 140, 0.16);
  color: #17324c;
  font-size: 0.84rem;
  font-weight: 850;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-title {
  background: linear-gradient(180deg, #c61515 0%, #a50909 100%);
  color: #ffffff;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-subhead th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-summary-head th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-summary-sub th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary .pds-head th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table .pc-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table .pc-group th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table .pc-head th {
  background: rgba(203, 222, 238, 0.98);
  color: #102a43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary .pds-label,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table .pc-row-label {
  color: #102a43;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary .pds-overall td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-summary-row td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-side-tot {
  background: rgba(225, 237, 248, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary .pds-sep td {
  background: rgba(178, 188, 198, 0.9);
  color: #102a43;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary .pds-deep td:not(:first-child),
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-band-deep {
  background: rgba(255, 86, 86, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary .pds-mid td:not(:first-child),
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-band-mid {
  background: rgba(245, 196, 0, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pass-depth-summary .pds-short td:not(:first-child),
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .hit-chart .hc-band-short {
  background: rgba(0, 191, 120, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table tbody tr:nth-child(odd) td {
  background: rgba(234, 242, 250, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table tbody tr:nth-child(even) td {
  background: rgba(224, 235, 246, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .pc-table tbody tr:hover td {
  background: rgba(207, 230, 249, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-card {
  background: rgba(247, 251, 255, 0.98);
  border-color: rgba(75, 108, 140, 0.26);
  box-shadow: 0 10px 22px rgba(52, 82, 112, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-title {
  color: #1f5f9e;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-headline,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-main,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-mini-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-empty {
  color: #17324c;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-subhead,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-meta {
  color: #314c66;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-row,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-mini-row {
  background: rgba(234, 242, 250, 0.98);
  border-color: rgba(75, 108, 140, 0.18);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-row:hover,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-mini-row:hover {
  background: rgba(207, 230, 249, 0.98);
  border-color: rgba(47, 131, 216, 0.34);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-rank,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-rank-sm {
  background: rgba(47, 131, 216, 0.16);
  border-color: rgba(47, 131, 216, 0.34);
  color: #1f5f9e;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .qb-pass-insight-chip {
  background: rgba(224, 235, 246, 0.98);
  border-color: rgba(75, 108, 140, 0.22);
  color: #17324c;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(232, 241, 249, 0.98));
  border-color: rgba(75, 108, 140, 0.22);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .widget-section-title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .widget-title {
  color: #1f5f9e;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .widget-card {
  background: rgba(247, 251, 255, 0.98);
  border-color: rgba(75, 108, 140, 0.22);
  box-shadow:
    0 10px 20px rgba(52, 82, 112, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .widget-value {
  color: #102a43;
  font-weight: 900;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .widget-sub {
  color: #314c66;
  font-weight: 750;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .wr-pill-filter,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .tt-filter-wrap {
  background: rgba(239, 247, 254, 0.98);
  border-color: rgba(75, 108, 140, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .wr-pill-filter__title,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .tt-filter-title {
  color: #1f5f9e;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .chip {
  background: linear-gradient(180deg, rgba(235, 245, 253, 0.98), rgba(213, 229, 243, 0.98));
  border-color: rgba(75, 108, 140, 0.26);
  color: #17324c;
  font-weight: 850;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .chip--selected {
  background: linear-gradient(180deg, #49aef0, #247fc6);
  border-color: rgba(31, 95, 158, 0.52);
  color: #ffffff;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .mini-table-wrap {
  background: rgba(247, 251, 255, 0.78);
  border: 1px solid rgba(75, 108, 140, 0.16);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 22px rgba(52, 82, 112, 0.07);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .down-distance-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets-table,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-routes-table {
  background: rgba(247, 251, 255, 0.98);
  border-color: rgba(75, 108, 140, 0.28);
  box-shadow: 0 8px 18px rgba(52, 82, 112, 0.08);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .down-distance-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .down-distance-table td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets-table td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-routes-table th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-routes-table td {
  background: rgba(234, 242, 250, 0.98);
  border-color: rgba(75, 108, 140, 0.16);
  color: #17324c;
  font-size: 0.84rem;
  font-weight: 850;
  text-shadow: none;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .down-distance-table .dd-head th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets .tt-head th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets-table .tt-head th,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-routes-table .tr-head th {
  background: rgba(203, 222, 238, 0.98);
  color: #102a43;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .down-distance-table tbody tr:nth-child(even) td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets tbody tr:nth-child(even) td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets-table tbody tr:nth-child(even) td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-routes-table tbody tr:nth-child(even) td {
  background: rgba(224, 235, 246, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .down-distance-table tbody tr:hover td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets tbody tr:hover td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-targets-table tbody tr:hover td,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .top-routes-table tbody tr:hover td {
  background: rgba(207, 230, 249, 0.98);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .tt-target,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .tt-name,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .tr-route,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .tt-rank,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) #wr-summary-section .tr-rank {
  color: #102a43;
  font-weight: 900;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-pass-ratio__track,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-ratio-track,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-bar,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-bar {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dce8f2 0%, #cbd8e4 100%);
  border: 1px solid rgba(47, 78, 108, 0.16);
  box-shadow:
    inset 0 1px 2px rgba(34, 55, 76, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-pass-ratio__fill,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-ratio-run,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-ratio-pass,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-fill-run,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-fill-pass,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-bar-run,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-bar-pass {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .run-pass-ratio__fill::after,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-ratio-run::after,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-dd-ratio-pass::after,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-fill-run::after,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .struct-off-fill-pass::after,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-bar-run::after,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .situational-down-bar-pass::after {
  content: "";
  position: absolute;
  inset: 1px 0 auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 18px;
  align-items: start;
}

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

.support-meta-value {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  overflow-wrap: anywhere;
}

.support-form {
  display: grid;
  gap: 16px;
}

.support-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-form__textarea {
  min-height: 170px;
  resize: vertical;
}

.support-file-drop {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(160, 209, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8f0f8;
  cursor: pointer;
}

.support-file-drop:hover {
  border-color: rgba(160, 209, 255, 0.56);
  background: rgba(255, 255, 255, 0.06);
}

.support-file-drop__title {
  font-weight: 850;
}

.support-file-drop__meta {
  color: rgba(232, 240, 248, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.support-file-drop input {
  width: 100%;
  color: rgba(232, 240, 248, 0.82);
}

.support-form__actions {
  justify-content: flex-end;
}

.support-card--aside {
  position: sticky;
  top: 92px;
}

.support-checklist {
  display: grid;
  gap: 10px;
}

.support-checklist__item {
  padding: 12px 13px;
  border: 1px solid rgba(160, 209, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(232, 240, 248, 0.86);
  line-height: 1.45;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .support-file-drop,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .support-checklist__item {
  border-color: rgba(47, 78, 108, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #1f2f42;
}

html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .support-file-drop__meta,
html[data-theme="light"] body:not(.welcome-page):not(.auth-page) .support-file-drop input {
  color: rgba(31, 47, 66, 0.72);
}

@media (max-width: 980px) {
  .support-grid,
  .support-form__grid,
  .support-summary-grid {
    grid-template-columns: 1fr;
  }

  .support-card--aside {
    position: static;
  }
}

/* =========================================================
   Marketing responsive layout
   Keep this final so the phone/tablet rules win over the
   desktop marketing composition above.
========================================================= */
.marketing-page {
  overflow-x: hidden;
}

.marketing-page .welcome-stage,
.marketing-page .welcome-stage__content,
.marketing-page .welcome-main,
.marketing-page .welcome-topbar,
.marketing-page .welcome-hero,
.marketing-page .welcome-hero__copy,
.marketing-page .welcome-hero__visual,
.marketing-page .welcome-showcase {
  min-width: 0;
  max-width: 100%;
}

.marketing-page .welcome-title,
.marketing-page .welcome-subtitle,
.marketing-page .welcome-flow__title,
.marketing-page .welcome-story__title {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .marketing-page .welcome-shell {
    width: calc(100% - 32px);
    max-width: 100%;
    padding:
      max(14px, env(safe-area-inset-top))
      env(safe-area-inset-right)
      max(28px, env(safe-area-inset-bottom))
      env(safe-area-inset-left);
  }

  .marketing-page .welcome-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px 12px;
    margin: 0 0 12px;
  }

  .marketing-page .welcome-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .marketing-page .welcome-brand__banner {
    width: clamp(142px, 34vw, 190px);
    max-width: 100%;
    margin: 0;
  }

  .marketing-page .welcome-topbar__actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    justify-self: end;
    justify-content: flex-end;
  }

  .marketing-page .welcome-auth-box .welcome-button--small,
  .marketing-page .welcome-auth-box .welcome-link {
    min-height: 44px;
    padding: 0 17px;
    font-size: 0.9rem;
  }

  .marketing-page .welcome-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 2px 0 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .marketing-page .welcome-menu::-webkit-scrollbar {
    display: none;
  }

  .marketing-page .welcome-menu__item,
  .marketing-page .welcome-dropdown {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
  }

  .marketing-page .welcome-dropdown::after {
    display: none;
  }

  .marketing-page .welcome-menu__button {
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid rgba(124, 176, 222, 0.12);
    background: rgba(11, 18, 29, 0.68);
    font-size: 0.88rem;
    line-height: 1;
  }

  .marketing-page .welcome-dropdown__panel {
    position: fixed;
    top: auto;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    width: auto;
    min-width: 0;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    transform: translateY(12px);
  }

  .marketing-page .welcome-dropdown:hover .welcome-dropdown__panel,
  .marketing-page .welcome-dropdown:focus-within .welcome-dropdown__panel,
  .marketing-page .welcome-dropdown.is-open .welcome-dropdown__panel {
    transform: translateY(0);
  }

  .marketing-page .welcome-main,
  .marketing-page .welcome-stage__content {
    gap: 16px;
  }

  .marketing-page .welcome-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 22px 24px;
  }

  .marketing-page .welcome-title {
    max-width: 18ch;
    margin: 4px 0 8px;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: 1;
  }

  .marketing-page .welcome-subtitle {
    max-width: 58ch;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .marketing-page .welcome-actions {
    margin-top: 6px;
  }

  .marketing-page .welcome-showcase {
    padding: 68px 16px 16px;
  }

  .marketing-page .welcome-proofband,
  .marketing-page .welcome-trust {
    gap: 12px;
  }

  .marketing-page .welcome-flow {
    padding: 22px 18px 24px;
  }

  .marketing-page .welcome-flow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .marketing-page .welcome-flow__card {
    min-height: 0;
    padding: 22px 20px 24px;
  }

  .marketing-page .welcome-flow__card-title,
  .marketing-page .welcome-flow__card-text {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .marketing-page .welcome-shell {
    width: calc(100% - 20px);
    overflow: hidden;
  }

  .marketing-page .welcome-topbar {
    display: block;
    min-height: 102px;
    padding-right: 92px;
    position: relative;
  }

  .marketing-page .welcome-brand__banner {
    width: clamp(132px, 42vw, 164px);
  }

  .marketing-page .welcome-topbar__actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
  }

  .marketing-page .welcome-auth-box .welcome-button--small,
  .marketing-page .welcome-auth-box .welcome-link {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .marketing-page .welcome-menu {
    width: calc(100% + 92px);
    margin-top: 12px;
    padding-right: 92px;
  }

  .marketing-page .welcome-menu__button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .marketing-page .welcome-hero {
    contain: inline-size;
    width: 100%;
    gap: 18px;
    padding: 20px 18px 20px 16px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }

  .marketing-page .welcome-hero *,
  .marketing-page .welcome-showcase * {
    min-width: 0;
    max-width: 100%;
  }

  .marketing-page .welcome-hero__copy {
    width: 100%;
    gap: 10px;
  }

  .marketing-page .welcome-eyebrow,
  .marketing-page .welcome-panel__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .marketing-page .welcome-title {
    display: block;
    width: 100%;
    max-width: none;
    font-size: clamp(1.72rem, 8.4vw, 2.14rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: wrap;
    word-break: normal;
  }

  .marketing-page .welcome-subtitle {
    display: block;
    width: 100%;
    font-size: 0.92rem;
    line-height: 1.55;
    text-wrap: wrap;
  }

  .marketing-page .welcome-actions,
  .marketing-page .welcome-button--primary {
    width: 100%;
  }

  .marketing-page .welcome-button--primary {
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
  }

  .marketing-page .welcome-showcase {
    contain: inline-size;
    width: 100%;
    padding: 58px 12px 12px;
  }

  .marketing-page .welcome-showcase::before {
    right: 34px;
    padding: 12px 14px;
    font-size: 0.66rem;
  }

  .marketing-page .welcome-product-board__hero-frame,
  .marketing-page .welcome-module-card__frame {
    padding: 14px;
  }

  .marketing-page .welcome-product-board__hero-metrics,
  .marketing-page .welcome-module-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-page .welcome-product-board__hero-actions {
    grid-template-columns: 1fr;
  }

  .marketing-page .welcome-proofband__item,
  .marketing-page .welcome-story__panel,
  .marketing-page .welcome-cta-card,
  .marketing-page .welcome-trust__item {
    padding: 20px 17px 20px;
  }

  .marketing-page .welcome-story-toggle__summary {
    padding: 19px 18px;
  }

  .marketing-page .welcome-story {
    padding: 0 12px 12px;
  }

  .marketing-page .welcome-flow {
    padding: 20px 14px 20px;
  }

  .marketing-page .welcome-flow__grid {
    grid-template-columns: 1fr;
  }

  .marketing-page .welcome-flow__card {
    padding: 20px 18px 22px;
  }

  .marketing-page .welcome-flow__number {
    margin-bottom: 14px;
  }

  .marketing-page .welcome-flow__card-title {
    margin-bottom: 10px;
    font-size: 1.42rem;
  }

  .marketing-page .welcome-footer {
    padding: 20px 16px 18px;
  }

  .marketing-page .welcome-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .marketing-page .demo-modal {
    align-items: end;
    padding: 10px;
  }

  .marketing-page .demo-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 20px 16px;
  }
}

/* Keep signed-in responsive rules last so legacy dashboard sections cannot
   restore desktop widths after the phone/tablet pass above. */
@media (max-width: 1024px) {
  body:not(.welcome-page):not(.auth-page) .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
    padding: 8px 12px;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__left {
    display: contents;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__brand {
    grid-area: 1 / 1;
    width: 126px;
    height: 40px;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__right {
    grid-area: 1 / 2;
    width: auto;
    justify-self: end;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__nav {
    grid-area: 2 / 1 / 3 / -1;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__link {
    flex: 1 0 auto;
    min-height: 42px;
    white-space: nowrap;
  }

  body:not(.welcome-page):not(.auth-page) .subbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px 12px 10px;
  }

  body:not(.welcome-page):not(.auth-page) .subbar__tabs {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body:not(.welcome-page):not(.auth-page) .subbar__tabs > * {
    flex: 0 0 auto;
  }

  body:not(.welcome-page):not(.auth-page) .page-container {
    width: 100%;
    max-width: 100%;
    padding: 0 12px 18px;
  }

  body:not(.welcome-page):not(.auth-page) .chip-sections,
  body:not(.welcome-page):not(.auth-page) .gameplan-control-grid,
  body:not(.welcome-page):not(.auth-page) .gameplan-grid,
  body:not(.welcome-page):not(.auth-page) .game-day-predictor-grid,
  body:not(.welcome-page):not(.auth-page) .game-day-result-grid,
  body:not(.welcome-page):not(.auth-page) .upload-data-grid,
  body:not(.welcome-page):not(.auth-page) .manage-team-hero,
  body:not(.welcome-page):not(.auth-page) .team-profile-grid--main,
  body:not(.welcome-page):not(.auth-page) .message-board-grid,
  body:not(.welcome-page):not(.auth-page) .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.welcome-page):not(.auth-page) .manage-team-side {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  body:not(.welcome-page):not(.auth-page) .topbar__brand {
    width: 104px;
  }

  body:not(.welcome-page):not(.auth-page) .user-chip {
    width: 42px;
    max-width: 42px;
    min-height: 42px;
    padding: 4px;
    justify-content: center;
  }

  body:not(.welcome-page):not(.auth-page) .user-chip__name {
    display: none;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__link,
  body:not(.welcome-page):not(.auth-page) .subtab,
  body:not(.welcome-page):not(.auth-page) .subtab-dropdown__toggle {
    min-height: 44px;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
  }

  body:not(.welcome-page):not(.auth-page) .topbar__link {
    min-width: 0;
    padding: 9px 3px;
    font-size: clamp(0.63rem, 2.7vw, 0.74rem);
    letter-spacing: 0;
  }

  body:not(.welcome-page):not(.auth-page) .user-menu__panel {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    left: auto;
    width: min(230px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    z-index: 1000;
  }

  body:not(.welcome-page):not(.auth-page) .user-menu__panel .subtab-dropdown__item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  body:not(.welcome-page):not(.auth-page) .user-chip.subtab-dropdown__toggle::after {
    display: none;
  }

  body:not(.welcome-page):not(.auth-page) .page-container {
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }

  body:not(.welcome-page):not(.auth-page) #report-overview-section,
  body:not(.welcome-page):not(.auth-page) #qb-summary-section,
  body:not(.welcome-page):not(.auth-page) #rb-summary-section,
  body:not(.welcome-page):not(.auth-page) #wr-summary-section,
  body:not(.welcome-page):not(.auth-page) #qb-pass-summary-section,
  body:not(.welcome-page):not(.auth-page) .widget-card {
    clip-path: none;
    border-radius: 12px;
  }

  body:not(.welcome-page):not(.auth-page) .widgets-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.welcome-page):not(.auth-page) input,
  body:not(.welcome-page):not(.auth-page) select,
  body:not(.welcome-page):not(.auth-page) textarea {
    max-width: 100%;
    font-size: 16px;
  }
}
