.week-range{font-weight:700;color:#475569;margin:8px 0 22px}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;min-width:0}.week-day{min-width:0;border:1px solid #dbe4ee;border-radius:8px;overflow:hidden;background:white}.week-day h3{font-size:13px;padding:12px 6px;margin:0;text-align:center;background:#edf4fc}.week-day h3 small{display:block;color:#64748b;font-weight:400;margin-top:4px}.week-track{position:relative;height:var(--week-height);background:repeating-linear-gradient(to bottom,transparent 0,transparent 89px,#e5edf5 89px,#e5edf5 90px)}.week-hour{position:absolute;color:#94a3b8;font-size:9px}.week-event{position:absolute;box-sizing:border-box;z-index:1;border-left:4px solid var(--team-ink,#2563eb);background:var(--team-bg,#dbeafe);color:#172b4d;border-radius:5px;padding:7px 4px;overflow:auto;overflow-wrap:anywhere;font-size:11px;line-height:1.4}.week-event strong,.week-event span,.week-event time{display:block}.week-event strong{font-size:14px}.week-event time{font-size:10px;margin-top:6px}.week-empty{position:relative;padding:30px 8px;color:#94a3b8;font-size:11px}.team-color-0{--team-ink:#2563eb;--team-bg:#dbeafe}.team-color-1{--team-ink:#0e7490;--team-bg:#cffafe}.team-color-2{--team-ink:#15803d;--team-bg:#dcfce7}.team-color-3{--team-ink:#7e22ce;--team-bg:#f3e8ff}.team-color-4{--team-ink:#c2410c;--team-bg:#ffedd5}.team-color-5{--team-ink:#be185d;--team-bg:#fce7f3}.team-color-6{--team-ink:#475569;--team-bg:#e2e8f0}dialog:has(.week-grid){width:min(1320px,96vw);max-width:96vw}.week-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.week-controls label{min-width:0}.coach-teams{display:flex;gap:12px;flex-wrap:wrap}.coach-teams label{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #dbe4ee;border-radius:6px}.coach-teams input{width:20px;min-height:20px}.demo-switch{max-width:220px;font-size:12px}.schedule-shell{max-width:1500px;margin:auto;padding:16px;font-family:Arial,sans-serif;color:#172b4d}.schedule-shell h1{font-size:24px}.schedule-shell *{box-sizing:border-box}
@media(max-width:900px){.week-grid{grid-template-columns:1fr;gap:14px}.week-day h3{text-align:left;padding:12px}.week-day h3 small{display:inline;margin-left:12px}.week-track{height:auto!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;background:none}.week-event{position:static;width:auto!important;height:auto!important;min-height:110px;padding:12px;font-size:13px}.week-event time{font-size:12px}.week-hour{display:none}.week-empty{margin:0;padding:10px;grid-column:1/-1}.demo-switch{max-width:100%;width:100%}.coach-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.coach-teams label{padding:8px}.week-controls>*{flex:1 1 140px}dialog:has(.week-grid){max-width:calc(100vw - 16px);width:calc(100vw - 16px)}}
@media(max-width:360px){.week-track{grid-template-columns:1fr}}
aside{overflow-y:auto}fieldset{min-width:0;border:1px solid #e2e8f0;border-radius:8px;margin:18px 0;padding:12px}legend{font-size:12px;color:#64748b;padding:0 6px}input[readonly]{background:#f3f6fa;color:#536177}
@media(max-width:1150px){header:has(.demo-switch) .header-date{display:none}}
@media(max-width:900px){header:has(.demo-switch){height:auto;min-height:65px;flex-wrap:wrap;padding:10px 12px}header:has(.demo-switch)>.actions{flex:1 0 100%}header:has(.demo-switch) .header-right{width:100%;min-width:0;flex-shrink:1;gap:6px}.header-right .demo-switch{flex:1;min-width:0;width:auto}.week-controls label input{width:100%;min-width:0}}

[data-match-scores][hidden]{display:none!important}.week-tabs{margin:16px 0}.week-matrix{table-layout:fixed;width:100%;border-collapse:separate;border-spacing:3px;font-size:12px}.week-matrix th,.week-matrix td{white-space:normal;overflow-wrap:anywhere;padding:10px;vertical-align:top;border:1px solid #d7e0ea;border-radius:5px}.week-matrix thead th{background:#e7eff9;font-size:12px}.week-matrix small{display:block;font-size:10px;margin-top:4px}.week-matrix tbody th,.week-matrix tbody td{background:var(--row-bg)}.week-matrix tbody th{color:#172b4d;font-size:17px}.matrix-event{background:#ffffffd9;border-left:3px solid #3b6b9e;padding:9px;margin-bottom:8px;border-radius:4px}.matrix-event:last-child{margin-bottom:0}.matrix-event>*{display:block;margin-bottom:4px}.matrix-event time{font-weight:800}.matrix-rest{display:block;color:#4a5d72;text-align:center;padding:12px 0}.matrix-day{display:none}dialog:has(.week-matrix){width:min(1320px,96vw);max-width:96vw}
@media(max-width:900px){.week-matrix,.week-matrix tbody,.week-matrix tr,.week-matrix td,.week-matrix tbody th{display:block;width:100%}.week-matrix thead{display:none}.week-matrix tr{margin-bottom:18px}.week-matrix tbody th{padding:14px}.week-matrix td{margin-top:3px}.matrix-day{display:block;font-weight:700;margin-bottom:8px}.matrix-rest{text-align:left;padding:4px 0}.week-tabs{display:flex}.week-tabs button{min-height:44px;flex:1}.week-event{min-height:140px}}

.published-views{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.published-views[hidden]{display:none}.published-views button{font:inherit;font-size:14px;min-height:44px;padding:10px 16px;border:1px solid #b8cce5;border-radius:7px;background:#f4f7fb;color:#334155;cursor:pointer}.published-views button[aria-pressed="true"]{background:#1765e8;border-color:#1765e8;color:white}.published-views button:focus-visible{outline:3px solid #69b8ff;outline-offset:3px}@media(max-width:600px){.published-views button{flex:1}}
/* Dense clusters keep their original time and team colour without inner scrollbars. */
.week-event{cursor:pointer}.week-event:focus-visible{outline:2px solid #1456b8;outline-offset:1px;z-index:2}
.week-event.week-event-compact{overflow:hidden;padding:6px 2px}.week-event-compact strong{font-size:11px;line-height:1.25}.week-event.week-event-strip{padding:0}
.week-event-bubble{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:290px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:16px;border:1px solid #bfcee3;border-radius:12px;background:#fff;color:#20324d;box-shadow:0 8px 32px #13283d30;font:14px/1.5 Arial,sans-serif;overflow:visible;overflow-wrap:anywhere;z-index:10000}
.week-event-bubble strong,.week-event-bubble b,.week-event-bubble span,.week-event-bubble time{display:block}.week-event-bubble strong{font-size:18px;color:#1456b8}.week-event-bubble b{margin:5px 0}.week-event-bubble time{margin-top:8px;color:#475569}
.week-event-bubble::before{content:"";position:absolute;width:12px;height:12px;left:calc(var(--arrow-x) - 6px);background:#fff;transform:rotate(45deg)}
.week-event-bubble[data-side=above]::before{bottom:-7px;border-right:1px solid #bfcee3;border-bottom:1px solid #bfcee3}.week-event-bubble[data-side=below]::before{top:-7px;border-left:1px solid #bfcee3;border-top:1px solid #bfcee3}
