/* The existing environment topbar and rich profile UI are retained. */
.handball-match-view .handball-match-toolbar{display:block;padding:0;flex:0 0 auto}
.hb-bench-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr);grid-template-rows:22px minmax(0,1fr) 27px;column-gap:16px;padding:6px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);min-width:0;height:146px;box-sizing:border-box}
.handball-body[data-theme=dark] .hb-bench-scoreboard{background:linear-gradient(110deg,#102b45,#1b4a72)}
.hb-bench-fixture{grid-column:1/-1;display:flex;gap:12px;align-items:center;min-width:0;font-size:.73rem;white-space:nowrap}
.hb-bench-fixture>span{color:var(--muted);font-size:.67rem}
.hb-bench-score-side{display:flex;align-items:center;gap:12px;min-width:0}
.hb-bench-score-side.home{justify-content:flex-end;text-align:right}.hb-bench-score-side.away{justify-content:flex-start;text-align:left}
.hb-bench-score-side>div{min-width:0;width:100%;max-width:430px}
.hb-bench-score-side .country-flag{width:60px;height:42px;flex:none;object-fit:contain}
.hb-bench-header-identity{display:flex;gap:7px;align-items:center;min-width:0;margin-bottom:5px}
.home .hb-bench-header-identity{justify-content:flex-end}.away .hb-bench-header-identity{justify-content:flex-start}
.hb-bench-header-identity>button{border:0;padding:0;background:transparent;font-family:inherit;font-weight:700;font-size:1.05rem;line-height:1.15;color:var(--ink);white-space:nowrap}
.hb-bench-header-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;font-variant-numeric:tabular-nums}
.hb-bench-header-stats>span{display:flex;gap:4px;justify-content:space-between;align-items:center;padding:2px 5px;border:1px solid var(--line);border-radius:4px;min-width:0;background:var(--paper)}
.handball-body[data-theme=dark] .hb-bench-header-stats>span{background:#ffffff08;border-color:#c4d9ea38}
.hb-bench-header-stats small{font-size:.61rem;color:var(--muted);white-space:nowrap}.hb-bench-header-stats b{font-size:.72rem;white-space:nowrap}
.hb-bench-official-score{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;font-variant-numeric:tabular-nums}
.hb-bench-official-score>button{border:0;background:transparent;padding:0;font-size:2rem;font-weight:750;line-height:1.1;white-space:nowrap;color:var(--ink)}
.hb-bench-official-score>small{font-size:.58rem;color:var(--muted)}.hb-bench-official-score em{font-style:normal;color:var(--orange)}
.hb-bench-clock{display:flex;gap:5px;align-items:center;font-size:.74rem;font-weight:650}.hb-bench-clock button{padding:1px 4px;font-size:.6rem}
.hb-bench-header-tools{grid-column:1/-1;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;min-width:0}
.hb-bench-header-tools>div{display:flex;gap:5px;align-items:center;min-width:0}.hb-bench-header-tools>div:last-child{justify-content:flex-end}
.hb-bench-header-tools .handball-stat-icon{width:24px;height:24px;padding:4px;flex:none}.hb-bench-header-tools svg{width:15px;height:15px}
.hb-bench-source{font-size:.62rem;color:var(--muted);text-align:center;white-space:nowrap}
.hb-bench-header-identity .handball-kit-picker{display:flex;gap:4px;align-items:center;min-width:0}
.hb-bench-header-identity .match-kit-selector{display:flex;align-items:center;gap:3px;padding:2px;border:1px solid var(--line);border-radius:5px;min-width:0}
.hb-bench-header-identity .handball-kit-preview{width:27px;height:28px;display:grid;place-items:center;flex:none}.hb-bench-header-identity .handball-kit-preview img,.hb-bench-header-identity .handball-kit-preview svg{width:100%;height:100%;object-fit:contain}
.hb-bench-header-identity .match-kit-selector select{width:104px;max-width:104px;min-width:0;padding:3px;font-size:.67rem;background:var(--paper);color:var(--ink)}
.hb-bench-header-identity input[type=color]{width:23px;height:25px;min-width:0;padding:1px}.hb-bench-header-identity .handball-kit-picker>a{font-size:.7rem}
.handball-match-view #handballCourtPanel.hb-bench-panel{display:block;flex:1 1 auto;padding:0;min-height:0;overflow:hidden}
.hb-bench-layout{height:100%;display:grid;grid-template-rows:minmax(0,1fr) 80px 22px;gap:5px;min-height:0;padding:5px 10px 0;box-sizing:border-box}
.hb-bench-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0;min-height:0}
.hb-bench-team{display:grid;grid-template-rows:29px minmax(0,1fr) 65px;min-width:0;min-height:0}
.hb-bench-team-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0}.hb-bench-team.away .hb-bench-team-heading{flex-direction:row-reverse}
.hb-bench-team-heading h2{display:flex;align-items:center;gap:5px;font-size:.8rem;line-height:1.15;margin:0;white-space:nowrap;min-width:0}.hb-bench-team.away h2{flex-direction:row-reverse}
.hb-bench-dot{width:6px;height:6px;display:block;border-radius:50%;background:var(--hb-kit);flex:none}
.hb-bench-team-heading h2>button{width:20px;height:20px;border:1px solid var(--line);border-radius:50%;padding:0;font-size:.54rem;background:var(--paper);flex:none}
.hb-bench-team-heading h2>button{display:grid;place-items:center}.hb-bench-team-heading h2>button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}
.hb-bench-formations{display:flex;gap:4px;min-width:0}.away .hb-bench-formations{flex-direction:row-reverse}
.hb-bench-formations button{padding:3px 7px;font-size:.67rem;line-height:1;border-radius:12px;background:var(--paper);border:1px solid var(--line);white-space:nowrap}
.hb-bench-formations button[aria-pressed=true]{color:var(--orange);border-color:var(--orange);background:var(--bg)}
.hb-bench-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:5px;min-width:0;min-height:0}
.hb-bench-player{position:relative;min-width:0;min-height:0;border:1px solid var(--line);border-radius:7px;background:var(--paper);padding:4px 6px;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 23px;gap:3px}
.hb-bench-player.is-on{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 13%,var(--paper))}
.hb-bench-field,.hb-bench-quick{position:absolute;right:4px;top:4px;width:17px;height:17px;min-height:0;padding:0;font-size:.7rem;line-height:1;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink);display:grid;place-items:center}
.hb-bench-field[aria-pressed=true]{border-color:var(--orange);color:var(--orange)}.hb-bench-quick{top:25px;font-size:.8rem;color:var(--orange)}
.hb-bench-profile{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:28px minmax(0,1fr);gap:5px;align-items:center;text-align:left;background:transparent;border:0;padding:0 20px 0 0;min-width:0;min-height:0;color:var(--ink)}
.hb-bench-profile>img,.hb-bench-photo-empty{width:28px;height:28px;object-fit:contain;object-position:bottom;display:block;border-radius:4px;flex:none}.hb-bench-photo-empty{display:grid;place-items:center;background:var(--bg);font-size:.7rem;color:var(--muted)}
.hb-bench-profile>span{min-width:0}.hb-bench-profile b{display:block;font-size:.7rem;line-height:1.13;white-space:nowrap}.hb-bench-profile small{display:block;margin-top:3px;font-size:.6rem;line-height:1.15;color:var(--muted);white-space:nowrap}
.hb-bench-main{grid-column:1;grid-row:2;display:flex;align-items:end;min-width:0;line-height:1;font-variant-numeric:tabular-nums}.hb-bench-main strong{font-size:1.04rem;font-weight:650}.hb-bench-main small{font-size:.65rem}
.hb-bench-micro{grid-column:2;grid-row:2;display:flex;justify-content:space-around;gap:3px;align-items:end;min-width:0}.hb-bench-micro>span{display:flex;flex-direction:column;text-align:center;gap:0;font-size:.55rem;line-height:1.05;color:var(--muted)}.hb-bench-micro b{color:var(--ink);font-size:.7rem;font-weight:500;line-height:1.1}
.hb-bench-card{position:absolute;right:26px;top:5px;display:grid;place-items:center;width:11px;height:13px;font-size:.5rem;border-radius:2px}.hb-bench-card.yellow{background:#e7c45c;color:#372700}.hb-bench-card.red{background:#d65368;color:#fff}
.hb-bench-outside{display:grid;grid-template-rows:17px minmax(0,1fr);gap:4px;border-top:1px solid var(--line);margin-top:6px;padding-top:5px;min-width:0;min-height:0;position:relative}
.hb-bench-outside>header{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:.65rem;color:var(--muted);min-width:0}
.hb-bench-outside-names{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:4px;min-width:0;min-height:0}
.hb-bench-outside-names>button{font-size:.62rem;text-align:left;border:1px solid var(--line);border-radius:4px;padding:1px 4px;background:var(--bg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.hb-bench-roster-status{grid-column:1/-1;font-size:.65rem;color:var(--muted);align-self:center}.hb-bench-pager{display:flex;align-items:center;gap:4px;font-size:.6rem}.hb-bench-pager button{padding:0 4px;font-size:.7rem;line-height:1.1}.hb-bench-outside>.hb-bench-pager{position:absolute;right:0;bottom:0;background:var(--paper)}
.hb-bench-timeline{display:grid;grid-template-rows:22px minmax(0,1fr);gap:3px;min-height:0;border-top:1px solid var(--line);padding-top:4px}
.hb-bench-timeline>header{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:.73rem;min-width:0}.hb-bench-timeline>header>div{display:flex;gap:5px;align-items:center;font-size:.64rem}
.hb-bench-timeline>header button{padding:2px 6px;font-size:.64rem;white-space:nowrap}.hb-bench-timeline label{display:flex;align-items:center;gap:3px;font-size:.65rem;white-space:nowrap}.hb-bench-timeline input{margin:0;width:12px;height:12px}
.hb-bench-event-row{display:grid;grid-template-columns:19px minmax(0,1fr) 19px;gap:5px;min-height:0;min-width:0}.hb-bench-event-row>button{padding:0;font-size:.9rem}.hb-bench-events{display:grid;grid-template-columns:repeat(var(--hb-event-count),minmax(0,1fr));gap:5px;min-width:0;min-height:0}
.hb-bench-events>article{position:relative;border:1px solid var(--line);border-left:2px solid var(--orange);border-radius:5px;min-width:0;min-height:0;background:var(--bg);padding:3px 25px 3px 5px}
.hb-bench-events>article>button:first-child{border:0;background:transparent;display:flex;flex-wrap:wrap;gap:2px 5px;align-content:center;padding:0;text-align:left;min-width:0;height:100%;color:var(--ink)}
.hb-bench-events time{font-size:.6rem;color:var(--muted);white-space:nowrap}.hb-bench-events strong{font-size:.65rem;white-space:nowrap}.hb-bench-events small{font-size:.64rem;flex-basis:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-bench-events .app-match-highlight,.hb-bench-events [data-match-highlight]{position:absolute;right:3px;top:3px;width:17px;height:17px;padding:0}
.hb-bench-events>p{font-size:.7rem;margin:0;align-self:center}.hb-bench-legend{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:.6rem;color:var(--muted);min-width:0;white-space:nowrap}.hb-bench-legend>span:last-child{overflow:hidden;text-overflow:ellipsis}
.hb-bench-team-tabs{display:none}.hb-bench-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.hb-bench-quick-actions button{padding:9px 4px;font-size:.74rem;white-space:nowrap}
.hb-bench-event-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:18px}.hb-bench-event-dialog::backdrop{background:#0007}
.hb-bench-event-dialog>header{display:flex;justify-content:space-between;gap:12px;align-items:center}.hb-bench-event-dialog h2{font-size:1rem;margin:0}.hb-bench-event-dialog>header button{padding:3px 8px;font-size:1rem}
.hb-bench-event-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.hb-bench-event-dialog label{display:flex;flex-direction:column;gap:5px;font-size:.8rem;min-width:0}.hb-bench-event-dialog label[hidden]{display:none}
.hb-bench-event-dialog input,.hb-bench-event-dialog select,.hb-bench-event-dialog textarea{width:100%;min-width:0;font-size:.85rem;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:5px;padding:7px}.hb-bench-event-dialog textarea{height:80px;resize:vertical}
.hb-bench-event-dialog label:has(textarea),.hb-bench-event-dialog p,.hb-bench-event-actions{grid-column:1/-1}.hb-bench-event-dialog p{margin:0;font-size:.73rem}.hb-bench-event-actions{display:flex;gap:8px;flex-wrap:wrap}.hb-bench-event-actions button{padding:7px 10px;font-size:.8rem}
.handball-info-quick{width:min(420px,calc(100vw - 16px))}.handball-info-quick .source-notice{font-size:.75rem}
@media(max-width:1100px){.hb-bench-layout{grid-template-rows:25px minmax(0,1fr) 74px 22px}.hb-bench-team-tabs{display:flex;justify-content:flex-end;gap:5px}.hb-bench-team-tabs button{font-size:.7rem;padding:3px 8px}.hb-bench-team-tabs [aria-selected=true]{border-color:var(--orange);color:var(--orange)}.hb-bench-teams{grid-template-columns:minmax(0,1fr)}.hb-bench-team[data-mobile-hidden=true]{display:none}.hb-bench-scoreboard{grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);height:140px;column-gap:9px}.hb-bench-score-side{gap:7px}.hb-bench-score-side .country-flag{width:42px;height:30px}.hb-bench-header-identity>button{font-size:.9rem}.hb-bench-header-identity{flex-wrap:wrap;gap:3px}.hb-bench-header-identity .match-kit-selector select{width:95px}.hb-bench-header-stats b{font-size:.64rem}.hb-bench-header-stats small{font-size:.57rem}.hb-bench-header-tools .handball-stat-icon{width:22px;height:22px}.hb-bench-source{font-size:.55rem}}
@media(max-height:700px) and (min-width:1101px){.hb-bench-scoreboard{height:116px;grid-template-rows:18px minmax(0,1fr) 22px;padding:3px 10px}.hb-bench-header-identity{margin-bottom:3px}.hb-bench-header-identity>button{font-size:.9rem}.hb-bench-header-identity .handball-kit-preview{width:21px;height:22px}.hb-bench-header-identity .match-kit-selector select{padding:1px;font-size:.6rem}.hb-bench-header-identity input[type=color]{height:20px;width:21px}.hb-bench-score-side .country-flag{width:44px;height:30px}.hb-bench-header-stats>span{padding:1px 4px}.hb-bench-official-score>button{font-size:1.7rem}.hb-bench-header-tools .handball-stat-icon{height:20px;width:20px;padding:3px}.hb-bench-layout{grid-template-rows:minmax(0,1fr) 66px 19px;padding-top:3px}.hb-bench-team{grid-template-rows:25px minmax(0,1fr) 54px}.hb-bench-player{padding:3px 5px;grid-template-rows:minmax(0,1fr) 20px;gap:2px}.hb-bench-profile>img,.hb-bench-photo-empty{height:25px;width:24px}.hb-bench-profile{grid-template-columns:24px minmax(0,1fr);gap:4px}.hb-bench-profile small{margin-top:2px}.hb-bench-outside{grid-template-rows:15px minmax(0,1fr);gap:3px;margin-top:4px;padding-top:3px}.hb-bench-timeline{grid-template-rows:19px minmax(0,1fr);padding-top:2px}.hb-bench-legend{font-size:.55rem}}
@media(max-width:620px){.hb-bench-scoreboard{height:128px;grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr);grid-template-rows:20px minmax(0,1fr) 24px;padding:4px 7px;column-gap:4px}.hb-bench-fixture{font-size:.59rem;gap:6px}.hb-bench-fixture>span{display:none}.hb-bench-header-stats{display:none}.hb-bench-score-side .country-flag{display:none}.hb-bench-header-identity>button{font-size:.8rem}.hb-bench-header-identity .handball-kit-picker{gap:2px}.hb-bench-header-identity .handball-kit-preview{width:18px;height:20px}.hb-bench-header-identity .match-kit-selector{gap:1px;padding:1px}.hb-bench-header-identity .match-kit-selector select{width:64px;max-width:64px;padding:1px;font-size:.53rem}.hb-bench-header-identity input[type=color]{width:18px;height:20px}.hb-bench-header-identity .handball-kit-picker>a{font-size:.6rem}.hb-bench-official-score>button{font-size:1.5rem}.hb-bench-official-score>small{font-size:.5rem}.hb-bench-clock{font-size:.65rem}.hb-bench-header-tools{grid-template-columns:auto minmax(0,1fr) auto;gap:3px}.hb-bench-header-tools>div{gap:2px}.hb-bench-header-tools .handball-stat-icon{width:19px;height:21px;padding:3px}.hb-bench-header-tools>div:last-child [data-handball-info=players],.hb-bench-header-tools>div:last-child [data-handball-info=teams],.hb-bench-header-tools>div:last-child [data-handball-info=storylines],.hb-bench-header-tools>div:last-child [data-handball-info=source]{display:none}.hb-bench-source{font-size:.48rem;white-space:normal;line-height:1.1}.hb-bench-layout{grid-template-rows:23px minmax(0,1fr) 66px 19px;padding:3px 5px 0;gap:3px}.hb-bench-team{grid-template-rows:28px minmax(0,1fr) 55px}.hb-bench-team-heading h2{font-size:.66rem;gap:3px}.hb-bench-team-heading h2>button{width:17px;height:17px;font-size:.5rem}.hb-bench-formations{gap:2px}.hb-bench-formations button{padding:3px 5px;font-size:.59rem}.hb-bench-grid{gap:4px}.hb-bench-player{padding:3px;gap:2px;grid-template-columns:34px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 20px}.hb-bench-profile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;padding-right:0}.hb-bench-profile>img,.hb-bench-photo-empty{width:17px;height:16px}.hb-bench-profile b{font-size:.64rem;line-height:1.1}.hb-bench-profile small{display:none}.hb-bench-quick{top:23px;width:15px;height:15px;font-size:.7rem}.hb-bench-main strong{font-size:.9rem}.hb-bench-main small{font-size:.58rem}.hb-bench-micro{gap:0}.hb-bench-micro>span{font-size:.5rem}.hb-bench-micro b{font-size:.6rem}.hb-bench-field{width:16px;height:16px}.hb-bench-card{right:25px;top:4px;width:9px;height:11px;font-size:.45rem}.hb-bench-outside{margin-top:4px;padding-top:3px;grid-template-rows:14px minmax(0,1fr);gap:3px}.hb-bench-outside>header,.hb-bench-roster-status{font-size:.56rem}.hb-bench-outside-names{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.hb-bench-outside-names>button{font-size:.55rem;padding:1px 3px}.hb-bench-timeline{grid-template-rows:20px minmax(0,1fr);padding-top:2px}.hb-bench-timeline>header{font-size:.66rem}.hb-bench-timeline>header>div{gap:3px}.hb-bench-timeline>header button{font-size:.57rem;padding:2px 4px}.hb-bench-timeline label{font-size:.56rem}.hb-bench-events strong{font-size:.59rem}.hb-bench-events small{font-size:.58rem}.hb-bench-events time{font-size:.55rem}.hb-bench-legend{font-size:.49rem}.hb-bench-legend>span:last-child{display:none}.hb-bench-event-dialog input,.hb-bench-event-dialog select,.hb-bench-event-dialog textarea{font-size:16px}}

.hb-bench-profile b{overflow:hidden;text-overflow:ellipsis}.hb-bench-profile{max-width:100%}
@media(max-height:650px) and (min-width:1101px){.hb-bench-player{padding:2px 4px;grid-template-rows:minmax(0,1fr) 18px;gap:1px}.hb-bench-profile{grid-template-columns:16px minmax(0,1fr);gap:4px}.hb-bench-profile>img,.hb-bench-photo-empty{width:16px;height:14px}.hb-bench-profile b{font-size:.64rem;line-height:1.1}.hb-bench-profile small{display:none}.hb-bench-main strong{font-size:.9rem}.hb-bench-main small{font-size:.58rem}.hb-bench-micro>span{font-size:.5rem;line-height:1}.hb-bench-micro b{font-size:.6rem;line-height:1}.hb-bench-field,.hb-bench-quick{width:14px;height:14px;right:3px;top:2px;font-size:.65rem}.hb-bench-quick{top:20px}.hb-bench-card{right:22px;top:3px;width:9px;height:11px;font-size:.45rem}}
@media(max-height:650px) and (min-width:1101px){.hb-bench-quick{top:2px;right:21px}.hb-bench-card{right:40px}.hb-bench-profile{padding-right:48px}}
@media(max-width:620px){.hb-bench-scoreboard{height:108px;grid-template-rows:18px minmax(0,1fr) 22px}.hb-bench-header-identity .handball-kit-picker{flex:none}.hb-bench-header-identity .match-kit-selector{flex:none}.hb-bench-header-identity .match-kit-selector select{width:70px;max-width:70px;flex:none}.hb-bench-header-identity .handball-kit-preview{width:16px;height:18px}.hb-bench-header-identity input[type=color]{width:16px;height:18px}.hb-bench-player{padding:2px 3px;grid-template-rows:minmax(0,1fr) 18px;gap:1px}.hb-bench-profile>img,.hb-bench-photo-empty{width:16px;height:14px}.hb-bench-main strong{font-size:.86rem}.hb-bench-micro>span{font-size:.5rem;line-height:1}.hb-bench-micro b{font-size:.6rem;line-height:1}.hb-bench-quick{right:23px;top:4px}.hb-bench-card{left:23px;right:auto;top:4px}.hb-bench-profile b{line-height:12px}}
@media(min-height:651px) and (max-height:760px) and (min-width:1101px){.hb-bench-player{padding:3px 5px;grid-template-rows:minmax(0,1fr) 20px;gap:2px}.hb-bench-profile>img,.hb-bench-photo-empty{height:22px;width:22px}.hb-bench-profile{grid-template-columns:22px minmax(0,1fr)}.hb-bench-profile b{font-size:.65rem;line-height:1.1}.hb-bench-profile small{font-size:.55rem;line-height:10px;margin-top:1px}.hb-bench-main strong{font-size:1rem}.hb-bench-quick{top:23px}}
@media(min-width:621px) and (max-width:1100px) and (max-height:800px){.hb-bench-profile>img,.hb-bench-photo-empty{width:20px;height:20px}.hb-bench-profile{grid-template-columns:20px minmax(0,1fr)}.hb-bench-profile b{font-size:.65rem;line-height:11px}.hb-bench-profile small{font-size:.5rem;line-height:9px;margin-top:1px}}
.hb-bench-fixture .hb-bench-team-tabs{margin-left:auto;flex:none}.hb-bench-fixture .hb-bench-team-tabs button{font-size:.59rem;line-height:1;padding:2px 5px}
@media(max-width:1100px){.hb-bench-layout{grid-template-rows:minmax(0,1fr) 74px 22px}}
@media(max-width:620px){.hb-bench-layout{grid-template-rows:minmax(0,1fr) 66px 19px}}
/* Position remains visible on the border; the check and tint mark on-court state. */
.hb-bench-player,.hb-bench-position-legend>span{--hb-position-color:var(--line)}
.hb-bench-player[data-position-group=goalkeeper],.hb-bench-position-legend [data-position-group=goalkeeper]{--hb-position-color:#1879b9}
.hb-bench-player[data-position-group=backcourt],.hb-bench-position-legend [data-position-group=backcourt]{--hb-position-color:#b96616}
.hb-bench-player[data-position-group=wing-pivot],.hb-bench-position-legend [data-position-group=wing-pivot]{--hb-position-color:#25824e}
.handball-body[data-theme=dark] .hb-bench-player[data-position-group=goalkeeper],.handball-body[data-theme=dark] .hb-bench-position-legend [data-position-group=goalkeeper]{--hb-position-color:#55b7ff}
.handball-body[data-theme=dark] .hb-bench-player[data-position-group=backcourt],.handball-body[data-theme=dark] .hb-bench-position-legend [data-position-group=backcourt]{--hb-position-color:#f4aa54}
.handball-body[data-theme=dark] .hb-bench-player[data-position-group=wing-pivot],.handball-body[data-theme=dark] .hb-bench-position-legend [data-position-group=wing-pivot]{--hb-position-color:#59ce91}
.hb-bench-player,.hb-bench-player.is-on{border:2px solid var(--hb-position-color);padding:3px 5px}
.hb-bench-profile{position:relative;grid-template-columns:54px minmax(0,1fr);padding-right:32px}
.hb-bench-profile .hb-bench-shirt-number{position:absolute;left:30px;top:50%;transform:translateY(-50%);width:22px;font-size:18px;font-weight:750;line-height:20px;text-align:center;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.hb-bench-field,.hb-bench-quick{z-index:2}.hb-bench-card{z-index:3;pointer-events:none}
.hb-bench-position-legend{display:flex;align-items:center;gap:9px;font-size:.62rem;flex:none}
.hb-bench-position-legend>span{display:flex;align-items:center;gap:4px}
.hb-bench-position-legend>span::before{content:"";display:block;width:7px;height:7px;border-radius:2px;background:var(--hb-position-color);flex:none}
@media(max-height:760px) and (min-width:1101px){.hb-bench-player,.hb-bench-player.is-on{padding:2px 4px}.hb-bench-profile{grid-template-columns:46px minmax(0,1fr)}.hb-bench-profile .hb-bench-shirt-number{left:24px;font-size:16px;line-height:18px;width:20px}}
@media(max-height:650px) and (min-width:1101px){.hb-bench-player,.hb-bench-player.is-on{padding:1px 3px}.hb-bench-profile{grid-template-columns:38px minmax(0,1fr);padding-right:48px}.hb-bench-profile .hb-bench-shirt-number{left:18px;font-size:14px;line-height:14px;width:18px}}
@media(min-width:621px) and (max-width:1100px) and (max-height:800px){.hb-bench-profile{grid-template-columns:44px minmax(0,1fr)}.hb-bench-profile .hb-bench-shirt-number{left:22px;font-size:16px;line-height:18px;width:20px}}
@media(max-width:620px){.hb-bench-player,.hb-bench-player.is-on{padding:1px 2px}.hb-bench-profile{padding-right:0}.hb-bench-profile .hb-bench-shirt-number{left:20px;top:0;transform:none;font-size:14px;line-height:14px;width:20px}.hb-bench-card{left:12px;top:2px;width:7px;height:8px;font-size:5px}.hb-bench-legend>span:first-child{display:none}.hb-bench-legend .hb-bench-position-legend{display:flex;font-size:.6rem;gap:8px}.hb-bench-position-legend::after{content:" · ✓ Feld";color:var(--muted);font-size:.6rem}}
/* Portrait/number at the left; names use the full top line. Actions sit below. */
@media(min-width:1101px) and (min-height:701px) and (max-height:900px){.hb-bench-scoreboard{height:130px}.hb-bench-layout{grid-template-rows:minmax(0,1fr) 64px 22px}.hb-bench-team{grid-template-rows:29px minmax(0,1fr) 45px}.hb-bench-outside{grid-template-rows:14px minmax(0,1fr);gap:2px;margin-top:3px;padding-top:2px}}
@media(min-width:1101px) and (max-height:700px){.hb-bench-scoreboard{height:98px}.hb-bench-layout{grid-template-rows:minmax(0,1fr) 50px 19px;gap:3px}.hb-bench-team{grid-template-rows:25px minmax(0,1fr) 42px}.hb-bench-outside{grid-template-rows:12px minmax(0,1fr);gap:1px;margin-top:2px;padding-top:1px}}
@media(min-width:621px) and (max-width:1100px) and (min-height:761px) and (max-height:900px){.hb-bench-scoreboard{height:124px}.hb-bench-layout{grid-template-rows:minmax(0,1fr) 62px 22px}.hb-bench-team{grid-template-rows:29px minmax(0,1fr) 45px}.hb-bench-outside{grid-template-rows:14px minmax(0,1fr);gap:2px;margin-top:3px;padding-top:2px}}
.hb-bench-player,.hb-bench-player.is-on{padding:2px 3px;grid-template-columns:51px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 22px;gap:1px 4px;cursor:grab}
.hb-bench-profile{grid-column:1/-1;grid-row:1/-1;display:grid;grid-template-columns:51px minmax(0,1fr);align-items:start;gap:4px;padding:0;align-self:stretch}
.hb-bench-portrait-stack{display:flex;flex-direction:column;align-items:center;gap:0;min-width:0}
.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{display:block;width:49px;height:49px;object-fit:contain;object-position:bottom;border-radius:3px}
.hb-bench-profile .hb-bench-shirt-number{position:static;transform:none;width:100%;font-size:18px;line-height:20px}
.hb-bench-player-identity{padding:0;min-width:0}.hb-bench-profile small{margin-top:1px}
.hb-bench-live{grid-column:2;grid-row:2;display:flex;align-items:end;gap:3px;padding-right:20px;min-width:0;min-height:0;pointer-events:none}
.hb-bench-main{flex:none}.hb-bench-micro{flex:1;min-width:0}
.hb-bench-field,.hb-bench-quick{right:3px;left:auto;top:auto;width:17px;height:17px;padding:0;line-height:1;font-size:.75rem}
.hb-bench-field{bottom:22px}.hb-bench-quick{bottom:3px}
.hb-bench-card{left:3px;right:auto;top:3px}
.hb-bench-reserve-player{display:flex;min-width:0;min-height:0;border:1px solid var(--line);border-radius:4px;background:var(--bg);cursor:grab}
.hb-bench-reserve-player>button{min-width:0;padding:0 3px;font-size:.62rem;line-height:1.1;border:0;background:transparent}
.hb-bench-reserve-player>[data-player]{flex:1;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hb-bench-reserve-player>[data-hb-roster-move]{flex:none;color:var(--accent);border-left:1px solid var(--line)}
.hb-bench-roster-reset{padding:0 4px;line-height:1;font-size:.7rem}
.hb-bench-drop-active{outline:2px dashed var(--accent);outline-offset:-2px;background:color-mix(in srgb,var(--accent) 13%,var(--paper))}
.hb-bench-dragging #handballHover,.hb-bench-dragging #handballInfoHover{visibility:hidden;pointer-events:none}
@media(max-height:760px) and (min-width:621px){.hb-bench-player,.hb-bench-player.is-on{padding:1px 3px;grid-template-columns:40.5px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 19px;column-gap:3px}.hb-bench-profile{grid-template-columns:40.5px minmax(0,1fr);gap:3px;padding:0}.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{width:38.5px;height:35px}.hb-bench-profile .hb-bench-shirt-number{font-size:16px;line-height:17px}.hb-bench-field,.hb-bench-quick{width:15px;height:15px;font-size:.65rem}.hb-bench-field{bottom:19px}.hb-bench-quick{bottom:2px}.hb-bench-live{padding-right:17px}}
@media(max-height:650px) and (min-width:1101px){.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{height:24.5px;width:35px}.hb-bench-profile .hb-bench-shirt-number{font-size:14px;line-height:14px}.hb-bench-player-identity{padding-right:16px}}
@media(max-width:620px){.hb-bench-team{grid-template-rows:28px minmax(0,1fr) 45px}.hb-bench-layout{grid-template-rows:minmax(0,1fr) 60px 19px}.hb-bench-player,.hb-bench-player.is-on{padding:1px 2px;grid-template-columns:33.5px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 29px;column-gap:2px}.hb-bench-profile{display:grid;grid-template-columns:33.5px minmax(0,1fr);gap:2px;align-items:start;justify-content:normal;padding:0}.hb-bench-profile b{font-size:.61rem;line-height:12px}.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{width:31.5px;height:29.75px}.hb-bench-profile .hb-bench-shirt-number{font-size:14px;line-height:15px;width:100%}.hb-bench-live{display:flex;flex-direction:column;align-items:stretch;justify-content:end;gap:1px;padding-right:15px}.hb-bench-main{align-self:start}.hb-bench-main strong{font-size:.8rem}.hb-bench-main small{font-size:.53rem}.hb-bench-micro{flex:none;justify-content:space-between}.hb-bench-micro>span{font-size:.45rem}.hb-bench-micro b{font-size:.57rem}.hb-bench-field,.hb-bench-quick{width:14px;height:14px;right:2px;top:auto;font-size:.65rem}.hb-bench-field{bottom:18px}.hb-bench-quick{bottom:2px}.hb-bench-reserve-player>button{font-size:.54rem;padding:0 2px}.hb-bench-outside{gap:2px}.hb-bench-card{left:2px;top:2px}}
/* Full-width name, then portrait/number, then a shared full-width statistics row. */
.hb-bench-player,.hb-bench-player.is-on{grid-template-columns:minmax(0,1fr);grid-template-rows:18px minmax(0,1fr) 23px;gap:1px}
.hb-bench-profile{position:relative;grid-column:1/-1;grid-row:1/3;grid-template-columns:51px minmax(0,1fr);grid-template-rows:18px minmax(0,1fr);gap:1px 4px;padding:0;min-height:0}
.hb-bench-player-identity{grid-column:1/-1;grid-row:1;align-self:start;padding:0;width:100%;min-width:0}
.hb-bench-profile b{font-size:15px;line-height:18px}
.hb-bench-profile::after{content:"";position:absolute;top:100%;left:0;right:0;height:var(--hb-footer-hit,24px)}
.hb-bench-profile small{position:absolute;top:21px;right:25px;margin:0}
.hb-bench-portrait-stack{grid-column:1;grid-row:2;display:grid;grid-template-rows:minmax(0,1fr) 20px;align-items:end;align-self:start;justify-self:start;width:49px;height:100%;max-height:69px;min-height:0;gap:0}
.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{width:49px;height:100%;max-height:49px;min-height:0;max-width:100%;object-fit:contain;object-position:left bottom}
.hb-bench-portrait-stack>.hb-bench-photo-empty{display:grid;place-items:center}
.hb-bench-profile .hb-bench-shirt-number{width:100%;font-size:18px;line-height:20px}
.hb-bench-live{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:end;gap:5px;padding-right:20px;min-width:0}
.hb-bench-live>.hb-bench-main,.hb-bench-live>.hb-bench-micro{grid-row:1;grid-column:auto}.hb-bench-main{align-self:end}.hb-bench-micro{justify-content:space-between}
.hb-bench-card{left:auto;right:3px;top:22px}
@media(max-height:900px) and (min-width:621px){.hb-bench-player,.hb-bench-player.is-on{grid-template-rows:16px minmax(0,1fr) 20px}.hb-bench-profile{grid-template-rows:16px minmax(0,1fr);--hb-footer-hit:21px}.hb-bench-profile b{font-size:13px;line-height:16px}.hb-bench-profile small{top:19px}.hb-bench-micro>span{font-size:8px;line-height:1}.hb-bench-micro b{font-size:10px;line-height:1.1}.hb-bench-portrait-stack{grid-column:1/-1;display:flex;flex-direction:row;align-items:end;gap:3px;max-width:100%;width:76px;max-height:49px}.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{flex:0 1 49px;width:49px;max-height:49px}.hb-bench-profile .hb-bench-shirt-number{flex:none;width:auto;min-width:20px;font-size:16px;line-height:18px}}
@media(max-height:650px) and (min-width:1101px){.hb-bench-player,.hb-bench-player.is-on{grid-template-rows:12px minmax(0,1fr) 16px;gap:0}.hb-bench-profile{grid-template-rows:12px minmax(0,1fr);gap:0;--hb-footer-hit:16px}.hb-bench-profile b{font-size:12px;line-height:12px}.hb-bench-profile small{display:none}.hb-bench-profile .hb-bench-shirt-number{font-size:14px;line-height:14px}.hb-bench-live{padding-right:17px;gap:3px}.hb-bench-main strong{font-size:13px}.hb-bench-main small{font-size:9px}.hb-bench-micro>span{font-size:7px;line-height:1}.hb-bench-micro b{font-size:9px;line-height:1}.hb-bench-card{top:14px}}
@media(max-width:620px){.hb-bench-player,.hb-bench-player.is-on{grid-template-rows:14px minmax(0,1fr) 18px}.hb-bench-profile{grid-template-columns:minmax(0,1fr);grid-template-rows:14px minmax(0,1fr);--hb-footer-hit:19px}.hb-bench-profile b{font-size:11px;line-height:14px}.hb-bench-portrait-stack{grid-column:1;display:flex;flex-direction:row;align-items:end;gap:2px;width:58px;max-width:100%;max-height:30px}.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{flex:0 1 31.5px;width:31.5px;max-height:29.75px}.hb-bench-profile .hb-bench-shirt-number{flex:none;width:auto;min-width:20px;font-size:14px;line-height:15px}.hb-bench-live{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:3px;padding-right:15px}.hb-bench-main{align-self:end}.hb-bench-micro{justify-content:space-between;gap:1px}.hb-bench-micro>span{font-size:7px;line-height:1}.hb-bench-micro b{font-size:9px;line-height:1}.hb-bench-card{top:16px}}

/* Approved player-card mockup: clear identity, portrait and a dedicated stats strip. */
.hb-bench-player,.hb-bench-player.is-on{--hb-surface:#e7f5f3;--hb-footer:#f3faf9;--hb-ink:#14262e;--hb-muted:#627782;--hb-action:#fff;--hb-line:#cbdcdd;--hb-inset:10px;--hb-name-row:27px;--hb-stats-row:42px;--hb-row-gap:4px;--hb-stat-label:10px;--hb-stat-value:18px;--hb-stat-pad:6px;container-type:size;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--hb-name-row) minmax(0,1fr) var(--hb-stats-row);gap:var(--hb-row-gap);padding:8px var(--hb-inset) 0;border-radius:10px;background:var(--hb-surface);color:var(--hb-ink);box-shadow:0 1px 3px #102b3810;overflow:hidden}
.handball-body[data-theme=dark] .hb-bench-player{--hb-surface:#192f3b;--hb-footer:#223c48;--hb-ink:#edf7fa;--hb-muted:#aac1cd;--hb-action:#172f3a;--hb-line:#3c5662}
.hb-bench-player.is-on{background:color-mix(in srgb,var(--accent) 5%,var(--hb-surface))}
.hb-bench-profile{grid-column:1/-1;grid-row:1/3;grid-template-columns:minmax(0,26%) minmax(0,1fr) 26px;grid-template-rows:var(--hb-name-row) minmax(0,1fr);gap:var(--hb-row-gap) 12px;padding:0;color:var(--hb-ink);--hb-footer-hit:calc(var(--hb-stats-row) + var(--hb-row-gap))}
.hb-bench-profile::after{left:calc(-1 * var(--hb-inset));right:calc(-1 * var(--hb-inset))}
.hb-bench-player-identity{padding:0;align-self:start}.hb-bench-profile b{font-size:clamp(16px,8cqw,22px);font-weight:850;line-height:1.1;letter-spacing:-.02em}
.hb-bench-portrait-stack{display:block;grid-column:1;grid-row:2;align-self:center;justify-self:start;width:100%;height:100%;max-height:78px;min-height:0;overflow:hidden;border-radius:7px;background:color-mix(in srgb,var(--hb-muted) 12%,var(--hb-surface))}
.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{display:block;width:100%;height:100%;max-width:100%;max-height:none;min-height:0;object-fit:cover;object-position:center 20%;border-radius:7px}
.hb-bench-portrait-stack>.hb-bench-photo-empty{display:grid;place-items:center;font-size:22px;color:var(--hb-muted)}
.hb-bench-player-meta{grid-column:2;grid-row:2;display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;align-self:center;align-items:center;height:56px;max-height:100%;min-height:0;padding:0}
.hb-bench-profile .hb-bench-player-meta small{position:static;display:block;font-size:clamp(7px,8cqh,12px);font-weight:650;line-height:1.1;margin:0;color:var(--hb-muted)}
.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{width:auto;min-width:0;font-size:clamp(22px,14cqw,38px);line-height:1;font-weight:850;letter-spacing:-.03em;text-align:left;color:var(--hb-ink)}
.hb-bench-actions{grid-column:1;grid-row:2;display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;align-self:center;justify-self:end;width:26px;height:56px;max-height:100%;min-height:0;z-index:2}
.hb-bench-actions .hb-bench-field,.hb-bench-actions .hb-bench-quick{position:static;width:100%;height:100%;min-height:0;border:1.5px solid var(--hb-line);border-radius:6px;background:var(--hb-action);color:var(--accent);font-size:20px;line-height:1;box-shadow:none}
.hb-bench-actions .hb-bench-field[aria-pressed=true]{border-color:var(--accent);background:var(--hb-action);color:var(--accent)}
.hb-bench-live{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1.35fr) repeat(3,minmax(0,1fr));gap:8px;align-items:start;align-self:stretch;margin:0 calc(-1 * var(--hb-inset));padding:var(--hb-stat-pad) var(--hb-inset);border-top:1px solid var(--hb-line);background:var(--hb-footer);color:var(--hb-ink);min-height:0;pointer-events:none}
.hb-bench-live .hb-bench-main,.hb-bench-live .hb-bench-micro>span{display:grid;grid-template-rows:var(--hb-stat-label) var(--hb-stat-value);align-items:start;align-self:start;gap:0;min-width:0;line-height:1;text-align:left}
.hb-bench-live .hb-bench-main{grid-column:1;grid-row:1}.hb-bench-live .hb-bench-micro{display:contents}
.hb-bench-main-label,.hb-bench-live .hb-bench-micro>span{font-size:9px;font-weight:650;line-height:var(--hb-stat-label);letter-spacing:.035em;color:var(--hb-muted);white-space:nowrap}
.hb-bench-main-value{display:flex;align-items:flex-start;height:var(--hb-stat-value);font-size:0;line-height:var(--hb-stat-value);white-space:nowrap;letter-spacing:0}
.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:16px;line-height:var(--hb-stat-value);font-weight:750;color:var(--hb-ink);letter-spacing:0}
.hb-bench-card{top:auto;bottom:calc(var(--hb-stats-row) + var(--hb-row-gap) + 3px);right:42px}
@media(max-height:900px) and (min-width:621px){.hb-bench-player,.hb-bench-player.is-on{--hb-inset:5px;--hb-name-row:17px;--hb-stats-row:20px;--hb-row-gap:1px;--hb-stat-label:7px;--hb-stat-value:12px;--hb-stat-pad:0px;padding-top:3px;border-radius:7px}.hb-bench-profile{grid-template-columns:minmax(0,26%) minmax(0,1fr) 16px;column-gap:6px}.hb-bench-profile b{font-size:14px;line-height:17px}.hb-bench-portrait-stack{max-height:52px;border-radius:5px}.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{border-radius:5px}.hb-bench-player-meta,.hb-bench-actions{height:30px;gap:2px}.hb-bench-actions{width:16px}.hb-bench-actions .hb-bench-field,.hb-bench-actions .hb-bench-quick{font-size:12px;border-width:1px;border-radius:4px}.hb-bench-profile .hb-bench-player-meta small{font-size:9px;line-height:10px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{font-size:18px;line-height:14px}.hb-bench-live{gap:4px}.hb-bench-main-label,.hb-bench-live .hb-bench-micro>span{font-size:6px;letter-spacing:0}.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:11px}.hb-bench-card{right:25px}}
@media(max-height:760px) and (min-width:621px){.hb-bench-profile .hb-bench-player-meta small{font-size:8px;line-height:8px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{font-size:16px;line-height:10px}.hb-bench-player-meta,.hb-bench-actions{gap:1px}}
@media(max-height:650px) and (min-width:1101px){.hb-bench-player,.hb-bench-player.is-on{--hb-inset:3px;--hb-name-row:13px;--hb-stats-row:17px;--hb-row-gap:0px;--hb-stat-label:6px;--hb-stat-value:10px;padding-top:1px}.hb-bench-profile b{font-size:13px;line-height:13px}.hb-bench-profile{grid-template-columns:minmax(0,24%) minmax(0,1fr) 13px;column-gap:4px}.hb-bench-player-meta,.hb-bench-actions{height:19px;gap:0}.hb-bench-actions{width:13px}.hb-bench-actions .hb-bench-field,.hb-bench-actions .hb-bench-quick{font-size:9px}.hb-bench-profile .hb-bench-player-meta small{font-size:6px;line-height:6px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{font-size:14px;line-height:8px}.hb-bench-main-label,.hb-bench-live .hb-bench-micro>span{font-size:5px}.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:8px}}
@media(max-width:620px){.hb-bench-player,.hb-bench-player.is-on{--hb-inset:3px;--hb-name-row:15px;--hb-stats-row:19px;--hb-row-gap:1px;--hb-stat-label:6px;--hb-stat-value:12px;--hb-stat-pad:0px;padding-top:1px;border-radius:6px}.hb-bench-profile{grid-template-columns:minmax(0,30%) minmax(0,1fr) 13px;column-gap:3px}.hb-bench-profile b{font-size:12px;line-height:15px}.hb-bench-portrait-stack{max-height:42px;border-radius:4px}.hb-bench-portrait-stack>img,.hb-bench-portrait-stack>.hb-bench-photo-empty{border-radius:4px}.hb-bench-player-meta,.hb-bench-actions{height:24px;gap:1px}.hb-bench-actions{width:13px}.hb-bench-actions .hb-bench-field,.hb-bench-actions .hb-bench-quick{font-size:10px;border-width:1px;border-radius:3px}.hb-bench-profile .hb-bench-player-meta small{font-size:8px;line-height:8px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{font-size:16px;line-height:12px}.hb-bench-live{gap:2px}.hb-bench-main-label,.hb-bench-live .hb-bench-micro>span{font-size:5px;letter-spacing:0}.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:10px}.hb-bench-card{right:20px}}
@media(max-width:620px) and (max-height:740px){.hb-bench-player,.hb-bench-player.is-on{--hb-name-row:14px;--hb-stats-row:17px;--hb-stat-label:6px;--hb-stat-value:10px}.hb-bench-profile b{line-height:14px}.hb-bench-profile .hb-bench-player-meta small{font-size:7px;line-height:7px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{font-size:14px;line-height:9px}.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:8px}}

/* Breathing room for source values, without changing the outside grid. */
.hb-bench-player,.hb-bench-player.is-on{--hb-stats-row:52px;--hb-stat-label:12px;--hb-stat-value:20px;--hb-stat-pad:8px}
.hb-bench-main-label,.hb-bench-live .hb-bench-micro>span{font-size:10px}
.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:17px}
.hb-bench-player.is-on{--hb-surface:#b2e1d2;--hb-footer:#c7eade;background:var(--hb-surface);box-shadow:inset 0 0 0 2px #078a78,0 1px 3px #102b3810}
.handball-body[data-theme=dark] .hb-bench-player.is-on{--hb-surface:#246367;--hb-footer:#2c7073;--hb-ink:#fff;--hb-muted:#d9f0ed;box-shadow:inset 0 0 0 2px #54dfc6,0 1px 3px #0002}
.hb-bench-actions .hb-bench-field[aria-pressed=true]{background:#008a7c;border-color:#008a7c;color:#fff;font-weight:850}
.hb-bench-header-stats{width:60%;max-width:258px;gap:2px}
.hb-bench-score-side.home .hb-bench-header-stats{margin-left:auto}.hb-bench-score-side.away .hb-bench-header-stats{margin-right:auto}
.hb-bench-header-identity{margin-bottom:3px}.hb-bench-header-stats>span{padding:0 4px;gap:3px}.hb-bench-header-stats small{font-size:.58rem;line-height:1}.hb-bench-header-stats b{font-size:.7rem;line-height:1}
@media(max-width:1100px){.hb-bench-header-stats{width:100%;max-width:258px}}
@media(max-height:900px) and (min-width:621px){.hb-bench-player,.hb-bench-player.is-on{--hb-stats-row:24px;--hb-stat-label:8px;--hb-stat-value:12px;--hb-stat-pad:1px}.hb-bench-main-label,.hb-bench-live .hb-bench-micro>span{font-size:7px}.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:11px}.hb-bench-profile .hb-bench-player-meta small{font-size:8px;line-height:8px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{font-size:16px;line-height:12px}}
@media(max-height:760px) and (min-width:621px){.hb-bench-player,.hb-bench-player.is-on{--hb-name-row:15px;padding-top:1px}.hb-bench-profile b{line-height:15px}.hb-bench-profile .hb-bench-player-meta small{font-size:7px;line-height:7px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{font-size:14px;line-height:9px}}
@media(max-height:700px) and (min-width:1101px){.hb-bench-header-identity{margin-bottom:0}.hb-bench-header-stats{row-gap:0;column-gap:1px}.hb-bench-header-stats>span{padding:0 3px}.hb-bench-header-stats small{font-size:8px;line-height:1}.hb-bench-header-stats b{font-size:9px;line-height:1}}
@media(max-height:650px) and (min-width:1101px){.hb-bench-player,.hb-bench-player.is-on{--hb-name-row:13px;--hb-stats-row:18px;--hb-stat-label:6px;--hb-stat-value:9px;--hb-stat-pad:1px}.hb-bench-profile b{line-height:13px}.hb-bench-main-label,.hb-bench-live .hb-bench-micro>span{font-size:5px}.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:8px}.hb-bench-profile .hb-bench-player-meta small{font-size:6px;line-height:5px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{line-height:7px}}
@media(max-width:620px){.hb-bench-player,.hb-bench-player.is-on{--hb-stats-row:23px;--hb-stat-label:7px;--hb-stat-value:12px;--hb-stat-pad:1px}.hb-bench-main-label,.hb-bench-live .hb-bench-micro>span{font-size:5px}.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:10px}}
@media(max-width:620px) and (max-height:740px){.hb-bench-player,.hb-bench-player.is-on{--hb-stats-row:19px;--hb-stat-label:6px;--hb-stat-value:10px;--hb-stat-pad:1px}.hb-bench-profile .hb-bench-player-meta small{font-size:6px;line-height:6px}.hb-bench-profile .hb-bench-player-meta .hb-bench-shirt-number{line-height:8px}.hb-bench-live .hb-bench-main strong,.hb-bench-live .hb-bench-main small,.hb-bench-live .hb-bench-micro b{font-size:8px}}

@media(min-width:621px) and (max-width:1100px){.hb-bench-header-identity{flex-wrap:nowrap}.hb-bench-header-identity>button{min-width:0;overflow:hidden;text-overflow:ellipsis}.hb-bench-header-identity .handball-kit-preview{width:22px;height:24px}.hb-bench-header-identity .match-kit-selector select{width:72px;max-width:72px;font-size:.6rem;padding:1px}}
