/* Working views retain the installed iPhone root; only their contents are sized. */
.calendar-advance-options{display:flex;align-items:end;gap:10px;flex:1;grid-column:1/-1;min-width:0}.calendar-advance-options label{display:flex;flex-direction:column;align-items:stretch;justify-content:initial;grid-column:auto;min-width:0}.calendar-advance-options .calendar-target{flex:1}.calendar-advance-options .calendar-speed{flex:0 0 112px}.calendar-advance-options input,.calendar-advance-options select{width:100%;min-width:0;min-height:44px}
@media(max-width:700px){.calendar-advance-options{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(94px,.9fr);gap:6px}.calendar-advance-options label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.calendar-advance-options .calendar-speed{flex:auto}.calendar-advance-options input,.calendar-advance-options select{padding-left:8px;padding-right:8px}}
.staff-vacancy-notice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:none;padding:12px 16px;background:var(--raised);font-size:13px}.staff-vacancy-notice span{color:var(--muted)}.staff-vacancy-notice a{margin-left:auto}.vacancy-select{display:flex;flex-direction:column;gap:6px;font-size:14px;margin-bottom:14px}.vacancy-select select{width:100%;min-width:0}.hire-role{grid-column:1/-1;margin:0;font-size:14px}.draft-nomination{grid-template-columns:minmax(0,1fr) auto}.draft-candidate-profile{background:var(--surface);padding:16px;min-width:0}.draft-profile-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px}.draft-profile-heading h2{font-size:20px;margin:0}.draft-profile-heading span{font-size:13px;color:var(--muted);white-space:nowrap}.draft-candidate-profile h3{font-size:15px;margin:20px 0 12px}.draft-candidate-profile .record-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:16px 0 0}.draft-candidate-profile .record-fields>div{min-width:0}.draft-profile-fields dd{overflow-wrap:anywhere}.draft-profile-abilities dd{white-space:nowrap;font-variant-numeric:tabular-nums}.draft-candidate-profile .record-fields dt{font-size:13px}.draft-candidate-profile .record-fields dd{font-size:15px;margin:4px 0 0}
@media(max-width:700px){.draft-nomination{grid-template-columns:minmax(0,1fr)}.draft-nomination button{justify-self:stretch}.draft-candidate-profile{padding:14px}.staff-vacancy-notice{padding:10px 12px;gap:6px 10px}.staff-vacancy-notice a{padding:6px 10px;font-size:13px}}
.screen-frame button,.screen-frame input,.screen-frame select{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",sans-serif;font-size:14px}
.screen-frame button,.screen-frame input,.screen-frame select,.screen-frame summary{min-height:44px}
.region-switch{display:flex;flex:none;gap:8px}.region-switch button{flex:1;max-width:180px;background:transparent;color:var(--muted)}.region-switch button[aria-pressed=true]{background:var(--raised);color:var(--text);border-color:var(--control)}
.compact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.compact-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);min-width:0}.compact-form input,.compact-form select{width:100%;min-width:0}.compact-form button{align-self:end}
.scout-jobs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:none}.scout-job{display:grid;grid-template-columns:1fr auto;align-items:center;gap:7px;padding:12px;border:1px solid var(--border);min-width:0}.scout-job>a,.scout-job>span{grid-column:1/-1;font-weight:600}.scout-job small{grid-column:1/-1;font-size:12px;color:var(--muted)}.scout-job progress{width:100%;min-width:0;height:8px}.scout-job button{font-size:12px!important;padding:5px 8px;min-height:32px}.empty-job{color:var(--muted)}
.candidate-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}.candidate-row small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:3px}.candidate-row strong{font-variant-numeric:tabular-nums;font-size:18px;font-weight:500;white-space:nowrap}.candidate-row button{padding:7px 10px}.candidate-row>div{min-width:0}.candidate-row a{font-weight:600}.candidate-row>div:nth-child(2){text-align:right}.list-count{font-size:13px;color:var(--muted)}.scout-filters>summary{display:flex;align-items:center;cursor:pointer;border-bottom:1px solid var(--border)}
.scout-level{display:flex;gap:6px;flex:none}.scout-level span{flex:1;padding:7px;text-align:center;background:var(--surface);color:var(--muted);border:1px solid var(--border)}.scout-level .is-known{background:var(--raised);color:var(--text)}
.contract-round-actions{display:flex;gap:10px;flex:none;flex-wrap:wrap}.contract-round-actions button{flex:1}.negotiation-row,.development-row{padding:10px 0;border-bottom:1px solid var(--border)}.negotiation-row>summary,.development-row>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.negotiation-row>summary>strong,.development-row>summary>span{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:500}.negotiation-row small,.development-row small{display:block;color:var(--muted);font-size:12px;line-height:1.6}.negotiation-row[open],.development-row[open]{padding-bottom:18px}.coach-skills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.coach-skills>div{display:flex;justify-content:space-between;gap:8px;font-size:13px}.coach-skills dt{color:var(--muted)}.coach-skills dd{margin:0;font-variant-numeric:tabular-nums}.training-progress{display:flex;flex-direction:column;gap:8px;font-size:13px}.training-progress progress{width:100%;height:8px}.management-links{display:flex;flex:none;gap:10px;flex-wrap:wrap}.management-links a{min-height:44px;display:flex;align-items:center;padding:8px 12px;border:1px solid var(--border);font-size:13px}.operation-player .compact-form{flex-basis:100%;width:100%}.operation-player .compact-form select{max-width:none}.deadline-note{font-size:13px;line-height:1.7;color:var(--muted)}
.home-news{display:flex;flex:1;min-height:0;flex-direction:column;border:1px solid var(--border);padding:14px 16px}.home-news h2{font-size:17px}.home-news-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}.news-row{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid var(--border);font-size:14px;line-height:1.7}.news-row time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.mailbox-button{display:flex;flex:none;align-items:center;gap:12px;min-height:56px;padding:12px 16px;border:1px solid var(--border);font-size:14px}.mailbox-button strong{margin-left:auto;font-weight:500}.task-row{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:14px 4px;border-bottom:1px solid var(--border);line-height:1.6}
/* Keep each date legible. Only the calendar body scrolls if the month exceeds the available pane. */
#competition-view-calendar{overflow:hidden}.screen-schedule [data-block-key=calendar]{gap:0;overflow:hidden}.screen-schedule [data-block-key=calendar]>.block-body{display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;height:auto;gap:0}.screen-schedule .calendar-week{flex:0 0 22px}.screen-schedule .calendar-week span{padding:2px 0}.screen-schedule .calendar-grid{flex:1 0 auto;grid-template-rows:repeat(var(--calendar-weeks,6),minmax(var(--calendar-row-min,48px),1fr))}.screen-schedule .calendar-day,.screen-schedule .calendar-empty{min-height:0!important;height:100%;padding:3px 2px;gap:1px}.screen-schedule .calendar-opponent,.screen-schedule .calendar-logo,.screen-schedule .calendar-opponent .crest,.screen-schedule .calendar-opponent .crest.crest-custom{width:24px;height:24px;max-height:24px}.screen-schedule .calendar-day time{font-size:11px;line-height:13px}.screen-schedule .calendar-day .calendar-result{flex-direction:row;gap:3px;justify-content:center;font-size:11px;line-height:13px}.screen-schedule .calendar-off,.screen-schedule .calendar-scheduled{font-size:11px;line-height:13px}.screen-schedule .calendar-advance{margin-top:8px}.screen-schedule .calendar-toolbar{margin-bottom:6px}.screen-schedule>.calendar-progress{margin:0;padding-top:0}.screen-schedule .calendar-progress span{flex-basis:auto}.screen-schedule .calendar-toolbar button{min-height:38px}.screen-schedule .view-tabs{padding:4px}.screen-schedule .view-tabs button{font-size:12px;min-height:40px}
.screen-tactics #tactics-view-field{overflow:hidden}.formation-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr);grid-template-rows:auto minmax(0,1fr);gap:12px;flex:1;min-height:0;overflow:hidden}.formation-workspace .formation-tools{grid-column:1/-1;min-height:44px}.formation-field{min-height:0!important;height:100%;overflow:hidden!important}.formation-bench{min-height:0;display:flex;flex-direction:column;overflow:hidden}.formation-bench h2{flex:none}.formation-bench .scroll-block{min-height:0}.formation-field .diamond-board{flex:none;max-height:100%;max-width:100%}
.draft-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;flex:none}.draft-club{display:flex;align-items:center;flex-direction:column;gap:5px;min-width:0;padding:10px 5px;border:1px solid var(--border);text-align:center}.draft-club .crest,.draft-club .crest.crest-custom{width:28px;height:28px}.draft-club strong{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.draft-club span{font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draft-club small{font-size:11px;color:var(--muted)}.is-announced span{animation:draft-arrival .35s ease both}.draft-actions{padding-bottom:18px}.draft-actions>button{margin:0 8px 10px 0}.lottery-stage{text-align:center}.lottery-stage h2{font-size:18px}.lottery-tickets{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:18px 0}.lottery-ticket{padding:0;border:0;background:transparent!important;width:108px;height:136px;perspective:600px;overflow:visible}.ticket-inner{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d}.ticket-front,.ticket-back{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;backface-visibility:hidden;border:1px solid var(--control);padding:12px;background:var(--raised);font-size:15px}.ticket-back{transform:rotateY(180deg);background:#e9eae7;color:#151719}.is-open .ticket-inner{animation:ticket-open .8s ease both}.lottery-winner{font-size:18px;font-weight:600;line-height:1.6}.draft-announcement{padding:18px 0;animation:draft-arrival .35s ease both;border-bottom:1px solid var(--border)}.draft-announcement h2{font-size:23px}.award-stage{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;flex-direction:column;gap:18px;text-align:center;animation:draft-arrival .4s ease both}.award-stage h2{font-size:26px;margin:0}.award-stage .crest,.award-stage .crest.crest-custom{width:72px;height:72px}.award-winner{font-size:32px;line-height:1.5}.award-stage p{font-size:14px;margin:0}.ceremony-actions{display:flex;justify-content:center;flex:none}.ceremony-actions button{min-width:200px}
@keyframes ticket-open{from{transform:rotateY(0)}to{transform:rotateY(180deg)}}@keyframes draft-arrival{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.game-sidebar nav,html.ios-pwa .game-sidebar nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));padding-left:2px;padding-right:2px}.game-sidebar nav a,html.ios-pwa .game-sidebar nav a{padding-left:2px;padding-right:2px;min-width:0}.game-sidebar .nav-label,html.ios-pwa .game-sidebar .nav-label{font-size:12px!important;white-space:nowrap}.scout-job{padding:9px;gap:5px}.scout-job>a{font-size:14px}.scout-job small{font-size:11px}.candidate-row{gap:8px}.candidate-row>div:nth-child(2){font-size:12px}.candidate-row strong{font-size:16px}.candidate-row button{padding:6px;min-width:44px}.screen-scouting .heading h1{font-size:21px}.screen-contracts .heading h1{font-size:22px}.contract-round-actions button{font-size:12px;padding:8px 6px}.negotiation-row summary,.development-row summary{font-size:14px}.coach-skills{gap:12px 8px}.home-news{padding:12px}.screen-home .club-masthead{flex:none}.screen-home .office-metrics{grid-template-columns:repeat(2,minmax(0,1fr));flex:none}.screen-home .office-metrics strong{font-size:22px}.news-row{padding:12px 0}.management-links{gap:6px}.management-links a{flex:1;justify-content:center;font-size:12px;padding:7px 5px;white-space:nowrap}.screen-schedule .calendar-logo,.screen-schedule .calendar-opponent,.screen-schedule .calendar-opponent .crest,.screen-schedule .calendar-opponent .crest.crest-custom{width:20px;height:20px;max-height:20px}.screen-schedule .calendar-toolbar h2{font-size:15px}.screen-schedule .calendar-grid{--calendar-row-min:44px}.screen-schedule .calendar-day .calendar-result{gap:1px;font-size:11px}.screen-schedule .calendar-day>time{font-size:11px;line-height:12px}.screen-schedule .calendar-day .calendar-score{font-size:11px}.screen-schedule .calendar-opponent .crest b{font-size:13px}.screen-schedule .calendar-advance{gap:6px}.screen-schedule .calendar-advance button{min-height:40px;font-size:12px}.screen-schedule .calendar-progress{gap:6px}.screen-schedule .view-tabs button{font-size:11px;padding:5px 1px}.screen-tactics .formation-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(160px,1fr) minmax(76px,.4fr);gap:7px}.formation-workspace .formation-tools{gap:5px}.formation-tools p{font-size:11px}.formation-tools button{padding:6px;font-size:12px!important}.formation-bench h2{font-size:14px;margin:0 0 4px}.formation-bench .bench-player{padding:8px 0}.draft-board{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.draft-club{padding:7px 3px;gap:3px}.draft-club .crest,.draft-club .crest.crest-custom{width:22px;height:22px}.draft-club strong{font-size:11px}.draft-club span{font-size:12px}.draft-club small{font-size:11px}.screen-draft>.heading h1{font-size:22px}.lottery-ticket{width:92px;height:112px}.lottery-stage h2{font-size:16px}.award-stage h2{font-size:23px}.award-winner{font-size:28px}}
@media(max-height:700px){.screen-schedule .calendar-toolbar{margin-bottom:2px}.screen-schedule .calendar-opponent,.screen-schedule .calendar-logo,.screen-schedule .calendar-opponent .crest,.screen-schedule .calendar-opponent .crest.crest-custom{width:16px;height:16px;max-height:16px}.screen-schedule .calendar-advance label{font-size:11px}.screen-schedule .calendar-advance input{min-height:34px}.screen-schedule .calendar-advance button{min-height:36px}.draft-club{padding-top:4px;padding-bottom:4px}.draft-club small{display:none}.screen-tactics .formation-workspace{grid-template-rows:auto minmax(120px,1fr) 74px}.award-stage{gap:10px}}
@media(prefers-reduced-motion:reduce){.is-announced span,.ticket-inner,.draft-announcement,.award-stage{animation:none!important}.is-open .ticket-inner{transform:rotateY(180deg)}}html[data-motion=off] .is-announced span,html[data-motion=off] .ticket-inner,html[data-motion=off] .draft-announcement,html[data-motion=off] .award-stage{animation:none!important}html[data-motion=off] .is-open .ticket-inner{transform:rotateY(180deg)}

html.ios-pwa .game-sidebar nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))}
.screen-schedule .calendar-day{position:relative;padding:2px;justify-content:flex-start}.screen-schedule .calendar-day>time{position:absolute;width:auto;left:3px;top:3px;line-height:12px}.screen-schedule .calendar-opponent{align-self:flex-end;margin:0 1px 0 0}.screen-schedule .calendar-day .calendar-result,.screen-schedule .calendar-day>.calendar-scheduled{margin-top:auto;flex:none}.screen-schedule .calendar-day .calendar-score{letter-spacing:-.25px}.screen-schedule .calendar-day>.calendar-off{margin:auto 0 0}
@media(max-height:700px){.screen-schedule>.heading p{display:none}.screen-schedule>.heading h1{font-size:20px}.screen-schedule .view-tabs button{min-height:34px}.screen-schedule #competition-view-calendar{padding:6px}.screen-schedule .calendar-toolbar button{min-height:32px}.screen-schedule .calendar-week{flex-basis:18px}.screen-schedule .calendar-week span{font-size:11px}.screen-schedule .calendar-day{padding:1px}.screen-schedule .calendar-day .calendar-result{font-size:11px;line-height:12px}.screen-schedule .calendar-day .calendar-score{font-size:11px}.screen-schedule .calendar-advance{margin-top:5px;gap:4px}.screen-schedule .calendar-advance button{min-height:34px}}
@media(max-width:360px){.screen-schedule .calendar-opponent,.screen-schedule .calendar-logo,.screen-schedule .calendar-opponent .crest,.screen-schedule .calendar-opponent .crest.crest-custom{width:16px;height:16px;max-height:16px}.screen-schedule .calendar-day>time{left:2px}.screen-schedule .calendar-day .calendar-result{gap:0}}
.development-row .compact-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:780px}.development-row .compact-form select{max-width:none}.development-row .roster-facts{max-width:420px;margin:16px 0}.development-row>form[data-operation=register]{display:flex;gap:8px;margin:14px 0}.development-row>form[data-operation=register] select{flex:1;min-width:0}.development-row summary>span:first-child{min-width:0}.development-row summary a{font-weight:500}

/* Keep every draft action reachable when the US board contains thirty clubs. */
.screen-draft .draft-board{max-height:min(34dvh,300px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}

/* The active run needs only the speed control and the separate progress/Stop bar. */
.screen-schedule .calendar-target input{display:block;appearance:none}
#competition-view-calendar[aria-busy="true"] :is(.calendar-stop-settings,.calendar-target,.calendar-advance>button){display:none}
#competition-view-calendar[aria-busy="true"] .calendar-advance-options{display:flex;justify-content:flex-end}
