/* v8: stable in-view navigation, legible match tables, compact decisions. */
.team-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;position:sticky;top:0;z-index:8;background:var(--paper,#f4efe6);padding:6px;border-radius:12px;margin:0 0 20px;border:1px solid var(--line)}
.team-tabs button{display:flex;justify-content:center;align-items:center;text-align:center;width:100%;min-width:0;min-height:46px;padding:10px 4px;border:0;border-radius:8px}
.team-tabs button.selected{background:#e0e8cf;color:#344c2d;box-shadow:inset 0 -3px #718652}
.content-tabs button{text-align:center;justify-content:center}
.card-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0;padding:10px 0;border-block:1px solid var(--line)}
.card-stats span{display:grid;gap:3px;color:#746b60;font-size:.75rem}.card-stats b{color:#342c25;font-size:.875rem}
.squad-records{margin-top:24px}.squad-records>div,.squad-records>.panel{margin:16px}.squad-records .season-stats-toolbar,.squad-records .section-tools{padding:16px}
.own-club-label{display:block;font-size:.65rem;font-weight:700;color:inherit;line-height:1.4}
.your-club>td,.your-club>th,.your-club .table-club{color:#302a20}
.match-theatre-modal .match-panel .compact-table tr.your-club{background:#ebd597;box-shadow:inset 4px 0 #558b75}
.match-theatre-modal .match-panel .compact-table tr.your-club>td,.match-theatre-modal .match-panel .compact-table tr.your-club>th,.match-theatre-modal .match-panel .compact-table tr.your-club .table-club-identity>span{color:#132d38;font-weight:700}
.match-theatre-modal .match-panel .compact-table .your-club .crest span{color:#fff}
.game-dialog.event-modal{display:flex;flex-direction:column;max-height:calc(var(--app-height,100dvh) - 24px);overflow:hidden}
.event-modal .dialog-header{flex:none;padding:12px 20px 0}.event-modal .dialog-header .eyebrow{font-size:.7rem}
.event-modal .dialog-content{min-height:0;overflow:auto;padding:8px 20px 14px}
.event-modal .dialog-content>h2{font-size:1.2rem;line-height:1.5;margin:4px 0 12px}
.event-modal .speaker-card{padding:12px;gap:12px;margin:0}.event-modal .speaker-card p{font-size:.875rem;line-height:1.6;margin:5px 0 0}
.event-modal .speaker-card img,.event-modal .speaker-card .staff-face{width:48px;height:48px;flex-shrink:0}
.event-modal .dialog-footer{display:block;flex-shrink:0;max-height:65dvh;overflow:auto;padding:12px 20px 18px}
.event-modal .event-options{display:grid;gap:10px;margin:0}.event-modal .event-option{padding:12px 14px;width:100%;min-height:70px;text-align:left}
.event-modal .event-option>strong{font-size:.94rem;line-height:1.5}.event-modal .event-option>span{font-size:.81rem;line-height:1.5;margin-top:5px}
.event-modal .event-option:focus-visible{outline:3px solid #a46038;outline-offset:2px}
.all-facilities{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:20px}
.all-facilities .building-card{display:flex;flex-direction:column;overflow:hidden}.all-facilities .building-art{height:auto;aspect-ratio:320/210;padding:0;display:flex;align-items:center;justify-content:center;position:relative;background:#eee8d8}
.all-facilities .building-art>.scene-art{height:100%;max-height:100%;width:100%;object-fit:contain}.all-facilities .building-art>.level-tag{position:absolute;top:12px;right:12px;background:#fff8e8}
.facility-illustration{display:block;width:100%;height:100%}.facility-illustration.planned{filter:saturate(.65)}
.all-facilities .building-info{padding:20px;display:flex;flex-direction:column;flex:1}.all-facilities .building-info h2{font-size:1.05rem}.all-facilities .building-info p{font-size:.84rem}.all-facilities .building-info .button{margin-top:auto}
.future-facilities{margin-top:28px}.future-facilities>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.future-facilities article{background:#ebe7dc;border-radius:12px;overflow:hidden}.future-facilities article>div{padding:14px}.future-facilities h3{font-size:.95rem}.future-facilities p{font-size:.8rem;line-height:1.6}.future-facilities svg{height:130px}
.facility-preview{max-width:340px;aspect-ratio:320/210;margin:auto;overflow:hidden;border-radius:12px}.facility-preview>.scene-art{height:100%;width:100%;object-fit:contain}
.finance-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:22px;gap:20px;margin-bottom:20px}.finance-overview>div{display:flex;flex-direction:column;gap:8px}.finance-overview span{font-size:.8rem;color:#746b60}.finance-overview strong{font-size:1.55rem}.finance-overview>p{grid-column:1/-1;margin:0;line-height:1.6}
.staff-plans{padding:20px;margin-bottom:20px}.staff-plans>.panel-heading{padding:0;gap:12px;flex-wrap:wrap}.staff-plans h2{font-size:1.05rem}.staff-plan{padding:16px 0;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.staff-plan>div{display:flex;gap:12px;align-items:center}.staff-plan .staff-face{width:44px;height:44px;flex-shrink:0}.staff-plan strong{font-size:.94rem;display:block}.staff-plan small{display:block;margin-top:6px;font-size:.8rem;line-height:1.6}.staff-plan .button{flex-shrink:0}
.finance-detail{margin-bottom:12px;overflow:hidden}.finance-detail>summary{padding:20px;font-weight:700;cursor:pointer;font-size:.96rem;min-height:56px}.finance-detail[open]>summary{border-bottom:1px solid var(--line)}.finance-detail-body{padding:20px}.finance-detail .finance-columns{padding:0}.finance-detail .finance-columns>div{padding:10px}.finance-detail .contract-notice{margin:0}.finance-detail .text-input{max-width:420px}.finance-detail .loan-options{flex-wrap:wrap}.finance-detail .loan-row{gap:16px}
@media(max-width:1100px){.all-facilities{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.team-tabs{margin-bottom:14px}.all-facilities{grid-template-columns:1fr}.all-facilities .building-art{max-height:230px}.future-facilities>div{grid-template-columns:1fr}.future-facilities article{display:grid;grid-template-columns:110px 1fr;align-items:center}.future-facilities svg{height:100px}.finance-overview{padding:18px;gap:16px;grid-template-columns:1fr 1fr}.finance-overview>div:first-child{grid-column:1/-1}.finance-overview>div:first-child strong{font-size:1.8rem}.finance-overview strong{font-size:1.18rem}.staff-plans{padding:18px}.staff-plan{align-items:stretch;flex-direction:column;gap:10px}.staff-plan .button{align-self:flex-end}.finance-detail>summary{padding:17px}.finance-detail-body{padding:16px}.event-modal .dialog-footer{padding:10px 16px 14px}.event-modal .dialog-content{padding:6px 16px 10px}.event-modal .speaker-card{gap:10px}.event-modal .speaker-card strong{font-size:.85rem}}
@media(max-height:580px){.event-modal .dialog-header{display:none}.event-modal .dialog-content>h2{font-size:1rem}.event-modal .dialog-footer{max-height:72dvh}.event-modal .event-option{padding:8px 12px;min-height:58px}}
