:root { color-scheme:dark; --bg:#0b0c0e; --surface:#13161a; --raised:#1b2026; --ink:#f4f2ec; --muted:#b7bec7; --line:#39414b; --brand:#f0cd4a; --on-brand:#141414; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif; }
body[data-team="amherst"] { --brand:#ff3030; --on-brand:#0b0c0e; min-height:100vh; background:radial-gradient(circle at 10% 10%,rgba(185,28,28,.18),transparent 45%),linear-gradient(145deg,#090a0c,#0e1014 55%,#0b0c0e); background-repeat:no-repeat; }
a { color:var(--brand); }
.app-header,.matops-app { width:min(100% - 32px,980px); margin-inline:auto; }
.app-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding-block:16px; }
.app-brand { display:inline-flex; align-items:center; gap:8px; font-size:24px; font-weight:700; color:#f0cd4a; text-decoration:none; }
#practice-picker { margin-top:12px; }
#practice-picker label { font-size:14px; margin-bottom:4px; }
.app-actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; min-width:0; }
.app-actions>button { flex:none; }
.sync-indicator { min-width:0; max-width:180px; text-align:right; }
.sync-indicator #sync-status { font-size:12px; line-height:1.3; margin:0; }
.sync-indicator #sync-status::before { content:""; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--muted); vertical-align:middle; }
.sync-indicator #sync-status[data-state="normal"]::before { background:#7cce98; }
.sync-indicator #sync-status[data-state="warning"]::before { background:#f0cd4a; }
.sync-indicator #sync-status[data-state="attention"]::before { background:#ff9b96; }
.app-header .sync-indicator button { min-height:28px; padding:3px 6px; margin-top:4px; font-size:11px; max-width:100%; }
.app-navigation { width:min(100% - 32px,980px); margin:0 auto 12px; display:flex; flex-wrap:wrap; gap:8px; }
.app-navigation a,.app-navigation button { display:inline-flex; align-items:center; min-height:48px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-weight:600; text-decoration:none; }
.matops-app { padding-block:8px 32px; }
h1 { font-size:24px; line-height:1.2; margin:0 0 12px; }
h2 { font-size:20px; margin:0 0 12px; }
h3 { font-size:18px; }
p { margin:8px 0; }
.app-panel { border:1px solid var(--line); border-radius:12px; background:var(--surface); padding:16px; margin-bottom:16px; }
.workspace-identity { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.workspace-identity h1 { margin:0; }
.workspace-identity img { object-fit:contain; flex:none; border-radius:6px; background:#08090b; padding:4px; }
.app-muted,.meta { color:var(--muted); font-size:14px; }
.day-checklists { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:8px 0; margin-bottom:12px; }
.day-checklists>select { margin-bottom:10px; font-size:16px; }
.day-checklist-create { display:flex; align-items:center; gap:8px; }
.day-checklist-create input { flex:1; min-width:0; font-size:16px; }
.day-checklist-create button { flex:none; font-size:14px; }
.day-checklist-mark { min-width:44px; min-height:44px; padding:6px; font-size:24px; line-height:1; }
.day-checklist-mark[aria-pressed="true"] { color:var(--on-brand); background:var(--brand); }
@media(max-width:359px) { .day-checklist-create { flex-wrap:wrap; } .day-checklist-create input { flex-basis:100%; } }
.account-options { position:relative; }
.account-options summary { display:flex; align-items:center; justify-content:center; width:48px; min-height:48px; border:1px solid var(--line); border-radius:8px; background:var(--raised); color:var(--ink); font-size:24px; cursor:pointer; list-style:none; }
.account-options summary::-webkit-details-marker { display:none; }
#account-options-menu { position:absolute; right:0; top:calc(100% + 6px); z-index:20; padding:8px; min-width:150px; border:1px solid var(--line); border-radius:8px; background:var(--raised); box-shadow:0 8px 24px #0008; }
#account-options-menu button { width:100%; }
button,input,select { font:inherit; min-height:48px; border-radius:8px; border:1px solid var(--line); padding:10px 12px; }
button { color:var(--ink); background:var(--raised); cursor:pointer; }
button.primary { background:var(--brand); color:var(--on-brand); border-color:transparent; font-weight:700; box-shadow:0 3px 0 #0008; }
button:disabled { opacity:.55; cursor:default; }
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
input,select { background:var(--bg); color:var(--ink); width:100%; min-width:0; }
label { display:block; font-weight:600; margin-bottom:8px; }
.app-form { display:grid; gap:12px; max-width:560px; }
.app-check { display:flex; align-items:center; gap:12px; font-weight:400; }
.app-check input { width:24px; min-height:24px; flex:none; }
.app-form-actions { display:flex; flex-wrap:wrap; gap:8px; }
.workspace-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-block:0 16px; }
.workspace-tabs button[aria-current="page"] { color:var(--on-brand); background:var(--brand); font-weight:700; }
.roster-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px,.4fr); gap:12px; }
.workspace-roster-row,.workspace-history-row { border:1px solid var(--line); border-radius:8px; padding:12px; margin-block:12px; overflow-wrap:anywhere; }
.workspace-roster-row>strong { font-size:16px; line-height:1.25; }
.workspace-roster-row { box-sizing:border-box; position:relative; min-height:66px; padding:10px; margin-block:7px; }
.workspace-roster-row>strong,.workspace-roster-row>p { display:block; max-width:calc(100% - 80px); }
.workspace-roster-row:not(:has(.roster-editor))>strong,.workspace-roster-row:not(:has(.roster-editor))>p { max-width:100%; }
.workspace-roster-row>p { color:var(--muted); font-size:13px; line-height:1.3; margin:3px 0 0; }
.roster-editor>summary { box-sizing:border-box; position:absolute; top:10px; right:10px; display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--raised); font-size:13px; list-style:none; }
.roster-editor>summary::-webkit-details-marker { display:none; }
.roster-editor>summary::after { content:"+"; }
.roster-editor[open]>summary::after { content:"-"; }
.roster-editor[open] { border-top:1px solid var(--line); margin-top:12px; padding-top:12px; }
.roster-maintenance { margin-top:20px; padding-top:12px; border-top:1px solid var(--line); }
.roster-maintenance h4 { margin:0; font-size:14px; }
.roster-maintenance p { font-size:13px; color:var(--muted); }
.roster-status-action { background:transparent; color:var(--muted); font-size:13px; min-height:44px; }
#workspace-feedback>p:not(:empty) { border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin-block:8px; background:var(--surface); }
#workspace-feedback>p:empty,#practice-conflicts:empty { display:none; }
.workspace-history-row>button { text-align:left; width:100%; }
#today-practices { margin-bottom:12px; }
.history-attendance { border-collapse:collapse; width:100%; margin-block:12px; table-layout:fixed; }
.history-attendance th,.history-attendance td { border-bottom:1px solid var(--line); padding:10px 6px; text-align:left; overflow-wrap:anywhere; }
#history-detail { margin-top:24px; }
#history-detail>button { margin:4px; }
#walkin-panel { margin-block:8px 16px; border-block:1px solid var(--line); }
#walkin-form { padding-bottom:16px; }
#walkin-matches { display:grid; gap:8px; }
#walkin-matches:empty { display:none; }
#walkin-matches button { text-align:left; }
.coach-added { display:block; color:var(--muted); font-size:12px; }
summary { cursor:pointer; min-height:48px; align-content:center; font-weight:600; }
.sync-bar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; }
#sync-status { font-weight:600; }
#sync-status[data-state="warning"],.attention { color:#ffd48a; }
.prototype-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-block:16px; }
.stat { text-align:left; min-width:0; padding:8px; }
.stat-label { display:block; font-size:14px; }
.stat-value { display:block; font-weight:700; font-size:20px; font-variant-numeric:tabular-nums; }
.stat.is-active { border-color:var(--brand); box-shadow:inset 0 0 0 1px var(--brand); }
.roster-list { display:grid; gap:8px; }
.roster-row { border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--surface); }
.roster-row.is-marked { border-left:4px solid var(--brand); padding-left:9px; }
.roster-row[data-save-state="attention"] { border-color:#c98b36; }
.row-save-status { display:block; min-height:20px; font-size:14px; color:var(--muted); }
.roster-row[data-save-state="attention"] .row-save-status { color:#ffd48a; font-weight:600; }
.row-top { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; }
.row-mark { display:flex; align-items:center; gap:12px; text-align:left; border:0; background:transparent; padding:0; min-width:0; width:100%; }
.row-text { min-width:0; }
.name { font-size:18px; font-weight:600; overflow-wrap:anywhere; }
.check { display:grid; place-items:center; width:32px; height:32px; flex:none; border:2px solid var(--line); border-radius:50%; font-weight:700; }
.check.is-empty { border-style:dashed; }
.status-chip { min-width:88px; font-weight:600; }
.present { color:#a3efb3; background:#193323; }
.late { color:#abd7ff; background:#1c3047; }
.absent { color:#ffb2ab; background:#472421; }
.excused { color:#d9dfe8; background:#30343b; }
.sick { color:#ffe19c; background:#40371e; }
.status-picker { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.status-option.is-active { outline:2px solid var(--brand); outline-offset:1px; }
.filter-banner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:12px; border:1px solid var(--brand); border-radius:8px; }
.conflict-row { border:1px solid #c98b36; border-radius:8px; padding:12px; margin-block:8px; }
#print-practice { display:none; }
@media(min-width:700px) { .app-header,.matops-app { width:min(100% - 48px,980px); } .app-panel { padding:24px; } }
@media(max-width:360px) { .stat-label { font-size:12px; } .row-top { gap:8px; } .row-mark { gap:8px; } }
@media print { @page { margin:12mm; } body { background:white; color:black; } body > :not(#print-practice) { display:none !important; } #print-practice { display:block; font:11pt sans-serif; } table { border-collapse:collapse; width:100%; } td,th { border:1px solid #777; padding:8px; text-align:left; } tr { break-inside:avoid; } }

/* Attendance comes first; setup and staff controls remain secondary. */
.matops-app>.app-panel:first-child { padding:8px 12px; margin-bottom:8px; }
.workspace-identity { margin:0; gap:8px; }
.workspace-identity img { width:36px; height:32px; }
.workspace-identity h1 { font-size:18px; }
.app-header { display:grid; grid-template-columns:auto minmax(0,1fr); padding-block:8px; }
.app-header .app-brand { font-size:20px; }
.app-header button { min-height:36px; padding:6px 10px; font-size:14px; }
.workspace-tabs { gap:6px; margin-bottom:8px; }
.workspace-tabs button { flex:1; padding:8px; font-size:14px; }
#practice-message:empty,#manage-status:empty,.row-save-status:empty { display:none; }
#sync-status { font-size:13px; margin:2px 0; }
#practice-title { margin-bottom:2px; }
#practice-context { margin-top:0; }
#team-roster-view>.attendance-heading { align-items:center; flex-wrap:wrap; gap:8px; }
#team-roster-view>.attendance-heading h2 { margin:0; white-space:nowrap; }
#roster-actions-slot { display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; }
#roster-actions-slot>.roster-sort-select,#roster-actions-slot .attendance-actions>summary { box-sizing:border-box; height:44px; min-height:44px; font-size:14px; line-height:22px; padding:10px 12px; background:var(--raised); white-space:nowrap; }
#roster-actions-slot>.roster-sort-select { width:auto; min-width:0; max-width:100%; }
#team-roster-view #roster-season { margin:10px 0 4px; font-size:13px; color:var(--muted); }
#team-roster-view #roster-count { margin:4px 0 12px; font-size:14px; }
#team-roster-view .roster-toolbar { grid-template-columns:minmax(0,1fr) 100px; gap:10px; margin-bottom:10px; }
#team-roster-view .roster-toolbar label { font-size:13px; margin:0; }
#team-roster-view .roster-toolbar input,#team-roster-view .roster-toolbar select { box-sizing:border-box; height:44px; min-height:44px; margin-top:5px; font-size:14px; }
@media(max-width:600px) {
  #team-roster-view { padding:12px; }
  #roster-actions-slot { width:100%; }
  #roster-actions-slot>.roster-sort-select { flex:1; }
}

.school-choices { display:grid; gap:12px; }
.school-choices button { min-height:64px; text-align:left; font-weight:700; }

.attendance-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.attendance-context { min-width:0; overflow-wrap:anywhere; }
#roll-call .attendance-heading { flex-wrap:wrap; }
#roll-call .attendance-context { flex:1 1 180px; }
#today-actions-slot { display:flex; align-items:center; gap:8px; max-width:100%; }
.attendance-sort { position:relative; min-width:0; margin:0; }
.attendance-sort select,.attendance-actions>summary { box-sizing:border-box; min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:8px; background:var(--raised); color:var(--ink); font-size:14px; font-weight:600; line-height:22px; }
.attendance-sort select { appearance:none; width:auto; max-width:100%; padding-right:34px; cursor:pointer; }
.attendance-sort::after { content:"\25be"; position:absolute; right:14px; top:50%; transform:translateY(-50%); font-size:14px; pointer-events:none; }
.planner-matrix-scroll { max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:10px; margin-block:12px 24px; }
.planner-matrix { width:100%; border-collapse:separate; border-spacing:0; font-size:14px; }
.planner-matrix th,.planner-matrix td { padding:12px; border-bottom:1px solid var(--line); border-right:1px solid var(--line); text-align:center; vertical-align:middle; }
.planner-matrix th:first-child { position:sticky; left:0; z-index:1; min-width:125px; max-width:190px; text-align:left; background:var(--surface); }
.planner-matrix thead th { background:var(--raised); min-width:120px; }
.planner-matrix thead th:first-child { background:var(--raised); z-index:2; }
.planner-matrix thead button { width:100%; border:0; background:transparent; font-size:14px; font-weight:600; padding:4px; }
.planner-matrix tbody td { padding:0; }
.planner-destination-choice { display:grid; place-items:center; min-height:48px; cursor:pointer; }
.planner-matrix input[type=radio] { display:block; appearance:none; width:24px; height:24px; min-height:24px; padding:0; margin:12px auto; border:2px solid var(--line); border-radius:50%; background:var(--bg); cursor:pointer; box-shadow:0 0 0 10px transparent; }
.planner-matrix input[type=radio]:checked { border-color:var(--brand); background:var(--brand); box-shadow:inset 0 0 0 5px var(--bg); }
.planner-matrix input[type=radio]:disabled { opacity:.5; cursor:default; }
.planner-matrix td:has(input:checked) { background:color-mix(in srgb,var(--brand) 8%,var(--surface)); }
.planner-matrix-count { display:block; margin-top:5px; font-size:12px; font-weight:400; }
.planner-class-presets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-block:12px; }
.planner-class-presets button { min-width:0; min-height:44px; padding:8px 6px; font-size:14px; white-space:nowrap; }
.planner-class-presets button[aria-pressed=true] { background:var(--brand); color:var(--on-brand,#111); border-color:var(--brand); font-weight:700; }
.planner-class-presets a { grid-column:1/-1; font-size:12px; color:var(--brand); margin-top:2px; }
.planner-lineup { display:grid; gap:5px; margin-block:12px; }
.planner-lineup-header,.planner-lineup-class { display:grid; grid-template-columns:48px minmax(0,1fr); column-gap:6px; align-items:center; min-width:0; padding:6px; }
.planner-lineup-header { position:sticky; top:0; z-index:2; grid-template-columns:48px repeat(2,minmax(0,1fr)); font-size:12px; font-weight:600; color:var(--muted); background:var(--surface); border:1px solid transparent; }
.planner-lineup-class { border:1px solid var(--line); border-radius:7px; }
.planner-lineup-class h4 { grid-column:1; grid-row:1; margin:0; font-size:14px; line-height:1.2; overflow-wrap:anywhere; }
.planner-lineup-controls { grid-column:2; grid-row:1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.planner-lineup-controls select { display:block; box-sizing:border-box; width:100%; min-width:0; margin:0; min-height:44px; padding:8px 5px; font-size:13px; }
.planner-lineup-class>.planner-review { grid-column:1/-1; margin:6px 0 0; }
.planner-toolbar .roster-sort-select { width:auto; max-width:100%; height:44px; min-height:44px; padding:8px 12px; font-size:14px; background:var(--raised); }
.planner-matrix tbody th strong { display:block; padding-right:12px; }
.planner-matrix-save-status { position:absolute; top:8px; right:6px; width:7px; height:7px; border-radius:50%; background:var(--brand); }
.planner-matrix-save-status>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.planner-matrix-conflict th:first-child { border-left:3px solid var(--brand); }
.planner-matrix-conflict .planner-matrix-count:last-child { color:var(--brand); }
.planner-matrix tr:last-child>* { border-bottom:0; }
.planner-matrix tr>*:last-child { border-right:0; }
.planner-matrix-caption { padding:12px; text-align:left; font-weight:600; background:var(--raised); }
.planner-event-editor { display:grid; gap:14px; max-width:600px; }
.planner-event-editor label { display:grid; gap:6px; }
.planner-event-editor input { box-sizing:border-box; width:100%; }
.planner-add-event { margin-top:12px; }
@media(max-width:430px) { .planner-matrix th,.planner-matrix td { padding:10px; } .planner-matrix th:first-child { min-width:110px; max-width:130px; } }
#practice-location { margin:0; }
.attendance-actions { position:relative; flex:none; }
.attendance-actions>summary { list-style:none; }
.attendance-actions>summary::-webkit-details-marker { display:none; }
.attendance-actions>summary::after { content:" \25be"; }
.attendance-action-items { position:absolute; z-index:5; top:calc(100% + 6px); right:0; width:230px; max-width:calc(100vw - 64px); padding:6px; background:var(--raised); border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 24px #0008; }
.attendance-action-items button,.attendance-action-items a { display:flex; align-items:center; width:100%; min-height:44px; padding:10px; border:0; border-radius:4px; text-align:left; color:var(--ink); font-size:14px; text-decoration:none; background:transparent; }
.attendance-action-items button:hover,.attendance-action-items a:hover { background:var(--surface); }
#walkin-panel.attendance-walkin:not([open]) { display:none; }
#walkin-panel.attendance-walkin>summary { display:none; }
#walkin-panel.attendance-walkin[open] { margin-block:12px; padding-top:12px; border-bottom:0; }

.event-edit-form { margin-block:16px; padding-block:12px; border-block:1px solid var(--line); }
.event-edit-form h3 { margin:0; }

.app-actions { flex-wrap:wrap; }
.app-header .install-link { border:0; background:transparent; padding:6px; color:var(--muted); font-size:13px; min-height:44px; text-decoration:underline; text-underline-offset:3px; }
.offline-notice { border:1px solid var(--brand); border-radius:8px; padding:10px 12px; margin-bottom:12px; }
.offline-notice p { margin:0 0 8px; }
#private-install-help { width:min(440px,calc(100% - 32px)); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid var(--line); border-radius:12px; padding:20px; color:var(--ink); background:var(--surface); }
#private-install-help::backdrop { background:#000a; }
#history-back { min-height:44px; margin-bottom:12px; font-size:14px; }

.roster-row.has-exception-picker { position:relative; }
.roster-row.has-exception-picker.is-focused { z-index:10; }
.exception-toggle { display:inline-flex; align-items:center; justify-content:space-between; gap:6px; width:104px; min-width:104px; font-size:14px; }
.exception-toggle::after { content:"\25be"; font-size:12px; }
.exception-toggle[aria-expanded="true"]::after { content:"\25b4"; }
.exception-picker { position:absolute; top:calc(100% - 4px); right:8px; z-index:11; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:min(280px,calc(100% - 16px)); margin:0; padding:10px; background:var(--raised); border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px #0009; }
.exception-picker-heading { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; min-width:0; font-size:14px; }
.exception-picker-heading button { min-width:44px; min-height:44px; padding:4px 8px; font-size:24px; line-height:1; }
.exception-picker .status-option { min-height:48px; padding:10px 6px; font-size:14px; font-weight:600; }
.exception-picker .clear-mark { color:var(--muted); }

.demo-workspace-notice{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 20px;padding:8px 16px;background:#f2d448;color:#111;font-size:13px}.demo-workspace-notice button,.demo-workspace-notice a{font:inherit;color:inherit;background:transparent;border:0;padding:4px;text-decoration:underline;cursor:pointer}.demo-workspace-notice span{font-weight:600}@media print{.demo-workspace-notice{display:none}}

.planner-heading h2{margin:0}.planner-heading p{margin:4px 0 12px}.planner-status:empty{display:none}.planner-calendar-controls,.planner-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:16px 0}.planner-calendar-controls h3{margin:0 auto 0 0}.planner-calendar-controls button{min-width:44px;min-height:44px}.planner-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.planner-weekday{font-size:12px;text-align:center;color:#b8c5d4;padding:4px 0}.planner-calendar .planner-day{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;min-height:72px;padding:9px;border-radius:7px}.planner-day[aria-pressed=true]{background:var(--brand);color:var(--on-brand);border-color:var(--brand)}.planner-day-count{font-size:12px}.planner-today:not([aria-pressed=true]){border-color:var(--brand)}.planner-event-card{display:flex;flex-direction:column;text-align:left;gap:5px;width:100%;margin:8px 0;padding:14px}.planner-day-title{margin:24px 0 10px}.planner-event-heading{margin-top:18px}.planner-event-heading h3{margin:0}.planner-summary{margin:14px 0;font-weight:600}.planner-footnote{font-size:13px;margin:18px 0}.planner-settings{display:grid;grid-template-columns:1fr 2fr 1fr;gap:12px;padding:12px 0}.planner-config summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.planner-settings label,.planner-entry-controls label,.planner-toolbar label{display:flex;flex-direction:column;gap:5px;font-size:13px}.planner-entry-controls input,.planner-entry-controls select,.planner-settings input,.planner-settings select,.planner-toolbar select{width:100%;min-height:44px;box-sizing:border-box}.planner-toolbar h3{margin:0 auto 0 0}.planner-roster-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(240px,1fr);gap:12px;align-items:center;border-top:1px solid #39434e;padding:12px 0}.planner-person,.planner-coach-row{display:flex;align-items:center;gap:10px;min-height:44px}.planner-person input,.planner-coach-row input{width:22px;height:22px;flex-shrink:0;accent-color:var(--brand)}.planner-roster-row p{margin:3px 0}.planner-entry-controls{display:flex;align-items:center;gap:10px}.planner-entry-controls label{flex:1;min-width:0}.planner-overlap{grid-column:1/-1;color:#f2d448;font-size:13px;margin:0}.planner-class-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;margin:16px 0}.planner-class-slot{border:1px solid #39434e;border-radius:7px;padding:10px}.planner-class-slot p{font-size:13px;margin:4px 0 0}.planner-review{padding:12px;border:1px solid #a58636;border-radius:7px;margin:12px 0}.planner-review button{margin:4px 8px 0 0}.workspace-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:600px){.planner-roster-row{grid-template-columns:1fr;gap:6px}.planner-settings{grid-template-columns:1fr}.planner-calendar{gap:3px}.planner-calendar .planner-day{padding:5px;min-height:58px}.planner-day-count{font-size:10px}.workspace-tabs button{padding:10px 3px;font-size:13px;min-width:0}.planner-entry-controls{padding-left:32px}.planner-calendar-controls h3{font-size:17px}}@media print{#schedule-view{display:none}}

.season-schedule-viewer{width:min(1100px,calc(100vw - 24px));max-width:none;height:90dvh;max-height:90dvh;padding:16px;border:1px solid #39434e;border-radius:12px;background:#13161a;color:#f4f5f6}.season-schedule-viewer[open]{display:flex;flex-direction:column;gap:10px}.schedule-viewer-header,.schedule-viewer-tools{display:flex;align-items:center;gap:12px;flex-shrink:0}.schedule-viewer-header h2{margin:0;font-size:18px}.schedule-viewer-close{margin-left:auto;min-width:48px;min-height:48px;font-size:24px}.schedule-viewer-tools button{min-width:48px;min-height:48px}.schedule-viewer-tools span{min-width:48px;text-align:center}.schedule-viewer-page{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#242a31;border-radius:6px;touch-action:pan-x pan-y pinch-zoom}.schedule-viewer-page img{display:block;max-width:none;height:auto;user-select:none}.season-schedule-viewer>p{margin:0;flex-shrink:0;font-size:13px}@media(max-width:480px){.season-schedule-viewer{padding:10px}.schedule-viewer-header h2{font-size:16px}}

.planner-roster-row{padding:8px 0}.planner-roster-row .planner-person{min-height:32px}.planner-roster-row>.planner-overlap{margin:0}.planner-roster-row>div>p{font-size:13px;margin:0 0 0 32px}.planner-entry-controls:empty{display:none}
.practice-plan-dialog{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-height:calc(100dvh - 32px);padding:20px;background:#12161b;color:#f5f7fa;border:1px solid #3b4651;border-radius:12px;overflow:auto}.practice-plan-dialog::backdrop,.practice-plan-image::backdrop{background:rgba(0,0,0,.76)}.practice-plan-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #35404b;padding-bottom:12px}.practice-plan-header h2{margin:0;font-size:22px}.practice-plan-header p{margin:4px 0 0;font-size:13px}.practice-plan-close{flex:none;min-width:44px;min-height:44px;font-size:26px;padding:0}.practice-plan-status{font-size:13px;color:#c3cfda;margin:12px 0}.practice-plan-body{display:grid;gap:16px}.practice-plan-body h3,.practice-plan-body p{margin:0}.practice-plan-body>label,.practice-plan-body section>label{display:grid;gap:6px;font-size:14px;font-weight:600}.practice-plan-body textarea,.practice-plan-body input{box-sizing:border-box;width:100%;min-width:0;background:#0a0d10;color:#f5f7fa;border:1px solid #3b4651;border-radius:7px;padding:11px;font:inherit}.practice-plan-body textarea{resize:vertical;min-height:170px;line-height:1.5}.practice-plan-body section{display:grid;gap:12px}.practice-plan-body button{min-height:44px}.practice-plan-body .app-muted{font-size:13px;line-height:1.5}.practice-plan-notes{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;padding:14px;background:#191f26;border:1px solid #35404b;border-radius:8px}.practice-plan-dialog a{color:#f2d448;overflow-wrap:anywhere}.practice-plan-resources{display:grid;gap:10px}.practice-plan-resource{padding:12px 14px;border-left:3px solid #f2d448;background:#191f26;border-radius:0 6px 6px 0}.practice-plan-resource a{font-weight:600}.practice-plan-resource p{margin:5px 0 0}.practice-plan-link-row{display:grid;gap:8px;padding:12px;border:1px solid #35404b;border-radius:8px;margin-bottom:10px}.practice-plan-link-top{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}.practice-plan-link-top button{font-size:22px;padding:0}.practice-plan-file{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #35404b;padding:10px 0;overflow-wrap:anywhere}.practice-plan-file>div{min-width:0}.practice-plan-file strong,.practice-plan-file small{display:block}.practice-plan-file small{margin-top:4px}.practice-plan-file button{flex:none}.practice-plan-file.is-removed strong{text-decoration:line-through;opacity:.6}.practice-plan-footer{display:flex;gap:10px;flex-wrap:wrap;padding-top:12px;border-top:1px solid #35404b}.practice-plan-warning,.practice-plan-conflict{color:#f2d448;font-size:14px}.practice-plan-conflict:empty{display:none}.practice-plan-conflict{padding:12px;border:1px solid #756b38;border-radius:8px;display:grid;gap:10px}.practice-plan-history{font-size:13px;color:#bfcbd7}.practice-plan-history p{margin:8px 0}.practice-plan-image{box-sizing:border-box;width:min(1000px,calc(100% - 16px));max-height:calc(100dvh - 16px);padding:12px;background:#12161b;color:white;border:1px solid #3b4651;border-radius:10px}.practice-plan-image-tools{display:flex;align-items:center;gap:8px;margin-bottom:12px}.practice-plan-image-tools strong{margin-right:auto;overflow-wrap:anywhere}.practice-plan-image-tools button{min-width:44px;min-height:44px}.practice-plan-image-page{overflow:auto;max-height:75dvh}.practice-plan-image-page img{display:block;width:100%;max-width:none}@media(max-width:430px){.practice-plan-dialog{padding:14px}.practice-plan-header h2{font-size:20px}.practice-plan-body{gap:14px}.practice-plan-file{align-items:flex-start}.practice-plan-image-tools{flex-wrap:wrap}.practice-plan-image-tools strong{width:100%}}
.practice-plan-header{position:sticky;top:-20px;z-index:2;background:#12161b;padding-top:4px}.practice-plan-footer{position:sticky;bottom:-20px;z-index:1;background:#12161b;padding-bottom:12px}@media(max-width:430px){.practice-plan-header{top:-14px}.practice-plan-footer{bottom:-14px}}

/* Phone event assignments keep every event column visible together. */
.practice-timer { box-sizing:border-box; width:min(620px,calc(100% - 20px)); max-height:calc(100dvh - 20px); overflow:auto; background:var(--surface,#13161a); color:var(--ink,#fff); border:1px solid var(--line,#35404b); border-radius:16px; padding:20px; }
.practice-timer::backdrop { background:#000b; }
.practice-timer,.practice-timer * { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.practice-timer { touch-action:manipulation; }
.practice-timer input,.practice-timer textarea,.practice-timer [contenteditable=true] { -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; }
.practice-timer input,.practice-timer select,.practice-timer textarea { font-size:16px; }
.practice-timer-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.practice-timer-header h2 { margin:0; }
.practice-timer button { min-height:48px; }
.practice-timer-modes,.practice-timer-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; }
.practice-timer-modes button { font-size:14px; padding:10px 8px; }
.practice-timer-modes [aria-pressed=true],.practice-timer-controls button:first-child { background:var(--brand,#f2d448); color:#101216; border-color:var(--brand,#f2d448); font-weight:700; }
.practice-timer-phase { text-align:center; margin:20px 0 0; font-size:22px; font-weight:800; letter-spacing:.06em; }
.practice-timer-clock { font-variant-numeric:tabular-nums; text-align:center; font-size:clamp(64px,20vw,110px); line-height:1.1; font-weight:800; }
.practice-timer-round { text-align:center; color:var(--muted,#b8c5d4); margin:8px 0 16px; }
.practice-timer[data-phase=work] .practice-timer-phase { color:#7dde9d; }
.practice-timer[data-phase=second] .practice-timer-phase { color:#f2d448; }
.practice-timer-settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:20px; }
.practice-timer-settings label { display:flex; flex-direction:column; justify-content:space-between; gap:6px; font-size:13px; min-width:0; }
.practice-timer input[type=number] { box-sizing:border-box; width:100%; min-height:48px; }
.practice-timer-sound { display:flex; align-items:center; gap:16px; margin-top:20px; }
.practice-timer-sound label { flex:1; min-width:0; }
.practice-timer-sound label span { float:right; }
.practice-timer input[type=range] { display:block; width:100%; min-height:44px; padding:0; accent-color:var(--brand,#f2d448); }
.practice-timer-hint,.practice-timer-audio-status { font-size:13px; line-height:1.4; color:var(--muted,#b8c5d4); margin:12px 0 0; }
.practice-timer-audio-status { min-height:1.4em; }
.practice-timer-ending { display:flex; flex-direction:column; gap:6px; margin-top:20px; font-size:13px; }
.practice-timer-ending select { width:100%; min-width:0; min-height:48px; }
.practice-timer-horn { margin-top:24px; padding-top:20px; border-top:1px solid var(--line,#35404b); }
.practice-timer-horn-button { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:64px!important; font-size:20px; font-weight:700; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.practice-timer-horn-button svg { width:32px; height:32px; fill:none; stroke:currentColor; stroke-width:2; stroke-linejoin:round; stroke-linecap:round; flex:none; }
.practice-timer-horn-button[aria-pressed=true] { background:var(--brand,#f2d448); color:#101216; border-color:var(--brand,#f2d448); box-shadow:inset 0 0 0 3px #101216; }
.practice-timer-horn-button:focus-visible { outline:3px solid var(--brand,#f2d448); outline-offset:3px; }
@media(max-width:430px){.practice-timer{padding:14px}.practice-timer-header h2{font-size:20px}}
@media(max-width:900px) {
  .planner-matrix-scroll { overflow-x:hidden; overflow-y:auto; max-height:68dvh; overscroll-behavior:contain; overflow-anchor:none; }
  .planner-matrix { table-layout:fixed; width:100%; min-width:0; max-width:100%; }
  .planner-matrix th,.planner-matrix td { min-width:0; max-width:none; padding:0; overflow-wrap:anywhere; }
  .planner-matrix th:first-child { width:34%; min-width:0; max-width:none; padding:8px 6px; }
  .planner-matrix thead th { position:sticky; top:0; z-index:3; min-width:0; vertical-align:bottom; }
  .planner-matrix thead th:first-child { z-index:3; }
  .planner-matrix thead button { white-space:normal; overflow-wrap:anywhere; }
  .planner-matrix tbody th strong { display:block; font-size:13px; line-height:1.2; }
  .planner-matrix-count { font-size:11px; line-height:1.2; margin-top:3px; }
  .planner-destination-choice { width:100%; min-height:44px; }
  .planner-matrix input[type=radio] { width:18px; height:18px; min-height:18px; margin:0; }
  .planner-matrix-caption { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
@media(max-width:600px) {
  #schedule-view { padding:10px; }
  .planner-matrix thead th { height:148px; font-size:12px; }
  .planner-matrix thead .planner-matrix-heading { position:absolute; right:calc(50% + 3px); bottom:28px; display:block; width:128px; min-height:0; padding:0; margin:0; border:0; background:transparent; transform:rotate(55deg); transform-origin:100% 100%; text-align:right; font-size:11px; line-height:1.15; white-space:normal; overflow-wrap:anywhere; }
  .planner-matrix thead .planner-matrix-count { position:absolute; left:0; right:0; bottom:5px; margin:0; padding:0 1px; font-size:10px; line-height:1.1; }
}

/* Shared modal viewport correction. */
.practice-plan-dialog .practice-plan-body input,.practice-plan-dialog .practice-plan-body textarea,.practice-plan-dialog .practice-plan-body select { font-size:16px; }
dialog[data-practice-viewport] { position:fixed; inset:calc(var(--practice-viewport-top,0px) + 16px) 0 auto; margin:0 auto; max-height:calc(var(--practice-viewport-height,100dvh) - 32px); overscroll-behavior:contain; }
.practice-plan-dialog[data-practice-viewport] { touch-action:manipulation; }
