.schedule-manager{margin:0 0 24px;padding:24px;border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);min-width:0}
.schedule-heading,.scheduled-section-heading,.schedule-admin-heading,.schedule-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.schedule-heading h2,.scheduled-section-heading h2,.schedule-dialog h2{font-family:var(--display);font-size:28px;margin:0}
.schedule-heading p{margin:6px 0 0;color:var(--muted)}
.schedule-note,.schedule-timezone{font-size:13px;line-height:1.6;color:var(--muted)}
.schedule-manager>.schedule-note{max-width:85ch;margin:16px 0}
.schedule-message:empty{display:none}.schedule-message{line-height:1.5}.schedule-message-error{color:#f0a89c!important;line-height:1.5}
.schedule-admin-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-top:1px solid var(--line);min-width:0}
.schedule-admin-info{min-width:0;flex:1}.schedule-admin-info p{margin:8px 0 0;overflow-wrap:anywhere;line-height:1.5}
.schedule-admin-heading{justify-content:flex-start;gap:12px}.schedule-admin-heading h3{margin:0;font-family:var(--display);font-size:25px;overflow-wrap:anywhere}
.schedule-admin-actions,.schedule-form-actions{display:flex;gap:10px;flex-wrap:wrap}.schedule-admin-actions .button{min-height:44px}
.schedule-status{display:inline-flex;font-size:12px;font-weight:600;padding:5px 9px;border:1px solid var(--line);border-radius:3px;color:var(--muted);line-height:1.4}
.schedule-status-warming,.schedule-status-preparing,.schedule-status-starting{color:var(--sand);border-color:#79623b;background:#e9ad4510}
.schedule-status-live{color:#b9dca2;border-color:#52694b;background:#a4c08a12}.schedule-status-failed,.schedule-status-missed{color:#f0a89c;border-color:#7b4f47}
.schedule-empty{padding:16px 0;color:var(--muted);line-height:1.6}
.schedule-dialog{width:min(780px,calc(100% - 24px));max-width:780px;max-height:calc(100dvh - 24px);padding:28px;overflow:auto;box-sizing:border-box;overscroll-behavior:contain}
.schedule-dialog form{margin:0}.schedule-dialog-heading{flex-wrap:nowrap}.schedule-close,.schedule-remove{min-width:44px;min-height:44px;border:1px solid var(--line);background:transparent;color:var(--text);border-radius:3px;font-size:24px;display:grid;place-items:center;flex-shrink:0}
.schedule-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px;font-weight:600;line-height:1.4}
.schedule-field select,.schedule-field input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:48px;font:inherit;font-size:16px}
.schedule-field select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px;text-overflow:ellipsis}
.schedule-field input[type=datetime-local]{display:block;padding-inline:10px}.schedule-field input::-webkit-date-and-time-value{text-align:left;min-width:0}
.schedule-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.schedule-form-actions{display:flex;gap:10px;flex-wrap:wrap}.schedule-admin-actions .button{min-height:44px}
.schedule-status{display:inline-flex;font-size:12px;font-weight:600;padding:5px 9px;border:1px solid var(--line);border-radius:3px;color:var(--muted);line-height:1.4}
.schedule-status-warming,.schedule-status-preparing,.schedule-status-starting{color:var(--sand);border-color:#79623b;background:#e9ad4510}
.schedule-status-live{color:#b9dca2;border-color:#52694b;background:#a4c08a12}.schedule-status-failed,.schedule-status-missed{color:#f0a89c;border-color:#7b4f47}
.schedule-empty{padding:16px 0;color:var(--muted);line-height:1.6}
.schedule-dialog{width:min(780px,calc(100% - 24px));max-width:780px;max-height:calc(100dvh - 24px);padding:28px;overflow:auto;box-sizing:border-box;overscroll-behavior:contain}
.schedule-dialog form{margin:0}.schedule-dialog-heading{flex-wrap:nowrap}.schedule-close,.schedule-remove{min-width:44px;min-height:44px;border:1px solid var(--line);background:transparent;color:var(--text);border-radius:3px;font-size:24px;display:grid;place-items:center;flex-shrink:0}
.schedule-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px;font-weight:600;line-height:1.4}
.schedule-field select,.schedule-field input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:48px;font:inherit;font-size:16px}
.schedule-field select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px;text-overflow:ellipsis}
.schedule-field input[type=datetime-local]{display:block;padding-inline:10px}.schedule-field input::-webkit-date-and-time-value{text-align:left;min-width:0}
.schedule-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.schedule-team-editors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}
.schedule-team-editor{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-top:2px solid var(--schedule-team-color);border-radius:3px}
.schedule-team-ct{--schedule-team-color:#8bbaca}.schedule-team-t{--schedule-team-color:#e9ad45}
.schedule-team-editor legend{padding:0 6px;font-weight:600;font-size:15px;color:var(--schedule-team-color)}
.schedule-team-editor .schedule-field{margin-top:14px}.schedule-team-editor>.button{margin-top:8px;width:100%;min-height:44px}
.schedule-roster-edit,.scheduled-roster{list-style:none;padding:0;margin:0}.schedule-roster-edit li{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line)}
.schedule-roster-edit li>span{min-width:0;overflow-wrap:anywhere}.schedule-roster-edit strong{font-size:15px}.schedule-roster-edit small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.schedule-roster-edit .schedule-roster-empty{font-size:13px;color:var(--muted);line-height:1.5;border:0;min-height:48px}
.schedule-form-actions{justify-content:flex-end;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.schedule-cancel-dialog{max-width:480px}.schedule-cancel-dialog>p{line-height:1.6;overflow-wrap:anywhere}
.scheduled-matches{margin:28px 0 32px;min-width:0}.scheduled-section-heading{margin-bottom:14px}
.scheduled-section-heading h2{font-size:30px}.schedule-timezone{font-size:12px}
.scheduled-match-card{border:1px solid var(--line);background:var(--paper);border-radius:4px;overflow:hidden}
.schedule-match-intro{--schedule-map-size:112px;display:grid;grid-template-columns:var(--schedule-map-size) minmax(0,1fr) auto;align-items:center;gap:24px;padding:24px;background:var(--navy);border-bottom:1px solid var(--line)}
.schedule-map-image{width:var(--schedule-map-size);height:var(--schedule-map-size);object-fit:cover;border:1px solid #59604e;border-radius:3px;filter:grayscale(1) sepia(.35) brightness(.85)}
.schedule-intro-status{grid-column:1/-1;justify-self:start}.schedule-map-info{min-width:0;height:var(--schedule-map-size);display:flex;flex-direction:column;justify-content:center;gap:8px}.schedule-map-info h3{font-family:var(--display);font-size:clamp(32px,3vw,44px);line-height:1.05;margin:0;overflow-wrap:anywhere}
.schedule-date{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.schedule-countdown{min-width:0;text-align:right;align-self:center}.schedule-countdown-label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}
.schedule-countdown-value{display:block;font-family:var(--display);font-size:36px;font-variant-numeric:tabular-nums;font-weight:700;line-height:1.15;letter-spacing:.5px;color:var(--sand);overflow-wrap:anywhere}
.schedule-timeline{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 24px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.schedule-live-warning{margin:0;padding:12px 24px;color:var(--sand);font-size:13px;line-height:1.5}
.schedule-next{display:flex;gap:8px;overflow-x:auto;padding:12px 2px 4px;overscroll-behavior-x:contain}.schedule-next button{min-height:44px;flex:0 0 auto;max-width:100%;white-space:normal;text-align:left;border:1px solid var(--line);border-radius:3px;background:var(--paper);color:var(--muted);padding:9px 12px;font-size:13px}.schedule-next button[aria-pressed=true]{border-color:var(--sand);color:var(--text)}
/* Shared CT/T cards: calm team colors over the site's dark surfaces. */
.match-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.match-team{--team-line:#385a70;--team-ink:#b8dfff;--team-bg:#192831;--chip-bg:#24495d;position:relative;isolation:isolate;min-width:0;min-height:190px;padding:18px;border:1px solid var(--team-line);border-top:2px solid var(--team-ink);border-radius:7px;background:var(--team-bg);overflow:hidden}
.match-team-t{--team-line:#71433e;--team-ink:#ffc0b6;--team-bg:#302120;--chip-bg:#673a34}
/* Power balance under the cards: a brighter blue and red of the team cards, values in the cards' ink. */
.match-balance{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0}
.match-balance-track{display:flex;height:8px;border-radius:4px;overflow:hidden}
.match-balance-ct{background:#4f86a6}.match-balance-t{background:#a5574d}
.match-balance-ct,.match-balance-t{min-width:0}
.match-balance-value{font:600 14px/1 Barlow,sans-serif;font-variant-numeric:tabular-nums}
.match-balance-value-ct{color:#b8dfff}.match-balance-value-t{color:#ffc0b6}
.match-team-art{position:absolute;inset:0;z-index:-1;overflow:hidden;opacity:.14;pointer-events:none;user-select:none}
.match-team-art img{position:absolute;bottom:4%;left:50%;height:92%;width:auto;max-width:none;transform:translateX(-25%);clip-path:inset(0 50% 0 0)}
.match-team-t .match-team-art img{transform:translateX(-75%);clip-path:inset(0 0 0 50%)}
.match-team-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:32px;margin-bottom:18px;position:relative}
.match-team-heading h3,.match-team-heading h4{display:flex;align-items:center;gap:9px;margin:0;color:var(--team-ink);font:600 27px/1 var(--display)}
.match-team-heading small{font:400 12px/1 Barlow,sans-serif;color:var(--muted)}
.match-team-list{display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}
.match-player{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-width:0;min-height:40px;border:1px solid var(--team-line);border-radius:5px;background:var(--chip-bg);color:var(--team-ink)}
.match-player-name{padding:9px 11px;min-width:0;font:500 15px/1.4 Barlow,sans-serif;overflow-wrap:anywhere}
.match-player-remove{flex:0 0 36px;min-width:36px;min-height:44px;padding:0;border:0;background:transparent;color:var(--team-ink);font-size:22px;cursor:pointer}
.match-player-remove:hover{background:#ffffff0c}.match-player-remove:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-3px}
.match-team-empty{color:var(--muted);font-size:13px;line-height:1.6;margin:26px 0 10px}
.schedule-match-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(226px,25%);gap:24px;padding:24px;align-items:start}
.schedule-my-response{display:flex;flex-direction:column;gap:9px;min-width:0;padding-top:4px}
.schedule-my-response>label{font-size:14px;font-weight:600;color:var(--text)}
.schedule-my-response .schedule-note{margin:0;font-size:12px;line-height:1.6}
.schedule-participation,.schedule-player-select{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;min-width:0;min-height:46px;height:46px;padding:9px 30px 9px 10px;border:1px solid var(--line);border-radius:5px;background:var(--navy);color:var(--text);font:500 16px/1.4 Barlow,sans-serif;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.schedule-participation:focus-visible,.schedule-player-select:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
.schedule-participation:disabled,.schedule-player-select:disabled{opacity:.65;cursor:default}
.schedule-reply-error{color:#efaa9f;line-height:1.5;margin:0;font-size:13px;overflow-wrap:anywhere}
.schedule-sign-in{color:var(--sand);font-size:14px;line-height:1.6;min-height:44px;display:flex;align-items:center}
.schedule-my-team{margin:0;font-size:14px;font-weight:600;line-height:1.4;color:var(--text);overflow-wrap:anywhere}.schedule-my-team-ct{color:#b8dfff}.schedule-my-team-t{color:#ffc0b6}
.schedule-join{width:100%;min-height:46px;justify-content:center;white-space:nowrap}.schedule-join:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}.schedule-join:disabled{opacity:.65;cursor:default}
.scheduled-match-card{scroll-margin-block-start:150px}.scheduled-match-card:focus-visible{outline:2px solid var(--focus-ring);outline-offset:4px}
.schedule-editor-teams{margin:20px 0}.schedule-editor-teams .match-team{min-height:230px}
.schedule-player-select{width:132px;max-width:68%;font-size:14px;min-height:44px;color:var(--team-ink);border-color:var(--team-line);padding:8px 26px 8px 8px}
.schedule-admin-teams{margin-top:20px}.schedule-admin-teams .match-team{min-height:145px}
.schedule-admin-card{align-items:flex-start}.schedule-admin-actions{padding-top:3px}
.schedule-manual-dialog{max-width:360px}.schedule-manual-dialog h2{margin-bottom:20px}.schedule-manual-dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}
.invitation-inbox{padding:0;border:0}.invitation-inbox-status:empty{display:none}.invitation-inbox-list{display:grid;gap:12px}
.invitation-inbox-item{display:block;box-sizing:border-box;padding:16px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--text);text-decoration:none;min-height:44px;overflow-wrap:anywhere;transition:border-color .18s,background-color .18s}
.invitation-inbox-item:hover{border-color:var(--sand);background:var(--navy)}.invitation-inbox-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.invitation-inbox-item .invitation-question{margin:0;font-size:16px;font-weight:600;line-height:1.5;color:var(--text)}
.invitation-open-label{display:block;color:var(--sand);font-size:14px;margin-top:10px;line-height:1.5}
.invitation-unread{display:inline-flex!important;min-width:18px;height:18px;border-radius:9px;padding:0 4px;background:var(--sand);color:var(--navy);font-size:11px;font-weight:600;justify-content:center;align-items:center;line-height:1}.invitation-unread[hidden]{display:none!important}
.push-panel .invitation-inbox-status{font-size:13px;margin:8px 0 12px}
.push-settings-dialog{max-width:380px}.push-settings-dialog h2{font-family:var(--display);font-size:26px;margin-top:0}.push-settings-dialog p{font-size:14px;line-height:1.6;color:var(--muted)}.push-settings-dialog>.button{width:100%;margin-top:12px;min-height:46px}
@media(max-width:1100px){.schedule-match-intro{--schedule-map-size:88px;grid-template-columns:var(--schedule-map-size) minmax(0,1fr);gap:18px}.schedule-countdown{grid-column:1/-1;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:16px}.schedule-countdown-label{margin:0}}
@media(max-width:760px){.schedule-match-content{grid-template-columns:minmax(0,1fr);gap:18px}.schedule-admin-card{flex-direction:column}.schedule-admin-info{width:100%}.schedule-admin-actions{width:100%}.schedule-admin-actions .button{flex:1}}
@media(max-width:600px){
.schedule-manager{padding:16px}.schedule-heading{align-items:flex-start}.schedule-heading>.button{width:100%}.schedule-dialog{padding:16px}.schedule-times{grid-template-columns:minmax(0,1fr);gap:16px}.schedule-dialog h2{font-size:26px}.schedule-field input[type=datetime-local]{padding-inline:8px}.schedule-form-actions .button{flex:1}
.scheduled-section-heading{gap:4px}.scheduled-section-heading h2{font-size:28px}.schedule-timezone{width:100%}.schedule-match-intro{--schedule-map-size:80px;padding:16px;gap:14px;grid-template-columns:var(--schedule-map-size) minmax(0,1fr)}.schedule-map-info h3{font-size:24px}.schedule-date{font-size:13px;line-height:1.25}.schedule-countdown{align-items:flex-start;flex-direction:column;gap:6px;padding-top:6px}.schedule-countdown-value{font-size:34px}
.schedule-match-content{padding:14px}.match-teams{gap:8px}.match-team{padding:12px 9px;min-height:170px}.match-team-heading{margin-bottom:14px}.match-team-heading h3,.match-team-heading h4{font-size:24px;gap:6px}.match-player-name{padding:8px;font-size:14px}.match-team-list{gap:6px}.schedule-player-select{font-size:16px;padding:6px 26px 6px 6px;max-width:none;width:100%}.schedule-editor-teams .match-team-heading{flex-wrap:wrap;gap:12px}.schedule-editor-teams .match-team{padding:12px 8px}.schedule-editor-teams .match-player{width:100%}.schedule-editor-teams .match-player-name{flex:1;padding:6px}.schedule-editor-teams .match-player-remove{flex-basis:32px;min-width:32px}.schedule-admin-teams .match-team{min-height:150px}.schedule-timeline{padding:14px 16px;gap:10px 16px}.schedule-live-warning{padding-inline:16px}.scheduled-match-card{scroll-margin-block-start:145px}
}
@media(prefers-reduced-motion:reduce){.invitation-inbox-item{transition:none}}
/* Phones: the upcoming match lists each team's names one per line; after three names (measured, since long names wrap) the list scrolls. */
@media(max-width:760px),(pointer:coarse) and (max-height:500px){
.scheduled-match-card .match-team-list{flex-direction:column;flex-wrap:nowrap;gap:6px;max-height:var(--match-team-three,calc(3 * 40px + 2 * 6px));overflow-y:auto;overscroll-behavior:contain}
.scheduled-match-card .match-player{display:flex;flex:0 0 auto;width:100%}.scheduled-match-card .match-player-name{padding:8px;font-size:14px}
.scheduled-match-card .match-team-list-more:not(.is-end){-webkit-mask-image:linear-gradient(#000 calc(100% - 16px),transparent);mask-image:linear-gradient(#000 calc(100% - 16px),transparent)}
}
/* Start and end each have separate date and time fields. */
.schedule-moment{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:8px 12px}
.schedule-moment-label{grid-column:1/-1;margin:0;font-size:15px;font-weight:600;color:var(--text)}
.schedule-moment .schedule-field{font-size:13px;font-weight:500;color:var(--muted)}
.schedule-field input[type=date],.schedule-field input[type=time]{display:block;padding-inline:10px;color:var(--text)}
.schedule-field input::-webkit-date-and-time-value{text-align:left;min-width:0}
@media(max-width:600px){.schedule-moment{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:8px 10px}.schedule-field input[type=date],.schedule-field input[type=time]{padding-inline:8px}}
.invitation-inbox-notice{cursor:default}.invitation-inbox-notice:hover{border-color:var(--line);background:var(--paper)}
.invitation-notice-detail{display:block;color:var(--muted);font-size:14px;margin-top:8px;line-height:1.5}
/* Every other notice in the bell list: the same card, with its time; unread ones are marked "Yeni". */
.notice-feed-item{display:block;box-sizing:border-box;padding:16px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--text);text-decoration:none;min-height:44px;overflow-wrap:anywhere;transition:border-color .18s,background-color .18s}
.notice-feed-item:hover{border-color:var(--sand);background:var(--navy)}.notice-feed-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.notice-feed-item .invitation-question{margin:0;font-size:16px;font-weight:600;line-height:1.5;color:var(--text)}
.push-panel .notice-feed-body{display:block;color:var(--muted);font-size:14px;margin-top:6px;line-height:1.5}
.notice-feed-time{display:block;color:var(--muted);font-size:13px;margin-top:8px;line-height:1.4}
.notice-feed-unread{border-left:3px solid var(--sand)}
.notice-feed-more{display:grid;gap:8px;margin-top:12px}.notice-feed-more[hidden]{display:none}.notice-feed-more .invitation-inbox-status{margin:0;text-align:center}.notice-feed-older[aria-disabled="true"]{opacity:.7;cursor:progress}.notice-feed-error{margin:0;color:#efaa9f;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.notice-feed-unread .notice-feed-time::after{content:" · Yeni";color:var(--sand);font-weight:600}
/* Three notices show at a time and the rest scroll inside the list (match-invitations.js measures the height;
   360px is only the first frame's guess). The 4px inset keeps the focus ring of an edge notice inside the frame. */
.invitation-inbox{position:relative}
.notice-feed-scroll{position:relative;margin:-4px;padding:4px;max-height:360px;overflow-x:hidden;overflow-y:auto}
/* Like the match card's three-row team lists, the end of the list does not scroll the page (and the bell with it) away. */
.notice-feed-scroll[data-capped="true"]{scrollbar-gutter:stable;overscroll-behavior-y:contain}
.notice-feed-scroll:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.invitation-inbox::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:20px;background:linear-gradient(to bottom,transparent,var(--paper));pointer-events:none;opacity:0;transition:opacity .18s}
.invitation-inbox[data-below="true"]::after{opacity:1}
@media(prefers-reduced-motion:reduce){.invitation-inbox::after{transition:none}}
@media(prefers-reduced-motion:reduce){.notice-feed-item{transition:none}}

/* The dialog itself is a neutral landing point; controls retain keyboard focus rings. */
#schedule-dialog:focus{outline:none}
.schedule-balance{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:14px 0 4px}.schedule-balance .schedule-note{flex:1 1 220px;margin:0}
