/* Matchday staff only. Shared admin pages and the reporting iframe keep their own styles. */
body.md-staff {
  font-family: Arial, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
body.md-staff [hidden] { display: none !important; }
body.md-staff h1,
body.md-staff h2,
body.md-staff h3 {
  font-family: BarlowCondensed, 'Arial Narrow', Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
}
body.md-staff .admin-main {
  width: min(1280px, calc(100% - 48px));
  padding: 26px 0 48px;
}
body.md-staff .admin-footer { width: min(1280px, calc(100% - 48px)); }
body.md-staff .admin-header { min-height: 86px; padding-top: 13px; padding-bottom: 13px; }
body.md-staff .page-heading { align-items: center; gap: 18px; margin-bottom: 22px; }
body.md-staff .page-heading h1 { font-size: clamp(32px, 3vw, 42px); }
body.md-staff .page-heading .eyebrow { margin-bottom: 7px; }
body.md-staff .muted { margin-top: 8px; font-size: 13px; }
body.md-staff .eyebrow,
body.md-staff .section-number { font-size: 12px; letter-spacing: .05em; }
body.md-staff .section-number { margin-bottom: 6px; }
body.md-staff .button { min-height: 46px; padding: 11px 16px; gap: 12px; font-size: 14px; }
body.md-staff .button span { font-size: 20px; }
body.md-staff .quiet-button,
body.md-staff .text-button { min-height: 44px; }
body.md-staff input,
body.md-staff textarea,
body.md-staff select { min-height: 46px; font-size: 16px; border-color: var(--muted); }
body.md-staff label { font-size: 14px; line-height: 1.4; }
body.md-staff .field-help { font-size: 13px; line-height: 1.55; }
body.md-staff button:focus-visible,
body.md-staff a:focus-visible,
body.md-staff input:focus-visible,
body.md-staff textarea:focus-visible,
body.md-staff select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
body.md-staff .status-message { font-size: 14px; margin-bottom: 20px; }
body.md-staff .loading-view { padding: 48px 0; }
body.md-staff .loading-view h1 { font-size: 36px; }
body.md-staff .access-intro h1 { font-size: 52px; }
body.md-staff .access-card h2 { font-size: 32px; }

/* Navigation, fixture and editorial sections. */
body.md-staff .md-section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
body.md-staff .md-section-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
body.md-staff .md-section-nav a[aria-current=page] {
  color: var(--ink);
  border-bottom-color: var(--red);
}
body.md-staff .md-match-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.25fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  background: var(--white);
}
body.md-staff .md-match-picker h2 { font-size: 26px; }
body.md-staff .md-match-picker p { margin-top: 6px; color: var(--muted); font-size: 14px; }
body.md-staff .md-picker-control,
body.md-staff .md-picker-filters > div { min-width: 0; }
body.md-staff .md-picker-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
body.md-staff .md-picker-filters label { margin-top: 0; }
body.md-staff .md-picker-control > label { margin-top: 14px; }
body.md-staff .md-picker-control select { max-width: 100%; background: var(--paper); font-weight: 600; }
body.md-staff .md-fixture { padding: 0 0 20px; border-bottom: 1px solid var(--line); }
body.md-staff .md-fixture .eyebrow { margin-bottom: 8px; }
body.md-staff .md-fixture h2 { font-size: clamp(28px, 3vw, 36px); overflow-wrap: anywhere; }
body.md-staff #md-fixture-date { margin-top: 10px; color: var(--muted); font-size: 14px; }
body.md-staff .md-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
}
body.md-staff .md-workspace-tabs > button {
  min-height: 72px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}
body.md-staff .md-workspace-tabs > button span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
body.md-staff .md-workspace-tabs > button[aria-selected=true] { border-color: var(--ink); border-bottom-color: var(--yellow); background: var(--paper); }
body.md-staff .md-official-rule { max-width: 850px; margin: 16px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
body.md-staff .md-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
body.md-staff .md-tabs > button {
  min-height: 80px;
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}
body.md-staff .md-tabs > button span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}
body.md-staff .md-tabs > button[aria-selected=true] { border-color: var(--ink); background: var(--ink); color: var(--white); }
body.md-staff .md-tabs > button[aria-selected=true] span { color: var(--yellow); }
body.md-staff .md-block-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
body.md-staff .md-block-heading h2 { font-size: 28px; }
body.md-staff .md-block-heading p:not(.eyebrow) { max-width: 660px; margin-top: 8px; color: var(--muted); font-size: 14px; }
body.md-staff .status-badge { font-size: 12px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
body.md-staff .md-block-heading .status-badge { flex-shrink: 0; max-width: 230px; margin-top: 4px; white-space: normal; text-align: center; }
body.md-staff .md-context-note { margin-bottom: 18px; padding: 13px 15px; border-left: 3px solid var(--yellow); background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.6; }
body.md-staff #md-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }

/* A compact, single-column player list at every width. */
body.md-staff .md-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
body.md-staff .editor-main { display: grid; gap: 20px; min-width: 0; }
body.md-staff .editor-card { min-width: 0; padding: 20px; }
body.md-staff .card-heading { margin-bottom: 8px; padding-bottom: 14px; }
body.md-staff .card-heading h2 { font-size: 26px; }
body.md-staff .md-sidebar { display: grid; gap: 18px; position: static; min-width: 0; }
body.md-staff .md-editor-shortcuts { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin: 0 0 18px; }
body.md-staff .md-editor-shortcuts a,
body.md-staff .md-back-to-players { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 14px; font-weight: 600; }
body.md-staff .md-back-to-players { margin-top: 12px; }
body.md-staff #md-editor-actions,
body.md-staff #md-players-card { scroll-margin-top: 20px; }
body.md-staff #md-editor-actions:focus-visible,
body.md-staff #md-players-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
body.md-staff .md-roster-help { margin: 16px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
body.md-staff .md-roster-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
body.md-staff .md-roster-heading p { max-width: 620px; margin: 0; }
body.md-staff .md-roster-heading a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 13px; }
body.md-staff .md-roster-tools { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; align-items: end; gap: 12px; padding: 14px; background: var(--paper); border: 1px solid var(--line); }
body.md-staff .md-roster-tools > div { min-width: 0; }
body.md-staff .md-roster-tools label { margin: 0 0 6px; font-size: 13px; }
body.md-staff .md-roster-tools input,
body.md-staff .md-roster-tools select { min-height: 46px; padding: 10px; font-size: 15px; }
body.md-staff .md-roster-tools button { min-height: 46px; max-width: 100%; font-size: 13px; }
body.md-staff #md-roster-clear:disabled { cursor: default; }
body.md-staff .md-roster-feedback { margin: 10px 0 14px; }
body.md-staff #md-roster-results { color: var(--muted); font-size: 13px; line-height: 1.5; }
body.md-staff #md-roster-empty { margin-top: 12px; padding: 13px 15px; border-left: 3px solid var(--yellow); background: var(--paper); color: var(--ink); font-size: 14px; }
body.md-staff .md-roster-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
body.md-staff .md-roster-option { display: grid; grid-template-columns: minmax(0, 1fr) 92px; align-items: center; gap: 16px; min-width: 0; padding: 9px 14px 9px 10px; border: 1px solid var(--line); border-left: 4px solid transparent; background: var(--white); }
body.md-staff .md-roster-option.is-selected { border-color: var(--ink); border-left-color: var(--yellow); background: var(--paper); }
body.md-staff .md-roster-choice { display: flex; align-items: center; min-width: 0; min-height: 52px; gap: 12px; margin: 0; padding: 4px 0; cursor: pointer; }
body.md-staff .md-roster-choice input[type=checkbox] { appearance: auto; display: block; flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; padding: 0; margin: 0; accent-color: var(--red); cursor: pointer; }
body.md-staff .md-roster-choice > span,
body.md-staff .md-lineup-identity { min-width: 0; }
body.md-staff .md-roster-choice strong,
body.md-staff .md-lineup-identity strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
body.md-staff .md-roster-choice small,
body.md-staff .md-lineup-identity small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
body.md-staff .md-roster-number,
body.md-staff .md-lineup-number,
body.md-staff .md-lineup-choice { min-width: 0; }
body.md-staff .md-roster-number label,
body.md-staff .md-lineup-number label,
body.md-staff .md-lineup-choice label { margin: 0 0 5px; font-size: 12px; font-weight: 600; line-height: 1.4; }
body.md-staff .md-roster-number label,
body.md-staff .md-lineup-number label { white-space: nowrap; }
body.md-staff .md-roster-number input,
body.md-staff .md-lineup-number input { min-height: 46px; padding: 9px 10px; font-size: 16px; }
body.md-staff .md-roster-number input:disabled,
body.md-staff .md-lineup-number input:disabled { background: var(--paper); color: var(--muted); opacity: .7; cursor: not-allowed; }
body.md-staff .md-extras-title { margin-top: 26px; font-size: 24px; }
body.md-staff .md-player-list { display: grid; gap: 12px; margin-top: 16px; }
body.md-staff .md-player-row { display: grid; grid-template-columns: 24px 82px minmax(0, 1fr) 44px; align-items: end; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
body.md-staff .md-player-row > div { min-width: 0; }
body.md-staff .md-player-position { align-self: center; padding-top: 24px; color: var(--muted); font-size: 13px; font-weight: 600; }
body.md-staff .md-player-row label { margin: 0 0 6px; font-size: 12px; line-height: 1.4; }
body.md-staff .md-player-row input { min-height: 46px; padding: 9px 10px; font-size: 16px; }
body.md-staff .md-player-remove { width: 44px; height: 46px; padding: 0; border: 1px solid var(--line); background: var(--white); color: var(--red); font-size: 25px; line-height: 1; }
body.md-staff .md-add-player { justify-content: space-between; min-height: 46px; margin-top: 18px; }

/* Line-up and pitch retain the existing data model and controls. */
body.md-staff .md-lineup-list { display: grid; gap: 10px; margin-top: 18px; }
body.md-staff .md-lineup-option { display: grid; grid-template-columns: minmax(0, 1fr) 142px 92px; align-items: center; gap: 14px; min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--white); }
body.md-staff .md-lineup-option.is-selected { border-color: var(--ink); background: var(--paper); }
body.md-staff .md-lineup-option.is-unavailable { border-color: var(--red); border-left-width: 4px; }
body.md-staff .md-lineup-option.is-unavailable .md-lineup-identity small { color: var(--red); }
body.md-staff .md-lineup-choice select { min-height: 46px; padding: 9px 10px; font-size: 15px; }
body.md-staff .md-callups-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; }
body.md-staff .md-callups-actions .button,
body.md-staff .md-callups-actions .text-button { min-height: 44px; font-size: 13px; }
body.md-staff #md-callups-info { margin: 16px 0; }
body.md-staff #md-lineup-summary { margin-top: 16px; font-size: 14px; font-weight: 600; }
body.md-staff .md-pitch-toggle { display: flex; align-items: center; min-height: 44px; gap: 12px; margin: 16px 0 10px; font-size: 15px; line-height: 1.5; cursor: pointer; }
body.md-staff .md-pitch-toggle input[type=checkbox] { appearance: auto; flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; padding: 0; margin: 0; accent-color: var(--red); }
body.md-staff .md-pitch-toggle > span { min-width: 0; }
body.md-staff .md-pitch-orientation { margin: 18px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
body.md-staff .md-pitch-slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
body.md-staff .md-pitch-slot { min-width: 0; }
body.md-staff .md-pitch-slot label { margin: 0 0 6px; font-size: 13px; line-height: 1.5; }
body.md-staff .md-pitch-slot select { min-width: 0; max-width: 100%; min-height: 46px; padding: 10px; font-size: 16px; text-overflow: ellipsis; }
body.md-staff .md-pitch-goalkeeper { grid-column: 1 / -1; padding: 14px; border-left: 3px solid var(--green); background: var(--paper); }
body.md-staff .md-pitch-goalkeeper select { background: var(--white); }
body.md-staff #md-pitch-message,
body.md-staff #md-pitch-invalid { margin: 16px 0 0; }
body.md-staff #md-pitch-summary { margin-top: 16px; }
body.md-staff .md-pitch-preview { width: 100%; max-width: 560px; margin: 22px auto 0; }
body.md-staff .md-pitch-modal { width: 100%; max-width: 620px; margin: 22px auto; }
body.md-staff .md-pitch-preview .lineup-pitch,
body.md-staff .md-pitch-modal .lineup-pitch { width: 100%; min-width: 0; }

/* Draft actions, publication and scheduling stay separate and in normal flow. */
body.md-staff .md-work-summary { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
body.md-staff .md-work-summary h2 { font-size: 26px; }
body.md-staff #md-selection-total { margin-top: 9px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
body.md-staff .md-sidebar .save-state { margin-bottom: 14px; font-size: 13px; }
body.md-staff .md-action-step { margin-top: 18px; }
body.md-staff .md-action-step h3 { margin-bottom: 10px; font: 700 15px/1.4 Arial, system-ui, sans-serif; }
body.md-staff .md-publish-actions { padding-top: 18px; border-top: 1px solid var(--line); }
body.md-staff .md-review-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
body.md-staff .md-review-actions .button { height: 100%; margin-top: 0; padding: 10px 8px; font-size: 13px; }
body.md-staff .md-sidebar #md-save,
body.md-staff .md-sidebar #md-publish { margin-top: 0; }
body.md-staff #md-publish { border-color: var(--ink); }
body.md-staff .md-sidebar .publish-card .field-help { margin-top: 12px; }
body.md-staff .md-sidebar .withdraw-button { min-height: 44px; margin-top: 8px; }
body.md-staff .md-sidebar .form-error { font-size: 14px; }
body.md-staff .md-sidebar .schedule-card { border-top-color: var(--yellow); }
body.md-staff .md-sidebar .schedule-card h2 { font-size: 25px; }
body.md-staff .md-schedule-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 12px; }
body.md-staff .md-schedule-fields > div { min-width: 0; }
body.md-staff .md-schedule-fields label { margin-top: 16px; font-size: 13px; }
body.md-staff .md-schedule-fields input { min-width: 0; max-width: 100%; padding: 10px 8px; font-size: 14px; }
body.md-staff .md-sidebar .schedule-card .button { margin-top: 14px; }
body.md-staff .md-sidebar .schedule-timezone { margin-top: 12px; font-size: 12px; }

/* Preview and history dialogs. */
body.md-staff .preview-dialog { width: min(850px, calc(100% - 32px)); max-height: calc(100svh - 32px); }
body.md-staff .preview-top p { font-size: 11px; line-height: 1.5; letter-spacing: .025em; }
body.md-staff .preview-top .quiet-button { min-height: 44px; }
body.md-staff .article-preview { min-width: 0; padding: 30px; }
body.md-staff .article-preview h2 { font-size: 34px; }
body.md-staff .article-preview h3 { font-size: 26px; }
body.md-staff .md-preview-formation { margin: 22px 0; color: var(--muted); font-size: 17px; font-weight: 600; }
body.md-staff .md-preview-players { display: grid; gap: 0; margin: 16px 0 24px; padding: 0; list-style: none; }
body.md-staff .md-preview-players li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; overflow-wrap: anywhere; }
body.md-staff .md-preview-players li span { display: inline-block; flex: 0 0 30px; width: 30px; color: var(--red); font-size: 14px; font-weight: 700; }
body.md-staff .md-preview-note { margin: 22px 0; color: var(--muted); font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
body.md-staff #md-preview-players-title { margin-top: 24px; }
body.md-staff #md-preview-schedule { margin-top: 22px; }
body.md-staff .md-history-help { margin: 16px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
body.md-staff .md-history-message { margin: 16px 0; padding: 12px 14px; background: var(--paper); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
body.md-staff .md-history-message.is-error { color: var(--red); }
body.md-staff .md-history-dialog select { min-width: 0; max-width: 100%; font-size: 15px; text-overflow: ellipsis; }
body.md-staff .md-history-content { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
body.md-staff .md-history-meta { margin-bottom: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
body.md-staff .md-history-actions { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
body.md-staff .confirm-dialog { max-height: calc(100svh - 32px); padding: 28px; }
body.md-staff .confirm-dialog h2 { font-size: 32px; }
body.md-staff .confirm-actions { flex-wrap: wrap; }
body.md-staff .confirm-actions .button { min-height: 46px; }

/* The reporting frame keeps its own document and presentation. */
body.md-staff .md-report-view { min-width: 0; }
body.md-staff .md-report-intro { max-width: 850px; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
body.md-staff .md-report-frame-host { width: 100%; min-width: 0; background: var(--paper); }
body.md-staff .md-report-frame { display: block; width: 100%; min-width: 0; height: 600px; border: 0; scroll-margin-top: 16px; }
body.md-staff .md-report-frame[inert] { pointer-events: none; }

@media (max-width: 1040px) {
  body.md-staff .md-editor-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  body.md-staff .md-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; width: 100%; }
  body.md-staff .md-sidebar > .md-back-to-players { grid-column: 1 / -1; }
  body.md-staff .md-roster-tools { grid-template-columns: minmax(0, 1fr) 170px auto; }
}
@media (max-width: 720px) {
  body.md-staff .admin-main,
  body.md-staff .admin-footer { width: calc(100% - 32px); }
  body.md-staff .md-match-picker { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  body.md-staff .md-workspace-tabs { gap: 8px; }
  body.md-staff .md-workspace-tabs > button { padding: 13px; font-size: 15px; }
  body.md-staff .md-roster-tools { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  body.md-staff .md-roster-tools > div:first-child { grid-column: 1 / -1; }
  body.md-staff .md-sidebar { grid-template-columns: minmax(0, 1fr); }
  body.md-staff .md-review-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.md-staff .md-block-heading { flex-wrap: wrap; gap: 12px; }
  body.md-staff .md-block-heading .status-badge { max-width: 100%; margin-top: 0; }
  body.md-staff .md-lineup-option { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; }
  body.md-staff .md-lineup-identity { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  body.md-staff { font-size: 15px; }
  body.md-staff .admin-main,
  body.md-staff .admin-footer { width: calc(100% - 24px); }
  body.md-staff .admin-main { padding: 20px 0 36px; }
  body.md-staff .page-heading { align-items: stretch; gap: 14px; }
  body.md-staff .page-heading h1 { font-size: 32px; }
  body.md-staff .page-heading > .button { min-height: 46px; padding: 11px 14px; font-size: 14px; }
  body.md-staff .admin-header { padding-left: 12px; padding-right: 12px; }
  body.md-staff .site-link { min-height: 44px; font-size: 13px; }
  body.md-staff .header-actions .quiet-button { min-height: 44px; font-size: 13px; }
  body.md-staff .md-section-nav { gap: 2px 18px; margin-bottom: 20px; }
  body.md-staff .md-section-nav a { min-height: 44px; font-size: 13px; }
  body.md-staff .md-match-picker { padding: 16px; }
  body.md-staff .md-match-picker h2 { font-size: 24px; }
  body.md-staff .md-picker-control select { font-size: 16px; }
  body.md-staff .md-fixture h2 { font-size: 28px; }
  body.md-staff .md-workspace-tabs { margin: 18px 0 16px; }
  body.md-staff .md-workspace-tabs > button { min-height: 88px; padding: 12px 10px; font-size: 14px; }
  body.md-staff .md-workspace-tabs > button span { font-size: 12px; }
  body.md-staff .md-tabs { grid-template-columns: minmax(0, 1fr); gap: 7px; margin-bottom: 20px; }
  body.md-staff .md-tabs > button { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; min-height: 52px; padding: 12px; font-size: 14px; }
  body.md-staff .md-tabs > button span { margin: 0; font-size: 12px; }
  body.md-staff .md-block-heading h2 { font-size: 26px; }
  body.md-staff .editor-card { padding: 16px 14px; }
  body.md-staff .card-heading h2 { font-size: 24px; }
  body.md-staff .md-editor-shortcuts { margin-bottom: 14px; gap: 4px 14px; }
  body.md-staff .md-roster-heading { gap: 6px; }
  body.md-staff .md-roster-tools { padding: 10px; gap: 10px; }
  body.md-staff .md-roster-tools input,
  body.md-staff .md-roster-tools select { font-size: 16px; }
  body.md-staff .md-roster-tools button { padding: 10px 12px; font-size: 13px; }
  body.md-staff .md-roster-option { grid-template-columns: minmax(0, 1fr) 82px; gap: 10px; padding: 8px 10px 8px 8px; }
  body.md-staff .md-roster-choice { gap: 10px; min-height: 56px; }
  body.md-staff .md-roster-choice strong { font-size: 16px; }
  body.md-staff .md-roster-number input { padding: 9px 8px; }
  body.md-staff .md-player-row { grid-template-columns: 22px minmax(0, 1fr) 44px; gap: 8px 10px; }
  body.md-staff .md-player-position { grid-column: 1; grid-row: 1 / 3; padding-top: 0; }
  body.md-staff .md-player-row > div:nth-of-type(1) { grid-column: 2; grid-row: 2; max-width: 110px; }
  body.md-staff .md-player-row > div:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  body.md-staff .md-player-remove { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  body.md-staff .md-lineup-choice select { font-size: 16px; }
  body.md-staff .md-callups-actions .button { width: 100%; justify-content: center; }
  body.md-staff .md-pitch-slot-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.md-staff .md-pitch-toggle { font-size: 14px; }
  body.md-staff .md-pitch-preview,
  body.md-staff .md-pitch-modal { margin-top: 18px; }
  body.md-staff .md-schedule-fields { grid-template-columns: minmax(0, 1fr); }
  body.md-staff .md-schedule-fields input { font-size: 16px; }
  body.md-staff .preview-dialog { width: calc(100% - 20px); max-height: calc(100svh - 20px); }
  body.md-staff .preview-top { padding: 12px 14px; gap: 10px; }
  body.md-staff .preview-top p { max-width: none; font-size: 11px; }
  body.md-staff .article-preview { padding: 24px 18px 28px; }
  body.md-staff .article-preview h2 { font-size: 30px; }
  body.md-staff .md-history-dialog select { font-size: 16px; }
  body.md-staff .md-history-actions .button { width: 100%; }
  body.md-staff .confirm-dialog { padding: 24px; }
  body.md-staff .confirm-dialog h2 { font-size: 30px; }
  body.md-staff .md-report-intro { font-size: 13px; }
}
