@font-face { font-family: "Graduate"; src: url("/assets/fonts/Graduate-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --ink: #172130;
  --muted: #5d6878;
  --paper: #f5f7f8;
  --card: #ffffff;
  --line: #dce2e7;
  --navy: #12315a;
  --blue: #2361a8;
  --sky: #eaf2fb;
  --red: #bd3037;
  --gold: #e9b94e;
  --green: #1f7a58;
  --warning: #9a4c04;
  --shadow: 0 12px 30px rgba(24, 39, 61, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; overflow-y: scroll; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1.02; margin-bottom: 12px; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 6px; }
label { color: var(--ink); font-size: .84rem; font-weight: 750; display: grid; gap: 6px; }
input, select { border: 1px solid #bfcad4; border-radius: 8px; background: #fff; color: var(--ink); min-height: 38px; padding: 8px 10px; }
input:focus, select:focus, button:focus-visible { outline: 3px solid rgba(35, 97, 168, .32); outline-offset: 2px; }
code { background: #edf1f4; padding: 2px 4px; border-radius: 4px; font-size: .82em; }
.muted { color: var(--muted); line-height: 1.45; }
.eyebrow { color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 6px; }

.site-header { min-height: 58px; background: var(--navy); color: white; padding: 0 max(24px, calc((100vw - 1200px) / 2)); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; gap: 8px; align-items: center; color: white; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.season-label { font-size: .82rem; opacity: .78; margin-right: auto; }
.presence { display: inline-flex; align-items: center; gap: 6px; color: white; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.presence-dot { width: 8px; height: 8px; border-radius: 50%; background: #65d39d; box-shadow: 0 0 0 3px rgba(101, 211, 157, .18); }
.site-header .button.ghost { color: white; border-color: rgba(255, 255, 255, .55); }
.shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto 40px; }
.hero { padding: 46px 0 28px; display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.hero p:not(.eyebrow) { max-width: 660px; color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.save-status { color: var(--green); font-size: .85rem; font-weight: 700; margin: 8px 0 0; }
.save-status:empty { display: none; }

.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 9px 15px; background: transparent; font-weight: 750; white-space: nowrap; }
.tab.active { color: var(--navy); border-bottom-color: var(--red); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
#lineup.tab-panel.active { display: grid; gap: 4px; }

.control-card, .availability-card, .lineup-card, .history-card, .rules-card, .status-card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; }
.control-card { padding: 10px 14px; display: grid; grid-template-columns: minmax(240px, 1.05fr) minmax(150px, .7fr) auto auto auto; gap: 8px; align-items: end; }
.game-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-navigation { display: flex; gap: 4px; }
.game-nav { width: 26px; min-height: 26px; padding: 0; border: 1px solid #bfcad4; border-radius: 6px; background: white; color: var(--navy); font-weight: 850; line-height: 1; }
.game-nav:hover, .game-nav:focus-visible { border-color: var(--blue); background: var(--sky); }
.game-nav:disabled { cursor: not-allowed; opacity: .45; }
.game-select-wrap select { width: 100%; margin-top: 6px; }
.game-select-wrap p { font-size: .84rem; margin: 7px 0 0; }
.strategy-label, .slider-labels { display: flex; justify-content: space-between; gap: 12px; }
.strategy-label strong { color: var(--blue); font-size: .85rem; }
.slider-labels { color: var(--muted); font-size: .74rem; margin-top: 8px; }
input[type="range"] { padding: 0; width: 100%; accent-color: var(--blue); min-height: 24px; }
.strategy-wrap p { font-size: .8rem; margin: 3px 0 0; min-height: 1.45em; white-space: nowrap; }
.settings-pair { display: grid; grid-template-columns: repeat(2, 146px); gap: 8px; align-items: end; }
.primary-settings { grid-template-columns: 146px 122px; }
.experimental-settings { grid-template-columns: 122px 146px; }
.settings-pair > div { display: grid; gap: 6px; min-width: 0; }
.settings-pair select { width: 100%; }
.actions-wrap .button { padding-inline: 10px; }
.actions-wrap { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.button { border: 1px solid transparent; border-radius: 8px; font-weight: 800; padding: 9px 13px; color: var(--ink); background: white; white-space: nowrap; }
.button.primary { background: var(--blue); color: white; }
.button.secondary { background: var(--sky); color: var(--navy); border-color: #cadcec; }
.button.ghost { border-color: #c5cfd8; background: transparent; color: var(--navy); }
.button.small { padding: 7px 10px; font-size: .8rem; }
.button.wide { width: 100%; }
.file-button { display: inline-flex; align-items: center; cursor: pointer; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.availability-card { padding: 8px 12px; display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.availability-card h2 { margin: 0; font-size: 1rem; }
.availability-card p:last-child { font-size: .8rem; margin-bottom: 0; }
.availability-list { display: flex; gap: 8px; flex-wrap: wrap; }
.availability-list label { display: flex; align-items: center; flex-direction: row-reverse; gap: 2px; border: 1px solid var(--line); padding: 7px 9px; border-radius: 99px; font-size: .78rem; cursor: pointer; }
.availability-list label:has(input:checked) { background: #fff1ef; border-color: #e8a7a4; color: #942b2e; }
.availability-list input { min-height: unset; margin: 0; padding: 0; accent-color: var(--red); }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.metric { padding: 11px 13px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.metric .metric-value { font-size: 1.3rem; font-weight: 850; letter-spacing: -.04em; color: var(--navy); }
.metric .metric-label { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; margin-top: 3px; }
.warnings { display: grid; gap: 6px; margin: 0; }
.warnings:empty { display: none; }
.status-card { padding: 10px 14px; margin-top: 4px; }
.status-card h2 { font-size: 1rem; margin: 0 0 8px; }
.warning { background: #fff7e5; border-left: 4px solid var(--gold); padding: 8px 10px; border-radius: 7px; color: #664100; font-size: .85rem; line-height: 1.35; }
.warning.danger { background: #fff0ee; border-color: var(--red); color: #85262b; }
.conflict-list { margin: 0; padding-left: 1.2rem; }
.conflict-list li + li { margin-top: 4px; }
.lineup-card { padding: 10px 14px; }
.lineup-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.lineup-heading > div:first-child { min-width: 0; }
.lineup-heading h2 { margin-bottom: 0; font-size: .875rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inline-actions { display: flex; gap: 8px; }
.inline-actions .button { padding: 7px 10px; font-size: .85rem; }
.grid-note { font-size: .8rem; margin: 8px 0 10px; }
.table-wrap { overflow-x: auto; position: relative; }
.lineup-table-wrap { isolation: isolate; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { color: var(--muted); font-size: .75rem; letter-spacing: .05em; text-align: center; text-transform: uppercase; padding: 6px 7px; border-bottom: 1px solid var(--line); }
.inning-heading { display: inline-flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; }
.inning-lock { min-height: 24px; width: 24px; padding: 3px; border: 1px solid #aebdcb; border-radius: 5px; background: white; color: var(--navy); line-height: 1; display: grid; place-items: center; }
.inning-lock:hover, .inning-lock:focus-visible { border-color: var(--blue); background: var(--sky); }
.inning-lock.locked { border-color: #176546; background: var(--green); color: white; }
td { text-align: center; padding: 5px 7px; border-bottom: 1px solid #e9edf0; }
#lineup-table td.position-cell { white-space: nowrap; }
#lineup-table th.jersey-number, #lineup-table td.jersey-number { min-width: 38px; width: 38px; text-align: center; }
#lineup-table th.batting-order, #lineup-table td.batting-order { min-width: 48px; width: 48px; text-align: center; }
#lineup-table th:nth-child(3), #lineup-table td:nth-child(3) { min-width: 145px; text-align: left; font-size: 1rem; font-weight: 750; }
.manual-order-row { cursor: grab; }
.manual-order-row:active { cursor: grabbing; }
.drag-handle { color: var(--blue); font-size: .95rem; margin-right: 4px; }
tbody tr:last-child td { border-bottom: 0; }
.position-control { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; }
.position-select { appearance: auto; display: block; width: 74px; min-width: 74px; padding: 5px; min-height: 33px; border: 1px solid #c4cdd4; border-radius: 8px; font-weight: 800; color: var(--ink); cursor: pointer; text-align: center; }
.position-select[data-pos="DH"] { background-color: #f3b7b7; }
.position-select[data-pos="LF"], .position-select[data-pos="CF"], .position-select[data-pos="RF"] { background-color: #f7e29c; }
.position-select[data-pos="P"], .position-select[data-pos="C"], .position-select[data-pos="1B"], .position-select[data-pos="2B"], .position-select[data-pos="SS"], .position-select[data-pos="3B"] { background-color: #dce1e6; }
.position-select:disabled { cursor: not-allowed; filter: saturate(.7); }
.lock-icon { display: block; width: 17px; height: 17px; }
.inning-lock .lock-icon { width: 14px; height: 14px; }
.position-lock { flex: 0 0 auto; min-height: 27px; width: 29px; padding: 0; border: 1px solid #8fa1b1; border-radius: 6px; background: rgba(255, 255, 255, .82); color: var(--navy); box-shadow: 0 1px 2px rgba(23, 33, 48, .16); line-height: 1; display: grid; place-items: center; }
.position-lock:hover, .position-lock:focus-visible { border-color: var(--blue); background: white; }
.position-lock.locked { border-color: #176546; background: var(--green); color: white; box-shadow: 0 1px 3px rgba(31, 122, 88, .35); }
.position-lock:disabled { cursor: not-allowed; opacity: .55; }
.print-position { display: none; }
.print-lineup-header, .print-player-name, .print-inning-heading { display: none; }
.position-select.locked { border-color: var(--green); box-shadow: 0 0 0 1px rgba(31, 122, 88, .2); }
.position-select.conflict { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 1px; box-shadow: none; }
.conflict-connectors { position: absolute; inset: 0 auto auto 0; z-index: 3; display: block; overflow: visible; pointer-events: none; }
.conflict-connector-line { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.conflict-connector-node { fill: white; stroke: var(--red); stroke-width: 2.5; }
.conflict-cell-suggestion { fill: var(--red); stroke: white; stroke-width: 3px; stroke-linejoin: round; paint-order: stroke fill; font-size: .7rem; font-weight: 850; }

.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-heading p { margin-bottom: 0; }
.players-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.player-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.player-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 4px; }
.player-name { margin: 0; font-weight: 850; letter-spacing: -.02em; }
.age-chip { background: var(--sky); color: var(--navy); font-size: .72rem; font-weight: 800; padding: 4px 6px; border-radius: 5px; }
.skill-row { display: grid; grid-template-columns: 62px 1fr 25px; align-items: center; gap: 6px; margin: 2px 0; font-size: .72rem; font-weight: 700; }
.skill-row input { min-width: 0; }
.skill-row input[type="range"] { min-height: 18px; }
.skill-row output { color: var(--blue); text-align: right; font-variant-numeric: tabular-nums; }
.restriction-label { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; margin: 6px 0 3px; }
.restriction-list { display: flex; flex-wrap: wrap; gap: 3px; }
.restriction-list label { font-size: .64rem; display: flex; flex-direction: row-reverse; align-items: center; gap: 3px; border: 1px solid #dce2e7; padding: 2px 4px; border-radius: 4px; font-weight: 700; }
.restriction-list input { min-height: unset; padding: 0; }

.history-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.history-card, .rules-card { padding: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; align-items: end; }
.span-2 { grid-column: span 2; }
.form-help { color: var(--muted); font-size: .78rem; line-height: 1.4; margin: -2px 0 0; }
.history-card input[type="file"] { width: 100%; font-size: .8rem; margin: 7px 0; }
.history-log { margin-top: 14px; }
.history-table { width: 100%; min-width: 540px; }
.empty-state { color: var(--muted); font-size: .88rem; }
.rules-card { max-width: 860px; }
.rules-card ul { padding-left: 20px; line-height: 1.55; color: #384555; }
.rules-card h3 { margin: 16px 0 5px; color: var(--navy); font-size: 1rem; }
.teams-heading { align-items: end; }
.teams-heading label { width: 160px; }
.teams-heading select { width: 100%; }
.team-roster { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 0; overflow: hidden; }
.team-table { min-width: 640px; table-layout: fixed; }
.team-player-col { width: 38%; }
.team-age-col { width: 8%; }
.team-skill-col { width: 10.8%; }
.team-table th:first-child, .team-table td:first-child { text-align: left; }
.team-player-toggle { width: 100%; display: flex; gap: 7px; align-items: center; padding: 2px 0; border: 0; background: transparent; color: var(--navy); font-weight: 800; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expand-mark { width: 15px; color: var(--blue); font-size: 1rem; line-height: 1; text-align: center; }
.team-detail-row td { padding: 0; background: #f8fafc; }
.team-detail { display: grid; grid-template-columns: 1.25fr 1.1fr 1fr; gap: 14px; padding: 14px; text-align: left; }
.team-detail-section h3 { margin: 0 0 7px; color: var(--navy); font-size: .84rem; }
.season-stats, .coach-notes { display: grid; gap: 6px; }
.season-stat, .coach-notes article { display: grid; gap: 2px; border-left: 3px solid #d5e2ef; padding-left: 8px; color: var(--muted); font-size: .74rem; line-height: 1.3; }
.season-stat strong, .coach-notes strong { color: var(--ink); }
.coach-notes article p { margin: 2px 0 0; color: var(--ink); }
.coach-recommendation { color: var(--navy); font-weight: 750; }
.team-override-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.team-skill-row { display: grid; grid-template-columns: 54px 1fr 24px; align-items: center; gap: 6px; margin: 3px 0; color: var(--ink); font-size: .7rem; }
.team-skill-row input[type="range"] { min-height: 18px; }
.team-skill-row output { color: var(--blue); text-align: right; font-variant-numeric: tabular-nums; }
.stats-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; }
.stats-heading { margin-bottom: 10px; }
.stats-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 8px; }
.stats-filters label { width: min(100%, 180px); }
.stats-filters select { width: 100%; }
.stats-filters .stats-combine { width: auto; display: flex; flex-direction: row; align-items: center; gap: 6px; min-height: 38px; padding-bottom: 1px; }
.stats-combine input { min-height: unset; margin: 0; padding: 0; accent-color: var(--blue); }
.stats-note { font-size: .8rem; margin: 0 0 10px; }
.stats-note:empty { display: none; }
.stats-table-section + .stats-table-section { margin-top: 18px; }
.stats-level-heading { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.stats-table { min-width: 760px; table-layout: fixed; }
.stats-name-col { width: 30%; }
.stats-age-col { width: 8%; }
.stats-value-col { width: auto; }
.stats-table th { white-space: nowrap; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table td { font-variant-numeric: tabular-nums; }
.stats-sort { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
.stats-sort:hover, .stats-sort:focus-visible { color: var(--blue); }
.stats-sort-indicator { display: inline-block; width: .9em; color: var(--blue); }
.charts-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; }
.charts-heading { align-items: end; margin-bottom: 8px; }
.chart-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; justify-content: flex-end; }
.chart-controls label { width: 78px; }
.chart-controls .chart-type-control { width: 150px; }
.chart-controls .chart-cell-control { width: 96px; }
.chart-controls .chart-padding-control { width: 116px; }
.chart-controls .chart-font-control { width: 76px; }
.chart-controls .chart-toggle-control { width: auto; display: flex; flex-direction: row; align-items: center; gap: 5px; min-height: 38px; padding-bottom: 1px; }
.chart-toggle-control input { min-height: unset; margin: 0; padding: 0; accent-color: var(--blue); }
.chart-controls input, .chart-controls select { width: 100%; }
.charts-note { font-size: .8rem; margin: 0 0 12px; }
.chart-group + .chart-group { margin-top: 18px; }
.chart-group-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.chart-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chart-group-heading h3 { color: var(--navy); font-size: 1rem; margin: 0; }
.chart-group-legend .chart-legend { margin: 0; }
.team-charts { display: grid; grid-template-columns: repeat(var(--chart-grid-columns), var(--chart-cell-width)); grid-template-rows: repeat(var(--chart-grid-rows), var(--chart-cell-height)); column-gap: var(--chart-cell-horizontal-padding); row-gap: var(--chart-cell-vertical-padding); overflow: auto; padding-bottom: 2px; }
.team-chart-tile { min-width: 0; height: var(--chart-cell-height); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 7px; }
.age-team-charts .team-chart-tile { border: 0; border-radius: 0; padding: 0; }
.distribution-chart { min-width: 0; margin: 0; }
.distribution-chart figcaption { color: var(--muted); font-size: var(--chart-caption-font-size, 9.36px); font-weight: 800; letter-spacing: .05em; margin-bottom: 3px; text-transform: uppercase; }
.distribution-chart .chart-title-centered { text-align: center; }
.distribution-svg { display: block; width: 100%; min-width: 0; height: auto; }
.chart-axis { stroke: #aab8c5; stroke-width: 1; }
.chart-value, .chart-axis-label, .chart-tick, .chart-pie-total, .chart-pie-caption { fill: var(--ink); font-family: inherit; }
.chart-value { font-size: var(--chart-font-size, 12px); font-weight: 800; }
.chart-axis-label { font-size: var(--chart-axis-label-font-size, 11.04px); font-weight: 750; }
.chart-tick { fill: var(--muted); font-size: var(--chart-tick-font-size, 10.08px); }
.chart-pie-slice { stroke: white; stroke-width: 2; }
.chart-pie-total { font-size: var(--chart-pie-total-font-size, 21.6px); font-weight: 850; }
.chart-pie-caption { fill: var(--muted); font-size: var(--chart-pie-caption-font-size, 11.04px); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 1px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--chart-legend-font-size, 9.12px); }
.chart-legend li { display: inline-flex; align-items: center; gap: 4px; }
.chart-legend strong { color: var(--ink); }
.chart-swatch { width: 9px; height: 9px; border-radius: 2px; }
.chart-color-0 { fill: var(--blue); background-color: var(--blue); }
.chart-color-1 { fill: var(--green); background-color: var(--green); }
.chart-color-2 { fill: var(--gold); background-color: var(--gold); }
.chart-color-3 { fill: var(--red); background-color: var(--red); }
.chart-color-4 { fill: var(--navy); background-color: var(--navy); }
.chart-color-5 { fill: var(--warning); background-color: var(--warning); }

.login-page { background: radial-gradient(circle at 20% 10%, #e4eef9, transparent 36%), var(--paper); min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 410px); padding: 38px; background: white; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ball-mark { font-size: 2rem; margin-bottom: 14px; }
.login-card h1 { font-size: 2.1rem; }
.login-form { display: grid; gap: 14px; margin-top: 25px; }
.form-error { color: #9b252a; background: #fff0ef; padding: 8px 10px; border-radius: 6px; font-size: .84rem; margin: 0; }

@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 680px); }
  .site-header { padding: 0 14px; }
  .season-label { display: none; }
  .presence { margin-left: auto; }
  .control-card { grid-template-columns: 1fr; gap: 12px; }
  .actions-wrap { justify-content: start; }
  .availability-card, .history-layout { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .players-grid { grid-template-columns: 1fr; }
  .teams-heading { align-items: start; }
  .charts-heading { align-items: start; }
  .chart-controls { flex-wrap: wrap; }
  .chart-group-heading { align-items: start; }
}

@media (max-width: 500px) {
  .settings-pair { grid-template-columns: 1fr; }
}

@media (min-width: 801px) and (max-width: 1180px) {
  .control-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions-wrap { justify-content: start; }
  .players-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@page { size: landscape; margin: .3in; }

@media print {
  .site-header, .hero, .tabs, .control-card, .availability-card, .summary-grid, .status-card, .inline-actions, .grid-note { display: none !important; }
  html, body, .shell, #lineup, .tab-panel, .lineup-card, .table-wrap { background: white !important; }
  html, body { width: 100%; margin: 0; }
  body { color: #050505; font-family: "Graduate", Rockwell, Georgia, serif; font-size: 12pt; }
  .shell { width: 100%; margin: 0; }
  .tab-panel { display: none !important; }
  #lineup { display: block !important; }
  .lineup-card { box-shadow: none; border: 0; padding: 0; }
  .lineup-heading { display: none !important; }
  .print-lineup-header { display: grid; grid-template-columns: 2.05in 1fr; align-items: center; min-height: 2in; border: 1px solid #555; margin-bottom: .16in; }
  .print-lineup-header img { display: block; width: 1.88in; height: 1.88in; margin: .05in auto; object-fit: contain; }
  .print-lineup-header div { padding: .08in .14in; text-align: center; }
  .print-lineup-header h1 { margin: 0; font: 400 27pt/1.3 "Graduate", Rockwell, Georgia, serif; letter-spacing: .025em; }
  .print-lineup-header p { margin: .08in 0 0; font-size: 18pt; }
  table { min-width: 0; table-layout: fixed; border: 1px solid #777; font-size: 13pt; }
  th, td { border: 1px solid #9b9b9b !important; padding: 7px; vertical-align: middle; }
  th { color: #050505; font: 400 13pt/1 "Graduate", Rockwell, Georgia, serif; letter-spacing: 0; }
  #lineup-table th:nth-child(3), #lineup-table td:nth-child(3) { width: 2.85in; }
  #lineup-table th.position-cell, #lineup-table td.position-cell { width: .86in; }
  #lineup-table th.batting-order, #lineup-table td.batting-order { display: none; }
  .position-control, .position-select, .position-lock, .inning-lock { display: none; }
  .screen-player-name, .screen-player-heading, .screen-inning-heading { display: none !important; }
  .print-player-name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; column-gap: .32em; font: 400 16pt/1 "Graduate", Rockwell, Georgia, serif; font-variant-caps: small-caps; }
  .print-first-name { text-align: right; }
  .print-last-name { text-align: left; }
  .print-inning-heading { display: inline; }
  .print-position { display: block; color: #050505; font: 400 13pt/1 "Graduate", Rockwell, Georgia, serif; }
  .conflict-connectors { display: none !important; }
  #lineup-table td[data-pos="DH"] { background-color: #efbbb8 !important; }
  #lineup-table td[data-pos="LF"], #lineup-table td[data-pos="CF"], #lineup-table td[data-pos="RF"] { background-color: #f7d66c !important; }
  #lineup-table td[data-pos="P"], #lineup-table td[data-pos="C"], #lineup-table td[data-pos="1B"], #lineup-table td[data-pos="2B"], #lineup-table td[data-pos="SS"], #lineup-table td[data-pos="3B"] { background-color: #b6ddcc !important; }
  #lineup-table td[data-pos] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
