/* Shared reading scale. rem values follow browser text preferences. */
:root{--text-body:clamp(.9375rem,.89rem + .2vw,1.0625rem);--text-ui:clamp(.875rem,.84rem + .14vw,.9375rem);--text-small:clamp(.8125rem,.78rem + .12vw,.875rem);--text-meta:.75rem;--text-section:clamp(1.125rem,1rem + .5vw,1.375rem)}
body{font-size:var(--text-body);line-height:1.55}
.shell>header{height:auto;min-height:65px;font-size:var(--text-meta);line-height:1.5;gap:12px;flex-wrap:wrap;padding-block:14px}
#breadcrumb,#date{overflow-wrap:anywhere;min-width:0}
#cloud-account{flex-wrap:wrap}#cloud-account a,#cloud-account small{font-size:var(--text-meta);line-height:1.5}
#cloud-account .cloud-connect{font-size:var(--text-small);min-height:44px;white-space:normal}
.heading h1,.progression-compact>.heading h1{font-size:clamp(1.75rem,1.4rem + 1.25vw,2.5rem);line-height:1.25}
.heading p,.welcome-hero p,.heritage-dashboard .hero-copy p,.create .hero p{font-size:var(--text-body);line-height:1.75;max-width:65ch}
.heading p{color:#b7c8d6}
.panel h2,.panel-title h2,.section-title,.welcome-steps h2,.welcome .welcome-updates h2{font-size:var(--text-section);line-height:1.4;letter-spacing:.02em}
#main .tiny,#dialog:not(.live-match-dialog) .tiny{font-size:var(--text-small);line-height:1.65}
.eyebrow,.tag,.heading .tag{font-size:var(--text-meta);line-height:1.5;letter-spacing:.08em}
.tag{white-space:normal;max-width:100%;overflow-wrap:anywhere}
#main label,.admin-main label{font-size:var(--text-ui);line-height:1.5}
#main :is(input,select,textarea),.admin-main :is(input,select,textarea),#dialog:not(.live-match-dialog) :is(input,select,textarea){font-size:1rem;line-height:1.5;min-height:46px;max-width:100%;min-width:0}
#main :is(input[type=checkbox],input[type=radio]),.admin-main :is(input[type=checkbox],input[type=radio]){min-height:0}
#main :is(.actions button,.primary,.text-button,.ghost),.competition-tabs button,.mercato-tabs button,.match-filters button{font-size:var(--text-ui);line-height:1.5;white-space:normal;height:auto;min-height:44px}
.text-button{font-size:var(--text-small);line-height:1.5;white-space:normal}
#nav .nav-label{font-size:var(--text-ui);line-height:1.45}
#nav .nav-link{min-height:54px;gap:9px}
.brand small{font-size:.6875rem;line-height:1.5;letter-spacing:.1em}
.hero-copy button,.hero-copy .mail-trigger{height:auto;min-height:48px;font-size:var(--text-ui);line-height:1.5;white-space:normal}
.heritage-dashboard .heritage-hero{height:auto;min-height:420px}
.welcome-steps p,.welcome .welcome-updates p,.welcome-updates-list,.saved-career p,.cloud-save-row p{font-size:var(--text-body);line-height:1.7}
.welcome-updates-note,.welcome-updates-badge,.career-recap-stat dt,.career-recap-stat small,.career-recap-footer,.career-recap-heading p{font-size:var(--text-small);line-height:1.6}
.career-recap .career-recap-heading h2{font-size:var(--text-section)}
.career-day-checklist,.career-day-panel .career-day-fixture,.ranked-day-complete p{font-size:var(--text-ui);line-height:1.65}
.ranked-day-complete h2,.career-day-panel h2{font-size:var(--text-section);line-height:1.4}
/* Let labels wrap instead of shrinking them to fit a fixed card. */
.person-tabs button{font-size:1rem;line-height:1.5;min-height:60px;height:auto;white-space:normal}
.person-tabs small,.person-budget small,.setup-slots small,.setup-slots strong,.buy-hint,.gear-condition,.person-effects span,.person-effects b{font-size:var(--text-small);line-height:1.6}
.person-card-body p,.staff-owned p,.person-rules p,.staff-role-heading p,.person-bonus{font-size:var(--text-ui);line-height:1.7}
.person-card-body h3,.compact-champion-info h3,.champ-content h3{font-size:1.125rem;line-height:1.4}
.compact-section-heading p,.compact-category-help,.progression-compact .ranked-rules{font-size:var(--text-small);line-height:1.65}
.compact-category-heading h3{font-size:1rem;line-height:1.4}.compact-category-heading>span,.compact-champion-info span,.champion-winrates{font-size:var(--text-small);white-space:normal;line-height:1.6}
.compact-attribute-row{font-size:var(--text-ui);grid-template-columns:minmax(0,1.5fr) minmax(30px,.7fr) 38px;gap:10px;min-height:48px;line-height:1.5}
.compact-attribute-row b{font-size:var(--text-ui)}.compact-champion-row>button{font-size:var(--text-small);white-space:normal}
.compact-attribute-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.compact-champion-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.creation-birthday small,.creation-attribute-grid legend,.creation-attribute,.creation-slot-top,.creation-slot-bottom>small,.creation-mastery{font-size:var(--text-small);line-height:1.5}
.creation-attribute{min-height:48px}
.draft-heading p,.draft-search-label,.draft-footer p,.draft-stats>div,.draft-spells summary,.draft-spells p{font-size:var(--text-ui);line-height:1.6}
.draft-card-body>strong{font-size:1rem;line-height:1.4}.draft-card-body>small,.draft-mini-stats,.draft-spells small{font-size:var(--text-meta);line-height:1.5}.draft-mini-stats b{font-size:var(--text-small)}
.draft-assigned{font-size:.6875rem;line-height:1.5;white-space:normal;max-width:100%}
.draft-confirm,.draft-swap{font-size:var(--text-ui);min-height:44px;white-space:normal}
/* Standings, scouting and transfer cards. */
.mercato-period{padding:18px 20px;background:#102534;border:1px solid #405869;border-radius:8px;margin-bottom:20px}.mercato-period .mercato-window{margin:0;gap:12px}.mercato-period summary{cursor:pointer;color:#ddc38d;font-size:var(--text-small);padding-top:12px}.mercato-period p{font-size:var(--text-small);color:#aec1d0;line-height:1.7;margin-bottom:0}.mercato-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.mercato-periods>div{min-width:0;display:grid;gap:6px}.mercato-periods strong{font-size:var(--text-ui);color:#ebdab9}.mercato-periods span{font-size:var(--text-ui)}.mercato-periods small{font-size:var(--text-meta);color:#a5bbcc;line-height:1.6}@media(max-width:600px){.mercato-period{padding:16px}.mercato-periods{grid-template-columns:minmax(0,1fr)}}
#main table{font-size:var(--text-ui);line-height:1.5}#main th{font-size:var(--text-meta);line-height:1.5;letter-spacing:.04em}#main td{font-size:var(--text-ui);line-height:1.5;padding-block:15px}
#main td small,.club-open small,.catalog-tier-label,.community-full-name,.solo-table td>small{font-size:var(--text-meta);line-height:1.5}
.solo-player-name{font-size:var(--text-ui)}.solo-rank small,.solo-pagination,.community-team-card small,.community-retirements article>span{font-size:var(--text-small);line-height:1.6}
.club-open strong,.qualification-team-link strong,.community-team-card strong{font-size:var(--text-ui);line-height:1.5}
.qualification-team-link small,.qualification-table-caption>span{font-size:var(--text-meta);line-height:1.6}.qualification-table-caption p{font-size:var(--text-ui)}
.player-card p,.player-card small,.player-role,.player-club,.player-rating span{font-size:var(--text-small);line-height:1.6}.portrait-fallback>small,.portrait-year,.portrait-credit{font-size:var(--text-meta)}
.dossier-grid h3{font-size:var(--text-ui);line-height:1.5}.dossier-stat,.dossier-fact,.dossier-fact small,.dossier-favorite b,.dossier-favorite small,.life-cap-grid>div{font-size:var(--text-small);line-height:1.6}
.dossier-kpis small{font-size:var(--text-meta);line-height:1.5}.dossier-evidence{font-size:var(--text-small)}
.qualification-sheet-toolbar>span,.qualification-team-heading p,.qualification-team-heading>div>span,.qualification-kpis>div>span,.qualification-kpis>div>small,.qualification-kpis strong>small,.qualification-roster-title>span{font-size:var(--text-meta);line-height:1.6;letter-spacing:.04em}
.qualification-player-name>small,.qualification-player-name>span,.qualification-player-meta,.qualification-attributes h4,.qualification-attributes section>div,.qualification-favorites>span,.qualification-favorites>div>span,.qualification-note{font-size:var(--text-small);line-height:1.6}
.qualification-player-rating>small{font-size:var(--text-meta)}.qualification-player-name>strong{font-size:1.25rem}.qualification-sheet-toolbar button{font-size:var(--text-ui);min-height:44px}
.qualification-player>summary{min-height:104px}.qualification-attributes{gap:24px}.qualification-kpis strong{white-space:normal}
.mercato-window,.mercato-window small,.mercato-section-heading>span,.mercato-result-meta>span,.mercato-result-meta button,.mercato-note{font-size:var(--text-small);line-height:1.6}
.mercato-controls label,.mercato-offer dl,.mercato-offer-status{font-size:var(--text-ui);line-height:1.5}
.mercato-kicker,.market-card-number,.market-card-top .market-league,.market-confirmed,.market-player-identity>small,.market-fee small,.is-featured .market-fee small,.market-route-label{font-size:var(--text-meta);line-height:1.5;letter-spacing:.04em}
.market-club,.is-featured .market-club,.market-free-agent{font-size:var(--text-ui);line-height:1.5}.market-club small,.is-featured .market-club small,.market-card-bottom,.market-card-bottom small,.market-player .market-potential{font-size:var(--text-meta);line-height:1.5}
.market-card-top{gap:10px}.market-player{gap:16px}.market-player-identity{flex-basis:160px}.market-player{flex-wrap:wrap}.market-fee{max-width:100%}
.market-route{gap:12px}.market-club .team-logo-inline{flex-shrink:0}.mercato-controls{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr)}
.economy-kpis small,.economy-kpis span,.stat small,.stats .stat label,.winrate-square span{font-size:var(--text-small);line-height:1.6}
body[data-screen=amateur] .panel p,body[data-screen=amateur] .amateur-history{font-size:var(--text-ui);line-height:1.65}body[data-screen=amateur] .amateur-level small{font-size:var(--text-small)}
/* Inbox: larger subjects and body copy; scrolling stays in the existing panes. */
.inbox-title p,.inbox-nav button,.inbox-overview button,.inbox-row-copy>strong,.inbox-correspondent strong{font-size:var(--text-ui);line-height:1.55}
.inbox-nav-label,.inbox-row-meta,.inbox-row-meta time,.inbox-row-tags,.inbox-row-tags em,.inbox-snippet,.inbox-list-heading,.inbox-list-heading>b span,.inbox-kind,.inbox-correspondent>div>span,.inbox-correspondent small,.inbox-contract-values small,.inbox-contract-title>span,.inbox-footer,.inbox-list-footer,.inbox-message-end,.inbox-message-end span:first-child{font-size:var(--text-meta);line-height:1.6;letter-spacing:.02em}
.inbox-v2 .mail-body-short,.inbox-v2 .mail-full-message .mail-body{font-size:var(--text-body);line-height:1.8}
.inbox-v2 .mail-key-facts,.inbox-v2 .mail-full-message,.inbox-welcome>p,.inbox-contract p,.inbox-sent p{font-size:var(--text-ui);line-height:1.7}
.inbox-v2 .inbox-action,.inbox-v2 .inbox-reply button,.inbox-v2 .inbox-back,.inbox-list-footer button{font-size:var(--text-ui);line-height:1.5;min-height:44px}
.inbox-row-meta{flex-wrap:wrap}.inbox-row-meta b{max-width:100%}.inbox-row-copy>strong{-webkit-line-clamp:3;margin-right:0}.inbox-snippet{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inbox-row-tags{padding-right:26px}.inbox-v2 .inbox-row-open{height:auto;min-height:146px}.inbox-overview{flex-wrap:wrap}.inbox-nav-bottom{font-size:var(--text-meta)}
.inbox-search input::placeholder{font-size:var(--text-small)}
.sk-filters label,.sk-results-count,.sk-card-copy strong,.sk-stats,.sk-odds>div span,.sk-odds>div small,.sk-pagination,.sk-sources summary,.sk-sources p,.sk-vault-copy>small{font-size:var(--text-small);line-height:1.6}
.sk-card-copy small,.sk-owned-label,.sk-champion-heading span,.sk-total>span{font-size:var(--text-meta);line-height:1.5}.sk-card-copy strong{font-weight:600}
#lol-tooltip{font-size:var(--text-body);line-height:1.7}.lol-head small,.lol-foot{font-size:var(--text-small);line-height:1.6}#lol-tooltip h4{font-size:1rem}
.shell>footer{font-size:var(--text-meta);line-height:1.75}
/* The administration shares the same readable inputs and data labels. */
.admin-title p,.admin-toolbar p,#admin-status,.admin-empty small,.detail-hero p,.delete-zone p,.admin-editor p{font-size:var(--text-ui);line-height:1.7}
.admin-main th{font-size:var(--text-meta)}.admin-main td,.mastery-row,.recent-match,.attribute-line{font-size:var(--text-ui);line-height:1.6}.admin-main td small,.admin-stats span,.admin-visit-stat small,.detail-facts span,.detail-section small,.detail-updated,.admin-edit-field output{font-size:var(--text-small);line-height:1.6}
.admin-brand small{font-size:.6875rem}.admin-main button,.back-game{font-size:var(--text-ui);min-height:44px;white-space:normal}.detail-facts strong{font-size:var(--text-ui)}
@media(max-width:1150px){.mercato-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.mercato-controls .mercato-search{grid-column:1/-1}.market-transfer-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){
 #nav .nav-label{font-size:.875rem}#nav .nav-link{min-height:52px}
 .person-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.person-tabs button{font-size:.9375rem}
 .qualification-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .inbox-workspace{grid-template-columns:minmax(270px,42%) minmax(0,1fr)}
}
@media(max-width:650px){
 .heading h1{font-size:clamp(1.75rem,1.5rem + 1vw,2.125rem)}.heading{gap:12px}
 .heading .tag{font-size:.75rem;max-width:100%}
 .welcome-hero h1{font-size:clamp(2rem,1.4rem + 3vw,2.75rem);line-height:1.25}
 .hero-copy .actions>button{flex:1 1 180px}.heritage-dashboard .hero-copy p{max-width:none}
 .creation-attribute-grid{grid-template-columns:minmax(0,1fr)}
 .mercato-controls{padding:16px;grid-template-columns:minmax(0,1fr)}.mercato-controls .mercato-search{grid-column:auto}
 .mercato-section-heading{flex-wrap:wrap}.mercato-result-meta{max-width:none;flex-direction:row;align-items:center;gap:14px;text-align:left;flex-wrap:wrap}
 .market-player-identity{flex-basis:150px}.market-fee{text-align:left}.market-route .market-club{flex-direction:column;align-items:flex-start;gap:9px}.market-route .market-club>span{width:100%}
 .qualification-attributes{grid-template-columns:minmax(0,1fr)}.qualification-player>summary{gap:10px;padding:14px 10px}.qualification-player-name>strong{font-size:1.125rem}
 .qualification-team-rating>span{font-size:var(--text-meta)!important}
 .draft-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.draft-mini-stats{flex-wrap:wrap;gap:6px}
 .inbox-v2 .inbox-reply button{font-size:var(--text-ui)!important}.inbox-overview button{font-size:var(--text-small);min-height:40px}
 .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-stat-field{min-width:0}
}
@media(max-width:400px){.compact-champion-row{grid-template-columns:44px minmax(0,1fr)}.compact-champion-row>button{grid-column:1/-1}.qualification-sheet-toolbar{gap:8px}.qualification-kpis>div{padding:12px 9px}}

.dossier-team-history{grid-column:1/-1}
.team-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dossier-grid .team-history-heading h3{margin:0}.team-history-heading>span{font-size:var(--text-meta);color:#c8b482}
.team-history-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.team-history-row{display:grid;grid-template-columns:145px minmax(0,1fr) auto;gap:16px;align-items:center;padding:16px;border:1px solid #3b536455;border-radius:8px;background:#122738}
.team-history-row.is-current{border-color:#bca16b77;box-shadow:inset 3px 0 #c7ad73}
.team-history-date{font-size:var(--text-small);color:#d0dfeb;line-height:1.6}.team-history-date small{display:block;color:#9eb5c7;font-size:var(--text-meta);margin-top:3px}
.team-history-club{display:flex;align-items:center;gap:12px;min-width:0}.team-history-club>div{min-width:0}
.team-history-club img,.team-history-monogram{width:42px;height:42px;flex:0 0 42px;object-fit:contain}.team-history-monogram{display:grid;place-items:center;background:#284255;border-radius:7px;color:#dec794}
.team-history-club button,.team-history-club strong{font-size:var(--text-ui);line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.team-history-club small{display:block;font-size:var(--text-meta);color:#a2b9ca;line-height:1.6;margin-top:3px}
.team-history-status{font-size:var(--text-meta);color:#acbecc;max-width:135px;line-height:1.5}.is-current .team-history-status{color:#e2cb9b}
.team-history-note{font-size:var(--text-meta);line-height:1.7;color:#9fb4c5;margin:17px 0 0}
.team-history-more{margin-top:12px}.team-history-more summary{cursor:pointer;font-size:var(--text-small);padding:10px 0;color:#dfc794}.team-history-more .team-history-list{margin-top:5px}
@media(max-width:700px){.team-history-row{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px}.team-history-date{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.team-history-date small{margin:0}.team-history-status{max-width:none;margin-left:54px}}

/* Portraits preserve the full studio framing on every screen. */
.avatar-picker{border:0;padding:0;margin:1.5rem 0 2rem;min-width:0}
.avatar-picker legend{font-size:var(--text-section);font-weight:700;color:var(--gold)}
.avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.avatar-option{display:flex;flex-direction:column;padding:0 0 10px;border:2px solid #263b48;border-radius:16px;overflow:hidden;background:#091621;text-align:left;min-width:0;white-space:normal;transition:border-color .15s,box-shadow .15s}
.avatar-option img{width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;display:block;background:#06101b;transform:none}
.avatar-option>span,.avatar-option>small{padding:6px 10px 0;line-height:1.35}
.avatar-option>span{font-size:var(--text-small);font-weight:700}
.avatar-option>small{font-size:var(--text-meta);color:#b1c0cb}
.avatar-option.selected{border-color:#d7bb79;box-shadow:0 0 0 2px #d7bb7930}
.avatar-option.selected small{color:#edcf8e}
.avatar-option:focus-visible{outline:3px solid #8edce3;outline-offset:3px}
.avatar-dialog{width:min(900px,94vw);max-height:90dvh;overflow:auto;padding:clamp(16px,3vw,32px)}
.avatar-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.career-identity{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.career-identity strong{display:block;font-size:var(--text-section)}
.career-identity small{display:block;font-size:var(--text-small);color:#adbfcc;margin-top:4px}
.career-avatar-button{padding:0;position:relative;width:64px;min-height:85px;border-radius:12px;overflow:hidden;background:#0d202c}
.career-avatar-button img{display:block;width:100%;height:auto;object-fit:contain}
.career-avatar-button span{position:absolute;bottom:0;left:0;right:0;background:#06111bdf;font-size:.65rem;padding:3px;color:#ead196}
.player-photo.has-avatar img,.dossier-portrait .user-avatar{width:100%;height:100%;object-fit:contain;object-position:center;transform:none;background:#07121d}
@media(max-width:600px){.avatar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.avatar-option>span{font-size:.875rem}}


/* Mail folders fit the viewport; labels and counters have separate columns. */
.inbox-v2 .inbox-workspace{grid-template-columns:244px minmax(300px,34%) minmax(0,1fr)}
.inbox-v2 .inbox-nav{padding:10px;gap:2px;overflow:visible}
.inbox-v2 .inbox-nav-label{flex:0 0 auto;padding:2px 9px 6px;margin:0;font-size:.75rem;line-height:1.4;letter-spacing:.03em}
.inbox-v2 .inbox-nav button{display:grid;grid-template-columns:18px minmax(0,1fr) 3ch;align-items:center;gap:8px;width:100%;min-width:0;height:40px;min-height:40px;margin:0;padding:6px 9px;font-size:.875rem;line-height:1.3;white-space:nowrap}
.inbox-v2 .inbox-nav button>span{width:auto;min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal;line-height:inherit}
.inbox-v2 .inbox-nav button .inbox-icon{width:18px;height:18px}
.inbox-v2 .inbox-nav button b{width:auto;min-width:0;margin:0;text-align:right;font-size:.75rem;line-height:1.3;font-variant-numeric:tabular-nums}
.inbox-v2 .inbox-nav-bottom{display:none}
.inbox-v2 .inbox-compact-nav{display:none}
.compact-attribute-row>b{white-space:nowrap}
@media(max-height:860px){
 .inbox-v2 .inbox-heading{padding:10px 20px!important}
 .inbox-v2 .inbox-title p{display:none}
 .inbox-v2 .inbox-overview{padding:5px 12px}
 .inbox-v2 .inbox-footer{padding:5px 16px}
 .inbox-v2 .inbox-nav button{height:36px;min-height:36px;padding-block:4px}
}
@media(max-width:1100px),(max-height:699px){
 .inbox-v2 .inbox-workspace{grid-template-columns:minmax(290px,40%) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .inbox-v2 .inbox-nav{display:none}
 .inbox-v2 .inbox-compact-nav{display:flex;grid-column:1/-1;flex:0 0 auto;align-items:center;gap:12px;min-width:0;padding:8px 16px;border-bottom:1px solid var(--inbox-line);background:#0a1722}
 .inbox-v2 .inbox-compact-nav label{margin:0;font-size:.875rem;color:#a9bccb;white-space:nowrap}
 .inbox-v2 .inbox-compact-nav select{flex:1;width:100%;max-width:360px;min-width:0;background:#102432;border:1px solid #3b5362;color:#ead4a5;border-radius:7px;padding:8px 12px}
}
@media(max-width:700px){
 .inbox-v2 .inbox-compact-nav{padding:8px 12px;gap:10px}
 .inbox-v2 .inbox-compact-nav select{max-width:none}
 .inbox-v2 .is-reading .inbox-compact-nav{display:none}
}
