:root {
  --ink: #151a20;
  --muted: #65707c;
  --line: #dce2e8;
  --panel: #ffffff;
  --page: #f3f5f7;
  --accent: #d5203f;
  --accent-dark: #a9122d;
  --secondary: #087f8c;
  --win: #15824b;
  --loss: #b42332;
  --shadow: 0 8px 24px rgba(21, 26, 32, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  color: #fff;
  background: #171c22;
  border-bottom: 3px solid var(--accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  display: inline-block;
  margin-top: 8px;
  color: #b8c1cb;
  font-size: 13px;
}

.app-nav {
  display: flex;
  gap: 8px;
  padding: 0 18px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.nav-button.is-active {
  color: var(--ink);
  background: transparent;
  border-color: var(--accent);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
}

button,
select,
input {
  min-height: 40px;
  border-radius: 6px;
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  font-weight: 700;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button {
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  padding: 0 14px;
  color: #075e66;
  background: #dff1f2;
}

.quiet-button {
  padding: 0 14px;
  color: var(--muted);
  background: #edf1f5;
}

.link-button {
  min-height: 0;
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.link-button:hover {
  color: var(--accent);
}

select,
input {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
}

select[multiple] {
  min-height: 210px;
  padding: 8px;
}

select[multiple] option {
  padding: 6px;
}

.is-hidden {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #e9edf1;
}

.login-card {
  width: min(460px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 20px 55px rgba(21, 26, 32, 0.14);
}

.login-card h1 {
  margin-bottom: 12px;
}

.login-copy {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

/* Application installable (PWA) */
.pwa-install-button {
  white-space: nowrap;
}

.login-card > .pwa-install-button {
  width: 100%;
  margin: 4px 0 14px;
}

@media (display-mode: standalone) {
  .pwa-install-button {
    display: none !important;
  }
}

.public-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.public-steps div {
  display: grid;
  gap: 5px;
  min-height: 76px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fb;
}

.public-steps strong {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
}

.public-steps span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.login-form {
  display: grid;
  gap: 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 18px;
}

.auth-tab {
  min-height: 34px;
  padding: 0 8px;
  color: var(--muted);
  background: #edf1f5;
  font-size: 13px;
}

.auth-tab.is-active {
  color: #fff;
  background: var(--accent);
}

.management-nav-panel {
  overflow: hidden;
}

.simulation-nav-panel {
  grid-column: 1 / -1;
  overflow: hidden;
}

.management-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 1px;
  background: var(--line);
}

.management-nav-panel .management-tabs {
  grid-template-columns: repeat(8, minmax(96px, 1fr));
}

.simulation-tabs {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.management-tab {
  min-height: 44px;
  border-radius: 0;
  color: var(--muted);
  background: #fff;
}

.management-tab.is-active {
  color: #fff;
  background: var(--accent);
}

.training-select {
  min-width: 140px;
}

.training-camp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.86rem;
  color: var(--text);
}

.training-camp-toggle input {
  width: 16px;
  height: 16px;
}

.login-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-shell {
  min-height: 100vh;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.3fr);
  gap: 16px;
  padding: 20px;
  max-width: 1680px;
  margin: 0 auto;
}

.panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: #fcfdfe;
  border-bottom: 1px solid var(--line);
}

.results-panel {
  grid-column: 1 / -1;
}

.leaders-panel {
  grid-column: 1 / -1;
}

.schedule-panel {
  grid-column: 1 / -1;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-controls select {
  min-width: 180px;
}

.calendar-controls button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 22px;
}

.season-calendar {
  padding: 14px;
  overflow-x: auto;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  min-width: 910px;
}

.calendar-weekdays {
  background: #263746;
}

.calendar-weekdays span {
  padding: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 152px;
  padding: 8px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-day:nth-child(7n + 1) {
  border-left: 1px solid var(--line);
}

.calendar-day.is-outside {
  background: #f3f6f8;
}

.calendar-day.has-games {
  background: #fbfdfe;
}

.calendar-day-number {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-day-games {
  display: grid;
  gap: 5px;
}

.calendar-game {
  display: grid;
  grid-template-columns: 24px 10px 24px minmax(42px, auto);
  align-items: center;
  gap: 3px;
  width: 100%;
  min-height: 31px;
  padding: 3px 5px;
  color: var(--ink);
  background: #eef3f6;
  border: 1px solid #dce4e9;
  border-radius: 4px;
  font-size: 11px;
}

button.calendar-game {
  cursor: pointer;
}

button.calendar-game:hover {
  background: #e2eef0;
  border-color: var(--accent);
}

.calendar-game b {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.calendar-game strong {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  font-size: 12px;
}

.calendar-game small {
  color: var(--muted);
  font-size: 9px;
}

.calendar-team-logo {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.team-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7eef4;
  border: 1px solid #cbd8e2;
  color: var(--muted);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.calendar-empty {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.history-panel {
  grid-column: 1 / -1;
}

.commissioner-panel {
  grid-column: 1 / -1;
}

.admin-tabs {
  border-bottom: 1px solid var(--line);
}

.admin-settings {
  display: grid;
}

.simulation-assistant {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.phase-control-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid #1d4ed8;
  background: #f8fbff;
}

.phase-control-card span,
.phase-control-card small {
  display: block;
  color: var(--muted);
}

.phase-control-card strong {
  display: block;
  margin: 2px 0;
}

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

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

.simulation-step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.simulation-step strong {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #edf2f6;
  color: var(--muted);
  font-size: 13px;
}

.simulation-step span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simulation-step.is-complete {
  color: #17603a;
  background: #eef8f2;
  border-color: #b8dcc5;
}

.simulation-step.is-complete strong {
  color: #fff;
  background: #248651;
}

.simulation-step.is-active {
  color: var(--secondary);
  border-color: #9ccbd4;
  box-shadow: 0 0 0 2px rgba(32, 133, 151, 0.12);
}

.simulation-step.is-active strong {
  color: #fff;
  background: var(--secondary);
}

.simulation-step.is-blocked {
  color: #9b2c2c;
  background: #fff1f1;
  border-color: #e4b7b7;
}

.simulation-operation-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid #c7d9e8;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--text);
}

.simulation-operation-status strong,
.simulation-operation-status span {
  display: block;
}

.simulation-operation-status span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.simulation-operation-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2c7ea0;
  box-shadow: 0 0 0 5px rgba(44, 126, 160, 0.12);
}

.simulation-operation-status.is-busy .simulation-operation-dot {
  animation: operationPulse 1s ease-in-out infinite;
}

.simulation-operation-status.is-ok {
  border-color: #b8dcc5;
  background: #eef8f2;
}

.simulation-operation-status.is-ok .simulation-operation-dot {
  background: #248651;
  box-shadow: 0 0 0 5px rgba(36, 134, 81, 0.13);
}

.simulation-operation-status.is-warning {
  border-color: #edc982;
  background: #fff7e8;
}

.simulation-operation-status.is-warning .simulation-operation-dot {
  background: #b56b00;
  box-shadow: 0 0 0 5px rgba(181, 107, 0, 0.13);
}

.simulation-operation-status.is-danger {
  border-color: #e4b7b7;
  background: #fff1f1;
}

.simulation-operation-status.is-danger .simulation-operation-dot {
  background: #b42318;
  box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.13);
}

@keyframes operationPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.55;
  }
}

.simulation-import-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.simulation-import-empty {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--muted);
}

.simulation-import-empty strong {
  color: var(--text);
}

.simulation-import-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.simulation-import-head strong,
.simulation-import-head span {
  display: block;
}

.simulation-import-head span {
  color: var(--muted);
  font-size: 13px;
}

.simulation-import-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.simulation-import-badge.is-ok {
  background: #248651;
}

.simulation-import-badge.is-warning {
  background: #b56b00;
}

.simulation-import-badge.is-danger {
  background: #b42318;
}

.simulation-import-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.simulation-import-grid div {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.simulation-import-grid div:nth-child(6n) {
  border-right: 0;
}

.simulation-import-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.simulation-import-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simulation-import-issues {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.simulation-import-issues div {
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
}

.simulation-import-issues .is-warning {
  color: #8a5200;
  background: #fff4e5;
}

.simulation-import-issues .is-danger {
  color: #9b2c2c;
  background: #fff1f1;
}

.settings-grid,
.stats-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px;
}

.settings-grid label,
.stats-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 18px;
}

.toggle-row input {
  width: auto;
}

.maintenance-box {
  display: grid;
  gap: 8px;
  max-width: 620px;
  padding: 18px;
}

.maintenance-box span {
  color: var(--muted);
}

.maintenance-box button {
  justify-self: start;
  margin-top: 8px;
}

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

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

.backup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.backup-card > div:first-child {
  display: grid;
  gap: 3px;
}

.backup-card span {
  color: var(--muted);
  font-size: 13px;
}

.readiness-item {
  border-left: 4px solid var(--line);
}

.readiness-item.is-ok {
  border-left-color: #2f9e44;
}

.readiness-item.is-warning {
  border-left-color: #f08c00;
}

.readiness-item.is-danger {
  border-left-color: #c92a2a;
}

.commissioner-requests {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.commissioner-requests .dashboard-item {
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 2fr) auto;
  align-items: center;
}

.draft-panel {
  grid-column: 1 / -1;
}

.dashboard-panel {
  grid-column: 1 / -1;
}

.leagues-panel {
  grid-column: 1 / -1;
}

.playoffs-panel {
  grid-column: 1 / -1;
}

.trade-panel {
  grid-column: 1 / -1;
}

.free-agency-panel {
  grid-column: 1 / -1;
}

.extension-panel {
  grid-column: 1 / -1;
}

.finances-panel {
  grid-column: 1 / -1;
}

.offseason-panel {
  grid-column: 1 / -1;
}

.offseason-stages {
  display: grid;
  grid-template-columns: repeat(9, minmax(100px, 1fr));
  gap: 1px;
  padding: 16px;
  overflow-x: auto;
  background: var(--line);
}

.offseason-stage {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 9px;
  background: #fff;
}

.offseason-stage span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.offseason-stage.is-active {
  color: #fff;
  background: var(--accent);
}

.offseason-stage.is-active span {
  color: #fff;
}

.offseason-stage.is-complete {
  border-bottom: 3px solid var(--win);
}

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

.trade-waiver {
  padding: 4px 0 0;
  text-transform: none;
}

.affiliate-panel {
  grid-column: 1 / -1;
}

.team-panel,
.lineup-panel,
.movement-panel {
  grid-column: 1 / -1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #edf1f5;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #f7f9fb;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: #f8fafb;
}

.brand-lockup,
.panel-team-heading,
.team-identity,
.dashboard-opponent {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: var(--accent);
  font-weight: 900;
}

.brand-team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.panel-team-heading {
  gap: 11px;
}

.team-logo-frame {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.team-logo,
.dashboard-opponent img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
}

.team-logo-frame .team-logo {
  width: 40px;
  height: 40px;
}

.team-identity {
  display: inline-flex;
  gap: 9px;
  min-width: 0;
}

.team-identity.is-compact {
  gap: 7px;
}

.team-identity.is-compact .team-logo {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}

.team-identity span,
.dashboard-opponent span {
  min-width: 0;
}

.dashboard-opponent {
  gap: 8px;
}

.standing-team {
  display: inline-flex;
  align-items: center;
}

.muted-cell {
  color: var(--muted);
  font-size: 12px;
}

.standing-conference-row td {
  padding-top: 16px;
  color: #fff;
  background: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.standing-division-row td {
  color: var(--accent-dark);
  background: #edf7f8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.roster-goalie-separator td,
.roster-goalie-card-separator {
  color: #fff;
  background: #263746;
  border-top: 3px solid var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.roster-goalie-separator td {
  height: 34px;
  padding: 7px 12px;
}

.roster-goalie-card-separator {
  padding: 9px 12px;
  border-radius: 5px;
}

body table .roster-goalie-separator td,
body table .roster-goalie-separator td strong,
body .roster-goalie-card-separator,
body .roster-goalie-card-separator strong {
  color: #fff;
}

body table .roster-goalie-separator td,
body .roster-goalie-card-separator {
  background: #243746;
  border-color: #d5203f;
}

.seed-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 22px;
  margin-right: 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 5px;
  font-size: 11px;
}

.team-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.manager-controls {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.manager-controls label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.subsection-title {
  padding: 14px 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lineup-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}

.lineup-group {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lineup-group h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
}

.lineup-group-wide {
  grid-column: 1 / -1;
}

.lineup-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lineup-toolbar select {
  min-width: 220px;
}

.lineup-level-tabs {
  margin: 0;
}

.lineup-access-notice {
  padding: 10px 16px;
  color: #215f43;
  background: #eef8f2;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.lineup-access-notice.is-readonly {
  color: #765019;
  background: #fff7e8;
}

.lineup-assistant-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: #fbfdff;
  border-bottom: 1px solid var(--line);
}

.lineup-assistant-bar strong,
.lineup-assistant-bar span {
  display: block;
}

.lineup-assistant-bar span {
  color: var(--muted);
  font-size: 13px;
}

.lineup-assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.lineup-assistant-actions select {
  flex: 1 1 190px;
  min-width: 0;
  max-width: 100%;
}

.lineup-assistant-actions button {
  flex: 0 1 auto;
  max-width: 100%;
}

#injuryReturnPlanGroup,
#injuryReturnPlanGroup .lineup-assistant-bar,
#injuryReturnPlanGroup .lineup-assistant-actions {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#injuryReturnPlanGroup .lineup-assistant-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
}

#injuryReturnPlanGroup .lineup-assistant-bar > div {
  min-width: 0;
}

#injuryReturnPlanGroup .lineup-assistant-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(170px, auto);
}

#injuryReturnPlanGroup .lineup-assistant-actions select,
#injuryReturnPlanGroup .lineup-assistant-actions button {
  width: 100%;
  min-width: 0;
  margin: 0;
}

#injuryReturnPlanGroup #saveInjuryReturnPlanButton {
  position: relative;
  z-index: 2;
}

.injury-callup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.injury-callup-panel > .injury-callup-grid {
  padding: 16px;
}

.injury-callup-column {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.injury-callup-column h4 { margin: 0 0 4px; }

.injury-callup-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 9px;
  background: var(--surface-soft);
}

.injury-callup-row small { display: block; color: var(--muted); }
.injury-callup-rank { font-weight: 800; text-align: center; }
.injury-callup-actions { display: flex; gap: 4px; }
.injury-callup-actions button { min-width: 34px; padding: 6px 8px; }

.lineup-validation-panel {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.lineup-validation-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.lineup-validation-summary strong,
.lineup-validation-summary span {
  display: block;
}

.lineup-validation-summary span {
  color: var(--muted);
  font-size: 13px;
}

.lineup-validation-summary.is-ok {
  background: #eef8f2;
  border-color: #b8dcc5;
}

.lineup-validation-summary.is-warning {
  background: #fff8e8;
  border-color: #e8d39c;
}

.lineup-validation-summary.is-danger {
  background: #fff1f1;
  border-color: #e4b7b7;
}

.lineup-score {
  min-width: 72px;
  text-align: right;
}

.lineup-score strong {
  font-size: 26px;
}

.lineup-validation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.lineup-validation-item {
  padding: 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.lineup-validation-item strong,
.lineup-validation-item span {
  display: block;
}

.lineup-validation-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.lineup-validation-item.is-warning {
  background: #fff8e8;
  border-color: #e8d39c;
}

.lineup-validation-item.is-danger {
  background: #fff1f1;
  border-color: #e4b7b7;
}

.lineup-validation-help {
  color: #9b2c2c;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-action-center {
  grid-column: 1 / -1;
}

.dashboard-action-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.dashboard-action {
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 4px;
  text-align: left;
  color: var(--ink);
}

.dashboard-action:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.dashboard-action strong,
.dashboard-action span {
  display: block;
}

.dashboard-action span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-action.is-danger {
  border-left-color: #dc2626;
}

.dashboard-action.is-warning {
  border-left-color: #d97706;
}

.dashboard-action.is-info {
  border-left-color: #2563eb;
}

.dashboard-action.is-ok {
  border-left-color: #16a34a;
}

.health-layout,
.commissioner-overview-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.4fr);
  gap: 18px;
  align-items: start;
}

.health-alert {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.health-alert strong {
  color: var(--ink);
}

.health-alert span {
  color: var(--muted);
  font-size: 13px;
}

.health-alert .quiet-button {
  justify-self: start;
  margin-top: 4px;
}

.health-alert.is-ok {
  border-left-color: #16a34a;
}

.health-alert.is-info {
  border-left-color: #2563eb;
}

.health-alert.is-warning {
  border-left-color: #d97706;
}

.health-alert.is-danger {
  border-left-color: #dc2626;
}

.health-player-list,
.commissioner-team-list {
  display: grid;
  gap: 10px;
}

.health-player-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 0.8fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  color: var(--ink);
}

.health-player-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.health-player-main {
  display: grid;
  gap: 3px;
}

.health-player-main small,
.health-player-card > span:last-child,
.health-player-status {
  color: var(--muted);
  font-size: 12px;
}

.health-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.health-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #f59e0b, #dc2626);
}

.trade-inbox-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.trade-inbox-header span,
.trade-inbox-header label {
  color: var(--muted);
  font-size: 13px;
}

.trade-inbox-header label {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.trade-request-card {
  align-items: start;
}

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

.trade-workflow-step {
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
}

.trade-workflow-step:hover,
.trade-workflow-step.is-active {
  background: #f8fafc;
  border-color: var(--accent);
}

.trade-workflow-step > span {
  font-size: 20px;
  font-weight: 850;
}

.trade-workflow-step strong,
.trade-workflow-step small {
  display: block;
}

.trade-workflow-step small {
  color: var(--muted);
  line-height: 1.35;
}

.trade-workflow-step.is-ok {
  border-left-color: #16a34a;
}

.trade-workflow-step.is-warning {
  border-left-color: #d97706;
}

.trade-workflow-step.is-danger {
  border-left-color: #dc2626;
}

.trade-workflow-step.is-info {
  border-left-color: var(--accent);
}

.trade-request-main {
  display: grid;
  gap: 8px;
}

.trade-card-header,
.trade-matchup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.trade-status-pill {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(148, 163, 184, 0.18);
  color: var(--muted);
}

.trade-status-pill.is-ok {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.trade-status-pill.is-warning {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.trade-status-pill.is-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.trade-next-step {
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 2px;
}

.trade-next-step strong,
.trade-next-step span {
  display: block;
}

.trade-next-step span {
  color: var(--muted);
  font-size: 13px;
}

.trade-next-step.is-ok {
  border-left-color: #16a34a;
}

.trade-next-step.is-warning {
  border-left-color: #d97706;
}

.trade-next-step.is-danger {
  border-left-color: #dc2626;
}

.trade-next-step.is-neutral {
  border-left-color: #64748b;
}

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

.trade-assets-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.trade-assets-side > strong {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

#tradePlayerA,
#tradePlayerB,
#tradePickA,
#tradePickB {
  display: none;
}

.trade-asset-picker {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.trade-pick-picker {
  max-height: 190px;
}

.trade-asset-picker-group {
  display: grid;
  gap: 6px;
}

.trade-asset-picker-group > strong {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trade-asset-option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 8px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(42px, auto);
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.trade-asset-option:hover,
.trade-asset-option.is-selected {
  border-color: var(--accent);
  background: #eef7fb;
}

.trade-asset-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.trade-asset-option.is-selected .trade-asset-check {
  background: var(--accent);
  border-color: var(--accent);
}

.trade-asset-option span strong,
.trade-asset-option span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-asset-option span small,
.trade-asset-option b {
  color: var(--muted);
  font-size: 12px;
}

.trade-asset-option b {
  justify-self: end;
  white-space: nowrap;
}

.trade-balance-card,
.trade-preview-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.trade-balance-card span,
.trade-preview-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.trade-balance-bar {
  position: relative;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--trade-left-color, #16a34a) 0 var(--trade-balance), var(--trade-right-color, #dc2626) var(--trade-balance) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

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

.trade-preview-metrics {
  display: grid;
  gap: 3px;
}

.trade-asset-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trade-asset-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.trade-asset-list li span,
.trade-asset-empty {
  color: var(--muted);
  font-size: 12px;
}

.trade-asset-list li span {
  display: grid;
  gap: 2px;
}

.trade-asset-list li strong {
  text-align: right;
}

.trade-cap-review {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
}

.trade-cap-review.is-warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}

.trade-cap-review > div:first-child {
  display: grid;
  gap: 2px;
}

.trade-cap-review > div:first-child span {
  color: var(--muted);
  font-size: 12px;
}

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

.trade-cap-review-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.trade-cap-review-row.is-over {
  border-color: rgba(220, 38, 38, 0.45);
}

.trade-cap-review-row small {
  color: var(--muted);
}

.trade-summary-filter {
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.trade-summary-filter:hover,
.trade-summary-filter.is-active {
  background: #eef7fb;
  border-color: var(--accent);
}

.trade-summary-filter strong {
  font-size: 22px;
}

.trade-summary-filter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.commissioner-team-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(88px, 0.7fr)) minmax(140px, 1fr);
  gap: 10px;
  align-items: center;
}

.commissioner-team-card.needs-attention {
  border-left: 4px solid #d97706;
}

.commissioner-team-card > div {
  display: grid;
  gap: 3px;
}

.commissioner-team-card span {
  color: var(--muted);
  font-size: 12px;
}

.lineup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.line-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid #e4eaf0;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(20, 37, 54, 0.05);
}

.special-unit-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
  border-color: #d8e5ee;
}

.line-card strong {
  font-size: 13px;
}

.line-minutes {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.line-minutes input {
  width: 64px;
}

.goalie-plan-list {
  display: grid;
  gap: 8px;
}

.goalie-plan-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.7fr);
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.goalie-plan-row > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.goalie-plan-row span {
  color: var(--muted);
}

.line-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.line-card-header span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.line-strategy {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.line-strategy label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.line-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
}

.lineup-slot {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e1e8ef;
  border-radius: 7px;
}

.lineup-slot label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lineup-slot label span {
  color: #1f364d;
}

.lineup-slot label small {
  color: #7a8a98;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.lineup-slot.is-special-slot {
  border-color: #d7e5ee;
  background: #fbfdff;
}

.lineup-slot select {
  width: 100%;
  min-width: 0;
  background: #fff;
  border-color: #d6e0e8;
  font-weight: 600;
  text-overflow: ellipsis;
}

.metric {
  padding: 12px;
  background: #f5f8fa;
  border: 1px solid #e4eaf0;
  border-radius: 6px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.league-hub {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 0.7fr) minmax(320px, 1.2fr);
  gap: 16px;
  padding: 16px;
}

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

.league-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.league-create-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.league-create-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.dashboard-block {
  min-width: 0;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 6px;
  overflow: hidden;
}

.dashboard-block .subsection-title {
  padding: 12px 12px 0;
}

.dashboard-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.dashboard-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--secondary);
  border-radius: 6px;
}

.dashboard-item strong {
  font-size: 14px;
}

.dashboard-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-item.is-warning {
  border-left-color: #b6761d;
}

.dashboard-item.is-danger {
  border-left-color: var(--loss);
}

.dashboard-item.is-muted {
  border-left-color: #aeb8c3;
}

.roster-shell {
  overflow-x: auto;
}

.position-management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  padding: 16px;
}

.position-card {
  align-items: center;
}

.position-card.is-fixed {
  opacity: 0.82;
}

.positions-panel {
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--accent) 4%), var(--surface));
}

.position-modern-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(125deg, #111d2c 0%, #223a52 62%, color-mix(in srgb, var(--accent) 75%, #16283a) 100%);
}

.position-header-copy { max-width: 720px; }
.position-header-copy h2 { margin: 4px 0 7px; font-size: clamp(24px, 3vw, 36px); color: #fff; }
.position-header-copy p { margin: 0; color: rgba(255,255,255,.76); line-height: 1.5; }
.position-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9fc5e5; }
.position-team-picker { display: grid; gap: 6px; min-width: 230px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.position-team-picker select { min-height: 44px; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.96); color: #132235; }

.position-rule-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}

.position-rule-strip > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 15px 18px; background: var(--surface); }
.position-rule-strip > div > span { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); font-weight: 900; }
.position-rule-strip strong { font-size: 13px; }
.position-rule-strip small { margin-top: 3px; color: var(--muted); line-height: 1.35; }

.position-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.position-level-column { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, #edf4fa 6%); box-shadow: 0 8px 24px rgba(18,36,54,.06); }
.position-level-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.position-level-heading span { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.position-level-heading h3 { margin: 3px 0 0; font-size: 20px; }
.position-level-heading > strong { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 12px; background: #15283c; color: #fff; }
.position-player-list { display: grid; gap: 8px; padding: 10px; max-height: 680px; overflow: auto; }
.position-player-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid color-mix(in srgb, var(--border) 78%, transparent); border-radius: 12px; background: var(--surface); }
.position-player-card.is-fixed { opacity: .78; }
.position-primary-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); font-size: 13px; font-weight: 900; }
.position-player-identity { min-width: 0; display: grid; gap: 3px; }
.position-player-identity .link-button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.position-player-identity small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.position-swap-button { display: grid; gap: 3px; min-width: 132px; min-height: 48px; padding: 9px 13px; border: 2px solid color-mix(in srgb, var(--accent) 78%, #07111d); border-radius: 11px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #19334d), color-mix(in srgb, var(--accent) 68%, #07111d)); color: #fff; font-weight: 900; text-align: center; cursor: pointer; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 24%, transparent); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.position-swap-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 9px 20px color-mix(in srgb, var(--accent) 34%, transparent); }
.position-swap-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, #fff); outline-offset: 3px; }
.position-swap-button small { color: rgba(255,255,255,.78); font-size: 9px; font-weight: 700; }
.position-swap-button:disabled { cursor: not-allowed; opacity: .62; }
.position-swap-button.is-saving { background: #546270; border-color: #45515d; box-shadow: none; }
.position-fixed-label { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.position-empty { padding: 28px 12px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .position-management-layout {
    grid-template-columns: 1fr;
  }

  .position-level-grid { grid-template-columns: 1fr; }
  .position-player-list { max-height: 480px; }
}

@media (max-width: 620px) {
  .position-modern-header { align-items: stretch; flex-direction: column; padding: 19px 16px; }
  .position-team-picker { min-width: 0; }
  .position-rule-strip { grid-template-columns: 1fr; }
  .position-level-grid { padding: 10px; }
  .position-player-card { grid-template-columns: 38px minmax(0,1fr); padding: 10px; }
  .position-primary-badge { width: 36px; height: 36px; }
  .position-swap-button { grid-column: 1 / -1; width: 100%; min-height: 50px; margin-top: 2px; }
  .position-fixed-label { display: none; }
}

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

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

.trade-builder-secondary {
  padding-top: 0;
}

.trade-side {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e4eaf0;
  border-radius: 6px;
}

.trade-side label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.trade-message {
  min-height: 22px;
  margin: 0 16px 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  display: grid;
  gap: 4px;
}

.trade-message:empty {
  display: none;
}

.trade-message strong,
.trade-message span {
  display: block;
}

.trade-message span {
  color: var(--muted);
}

.trade-message.is-success {
  border-left-color: #16a34a;
}

.trade-message.is-warning {
  border-left-color: #d97706;
}

.trade-message.is-danger {
  border-left-color: #dc2626;
}

.trade-message.is-info {
  border-left-color: #2563eb;
}

.trade-quality {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #f7fafc;
}

.trade-quality strong {
  color: var(--text);
}

.trade-quality span {
  color: var(--muted);
}

.trade-quality.is-ok {
  border-left-color: #2f8f55;
  background: #eef8f2;
}

.trade-quality.is-warning {
  border-left-color: #c08b23;
  background: #fff8e8;
}

.trade-quality.is-danger {
  border-left-color: #bd4f4f;
  background: #fff1f1;
}

.trade-diagnostic-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.free-agents-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.free-agent-roster-shell {
  max-height: 68vh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.free-agent-roster-table {
  min-width: 980px;
}

.free-agent-roster-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f7f9;
}

.free-agent-roster-row {
  cursor: pointer;
}

.free-agent-roster-row:hover td {
  background: #eef5f8;
}

.free-agent-row-status {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef2f5;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.free-agent-row-status.is-leading {
  background: #e5f5eb;
  color: #277447;
}

.free-agent-row-status.is-close,
.free-agent-row-status.is-chasing {
  background: #fff3d6;
  color: #8a6419;
}

.free-agent-row-status.is-behind {
  background: #fde7e7;
  color: #9b3535;
}

#playerModal[data-free-agent-player] .player-modal-card {
  width: min(1100px, 100%);
}

#playerModal[data-free-agent-player] .free-agent-market-card {
  grid-template-columns: minmax(260px, 0.9fr) minmax(460px, 1.4fr);
}

@media (max-width: 900px) {
  #playerModal[data-free-agent-player] .free-agent-market-card {
    grid-template-columns: 1fr;
  }
}

.list-load-more {
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.roster-shell + .list-load-more {
  border-top: 0;
}

.free-agency-filters,
.free-agency-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.free-agency-filters label,
.free-agent-offer-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.free-agency-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.free-agency-columns .free-agents-list {
  padding: 10px 0;
}

.free-agent-market-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(520px, 1.6fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.free-agent-profile {
  display: grid;
  gap: 9px;
}

.free-agent-profile > div:first-child {
  display: grid;
  gap: 3px;
}

.free-agent-profile span {
  color: var(--muted);
  font-size: 12px;
}

.free-agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.free-agent-tags span {
  padding: 4px 6px;
  background: #eef3f7;
  border-radius: 4px;
  font-weight: 700;
}

.free-agency-notice {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d4dde7;
  border-left: 4px solid var(--accent);
  background: #f6f9fc;
  border-radius: 6px;
}

.free-agency-notice strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.free-agency-notice span,
.free-agency-notice li {
  color: var(--muted);
  font-size: 13px;
}

.free-agency-notice ul {
  margin: 0;
  padding-left: 18px;
}

.free-agency-notice.is-leading,
.free-agency-notice.is-signed {
  border-left-color: #2f8f55;
  background: #eef8f2;
}

.free-agency-notice.is-close,
.free-agency-notice.is-active {
  border-left-color: #819a38;
  background: #f4f8ee;
}

.free-agency-notice.is-chasing,
.free-agency-notice.is-pending {
  border-left-color: #c08b23;
  background: #fff8e8;
}

.free-agency-notice.is-behind {
  border-left-color: #bd4f4f;
  background: #fff1f1;
}

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

.free-agency-summary-card {
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 3px;
}

.free-agency-summary-card span,
.free-agency-summary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.free-agency-summary-card strong {
  font-size: 20px;
}

.free-agency-summary-card.is-ok {
  border-left-color: #2f8f55;
}

.free-agency-summary-card.is-warning {
  border-left-color: #c08b23;
}

.free-agency-summary-card.is-info {
  border-left-color: var(--accent);
}

.free-agent-market-read {
  display: grid;
  gap: 5px;
  padding: 9px;
  background: #f6f8fb;
  border: 1px solid #d9e2ea;
  border-radius: 6px;
}

.free-agent-market-read strong {
  color: var(--text);
  font-size: 13px;
}

.free-agent-market-read span {
  color: var(--muted);
  font-size: 12px;
}

.free-agent-market-read ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
}

.free-agent-market-read.is-leading {
  background: #eef8f2;
  border-color: #b8dcc5;
}

.free-agent-market-read.is-close {
  background: #f4f8ee;
  border-color: #ccdcae;
}

.free-agent-market-read.is-chasing {
  background: #fff8e8;
  border-color: #e8d39c;
}

.free-agent-market-read.is-behind {
  background: #fff1f1;
  border-color: #e4b7b7;
}

.free-agent-offer-note {
  display: block;
  margin-top: 3px;
  font-weight: 800;
}

.free-agent-offer-card {
  border-left: 4px solid #64748b;
}

.free-agent-offer-card.is-leading,
.free-agent-offer-card.is-signed {
  border-left-color: #2f8f55;
}

.free-agent-offer-card.is-close,
.free-agent-offer-card.is-active {
  border-left-color: #819a38;
}

.free-agent-offer-card.is-chasing,
.free-agent-offer-card.is-pending {
  border-left-color: #c08b23;
}

.free-agent-offer-card.is-behind {
  border-left-color: #bd4f4f;
}

.free-agent-offer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.free-agent-offer-reasons {
  margin: 2px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.free-agent-offer-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.contract-negotiation-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 6px;
}

.contract-negotiation-card.is-refused {
  background: #fff7f7;
  border-color: #e5bcbc;
  border-left-color: #bd4f4f;
}

.contract-negotiation-card.is-accepted {
  background: #f1faf4;
  border-left-color: #2f8f55;
}

.contract-negotiation-card.is-counter {
  background: #f6f9fc;
  border-left-color: var(--accent);
}

.contract-negotiation-card.is-warning {
  background: #fff8e8;
  border-left-color: #c08b23;
}

.contract-player-summary {
  display: grid;
  gap: 8px;
}

.contract-player-summary > div:first-child {
  display: grid;
  gap: 3px;
}

.contract-player-summary span,
.contract-negotiation-status {
  color: var(--muted);
  font-size: 12px;
}

.contract-negotiation-status {
  padding: 8px;
  background: #f5f8fa;
  border-radius: 4px;
  font-weight: 700;
}

.contract-response-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f9fc;
}

.contract-response-card strong {
  font-size: 14px;
}

.contract-response-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contract-response-card.is-accepted {
  background: #eef8f2;
  border-color: #b8dcc5;
}

.contract-response-card.is-counter {
  background: #edf7fb;
  border-color: #a9d4e2;
}

.contract-response-card.is-rejected {
  background: #fff1f1;
  border-color: #e4b7b7;
}

.contract-response-card.is-pending {
  background: #fff8e8;
  border-color: #e8d39c;
}

.contract-offer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.contract-offer-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.free-agent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.free-agent-card span {
  color: var(--muted);
  font-size: 13px;
}

.draft-choice {
  grid-template-columns: auto minmax(0, 1fr);
}

.draft-choice.is-watched {
  border-left: 4px solid #1d4ed8;
}

.draft-choice input {
  width: 18px;
  height: 18px;
}

.draft-board-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 0 16px 12px;
}

.draft-board-current,
.draft-board-picks {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.draft-board-current span,
.draft-board-picks span {
  color: var(--muted);
  font-size: 12px;
}

.draft-lottery-results {
  display: grid;
  gap: 12px;
  padding: 0 16px 12px;
}

.draft-lottery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(135deg, #f8fafc, #eef6ff);
}

.draft-lottery-header div,
.draft-lottery-winners,
.draft-lottery-order {
  display: grid;
  gap: 8px;
}

.draft-lottery-header span,
.draft-lottery-order small {
  color: var(--muted);
  font-size: 12px;
}

.draft-lottery-winners {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.draft-lottery-order {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.draft-lottery-order span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--text);
  font-size: 12px;
}

.affiliate-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.affiliate-move-grid,
.affiliate-rosters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.pending-trades {
  border-top: 1px solid var(--line);
}

.pending-trades-list {
  display: grid;
  gap: 10px;
  padding: 12px 16px 16px;
}

.trade-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.trade-request strong {
  display: block;
  margin-bottom: 4px;
}

.trade-request-actions {
  display: flex;
  gap: 8px;
}

.approve-button {
  padding: 0 12px;
  color: #fff;
  background: var(--win);
}

.reject-button {
  padding: 0 12px;
  color: #fff;
  background: var(--loss);
}

.result-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(21, 26, 32, 0.05);
}

.result-card-button {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.result-card-button:disabled {
  cursor: default;
}

.result-card-button:hover,
.clickable-game-row:hover {
  background: #f2f7f8;
  border-color: var(--accent);
}

.result-card-button:disabled:hover {
  background: #fff;
  border-color: var(--line);
}

.result-open-label {
  display: block;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.clickable-game-row {
  cursor: pointer;
}

.result-score {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
}

.result-score > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 0;
}

.result-score > span:last-child {
  justify-content: flex-end;
  text-align: right;
}

.result-score b {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.result-score strong {
  font-size: 24px;
}

.result-team-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.result-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.history-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
}

.history-item {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.history-item strong {
  font-size: 14px;
}

.history-item span {
  color: var(--muted);
  font-size: 12px;
}

.playoffs-bracket {
  display: block;
  padding: 16px;
  overflow-x: auto;
}

.nhl-bracket {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  min-width: 980px;
}

.bracket-round {
  display: grid;
  align-content: start;
  gap: 10px;
}

.bracket-round > header {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: #fff;
  background: #263746;
  border-top: 3px solid var(--accent);
}

.bracket-round > header span {
  color: #cbd6dd;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.bracket-series-list {
  display: grid;
  gap: 10px;
  align-content: space-around;
  height: 100%;
}

.series-card {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid #aeb8c3;
  border-radius: 5px;
}

.series-card.is-complete {
  border-left-color: var(--accent);
}

.series-card.is-placeholder {
  place-items: center;
  color: var(--muted);
  background: #f5f7f8;
  border-left-color: #d7dee4;
}

.series-context,
.series-status {
  color: var(--muted);
  font-size: 10px;
}

.series-team {
  display: grid;
  grid-template-columns: 22px 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 5px;
  min-height: 35px;
  padding: 3px 5px;
  background: #f7f9fa;
}

.series-team.is-winner {
  color: var(--accent-dark);
  background: #e7f1f1;
}

.series-seed {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.series-team-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.series-team b {
  font-size: 18px;
  text-align: center;
}

.champion-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 18px;
  color: #fff;
  background: #171c22;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
}

.champion-banner div {
  display: grid;
  gap: 2px;
}

.champion-banner span {
  color: #cbd6dd;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.champion-banner strong {
  font-size: 20px;
}

.champion-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.playoff-empty {
  display: grid;
  gap: 6px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.playoff-empty strong {
  color: var(--ink);
}

.win {
  color: var(--win);
  font-weight: 700;
}

.loss {
  color: var(--loss);
  font-weight: 700;
}

.clickable-player {
  cursor: pointer;
}

.clickable-player:hover {
  background: #f4f9fa;
}

.roster-player-name,
.roster-copy-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.roster-player-name {
  justify-content: space-between;
  min-width: 180px;
}

.copy-player-button {
  min-height: 28px;
  padding: 3px 8px;
  color: #075e66;
  background: #e4f2f3;
  border: 1px solid #b9dadd;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
}

.copy-player-button:hover,
.copy-player-button.is-copied {
  color: #fff;
  background: var(--secondary);
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(24, 33, 43, 0.46);
}

.player-modal-card {
  width: min(980px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(24, 33, 43, 0.25);
}

.player-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.player-modal-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.player-profile-hero {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: #f6f9fb;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.player-headshot-frame {
  width: 156px;
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  background: #e8edf1;
  border: 1px solid #d6dee5;
  border-radius: 6px;
}

.player-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.player-headshot.is-generic {
  object-position: center;
}

.player-profile-summary {
  display: grid;
  gap: 7px;
}

.player-profile-summary > strong {
  color: var(--ink);
  font-size: 28px;
}

.player-profile-summary > span {
  color: var(--muted);
}

.player-profile-team {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-dark);
  font-weight: 800;
}

.player-profile-team-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.stats-team-logo {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.stats-team-logo .team-logo {
  width: 32px;
  height: 32px;
}

.game-modal-card {
  width: min(1040px, 100%);
}

.game-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.game-scoreboard > div:not(.game-decision) {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.game-team-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.game-scoreboard span,
.game-scoreboard small,
.game-event span,
.game-event small,
.game-stars small {
  color: var(--muted);
}

.game-scoreboard strong {
  font-size: 17px;
}

.game-scoreboard b {
  font-size: 36px;
}

.game-decision {
  font-size: 13px;
  font-weight: 800;
}

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

.game-event {
  display: grid;
  grid-template-columns: 140px minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.game-stat-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

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

.game-stars > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.game-stars > div > span {
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 800;
}

.player-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

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

.rating-tile {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e4eaf0;
  border-radius: 6px;
}

.rating-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.rating-tile strong {
  font-size: 24px;
}

.rating-up {
  color: var(--win);
  font-weight: 800;
}

.rating-down {
  color: var(--loss);
  font-weight: 800;
}

.rating-up small,
.rating-down small {
  margin-left: 4px;
  font-size: 10px;
  vertical-align: top;
}

.rating-tile.rating-up {
  background: #f2fbf5;
  border-color: #bfe4ca;
}

.rating-tile.rating-down {
  background: #fff5f5;
  border-color: #edc5c5;
}

.commissioner-rating-editor {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid #ccd9e5;
  border-radius: 6px;
}

.commissioner-rating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.commissioner-rating-header > div {
  display: grid;
  gap: 3px;
}

.commissioner-rating-header span {
  color: var(--muted);
  font-size: 12px;
}

.commissioner-rating-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(64px, 1fr));
  gap: 8px;
}

.commissioner-rating-grid label {
  display: grid;
  gap: 5px;
}

.calculated-overall {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 62px;
  background: #eaf1f7;
  border: 1px solid #c4d3df;
  border-radius: 6px;
}

.calculated-overall span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.calculated-overall strong {
  font-size: 22px;
}

.commissioner-rating-grid label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.commissioner-rating-grid input {
  min-width: 0;
  padding: 9px 7px;
  text-align: center;
}

.player-note {
  padding: 12px;
  color: var(--muted);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  line-height: 1.45;
}

.chemistry-badge {
  padding: 4px 7px;
  border: 1px solid #c7d0d9;
  border-radius: 5px;
  color: #4c5966;
  background: #f4f6f8;
  font-size: 11px;
  font-weight: 800;
}

.chemistry-badge.is-good {
  color: #146c43;
  border-color: #9bd5b7;
  background: #edf9f2;
}

.chemistry-badge.is-low {
  color: #a13232;
  border-color: #e4aaaa;
  background: #fff1f1;
}

.league-feed {
  display: grid;
  gap: 8px;
}

.scouting-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fb;
}

.scouting-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.scouting-season-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.4fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.scouting-season-panel strong,
.scouting-season-panel span {
  display: block;
}

.scouting-season-panel span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.scouting-filters {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) repeat(3, minmax(130px, 0.9fr));
  gap: 8px;
}

.scouting-prospect-card.is-watched,
.scouting-watch-card {
  border-left: 4px solid #1d4ed8;
}

.draft-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.draft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.draft-badge.is-low,
.draft-badge.is-value {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.draft-badge.is-medium,
.draft-badge.is-fit {
  color: #854d0e;
  background: #fef3c7;
  border-color: #fde68a;
}

.draft-badge.is-high {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.draft-badge.is-watch {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.scouting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.scouting-actions button {
  padding: 6px 8px;
  font-size: 11px;
}

.scouting-mini-meter {
  width: min(180px, 100%);
  height: 8px;
  overflow: hidden;
  background: #dfe7ee;
  border-radius: 999px;
}

.scouting-mini-meter span {
  display: block;
  height: 100%;
  background: #176f63;
}

.scouting-report-summary {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #cfe0f5;
  border-radius: 6px;
  background: #f5f9ff;
  color: #223247;
  font-size: 12px;
}

.scouting-report-summary strong {
  font-size: 11px;
  text-transform: uppercase;
}

.prospect-dev-empty {
  color: var(--muted);
  font-size: 12px;
}

.prospect-dev-report {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 9px 10px;
  background: #f6faf9;
  border: 1px solid #d6e7e2;
  border-radius: 7px;
}

.prospect-dev-report b {
  color: #176f63;
  font-size: 13px;
}

.prospect-dev-report span,
.prospect-dev-report small {
  color: #4d6070;
  font-size: 12px;
}

.waiver-card {
  border-left: 4px solid #c87916;
}

.waiver-leading-team {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #263746;
  font-weight: 700;
}

.waiver-priority-card strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ahl-game-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #2f7d7b;
  border-radius: 6px;
  background: #f8fbfb;
}

.ahl-scoreboard {
  background: #fff;
}

.league-feed-item {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid #8393a3;
  border-radius: 6px;
  background: #fff;
}

.league-feed-item.is-unread {
  border-left-color: #1473e6;
  background: #f5f9ff;
}

.league-feed-item.is-warning {
  border-left-color: #c87916;
}

.league-feed-item > div:first-child,
.feed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.league-feed-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.league-feed-item time,
.feed-category {
  color: var(--muted);
  font-size: 11px;
}

.feed-category {
  font-weight: 800;
  text-transform: uppercase;
}

.feed-actions {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .injury-callup-grid { grid-template-columns: minmax(0, 1fr); }
  .scouting-season-panel,
  .scouting-filters {
    grid-template-columns: 1fr;
  }

  .lineup-assistant-actions button {
    width: 100%;
  }

  #injuryReturnPlanGroup .lineup-assistant-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .lineup-builder,
  .lineup-assistant-bar,
  .lineup-assistant-actions,
  .lineup-toolbar,
  .goalie-plan-row,
  .goalie-plan-row > div {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .commissioner-requests .dashboard-item {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
  }

  .topbar-actions button {
    min-width: 0;
    padding: 6px;
    font-size: 12px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-lockup h1 {
    font-size: 20px;
  }

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

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

  .league-hub {
    grid-template-columns: 1fr;
  }

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

  .manager-controls {
    grid-template-columns: 1fr;
  }

  .trade-builder {
    grid-template-columns: 1fr;
  }

  .trade-assets-grid {
    grid-template-columns: 1fr;
  }

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

  .trade-request {
    grid-template-columns: 1fr;
  }

  .free-agent-card {
    grid-template-columns: 1fr;
  }

  .scouting-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .affiliate-move-grid,
  .affiliate-rosters {
    grid-template-columns: 1fr;
  }

  .free-agency-filters,
  .free-agency-columns,
  .simulation-steps,
  .simulation-import-grid,
  .finance-columns,
  .free-agent-market-card,
  .free-agent-offer-form,
  .contract-negotiation-card,
  .contract-offer-form {
    grid-template-columns: 1fr;
  }

  .management-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .management-nav-panel .management-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .simulation-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-modal {
    align-items: stretch;
    padding: 10px;
  }

  .player-modal-card {
    max-height: 96vh;
  }

  .player-modal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .player-profile-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .player-profile-team {
    justify-content: center;
  }

  .commissioner-rating-header {
    align-items: stretch;
    flex-direction: column;
  }

  .commissioner-rating-grid {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
  }

  .game-scoreboard {
    gap: 8px;
  }

  .game-scoreboard strong {
    font-size: 14px;
  }

  .game-scoreboard b {
    font-size: 28px;
  }

  .game-event,
  .game-detail-grid,
  .game-stars {
    grid-template-columns: 1fr;
  }
}

/* Visual system refresh */
:root {
  --ink: #18212b;
  --muted: #617080;
  --line: #d9e1e8;
  --line-strong: #c6d0da;
  --panel: #ffffff;
  --page: #eef2f5;
  --accent: #c81938;
  --accent-dark: #98142d;
  --accent-soft: #fff0f3;
  --secondary: #087b83;
  --secondary-dark: #075e65;
  --secondary-soft: #e7f5f5;
  --win: #16784a;
  --loss: #ae2637;
  --warning: #ad6814;
  --shadow: 0 7px 22px rgba(23, 36, 49, 0.08);
  --shadow-raised: 0 18px 48px rgba(17, 28, 39, 0.18);
}

html {
  background: var(--page);
  scrollbar-color: #aab6c2 transparent;
  scrollbar-width: thin;
}

body {
  background: var(--page);
  color: var(--ink);
  line-height: 1.45;
}

button,
input,
select {
  letter-spacing: 0;
}

button,
select,
input {
  min-height: 42px;
  border-radius: 5px;
}

button {
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

button:not(:disabled):active {
  transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(8, 123, 131, 0.2);
  outline-offset: 1px;
}

input,
select {
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 1px 1px rgba(24, 33, 43, 0.03);
}

input:hover,
select:hover {
  border-color: #9dabb8;
}

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

.topbar {
  position: relative;
  z-index: 5;
  min-height: 82px;
  padding: 14px clamp(18px, 3vw, 42px);
  color: #fff;
  background: #161d25;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--accent);
}

.brand-lockup {
  gap: 13px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.brand-lockup .eyebrow {
  margin-bottom: 2px;
  color: #ff6f86;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.brand-lockup h1 {
  font-size: 21px;
  font-weight: 780;
}

.user-badge {
  margin-top: 4px;
  color: #aebac6;
  font-size: 12px;
}

.topbar-actions {
  gap: 8px;
}

.topbar-actions button {
  min-height: 40px;
}

.primary-button {
  padding: 0 17px;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(200, 25, 56, 0.2);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  padding: 0 14px;
  color: var(--secondary-dark);
  background: var(--secondary-soft);
  border: 1px solid #c6e4e5;
}

.secondary-button:hover {
  color: #fff;
  background: var(--secondary);
  border-color: var(--secondary);
}

.file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.file-action input {
  display: none;
}

.quiet-button {
  padding: 0 14px;
  color: #455362;
  background: #edf1f4;
  border: 1px solid #dce3e9;
}

.quiet-button:hover {
  color: var(--ink);
  background: #e2e8ed;
  border-color: #cbd5de;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  gap: 2px;
  min-height: 51px;
  padding: 0 clamp(12px, 2vw, 30px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(22, 34, 46, 0.05);
}

.nav-button {
  position: relative;
  min-height: 50px;
  padding: 0 14px;
  color: #556473;
  border-bottom: 0;
  font-size: 13px;
}

.nav-button::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  content: "";
  background: transparent;
}

.nav-button:hover {
  color: var(--ink);
  background: #f5f7f9;
}

.nav-button.is-active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-color: transparent;
}

.nav-button.is-active::after {
  background: var(--accent);
}

.layout {
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.3fr);
  gap: 14px;
  max-width: 1720px;
  padding: 18px clamp(12px, 2vw, 28px) 36px;
}

.layout > .panel {
  grid-column: 1 / -1;
}

.panel {
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.panel-header {
  min-height: 68px;
  padding: 14px 17px;
  background: #fff;
  border-bottom-color: var(--line);
}

.panel-header h2 {
  color: #17212b;
  font-size: 17px;
  font-weight: 760;
}

.panel-header h2 + span,
.panel-header > span,
.panel-header > div > span {
  color: var(--muted);
  font-size: 12px;
}

.team-logo-frame {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  background: #f8fafb;
  border-color: var(--line);
  border-radius: 6px;
}

.management-nav-panel,
.simulation-nav-panel {
  background: #e7edf1;
}

.management-tabs {
  gap: 0;
  padding: 5px;
  background: #e7edf1;
}

.management-tab {
  min-height: 40px;
  color: #526170;
  background: transparent;
  border-radius: 4px;
  font-size: 12px;
}

.management-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.management-tab.is-active {
  color: #fff;
  background: #263746;
  box-shadow: 0 2px 7px rgba(24, 33, 43, 0.16);
}

#pushNotificationButton.is-active {
  border-color: #23855b;
  color: #176b49;
  background: #ecf8f2;
}

.simulation-control-center {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.simulation-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: center;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.simulation-status-card h2 {
  margin: 4px 0 5px;
  font-size: 22px;
}

.simulation-status-card p {
  margin: 0;
  color: var(--muted);
}

.simulation-progress {
  display: grid;
  gap: 8px;
}

#simulationProgressText {
  font-weight: 800;
  text-align: right;
}

.simulation-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.simulation-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  transition: width 180ms ease;
}

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

.simulation-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  padding: 0 14px 14px;
}

.manager-controls,
.stats-filters,
.free-agency-filters {
  background: #f7f9fb;
}

.metric {
  position: relative;
  min-height: 91px;
  padding: 13px 14px;
  background: #f5f8fa;
  border-color: #e0e7ed;
  border-radius: 5px;
  overflow: hidden;
}

.metric::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: #cbd6df;
}

.metric span {
  color: #637282;
  font-size: 10px;
  font-weight: 750;
}

.metric strong {
  margin-top: 7px;
  color: #17212b;
  font-size: 21px;
  line-height: 1.15;
}

.dashboard-grid {
  gap: 12px;
  padding: 14px;
}

.dashboard-metrics {
  gap: 9px;
}

.dashboard-block {
  border-color: var(--line);
  border-radius: 5px;
}

.dashboard-block .subsection-title {
  padding: 12px 13px 2px;
  color: #43515f;
  font-size: 11px;
}

.dashboard-list {
  gap: 7px;
  padding: 10px 12px 12px;
}

.dashboard-item {
  padding: 10px 11px;
  background: #fbfcfd;
  border-color: #e3e8ed;
  border-left-width: 3px;
  border-radius: 4px;
}

.dashboard-item:hover {
  background: #f6f9fa;
  border-color: #d5dde5;
}

.dashboard-item strong {
  color: #273440;
  font-size: 13px;
}

.dashboard-item span {
  font-size: 12px;
}

.team-summary,
.affiliate-summary {
  gap: 9px;
  padding: 14px;
}

.roster-shell {
  background: #fff;
}

table {
  font-size: 13px;
}

th,
td {
  height: 43px;
  padding: 9px 11px;
  border-bottom-color: #e8edf1;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #526170;
  background: #edf2f5;
  border-bottom: 1px solid #d5dee6;
  font-size: 10px;
  font-weight: 800;
}

.sortable-roster-header {
  padding: 0;
}

.roster-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 43px;
  padding: 0 10px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  text-transform: uppercase;
}

.roster-sort-button:hover,
.roster-sort-button.is-active {
  color: var(--ink);
  background: #dde7ee;
}

.roster-sort-button span {
  font-size: 9px;
}

tbody tr:nth-child(even) {
  background: #fbfcfd;
}

tbody tr:hover,
.clickable-player:hover {
  background: #edf7f7;
}

tbody td:first-child strong {
  color: #1f2b36;
}

.standing-conference-row td {
  color: #fff;
  background: #263746;
}

.standing-division-row td {
  color: var(--secondary-dark);
  background: var(--secondary-soft);
}

.seed-tag {
  min-width: 31px;
  min-height: 21px;
  color: #fff;
  background: var(--accent);
  border-radius: 3px;
}

.trade-builder,
.affiliate-move-grid,
.affiliate-rosters,
.finance-columns {
  gap: 12px;
  padding: 14px;
}

.trade-side {
  padding: 13px;
  background: #f6f8fa;
  border-color: #dfe6ec;
  border-radius: 5px;
}

.free-agents-list,
.pending-trades-list,
.results-feed,
.history-list {
  gap: 8px;
  padding: 14px;
}

.free-agent-card,
.trade-request,
.history-item,
.result-card,
.league-feed-item {
  border-color: #dce4ea;
  border-radius: 5px;
  box-shadow: none;
}

.free-agent-card,
.trade-request,
.history-item {
  background: #fbfcfd;
}

.free-agent-card:hover,
.trade-request:hover,
.history-item:hover {
  background: #f5f9fa;
  border-color: #c9d5de;
}

.result-card {
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 36, 49, 0.05);
}

.result-card-button:hover,
.clickable-game-row:hover {
  background: #eef7f7;
  border-color: var(--secondary);
}

.result-score strong {
  color: #17212b;
}

.lineup-builder {
  background: #f5f7f9;
}

.lineup-group {
  border-color: var(--line);
}

.line-card {
  border-color: #d9e2e8;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(20, 37, 54, 0.05);
}

.line-card-header {
  padding-bottom: 9px;
  border-bottom: 1px solid #e5eaee;
}

.chemistry-badge {
  border-radius: 4px;
}

.offseason-stages {
  gap: 4px;
  padding: 12px;
  background: #edf1f4;
}

.offseason-stage {
  border: 1px solid #dce3e9;
  border-radius: 4px;
}

/* Refonte moderne du centre d'alignement */
.lineup-panel {
  --lineup-team-color: #8f1930;
  --lineup-team-accent: #8f1930;
  --lineup-on-team: #fff;
  overflow: hidden;
  border: 1px solid #dce4ea;
  border-radius: 20px;
  background: #f3f6f8;
  box-shadow: 0 22px 55px rgba(21, 34, 48, 0.1);
}

.lineup-panel .lineup-modern-header {
  position: relative;
  align-items: flex-end;
  gap: 24px;
  padding: 28px;
  color: var(--lineup-on-team);
  border: 0;
  background:
    radial-gradient(circle at 86% 15%, rgba(255, 255, 255, 0.2), transparent 29%),
    linear-gradient(125deg, #111923 0%, color-mix(in srgb, var(--lineup-team-color) 45%, #203447) 62%, var(--lineup-team-color) 140%);
}

.lineup-title-block {
  display: grid;
  gap: 3px;
  min-width: 230px;
}

.lineup-title-block h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.lineup-title-block #lineupTeamName {
  color: inherit;
  font-size: 15px;
  font-weight: 850;
}

.lineup-title-block small {
  max-width: 560px;
  margin-top: 5px;
  color: color-mix(in srgb, var(--lineup-on-team) 76%, transparent);
  font-size: 13px;
}

.lineup-eyebrow,
.lineup-assistant-kicker {
  color: color-mix(in srgb, var(--lineup-on-team) 80%, transparent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lineup-panel .lineup-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.lineup-panel .lineup-toolbar > select,
.lineup-panel .lineup-level-tabs {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.lineup-panel .lineup-toolbar > select {
  color: var(--lineup-on-team);
}

.lineup-panel .lineup-toolbar > select option {
  color: #172330;
  background: #fff;
}

.lineup-panel .lineup-level-tabs .auth-tab {
  color: var(--lineup-on-team);
}

.lineup-panel .lineup-level-tabs .auth-tab.is-active {
  color: #172330;
  background: #fff;
}

.lineup-panel #saveLineupButton {
  border-color: #fff;
  color: #172330;
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.17);
}

.lineup-panel #saveLineupButton:disabled {
  opacity: 0.58;
  box-shadow: none;
}

.lineup-panel .lineup-access-notice {
  padding: 11px 28px;
  color: #245b43;
  border: 0;
  border-bottom: 1px solid #dce6df;
  background: #edf8f1;
}

.lineup-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 6px;
  background: #f3f6f8;
}

.lineup-overview-card {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce4ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(25, 41, 56, 0.055);
}

.lineup-overview-card > span {
  color: #71808e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lineup-overview-card > strong {
  overflow: hidden;
  color: #172330;
  font-size: 21px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-overview-card > small {
  color: #7b8995;
  font-size: 11px;
}

.lineup-overview-card.is-alert {
  border-color: #e9b7b7;
  background: #fff5f5;
}

.lineup-panel > .lineup-assistant-bar {
  margin: 14px 20px 8px;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--lineup-team-color) 22%, #dce4ea);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--lineup-team-color) 6%, #fff));
  box-shadow: 0 9px 22px rgba(25, 41, 56, 0.055);
}

.lineup-panel > .lineup-assistant-bar strong {
  margin: 2px 0;
  color: #172330;
  font-size: 16px;
}

.lineup-panel > .lineup-assistant-bar .lineup-assistant-kicker {
  color: var(--lineup-team-accent);
}

.lineup-panel #optimizeLineupButton {
  border-color: var(--lineup-team-color);
  color: var(--lineup-on-team);
  background: var(--lineup-team-color);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--lineup-team-color) 25%, transparent);
}

.lineup-panel .lineup-validation-panel {
  padding: 8px 20px 14px;
  border: 0;
  background: #f3f6f8;
}

.lineup-panel .lineup-validation-summary {
  padding: 14px 16px;
  border-radius: 14px;
}

.lineup-panel .lineup-builder {
  gap: 18px;
  padding: 20px;
  border: 0;
  background: #edf1f4;
}

.lineup-panel .lineup-group {
  gap: 13px;
  padding: 17px;
  border-color: #d8e1e8;
  border-radius: 17px;
  box-shadow: 0 10px 28px rgba(25, 41, 56, 0.06);
}

.lineup-panel .lineup-group > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #172330;
  font-size: 13px;
  letter-spacing: 0.055em;
}

.lineup-panel .lineup-group > h3::before {
  width: 7px;
  height: 22px;
  border-radius: 10px;
  background: var(--lineup-team-color);
  content: "";
}

.lineup-panel .line-card {
  padding: 14px;
  border-color: #dce4ea;
  border-radius: 14px;
  background: #f9fbfc;
  box-shadow: none;
}

.lineup-panel .line-card:hover {
  border-color: color-mix(in srgb, var(--lineup-team-color) 34%, #dce4ea);
  box-shadow: 0 10px 22px rgba(25, 41, 56, 0.07);
}

.lineup-panel .special-unit-card {
  border-left: 4px solid var(--lineup-team-color);
  background: linear-gradient(125deg, #fff, color-mix(in srgb, var(--lineup-team-color) 5%, #fff));
}

.lineup-panel .lineup-slot {
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
}

.lineup-panel .line-strategy select,
.lineup-panel .line-minutes input {
  border-radius: 9px;
  background: #fff;
}

.lineup-panel .lineup-slot > label {
  padding: 0 3px;
}

.lineup-player-control {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border: 1px solid #d8e1e8;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(20, 37, 54, 0.045);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.lineup-player-control.has-player::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--lineup-team-color);
  content: "";
}

.lineup-player-control:not(:has(.lineup-player-native-select:disabled)) {
  cursor: pointer;
}

.lineup-player-control:not(:has(.lineup-player-native-select:disabled)):hover,
.lineup-player-control:focus-within {
  z-index: 1;
  border-color: color-mix(in srgb, var(--lineup-team-color) 55%, #d8e1e8);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--lineup-team-color) 13%, transparent);
  transform: translateY(-2px);
}

.lineup-player-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 12px 12px 9px 14px;
}

.lineup-position-pill {
  display: grid;
  place-items: center;
  min-width: 35px;
  height: 29px;
  padding: 0 7px;
  color: var(--lineup-on-team);
  border-radius: 8px;
  background: var(--lineup-team-color);
  font-size: 10px;
  font-weight: 950;
}

.lineup-player-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.lineup-player-identity strong {
  overflow: hidden;
  color: #172330;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-player-identity small {
  color: #7a8996;
  font-size: 10px;
}

.lineup-player-overall {
  display: grid;
  justify-items: center;
  min-width: 38px;
}

.lineup-player-overall strong {
  color: #172330;
  font-size: 21px;
  line-height: 1;
}

.lineup-player-overall small {
  color: #84919c;
  font-size: 8px;
  font-weight: 900;
}

.lineup-player-metrics {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 35px;
  padding: 7px 10px 8px 14px;
  border-top: 1px solid #edf1f4;
  background: #f7f9fb;
}

.lineup-player-metrics > span {
  display: flex;
  gap: 3px;
  align-items: baseline;
  padding: 3px 6px;
  color: #778590;
  border-radius: 6px;
  background: #fff;
  font-size: 8px;
  font-weight: 850;
}

.lineup-player-metrics > span b {
  color: #253848;
  font-size: 11px;
}

.lineup-player-metrics > em {
  overflow: hidden;
  margin-left: auto;
  color: var(--lineup-team-accent);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-player-native-select {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}

.lineup-player-native-select:disabled {
  cursor: default;
}

.lineup-player-control.is-empty {
  border-style: dashed;
  background: #fafcfd;
}

.lineup-player-control.is-empty .lineup-position-pill {
  color: #6e7d89;
  background: #e8edf1;
}

.lineup-panel .line-slots {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

/* Fonds distincts pour chaque trio, paire et unite */
.lineup-panel .line-card {
  --unit-accent: var(--lineup-team-color);
  --unit-soft: color-mix(in srgb, var(--unit-accent) 7%, #f8fbfd);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--unit-accent) 24%, #d7e0e7);
  background:
    linear-gradient(90deg, transparent 49.75%, color-mix(in srgb, var(--unit-accent) 10%, transparent) 50%, transparent 50.25%),
    radial-gradient(circle at 50% 115%, transparent 0 46px, color-mix(in srgb, var(--unit-accent) 8%, transparent) 47px 49px, transparent 50px),
    linear-gradient(145deg, #fff 0%, var(--unit-soft) 100%);
}

.lineup-panel .line-card::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--unit-accent);
  content: "";
}

.lineup-panel .line-card::after {
  position: absolute;
  z-index: -1;
  top: -70px;
  right: -45px;
  width: 170px;
  height: 170px;
  border: 30px solid color-mix(in srgb, var(--unit-accent) 5%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.lineup-panel .line-card-header {
  margin: -14px -14px 3px;
  padding: 12px 14px 11px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--unit-accent) 18%, #e3e9ee);
  background: linear-gradient(90deg, color-mix(in srgb, var(--unit-accent) 11%, #fff), rgba(255, 255, 255, 0.78));
}

.lineup-panel .line-card-header > strong {
  color: color-mix(in srgb, var(--unit-accent) 78%, #172330);
  font-size: 14px;
}

#forwardLineup .line-card:nth-child(1) { --unit-accent: var(--lineup-team-color); }
#forwardLineup .line-card:nth-child(2) { --unit-accent: color-mix(in srgb, var(--lineup-team-color) 68%, #2274a5); }
#forwardLineup .line-card:nth-child(3) { --unit-accent: color-mix(in srgb, var(--lineup-team-color) 52%, #23856d); }
#forwardLineup .line-card:nth-child(4) { --unit-accent: color-mix(in srgb, var(--lineup-team-color) 38%, #657482); }

#defenseLineup .line-card:nth-child(1) { --unit-accent: color-mix(in srgb, var(--lineup-team-color) 76%, #294f78); }
#defenseLineup .line-card:nth-child(2) { --unit-accent: color-mix(in srgb, var(--lineup-team-color) 56%, #397596); }
#defenseLineup .line-card:nth-child(3) { --unit-accent: color-mix(in srgb, var(--lineup-team-color) 40%, #687d8d); }

#powerPlayLineup .line-card { --unit-accent: #c48716; }
#penaltyKillLineup .line-card { --unit-accent: #176d8d; }
#shootoutLineup .line-card { --unit-accent: #6e4aa1; }
.lineup-goalie-unit { --unit-accent: color-mix(in srgb, var(--lineup-team-color) 65%, #263f5c); }

.lineup-panel .special-unit-card {
  border-left-width: 1px;
}

.lineup-panel .line-strategy {
  position: relative;
  z-index: 1;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--unit-accent) 12%, #e5eaee);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.lineup-panel .chemistry-badge {
  padding: 5px 8px;
  color: color-mix(in srgb, var(--unit-accent) 82%, #172330);
  border: 1px solid color-mix(in srgb, var(--unit-accent) 22%, #dfe6eb);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.lineup-special-group {
  gap: 16px;
}

.lineup-unit-section {
  display: grid;
  gap: 8px;
}

.lineup-unit-section > h4 {
  margin: 0;
  padding: 0 3px;
  color: #6d7b87;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lineup-unit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.lineup-unit-row > *,
.lineup-unit-row > * > .line-card {
  min-width: 0;
  height: 100%;
}

.lineup-unit-row .line-card {
  padding: 11px;
}

.lineup-unit-row .line-card-header {
  margin: -11px -11px 2px;
  padding: 10px 11px 9px 15px;
}

.lineup-unit-row.is-power-play .line-slots {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lineup-unit-row.is-penalty-kill .line-slots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lineup-last-row #shootoutLineup .line-slots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lineup-unit-row .lineup-player-control {
  min-height: 98px;
}

.lineup-unit-row .lineup-player-preview {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 9px 7px 7px 9px;
}

.lineup-unit-row .lineup-position-pill {
  min-width: 28px;
  height: 25px;
  padding: 0 5px;
  font-size: 8px;
}

.lineup-unit-row .lineup-player-identity strong {
  font-size: 11px;
}

.lineup-unit-row .lineup-player-overall {
  min-width: 28px;
}

.lineup-unit-row .lineup-player-overall strong {
  font-size: 17px;
}

.lineup-unit-row .lineup-player-metrics {
  gap: 3px;
  min-height: 30px;
  padding: 5px 6px 6px 9px;
}

.lineup-unit-row .lineup-player-metrics > span {
  padding: 2px 4px;
}

.lineup-unit-row .lineup-player-metrics > em {
  display: none;
}

.lineup-goalie-unit #goalieLineup {
  padding-top: 8px;
}

@media (max-width: 980px) {
  .lineup-unit-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .lineup-unit-row.is-power-play .line-slots,
  .lineup-unit-row.is-penalty-kill .line-slots,
  .lineup-last-row #shootoutLineup .line-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lineup-panel .goalie-plan-row {
  border-radius: 12px;
  background: #f7f9fb;
}

.lineup-plan-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.lineup-plan-heading h3 { margin:2px 0 0; }
.lineup-plan-heading p { max-width:580px; margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.lineup-plan-kicker { color:var(--accent-dark); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.lineup-panel .goalie-plan-list { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.goalie-game-card { position:relative; overflow:hidden; min-width:0; padding:13px; border:1px solid color-mix(in srgb,var(--team-primary,var(--accent)) 20%,#dbe3ea); border-radius:15px; background:linear-gradient(155deg,#fff 40%,color-mix(in srgb,var(--team-primary,var(--accent)) 7%,#fff)); box-shadow:0 7px 18px rgba(15,23,42,.06); }
.goalie-game-card::before { content:""; position:absolute; inset:0 0 auto; height:3px; background:linear-gradient(90deg,var(--team-primary,var(--accent)),var(--team-secondary,var(--accent-dark))); }
.goalie-game-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:13px; }
.goalie-game-top span { color:#475569; font-size:11px; font-weight:800; text-transform:uppercase; }
.goalie-game-top b { padding:4px 7px; border-radius:999px; background:#edf2f7; color:#526173; font-size:9px; letter-spacing:.06em; text-transform:uppercase; }
.goalie-game-opponent { display:flex; align-items:center; gap:10px; min-width:0; margin-bottom:14px; }
.goalie-game-logo { width:38px; height:38px; flex:0 0 38px; object-fit:contain; }
.goalie-game-opponent div { display:grid; min-width:0; }
.goalie-game-opponent small { color:var(--accent-dark); font-size:10px; font-weight:900; text-transform:uppercase; }
.goalie-game-opponent strong { overflow:hidden; color:#172033; font-size:13px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.goalie-game-choice { display:grid; gap:5px; }
.goalie-game-choice > span { color:#64748b; font-size:10px; font-weight:800; text-transform:uppercase; }
.goalie-game-choice select { width:100%; min-width:0; padding:9px 30px 9px 9px; border-color:#d5dee8; border-radius:9px; background-color:rgba(255,255,255,.9); color:#172033; font-size:12px; font-weight:700; }
.injury-return-composer { display:grid; grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr) minmax(170px,auto); align-items:end; gap:12px; padding:16px; border:1px solid color-mix(in srgb,var(--team-primary,var(--accent)) 18%,#dae2ea); border-radius:16px; background:linear-gradient(135deg,color-mix(in srgb,var(--team-primary,var(--accent)) 6%,#fff),#fff); }
.injury-return-field { display:grid; gap:7px; min-width:0; }
.injury-return-field > span { color:#506176; font-size:11px; font-weight:800; text-transform:uppercase; }
.injury-return-field select { width:100%; min-width:0; height:44px; margin:0; border-radius:10px; background-color:#fff; font-weight:700; }
.injury-return-arrow,.injury-return-card-arrow { display:grid; place-items:center; color:var(--team-primary,var(--accent)); font-size:22px; font-weight:900; }
.injury-return-save { width:100%; min-height:44px; margin:0; white-space:nowrap; }
.injury-return-plan-list { display:grid; gap:10px; margin-top:13px; }
.injury-return-card { display:grid; grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px 14px; border:1px solid #dfe6ed; border-radius:14px; background:#fff; box-shadow:0 6px 16px rgba(15,23,42,.045); }
.injury-return-player { display:grid; min-width:0; }
.injury-return-player > span { color:var(--accent-dark); font-size:10px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.injury-return-player strong { overflow:hidden; color:#172033; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.injury-return-player small { color:#738195; font-size:11px; }
.injury-return-player.is-replaced > span { color:#9a5b27; }
.injury-return-cancel { margin:0; }
.lineup-plan-empty { display:grid; grid-column:1/-1; place-items:center; gap:4px; min-height:92px; padding:18px; border:1px dashed #ccd7e2; border-radius:14px; background:rgba(248,250,252,.75); text-align:center; }
.lineup-plan-empty strong { color:#253246; }
.lineup-plan-empty span { max-width:560px; color:var(--muted); font-size:12px; }

@media (max-width: 1180px) {
  .lineup-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lineup-panel .goalie-plan-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .lineup-panel { border-radius: 14px; }
  .lineup-panel .lineup-modern-header { align-items: stretch; padding: 21px 16px; }
  .lineup-panel .lineup-toolbar { display: grid; grid-template-columns: 1fr; width: 100%; margin: 12px 0 0; }
  .lineup-panel .lineup-toolbar > select { width: 100%; min-width: 0; }
  .lineup-panel .lineup-level-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .lineup-panel #saveLineupButton { width: 100%; }
  .lineup-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 12px 4px; }
  .lineup-panel > .lineup-assistant-bar { align-items: stretch; margin: 12px; }
  .lineup-panel > .lineup-assistant-bar,
  .lineup-panel > .lineup-assistant-bar .lineup-assistant-actions { display: grid; grid-template-columns: 1fr; }
  .lineup-panel .lineup-validation-panel { padding: 4px 12px 12px; }
  .lineup-panel .lineup-builder { grid-template-columns: 1fr; padding: 12px; }
  .lineup-panel .lineup-group { grid-column: 1; padding: 13px; }
  .lineup-panel .line-slots { grid-template-columns: 1fr; }
  .lineup-plan-heading { display:grid; gap:8px; }
  .lineup-panel .goalie-plan-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .injury-return-composer { grid-template-columns:1fr; align-items:stretch; padding:13px; }
  .injury-return-arrow { transform:rotate(90deg); }
  .injury-return-card { grid-template-columns:1fr 28px 1fr; }
  .injury-return-card .injury-return-cancel { grid-column:1/-1; width:100%; }
}

@media (max-width:440px) {
  .lineup-panel .goalie-plan-list { grid-template-columns:1fr; }
}

.offseason-stage.is-active {
  background: #263746;
  border-color: #263746;
}

.season-calendar {
  padding: 12px;
  background: #f5f7f9;
}

.calendar-weekdays {
  background: #263746;
}

.calendar-day {
  background: #fff;
}

.calendar-day.is-outside {
  background: #edf1f4;
}

.calendar-day.has-games {
  background: #fbfdfd;
}

.calendar-game {
  border-radius: 4px;
}

.league-hub {
  gap: 12px;
  padding: 14px;
}

/* Centre des transactions moderne */
.trade-panel { --trade-ink:#172033; --trade-soft:#f4f7fa; overflow:hidden; background:#f4f6f8; }
.trade-modern-header { position:relative; padding:25px 28px; color:#fff; background:linear-gradient(125deg,#172532 0%,#263d4d 60%,#345466 100%); }
.trade-modern-header::after { content:""; position:absolute; right:-55px; bottom:-90px; width:260px; height:260px; border:45px solid rgba(255,255,255,.05); border-radius:50%; pointer-events:none; }
.trade-modern-header h2 { margin:2px 0 3px; color:#fff; font-size:28px; }
.trade-modern-header #tradeDeadlineNotice { color:rgba(255,255,255,.72); }
.trade-modern-header #tradeButton { position:relative; z-index:1; border-color:rgba(255,255,255,.3); background:#fff; color:#1d3443; box-shadow:0 8px 22px rgba(0,0,0,.16); }
.trade-page-kicker { color:#65d6bd; font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.trade-workspace-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:16px 20px; border-bottom:1px solid #dce4ea; background:#fff; }
.trade-workspace-tab { display:grid; grid-template-columns:34px 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; min-width:0; padding:12px 14px; border:1px solid #dbe3e9; border-radius:13px; background:#f8fafb; color:#4d5d6d; text-align:left; transition:.18s ease; }
.trade-workspace-tab > span { grid-row:1/3; display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#e8eef2; color:#536473; font-size:11px; font-weight:900; }
.trade-workspace-tab strong { color:#263746; font-size:14px; }
.trade-workspace-tab small { overflow:hidden; color:#7a8895; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.trade-workspace-tab:hover { transform:translateY(-1px); border-color:#9eb3c0; }
.trade-workspace-tab.is-active { border-color:#2c5264; background:#edf5f5; box-shadow:0 6px 16px rgba(34,72,87,.1); }
.trade-workspace-tab.is-active > span { background:#244b5d; color:#fff; }
.trade-workspace-tab.is-admin { background:linear-gradient(135deg,#fffaf0,#fff); }
.trade-workspace-tab.is-admin > span { background:#f2dfb7; color:#735319; }
.trade-workspace-tab[hidden] { display:none; }
.trade-workspace-panel { display:none; padding:20px; }
.trade-workspace-panel.is-active { display:block; }
.trade-section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:15px; padding:0 2px; }
.trade-section-heading span { color:#397083; font-size:10px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.trade-section-heading h3 { margin:2px 0 0; color:var(--trade-ink); font-size:21px; }
.trade-section-heading p { max-width:590px; margin:0; color:#6b7987; font-size:12px; line-height:1.5; }
.trade-panel .trade-builder { gap:14px; margin:0 0 14px; }
.trade-panel .trade-side { border:1px solid #dce4ea; border-radius:16px; background:#fff; box-shadow:0 7px 20px rgba(15,23,42,.055); }
.trade-panel .trade-builder:not(.trade-builder-secondary) .trade-side { position:relative; overflow:hidden; padding-top:18px; }
.trade-panel .trade-builder:not(.trade-builder-secondary) .trade-side::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,#28586b,#65bca9); }
.trade-panel .trade-side > label { color:#536273; font-size:10px; font-weight:900; letter-spacing:.055em; text-transform:uppercase; }
.trade-panel .trade-side > select:not([multiple]),.trade-panel .trade-side > input { border-color:#d4dee6; border-radius:9px; background:#f9fbfc; }
.trade-panel .trade-asset-picker { border-color:#dde5eb; border-radius:11px; background:#f7f9fb; }
.trade-panel .trade-asset-picker-group > strong { position:sticky; top:0; z-index:1; padding:8px 10px; background:#eaf0f4; color:#3d5565; }
.trade-panel .trade-asset-option { margin:5px; width:calc(100% - 10px); border-radius:9px; background:#fff; }
.trade-panel .trade-asset-option.is-selected { border-color:#347a78; background:#eaf7f3; box-shadow:0 3px 10px rgba(32,112,102,.1); }
.trade-panel .trade-builder-secondary { align-items:stretch; }
.trade-panel #tradePreview { background:linear-gradient(145deg,#fff,#f5f9fa); }
.trade-panel .trade-balance-card,.trade-panel .trade-preview-side { border-radius:12px; }
.trade-inbox-modern { margin:0; padding:18px; border:1px solid #dce4ea; border-radius:17px; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.06); }
.trade-inbox-modern .trade-inbox-header { margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid #e3e9ee; }
.trade-inbox-modern .subsection-title { margin:2px 0 3px; color:#1d2c39; font-size:21px; font-weight:850; }
.trade-inbox-modern #tradeStatusFilter { min-width:145px; border-radius:9px; background:#f7f9fb; }
.trade-panel .trade-workflow { gap:8px; }
.trade-panel .trade-workflow-step { border-radius:12px; background:#f7f9fb; }
.trade-panel .affiliate-summary { gap:8px; padding:12px 0; }
.trade-panel .trade-summary-filter { border-radius:11px; background:#f7f9fb; }
.trade-panel .pending-trades-list { gap:12px; }
.trade-panel .trade-request-card { overflow:hidden; border:1px solid #dce4ea; border-radius:15px; background:#fff; box-shadow:0 6px 18px rgba(15,23,42,.05); }
.trade-panel .trade-card-header { padding-bottom:10px; border-bottom:1px solid #edf1f4; }
.trade-panel .trade-matchup { padding:10px 12px; border-radius:11px; background:#f5f8fa; }
.trade-panel .trade-assets-side { border-radius:11px; background:#f8fafb; }
.trade-panel .trade-next-step { border-radius:10px; }
.trade-panel .trade-request-actions { padding:12px; border-left:1px solid #e1e7ec; background:#f8fafb; }
.trade-retention-summary { min-height:44px; margin-top:2px; padding:10px 11px; border:1px dashed #ccd7df; border-radius:10px; background:#f8fafb; }
.trade-retention-summary > span { display:block; color:#718090; font-size:11px; line-height:1.45; }
.trade-retention-summary .retention-warning { color:#9a5b27; }
.retention-confirmed { display:flex; align-items:flex-start; gap:10px; }
.retention-confirmed > div { display:grid; gap:2px; min-width:0; }
.retention-confirmed strong { color:#244459; font-size:12px; line-height:1.35; }
.retention-confirmed > div > span { color:#657686; font-size:10px; line-height:1.45; }
.retained-contract-badge { display:inline-flex; align-items:center; gap:4px; max-width:100%; padding:3px 7px; border:1px solid #e4b85b; border-radius:999px; background:linear-gradient(135deg,#fff8df,#ffedb5); color:#705018; font-size:9px; font-weight:900; line-height:1; vertical-align:middle; white-space:nowrap; box-shadow:0 2px 6px rgba(139,99,25,.1); }
.retained-contract-badge b { font-size:9px; letter-spacing:-.03em; }
.retained-contract-badge.is-compact { width:24px; height:18px; justify-content:center; padding:0; }
.roster-player-name strong .retained-contract-badge,.lineup-player-identity .retained-contract-badge { margin-left:4px; }
.trade-asset-option .retained-contract-badge { margin-left:3px; }

@media (max-width:760px) {
  .trade-modern-header { align-items:stretch; padding:21px 16px; }
  .trade-modern-header #tradeButton { width:100%; }
  .trade-workspace-tabs { grid-template-columns:1fr; padding:12px; }
  .trade-workspace-tab { grid-template-columns:32px 1fr; padding:10px 12px; }
  .trade-workspace-panel { padding:12px; }
  .trade-section-heading { display:grid; gap:7px; }
  .trade-panel .trade-builder,.trade-panel .trade-preview-grid,.trade-panel .trade-assets-grid { grid-template-columns:1fr; }
  .trade-inbox-modern { padding:12px; }
  .trade-inbox-modern .trade-inbox-header { display:grid; gap:10px; }
  .trade-inbox-modern .trade-inbox-header label,.trade-inbox-modern #tradeStatusFilter { width:100%; }
  .trade-panel .trade-request-actions { border-top:1px solid #e1e7ec; border-left:0; }
  .retention-confirmed { align-items:center; }
}

.league-form {
  padding: 12px;
}

.league-feed-item {
  border-left-width: 3px;
}

.scouting-toolbar {
  margin: 12px 14px;
  border-radius: 5px;
}

.maintenance-box {
  border-color: #edc4ca;
  background: #fff7f8;
}

.approve-button:hover {
  background: #0e6039;
}

.reject-button:hover {
  background: #8d1c2c;
}

.player-modal {
  background: rgba(13, 22, 31, 0.7);
  backdrop-filter: blur(3px);
}

.player-modal-card {
  border: 0;
  border-radius: 7px;
  box-shadow: var(--shadow-raised);
}

.player-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 15px 18px;
  background: #fff;
}

.player-profile-hero,
.game-scoreboard {
  background: #f2f6f8;
  border-color: #d9e2e8;
  border-radius: 5px;
}

.player-profile-summary > strong {
  font-size: 26px;
}

.rating-tile {
  border-radius: 5px;
}

.login-screen {
  position: relative;
  padding: 28px;
  background: #17212b;
}

.login-screen::before,
.login-screen::after {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.08);
}

.login-screen::before {
  left: 15%;
}

.login-screen::after {
  right: 15%;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  padding: 30px;
  border: 0;
  border-top: 4px solid var(--accent);
  border-radius: 7px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.login-card h1 {
  color: #17212b;
  font-size: 25px;
}

.login-card .eyebrow {
  font-size: 11px;
}

.auth-tabs {
  gap: 4px;
  padding: 4px;
  background: #edf1f4;
  border-radius: 5px;
}

.auth-tab {
  background: transparent;
  border-radius: 4px;
}

.auth-tab.is-active {
  background: #263746;
}

.login-form {
  gap: 9px;
}

.login-form input {
  min-height: 46px;
}

.login-form button {
  min-height: 46px;
  margin-top: 4px;
}

.password-strength {
  color: var(--muted);
  font-size: 12px;
}

.password-strength.is-weak {
  color: var(--loss);
}

.password-strength.is-good {
  color: var(--win);
}

.reset-fields {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Rosters 2026 */
.mobile-simulation-card {
  display: grid;
  gap: 16px;
  margin: 16px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(213, 32, 63, 0.32), transparent 34%),
    linear-gradient(130deg, #111923, #263b4d);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  box-shadow: 0 14px 34px rgba(17, 25, 35, 0.18);
}

.mobile-simulation-card[hidden] {
  display: none;
}

.mobile-simulation-heading,
.mobile-simulation-controls,
.mobile-simulation-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-simulation-heading h3 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: 22px;
}

.mobile-simulation-heading p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.mobile-simulation-private {
  padding: 6px 10px;
  color: #ffc5cf;
  background: rgba(213, 32, 63, 0.18);
  border: 1px solid rgba(255, 143, 162, 0.32);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mobile-simulation-controls label {
  display: grid;
  flex: 1;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
}

.mobile-simulation-controls select {
  color: #172330;
  background: #fff;
}

.mobile-simulation-controls button {
  min-height: 46px;
  align-self: end;
  white-space: nowrap;
}

.mobile-simulation-status {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 12px;
}

.mobile-simulation-status strong {
  color: #fff;
}

.mobile-simulation-progress {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
}

.mobile-simulation-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d5203f, #ff758d);
  border-radius: inherit;
  transition: width 240ms ease;
}

@media (max-width: 620px) {
  .mobile-simulation-card {
    margin: 10px;
    padding: 15px;
    border-radius: 14px;
  }

  .mobile-simulation-heading,
  .mobile-simulation-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-simulation-private {
    align-self: flex-start;
  }

  .mobile-simulation-controls button {
    width: 100%;
  }
}

.player-modal-card {
  width: min(1080px, 100%);
  max-height: min(880px, 94vh);
  overflow: auto;
  background: #f4f7f9;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(10, 19, 28, 0.38);
}

.player-modal-header {
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(120deg, #111923, #263b4d 72%, #8f1930 145%);
  border: 0;
}

.player-modal-header h2,
.player-modal-header .eyebrow {
  color: #fff;
}

.player-modal-header .eyebrow {
  opacity: 0.68;
}

.player-modal-header .quiet-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

.player-modal-body {
  gap: 18px;
  padding: 20px;
}

.player-modal-body .player-profile-hero {
  min-height: 206px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(130deg, #1b2a38, #30485c);
  border: 0;
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(21, 34, 46, 0.15);
}

.player-modal-body .player-headshot-frame {
  overflow: hidden;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.player-modal-body .player-profile-summary > strong {
  color: #fff;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.player-modal-body .player-profile-summary > span {
  color: rgba(255, 255, 255, 0.72);
}

.player-modal-body .player-profile-team {
  color: #ffc1cc;
}

.player-modal-body .player-detail-grid,
.player-modal-body .rating-grid {
  gap: 10px;
}

.player-modal-body .metric,
.player-modal-body .rating-tile {
  background: #fff;
  border: 1px solid #e0e7ec;
  border-radius: 12px;
  box-shadow: 0 6px 17px rgba(20, 32, 44, 0.045);
}

.player-modal-body .subsection-title {
  margin-bottom: 10px;
  padding: 0 2px 10px;
  color: #1a2835;
  background: transparent;
  border-bottom: 2px solid #dfe6eb;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-history-section {
  min-width: 0;
  padding: 17px;
  background: #fff;
  border: 1px solid #e0e7ec;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(20, 32, 44, 0.055);
}

.player-history-table-shell {
  overflow-x: auto;
  border: 1px solid #dfe6eb;
  border-radius: 11px;
}

.player-history-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
}

.player-history-table th {
  height: 42px;
  color: #dce5ec;
  background: #263746;
  border-color: #394b5a;
  font-size: 10px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.player-history-table td {
  height: 47px;
  background: #fff;
  border-color: #e8edf1;
  text-align: center;
}

.player-history-table tr:nth-child(even) td {
  background: #f7f9fb;
}

.player-history-table tr.is-current td {
  background: #fff5f6;
}

.player-history-phase {
  display: inline-flex;
  padding: 5px 9px;
  color: #315469;
  background: #e8f0f4;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.player-history-phase.is-playoffs {
  color: #8f1930;
  background: #fbe9ed;
}

.player-history-empty {
  padding: 24px;
  color: #71808e;
  text-align: center;
}

.roster-modern-panel {
  --roster-team-color: #8f1930;
  --roster-team-accent: #8f1930;
  --roster-on-team: #fff;
  overflow: hidden;
  background: #f5f7f9;
  border: 1px solid #e1e7ec;
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(20, 32, 44, 0.09);
}

.roster-modern-main > .panel-header {
  min-height: 132px;
  padding: 24px clamp(20px, 3vw, 36px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.15), transparent 31%),
    linear-gradient(125deg, #111923 0%, color-mix(in srgb, var(--roster-team-color) 42%, #24384a) 62%, var(--roster-team-color) 145%);
  border: 0;
}

.roster-modern-main > .panel-header h2 {
  margin-top: 3px;
  color: #fff;
  font-size: clamp(23px, 3vw, 33px);
  letter-spacing: -0.035em;
}

.roster-eyebrow {
  display: block;
  color: #f2a6b4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.roster-panel-meta {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.roster-modern-main .team-logo-frame {
  width: 78px;
  height: 78px;
  flex-basis: 78px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.2);
}

.roster-modern-main .team-logo-frame .team-logo {
  width: 62px;
  height: 62px;
}

.roster-modern-main > .panel-header > select {
  min-width: min(280px, 100%);
  color: #172330;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.roster-manager-controls {
  margin: 16px 16px 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e1e7ec;
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(20, 32, 44, 0.05);
}

.roster-modern-panel .team-summary,
.roster-modern-panel .affiliate-summary {
  gap: 10px;
  padding: 16px;
  background: transparent;
  border: 0;
}

.roster-modern-panel .metric {
  min-height: 91px;
  padding: 14px;
  background: linear-gradient(150deg, #fff, #f7f9fb);
  border: 1px solid #e1e7ec;
  border-radius: 13px;
  box-shadow: 0 6px 17px rgba(20, 32, 44, 0.045);
}

.roster-modern-panel .metric strong {
  margin-top: 7px;
  color: #182532;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.roster-modern-panel .metric::before {
  background: var(--roster-team-color);
}

.roster-section-title,
.roster-modern-secondary > .subsection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 14px 18px;
  color: #1c2935;
  background: #eef2f5;
  border-top: 1px solid #dfe6eb;
  border-bottom: 1px solid #dfe6eb;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.roster-section-title,
.roster-modern-secondary > .panel-header {
  box-shadow: inset 5px 0 0 var(--roster-team-color);
}

.roster-section-title small {
  color: #7b8996;
  font-size: 11px;
}

.roster-modern-panel .roster-shell {
  margin: 0;
  background: #fff;
  border: 0;
}

.roster-modern-panel table {
  border-collapse: separate;
  border-spacing: 0;
}

.roster-modern-panel thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 45px;
  color: #dce5ec;
  background: #263746;
  border-color: #394b5a;
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.roster-modern-panel .roster-sort-button {
  color: inherit;
}

.roster-modern-panel .roster-sort-button:hover,
.roster-modern-panel .roster-sort-button:focus-visible,
.roster-modern-panel .roster-sort-button.is-active {
  color: #172330;
  background: color-mix(in srgb, var(--roster-team-color) 14%, #eef2f5);
}

.roster-modern-panel select,
.roster-modern-panel select:focus,
.roster-modern-panel select:hover,
.roster-modern-panel select option {
  color: #172330;
  background-color: #fff;
  color-scheme: light;
}

.roster-modern-panel tbody tr:not(.roster-goalie-separator):nth-child(even) td {
  background: #f8fafb;
}

.roster-modern-panel tbody tr.clickable-player:hover td {
  background: #fff3f5;
}

.roster-modern-panel tbody td:first-child {
  min-width: 190px;
}

.roster-modern-panel .copy-player-button {
  color: var(--roster-team-accent);
  background: #fff;
  border-color: #d8e0e6;
  border-radius: 8px;
}

.roster-modern-panel .roster-goalie-separator td {
  height: 39px;
  color: var(--roster-on-team);
  background: linear-gradient(90deg, var(--roster-team-color), color-mix(in srgb, var(--roster-team-color) 76%, #fff));
  border-color: var(--roster-team-color);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roster-modern-secondary > .panel-header {
  min-height: 72px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #dfe6eb;
}

.roster-modern-secondary > .panel-header h2 {
  color: #182532;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.roster-modern-secondary > .panel-header span {
  color: #71808e;
}

/* Accueil 2026 */
.dashboard-home {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.dashboard-home > .panel-header {
  min-height: 126px;
  padding: 24px clamp(20px, 3vw, 36px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(125deg, #111923 0%, #24384a 58%, #8f1930 145%);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(17, 25, 35, 0.2);
}

.dashboard-home > .panel-header h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.dashboard-home > .panel-header h2 + span,
.dashboard-home > .panel-header > div > span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.dashboard-home .team-logo-frame {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.dashboard-home .team-logo-frame .team-logo {
  width: 60px;
  height: 60px;
}

.dashboard-home .dashboard-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0 4px;
}

.dashboard-home .dashboard-wide-card,
.dashboard-home .dashboard-metrics,
.dashboard-home .dashboard-events-card {
  grid-column: 1 / -1;
}

.dashboard-home .dashboard-alert-card,
.dashboard-home .dashboard-health-card,
.dashboard-home .dashboard-contract-card,
.dashboard-home .dashboard-intelligence-card {
  grid-column: span 4;
}

.dashboard-home .dashboard-games-card {
  grid-column: span 8;
}

.dashboard-home .dashboard-block,
.dashboard-home-results.is-dashboard-mode {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(22, 34, 46, 0.07);
}

.dashboard-home .dashboard-block .subsection-title,
.dashboard-home-results.is-dashboard-mode .panel-header h2 {
  color: #1b2733;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-home .dashboard-metrics {
  gap: 12px;
}

.dashboard-home .metric {
  min-height: 108px;
  padding: 17px;
  background: linear-gradient(155deg, #fff, #f5f8fa);
  border: 1px solid #e3e9ee;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(22, 34, 46, 0.05);
}

.dashboard-home .metric::before {
  right: auto;
  bottom: 14px;
  left: 0;
  width: 4px;
  height: auto;
  border-radius: 0 6px 6px 0;
  background: var(--accent);
}

.dashboard-home .metric strong {
  margin-top: 9px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.dashboard-home .dashboard-item {
  padding: 12px 13px;
  background: #f8fafb;
  border: 1px solid #e8edf1;
  border-left: 0;
  border-radius: 11px;
}

.dashboard-home .dashboard-action {
  min-height: 72px;
  border-radius: 12px;
}

.dashboard-home-results.is-dashboard-mode {
  overflow: hidden;
  margin-top: 12px;
}

.dashboard-home-results.is-dashboard-mode .panel-header {
  min-height: 58px;
  padding: 15px 18px;
  background: transparent;
}

.dashboard-home-results.is-dashboard-mode .results-feed {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 16px 18px;
}

.dashboard-score-card {
  display: grid;
  grid-template-columns: 38px 1fr auto 1fr 38px;
  gap: 8px;
  align-items: center;
  min-height: 70px;
  padding: 10px 12px;
  color: #17212b;
  background: linear-gradient(145deg, #f8fafc, #eef2f5);
  border: 1px solid #e2e8ed;
  border-radius: 13px;
}

.dashboard-score-card strong {
  font-size: 22px;
  text-align: center;
}

.dashboard-score-card time {
  grid-column: 1 / -1;
  color: #71808e;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-align: center;
}

.dashboard-score-card > span {
  color: #9aa6b2;
  font-weight: 800;
}

.dashboard-score-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.dashboard-score-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

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

  .management-nav-panel .management-tabs {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

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

  .dashboard-home .dashboard-alert-card,
  .dashboard-home .dashboard-health-card,
  .dashboard-home .dashboard-contract-card,
  .dashboard-home .dashboard-intelligence-card,
  .dashboard-home .dashboard-games-card {
    grid-column: span 6;
  }

  .dashboard-home-results.is-dashboard-mode .results-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .topbar {
    min-height: 0;
    gap: 14px;
    padding: 14px;
  }

  .brand-mark {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
  }

  .brand-team-logo {
    width: 38px;
    height: 38px;
  }

  .brand-lockup h1 {
    font-size: 18px;
  }

  .user-badge {
    font-size: 11px;
  }

  .topbar-actions {
    grid-template-columns: 1fr 1.35fr 1fr;
  }

  .app-nav {
    min-height: 47px;
    padding: 0 8px;
  }

  .nav-button {
    min-height: 46px;
    padding: 0 11px;
    font-size: 12px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px 8px 24px;
  }

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

  .backup-card {
    align-items: stretch;
    flex-direction: column;
  }

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

  .panel-header {
    min-height: 60px;
    padding: 12px;
  }

  .dashboard-grid,
  .league-hub {
    grid-template-columns: 1fr;
    padding: 10px;
  }

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

  .metric {
    min-height: 82px;
    padding: 11px;
  }

  .metric strong {
    font-size: 18px;
  }

  .management-tabs,
  .management-nav-panel .management-tabs,
  .simulation-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-home > .panel-header {
    min-height: 104px;
    border-radius: 16px;
  }

  .dashboard-home .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home .dashboard-wide-card,
  .dashboard-home .dashboard-metrics,
  .dashboard-home .dashboard-events-card,
  .dashboard-home .dashboard-alert-card,
  .dashboard-home .dashboard-health-card,
  .dashboard-home .dashboard-contract-card,
  .dashboard-home .dashboard-intelligence-card,
  .dashboard-home .dashboard-games-card {
    grid-column: 1;
  }

  .simulation-status-card,
  .simulation-live-grid,
  .opening-grid {
    grid-template-columns: 1fr;
  }

  .public-steps {
    grid-template-columns: 1fr;
  }

  #simulationProgressText {
    text-align: left;
  }

  th,
  td {
    height: 40px;
    padding: 8px 9px;
  }

  .trade-builder,
  .affiliate-move-grid,
  .affiliate-rosters,
  .finance-columns {
    padding: 10px;
  }

  .player-modal {
    padding: 7px;
  }

  .player-modal-card {
    max-height: 97vh;
  }
}

@media (max-width: 520px) {
  .dashboard-home-results.is-dashboard-mode .results-feed {
    grid-template-columns: 1fr;
  }

  .topbar-actions button {
    padding: 0 7px;
    font-size: 11px;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .trade-workflow {
    grid-template-columns: 1fr;
  }

  .free-agency-summary {
    grid-template-columns: 1fr;
  }

  .panel-team-heading {
    align-items: flex-start;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-header > select,
  .panel-header > button,
  .panel-header .topbar-actions {
    width: 100%;
  }

  .login-screen {
    padding: 12px;
  }

  .login-card {
    padding: 22px 18px;
  }
}

/* Centre des mouvements moderne */
.movement-panel { overflow:hidden; background:#f3f6f8; }
.movement-modern-header { position:relative; align-items:end; padding:25px 28px; color:#fff; background:linear-gradient(125deg,#172733,#284553 65%,#396677); }
.movement-modern-header::after { content:""; position:absolute; right:-75px; top:-100px; width:280px; height:280px; border:48px solid rgba(255,255,255,.045); border-radius:50%; pointer-events:none; }
.movement-modern-header > div { position:relative; z-index:1; }
.movement-modern-header h2 { margin:2px 0 4px; color:#fff; font-size:28px; }
.movement-modern-header p { max-width:700px; margin:0; color:rgba(255,255,255,.7); font-size:12px; }
.movement-modern-header select { position:relative; z-index:1; min-width:250px; border-color:rgba(255,255,255,.28); background-color:#fff; color:#213543; }
.movement-kicker { color:#66d7bd; font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.movement-panel > .affiliate-summary { grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; padding:14px 18px; border:0; background:#fff; }
.movement-panel > .affiliate-summary .metric { min-width:0; padding:11px 12px; border:1px solid #e0e7ec; border-radius:11px; background:#f8fafb; }
.movement-panel > .affiliate-summary .metric span { overflow:hidden; text-overflow:ellipsis; }
.movement-panel > .affiliate-summary .metric strong { color:#213543; }
.movement-section-heading { display:flex; align-items:end; justify-content:space-between; gap:22px; padding:21px 20px 12px; }
.movement-section-heading span { color:#39778a; font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.movement-section-heading h3 { margin:2px 0 0; color:#1c2c38; font-size:20px; }
.movement-section-heading p { max-width:580px; margin:0; color:#6d7b88; font-size:11px; }
.movement-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; padding:0 20px 5px; }
.movement-action-card { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px 12px; overflow:hidden; min-width:0; padding:15px; border:1px solid #dce4e9; border-radius:15px; background:#fff; box-shadow:0 7px 20px rgba(15,23,42,.05); }
.movement-action-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:#55798a; }
.movement-action-card.is-call-up::before,.movement-action-card.is-junior-recall::before { background:#2f917c; }
.movement-action-card.is-junior-return::before { background:#bb8135; }
.movement-action-title { grid-column:1/-1; display:flex; align-items:flex-start; gap:11px; min-width:0; }
.movement-action-title > div { display:grid; gap:2px; min-width:0; }
.movement-action-title strong { color:#1d2f3c; font-size:14px; }
.movement-action-title small { color:#73818e; font-size:10px; line-height:1.4; }
.movement-direction { flex:0 0 auto; padding:5px 8px; border-radius:8px; background:#eaf1f4; color:#36596a; font-size:9px; font-weight:900; letter-spacing:.04em; }
.is-call-up .movement-direction,.is-junior-recall .movement-direction { background:#e4f5ef; color:#26715f; }
.is-junior-return .movement-direction { background:#fff1dc; color:#8c5c21; }
.movement-action-card label { grid-column:1/-1; color:#526371; font-size:10px; font-weight:900; text-transform:uppercase; }
.movement-action-card select { min-width:0; width:100%; height:42px; margin:0; border-color:#d5dfe6; border-radius:9px; background-color:#f8fafb; font-weight:700; }
.movement-action-card button { min-width:145px; height:42px; margin:0; border-radius:9px; }
.movement-action-card button:disabled { opacity:.45; cursor:not-allowed; }
.movement-depth-heading { padding-top:24px; }
.movement-depth-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; padding:0 20px 22px; }
.movement-depth-column { overflow:hidden; min-width:0; border:1px solid #dce4e9; border-radius:15px; background:#fff; box-shadow:0 7px 20px rgba(15,23,42,.045); }
.movement-depth-title { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; border-bottom:1px solid #e2e8ed; background:#edf3f6; }
.movement-depth-title span { color:#234657; font-size:13px; font-weight:900; }
.movement-depth-title strong { padding:4px 7px; border-radius:999px; background:#fff; color:#687886; font-size:9px; }
.movement-depth-column.is-ahl .movement-depth-title { background:#eef6f3; }
.movement-depth-column.is-jnr .movement-depth-title { background:#fff5e7; }
.movement-depth-column > .free-agents-list { max-height:620px; overflow-y:auto; gap:7px; padding:10px; }
.movement-player-card { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:9px; padding:9px; border:1px solid #e1e7ec; border-radius:10px; background:#fbfcfd; }
.movement-player-card:hover { border-color:#b8c9d3; background:#f4f8fa; }
.movement-player-card.is-waiver { border-color:#efc98f; background:#fff9ef; }
.movement-player-position { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#e6eef2; color:#31566a; font-size:10px; font-weight:900; }
.movement-player-info { display:grid; min-width:0; }
.movement-player-info strong { overflow:hidden; color:#20313d; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.movement-player-info span { overflow:hidden; color:#74818d; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.movement-player-ratings { display:flex; gap:4px; }
.movement-player-ratings span { display:grid; place-items:center; min-width:31px; padding:4px; border-radius:7px; background:#edf2f5; color:#73818d; font-size:7px; font-weight:800; }
.movement-player-ratings b { color:#243b49; font-size:12px; line-height:1; }

@media (max-width:1100px) {
  .movement-panel > .affiliate-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .movement-depth-grid { grid-template-columns:1fr; }
  .movement-depth-column > .free-agents-list { max-height:420px; }
}

@media (max-width:760px) {
  .movement-modern-header { align-items:stretch; padding:21px 16px; }
  .movement-modern-header select { width:100%; min-width:0; }
  .movement-panel > .affiliate-summary { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .movement-section-heading { display:grid; gap:6px; padding:18px 12px 10px; }
  .movement-action-grid { grid-template-columns:1fr; padding:0 12px; }
  .movement-action-card { grid-template-columns:1fr; }
  .movement-action-card button { width:100%; }
  .movement-depth-grid { padding:0 12px 18px; }
}

/* Priorites de rappels modernes */
.injury-callup-panel { overflow:hidden; background:#f3f6f8; }
.recall-modern-header { position:relative; align-items:end; padding:25px 28px; color:#fff; background:linear-gradient(125deg,#182632,#294554 62%,#386574); }
.recall-modern-header::after { content:""; position:absolute; right:-70px; bottom:-125px; width:300px; height:300px; border:50px solid rgba(255,255,255,.045); border-radius:50%; pointer-events:none; }
.recall-modern-header > div,.recall-modern-header select { position:relative; z-index:1; }
.recall-modern-header h2 { margin:2px 0 4px; color:#fff; font-size:28px; }
.recall-modern-header p { max-width:720px; margin:0; color:rgba(255,255,255,.7); font-size:12px; }
.recall-modern-header select { min-width:250px; border-color:rgba(255,255,255,.28); background-color:#fff; color:#213543; }
.recall-kicker { color:#67d7bd; font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.recall-how-it-works { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:14px 18px; border-bottom:1px solid #dfe6eb; background:#fff; }
.recall-how-it-works > div { display:grid; grid-template-columns:34px 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; min-width:0; padding:10px 12px; border:1px solid #e0e7ec; border-radius:11px; background:#f8fafb; }
.recall-how-it-works > div > span { grid-row:1/3; display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#dfecef; color:#2f5b6d; font-size:12px; font-weight:900; }
.recall-how-it-works strong { color:#263946; font-size:12px; }
.recall-how-it-works small { overflow:hidden; color:#74828e; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.injury-callup-panel > .affiliate-summary { grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; padding:14px 18px; border:0; background:#fff; }
.injury-callup-panel > .affiliate-summary .metric { min-width:0; padding:11px 12px; border:1px solid #e0e7ec; border-radius:11px; background:#f8fafb; }
.injury-callup-panel > .affiliate-summary .metric strong { color:#213543; }
.injury-callup-panel > .affiliate-summary .metric small { display:block; overflow:hidden; color:#778692; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.recall-section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:21px 20px 12px; }
.recall-section-heading span { color:#39778a; font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.recall-section-heading h3 { margin:2px 0 0; color:#1c2c38; font-size:20px; }
.recall-section-heading p { margin:0; color:#6d7b88; font-size:11px; }
.injury-callup-panel > .injury-callup-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; padding:0 20px 22px; }
.injury-callup-panel .injury-callup-column { overflow:hidden; gap:7px; padding:10px; border-color:#dce4e9; border-radius:15px; box-shadow:0 7px 20px rgba(15,23,42,.045); }
.injury-callup-column-header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:-10px -10px 3px; padding:12px; border-bottom:1px solid #dfe7ec; background:#edf3f6; }
.injury-callup-column.is-d .injury-callup-column-header { background:#eef6f3; }
.injury-callup-column.is-g .injury-callup-column-header { background:#fff5e7; }
.injury-callup-column-header > div { display:flex; align-items:center; gap:9px; min-width:0; }
.injury-callup-column-header > div > span { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:#315b6c; color:#fff; font-size:10px; font-weight:900; }
.injury-callup-column.is-d .injury-callup-column-header > div > span { background:#37806d; }
.injury-callup-column.is-g .injury-callup-column-header > div > span { background:#a66c27; }
.injury-callup-column-header h4 { margin:0; color:#233844; font-size:13px; }
.injury-callup-column-header small { display:block; color:#74828e; font-size:9px; }
.injury-callup-column-header > b { flex:0 0 auto; padding:4px 7px; border-radius:999px; background:#fff; color:#687886; font-size:8px; }
.injury-callup-panel .injury-callup-row { grid-template-columns:27px minmax(0,1fr) 38px auto; grid-template-areas:"rank player rating actions" "rank availability availability actions"; gap:3px 8px; min-height:59px; padding:8px; border:1px solid #e3e9ed; border-radius:10px; background:#fbfcfd; }
.injury-callup-panel .injury-callup-row.is-first { border-color:#7eb3a8; background:linear-gradient(135deg,#edf9f5,#fff); box-shadow:0 4px 12px rgba(42,120,100,.09); }
.injury-callup-panel .injury-callup-row.is-unavailable { opacity:.67; background:#f4f5f6; }
.injury-callup-panel .injury-callup-rank { grid-area:rank; display:grid; place-items:center; width:27px; height:27px; border-radius:8px; background:#e6edf1; color:#365464; font-size:11px; }
.injury-callup-panel .is-first .injury-callup-rank { background:#2e826c; color:#fff; }
.injury-callup-player { grid-area:player; display:grid; min-width:0; }
.injury-callup-player strong { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.injury-callup-player small { color:#7a8791; font-size:8px; }
.injury-callup-rating { grid-area:rating; display:grid; place-items:center; align-self:center; padding:4px; border-radius:7px; background:#edf2f5; color:#74818c; }
.injury-callup-rating b { color:#243b49; font-size:12px; line-height:1; }
.injury-callup-rating small { font-size:6px; font-weight:900; }
.injury-callup-availability { grid-area:availability; width:max-content; padding:2px 6px; border-radius:999px; font-size:7px; font-weight:900; text-transform:uppercase; }
.injury-callup-availability.is-ready { background:#dcf4e9; color:#28715d; }
.injury-callup-availability.is-out { background:#f3e4e4; color:#954b4b; }
.injury-callup-panel .injury-callup-actions { grid-area:actions; align-self:center; }
.injury-callup-panel .injury-callup-actions button { display:grid; place-items:center; width:27px; height:27px; padding:0; border-radius:7px; }
.recall-empty { display:grid; place-items:center; gap:3px; min-height:110px; padding:14px; color:#6f7e89; text-align:center; }
.recall-empty strong { color:#334b5a; font-size:12px; }
.recall-empty span { font-size:9px; }

@media (max-width:1100px) {
  .injury-callup-panel > .affiliate-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .injury-callup-panel > .injury-callup-grid { grid-template-columns:1fr; }
}

@media (max-width:760px) {
  .recall-modern-header { align-items:stretch; padding:21px 16px; }
  .recall-modern-header select { width:100%; min-width:0; }
  .recall-how-it-works { grid-template-columns:1fr; padding:12px; }
  .injury-callup-panel > .affiliate-summary { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .recall-section-heading { display:grid; gap:6px; padding:18px 12px 10px; }
  .injury-callup-panel > .injury-callup-grid { padding:0 12px 18px; }
}

/* Ballotage moderne et simplifie */
.waiver-panel { overflow:hidden; background:#f3f6f8; }
.waiver-modern-header { position:relative; padding:25px 28px; color:#fff; background:linear-gradient(125deg,#182632,#294554 62%,#386574); }
.waiver-modern-header::after { content:""; position:absolute; right:-70px; top:-115px; width:290px; height:290px; border:48px solid rgba(255,255,255,.045); border-radius:50%; }
.waiver-modern-header > div { position:relative; z-index:1; }
.waiver-modern-header h2 { margin:2px 0 4px; color:#fff; font-size:28px; }
.waiver-modern-header p { margin:0; color:rgba(255,255,255,.7); font-size:12px; }
.waiver-kicker { color:#67d7bd; font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.waiver-rule-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:14px 18px; border-bottom:1px solid #dfe6eb; background:#fff; }
.waiver-rule-strip > div { display:grid; grid-template-columns:40px 1fr; grid-template-rows:auto auto; column-gap:10px; align-items:center; min-width:0; padding:10px 12px; border:1px solid #e0e7ec; border-radius:11px; background:#f8fafb; }
.waiver-rule-strip > div > span { grid-row:1/3; display:grid; place-items:center; width:38px; height:32px; border-radius:9px; background:#dfecef; color:#2f5b6d; font-size:10px; font-weight:900; }
.waiver-rule-strip strong { color:#263946; font-size:12px; }
.waiver-rule-strip small { overflow:hidden; color:#74828e; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.waiver-panel > .affiliate-summary { grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; padding:14px 18px; border:0; background:#fff; }
.waiver-panel > .affiliate-summary .metric { padding:11px 12px; border:1px solid #e0e7ec; border-radius:11px; background:#f8fafb; }
.waiver-panel > .affiliate-summary .metric strong { color:#213543; }
.waiver-panel > .affiliate-summary .metric small { display:block; color:#778692; font-size:9px; }
.waiver-section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:21px 20px 12px; }
.waiver-section-heading span,.waiver-subheading > div > span { color:#39778a; font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.waiver-section-heading h3,.waiver-subheading h3 { margin:2px 0 0; color:#1c2c38; font-size:20px; }
.waiver-section-heading p { margin:0; color:#6d7b88; font-size:11px; }
.waiver-panel > #waiverList { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0 20px 20px; }
.waiver-market-card { display:grid; grid-template-columns:54px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px; border:1px solid #dce4e9; border-radius:15px; background:#fff; box-shadow:0 7px 20px rgba(15,23,42,.05); }
.waiver-market-card.is-claimed { border-color:#73ad9d; background:linear-gradient(135deg,#effaf6,#fff); }
.waiver-player-overall { display:grid; place-items:center; width:54px; height:54px; border-radius:13px; background:#e8f0f3; color:#294e60; }
.waiver-player-overall strong { font-size:21px; line-height:1; }
.waiver-player-overall span { font-size:7px; font-weight:900; }
.waiver-player-main { display:grid; gap:4px; min-width:0; }
.waiver-player-main > div:first-child { display:flex; align-items:center; gap:7px; min-width:0; }
.waiver-player-main > div:first-child strong { overflow:hidden; color:#1f313d; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.waiver-player-main > span { color:#71808c; font-size:10px; }
.waiver-position-pill { padding:3px 6px; border-radius:6px; background:#315b6c; color:#fff; font-size:8px; font-weight:900; }
.waiver-timer { position:relative; height:17px; overflow:hidden; border-radius:6px; background:#e8edf1; }
.waiver-timer > span { display:block; width:var(--waiver-progress); height:100%; background:linear-gradient(90deg,#4fa78f,#78c4af); }
.waiver-timer > b { position:absolute; inset:0; display:grid; place-items:center; color:#263e4c; font-size:8px; }
.waiver-leading-team { display:flex; align-items:center; gap:5px; min-height:20px; }
.waiver-leading-team span { color:#566975; font-size:9px; }
.waiver-card-actions { display:grid; justify-items:stretch; gap:7px; min-width:140px; }
.waiver-card-actions button { width:100%; min-height:36px; margin:0; }
.waiver-my-rank { padding:5px 7px; border-radius:7px; background:#edf2f5; color:#405968; font-size:9px; font-weight:900; text-align:center; }
.waiver-lower-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:13px; padding:0 20px 22px; }
.waiver-priority-panel,.waiver-history-panel { overflow:hidden; border:1px solid #dce4e9; border-radius:15px; background:#fff; box-shadow:0 7px 20px rgba(15,23,42,.045); }
.waiver-subheading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 14px; border-bottom:1px solid #e2e8ed; background:#edf3f6; }
.waiver-subheading h3 { font-size:16px; }
.waiver-subheading > small { padding:4px 7px; border-radius:999px; background:#fff; color:#6f7e89; font-size:8px; }
.waiver-priority-panel > .free-agents-list,.waiver-history-panel > .free-agents-list { gap:7px; padding:10px; }
.waiver-priority-row { display:grid; grid-template-columns:38px 32px minmax(0,1fr); align-items:center; gap:9px; padding:8px 10px; border:1px solid #e3e9ed; border-radius:10px; background:#fbfcfd; }
.waiver-priority-row.is-mine { border-color:#67a895; background:#edf9f5; }
.waiver-priority-rank { color:#345466; font-size:13px; font-weight:900; }
.waiver-priority-logo { width:30px; height:30px; object-fit:contain; }
.waiver-priority-row div { display:grid; min-width:0; }
.waiver-priority-row strong { overflow:hidden; color:#263946; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.waiver-priority-row div span { color:#778590; font-size:8px; }
.waiver-history-row { display:grid; grid-template-columns:64px minmax(0,1fr); align-items:center; gap:9px; padding:9px 10px; border:1px solid #e3e9ed; border-radius:10px; background:#fbfcfd; }
.waiver-history-status { padding:4px 6px; border-radius:999px; background:#e7edf1; color:#526675; font-size:7px; font-weight:900; text-align:center; text-transform:uppercase; }
.waiver-history-status.is-claimed { background:#dcf4e9; color:#28715d; }
.waiver-history-status.is-cancelled { background:#f3e4e4; color:#954b4b; }
.waiver-history-row div { display:grid; min-width:0; }
.waiver-history-row strong { color:#293c48; font-size:11px; }
.waiver-history-row div span { color:#74828d; font-size:9px; }

@media (max-width:1000px) {
  .waiver-panel > #waiverList { grid-template-columns:1fr; }
}

@media (max-width:760px) {
  .waiver-modern-header { padding:21px 16px; }
  .waiver-rule-strip { grid-template-columns:1fr; padding:12px; }
  .waiver-panel > .affiliate-summary { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .waiver-section-heading { display:grid; gap:6px; padding:18px 12px 10px; }
  .waiver-panel > #waiverList { padding:0 12px 18px; }
  .waiver-market-card { grid-template-columns:46px minmax(0,1fr); }
  .waiver-player-overall { width:46px; height:46px; }
  .waiver-card-actions { grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .waiver-my-rank { grid-column:1/-1; }
  .waiver-lower-grid { grid-template-columns:1fr; padding:0 12px 18px; }
}

/* Les encoches iPhone et les barres systeme ne doivent pas couvrir l'interface. */
@supports (padding: env(safe-area-inset-top)) {
  .topbar {
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-right: calc(28px + env(safe-area-inset-right));
    padding-left: calc(28px + env(safe-area-inset-left));
  }

  .layout {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(18px, env(safe-area-inset-left));
  }
}

@media (max-width: 520px) {
  @supports (padding: env(safe-area-inset-top)) {
    .topbar {
      padding-top: calc(12px + env(safe-area-inset-top));
      padding-right: calc(12px + env(safe-area-inset-right));
      padding-left: calc(12px + env(safe-area-inset-left));
    }
  }
}
.free-agency-active-section {
  margin: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 4%, var(--panel));
  box-shadow: 0 9px 26px rgba(18, 36, 54, .07);
}

.free-agency-active-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel));
}

.free-agency-active-heading span { font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.free-agency-active-heading h3 { margin: 3px 0 0; font-size: 20px; }
.free-agency-active-heading > small { color: var(--muted); }
.free-agency-active-section > .free-agents-list { padding: 12px; }
.free-agent-live-indicator { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent); font-size: 11px; font-weight: 900; white-space: nowrap; }
.free-agent-live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); animation: free-agent-live-pulse 1.2s infinite; }

@keyframes free-agent-live-pulse {
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 620px) {
  .free-agency-active-section { margin: 0 10px 14px; }
  .free-agency-active-heading { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px; }
}

/* Marché des agents libres — interface moderne */
.free-agency-panel { overflow: hidden; border-radius: 18px; background: #f5f8fb; }
.fa-modern-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px; color: #fff; background: radial-gradient(circle at 88% 0%, rgba(213,32,63,.42), transparent 34%), linear-gradient(128deg, #101b29 0%, #1b3046 58%, #263f56 100%); }
.fa-header-copy { display: grid; gap: 6px; max-width: 720px; }
.fa-eyebrow { color: #ff9aac; font-size: 10px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.fa-header-copy h2 { margin: 0; color: #fff; font-size: clamp(27px, 3.6vw, 40px); letter-spacing: -.035em; }
.fa-header-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.5; }
.fa-market-status { justify-self: start; margin-top: 6px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.09); color: #fff; font-size: 11px; font-weight: 850; }
.fa-header-actions { display: grid; grid-template-columns: minmax(210px, 1fr) auto; align-items: end; gap: 10px; min-width: min(440px, 44%); }
.fa-header-actions label { display: grid; gap: 6px; color: rgba(255,255,255,.66); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.fa-header-actions select { min-height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: #fff; color: #142335; font-weight: 800; }
.fa-analyze-button { min-height: 46px; padding: 0 16px; border: 1px solid #ff7189; border-radius: 11px; background: var(--accent); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 8px 20px rgba(213,32,63,.28); }
.fa-analyze-button:disabled { opacity: .5; cursor: not-allowed; }

.free-agency-panel .free-agency-active-section { margin: 16px; border-radius: 15px; border-color: #d8e0e8; background: #fff; box-shadow: 0 8px 24px rgba(20,36,52,.07); }
.free-agency-panel .free-agency-active-heading { padding: 17px 19px; background: linear-gradient(115deg, #fff1f4, #fff 52%); }
.free-agency-panel .free-agency-active-heading span { color: var(--accent); }
.free-agency-panel .free-agent-offer-card { border: 1px solid #e0e6ec; border-left: 5px solid #64748b; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(20,36,52,.04); }
.free-agency-panel .free-agent-offer-card.is-leading,.free-agency-panel .free-agent-offer-card.is-signed { border-left-color: #2f8f55; }
.free-agency-panel .free-agent-offer-card.is-close,.free-agency-panel .free-agent-offer-card.is-active { border-left-color: #819a38; }
.free-agency-panel .free-agent-offer-card.is-chasing,.free-agency-panel .free-agent-offer-card.is-pending { border-left-color: #c08b23; }
.free-agency-panel .free-agent-offer-card.is-behind { border-left-color: #bd4f4f; }

.fa-market-dashboard { display: grid; gap: 11px; padding: 0 16px 18px; }
.free-agency-panel .free-agency-summary { gap: 10px; }
.free-agency-panel .free-agency-summary-card { min-height: 104px; padding: 15px; border: 1px solid #dfe6ed; border-radius: 13px; background: #fff; box-shadow: 0 5px 16px rgba(20,36,52,.045); }
.free-agency-panel .free-agency-summary-card strong { font-size: 22px; letter-spacing: -.02em; }
.free-agency-panel .free-agency-notice { padding: 14px 16px; border-radius: 12px; box-shadow: 0 4px 12px rgba(20,36,52,.04); }

.fa-player-directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 16px; padding: 18px 3px 11px; border-top: 1px solid #dfe6ed; }
.fa-player-directory-heading span { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.fa-player-directory-heading h3 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.02em; }
.fa-player-directory-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.free-agency-panel .free-agency-filters { grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(135px, .7fr)); gap: 10px; margin: 0 16px 14px; padding: 12px; border: 1px solid #dfe6ed; border-radius: 13px; background: #fff; }
.free-agency-panel .free-agency-filters label { gap: 6px; }
.free-agency-panel .free-agency-filters label > span { color: #536273; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.free-agency-panel .free-agency-filters input,.free-agency-panel .free-agency-filters select { min-height: 43px; border: 1px solid #d6dee7; border-radius: 9px; background: #f8fafc; color: var(--ink); }
.free-agency-panel .free-agency-filters input:focus,.free-agency-panel .free-agency-filters select:focus { border-color: var(--accent); outline: 3px solid rgba(213,32,63,.1); background: #fff; }

.free-agency-panel .free-agent-roster-shell { margin: 0 16px 16px; max-height: 68vh; overflow: auto; border: 1px solid #dbe3eb; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(20,36,52,.055); }
.free-agency-panel .free-agent-roster-table { border-collapse: separate; border-spacing: 0; }
.free-agency-panel .free-agent-roster-table thead th { padding: 13px 11px; border-bottom: 1px solid #dbe3eb; background: #172a3d; color: rgba(255,255,255,.78); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.free-agency-panel .free-agent-roster-row td { padding: 12px 11px; border-bottom: 1px solid #edf1f5; background: #fff; transition: background .15s ease; }
.free-agency-panel .free-agent-roster-row:nth-child(even) td { background: #fafbfd; }
.free-agency-panel .free-agent-roster-row:hover td { background: #fff1f4; }
.free-agency-panel .free-agent-roster-row td:first-child strong { font-size: 13px; }
.fa-position-pill { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 7px; border-radius: 8px; background: #e9f0f6; color: #29445d; font-size: 11px; font-weight: 900; }
.fa-position-pill.is-g { background: #fff0d8; color: #93651d; }
.fa-position-pill.is-d { background: #e7f2fb; color: #27628d; }
.free-agency-panel .free-agent-row-status { padding: 6px 9px; }
.free-agency-panel .roster-goalie-separator td { padding: 10px 13px; background: #e8eef4; color: #253b50; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .fa-modern-header { align-items: stretch; flex-direction: column; padding: 21px; }
  .fa-header-actions { min-width: 0; width: 100%; }
  .free-agency-panel .free-agency-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fa-search-filter { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .fa-modern-header { padding: 18px 15px; }
  .fa-header-actions { grid-template-columns: 1fr; }
  .fa-analyze-button { width: 100%; }
  .free-agency-panel .free-agency-active-section { margin: 10px; }
  .fa-market-dashboard { padding: 0 10px 13px; }
  .fa-player-directory-heading { align-items: flex-start; flex-direction: column; gap: 4px; margin: 0 10px; }
  .free-agency-panel .free-agency-filters { grid-template-columns: 1fr; margin: 0 10px 10px; }
  .fa-search-filter { grid-column: auto; }
  .free-agency-panel .free-agent-roster-shell { margin: 0 10px 12px; max-height: 66vh; }
}

/* Signatures et renégociations — sélection puis dossier */
.extension-panel { overflow: hidden; border-radius: 18px; background: #f5f8fb; }
.extension-modern-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 25px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(8,127,140,.42), transparent 34%), linear-gradient(128deg, #101b29, #1c3448 62%, #245460); }
.extension-modern-header > div { max-width: 720px; }
.extension-modern-header > div > span { color: #8fe0e7; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.extension-modern-header h2 { margin: 5px 0 6px; color: #fff; font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -.035em; }
.extension-modern-header p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.45; }
.extension-modern-header label { display: grid; gap: 6px; min-width: 250px; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.extension-modern-header select { min-height: 46px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: #fff; color: #142335; font-weight: 800; }
.extension-panel #extensionSummary { gap: 10px; padding: 16px; }
.extension-panel #extensionSummary .free-agency-summary-card { min-height: 100px; border-radius: 13px; box-shadow: 0 5px 16px rgba(20,36,52,.045); }
.extension-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 16px; padding: 16px 2px 10px; border-top: 1px solid #dfe6ed; }
.extension-section-heading > div > span { color: var(--secondary); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.extension-section-heading h3 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.02em; }
.extension-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.extension-section-heading.is-signed { margin-top: 10px; }
.extension-player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 13px; padding: 0 16px 18px; }
.extension-player-choice { display: grid; align-content: start; gap: 11px; min-width: 0; padding: 16px; border: 1px solid #dce4eb; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(20,36,52,.055); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.extension-player-choice:hover { transform: translateY(-2px); border-color: #aacbd0; box-shadow: 0 11px 25px rgba(20,36,52,.09); }
.extension-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.extension-level-badge { padding: 5px 8px; border-radius: 7px; background: #e7f4f5; color: #08717c; font-size: 10px; font-weight: 900; }
.extension-player-choice h4 { margin: 0; overflow: hidden; color: #172638; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.extension-overall-line { display: grid; gap: 6px; }
.extension-overall-line > div { display: flex; align-items: baseline; justify-content: space-between; }
.extension-overall-line span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.extension-overall-line strong { color: #172638; font-size: 22px; }
.extension-overall-line i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #e6ecf1; }
.extension-overall-line i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087f8c, #35b6a5); }
.extension-current-contract { display: grid; gap: 3px; padding: 11px; border-radius: 10px; background: #f3f6f8; }
.extension-current-contract span { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.extension-current-contract strong { color: #26394c; font-size: 13px; }
.extension-player-choice > small { min-height: 30px; color: var(--muted); line-height: 1.35; }
.extension-player-choice > button { min-height: 45px; margin-top: auto; border: 1px solid #087582; border-radius: 10px; background: linear-gradient(135deg, #087f8c, #075e6c); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 6px 15px rgba(8,127,140,.2); }
.extension-player-choice > button:hover { filter: brightness(1.08); }
.extension-empty-card { grid-column: 1 / -1; display: grid; gap: 4px; padding: 28px; border: 1px dashed #cbd6df; border-radius: 14px; background: #fff; text-align: center; }
.extension-empty-card span { color: var(--muted); }
.extension-signed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 12px; padding: 0 16px 18px; }
.extension-signed-grid .contract-negotiation-card { grid-template-columns: 1fr; border-radius: 13px; }

.extension-negotiation-view { min-height: 540px; background: #f5f8fb; }
.extension-negotiation-header { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid #dce4eb; background: #fff; }
.extension-negotiation-header > button { min-height: 42px; padding: 0 13px; border: 1px solid #cad5df; border-radius: 9px; background: #f5f7f9; color: #273c50; font-weight: 850; cursor: pointer; }
.extension-negotiation-header span { color: var(--secondary); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.extension-negotiation-header h3 { margin: 2px 0; font-size: 24px; }
.extension-negotiation-header p { margin: 0; color: var(--muted); font-size: 12px; }
.extension-negotiation-body { padding: 18px; }
.extension-negotiation-body .contract-negotiation-card { grid-template-columns: minmax(0,1.35fr) minmax(290px,.65fr); gap: 20px; padding: 20px; border-radius: 15px; box-shadow: 0 9px 28px rgba(20,36,52,.07); }
.extension-negotiation-body .contract-player-summary > div:first-child strong { font-size: 24px; }
.extension-negotiation-body .contract-offer-form { grid-template-columns: 1fr; align-content: start; padding: 16px; border: 1px solid #dce4eb; border-radius: 12px; background: #f7f9fb; }
.extension-negotiation-body .contract-offer-form input,.extension-negotiation-body .contract-offer-form select { min-height: 44px; border-radius: 9px; }
.extension-negotiation-body .contract-offer-form button { min-height: 46px; border-radius: 9px; background: var(--secondary); color: #fff; font-weight: 900; }

@media (max-width: 800px) {
  .extension-modern-header { align-items: stretch; flex-direction: column; padding: 20px; }
  .extension-modern-header label { min-width: 0; }
  .extension-negotiation-body .contract-negotiation-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .extension-modern-header { padding: 17px 14px; }
  .extension-panel #extensionSummary { padding: 10px; }
  .extension-section-heading { align-items: flex-start; flex-direction: column; margin: 0 10px; }
  .extension-player-grid,.extension-signed-grid { grid-template-columns: 1fr; padding: 0 10px 14px; }
  .extension-negotiation-header { grid-template-columns: 1fr; padding: 14px; }
  .extension-negotiation-header > button { justify-self: start; }
  .extension-negotiation-body { padding: 10px; }
  .extension-negotiation-body .contract-negotiation-card { padding: 13px; }
}

/* Bureau du DG — laboratoire commissaire */
.experimental-nav-badge { margin-left: 4px; padding: 2px 5px; border-radius: 999px; background: #fff0b8; color: #795600; font-size: 8px; font-weight: 950; }
.player-talks-panel { overflow: hidden; padding: 0; background: #f4f7fa; }
.player-talks-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 25px; color: #fff; background: radial-gradient(circle at 88% 0%, rgba(132,91,247,.45), transparent 34%), linear-gradient(128deg,#111c2b,#25344b 60%,#3c315d); }
.player-talks-header > div > span { color: #c7b6ff; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.player-talks-header h2 { margin: 4px 0 6px; color: #fff; font-size: clamp(27px,3.4vw,38px); }
.player-talks-header p { margin: 0; color: rgba(255,255,255,.72); }
.player-talks-header button { min-height: 45px; padding: 0 16px; border: 1px solid #b6a0ff; border-radius: 11px; background: #7857db; color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 8px 20px rgba(88,57,175,.3); }
.player-talks-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 16px; }
.player-talks-summary > div { display: grid; gap: 3px; min-height: 92px; padding: 14px; border: 1px solid #dfe5ec; border-radius: 13px; background: #fff; box-shadow: 0 5px 15px rgba(21,36,52,.045); }
.player-talks-summary > div.is-warning { border-color: #efc7a5; background: #fff9f3; }
.player-talks-summary span,.player-talks-summary small { color: var(--muted); font-size: 11px; font-weight: 800; }
.player-talks-summary strong { color: #25364a; font-size: 24px; }
.player-talks-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 16px; padding: 15px 2px 10px; border-top: 1px solid #dce3ea; }
.player-talks-heading span { color: #7857db; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.player-talks-heading h3 { margin: 3px 0 0; font-size: 22px; }
.player-talks-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.player-talks-heading.is-archive { margin-top: 10px; }
.player-talks-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); gap: 13px; padding: 0 16px 18px; }
.player-talk-card { display: grid; gap: 13px; padding: 17px; border: 1px solid #dce3eb; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(20,36,52,.06); }
.player-talk-card-top { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.player-talk-person span { color: #7857db; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.player-talk-person h4 { margin: 3px 0 0; font-size: 20px; }
.player-talk-message { padding: 13px; border-left: 4px solid #7857db; border-radius: 9px; background: #f6f3ff; }
.player-talk-message span { color: #59409d; font-size: 11px; font-weight: 900; }
.player-talk-message p { margin: 5px 0 0; color: #314054; line-height: 1.5; }
.player-talk-options { display: grid; gap: 8px; }
.player-talk-options button { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid #dce3ea; border-radius: 10px; background: #f9fafb; color: #24374a; text-align: left; cursor: pointer; }
.player-talk-options button:hover { border-color: #9e88e5; background: #f5f1ff; }
.player-talk-options button > span { color: #7857db; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.player-talk-options button strong { font-size: 13px; }
.player-talk-options button small { color: var(--muted); line-height: 1.35; }
.player-talks-archive { display: grid; gap: 9px; padding: 0 16px 18px; }
.player-talk-archive-card { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(240px,1.2fr) auto; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid #dfe5eb; border-radius: 12px; background: #fff; }
.player-talk-archive-card > div:first-child { display: grid; gap: 3px; }
.player-talk-archive-card span,.player-talk-archive-card p { color: var(--muted); font-size: 11px; }
.player-talk-archive-card p { margin: 0; }
.player-talk-impact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.player-talk-impact span { padding: 5px 7px; border-radius: 7px; background: #eef2f6; color: #42566a; font-weight: 800; }
.player-talk-empty { grid-column: 1/-1; display: grid; gap: 4px; padding: 28px; border: 1px dashed #c9d3dd; border-radius: 13px; background: #fff; text-align: center; }
.player-talk-empty span { color: var(--muted); }
.locker-room-team-picker { display: flex; justify-content: flex-end; padding: 12px 16px 0; }
.locker-room-team-picker label { display: grid; gap: 4px; min-width: 230px; }
.locker-room-team-picker span { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.locker-room-team-picker select { min-height: 40px; border: 1px solid #d5dde6; border-radius: 10px; background: #fff; color: #26384b; font-weight: 850; }
.locker-room-dashboard { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; padding: 0 16px 18px; }
.locker-room-dashboard > div { overflow: hidden; border: 1px solid #dce3ea; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(20,36,52,.05); }
.locker-room-dashboard .player-talks-heading { margin: 0 14px; }
.locker-room-hierarchy { display: grid; gap: 7px; padding: 2px 14px 14px; }
.locker-room-leader { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border-radius: 11px; background: #f6f8fb; }
.locker-room-leader > div:first-child { display: grid; gap: 2px; }
.locker-room-leader span { color: #7857db; font-size: 9px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.locker-room-leader small { color: var(--muted); }
.locker-room-leader-scores { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.locker-room-leader-scores b,.locker-room-leader-scores em { padding: 5px 7px; border-radius: 7px; background: #e9eef5; color: #45586c; font-size: 9px; font-style: normal; }
.team-meeting-panel { display: grid; gap: 10px; padding: 2px 14px 14px; }
.team-meeting-status { display: grid; gap: 2px; padding: 11px; border-radius: 10px; background: #f0f3f7; }
.team-meeting-status.is-ready { background: #edf8f2; color: #17633d; }
.team-meeting-status span { color: var(--muted); font-size: 11px; }
.team-meeting-options { display: grid; gap: 7px; }
.team-meeting-options button { display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #dce3ea; border-radius: 10px; background: #fafbfc; color: #25384c; text-align: left; cursor: pointer; }
.team-meeting-options button:not(:disabled):hover { border-color: #9278df; background: #f6f2ff; }
.team-meeting-options button:disabled { cursor: not-allowed; opacity: .55; }
.team-meeting-options button span { color: #7857db; font-size: 9px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.team-meeting-options button small { color: var(--muted); line-height: 1.35; }
.team-meeting-history { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid #e2e7ed; color: var(--muted); font-size: 10px; }
@media(max-width:900px){.locker-room-dashboard{grid-template-columns:1fr}}
@media(max-width:760px){.player-talks-header{align-items:stretch;flex-direction:column;padding:19px}.player-talks-header button{width:100%}.player-talks-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.player-talks-heading{align-items:flex-start;flex-direction:column;margin:0 10px}.player-talks-heading p{text-align:left}.player-talks-grid{grid-template-columns:1fr;padding:0 10px 14px}.player-talks-archive{padding:0 10px 14px}.player-talk-archive-card{grid-template-columns:1fr}.player-talk-impact{justify-content:flex-start}.locker-room-dashboard{padding:0 10px 14px}.locker-room-leader{align-items:flex-start;flex-direction:column}.locker-room-leader-scores{justify-content:flex-start}.locker-room-team-picker{padding:10px}.locker-room-team-picker label{width:100%}.team-meeting-history{flex-direction:column}}
.office-nav-panel { padding: .55rem; position: sticky; top: 0; z-index: 18; backdrop-filter: blur(16px); }
.office-tabs { margin: 0; }
.draft-command-center, .scouting-office { display: grid; gap: 1rem; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,245,249,.96)); }
.draft-hero { display: flex; justify-content: space-between; gap: 1.25rem; align-items: flex-start; padding: 1.35rem; border-radius: 22px; color: #fff; background: radial-gradient(circle at 85% 0, rgba(56,189,248,.35), transparent 32%), linear-gradient(135deg,#071a2c,#123b5d 58%,#087f8c); box-shadow: 0 18px 38px rgba(7,26,44,.2); }
.draft-hero h2 { margin: .15rem 0; font-size: clamp(1.8rem,4vw,2.8rem); }
.draft-hero p { margin: .25rem 0 0; max-width: 660px; color: rgba(255,255,255,.78); }
.draft-hero .eyebrow { color: #67e8f9; }
.draft-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.draft-status-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(250px,1fr); gap: 1rem; }
.draft-status-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; }
.draft-status-metrics .metric, .draft-lottery-podium { padding: 1rem; border: 1px solid #dbe4ee; border-radius: 18px; background: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.06); }
.draft-status-metrics .metric { display: flex; flex-direction: column; gap: .25rem; }
.draft-status-metrics .metric span, .draft-lottery-title { color: #64748b; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.draft-status-metrics .metric strong { font-size: 1.12rem; color: #0f172a; }
.draft-turn-metric { position: relative; padding-left: 4.3rem !important; }
.draft-metric-logo { position: absolute; left: .8rem; top: 50%; width: 2.8rem; height: 2.8rem; transform: translateY(-50%); object-fit: contain; }
.draft-lottery-podium { display: grid; align-content: center; gap: .65rem; }
.draft-podium { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.draft-podium-place { min-height: 70px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .4rem; padding: .55rem; border-radius: 14px; background: #f1f5f9; }
.draft-podium-place b { color: #0e7490; font-size: 1.15rem; }
.draft-podium-logo { width: 42px; height: 42px; object-fit: contain; }
.draft-logo-fallback { font-weight: 900; color: #334155; }
.draft-live-board { display: grid; gap: .8rem; }
.draft-board-current { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 18px; background: #0f172a; color: #fff; }
.draft-board-current .draft-board-logo { width: 58px; height: 58px; object-fit: contain; }
.draft-logo-strip { display: grid; grid-template-columns: repeat(10,minmax(52px,1fr)); gap: .45rem; overflow-x: auto; padding-bottom: .25rem; }
.draft-logo-pick { display: grid; place-items: center; gap: .2rem; min-width: 52px; padding: .55rem .25rem; border: 1px solid #dbe4ee; border-radius: 13px; background: #fff; font-size: .7rem; color: #64748b; }
.draft-logo-pick img { width: 34px; height: 34px; object-fit: contain; }
.draft-plan-card, .draft-class-card { padding: 1.1rem; border: 1px solid #dbe4ee; border-radius: 20px; background: #fff; }
.draft-section-heading h3 { margin: .1rem 0; font-size: 1.35rem; }
.draft-section-heading span { color: #0891b2; font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.draft-section-heading p { margin: .25rem 0 .9rem; color: #64748b; }
.draft-pick-plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: .75rem; margin-top: .85rem; }
.draft-pick-plan { border: 1px solid #dbe4ee; border-radius: 16px; overflow: hidden; background: #f8fafc; }
.draft-pick-plan.is-active { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,.12); }
.draft-pick-plan-head { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: .15rem .5rem; padding: .8rem; border: 0; text-align: left; background: transparent; color: #0f172a; }
.draft-pick-plan-head span { color: #0891b2; font-weight: 900; }.draft-pick-plan-head small { grid-column: 1/-1; color: #64748b; }
.draft-priority-stack { display: grid; gap: .35rem; padding: 0 .65rem .65rem; }
.draft-priority-stack p { margin: .25rem; color: #64748b; font-size: .85rem; }
.draft-priority-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: .45rem; padding: .45rem; border-radius: 10px; background: #fff; }
.draft-priority-row > span { display: grid; font-weight: 750; }.draft-priority-row small { color: #64748b; }.icon-button { border: 0; background: #e2e8f0; border-radius: 7px; min-width: 26px; min-height: 26px; }
.draft-prospect-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: .75rem; margin-top: .8rem; }
.draft-prospect-card { display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; padding: 1rem; border: 1px solid #dbe4ee; border-radius: 16px; background: linear-gradient(145deg,#fff,#f8fafc); box-shadow: 0 7px 18px rgba(15,23,42,.05); }
.draft-class-filters { margin-bottom: .4rem; }
@media (max-width: 780px) { .draft-hero { flex-direction: column; }.draft-hero-actions { justify-content: flex-start; }.draft-status-grid { grid-template-columns: 1fr; }.draft-status-metrics { grid-template-columns: repeat(2,1fr); }.draft-logo-strip { grid-template-columns: repeat(10,58px); }.office-nav-panel { overflow-x: auto; } }
