/* Team-first layout. Existing scoring and state controls are reused unchanged. */
.team-workspace [hidden] { display: none !important; }
.player-opponent {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.team-workspace { background: var(--bg); }
.team-workspace .topbar { position: static; background: var(--bg); }
.team-workspace .public-hero { display: none; }
.team-workspace .brand-mark { display: none; }
.workspace-brand-icon { display: block; flex: 0 0 auto; }
.team-workspace .topbar { padding: 0 clamp(16px,3vw,36px); flex-wrap: wrap; justify-content: flex-start; }
.team-workspace .brand { order: 0; padding: 12px 0; }
.team-workspace .brand .sub { display: none; }
.team-workspace .brand h1, .team-workspace .brand-name { font-size: 24px; }
.team-workspace .file-actions { order: 2; margin-left: auto; }
.team-workspace .language-picker { order: 3; margin-left: auto; }
.workspace-tabs { order: 1; display: flex; gap: 14px; padding: 0; margin-left: 24px; }
.workspace-tabs button { border: 0; border-radius: 0; border-bottom: 3px solid transparent; padding: 24px 10px; background: transparent; color: var(--muted); font-weight: 650; font-size: 15px; }
.workspace-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--text); }
.team-workspace .wrap { max-width: 1600px; }
.workspace-heading { font-size: clamp(28px,3.2vw,44px); margin: 22px 0 8px; line-height: 1.15; }
.workspace-intro { margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.workspace-data-notice { font-size: 13px; line-height: 1.55; color: var(--warn); padding: 8px 0; display: grid; gap: 4px; }
.workspace-status-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.workspace-status-row .workspace-disclosure { margin: 0; border: 0; background: transparent; }
.workspace-status-row .workspace-disclosure > summary { padding: 0; color: var(--muted); min-height: 28px; }
.workspace-status-row .workspace-disclosure > :not(summary) { margin: 8px 0; max-width: 760px; overflow-wrap: anywhere; }
.workspace-data-notice p { margin: 0; }
.workspace-projection-meta { color: var(--text); font-weight: 650; }
.workspace-source-freshness { color: var(--muted); }
.workspace-critical-warnings { color: var(--warn); font-weight: 600; }
.team-workspace:has(#publishedStatus) .file-actions { display: none; }
.team-workspace .topbar { gap: 16px; }
.team-workspace #publishedStatus { margin: 0; }
.workspace-summary { grid-area: summary; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 10px; padding: 20px 0; background: var(--panel); }
.workspace-summary > div { display: grid; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); }
.workspace-summary > div:last-child { border: 0; }
.workspace-summary span { color: var(--muted); font-size: 14px; }
.workspace-summary strong { font-size: 26px; }
.workspace-columns { display: grid; grid-template-columns: minmax(0,2fr) minmax(300px,1fr); grid-template-areas: "summary recommendations" "lineup recommendations"; gap: 20px; align-items: start; }
.workspace-lineup { grid-area: lineup; }
.workspace-recommendations { grid-area: recommendations; }
.workspace-lineup, .workspace-recommendations { min-width: 0; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.workspace-plan-intro { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.workspace-budget { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.workspace-budget input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; font-size: 16px; }
.workspace-import-note, .workspace-privacy-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.workspace-import-note { margin-top: 8px !important; }
.workspace-privacy-note { border-top: 1px solid var(--line); padding-top: 16px; }
#workspaceImportPlan { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 14px; }
.workspace-transfer-limit { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.workspace-transfer-limit input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; font-size: 16px; }
.workspace-recommendations .workspace-transfer-help { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.workspace-lineup-head h3, .workspace-recommendations > h3 { margin: 0 0 12px; font-size: 20px; }
.team-workspace .team-group { border: 0; background: transparent; padding: 0; }
.team-workspace .team-slot { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 8px 0; }
.team-workspace .team-group h3 { font-size: 13px; }
.team-workspace .slot-card-name { font-size: 14px; }
.team-workspace .slot-card {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.team-workspace .slot-card-main { flex: 1 1 auto; width: 100%; }
.team-workspace .slot-card-identity { align-items: center; }
.team-workspace .slot-card-team { flex-wrap: nowrap; flex-shrink: 0; }
.team-workspace .slot-card-club,
.team-workspace .slot-card-turn { font-size: 11px; }
.team-workspace .slot-card-stats { font-size: 12px; }
.team-workspace .slot-card-actions { justify-content: flex-start; }
.team-workspace .slot-card-actions button { font-size: 12px; }
.team-workspace .lineup-empty-hint { margin: 0 0 8px; color: var(--muted); }
.team-workspace .slot-picker input[type="text"] { font-size: 14px; }
.team-workspace .slot-meta { font-size: 12px; }
.team-workspace .optimization-meta { text-align: left; font-size: 13px; line-height: 1.5; }
.team-workspace .budget-line { display: none; }
.workspace-lineup-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.workspace-lineup .team-grid { padding: 16px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.workspace-lineup .team-section { min-width: 0; }
.team-workspace .lineup-role-editor { margin: 0; padding: 0; background: transparent; border: 0; }
.team-workspace .lineup-role-editor h3 { font-size: 14px; color: var(--muted); font-weight: 500; }
.team-workspace .lineup-role-editor p { font-size: 13px; }
.team-workspace .lineup-role-editor label { font-size: 12px; }
.team-workspace .starting-plan { position: relative; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; }
.team-workspace .starting-plan .insight-disclosure { position: absolute; top: 20px; right: 14px; width: 200px; margin: 0; }
.team-workspace .starting-plan .insight-disclosure[open] { position: static; width: auto; margin-top: 10px; }
/* Keep occupied cards consistent while filling a squad; empty onboarding retains its grid. */
.workspace-lineup .team-grid.has-squad { grid-template-columns: minmax(0,1fr); }
.team-workspace .has-squad .team-slot { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg); }
.team-workspace .has-squad .slot-card-pos { display: none; }
.team-workspace .has-squad .team-slot:has(.role-swap-panel) { border-left: 4px solid var(--accent); background: var(--panel); }
.team-workspace .has-squad .slot-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; align-items: center; }
.team-workspace .has-squad .slot-card-main { grid-column: 1; min-width: 0; }
.team-workspace .has-squad .slot-card-actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
.team-workspace .has-squad .team-slot[data-mode="empty"] { border-style: dashed; }
.team-workspace .has-squad .team-slot[data-mode="empty"] .slot-card-actions { justify-content: flex-start; grid-column: 1 / -1; }
.team-workspace .has-squad .team-slot[data-mode="empty"] .slot-add { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.slot-role-controls { display: flex; gap: 5px; }
.team-workspace .slot-role-controls button { min-height: 40px; padding: 8px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.team-workspace .slot-role-controls button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: rgba(255,107,69,.14); opacity: 1; }
.team-workspace .slot-role-controls button.is-role-pending { border: 1px dashed var(--accent); color: var(--accent); }
.role-swap-panel { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; outline-offset: 4px; }
.role-swap-panel h4 { margin: 0 0 8px; font-size: 14px; }
.role-swap-panel > p { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.role-swap-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px; }
.role-swap-layout fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.role-swap-layout legend { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.role-swap-choice { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 6px; cursor: pointer; min-height: 44px; }
.role-swap-choice:has(input:checked) { border-color: var(--accent); background: rgba(255,107,69,.08); }
.role-swap-choice:has(input:disabled) { cursor: default; }
.role-swap-choice input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); color-scheme: dark; }
.role-swap-choice > span { display: grid; gap: 5px; min-width: 0; }
.role-swap-choice strong { font-size: 13px; overflow-wrap: anywhere; }
.role-swap-choice span span { color: var(--muted); font-size: 12px; }
.role-swap-result { border-left: 1px solid var(--line); padding-left: 20px; font-size: 13px; overflow-wrap: anywhere; }
.role-swap-result p { line-height: 1.5; }
.role-swap-actions { display: flex; gap: 8px; margin-top: 10px; }
.team-workspace .role-swap-actions button { min-height: 44px; }
.team-workspace .role-swap-confirm { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.team-workspace .role-swap-confirm:disabled { background: var(--line); border-color: var(--line); color: var(--muted); opacity: 1; }
.lineup-role-status { font-size: 13px; color: var(--muted); }
.lineup-role-status:empty { display: none; }
@media (min-width: 1400px) {
  .team-workspace .has-squad .slot-card { grid-template-columns: minmax(0,1fr) auto auto; }
  .team-workspace .has-squad .slot-card-actions { grid-column: 3; }
}
@media (max-width: 700px) {
  .team-workspace .starting-plan .insight-disclosure { position: static; width: auto; margin-top: 10px; }
  .team-workspace .has-squad .slot-card { grid-template-columns: minmax(0,1fr); }
  .slot-role-controls { width: 100%; }
  .team-workspace .slot-role-controls button { min-height: 44px; flex: 1 1 0; white-space: normal; }
  .role-swap-layout { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .role-swap-result { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
}
.workspace-columns[data-empty="true"] .team-group { padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.workspace-columns[data-empty="true"] .team-slot[data-mode="empty"] { padding: 4px 8px; margin-bottom: 6px; }
.workspace-columns[data-empty="true"] .team-slot[data-mode="empty"] .slot-card { min-height: 36px; }
.workspace-columns[data-empty="true"] .slot-card-main { display: none; }
.workspace-columns[data-empty="true"] .slot-card-actions, .workspace-columns[data-empty="true"] .slot-add { width: 100%; }
.workspace-columns[data-empty="true"] .slot-add { min-height: 36px; }
.workspace-columns[data-empty="true"] .lineup-empty-hint { display: none; }
.workspace-lineup .budget-line { margin-top: 20px; }
.workspace-save-team {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.workspace-save-team > h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
}
.team-workspace #teamPlans { padding: 0; }
.workspace-recommendations > * + * { margin-top: 16px; }
.workspace-recommendations .optimize-button { width: 100%; font-size: 16px; padding: 14px; }
.team-workspace .roster-objective-controls { display: grid; gap: 8px; }
.team-workspace .roster-objective-controls label { color: var(--muted); font-size: 13px; font-weight: 650; }
.team-workspace #turnFlexMode, .team-workspace #turnFPLoss { width: 100%; }
.team-workspace .starting-plan { margin-top: 12px; }
.team-workspace .starting-plan #startingPlanLabel {
  display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 750;
}
.team-workspace .starting-plan-row { display: flex; flex-wrap: wrap; gap: 8px; }
.team-workspace .starting-plan-row button {
  min-width: 44px; min-height: 40px; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); background: transparent; font-size: 13px; font-weight: 800;
}
.team-workspace .starting-plan-row button[aria-pressed="true"] {
  border-color: var(--accent); color: var(--text); background: var(--accent-soft);
}
.workspace-alerts { color: var(--warn); font-size: 14px; line-height: 1.6; }
.workspace-disclosure { border: 1px solid var(--line); border-radius: 6px; margin-top: 22px; background: var(--panel); }
.workspace-disclosure > summary { padding: 18px; font-weight: 650; cursor: pointer; }
.workspace-disclosure > :not(summary) { margin: 16px; }
#page-players > .workspace-disclosure:first-child { margin: 0 0 22px; }
.workspace-preview { border-top: 1px solid var(--line); padding-top: 12px; }
.workspace-preview-banner { font-weight: 700; color: var(--text); }
.workspace-preview-current { color: var(--muted); font-size: 13px; }
.workspace-preview-proposed { color: var(--text); font-size: 14px; font-weight: 650; }
.workspace-preview ul { padding-left: 20px; font-size: 14px; line-height: 1.8; }
.workspace-preview .proposed-change { font-weight: 650; }
.workspace-preview .proposed-kept { color: var(--muted); }
.workspace-preview button { margin: 6px 6px 0 0; }
#applyOptimization { background: var(--accent); color: #151515; font-weight: 700; }
.team-workspace { overflow-x: hidden; }
.team-workspace .wrap, .team-workspace .workspace-page, .team-workspace .explorer { min-width: 0; max-width: 100%; }
.team-workspace .explorer { width: 100%; }
.team-workspace .table-wrap { max-height: 540px; overflow: auto; }
/* Keep pool identities readable without changing shared lineup/detail badges. */
.team-workspace #tbody td.player-col { white-space: normal; overflow-wrap: anywhere; }
.team-workspace #tbody .player-col .drawing-player-identity {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 2px 4px;
}
.team-workspace #tbody .player-col .drawing-player-label {
  flex: 0 0 100%;
  white-space: normal;
  line-height: 1.35;
  overflow: visible;
  text-overflow: unset;
}
.team-workspace #tbody .player-col button.drawing-badge { margin: 0; }
.team-workspace .team-slot[data-mode="empty"] {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 10px 12px;
  margin: 0 0 8px;
}
.team-workspace .team-slot[data-mode="empty"] .slot-card { min-height: 48px; align-items: center; }
.team-workspace .starting-plan .insight-disclosure { margin-top: 8px; }
.team-workspace #dataStatus { margin: 0; padding: 12px 16px; }
.team-workspace #dataStatus .insight-status-line { font-size: 13px; }
.team-workspace #dataStatus p { font-size: 12px; margin: 6px 0; }
.team-workspace .file-actions { max-width: 55%; flex-wrap: wrap; }
.team-workspace #publishedStatus { max-width: 520px; overflow-wrap: anywhere; font-size: 12px; }
.team-workspace #workspaceAdvanced .optimize-action { max-width: 900px; }
.team-workspace #playerDetails .player-detail { padding: 0; }
.team-workspace #playerDetails .metric-value { white-space: normal; overflow: visible; text-overflow: unset; overflow-wrap: anywhere; }
.team-workspace #playerDetails .horizon-tipoff { overflow-wrap: normal; }
.team-workspace #transferPlanner { padding: 20px; border: 1px solid var(--line); background: var(--panel); }
#page-games > .workspace-heading { margin-top: 8px; }
#page-games > .workspace-intro { margin-bottom: 12px; }
.game-outlook { display: grid; grid-template-columns: minmax(360px, 0.68fr) minmax(0, 1fr); gap: 32px; margin-top: 8px; border-top: 1px solid var(--line); }
.game-outlook.is-empty { grid-template-columns: 1fr; }
.game-fixtures { min-width: 0; padding-top: 18px; }
.game-fixtures-title { font-size: 18px; margin: 0 0 6px; }
.game-fixtures-note { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 18px; }
.game-outlook-group { display: grid; gap: 0; }
.game-outlook-group + .game-outlook-group { margin-top: 20px; }
.game-outlook-group h4 { margin: 0 0 4px; font-size: 16px; }
.team-workspace .game-fixture { width: 100%; display: grid; grid-template-columns: 60px minmax(0, 1fr) 18px; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; color: var(--text); font-size: 14px; font-weight: 500; }
.team-workspace .game-fixture:hover { background: var(--panel-strong); }
.team-workspace .game-fixture[aria-pressed="true"] { border-radius: 8px; background: #231b1a; box-shadow: inset 4px 0 var(--accent); }
.game-fixture[aria-pressed="true"] > .workspace-icon { filter: sepia(1) saturate(4); }
.game-fixture-time { color: var(--muted); font-size: 13px; line-height: 1.5; white-space: normal; max-width: 60px; }
.game-fixture-teams { display: grid; gap: 4px; min-width: 0; }
.game-fixture-team { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.game-fixture-side { color: var(--muted); font-size: 11px; width: 60px; flex: 0 0 60px; overflow-wrap: anywhere; }
.game-fixture-name { overflow-wrap: anywhere; }
.game-fixture-team strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.game-fixture-team .is-favored { color: var(--accent); font-weight: 750; }
.game-fixture > .workspace-icon { width: 18px; height: 18px; }
.game-detail { min-width: 0; padding: 22px 0 0 30px; border-left: 1px solid var(--line); scroll-margin-top: 20px; }
.game-detail-title { margin: 0 0 12px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 800; letter-spacing: -0.025em; }
.game-detail-when { color: var(--muted); margin: 0 0 24px; line-height: 1.5; font-size: 15px; }
.game-forecast { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-detail h4 { font-size: 19px; margin: 0 0 16px; }
.game-chance-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-chance-name { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; font-size: 15px; }
.game-side-label { color: var(--muted); font-size: 12px; }
.game-chance-number { display: block; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; margin-bottom: 10px; overflow-wrap: anywhere; }
.game-chance-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 8px; }
.game-estimate-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.game-estimate-note .workspace-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.game-players { padding-top: 24px; }
.game-player-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.team-workspace .game-player-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: auto; font-size: 14px; }
.team-workspace .game-player-table th, .team-workspace .game-player-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: normal; overflow-wrap: anywhere; }
.team-workspace .game-player-table th { position: static; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 600; }
.team-workspace .game-player-table th, .team-workspace .game-player-table tr { cursor: default; }
.team-workspace .game-player-table th:first-child, .team-workspace .game-player-table td:first-child { position: static; width: 30%; min-width: 0; max-width: none; background: transparent; box-shadow: none; }
.team-workspace .game-player-table th:first-child { background: var(--panel); }
.team-workspace .game-player-table th:nth-last-child(-n+2) { text-align: right; }
.team-workspace .game-player-table td:nth-last-child(-n+2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.team-workspace .game-player-table tr:last-child td { border-bottom: 0; }
.team-workspace .game-view-players { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; min-height: 48px; margin-top: 18px; background: var(--accent); color: #fff; font-weight: 750; }
.game-assumptions { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.game-assumptions summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; font-size: 14px; }
.game-assumptions p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
.game-assumptions .workspace-icon { flex: 0 0 auto; }
.team-workspace .game-back-fixtures { display: none; }
@media (max-width: 1100px) and (min-width: 801px) {
  .game-outlook { grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1fr); gap: 20px; }
  .game-detail { padding-left: 20px; }
  .team-workspace .game-player-table th, .team-workspace .game-player-table td { padding: 12px 6px; }
}
@media (max-width: 800px) {
  .game-outlook { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 20px; }
  .game-detail { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .team-workspace .game-back-fixtures { display: block; margin-bottom: 20px; min-height: 44px; }
  .game-chance-columns { gap: 16px; }
}
@media (max-width: 480px) {
  .game-fixture-side { width: 52px; flex-basis: 52px; font-size: 10px; }
  .team-workspace .game-fixture { grid-template-columns: 46px minmax(0, 1fr) 16px; gap: 8px; padding: 10px 8px; }
  .game-fixture-team { gap: 4px 6px; }
  .team-workspace .game-player-table th, .team-workspace .game-player-table td { padding: 12px 6px; font-size: 12px; }
  .game-view-players { width: 100%; }
}
.game-outlook-card { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.game-outlook-title, .game-outlook-chances { display: flex; justify-content: space-between; gap: 12px; }
.game-outlook-title span, .game-outlook-chances span { min-width: 0; }
.game-outlook-title span:last-child, .game-outlook-chances span:last-child { text-align: right; }
.game-outlook-chances .is-favored { font-weight: 700; }
.game-outlook-when, .game-outlook-unavailable, .game-outlook-sum { margin: 0; color: var(--muted); font-size: 13px; }
.game-outlook-bar { display: flex; height: 10px; overflow: hidden; border-radius: 99px; background: var(--line); }
.game-outlook-home { background: var(--accent); }
.game-outlook-away { background: #a1b0d5; }
/* Selected Round Ready reference: artwork, outlined groups and integrated controls. */
.team-workspace { font-family: "RoundCraft Inter", Inter, ui-sans-serif, system-ui, sans-serif; --muted: #b0bfd9; }
.team-workspace main { position: relative; isolation: isolate; }
.team-workspace main > :not(#workspaceCourtArt) { position: relative; z-index: 1; }
#workspaceCourtArt { position: absolute; z-index: 0; right: 0; top: 0; width: 57%; height: 194px; object-fit: cover; object-position: right center; pointer-events: none; }
.workspace-icon { display: block; flex: 0 0 auto; width: 24px; height: 24px; }
.workspace-heading { font-size: clamp(28px,3.35vw,48px); font-weight: 800; margin: 22px 0 8px; letter-spacing: -0.025em; }
.workspace-intro { font-size: 20px; margin-bottom: 22px; }
.workspace-projection-meta { color: var(--muted); font-size: 12px; }
.workspace-status-row { gap: 24px; align-items: flex-start; }
.workspace-status-row .workspace-disclosure { padding-left: 24px; border-left: 1px solid var(--line); border-radius: 0; }
.workspace-status-row .workspace-disclosure > summary { display: flex; align-items: center; gap: 6px; color: var(--accent); min-height: 24px; }
.workspace-status-row .workspace-disclosure > summary::-webkit-details-marker { display: none; }
.workspace-status-row .workspace-disclosure > summary .workspace-icon { width: 16px; height: 16px; }
.workspace-coverage { font-size: 12px; }
.workspace-summary { min-height: 96px; padding: 20px 0; box-sizing: border-box; border-radius: 8px; }
.workspace-summary > div { display: flex; align-items: center; gap: 18px; padding: 0 28px; }
.workspace-summary > div > .workspace-icon { width: 32px; height: 32px; }
.workspace-stat-text { display: grid; gap: 4px; min-width: 0; }
.workspace-summary span { font-size: 13px; }
.workspace-stat-figure { display: flex; white-space: pre; }
.workspace-summary strong { font-size: 28px; font-weight: 800; }
.workspace-lineup { padding: 22px; border-radius: 8px; }
.workspace-lineup-head h3 { margin: 0; font-size: 24px; font-weight: 800; }
.workspace-lineup-head button { display: flex; align-items: center; gap: 12px; color: #94bffa; padding: 10px 14px; font-size: 13px; }
.workspace-lineup-head button .workspace-icon { width: 20px; height: 20px; }
.workspace-lineup > .insight-note { margin: 8px 0 0; font-size: 15px; }
.workspace-lineup .team-grid { gap: 16px; padding: 20px 0 18px; }
.team-workspace .team-group h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text); }
.team-workspace .workspace-group-count { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.workspace-columns[data-empty="true"] .team-group { padding: 18px; background: #111925; }
.workspace-columns[data-empty="true"] .team-slot-list { gap: 8px; }
.workspace-columns[data-empty="true"] .team-slot[data-mode="empty"] { padding: 0; margin: 0; border: 0; background: transparent; }
.workspace-columns[data-empty="true"] .team-slot:last-child { margin-bottom: 0; }
.workspace-columns[data-empty="true"] .team-slot[data-mode="empty"] .slot-card { min-height: 0; gap: 0; }
.workspace-columns[data-empty="true"] .slot-card-actions { margin: 0; }
.workspace-columns[data-empty="true"] .slot-add { display: flex; align-items: center; justify-content: flex-start; gap: 20px; height: 42px; min-height: 42px; padding: 6px 12px; border: 1px dashed #2c3a50; border-radius: 8px; background: #0e1621; color: var(--muted); font-size: 13px; font-weight: 500; }
.workspace-add-circle { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; background: #344156; }
.workspace-add-circle .workspace-icon { width: 17px; height: 17px; }
.workspace-columns[data-empty="true"] #teamWarning { display: none; }
.workspace-lineup-tip { display: flex; align-items: center; gap: 16px; margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-strong); color: var(--muted); font-size: 13px; }
.workspace-lineup-tip .workspace-icon { width: 18px; height: 18px; }
.workspace-recommendations { padding: 28px; border-radius: 8px; }
.workspace-recommendations > h3 { font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.workspace-recommendations .workspace-plan-intro { margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.workspace-budget { gap: 6px; }
.workspace-budget-field, .workspace-objective-field { position: relative; display: flex; align-items: center; min-width: 0; }
.workspace-budget-field > .workspace-icon, .workspace-objective-field > .workspace-icon:first-child { position: absolute; left: 16px; pointer-events: none; }
.workspace-budget-field input { min-height: 52px; padding: 12px 52px; font-size: 18px; font-weight: 750; }
.workspace-budget-field > span { position: absolute; right: 16px; font-size: 14px; pointer-events: none; }
.team-workspace .workspace-objective-field #turnFlexMode { min-width: 0; width: 100%; min-height: 52px; padding: 12px 40px 12px 52px; appearance: none; font-size: 14px; }
#undoOptimization:disabled { display: none; }
.workspace-save-team:has(#undoOptimization:disabled) .workspace-changes { display: none; }
.workspace-objective-field > .workspace-icon:last-child { position: absolute; right: 12px; width: 20px; height: 20px; pointer-events: none; }
.team-workspace .roster-objective-controls label { font-size: 15px; font-weight: 500; }
.workspace-recommendations .optimize-button, #workspaceImportPlan { display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 60px; border-radius: 8px; }
.workspace-recommendations .workspace-budget { margin-top: 28px; }
.workspace-recommendations .optimize-button { position: relative; justify-content: center; margin-top: 32px; padding-left: 44px; padding-right: 44px; background: #ff6b45; color: white; font-weight: 800; }
.workspace-recommendations .optimize-button .workspace-icon { filter: brightness(0) invert(1); }
.workspace-recommendations .optimize-button span { flex: 0 1 auto; }
.workspace-recommendations .optimize-button > .workspace-icon:last-child { position: absolute; right: 20px; }
#workspaceImportPlan { min-height: 54px; padding-top: 12px; padding-bottom: 12px; font-weight: 700; font-size: 16px; text-align: left; }
#workspaceImportPlan span { flex: 1; }
.workspace-or { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; margin: 24px 0 18px !important; }
.workspace-or::before, .workspace-or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.workspace-import-note { margin: 10px 4px 24px !important; font-size: 13px; line-height: 1.6; }
.workspace-privacy-note { display: flex; align-items: center; gap: 22px; font-size: 13px; padding-top: 20px; margin-bottom: 0; }
.workspace-privacy-note .workspace-icon { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .team-workspace .topbar { flex-direction: row; align-items: center; }
  .workspace-columns { grid-template-columns: minmax(0,1fr); grid-template-areas: "summary" "recommendations" "lineup"; }
  .workspace-tabs { order: 4; width: 100%; margin-left: 0; gap: 4px; flex-wrap: wrap; justify-content: flex-start; }
  .workspace-tabs button { padding: 16px 6px; font-size: 13px; }
  .workspace-summary { padding: 14px 4px; }
  .workspace-summary > div { padding: 0 10px; }
  .workspace-summary strong { font-size: 22px; }
  .workspace-summary span { font-size: 12px; }
  .team-workspace .file-actions { max-width: 100%; }
  .workspace-summary > div { gap: 6px; }
  .workspace-summary > div > .workspace-icon { width: 22px; height: 22px; }
  .workspace-summary strong { font-size: 22px; }
  .workspace-recommendations > * + * { margin-top: 12px; }
}
@media (max-width: 560px) {
  .workspace-tabs { gap: 4px; flex-wrap: nowrap; overflow-x: auto; }
  .workspace-tabs button { padding: 14px 2px; font-size: 11px; white-space: nowrap; flex: 0 0 auto; }
  #workspaceCourtArt { width: 100%; height: 160px; opacity: 0.45; }
  .workspace-status-row .workspace-disclosure { padding-left: 0; border: 0; }
  .workspace-summary > div > .workspace-icon { display: none; }
  .workspace-summary strong { font-size: 20px; }
  .workspace-summary span { font-size: 11px; }
  .workspace-recommendations > h3, .workspace-lineup-head h3 { font-size: 22px; }
  .workspace-recommendations .workspace-budget { margin-top: 10px; }
  .workspace-recommendations .optimize-button { margin-top: 12px; min-height: 48px; padding: 8px 40px; font-size: 14px; gap: 10px; }
  .workspace-recommendations .optimize-button .workspace-icon { width: 20px; height: 20px; }
  .workspace-budget-field input, .team-workspace .workspace-objective-field #turnFlexMode { min-height: 44px; }
  .workspace-or { margin: 10px 0 !important; }
  #workspaceImportPlan { min-height: 48px; padding: 8px 12px; font-size: 13px; gap: 10px; }
  #workspaceImportPlan .workspace-icon { width: 20px; height: 20px; }
  .workspace-import-note { margin-bottom: 12px !important; font-size: 12px; }
  .workspace-privacy-note { padding-top: 12px; font-size: 12px; gap: 12px; }
  .workspace-columns { gap: 14px; }
  .workspace-recommendations .workspace-plan-intro { display: none; }
  .workspace-recommendations > * + * { margin-top: 10px; }
  .workspace-summary { min-height: 80px; padding: 10px 4px; }
  .workspace-lineup .team-grid { grid-template-columns: minmax(0,1fr); }
  .workspace-columns[data-empty="true"] .slot-add { min-height: 44px; height: 44px; }
  .workspace-lineup-head button { min-height: 44px; }
  .workspace-lineup, .workspace-recommendations { padding: 16px; }
  .workspace-lineup-head { align-items: start; }
  .team-workspace .topbar { gap: 4px 12px; }
  .team-workspace .brand h1, .team-workspace .brand-name { font-size: 20px; }
  .workspace-brand-icon { width: 32px; height: 32px; }
  .team-workspace .language-picker { gap: 0; font-size: 0; }
  .team-workspace .language-picker select { font-size: 13px; }
  .workspace-data-notice { font-size: 12px; }
  .workspace-heading { margin-top: 12px; font-size: 24px; }
  .workspace-intro { margin-bottom: 12px; font-size: 13px; line-height: 1.45; }
  .workspace-status-row { gap: 4px 12px; }
  .workspace-lineup-head button { max-width: 45%; }
}

/* Lineup board: original slot nodes and controls, grouped by the active roles. */
.board-slot-toolbar { display: none; }
.has-lineup-board .lineup-board { display: grid; gap: 24px; min-width: 0; }
.workspace-lineup .team-grid.has-lineup-board { display: block; padding: 0; }
.team-workspace .workspace-columns.has-lineup-board { grid-template-columns: minmax(0, 2.7fr) minmax(290px, 1fr); }
.has-lineup-board .board-court { padding: 20px; border: 1px solid #293950; border-radius: 12px; background-color: #0c1420; background-position: center; background-size: cover; background-repeat: no-repeat; }
.board-court-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 20px; }
.board-court-head h3 { margin: 0; font-size: 23px; }
.board-instructions { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 360px; margin: 0; }
.board-starters { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 20px 28px; padding: 12px 20px 20px; }
.board-starters > .team-slot { grid-column: span 3; }
.board-starters > .team-slot:first-child { grid-column: 3 / 5; }
.board-starters > .team-slot:nth-child(2) { grid-column: 1 / 4; }
.board-starters > .team-slot:nth-child(3) { grid-column: 4 / 7; }
.has-lineup-board .team-slot { min-width: 0; position: relative; }
.team-workspace .has-lineup-board .team-slot { padding: 12px 14px; margin: 0; background: #090e16f5; border: 1px solid #39465b; border-radius: 10px; }
.team-workspace .has-lineup-board .team-slot[data-board-role="starter"] { border-color: #9a4a35; }
.team-workspace .has-lineup-board .team-slot.captain-slot { border-color: #d6a446; }
.team-workspace .has-lineup-board .slot-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.team-workspace .has-lineup-board .slot-card-main { display: grid; gap: 7px; width: auto; flex: none; }
.has-lineup-board .slot-card-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.has-lineup-board .slot-card-name { font-size: 14px; line-height: 1.35; }
.has-lineup-board .slot-card-name .drawing-badge { display: inline-flex; }
.has-lineup-board .slot-card-team { font-size: 12px; }
.has-lineup-board .board-position { color: #c4d0e5; font-weight: 700; }
.has-lineup-board .slot-card-stats { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.has-lineup-board .slot-card-fp { font-size: 20px; color: #f6f8ff; font-weight: 800; font-variant-numeric: tabular-nums; }
.has-lineup-board .slot-card-price { font-size: 12px; }
.has-lineup-board .player-opponent { margin: 0; padding: 0; border: 0; background: transparent; font-size: 12px; }
.has-lineup-board .board-slot-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.board-role-badge { text-transform: uppercase; letter-spacing: .05em; font-size: 10px; font-weight: 750; color: #ff986f; }
[data-board-role="bench"] .board-role-badge { color: #acbad1; }
[data-board-role="sixth"] .board-role-badge { color: #8dd9e0; }
.board-captain { color: #ffda77; font-weight: 800; font-size: 12px; }
.team-workspace .board-drag { touch-action: none; min-height: 36px; min-width: 40px; padding: 5px; cursor: grab; margin: -5px -6px -5px auto; border-color: transparent; }
.board-drag .workspace-icon { width: 20px; height: 20px; }
.team-workspace .board-drag:disabled { opacity: .25; cursor: default; }
.team-workspace .board-drag[aria-pressed="true"] { cursor: grabbing; }
.team-workspace .has-lineup-board .slot-card-actions { display: flex; justify-content: stretch; width: 100%; gap: 6px; flex-wrap: nowrap; }
.team-workspace .has-lineup-board .slot-replace { flex: 1 1 auto; min-height: 40px; padding: 8px; font-size: 12px; }
.board-more { position: relative; flex: 0 1 auto; min-width: 0; }
.board-more > summary, .board-role-chooser > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 12px; padding: 6px 9px; border: 1px solid #344056; border-radius: 7px; color: #c3d0e6; list-style: none; }
.board-more > summary::-webkit-details-marker, .board-role-chooser > summary::-webkit-details-marker { display: none; }
.board-more-menu { position: absolute; z-index: 8; right: 0; top: calc(100% + 5px); width: max-content; max-width: 240px; padding: 8px; border: 1px solid #43516b; border-radius: 8px; background: #151e2e; box-shadow: 0 8px 24px #0009; }
.team-workspace .board-more-menu button { display: flex; width: 100%; min-height: 44px; font-size: 13px; margin: 4px 0; }
.board-role-chooser { width: 100%; }
.has-lineup-board .board-role-chooser > summary { min-height: 34px; border: 0; justify-content: flex-start; padding: 0; color: #b8c9e4; }
.has-lineup-board .slot-role-controls { flex-wrap: wrap; }
.team-workspace .has-lineup-board .slot-role-controls button { min-height: 44px; flex: 1; font-size: 12px; }
.board-availability { color: #ffc178; font-size: 12px; }
.board-reserves { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,3fr) minmax(0,1fr); gap: 16px; }
.board-reserve-section { min-width: 0; }
.board-reserve-section h3 { font-size: 14px; margin: 0 0 10px; color: #c1cfe4; }
.board-reserve-slots { display: grid; gap: 10px; }
.board-bench .board-reserve-slots { grid-template-columns: repeat(2,minmax(0,1fr)); }
.board-reserves .team-slot { height: 100%; }
.board-reserves .slot-card-fp { font-size: 18px; }
.board-preview:empty, .board-status:empty { display: none; }
.board-preview .role-swap-panel { background: #111a28; border: 1px solid #ac5a3e; border-radius: 10px; padding: 20px; margin: 0; }
.board-status { color: var(--muted); font-size: 13px; margin: 0; }
.team-workspace .has-lineup-board .team-slot.is-drop-target { border: 2px dashed #75c5b9; }
.team-workspace .has-lineup-board .team-slot.is-drop-hover { border: 2px solid #94f2d2; background: #13332f; }
.team-workspace .has-lineup-board .team-slot.is-drag-source { opacity: .6; }
.has-lineup-board summary:focus-visible, .has-lineup-board button:focus-visible { outline: 2px solid #ffb28d; outline-offset: 3px; }
@media (max-width: 1200px) {
  .board-starters { padding: 0; gap: 16px; }
  .board-starters > .team-slot:first-child { grid-column: 2 / 6; }
  .board-reserves { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
  .board-coach { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .team-workspace .workspace-columns.has-lineup-board { grid-template-columns: minmax(0,1fr); grid-template-areas: "summary" "lineup" "recommendations"; }
  .has-lineup-board .board-court { padding: 16px; }
  .board-reserves { grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,1fr); }
  .board-coach { grid-column: auto; }
}
@media (max-width: 600px) {
  .team-workspace .workspace-lineup:has(.has-lineup-board) { padding: 0; background: transparent; border: 0; }
  .board-court-head { display: block; margin-bottom: 12px; }
  .board-court-head h3 { font-size: 20px; margin-bottom: 6px; }
  .board-instructions { font-size: 12px; }
  .has-lineup-board .board-court { padding: 12px 8px; }
  .board-starters { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 8px; }
  .board-starters > .team-slot:nth-child(n) { grid-column: span 2; }
  .board-starters > .team-slot:last-child { grid-column: 2 / 4; }
  .team-workspace .has-lineup-board .team-slot { padding: 10px 9px; }
  .has-lineup-board .slot-card-name { font-size: 13px; }
  .has-lineup-board .slot-card-fp { font-size: 18px; }
  .team-workspace .has-lineup-board .slot-card-actions { flex-wrap: wrap; }
  .board-more > summary { min-height: 44px; font-size: 11px; }
  .team-workspace .has-lineup-board .slot-replace { min-height: 44px; }
  .has-lineup-board .board-role-chooser > summary { min-height: 44px; }
  .board-reserves { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .board-sixth .board-reserve-slots, .board-coach .board-reserve-slots { grid-template-columns: minmax(0,1fr); }
  .board-bench .board-reserve-slots { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board-reserve-section h3 { font-size: 16px; }
  .board-drag { min-height: 44px !important; }
}

/* Compact visual hierarchy: secondary commands live behind More actions. */
.has-lineup-board .board-slot-toolbar { min-height: 26px; }
.has-lineup-board .slot-card-identity { flex-direction: row; align-items: center; }
.has-lineup-board .slot-card-name { width: 100%; }
.has-lineup-board .slot-card { gap: 6px !important; }
.has-lineup-board .slot-card-main { gap: 5px !important; }
.has-lineup-board .board-more-menu .board-role-chooser { margin-bottom: 8px; }
.board-more-menu .board-role-chooser > summary { min-height: 44px; padding: 8px; }
.has-lineup-board .board-more-menu .slot-role-controls { flex-direction: column; }
.has-lineup-board .board-more-menu .slot-role-controls button { width: 100%; }
@media (min-width: 1201px) {
 .board-starters { padding: 0 30px 8px; gap: 18px 40px; }
 .board-starters > .team-slot:first-child { grid-column: 2 / 6; justify-self: center; width: 100%; max-width: 300px; }
 .board-starters > .team-slot:nth-child(n+2) { max-width: 320px; width: 100%; justify-self: center; }
}

/* Put the squad on screen before explanatory/setup content. */
.board-page-header { display: grid; grid-template-columns: minmax(220px,1fr) minmax(0,1.4fr); align-items: center; gap: 24px; margin: 16px 0 20px; }
.board-page-header .workspace-heading { font-size: 34px; margin: 0 0 6px; }
.board-page-header .workspace-intro { font-size: 14px; margin: 0; }
.board-page-header .workspace-summary { grid-area: auto; padding: 14px 0; }
.board-page-header .workspace-summary > div { padding: 0 16px; }
.board-page-header .workspace-summary strong { font-size: 23px; }
.board-page-header .workspace-summary span { font-size: 12px; }
.team-workspace .workspace-columns.board-page-columns { grid-template-areas: "lineup recommendations"; }
.workspace-lineup:has(.has-lineup-board) { padding: 0; border: 0; background: transparent; }
.workspace-lineup:has(.has-lineup-board) .workspace-lineup-head { margin-bottom: 8px; }
.workspace-lineup:has(.has-lineup-board) .lineup-role-editor { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.workspace-lineup:has(.has-lineup-board) .lineup-role-editor-head > div { display: none; }
.workspace-lineup:has(.has-lineup-board) .starting-plan { margin: 0; padding: 0; border: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.workspace-lineup:has(.has-lineup-board) #startingPlanLabel { display: none; }
.workspace-lineup:has(.has-lineup-board) .starting-plan .insight-disclosure { position: static; width: auto; margin: 0; }
.workspace-lineup:has(.has-lineup-board) .starting-plan .insight-disclosure[open] { flex-basis: 100%; }
.workspace-lineup:has(.has-lineup-board) .workspace-lineup-tip { display: none; }
@media (max-width: 900px) {
 .board-page-header { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .team-workspace .workspace-columns.board-page-columns { grid-template-areas: "recommendations" "lineup"; }
 .team-workspace .workspace-columns.board-page-columns.has-lineup-board { grid-template-areas: "lineup" "recommendations"; }
}

.board-lineup-settings { position: relative; }
.board-lineup-settings > summary { cursor: pointer; list-style: none; border: 1px solid #344056; border-radius: 8px; padding: 11px 12px; min-height: 44px; font-size: 13px; color: #c3d0e6; }
.board-lineup-settings > summary::-webkit-details-marker { display: none; }
.board-lineup-settings[open] > #lineupRoleEditor { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); width: min(480px,calc(100vw - 40px)); max-height: 70vh; overflow: auto; padding: 20px; border: 1px solid #40506c; border-radius: 10px; background: #111a28; box-shadow: 0 12px 32px #0009; }
.workspace-lineup-head > h3 { margin-right: auto; }
@media (max-width: 600px) {
 .workspace-lineup-head { gap: 8px; flex-wrap: wrap; }
 .workspace-lineup-head h3 { font-size: 17px; }
 .board-lineup-settings > summary { font-size: 12px; }
}

.has-lineup-board .slot-card-name { width: auto; flex: 1 1 140px; }
.has-lineup-board .slot-card-team { flex: 0 0 auto; }
@media (max-width: 600px) {
 .has-lineup-board .slot-card-name { width: 100%; flex-basis: 100%; }
}

@media (max-width: 600px) {
 .board-more-menu { position: fixed; z-index: 60; left: 16px; right: 16px; top: auto; bottom: 80px; width: auto; max-width: none; max-height: 65vh; overflow-y: auto; padding: 14px; }
}

.has-lineup-board .captain-slot .board-role-badge { display: none; }
@media (max-width: 600px) {
 .workspace-lineup:has(.has-lineup-board) .workspace-lineup-head { flex-wrap: nowrap; }
 .workspace-lineup:has(.has-lineup-board) .workspace-lineup-head > h3 { display: none; }
 .workspace-lineup:has(.has-lineup-board) .workspace-lineup-head > button, .workspace-lineup:has(.has-lineup-board) .board-lineup-settings { flex: 1 1 0; min-width: 0; }
 .board-lineup-settings > summary { display: flex; justify-content: center; }
 .team-workspace .has-lineup-board .slot-card-actions { flex-wrap: nowrap; }
 .team-workspace .has-lineup-board .slot-replace { padding: 6px 4px; min-width: 0; }
 .team-workspace .has-lineup-board .board-more > summary { padding: 6px; }
 .board-page-header .workspace-intro { display: none; }
 .board-page-header { margin-top: 8px; gap: 8px; }
}

.team-workspace:has(.lineup-board) { min-width: 0; }

.board-slot-context { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
@media (min-width: 901px) {
 .board-starters { padding-top: 18px; gap: 30px 40px; }
 .board-starters .board-slot-toolbar { position: absolute; right: 10px; top: 8px; min-height: 0; }
 .board-starters .board-role-badge { display: none; }
 .board-starters .slot-card-name { padding-right: 38px; min-height: 22px; }
 .board-starters .board-captain { max-width: 76px; font-size: 11px; }
 .board-starters .captain-slot .slot-card-name { padding-right: 76px; }
 .board-starters .board-slot-context .board-position { position: absolute; left: 0; right: 0; width: 100%; top: -21px; color: #ff986f; text-align: center; font-weight: 800; font-size: 12px; }
 .board-starters .slot-card-main { gap: 5px !important; }
 .board-starters .slot-card-fp { font-size: 19px; }
 .board-starters .slot-card-stats { justify-content: flex-start; flex-direction: row; gap: 12px; }
 .board-starters .slot-card { gap: 8px !important; }
 .board-starters .board-availability { position: absolute; left: 14px; bottom: -19px; font-size: 11px; }
}

/* Direct tile interactions (October 28 user refinements). */
.has-lineup-board .board-drag-zone { display: grid; gap: 6px; min-width: 0; width: 100%; }
.has-lineup-board .board-drag-zone[data-draggable="true"] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.board-dragging .board-drag-zone { cursor: grabbing; }
.has-lineup-board .board-slot-toolbar { position: static; display: flex; align-items: center; justify-content: flex-end; min-height: 34px; }
.has-lineup-board .board-role-badge { margin-right: auto; }
.has-lineup-board .board-quick-actions { display: flex; gap: 6px; }
.team-workspace .has-lineup-board .board-quick-actions button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 5px; border: 1px solid #45516b; border-radius: 7px; font-weight: 800; font-size: 14px; background: #152033; color: #cbd7ec; }
.board-quick-lock .workspace-icon { width: 19px; height: 19px; }
.team-workspace .has-lineup-board .board-quick-actions .board-quick-captain { font-size: 10px; padding: 2px; }
.team-workspace .has-lineup-board .board-quick-captain[aria-pressed="true"] { background: #f3c953; border-color: #ffe18b; color: #261b05; }
.team-workspace .has-lineup-board .board-quick-lock[aria-pressed="true"] { background: #a32c3e; border-color: #ff798d; color: #fff; }
.has-lineup-board .slot-card-name, .has-lineup-board .captain-slot .slot-card-name { padding-right: 0; }
.has-lineup-board .slot-card-name .drawing-badge { margin-left: 4px; width: 23px; height: 23px; min-height: 23px; min-width: 23px; padding: 2px; vertical-align: middle; }
.has-lineup-board .board-formation { display: grid; gap: 8px; font-size: 18px; font-weight: 750; min-width: 0; width: min(100%,350px); }
.has-lineup-board .board-formation select { min-height: 44px; font-size: 13px; width: 100%; }
.role-swap-choices { display: grid; gap: 8px; margin-bottom: 14px; }
.team-workspace .role-swap-choices button { display: flex; align-items: flex-start; flex-direction: column; width: 100%; min-height: 48px; text-align: left; gap: 6px; margin: 0; color: var(--text); }
.role-swap-choices button span { font-size: 12px; color: var(--muted); }
@media (min-width: 901px) {
 .has-lineup-board .board-slot-toolbar { position: absolute; top: 9px; right: 10px; }
 .has-lineup-board .board-drag-zone { padding-top: 34px; }
 .has-lineup-board .slot-card-name { min-height: 22px; }
}
@media (max-width: 600px) {
 .has-lineup-board .board-role-badge { display: none; }
 .team-workspace .has-lineup-board .board-quick-actions button { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
 .has-lineup-board .board-formation { font-size: 17px; margin-bottom: 10px; }
 .has-lineup-board .slot-card-name .drawing-badge { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
}

/* Formation-aware court: centers, forwards, guards each occupy their own row. */
.has-lineup-board .board-starters { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 28px 12px; padding: 18px 0 8px; }
.has-lineup-board .board-starters > .team-slot:nth-child(n) { width:100%; max-width:320px; justify-self:center; grid-column:4 / span 6; }
.has-lineup-board .board-starters > [data-board-position="C"] { grid-row:1; }
.has-lineup-board .board-starters > [data-board-position="F"] { grid-row:2; }
.has-lineup-board .board-starters > [data-board-position="G"] { grid-row:3; }
.has-lineup-board .board-starters > [data-row-count="2"][data-row-index="0"] { grid-column:1 / span 6; }
.has-lineup-board .board-starters > [data-row-count="2"][data-row-index="1"] { grid-column:7 / span 6; }
.has-lineup-board .board-starters > [data-row-count="3"][data-row-index="0"] { grid-column:1 / span 4; }
.has-lineup-board .board-starters > [data-row-count="3"][data-row-index="1"] { grid-column:5 / span 4; }
.has-lineup-board .board-starters > [data-row-count="3"][data-row-index="2"] { grid-column:9 / span 4; }
@media(max-width:600px) {
 .has-lineup-board .board-starters { gap:22px 6px; }
 .has-lineup-board .board-starters > [data-row-count="1"] { grid-column:3 / span 8; }
 .has-lineup-board .board-starters > [data-row-count="3"] .slot-card { padding:8px 5px; }
 .has-lineup-board .board-starters > [data-row-count="3"] .slot-card-name { font-size:11px; overflow-wrap:anywhere; }
 .has-lineup-board .board-starters > [data-row-count="3"] .slot-card-actions { flex-wrap:wrap; }
 .has-lineup-board .board-starters > [data-row-count="3"] .slot-card-actions > * { width:100%; }
 .has-lineup-board .board-starters > [data-row-count="3"] .slot-card-stats { flex-wrap:wrap; gap:3px; }
 .has-lineup-board .board-starters > [data-row-count="3"] .board-quick-actions { gap:3px; }
 .has-lineup-board .board-starters > [data-row-count="3"] .board-quick-actions button { width:36px; min-width:36px; }
}

/* Compact desktop board keeps reserve targets within reach of the court. */
@media (min-width:1100px) {
 .has-lineup-board .board-court { padding:12px; }
 .has-lineup-board .board-court-head { margin-bottom:6px; align-items:center; }
 .has-lineup-board .board-formation { font-size:14px; gap:4px; }
 .has-lineup-board .board-formation select { min-height:32px; padding:5px 8px; }
 .has-lineup-board .board-instructions { font-size:11px; max-width:300px; }
 .has-lineup-board .board-starters { gap:18px 10px; padding:14px 0 0; }
 .team-workspace .has-lineup-board .team-slot { padding:7px 8px; }
 .team-workspace .has-lineup-board .slot-card { gap:4px !important; }
 .has-lineup-board .board-drag-zone { padding-top:0; gap:3px; }
 .team-workspace .has-lineup-board .slot-card-main { gap:3px !important; }
 .has-lineup-board .slot-card-identity { gap:3px; }
 .has-lineup-board .slot-card-name { font-size:12px; line-height:1.25; min-height:28px; padding-right:63px; }
 .has-lineup-board .captain-slot .slot-card-name { padding-right:63px; }
 .has-lineup-board .board-slot-toolbar { top:6px; right:6px; }
 .team-workspace .has-lineup-board .board-quick-actions button { width:28px; height:28px; min-width:28px; min-height:28px; font-size:12px; }
 .has-lineup-board .slot-card-name .drawing-badge { width:18px; height:18px; min-width:18px; min-height:18px; }
 .has-lineup-board .slot-card-name .drawing-badge img { width:16px; height:16px; }
 .has-lineup-board .slot-card-fp, .has-lineup-board .board-starters .slot-card-fp { font-size:16px; }
 .has-lineup-board .slot-card-price, .has-lineup-board .player-opponent, .has-lineup-board .slot-card-team { font-size:10px; }
 .team-workspace .has-lineup-board .slot-replace { min-height:28px; padding:4px; font-size:11px; }
 .has-lineup-board .board-more > summary { min-height:28px; padding:3px 6px; font-size:11px; }
 .has-lineup-board .board-starters .board-slot-context .board-position { top:-16px; font-size:10px; }
 .has-lineup-board .board-reserves { grid-template-columns:minmax(0,1fr) minmax(0,4fr) minmax(0,1fr); gap:8px; margin-top:10px; }
 .has-lineup-board .board-bench .board-reserve-slots { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
 .has-lineup-board .board-coach { grid-column:auto; }
 .has-lineup-board .board-reserve-section h3 { margin-bottom:5px; font-size:12px; }
 .has-lineup-board .board-reserves .slot-card-name { padding-right:28px; font-size:11px; min-height:28px; }
 .has-lineup-board .board-reserves .board-role-badge { display:none; }
 .has-lineup-board .board-reserves .slot-card-stats { gap:3px; }
 .has-lineup-board .board-reserves .slot-card-fp { font-size:14px; }
 .has-lineup-board .board-reserves .board-slot-context { gap:3px; flex-wrap:wrap; }
}

@media (min-width:1100px) {
 .team-workspace:has(.has-lineup-board) .workspace-data-notice { padding:3px 0; }
 .board-page-header { margin:6px 0 10px; gap:12px; }
 .board-page-header .workspace-heading { font-size:27px; margin-bottom:3px; }
 .board-page-header .workspace-summary { padding:7px 0; }
 .board-page-header .workspace-summary strong { font-size:20px; }
 .workspace-lineup:has(.has-lineup-board) .workspace-lineup-head { margin-bottom:5px; }
 .workspace-lineup:has(.has-lineup-board) .workspace-lineup-head button,
 .workspace-lineup:has(.has-lineup-board) .board-lineup-settings > summary { min-height:32px; padding:5px 10px; }
 .has-lineup-board .lineup-board { gap:10px; }
 .has-lineup-board .board-reserves { margin-top:0; }
 .has-lineup-board .board-starters { row-gap:14px; }
 .has-lineup-board .slot-card-name { min-height:20px; }
}

@media (min-width:1100px) { .board-page-header .workspace-summary { min-height:60px; } }

/* Availability belongs to the player metadata, within its draggable tile. */
.has-lineup-board .board-starters .board-availability { position:static; font-size:10px; margin-left:3px; }

/* Incomplete squads recruit on the same court, without implying lineup roles. */
.has-lineup-board .board-incomplete .board-instructions { display:none; }
.has-lineup-board .board-incomplete .board-starters > [data-row-count="4"][data-row-index="0"] { grid-column:1 / span 3; }
.has-lineup-board .board-incomplete .board-starters > [data-row-count="4"][data-row-index="1"] { grid-column:4 / span 3; }
.has-lineup-board .board-incomplete .board-starters > [data-row-count="4"][data-row-index="2"] { grid-column:7 / span 3; }
.has-lineup-board .board-incomplete .board-starters > [data-row-count="4"][data-row-index="3"] { grid-column:10 / span 3; }
.has-lineup-board .board-incomplete .board-reserves { grid-template-columns:1fr; }
.has-lineup-board .board-incomplete .board-coach { max-width:320px; width:100%; justify-self:center; }
.has-lineup-board .board-incomplete .team-slot[data-mode="empty"] { min-height:110px; display:flex; align-items:center; justify-content:center; border:1px dashed #506079; }
.has-lineup-board .board-incomplete .slot-add { min-height:44px; width:100%; justify-content:center; padding:6px; font-size:12px; }
.has-lineup-board .board-incomplete .team-slot[data-mode="editing"] { grid-column:1 / -1 !important; z-index:10; }
@media(max-width:900px) {
 .has-lineup-board .board-incomplete .slot-card-name { padding-right:0; }
}

.has-lineup-board .board-incomplete .team-slot[data-mode="empty"] .board-slot-toolbar { display:none; }
.has-lineup-board .board-incomplete .captain-slot { border-color:#39465b; }
.has-lineup-board .board-incomplete .board-court-head:has(.board-formation[hidden]) { display:none; }

/* Keep starter and reserve regions stable while filling the squad. */
.has-lineup-board .board-incomplete .board-reserves { grid-template-columns:minmax(0,1fr) minmax(0,3fr) minmax(0,1fr); }
.has-lineup-board .board-incomplete .board-coach { max-width:none; }
.has-lineup-board .board-incomplete .team-slot[data-mode="empty"] { min-height:110px; }
@media(min-width:1100px) { .has-lineup-board .board-incomplete .board-reserves { grid-template-columns:minmax(0,1fr) minmax(0,4fr) minmax(0,1fr); } }
@media(max-width:900px) {
 .has-lineup-board .board-incomplete .board-reserves { grid-template-columns:1fr 2fr; }
 .has-lineup-board .board-incomplete .board-coach { grid-column:1 / -1; }
}

/* Mobile audit: readable three-player rows and scrollable player controls. */
@media (max-width:600px) {
 .has-lineup-board .slot-card-name { flex:none; min-height:0; line-height:1.3; }
 .has-lineup-board .drawing-player-identity { display:flex; flex-wrap:wrap; gap:3px 0; width:100%; }
 .has-lineup-board .drawing-player-label { flex:0 0 100%; overflow:visible; overflow-wrap:break-word; }
 .has-lineup-board .board-starters > [data-row-count="3"] { padding:8px 4px; }
 .has-lineup-board .board-starters > [data-row-count="3"] .slot-card { padding:0; }
 .has-lineup-board .board-starters > [data-row-count="3"] .slot-card-name { font-size:12px; }
 .has-lineup-board .board-quick-actions { gap:2px; }
 .team-workspace .has-lineup-board .board-quick-actions button { width:44px; min-width:44px; height:44px; min-height:44px; }
 .has-lineup-board .board-starters > [data-row-count="3"] .board-quick-actions { gap:2px; }
 .has-lineup-board .board-starters > [data-row-count="3"] .board-quick-actions button { width:44px; min-width:44px; }
 .has-lineup-board .board-drag-zone[data-draggable="true"] { touch-action:pan-y pinch-zoom; user-select:auto; -webkit-user-select:auto; }
 .board-instructions-desktop { display:none; }
 .board-instructions-mobile { display:block; }
 .team-workspace .has-lineup-board .team-slot[data-mode="editing"] .slot-picker {
   position:fixed; z-index:70; left:16px; right:16px; bottom:80px; width:auto;
   max-height:calc(100dvh - 112px); padding:14px; border:1px solid #43516b;
   border-radius:10px; background:#151e2e; box-shadow:0 12px 32px #0009;
   display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto minmax(0,1fr); gap:8px;
 }
 .team-workspace .has-lineup-board .slot-picker input[type="text"] { font-size:16px; min-height:44px; grid-row:1; }
 .has-lineup-board .slot-picker-tools { grid-row:2; margin:0; }
 .has-lineup-board .slot-picker-tools button { min-height:44px; }
 .has-lineup-board .slot-suggestions { position:static; grid-row:3; min-height:0; max-height:45dvh; overscroll-behavior:contain; }
 .has-lineup-board .slot-option { min-height:44px; }
 .has-lineup-board .board-preview .role-swap-panel { position:fixed; z-index:70; left:16px; right:16px; bottom:80px; max-height:calc(100dvh - 112px); overflow:auto; overscroll-behavior:contain; padding:16px; }
 .has-lineup-board .role-swap-choice { min-height:48px; }
}
.board-instructions-mobile { display:none; }
@media(max-width:600px) { .board-instructions-mobile { display:block; } }
@media(max-width:360px) {
 .has-lineup-board .board-starters > [data-row-count="3"][data-row-index="0"] { grid-column:1 / span 6; }
 .has-lineup-board .board-starters > [data-row-count="3"][data-row-index="1"] { grid-column:7 / span 6; }
 .has-lineup-board .board-starters > [data-row-count="3"][data-row-index="2"] { grid-column:4 / span 6; }
 .has-lineup-board .board-starters > [data-board-position="F"][data-row-count="3"][data-row-index="2"] { grid-row:3; }
 .has-lineup-board .board-starters > [data-board-position="G"][data-row-count="3"][data-row-index="2"] { grid-row:4; }
 .has-lineup-board .board-starters:has([data-board-position="F"][data-row-count="3"]) > [data-board-position="G"] { grid-row:4; }
}

@media(max-width:600px) {
 .team-workspace #undoOptimization:not(:disabled) { position:fixed; z-index:50; left:16px; right:16px; bottom:80px; width:calc(100% - 32px); min-height:44px; padding:10px 14px; border:1px solid var(--accent); background:#151e2e; box-shadow:0 8px 24px #0009; }
 .team-workspace:has(#undoOptimization:not(:disabled)) main { padding-bottom:64px; }
}

/* Selected suggestion comparison panel: preserve the current court beside review. */
.workspace-recommendations.is-reviewing > :not(#optimizationPreview) { display:none; }
.workspace-recommendations.is-reviewing { padding:18px 16px; }
.workspace-recommendations .workspace-preview { border:0; padding:0; margin:0; background:transparent; }
.workspace-preview .suggestion-title { font-size:27px; line-height:1.2; margin:0 0 6px; }
.suggestion-intro { font-size:14px; color:var(--muted); margin:0 0 16px; }
.suggestion-scores { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(78px,.65fr); gap:7px; margin-bottom:16px; }
.suggestion-score,.suggestion-delta { border:1px solid var(--line); border-radius:6px; padding:10px; display:grid; gap:4px; align-content:center; }
.suggestion-score span,.suggestion-delta span { font-size:11px; color:var(--muted); }
.suggestion-score strong,.suggestion-delta strong { font-size:22px; font-variant-numeric:tabular-nums; }
.suggestion-delta { color:#80e1c4; background:#14312866; }
.suggestion-delta.is-negative { color:#ffb879; background:#352719; }
.suggestion-transfers > p { margin:0 0 8px; font-size:13px; }
.suggestion-transfer { display:grid; grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr); gap:8px; align-items:center; margin-bottom:10px; }
.suggestion-transfer > .workspace-icon { width:20px; height:20px; }
.suggestion-player { display:grid; align-content:start; gap:4px; min-width:0; padding:0 10px 10px; border:1px solid var(--line); border-radius:7px; overflow:hidden; font-size:13px; }
.suggestion-direction { margin:0 -10px 3px; padding:5px 10px; font-size:12px; font-weight:800; }
.suggestion-out .suggestion-direction { background:#49292b66; color:#ff8a77; }
.suggestion-in .suggestion-direction { background:#153b3466; color:#80e1c4; }
.suggestion-name { font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
.suggestion-player-fp { font-size:18px; margin-top:3px; }
.suggestion-other { position:relative; border:1px solid var(--line); border-radius:7px; padding:10px; margin:10px 0 12px; }
.workspace-preview h4 { font-size:13px; margin:0 0 7px; }
.suggestion-other p { font-size:12px; line-height:1.5; margin:4px 0; }
.suggestion-unchanged { color:var(--muted); font-size:11px; display:block; margin-top:-4px; }
.suggestion-why p { font-size:13px; line-height:1.4; margin:0 0 5px; }
.suggestion-why .insight-note { font-size:12px; }
.suggestion-why { margin-bottom:12px; }
.suggestion-checks ul { list-style:none; padding:0; margin:0; display:grid; gap:5px; }
.suggestion-checks li { display:flex; gap:7px; align-items:center; font-size:12px; line-height:1.4; }
.suggestion-checks li > strong { margin-left:auto; font-size:12px; font-weight:600; white-space:nowrap; }
.suggestion-check-marker { display:flex; width:20px; height:20px; flex:none; border-radius:50%; background:#80e1c4; }
.suggestion-check-marker .workspace-icon { width:20px; height:20px; }
.check-failed .suggestion-check-marker { background:#ee9a62; }
.suggestion-remaining { font-size:12px; margin:7px 0; }
.suggestion-roster { font-size:12px; margin:8px 0; }
.suggestion-roster summary { min-height:32px; display:flex; align-items:center; cursor:pointer; color:var(--muted); }
.suggestion-roster li { padding:4px 0; }
.suggestion-roster small { display:block; color:var(--warn); }
.suggestion-actions { display:grid; gap:7px; margin-top:10px; }
.workspace-preview .suggestion-actions button { width:100%; margin:0; min-height:44px; font-size:14px; font-weight:750; }
.suggestion-actions #applyOptimization { background:var(--accent); color:white; border:1px solid var(--accent); }
.suggestion-actions #applyOptimization:disabled { opacity:.5; cursor:not-allowed; }
.suggestion-safety,.suggestion-undo-note { font-size:11px; line-height:1.4; color:var(--muted); margin:9px 0 0; }
.suggestion-undo-note { margin-top:2px; }
.suggestion-problem { border-left:3px solid var(--warn); padding-left:12px; line-height:1.5; }
@media(min-width:1200px) {
 .team-workspace .workspace-columns.board-page-columns.has-suggestion-review { grid-template-columns:minmax(0,1.8fr) minmax(440px,1fr); }
}
@media(max-width:900px) {
 .workspace-recommendations.is-reviewing { padding:18px 14px; }
 .workspace-preview .suggestion-title { font-size:25px; }
 .suggestion-intro { font-size:14px; }
 .suggestion-score strong,.suggestion-delta strong { font-size:20px; }
}

/* Review density matches the chosen desktop comparison while details stay expandable. */
.suggestion-intro { margin-bottom:10px; }
.suggestion-scores { margin-bottom:12px; }
.suggestion-other { padding:8px 10px; }
.suggestion-other .suggestion-roster { margin:0; }
.suggestion-other .suggestion-roster summary { min-height:22px; gap:4px; color:var(--text); }
.suggestion-unchanged { display:inline; margin:0 0 0 5px; }

.suggestion-other .suggestion-roster { border:0; padding:0; }
.suggestion-other .suggestion-roster summary { padding:0; margin:0; }

.suggestion-scores { grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr) minmax(78px,.65fr); align-items:stretch; }
.suggestion-score-arrow { width:16px; height:16px; align-self:center; }
.suggestion-other p { display:flex; align-items:center; flex-wrap:wrap; gap:4px; font-size:13px; }
.suggestion-other .workspace-icon { width:17px; height:17px; margin-right:4px; }
.suggestion-checks li { font-size:13px; }
.workspace-preview .suggestion-actions #applyOptimization { position:relative; display:flex; justify-content:center; align-items:center; gap:10px; font-size:15px; }
.suggestion-actions #applyOptimization > .workspace-icon:last-child { position:absolute; right:12px; }
.suggestion-actions #applyOptimization > .workspace-icon { filter:brightness(0) invert(1); }
.suggestion-actions button:last-child { background:transparent; border:1px solid #90a4c4; }
@media(max-width:600px) {
 .suggestion-scores { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .suggestion-score-arrow { display:none; }
 .suggestion-delta { grid-column:1 / -1; display:flex; gap:8px; justify-content:center; align-items:baseline; }
}
