.handball-body{--orange:#139c96;--orange-deep:#08726d;--blue:#142c45;--green:#087f68}
.handball-app{max-width:1800px}.handball-brand h1{margin:0;font-size:1.5rem}.handball-brand p{margin:3px 0;color:var(--muted)}
.sport-mark{display:grid;place-items:center;background:linear-gradient(135deg,#139c96,#142c45);border-radius:15px;width:56px;height:56px;color:white;text-decoration:none;font-weight:900;font-size:1.4rem}
.handball-app .topbar{grid-template-columns:auto 1fr auto}.handball-app .panel{margin-bottom:14px}.handball-filters{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.handball-filters label{font-size:.85rem}
.handball-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.handball-group{border:1px solid var(--line);border-radius:10px;padding:12px}.handball-group h3{margin:0 0 8px}.handball-group button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);padding:7px 4px}.country-flag{width:28px;height:19px;object-fit:cover;border:1px solid var(--line);border-radius:3px;vertical-align:middle;margin-right:8px}
.handball-schedule{display:grid;gap:6px}.handball-fixture{display:grid;grid-template-columns:160px minmax(220px,1fr) 90px 150px;gap:10px;align-items:center;width:100%;text-align:left;background:var(--bg);color:var(--ink);font-size:.9rem;border:1px solid transparent}.handball-fixture:hover{border-color:var(--orange)}.handball-fixture .fixture-date{color:var(--muted);font-size:.8rem}.handball-fixture.is-germany{border-left:4px solid var(--orange)}
.handball-team-layout{display:grid;grid-template-columns:220px minmax(380px,1fr) 360px;gap:14px;align-items:start}.handball-inspector{position:sticky;top:10px;max-height:calc(100vh - 30px);overflow:auto}#teamSearch{width:100%;margin-bottom:10px}#teamDirectory button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);margin:3px 0}#teamDirectory button.active{background:var(--blue);color:white}
.handball-roster{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}.handball-player{display:flex;align-items:center;gap:10px;text-align:left;background:var(--bg);color:var(--ink);border:1px solid var(--line);min-height:90px;padding:10px}.handball-player img,.handball-portrait{width:54px;height:68px;object-fit:cover;border-radius:7px}.handball-player small{display:block;color:var(--muted);font-size:.74rem}.handball-player strong{display:block}.shirt-number{font-size:1.2rem;color:var(--orange-deep);min-width:28px}.source-notice{background:var(--bg);border-left:3px solid var(--orange);padding:10px 12px;font-size:.84rem;line-height:1.5;color:var(--muted)}
.handball-match-layout{display:grid;grid-template-columns:minmax(600px,1.5fr) minmax(300px,1fr);gap:14px}.handball-score{display:flex;align-items:center;justify-content:center;gap:30px;padding:25px 10px}.handball-score strong{font-size:2.8rem;white-space:nowrap}.handball-score span{font-size:1.3rem;font-weight:800}.handball-table-wrap{overflow:auto}.handball-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}.handball-table th,.handball-table td{padding:8px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.handball-table th:first-child,.handball-table td:first-child{text-align:left}.handball-table button{color:var(--ink);background:transparent;padding:3px;text-align:left}.handball-table th{font-size:.75rem;color:var(--muted)}
.handball-event{display:grid;grid-template-columns:54px 1fr 50px;gap:9px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.86rem}.handball-event.is-goal{border-left:3px solid var(--orange);padding-left:9px}.handball-event button{background:transparent;color:var(--orange-deep);padding:0;text-align:left;font-size:inherit}.handball-event small{display:block;color:var(--muted)}
.handball-hover{position:fixed;z-index:9999;right:22px;top:90px;width:min(440px,calc(100vw - 30px));max-height:calc(100vh - 110px);overflow:auto;box-shadow:0 15px 65px #0004}.handball-hover[hidden]{display:none}.close-hover{position:absolute;right:10px;top:10px}.handball-person-head{display:flex;gap:13px;align-items:center;padding-right:20px}.handball-person-head h3{margin:0 0 3px}.handball-profile-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.handball-profile-facts div{background:var(--bg);padding:8px;border-radius:6px}.handball-profile-facts dt{font-size:.7rem;color:var(--muted)}.handball-profile-facts dd{margin:2px 0 0;font-weight:700}.handball-note textarea{width:100%}.handball-note .app-notes-component{margin-top:16px}.handball-source-link{color:var(--orange-deep)}
.handball-body[data-theme=dark]{--ink:#eef4f7;--muted:#a6b8c5;--line:#334857;--paper:#172934;--bg:#10212c;background:var(--bg)}
@media(max-width:1250px){.handball-team-layout{grid-template-columns:190px 1fr}.handball-inspector{grid-column:1/-1;position:static;max-height:none}.handball-match-layout{grid-template-columns:1fr}.handball-groups{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.handball-app{padding:10px}.handball-app .topbar{gap:10px}.handball-brand h1{font-size:1.1rem}.handball-team-layout{grid-template-columns:1fr}.handball-groups{grid-template-columns:1fr}.handball-fixture{grid-template-columns:90px 1fr 55px}.handball-fixture>small:last-child{display:none}.handball-score{gap:12px}.handball-score span{font-size:.95rem}.handball-score strong{font-size:2rem}.hero-stats{grid-template-columns:repeat(2,1fr)}}

/* Shared basketball/football header and menu contracts, handball colours. */
.handball-body{--accent:#139c96;--accent-strong:#08726d;--panel:var(--paper);--text:var(--ink);--ad-menu-bg:var(--paper);--ad-menu-bg-strong:var(--panel-strong);--ad-menu-bg-soft:var(--panel-soft);--ad-menu-text:var(--ink);--ad-menu-muted:var(--muted);--ad-menu-line:var(--line);--ad-menu-accent:var(--accent);--ad-menu-accent-strong:var(--accent-strong)}
.handball-app{max-width:none;padding:0}.handball-workspace{max-width:1800px}
.handball-app .handball-topbar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px}
.handball-topbar .handball-brand h1{font-size:1.12rem;line-height:1.15}
.handball-brand-mark{display:grid;place-items:center;flex-shrink:0;width:104px;height:48px;background:#142739;border-radius:8px;padding:6px}
.handball-brand-mark img{width:100%;height:100%;object-fit:contain}.handball-brand-mark.dhb-mark{background:#fff}
.handball-menu-content{padding:12px 16px;font-size:.85rem;line-height:1.5}.handball-menu-content p{margin:0 0 10px}
.handball-topbar .menu-panel{z-index:100;max-height:calc(100dvh - 85px);overflow:auto}
.handball-body[data-theme=dark] .handball-topbar,.handball-body[data-theme=dark] .view-tabs,.handball-body[data-theme=dark] .menu-button{background:var(--paper);color:var(--ink)}
.handball-body[data-theme=dark]{--panel-strong:#203744;--panel-soft:#203744;--accent-strong:#62d8cf}
.handball-court-panel{min-width:0}.handball-manual-badge{background:var(--bg);border:1px solid var(--line);padding:6px 10px;border-radius:20px;font-size:.75rem;white-space:nowrap;color:var(--muted)}
.handball-court-key{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.8rem;margin:16px 0 12px}.handball-court-key span{color:var(--muted)}
.handball-court-key .home{color:#086985}.handball-court-key .away{color:#b43e24}
.handball-court{position:relative;aspect-ratio:2;width:calc(100% - 28px);max-width:1100px;margin:12px auto 24px;border:1px solid #fff9;box-shadow:0 0 0 10px #123c50;border-radius:2px;isolation:isolate}
.handball-court-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#fff;stroke-width:.65}
.handball-court-lines .hb-surface{fill:#177d99;stroke:none}.handball-court-lines .hb-goal-area{fill:#185572;stroke:#fff}.handball-court-lines .hb-nine{stroke-dasharray:2 2}.handball-court-lines .hb-goal{stroke:url(#hbGoalStripe);stroke-width:1.5;fill:#132c3b}
.handball-court-players{position:absolute;inset:0}.handball-court-slot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:100px;text-align:center}
.handball-court-slot button{display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;padding:0;background:transparent;color:#fff;font-size:.73rem;line-height:1.15}
.court-shirt{display:grid;place-items:center;width:38px;height:35px;border:2px solid #e0f6ff;border-radius:8px 8px 12px 12px;background:#07546e;box-shadow:0 3px 8px #0005;font-weight:850;font-size:.9rem}
.handball-court-slot.away .court-shirt{background:#b63e24;border-color:#ffe3d4}.court-player-name{max-width:100%;padding:2px 5px;border-radius:4px;background:#102d40df;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.handball-court-slot button:hover .court-shirt,.handball-court-slot button:focus-visible .court-shirt{outline:3px solid #fff;outline-offset:2px}
.handball-plan-editor>summary{cursor:pointer;font-size:.9rem;font-weight:750;padding:10px 0}.handball-plan-teams{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.handball-plan-team{min-width:0;border-top:3px solid #086985;padding-top:12px}.handball-plan-team.away{border-color:#b43e24}.handball-plan-team h3{margin:0}.handball-plan-team p{font-size:.8rem}.handball-plan-team .panel-head{flex-wrap:wrap}
.handball-position-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.handball-position-inputs label{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;font-size:.75rem;font-weight:750;gap:5px}.handball-position-inputs select{min-width:0;width:100%;font-size:.8rem}.court-reset{margin-top:10px;background:var(--bg);color:var(--ink);font-size:.8rem}
@media(max-width:1380px){.handball-app .handball-topbar{grid-template-columns:1fr auto}.handball-topbar .view-tabs{grid-column:1/-1;grid-row:2;justify-self:start;max-width:100%;overflow:auto}.handball-topbar .app-menu{grid-column:2;grid-row:1}}
@media(max-width:700px){.handball-app{padding:0}.handball-topbar .handball-brand h1{font-size:.95rem}.handball-brand-mark{width:76px;height:44px}.handball-topbar .view-tabs{width:100%}.handball-topbar .view-tabs button{padding:0 7px;font-size:.7rem}.handball-topbar .brand-block{min-width:0;gap:7px}.handball-plan-teams{grid-template-columns:1fr}.handball-court-slot{width:53px}.court-shirt{width:25px;height:24px;font-size:.65rem}.handball-court-slot button{font-size:.53rem;gap:1px}.court-player-name{padding:1px 2px}.handball-court-key{font-size:.7rem}.handball-court-key span{display:none}.handball-court-panel{padding:12px}.handball-court-panel>.panel-head{align-items:flex-start;flex-direction:column;gap:8px}.handball-position-inputs{grid-template-columns:1fr}.handball-topbar .handball-brand p{display:none}.handball-court{width:calc(100% - 16px);margin:12px auto 20px}.handball-topbar .ad-header-local-time{font-size:1.1rem}.handball-topbar .ad-header-tools{gap:4px}}

/* Same viewport contract as BBL: page stays fixed, benches scroll internally. */
body.handball-match-view{height:100vh;height:100dvh;overflow:hidden}
.handball-match-view .handball-app{height:100%;display:flex;flex-direction:column;min-height:0}
.handball-match-view .handball-topbar{flex:0 0 auto}
.handball-match-view .handball-workspace{flex:1 1 auto;min-height:0;max-width:none;width:100%;padding:6px;margin:0}
.handball-match-view #match.active{height:100%;min-height:0;display:flex;flex-direction:column;gap:6px}
.handball-match-view #match>.panel{margin:0}
.handball-match-toolbar{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(0,2fr) auto;align-items:center;gap:12px;flex:0 0 auto;padding:8px 12px}
.handball-match-picker{min-width:0}.handball-match-picker select{width:100%;max-width:100%;padding:5px;font-size:.78rem}
.handball-match-toolbar .handball-score{padding:0;gap:18px}.handball-match-toolbar .handball-score strong{font-size:2rem}.handball-match-toolbar .handball-score span{font-size:1rem}
.handball-match-toolbar #matchScore>p{display:none}.handball-match-actions{display:flex;gap:5px}
.handball-stat-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:30px;height:30px;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--ink)}
.handball-stat-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.handball-stat-icon:hover,.handball-stat-icon:focus-visible{border-color:var(--accent);color:var(--accent-strong);outline:1px solid var(--accent)}
.handball-match-view .handball-court-panel{flex:1 1 auto;min-height:0;padding:0;overflow:hidden}
.handball-match-view .handball-court-layout{height:100%;min-height:0;display:grid;grid-template-columns:minmax(175px,.6fr) minmax(0,2fr) minmax(175px,.6fr);overflow:hidden}
.handball-match-view .handball-bench{display:flex;flex-direction:column;min-height:0;min-width:0;padding:8px;background:var(--paper);grid-column:auto;grid-row:auto;border-color:var(--line);overflow:hidden}
.handball-bench .lineup-heading{flex:0 0 auto;margin:0 0 6px;padding:0 0 6px;border-bottom:1px solid var(--line)}.handball-bench .lineup-heading h2{font-size:.95rem;margin:0}.handball-bench .lineup-heading small{font-size:.66rem;color:var(--muted);display:block}
.handball-bench .lineup-list{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.handball-bench-row{display:flex;align-items:center;gap:3px;flex:0 0 auto;min-width:0}.handball-bench .lineup-player{display:grid;grid-template-columns:24px minmax(0,1fr);flex:1 1 auto;min-width:0;gap:5px;min-height:29px;padding:3px 2px;background:transparent;color:var(--ink);text-align:left;border:0}
.handball-bench .lineup-player b{font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.handball-bench .lineup-player .jersey{font-size:.7rem;color:var(--accent-strong);text-align:center}.handball-bench .lineup-name{min-width:0}.handball-bench-row .handball-stat-icon{width:24px;height:24px;padding:3px}.handball-bench-edit{flex:0 0 auto;background:var(--bg);color:var(--ink);font-size:.72rem;padding:6px;margin-top:6px}
.handball-match-view .handball-court-wrap{display:flex;flex-direction:column;min-height:0;min-width:0;padding:8px 12px;background:var(--bg);grid-row:auto}
.handball-court-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.75rem;color:var(--muted);flex:0 0 auto}.handball-court-caption span{font-size:.68rem}.handball-court-stage{display:grid;place-items:center;container-type:size;flex:1 1 auto;min-height:0;min-width:0}
.handball-match-view .handball-court{width:min(calc(100cqw - 24px),calc(200cqh - 24px));max-width:none;height:auto;aspect-ratio:2;margin:0}
.handball-match-view .court-note{color:var(--muted);font-size:.67rem;margin:4px 0 0;flex:0 0 auto}
.handball-court-slot>.handball-court-stat{position:absolute;right:0;top:2px;width:22px;height:22px;padding:3px;background:#142739;color:#fff;border-color:#fff8;font-size:inherit;display:grid;gap:0}
.handball-court-slot>.handball-court-stat svg{width:14px;height:14px}
.handball-formation-dialog{width:min(1050px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);overflow:auto;box-shadow:0 20px 80px #0006}.handball-formation-dialog::backdrop{background:#10212ca8}.handball-formation-dialog>header{display:flex;align-items:center;justify-content:space-between}.handball-formation-dialog>header h2{font-size:1.1rem;margin:0}.handball-formation-dialog>header button{background:var(--bg);color:var(--ink)}
.handball-info-hover{width:min(680px,calc(100vw - 16px));max-height:calc(100dvh - 16px);padding:14px;box-shadow:0 12px 60px #0005;border:1px solid var(--line);background:var(--paper);color:var(--ink);overflow:auto;font-size:.85rem}
.handball-info-head{display:flex;justify-content:space-between;align-items:center;gap:15px;position:sticky;top:-14px;background:var(--paper);padding:6px 0;z-index:2}.handball-info-head h2{font-size:1rem;margin:0}.handball-info-head button{background:var(--bg);color:var(--ink)}.handball-ticker-filter{display:block;margin:10px 0}
#matchSupport[hidden]{display:none!important}
@media(max-width:1200px){.handball-match-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:5px}.handball-match-toolbar #matchScore{grid-row:2;grid-column:1/-1}.handball-match-view .handball-court-layout{grid-template-columns:minmax(145px,.6fr) minmax(0,2fr) minmax(145px,.6fr)}.handball-match-view .handball-court-slot{width:72px}.handball-match-view .handball-court-slot button{font-size:.62rem}.handball-match-view .court-shirt{width:30px;height:29px;font-size:.75rem}}
@media(max-width:700px){.handball-match-view .handball-workspace{padding:3px}.handball-match-toolbar{padding:5px;gap:4px}.handball-match-actions{gap:3px}.handball-match-actions .handball-stat-icon{width:25px;height:25px;padding:4px}.handball-match-toolbar .handball-score{gap:6px}.handball-match-toolbar .handball-score span{font-size:.75rem}.handball-match-toolbar .handball-score strong{font-size:1.4rem}.handball-match-toolbar .country-flag{width:19px;height:13px;margin-right:3px}.handball-match-view .handball-court-layout{grid-template-columns:minmax(78px,.65fr) minmax(0,1.5fr) minmax(78px,.65fr)}.handball-match-view .handball-bench{padding:4px}.handball-bench .lineup-heading h2{font-size:.65rem}.handball-bench .lineup-heading small{font-size:.52rem}.handball-bench .lineup-player{grid-template-columns:14px minmax(0,1fr);gap:1px;min-height:25px}.handball-bench .lineup-player b{font-size:.56rem}.handball-bench .lineup-player .jersey{font-size:.55rem}.handball-bench-row{gap:0}.handball-bench-row .handball-stat-icon{width:19px;height:22px;padding:2px}.handball-bench-row .handball-stat-icon svg{width:13px;height:13px}.handball-bench-edit{font-size:.55rem;padding:4px}.handball-match-view .handball-court-wrap{padding:4px 6px}.handball-court-caption{font-size:.55rem;flex-direction:column;gap:2px}.handball-court-caption span{font-size:.5rem}.handball-match-view .court-note{font-size:.5rem}.handball-match-view .handball-court-slot{width:40px}.handball-match-view .handball-court-slot button{font-size:.4rem}.handball-match-view .court-shirt{width:19px;height:18px;font-size:.5rem}.handball-match-view .handball-court-slot>.handball-court-stat{width:15px;height:15px;right:-6px;padding:1px}.handball-match-view .handball-court-stat svg{width:10px;height:10px}.handball-match-view .handball-court{width:min(calc(100cqw - 16px),calc(200cqh - 16px));box-shadow:0 0 0 5px #123c50}.handball-formation-dialog{padding:12px}}
@media(max-height:650px) and (min-width:701px){.handball-match-view .handball-topbar{padding-top:4px;padding-bottom:4px}.handball-match-view .handball-brand p{display:none}.handball-match-view .handball-court-caption,.handball-match-view .court-note{font-size:.6rem}.handball-match-view .handball-court-slot{width:65px}.handball-match-view .handball-court-slot button{font-size:.55rem}.handball-match-view .court-shirt{width:25px;height:24px;font-size:.65rem}}

.handball-body .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.handball-match-view .handball-bench .lineup-heading{display:block}
@media(max-width:700px) and (orientation:portrait){
 .handball-match-view .handball-court{width:min(calc(100cqw - 16px),calc(50cqh - 16px));aspect-ratio:1/2}
 .handball-match-view .handball-court-lines{width:200%;height:50%;left:50%;top:50%;transform:translate(-50%,-50%) rotate(90deg)}
 .handball-match-view .handball-court-slot{left:calc(100% - var(--y));top:var(--x);width:50px}
 .handball-match-view .handball-court-slot button{font-size:.49rem}
 .handball-match-view .court-shirt{width:23px;height:22px;font-size:.6rem}
}

/* Football-style tournament rail and separate matchday workspace. */
.handball-overview-layout{display:grid;grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:14px;align-items:start}
.handball-tournament-sidebar{min-width:0}.handball-tournament-sidebar .panel{padding:14px}.handball-fixtures-panel{min-width:0}
.handball-group-navigation{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}.handball-group-navigation button,.handball-matchday-navigation button{background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:6px 9px;font-size:.76rem;white-space:nowrap}
.handball-group-navigation button.active,.handball-matchday-navigation button.active{background:var(--accent);border-color:var(--accent);color:white}
.handball-tournament-sidebar .handball-groups{display:block}.handball-tournament-sidebar .handball-group{border:0;padding:0}.handball-tournament-sidebar .handball-group h3{font-size:.85rem}.handball-tournament-sidebar .handball-table th,.handball-tournament-sidebar .handball-table td{padding:7px 3px;font-size:.76rem}.handball-tournament-sidebar .country-flag{width:21px;height:14px;margin-right:5px}.handball-tournament-sidebar .handball-group>small{display:block;margin-top:8px;font-size:.7rem}
.handball-matchday-navigation{display:flex;gap:5px;overflow-x:auto;padding:2px 0 12px;margin-bottom:4px;scrollbar-width:thin}
.handball-matchday>header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:2px solid var(--accent);padding:8px 0;margin:4px 0 10px}.handball-matchday h3{font-size:1rem;margin:0}.handball-matchday>header>span{color:var(--muted);font-size:.75rem}.handball-matchday+.handball-matchday{margin-top:20px}
.handball-fixtures-panel .handball-fixture{grid-template-columns:90px minmax(0,1fr) 90px 140px;border:1px solid var(--line);margin:6px 0;min-height:74px;padding:10px 12px}.handball-fixture-teams{display:grid;gap:7px;font-weight:750}.handball-fixture-teams>span{display:flex;align-items:center}.handball-fixtures-panel .handball-fixture>b{font-size:1.1rem}.handball-fixtures-panel .handball-fixture>small{color:var(--muted);font-size:.74rem}.handball-fixtures-panel .handball-fixture.is-germany{border-left:4px solid var(--accent)}
.handball-bracket{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}.handball-bracket section{min-width:0}.handball-bracket h3{font-size:.78rem;margin:0 0 6px;color:var(--accent-strong)}.handball-bracket button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:8px;margin-bottom:7px;text-align:left;font-size:.74rem;min-height:70px}.handball-bracket small{font-size:.66rem;color:var(--muted)}.handball-bracket section:first-child{position:relative}.handball-bracket section:first-child:after{content:'';position:absolute;right:-10px;top:50px;width:9px;height:65px;border-right:1px solid var(--accent);border-top:1px solid var(--accent);border-bottom:1px solid var(--accent)}.handball-tree-path{font-size:.7rem;color:var(--muted);margin-top:0}.handball-overview-counts{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.handball-overview-counts article{padding:8px}.handball-overview-counts article span{font-size:.6rem}.handball-overview-counts article strong{font-size:1.1rem}
.handball-hover{max-height:calc(100dvh - 16px);padding-top:60px}.handball-hover>.close-hover{z-index:3;top:10px;right:10px;width:30px;height:30px;min-height:0;padding:0;display:grid;place-items:center;line-height:1;font-size:1.1rem}.handball-info-hover{max-width:calc(100vw - 16px)}
@media(max-width:1150px){.handball-overview-layout{grid-template-columns:minmax(290px,340px) minmax(0,1fr)}.handball-fixtures-panel .panel-head{align-items:flex-start;flex-direction:column;gap:10px}.handball-fixtures-panel .handball-fixture{grid-template-columns:65px minmax(0,1fr) 55px}.handball-fixtures-panel .handball-fixture>small{display:none}.handball-fixtures-panel .country-flag{width:22px;height:15px}.handball-fixtures-panel .handball-fixture>b{font-size:.9rem}}
@media(max-width:760px){.handball-overview-layout{grid-template-columns:1fr}.handball-tournament-sidebar{display:grid;grid-template-columns:1fr;gap:0}.handball-overview-counts{display:none}.handball-fixtures-panel .handball-fixture{grid-template-columns:52px minmax(0,1fr) 45px;padding:8px 6px;font-size:.78rem}.handball-fixtures-panel .handball-fixture .fixture-date{font-size:.65rem}.handball-filters{gap:8px}.handball-matchday h3{font-size:.85rem}.handball-fixtures-panel .country-flag{width:20px;height:14px}.handball-hover{width:min(440px,calc(100vw - 16px))}}

.handball-overview-counts article{min-width:0}.handball-overview-counts article span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.55rem}

/* WM-style persistent tables: every group is visible without a group selector. */
/* Match cards follow available panel width, including beside the tournament rail. */
.handball-fixtures-panel{container-type:inline-size}
.handball-matchday-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.handball-fixture-card{position:relative;min-width:0}
.handball-fixtures-panel .handball-fixture-card .handball-fixture{width:100%;height:100%;min-height:88px;grid-template-columns:62px minmax(0,1fr) 45px;gap:4px 8px;margin:0;padding:10px 34px 8px 9px;text-align:left}
.handball-fixture-card .handball-fixture-teams{gap:5px;font-size:.8rem;min-width:0}
.handball-fixture-card .handball-fixture-teams>span{min-width:0;overflow-wrap:anywhere}
.handball-fixtures-panel .handball-fixture-card .country-flag{width:21px;height:14px;margin-right:5px;flex-shrink:0}
.handball-fixtures-panel .handball-fixture-card .fixture-date{font-size:.7rem}
.handball-fixtures-panel .handball-fixture-card .handball-fixture>b{font-size:.95rem;text-align:center}
.handball-fixtures-panel .handball-fixture-card .handball-fixture>small{display:block;grid-column:2/-1;font-size:.65rem}
.handball-fixture-star{position:absolute;top:5px;right:5px;padding:0;width:27px;height:29px;background:transparent;color:var(--muted);font-size:1.4rem;line-height:1;border:1px solid transparent;border-radius:5px}
.handball-fixture-star.is-starred{color:#a56800;background:#fff2ca}
.handball-fixture-star:hover:enabled,.handball-fixture-star:focus-visible{border-color:var(--accent);background:var(--bg)}
.handball-fixture-star:disabled{opacity:.5}
#matchStarStatus{font-size:.75rem;color:#a11a32}#matchStarStatus:empty{display:none}
@container(min-width:570px){.handball-matchday-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(min-width:900px){.handball-matchday-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.handball-overview-layout{grid-template-columns:minmax(300px,360px) minmax(0,1fr)}
.handball-tournament-sidebar{display:contents}
.handball-tables-panel{grid-column:1/-1;grid-row:1}
.handball-tree-panel{grid-column:1;grid-row:2}
.handball-fixtures-panel{grid-column:2;grid-row:2/4}
.handball-overview-counts{grid-column:1;grid-row:3}
.handball-tables-panel .handball-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.handball-tables-panel .handball-group{padding:7px;border:1px solid var(--line);border-radius:7px;min-width:0;align-self:start}
.handball-tables-panel .handball-group h3{font-size:.8rem;margin:0 0 3px;line-height:1.25}
.handball-tables-panel .handball-table th,.handball-tables-panel .handball-table td{font-size:.73rem;padding:3px 2px;line-height:1.25}
.handball-tables-panel .handball-table button{display:flex;align-items:center;min-height:0;padding:1px 0;line-height:1.25;font:inherit;font-weight:700}
.handball-tables-panel .country-flag{width:19px;height:13px;margin-right:4px}
.handball-tables-panel .handball-group>small{font-size:.62rem;margin-top:3px;line-height:1.2}
.handball-match-toolbar{grid-template-columns:minmax(0,1fr) auto}
.handball-match-toolbar #matchScore{grid-column:1;grid-row:1}
.handball-hover{width:min(560px,calc(100vw - 16px))}
.handball-rich-profile-head{display:flex;gap:14px;align-items:center;padding-bottom:12px;border-bottom:2px solid var(--accent)}
.handball-rich-profile-head h3{margin:0;font-size:1.25rem}.handball-rich-profile-head p{margin:4px 0;color:var(--muted)}
.handball-rich-profile-head small,.handball-club-association{display:block}.handball-rich-profile-head small{font-size:.67rem;color:var(--muted);margin-top:3px}
.handball-profile-section{border-top:1px solid var(--line);padding:12px 0}.handball-profile-section h4{font-size:.87rem;margin:0 0 8px}.handball-profile-section summary{cursor:pointer;font-weight:700;font-size:.87rem}
.handball-profile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}
.handball-profile-metrics>div{background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:8px}.handball-profile-metrics small,.handball-profile-metrics strong{display:block}.handball-profile-metrics small{font-size:.67rem;color:var(--muted)}.handball-profile-metrics strong{font-size:1.1rem;margin-top:3px}
.handball-career-table{font-size:.73rem}.handball-career-table td{vertical-align:top}.handball-career-table small,.handball-profile-section li small{display:block;color:var(--muted);font-size:.65rem;margin-top:3px}
.handball-profile-provenance,.handball-source-links{font-size:.71rem;color:var(--muted)}.handball-source-links{display:flex;flex-wrap:wrap;gap:8px}.handball-source-links small{flex-basis:100%}
.handball-research-navigation{display:flex;flex-wrap:wrap;gap:5px;margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}.handball-research-navigation button{font-size:.74rem;background:var(--bg);color:var(--ink);border:1px solid var(--line)}
.handball-research-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;background:var(--paper);color:var(--ink);text-align:left;border:1px solid var(--line)}.handball-research-row small{color:var(--muted)}
@media(max-width:1050px){.handball-tables-panel .handball-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.handball-overview-layout{grid-template-columns:1fr}.handball-tree-panel,.handball-fixtures-panel,.handball-overview-counts{grid-column:1;grid-row:auto}.handball-match-toolbar{grid-template-columns:minmax(0,1fr) auto}.handball-match-toolbar #matchScore{grid-row:1;grid-column:1}.handball-match-actions{flex-wrap:wrap;max-width:86px}.handball-rich-profile-head h3{font-size:1.05rem}}
@media(max-width:420px){.handball-tables-panel .handball-groups{grid-template-columns:1fr}}

.handball-tournament-sidebar #groups>button{display:flex;align-items:center;gap:5px;width:100%;padding:7px 4px;margin:0;text-align:left;background:transparent;color:var(--ink);border-bottom:1px solid var(--line);border-radius:0;font-size:.83rem}.handball-tournament-sidebar #groups>button:hover{background:var(--bg)}

/* Shared Nations League header and working controls, scoped to handball. */
.handball-body{--panel:var(--paper);--panel-strong:var(--paper);--text:var(--ink);--soft:var(--bg);--tooltip-surface:var(--paper)}
.handball-match-view .handball-match-toolbar{display:block;padding:0;margin:0;flex:0 0 auto}
.handball-body .football-match-header{padding:6px 10px}
.handball-body .fheader-top{min-height:55px}.handball-body .fheader-fixture{font-size:.66rem;width:220px}.handball-body .fheader-teams{width:calc(100% - 440px)}
.handball-body .fheader-identity>strong button{padding:0;background:none;color:var(--ink);font-size:1.08rem;font-weight:800;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
.handball-body .match-score{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:7px}
.handball-body .fheader-bottom{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;margin-top:4px}.handball-body .fheader-actions{gap:5px}
.handball-kit{position:relative;display:grid;place-items:center;overflow:hidden;width:34px;height:32px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}.handball-kit input{width:34px;height:32px;border:0;padding:0;cursor:pointer}.handball-kit span{position:absolute;pointer-events:none;color:white;text-shadow:0 1px 2px #000;font-size:24px}
.handball-event-composer{display:flex;align-items:center;gap:3px;min-width:0;padding:4px;border:1px solid var(--line);background:var(--bg);border-radius:7px;width:min(560px,100%)}
.handball-body .fheader-actions .handball-event-composer select{min-width:0;width:80px;flex:1 1 70px}.handball-body .fheader-actions .handball-event-composer input{width:47px;flex:0 0 47px}.handball-event-composer button{padding:4px 9px}
.handball-game-clock{display:flex;align-items:center;gap:3px;background:var(--bg);border:1px solid var(--line);border-radius:7px;padding:4px}.handball-body .fheader-actions .handball-game-clock select{width:84px;flex:none;font-size:.63rem}.handball-game-clock button{display:flex;gap:4px;padding:4px 6px;white-space:nowrap;font-size:.8rem}
.handball-body .fheader-left-tools,.handball-body .fheader-right-tools{gap:3px}.handball-body .fheader-left-tools .handball-stat-icon,.handball-body .fheader-right-tools .handball-stat-icon{width:26px;min-width:26px;height:27px;padding:4px}
.handball-bench-controls{display:grid;grid-template-columns:1fr;gap:4px;flex:0 0 auto;padding-bottom:6px}.handball-bench-controls label{font-size:.63rem;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:4px;color:var(--muted)}.handball-bench-controls select{width:100%;min-width:0;padding:3px;font-size:.68rem;height:25px}
.handball-bench-staff{flex:0 0 auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:4px 0;margin-bottom:5px;max-height:115px;overflow:auto;scrollbar-width:thin}.handball-bench-staff>p{font-size:.64rem;margin:3px}.handball-bench-coach{display:flex;align-items:center;gap:4px;font-size:.7rem}.handball-bench-coach>span{font-size:.6rem;color:var(--accent-strong)}.handball-bench-coach>button[data-research]{min-width:0;flex:1;background:none;color:var(--ink);text-align:left;padding:4px 0;font-size:.73rem;font-weight:750}.handball-bench-coach small{display:block;font-size:.6rem;color:var(--muted);font-weight:400}
.handball-event-quick{width:19px;height:23px;flex:0 0 auto;padding:1px;background:var(--bg);color:var(--ink);font-weight:800}.handball-captain{color:var(--accent-strong);font-style:normal;font-size:.65rem}
.handball-court-slot .court-shirt{background:var(--kit,#147b96)!important}.handball-court-slot[draggable=true]{cursor:grab}
.handball-roster-controls{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0}.handball-roster-controls input{flex:1 1 180px;min-width:0}.handball-roster-controls select{font-size:.73rem;max-width:160px;padding:4px}
.handball-squad-scroll{overflow:auto}.handball-squad-table th,.handball-squad-table td{padding:5px 4px;font-size:.73rem}.handball-squad-table td{vertical-align:middle}.handball-squad-table .handball-player{display:flex;gap:6px;align-items:center;min-height:37px;border:0;padding:0;background:none}.handball-squad-table .handball-player>span{display:block}.handball-squad-table .handball-player img{width:25px;height:32px}.handball-squad-table .handball-player strong{font-size:.76rem;display:block}.handball-squad-table .handball-player small{display:block;font-size:.61rem;color:var(--muted)}.handball-squad-table td input{width:42px;padding:4px;font-size:.72rem}.handball-coach-row{background:var(--bg)}.handball-coach-row button{padding:0;background:none;color:var(--ink);font-weight:800;font-size:.78rem}.handball-coach-row small{margin-left:8px;color:var(--muted);font-size:.65rem}
.handball-hover{width:min(900px,calc(100vw - 16px));font-size:.8rem}.handball-entity-team{width:min(760px,calc(100vw - 16px))}.handball-player-profile .handball-profile-facts{gap:5px;margin:4px 0}.handball-player-profile .handball-profile-facts>div{padding:6px}.handball-player-profile .handball-profile-facts dt{font-size:.59rem}.handball-player-profile .handball-profile-facts dd{font-size:.73rem}.handball-player-profile .handball-rich-profile-head h3{font-size:1rem}.handball-player-profile .handball-rich-profile-head p{font-size:.7rem}.handball-player-profile .handball-portrait{width:46px;height:58px}.handball-player-profile .handball-profile-section{padding:8px 0}.handball-player-profile .handball-profile-metrics>div{padding:6px}.handball-player-profile .handball-profile-metrics strong{font-size:.9rem}.handball-player-profile .handball-profile-section h4,.handball-player-profile summary{font-size:.72rem}
.handball-inspector .football-player-hover{grid-template-columns:1fr!important}.handball-inspector .fph-notes{border-left:0;padding-left:0}
.handball-coach-profile{min-width:0}.handball-coach-profile .fph-avatar{width:92px;height:112px;flex:0 0 92px}.handball-coach-profile .fph-avatar img{width:100%;height:100%;object-fit:contain;object-position:center}.hb-coach-photo-right .fph-avatar img{object-fit:cover;object-position:right center}.hb-coach-biography p{font-size:.82rem;line-height:1.4;margin:0 0 7px}.hb-coach-sources{font-size:.72rem;overflow-wrap:anywhere}.hb-coach-sources p{margin:5px 0}.handball-coach-profile .source-notice{font-size:.68rem;line-height:1.35}.handball-coach-profile .fph-identity{min-width:0;overflow-wrap:anywhere}.handball-inspector .handball-coach-profile .fph-head{gap:9px}.handball-inspector .handball-coach-profile .fph-avatar{width:72px;height:90px;flex-basis:72px}.handball-coach-directory-photo{width:38px;height:45px;object-fit:contain;flex:0 0 38px}.handball-research-row:has(.handball-coach-directory-photo){display:flex;align-items:center;gap:9px;text-align:left}.handball-research-row:has(.handball-coach-directory-photo)>span{min-width:0}
.handball-body .handball-coach-profile .fph-head{grid-template-columns:92px minmax(0,1fr)}.handball-body .handball-coach-profile .fph-avatar{width:92px;height:112px}.handball-body .handball-coach-profile .fph-avatar img{object-fit:contain}.handball-body .hb-coach-photo-right .fph-avatar img{object-fit:cover;object-position:right center}.handball-body .handball-inspector .handball-coach-profile .fph-head{grid-template-columns:72px minmax(0,1fr)}.handball-body .handball-inspector .handball-coach-profile .fph-avatar{width:72px;height:90px}.handball-research-row>span{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.handball-research-row:has(.handball-coach-directory-photo){justify-content:flex-start}.handball-roster-controls[hidden]{display:none}
@media(max-width:650px){.handball-body .handball-coach-profile .football-coach-hover{grid-template-columns:minmax(0,1fr)!important}.handball-body .handball-coach-profile .fph-notes{border-left:0;padding-left:0}.handball-body .handball-coach-profile .fph-main,.handball-body .handball-coach-profile .fph-notes{min-width:0}}
.handball-info-hover{width:min(900px,calc(100vw - 16px))}.handball-info-table .handball-group{margin:8px 0;border:1px solid var(--line);padding:8px;border-radius:6px}.handball-info-table{column-width:auto}.handball-info-table>.handball-group{display:inline-block;vertical-align:top;width:48%;margin:1%}.handball-info-source,.handball-info-workspace,.handball-info-notes{width:min(560px,calc(100vw - 16px))}
.handball-team-hover .fth-head .country-flag{width:44px;height:30px}.handball-team-hover .fth-notes,.handball-player-profile .fph-notes{padding-left:15px;border-left:1px solid var(--line)}.handball-team-hover p{font-size:.74rem}.handball-team-hover button{background:none;color:var(--accent-strong);text-align:left;padding:2px;font-size:inherit}
.handball-info-ticker .football-result-hover{background:var(--paper)}.handball-event-symbol{font-size:.8rem;font-weight:800;color:var(--accent-strong)}.handball-manual-mode{display:block;margin:7px 0;font-size:.75rem}
.handball-referee-card>.handball-note{margin-top:10px}.handball-body .handball-venue-card .match-profile-body{display:grid;grid-template-columns:1fr 1fr;gap:15px}.handball-body .handball-venue-card .match-profile-identity>strong{font-size:1.1rem}.handball-body .handball-venue-card .match-profile-head{margin-bottom:12px}
#handballActionStatus{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 30px);padding:10px 16px;border:1px solid var(--accent);border-radius:7px;background:var(--paper);color:var(--ink);z-index:30000;box-shadow:0 5px 30px #0003;font-size:.8rem}
.handball-bench-actions{display:flex;flex:0 0 auto;gap:3px;flex-wrap:wrap;padding-top:5px}.handball-bench-actions button{background:var(--bg);color:var(--ink);font-size:.63rem;padding:5px;flex:1;min-width:0;margin:0}.handball-bench-actions .handball-bench-edit{margin:0}
.handball-person-badges{display:inline-flex;flex-wrap:wrap;gap:2px;vertical-align:middle}.hb-badge{font-size:.55rem;padding:1px 3px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--ink);font-weight:800}.hb-yellow{background:#fff0a7;color:#5e4800}.hb-red{background:#b51c33;color:white}.hb-blue{background:#164fa5;color:white}.hb-two-minutes{background:#fee4d3;color:#783500}.hb-goal{background:#d5efec;color:#075550}
.handball-body .ad-program-panel,.handball-body .rr-panel{z-index:100005}.handball-body .ad-highlight-editor{z-index:100010}.handball-body #handballActionStatus{z-index:100020}
.handball-kit{background:var(--paper)}.handball-kit input{position:absolute;inset:0;opacity:0;z-index:1}.handball-kit-icon{width:28px;height:28px;pointer-events:none;color:var(--ink)}
.handball-body #teamSummary h2>button{background:none;color:var(--ink);padding:0;font:inherit;display:inline-flex;align-items:center}
.handball-stat-icon.has-sync-error{color:#a11a32!important;border-color:#b3283e!important;background:#fff0f2!important}.handball-stat-icon.is-saving{opacity:.6}
.handball-research-row[hidden]{display:none!important}#researchSearch{width:100%;padding:7px;margin:0 0 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink)}
.handball-inspector-tabs{display:flex;gap:4px;margin-bottom:12px;border-bottom:1px solid var(--line);padding-bottom:8px}.handball-inspector-tabs button{flex:1;background:var(--bg);color:var(--ink);font-size:.75rem}.handball-inspector-tabs .active{background:var(--accent);color:white}
.handball-inspector .football-team-hover{grid-template-columns:1fr!important;width:100%;min-width:0}.handball-inspector .fth-notes{padding:0;border:0}.handball-inspector .football-team-hover .fth-facts{grid-template-columns:1fr 1fr}.handball-inspector .frh-crew{min-width:0}
.handball-body .handball-bench .lineup-player{min-height:29px}.handball-bench .lineup-name .handball-person-badges:empty{display:none}
@media(max-width:700px){.handball-body .handball-game-clock select{position:static;opacity:1;pointer-events:auto;width:47px!important;max-width:47px;font-size:.5rem}.handball-bench-actions button{font-size:.48rem;padding:3px;flex:1 1 40%}.handball-bench-actions button:last-child{flex-basis:100%}.hb-badge{font-size:.43rem;padding:0 1px}}
.handball-body .handball-game-clock select{display:block}.handball-game-clock{position:relative}.handball-game-clock>select{max-width:84px}
@media(max-width:1000px){.handball-body .fheader-bottom{grid-template-columns:auto minmax(0,1fr)}}
@media(max-width:700px){.handball-body .handball-game-clock select{position:absolute;top:100%;right:0;max-width:110px;opacity:0;pointer-events:none}.handball-game-clock:focus-within select{opacity:1;pointer-events:auto;z-index:10}.handball-game-clock button{min-width:40px}.handball-body .fheader-right-tools{gap:2px}}
@media(max-width:1400px){.handball-body .fheader-fixture{position:static;width:auto;display:flex;flex-direction:row;gap:8px;margin:0 0 3px;min-height:0}.handball-body .fheader-teams{width:100%}.handball-body .fheader-top{min-height:0}.handball-body .fheader-bottom{grid-template-columns:auto 1fr auto}.handball-body .fheader-actions{grid-column:2;grid-row:1;flex-wrap:nowrap}.handball-body .fheader-left-tools{grid-column:1;grid-row:1}.handball-body .fheader-right-tools{grid-column:3;grid-row:1}.handball-game-clock select{display:none}}
@media(max-width:1000px){.handball-body .fheader-bottom{grid-template-columns:1fr 1fr}.handball-body .fheader-actions{grid-column:1/-1;grid-row:1}.handball-body .fheader-left-tools{grid-column:1;grid-row:2}.handball-body .fheader-right-tools{grid-column:2;grid-row:2}.handball-body .fheader-identity>strong button{font-size:.9rem}}
@media(max-width:700px){.handball-body .football-match-header{padding:4px 5px}.handball-body .fheader-fixture{font-size:.5rem;white-space:nowrap;overflow:hidden}.handball-body .fheader-fixture small{display:none}.handball-body .fheader-identity>strong button{font-size:.67rem}.handball-kit{width:19px;height:24px}.handball-kit input{width:23px;height:24px}.handball-kit span{font-size:17px}.handball-body .fheader-crest{width:21px;flex-basis:21px}.handball-body .fheader-crest img{width:21px;height:17px}.handball-body .fheader-score-cluster .match-score{font-size:1.1rem;min-width:51px;min-height:28px}.handball-body .fheader-identity>strong{min-height:28px}.handball-body .fheader-top .fheader-identity{gap:1px}.handball-body .fheader-bottom{gap:3px;margin-top:2px}.handball-body .fheader-actions .handball-event-composer select{font-size:.55rem;max-width:88px;height:23px;flex-basis:40px}.handball-body .fheader-actions .handball-event-composer input{width:35px;flex-basis:35px;font-size:.55rem;height:23px}.handball-event-composer{gap:2px;padding:2px}.handball-event-composer button{padding:2px 5px}.handball-game-clock{padding:2px}.handball-game-clock button{padding:3px;font-size:.62rem}.handball-body .fheader-left-tools .handball-stat-icon,.handball-body .fheader-right-tools .handball-stat-icon{width:23px;min-width:23px;height:22px;padding:3px}.handball-body .fheader-left-tools .handball-stat-icon svg,.handball-body .fheader-right-tools .handball-stat-icon svg{width:16px;height:16px}.handball-bench-controls label{display:block;font-size:.48rem}.handball-bench-controls select{font-size:.5rem;height:23px;padding:1px}.handball-bench-staff{max-height:81px}.handball-bench-coach{gap:2px}.handball-bench-coach>span{font-size:.45rem}.handball-bench-coach>button[data-research]{font-size:.52rem}.handball-bench-coach small{font-size:.43rem}.handball-bench-coach .handball-stat-icon{display:none}.handball-event-quick{display:none}.handball-body .handball-venue-card .match-profile-body{grid-template-columns:1fr}.handball-team-hover .fth-notes,.handball-player-profile .fph-notes{padding-left:0;border:0}.handball-info-table>.handball-group{width:100%;margin:6px 0}}

/* Team workspace follows football's compact roster and persistent inspector. */
.handball-match-settings>label,.handball-match-settings fieldset>label{display:flex;align-items:flex-start;gap:7px;margin:8px 0;font-size:.8rem}.handball-match-settings input{flex:none}.handball-match-settings fieldset{border:1px solid var(--line);border-radius:6px;margin:12px 0 0;padding:8px}.handball-match-settings legend{font-weight:750;font-size:.75rem}.handball-match-settings #hbSyncStatus{font-size:.68rem;line-height:1.4}
.handball-body[data-hb-show-clock=false] .handball-game-clock,.handball-body[data-hb-show-storylines=false] [data-handball-info=storylines]{display:none}
#handballMatchTimeline{flex:0 0 auto;min-width:0;margin:4px 0;font-size:.65rem;border:1px solid var(--line);border-radius:5px;background:var(--paper)}#handballMatchTimeline[hidden]{display:none}#handballMatchTimeline .match-center-timeline-head{display:flex;justify-content:space-between;padding:3px 6px;font-size:.65rem}#handballMatchTimeline .match-center-timeline-track{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;padding:3px;max-height:49px;scrollbar-width:thin}#handballMatchTimeline p{margin:3px;font-size:.65rem}.hb-timeline-event{display:grid;grid-template-columns:auto auto;gap:1px 4px;padding:3px 5px;flex:0 0 auto;min-width:88px;max-width:130px;text-align:left;background:var(--bg);color:var(--ink);font-size:.62rem}.hb-timeline-event small{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;font-size:.58rem}
@media(max-width:700px){#handballMatchTimeline .match-center-timeline-head{font-size:.5rem}#handballMatchTimeline .match-center-timeline-track{max-height:42px}.hb-timeline-event{min-width:70px;font-size:.5rem}.hb-timeline-event small{font-size:.48rem;max-width:80px}}
.handball-kit-picker{display:inline-flex;align-items:center;gap:3px;max-width:155px;min-width:0}
.handball-kit-picker .match-kit-selector{display:inline-flex;align-items:center;gap:3px;min-width:0;max-width:130px;padding:2px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink)}
.handball-kit-preview{display:grid;place-items:center;width:30px;height:32px;flex:0 0 30px;background:white;border-radius:3px;overflow:hidden}
.handball-kit-preview img,.handball-kit-preview svg{width:100%;height:100%;object-fit:contain}
.handball-kit-picker select{min-width:0;width:90px;max-width:90px;padding:2px;border:0;background:var(--paper);color:var(--ink);font-size:.6rem}
.handball-kit-picker input[type=color]{width:21px;height:26px;padding:0;border:1px solid var(--line);border-radius:3px;flex:none;cursor:pointer}
.handball-kit-picker>a{font-size:.72rem;color:var(--accent-strong)}
.handball-keeper-kit{display:flex;align-items:center;gap:3px}.handball-keeper-kit:before{content:'TW';font-size:.63rem;color:var(--muted);width:51px;flex:none}
.handball-keeper-kit .handball-kit-picker{max-width:calc(100% - 54px)}.handball-keeper-kit .handball-kit-preview{width:22px;height:25px;flex-basis:22px}.handball-keeper-kit select{width:100%;max-width:110px}
@media(max-width:700px){.handball-kit-picker{max-width:70px;gap:1px}.handball-kit-picker .match-kit-selector{max-width:52px;gap:0;padding:1px}.handball-kit-preview{width:20px;height:23px;flex-basis:20px}.handball-kit-picker select{width:26px;max-width:26px;font-size:.5rem}.handball-kit-picker input[type=color]{width:15px;height:21px}.handball-kit-picker>a{font-size:.6rem}.handball-keeper-kit:before{width:auto;flex:none;font-size:.5rem}.handball-keeper-kit .handball-kit-picker{max-width:100%}.handball-keeper-kit .handball-kit-preview{width:16px;height:20px;flex-basis:16px}.handball-keeper-kit select{width:27px;max-width:27px}}
/* Basketball-style court identity: portrait, shirt, complete name and match goals. */
.handball-match-view .handball-court-slot{--marker-width:clamp(138px,13cqw,158px);width:var(--marker-width);left:clamp(calc(var(--marker-width)/2 + 2px),var(--x),calc(100% - var(--marker-width)/2 - 2px));top:clamp(38px,var(--y),calc(100% - 38px))}
.handball-match-view .handball-court-slot>button[data-player]{gap:2px;font-size:.7rem}
.handball-match-view .handball-court-slot>button[data-player]{position:relative;display:grid;grid-template-columns:50px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:5px;row-gap:2px;padding:4px;box-sizing:border-box;border-radius:8px;background:#102d40ed;box-shadow:0 2px 6px #0003}
.handball-court-slot>button[data-player]>.handball-court-portrait{grid-row:1/3;grid-column:1}
.handball-court-slot>button[data-player]>.court-player-name{grid-row:1;grid-column:2;width:100%;box-sizing:border-box}
.handball-court-slot>button[data-player]>.handball-court-goals{grid-row:2;grid-column:2;justify-self:center}
.handball-court-slot>button[data-player]>.handball-person-badges{position:absolute;left:3px;bottom:0;transform:translateY(40%);z-index:1}
.handball-court-portrait{position:relative;display:block;box-sizing:border-box;width:50px;height:54px;border:1px solid #e0f6ff;border-radius:6px;background:var(--kit,#147b96);box-shadow:0 2px 5px #0004}
.handball-court-photo-fallback{position:absolute;inset:0;display:grid;place-items:center;font-weight:800;font-size:.7rem}
.handball-court-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center top;border-radius:6px;background:var(--kit,#147b96)}
.handball-court-photo[hidden]{display:none}
.handball-court-number{position:absolute;bottom:0;left:0;background:#102d40;color:white;padding:2px 4px;border:1px solid #e0f6ff;border-radius:4px;font-size:.72rem;line-height:1.1;font-weight:850}
.handball-match-view .handball-court-slot .court-player-name{display:block;max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.15;padding:0;background:transparent;font-weight:750;text-align:left}
.handball-court-goals{display:block;border-radius:4px;background:#ffffff1c;color:#fff;font-size:.72rem;font-weight:850;padding:2px 4px;line-height:1.1}
.handball-court-goals>span{font-size:.56rem;font-weight:600}
.handball-match-view .handball-court-slot>.handball-court-stat{right:3px;left:auto;top:-15px;width:19px;height:20px;padding:2px}
@media(min-width:701px){.handball-match-view .handball-court-slot[data-court-goalkeeper=true]{--marker-width:100px;top:clamp(54px,var(--y),calc(100% - 54px))}.handball-match-view .handball-court-slot[data-court-goalkeeper=true]>button[data-player]{display:flex;gap:2px}.handball-match-view .handball-court-slot[data-court-goalkeeper=true] .court-player-name{text-align:center}}
@media(min-width:701px) and (max-width:1200px){.handball-match-view .handball-court-slot{--marker-width:120px}.handball-match-view .handball-court-slot>button[data-player]{font-size:.64rem;grid-template-columns:42px minmax(0,1fr)}.handball-court-portrait{width:42px;height:47px}.handball-court-goals{font-size:.65rem}}
@media(min-width:1201px) and (max-width:1400px){.handball-match-view .handball-court-slot>button[data-player]{grid-template-columns:46px minmax(0,1fr);font-size:.68rem}.handball-court-portrait{width:46px;height:48px}}
@media(max-width:700px){.handball-match-view .handball-court-slot{--marker-width:52px}.handball-match-view .handball-court-slot>button[data-player]{font-size:.5rem;gap:1px}.handball-court-portrait{width:23px;height:26px}.handball-court-number{font-size:.5rem;left:-5px}.handball-court-goals{font-size:.5rem}.handball-court-goals>span{font-size:.45rem}.handball-match-view .handball-court-slot>.handball-court-stat{width:13px;height:14px;right:0;left:auto;top:0}}
@media(max-width:700px) and (orientation:portrait){.handball-match-view .handball-court-slot{--marker-width:56px;left:var(--mobile-x);top:clamp(35px,var(--mobile-y),calc(100% - 35px))}.handball-match-view .handball-court-slot>button[data-player]{display:flex;font-size:.48rem;padding:2px;gap:1px;border-radius:5px}.handball-court-portrait{width:25px;height:27px}.handball-court-slot .handball-court-number{font-size:.45rem;padding:0 2px;left:0}.handball-court-goals{font-size:.45rem;padding:1px 3px}.handball-court-goals>span{font-size:.4rem}.handball-match-view .handball-court-slot .court-player-name{padding:0;text-align:center}.handball-court-slot>button[data-player]>.handball-person-badges{bottom:auto;top:0;left:0;transform:none}}
.handball-roster{display:flex;flex-direction:column;gap:2px}
.handball-player{display:grid;grid-template-columns:32px 36px minmax(0,1fr);width:100%;min-height:48px;padding:4px 7px;gap:8px;border-radius:4px;text-align:left;background:var(--paper);border-color:var(--line)}
.handball-player:hover,.handball-player:focus-visible{background:var(--bg);border-color:var(--accent)}
.handball-player img{width:32px;height:38px;object-fit:cover}.handball-player>span:last-child{display:grid;grid-template-columns:minmax(100px,1.5fr) minmax(90px,1fr) 95px;gap:8px;align-items:center;min-width:0}.handball-player strong{font-size:.84rem}.handball-player .shirt-number{font-size:.85rem}.handball-player small{font-size:.72rem}.handball-player:not(:has(img))>span:last-child{grid-column:2/-1}
@media(max-width:760px){.handball-player>span:last-child{grid-template-columns:1fr 1fr;gap:1px 5px}.handball-player strong{grid-column:1/-1}.handball-player small{font-size:.66rem}.handball-player strong{font-size:.78rem}}

.handball-venue-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0}.handball-venue-media figure{margin:0}.handball-venue-media img{display:block;width:100%;max-height:220px;object-fit:contain;border-radius:6px;background:var(--bg)}.handball-venue-media figcaption{font-size:.65rem;line-height:1.4;color:var(--muted);margin-top:4px}.handball-venue-card .handball-profile-facts dd{overflow-wrap:anywhere}.handball-venue-fixtures{padding:10px 0;border-top:1px solid var(--line)}.handball-venue-fixtures summary{cursor:pointer;font-weight:750}.handball-venue-fixtures p{margin:5px 0}.handball-venue-card .handball-profile-section p{line-height:1.45}

.football-referee-hover .hb-referee-facts .is-wide{grid-template-columns:minmax(90px,.4fr) minmax(0,1fr)}.hb-referee-stat{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}.hb-referee-stat>div{min-width:0}.hb-referee-stat strong{font-size:.73rem}.hb-referee-stat small{display:block;font-size:.63rem;line-height:1.35;color:var(--muted);margin-top:3px}.hb-referee-stat>b{font-size:1.2rem;flex:none}.hb-referee-statistics h4,.hb-referee-highlights h4{margin:4px 0 7px}.hb-referee-highlights p{font-size:.73rem;line-height:1.4}.hb-referee-history,.hb-referee-sources{margin:10px 0;line-height:1.4}.hb-referee-history summary,.hb-referee-sources summary{font-weight:750;cursor:pointer}.hb-referee-history>div{display:grid;gap:2px;padding:7px 0;border-bottom:1px solid var(--line);font-size:.73rem}.hb-referee-history>div small,.hb-referee-history>div span,.hb-referee-sources small{font-size:.63rem;color:var(--muted)}.hb-referee-sources p{margin:6px 0}.hb-referee-sources a{overflow-wrap:anywhere}

#playerInspector .football-referee-hover.has-notes{grid-template-columns:minmax(0,1fr)!important}#playerInspector .frh-notes{border-left:0;padding-left:0;min-width:0}#playerInspector .hb-referee-facts{grid-template-columns:minmax(0,1fr)}#playerInspector .hb-referee-facts .is-wide{grid-column:1/-1}

/* Football-style personal summary; all statistics and notes remain in one view. */
.handball-player-profile .handball-rich-profile-head.fph-head{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;padding:6px;border:0;border-radius:5px;margin:0}
.handball-player-profile .handball-rich-profile-head .fph-avatar{width:48px;height:60px}
.handball-player-profile .handball-rich-profile-head .handball-portrait{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.handball-player-profile .handball-rich-profile-head .fph-identity>strong{font-size:16px;line-height:1.1;text-transform:none}
.handball-player-profile .handball-rich-profile-head .fph-identity>span{font-size:11px;line-height:1.2}
.handball-player-profile .handball-rich-profile-head small{font-size:9px;line-height:1.2;margin-top:2px}
.handball-player-profile .handball-personal-facts{gap:5px;margin:0}
.handball-player-profile .handball-personal-facts>div{padding:6px 7px}
.handball-player-profile .handball-personal-facts h3{font-size:10px;margin:0 0 2px}
.handball-player-profile .handball-personal-facts strong,.handball-player-profile .handball-personal-facts span{font-size:11px;line-height:1.25}
.handball-player-profile .handball-profile-alias{font-size:10px;color:var(--muted)}
.handball-player-profile .handball-profile-section{padding:6px 0}
.handball-player-profile .handball-profile-section h4{margin:0 0 4px;font-size:11px}
.handball-player-profile .handball-profile-section p{margin:3px 0;font-size:10px;line-height:1.3}
.handball-player-profile .handball-profile-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:4px 0}
.handball-player-profile .handball-profile-metrics>div{padding:4px 5px}
.handball-player-profile .handball-profile-metrics small{font-size:9px;line-height:1.2}
.handball-player-profile .handball-profile-metrics strong{font-size:14px;line-height:1.15;margin-top:2px}
.handball-player-profile .handball-profile-section>small,.handball-player-profile .handball-profile-provenance,.handball-player-profile .handball-source-links{font-size:9px;line-height:1.3;margin:3px 0}
.handball-player-profile .handball-career-table{font-size:11px}.handball-player-profile .handball-career-table th,.handball-player-profile .handball-career-table td{padding:4px 5px}
@media(max-width:480px){.handball-player-profile .handball-personal-facts{grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr)}.handball-player-profile .handball-profile-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}

.handball-player-profile .handball-scope-explanation{padding:5px 7px;border-left:2px solid var(--accent);background:var(--fph-soft);font-size:11px;line-height:1.35;margin:4px 0 6px}
/* One card per statistic: current finals prominent, national-team career beneath. */
.handball-player-profile .handball-paired-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:5px 0}
.handball-player-profile .handball-paired-metric{display:flex;flex-direction:column;min-width:0;padding:8px 9px;border:1px solid var(--line);border-radius:7px;background:var(--fph-soft)}
.handball-player-profile .handball-paired-metric>small{font-size:11px;font-weight:650;line-height:1.25;color:var(--muted)}
.handball-player-profile .handball-paired-metric>.handball-tournament-value{font-size:25px;font-weight:850;line-height:1.2;margin:4px 0 6px;font-variant-numeric:tabular-nums;color:var(--ink)}
.handball-player-profile .handball-career-total{display:flex;justify-content:space-between;align-items:baseline;gap:4px;padding-top:5px;border-top:1px solid var(--line);font-size:10px;line-height:1.3;color:var(--muted)}
.handball-player-profile .handball-career-total>b{font-size:13px;color:var(--ink);font-variant-numeric:tabular-nums}
.handball-player-profile .handball-tournament-source{display:block;overflow-wrap:anywhere}
.handball-player-profile .handball-tournament-source a{font-size:inherit;line-height:inherit;color:var(--muted)}
@media(max-width:650px){.handball-body .football-player-hover.handball-player-profile{grid-template-columns:minmax(0,1fr)!important}.handball-player-profile .fph-main{min-width:0}.handball-player-profile .fph-notes{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:10px}}
@media(max-width:480px){.handball-player-profile .handball-paired-metric{padding:7px 6px}.handball-player-profile .handball-paired-metric>.handball-tournament-value{font-size:22px}}
