/* Shared visual grammar. Sports identities stay white/blue in either appearance. */
@media screen {
html[data-judo-shell][data-judo-theme=light],html[data-judo-shell][data-judo-theme=light] body {
 --bg:#f1f6fc;--surface:#fff;--navy:#fff;--surface-raised:#edf4fc;--control:#fff;
 --ink:#142e49;--muted:#47617c;--line:#d5e2f0;--border-strong:#a6bdd5;--accent-soft:#e3effd;
 --ui-shadow:0 2px 8px #17477905;
}
html[data-judo-shell][data-judo-style=apple][data-judo-theme=light],html[data-judo-shell][data-judo-style=apple][data-judo-theme=light] body{--bg:#f0f5fb;--surface-raised:#ebf2fb;--line:#d8e3ef}
html[data-judo-shell] .ui-page-header{justify-content:flex-start;min-width:0}
html[data-judo-shell] .ui-header-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto;margin-left:auto}
html[data-judo-shell] .ui-page-header>.admin-heading{flex:1;min-width:0}
html[data-judo-shell] .ui-back{border-color:transparent;background:transparent;color:var(--muted)}
html[data-judo-shell] .ui-back:hover{background:var(--accent-soft);color:var(--link)}
html[data-judo-shell] .ui-logout{color:var(--muted)}
html[data-judo-shell] .ui-logout:hover{background:var(--accent-soft);color:var(--link)}
html[data-judo-shell] .ui-page-header .ui-native-icon{pointer-events:none}
html[data-judo-shell] .ui-login-back{position:absolute;z-index:8;left:12px;top:12px}
html[data-judo-shell] .ui-portal-label{font-size:11px;font-weight:700;letter-spacing:.045em;color:var(--link);min-width:0}
html[data-judo-shell] .muted{color:var(--muted)}
html[data-judo-shell] .notice{background:var(--surface-raised);color:var(--ink);border-color:var(--line)}
html[data-judo-shell] .error{color:var(--danger-text)}
html[data-judo-shell] :is(.empty h3,.empty p,.source-badge,.source-link){color:var(--muted)}
html[data-judo-shell] :is(.section-title h2,.profile-section-head h2){letter-spacing:-.015em}
html[data-judo-shell] .audience-stat:hover{background:var(--accent-soft)}
html[data-judo-shell] .audience-stat:hover :is(strong,span){color:var(--link)}
html[data-judo-shell] .event-tabs,.profile-tabs{scroll-margin-top:8px}
html[data-judo-shell] .ui-review-header h1{flex:1}
html[data-judo-shell] .ui-review-link .ui-native-icon{color:var(--link)}
/* Login: the photo keeps its overlay; the form uses actual theme surfaces. */
html[data-judo-shell] .judo-login{color-scheme:inherit;color:var(--ink);--login-panel:var(--surface);--login-gold:var(--primary);--login-line:var(--line);--login-focus:var(--focus);background:var(--bg)}
html[data-judo-shell] .judo-login .login-surface{border-color:var(--line);box-shadow:0 16px 60px #102a4715}
html[data-judo-shell] .judo-login .login-panel{background:var(--surface);color:var(--ink)}
html[data-judo-shell] .judo-login :is(.login-brand,label,h1){color:var(--ink)}
html[data-judo-shell] .judo-login .brand-mark{background:var(--accent-soft);border-color:var(--border-strong)}
html[data-judo-shell] .judo-login .brand-mark::before{background:var(--primary)}
html[data-judo-shell] .judo-login .brand-mark::after{background:#77adf0}
html[data-judo-shell] .judo-login .visibility{color:var(--link)}
html[data-judo-shell] .judo-login .visibility:hover{background:var(--accent-soft)}
html[data-judo-shell] .judo-login .login-submit{background:var(--primary);color:#fff}
html[data-judo-shell] .judo-login .login-submit:not(:disabled):hover{background:var(--primary-hover)}
html[data-judo-shell] .judo-login .login-submit:disabled{background:var(--inactive-bg);color:var(--inactive-text)}
html[data-judo-shell] .judo-login .login-feedback{background:var(--danger-bg);color:var(--danger-text);border-color:var(--danger-border)}
html[data-judo-shell] .judo-login .feature-title{color:#fff}
html[data-judo-shell] .judo-login .feature-info{color:#e0eaff}
/* Athlete history: quiet cards, explicit result labels instead of full-card gradients. */
html[data-judo-shell] #panel-head-to-head .history-bout{
 --card-text:var(--ink);--card-muted:var(--muted);background:var(--surface);color:var(--ink);
 border:1px solid var(--line);border-left:3px solid var(--success-border);box-shadow:none;border-radius:var(--ui-radius);padding:12px 14px;
}
html[data-judo-shell] #panel-head-to-head .history-loss{border-left-color:var(--danger-border)}
html[data-judo-shell] #panel-head-to-head .history-bout :is(a,.history-details summary){color:var(--link)}
html[data-judo-shell] #panel-head-to-head .history-bout :is(.muted,.history-match small,.history-decision,.history-event-log time){color:var(--muted)}
html[data-judo-shell] .history-win .history-verdict{background:var(--success-bg);color:var(--success-text);border:0}
html[data-judo-shell] .history-loss .history-verdict{background:var(--danger-bg);color:var(--danger-text);border:0}
html[data-judo-shell] .history-score{border-color:var(--line);background:var(--surface-raised);color:var(--ink)}
html[data-judo-shell] .history-score>strong{color:inherit}
html[data-judo-shell] .history-white{background:var(--white-side);color:var(--white-side-ink)}
html[data-judo-shell] .history-white :is(strong,dd){color:var(--white-side-ink)}
html[data-judo-shell] .history-white dt{color:var(--white-side-muted)}
html[data-judo-shell] .history-blue{background:var(--blue-side);color:#fff;border-color:var(--blue-side)}
html[data-judo-shell] .history-blue :is(strong,dd,dt){color:#fff}
html[data-judo-shell] .history-shido dd{background:var(--warning-bg);color:var(--warning-text)}
html[data-judo-shell] .history-duration{background:var(--surface-raised);border-color:var(--line);color:var(--ink)}
html[data-judo-shell] .history-duration small{color:var(--muted)}
html[data-judo-shell] :is(.history-details,.history-event-log li){border-color:var(--line)}
html[data-judo-shell] .profile-bouts{gap:10px}
html[data-judo-shell] .history-bout-top{gap:12px}
html[data-judo-shell] .history-score dl{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-judo-shell] .profile-tabs a{color:var(--muted)}
html[data-judo-shell] .profile-tabs a[aria-current=page]{background:var(--accent-soft);color:var(--link)}
html[data-judo-shell] .athlete-page .profile-total th{color:var(--ink)}
/* Operator/arena: never inherit theme ink onto a fixed blue or white sports side. */
html[data-judo-shell] .live-layout{background:var(--bg);color:var(--ink)}
html[data-judo-shell] .live-board{color:var(--ink);background:var(--surface)}
html[data-judo-shell] .board-top{background:var(--surface-raised);color:var(--ink);border-bottom:1px solid var(--line)}
html[data-judo-shell] #board-category{color:var(--muted)}
html[data-judo-shell] #board-mat{color:var(--link);border-color:var(--border-strong);font-weight:750}
html[data-judo-shell] .desk-clock{background:var(--surface-raised);color:var(--ink);border-top:1px solid var(--line)}
html[data-judo-shell] :is(#clock-edit-hint,.desk-tools small,.board-next){color:var(--muted)}
html[data-judo-shell] :is(.desk-tools,.board-next){border-color:var(--line)}
html[data-judo-shell] #operator-fighters .fighter{background:var(--surface);color:var(--ink)}
html[data-judo-shell] :is(.white-fighter,.white-fighter .fighter-identity){background:var(--white-side);color:var(--white-side-ink)}
html[data-judo-shell] .white-fighter :is(.fighter-name,.fighter-club,.fighter-mark,.score-numbers){color:var(--white-side-ink)}
html[data-judo-shell] #operator-fighters .blue-fighter .fighter-identity{background:var(--blue-side);color:#fff}
html[data-judo-shell] .blue-fighter .fighter-identity :is(.fighter-mark,.judogi-label,.fighter-name,p){color:#fff;opacity:1}
html[data-judo-shell] .blue-fighter .score-numbers{color:#fff}
html[data-judo-shell] .white-fighter [data-outcome=ippon] .arena-outcome{color:#087141}
html[data-judo-shell] .blue-fighter [data-outcome=ippon] .arena-outcome{color:#a0f0c8}
html[data-judo-shell] .blue-fighter .shido-line strong.penalized{color:#ffe17c}
html[data-judo-shell] .blue-fighter .shido-line strong.disqualified{color:#ffbec8}
html[data-judo-shell] .white-fighter .shido-line strong.penalized{color:#765000}
html[data-judo-shell] .white-fighter .shido-line strong.disqualified{color:#951f36}
html[data-judo-shell] .live-board .live-warning{color:var(--warning-text)}
html[data-judo-shell] .queue-tabs button[aria-pressed=true]{background:var(--accent-soft);color:var(--link)}
html[data-judo-shell] #arena-announcement-caption{color:inherit}
html[data-judo-shell] #last-call-display{color:var(--success-text);background:var(--success-bg)}
/* Public portal: phone first, identical navigation and semantics on notebook. */
html[data-judo-shell] .shared-page .shared-shell{max-width:1120px;padding:8px 14px calc(80px + env(safe-area-inset-bottom))}
html[data-judo-shell] .shared-page .shared-header{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:3px 7px;align-items:center;padding:0 0 10px;margin-bottom:10px}
html[data-judo-shell] .shared-header>div:first-of-type{grid-column:1/-1;grid-row:2;width:100%;padding:3px 2px}
html[data-judo-shell] .shared-header>.ui-back{grid-column:1;grid-row:1}
html[data-judo-shell] .shared-header>.ui-portal-label{grid-column:2;grid-row:1}
html[data-judo-shell] .shared-header>.ui-header-actions{grid-column:3;grid-row:1}
html[data-judo-shell] .shared-header .shared-brand{display:none}
html[data-judo-shell] .shared-header h1{font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-.025em;margin:1px 0 4px}
html[data-judo-shell] .shared-header p{font-size:12px;margin:0;line-height:1.4}
html[data-judo-shell] .shared-club{overflow:visible}
html[data-judo-shell] .shared-club summary{font-size:14px;min-height:52px}
html[data-judo-shell] .shared-club-title small{font-weight:400;font-size:12px;color:var(--muted)}
html[data-judo-shell] .shared-athlete{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px}
html[data-judo-shell] .shared-person{min-width:0}
html[data-judo-shell] .shared-person strong{font-size:14px;line-height:1.3;color:var(--ink)}
html[data-judo-shell] .shared-person small{font-size:12px;color:var(--muted);line-height:1.3}
html[data-judo-shell] .shared-facts{grid-template-columns:repeat(3,minmax(52px,1fr));padding:0;gap:10px}
html[data-judo-shell] .audience-side.white{background:var(--white-side);color:var(--white-side-ink)}
html[data-judo-shell] .audience-side.white .shared-person strong{color:var(--white-side-ink)}
html[data-judo-shell] .audience-side.white .shared-person small{color:var(--white-side-muted)}
html[data-judo-shell] .audience-side.blue{background:var(--blue-side);color:#fff}
html[data-judo-shell] .audience-side.blue .shared-person :is(strong,small){color:#fff}
html[data-judo-shell] .audience-side[data-winner=true]{background:var(--success-bg);color:var(--success-text)}
html[data-judo-shell] .audience-side[data-winner=true] .shared-person :is(strong,small){color:var(--success-text)}
html[data-judo-shell] .audience-score{color:var(--ink)}
html[data-judo-shell] .audience-score dd{color:var(--ink)}
html[data-judo-shell] .shared-result-score[data-side=white]{background:var(--white-side);color:var(--white-side-ink);border:1px solid var(--line)}
html[data-judo-shell] .shared-result-score[data-side=white] :is(strong,dd){color:var(--white-side-ink)}
html[data-judo-shell] .shared-result-score[data-side=white] dt{color:var(--white-side-muted)}
html[data-judo-shell] .shared-result-score[data-side=blue] :is(strong,dt,dd){color:#fff}
html[data-judo-shell] .audience-shortcuts button{justify-content:flex-start;font-size:13px;gap:9px;font-weight:600}
html[data-judo-shell] .audience-shortcuts button>span{margin-left:auto}
html[data-judo-shell] .audience-shortcuts .ui-native-icon{color:var(--link);flex:0 0 18px}
html[data-judo-shell] .audience-nav button{min-height:48px;font-size:11px;gap:4px}
html[data-judo-shell] .audience-nav .ui-native-icon{width:21px;height:21px}
html[data-judo-shell] .shared-queue-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 10px}
html[data-judo-shell] .shared-queue-tools>button{font-size:12px;padding:7px 9px}
html[data-judo-shell] .shared-queue-tools label{font-size:0;flex:1;min-width:90px}
html[data-judo-shell] .shared-queue-tools select{font-size:13px;min-height:40px;padding:7px}
html[data-judo-shell] .audience-medal-table{border-radius:var(--ui-radius);overflow:hidden;font-size:13px}
html[data-judo-shell] .shared-mat header{background:var(--surface-raised);border-radius:var(--ui-radius) var(--ui-radius) 0 0;color:var(--ink)}
html[data-judo-shell] .shared-mat header h2{color:var(--ink)}
html[data-judo-shell] .shared-mat .shared-side.blue{color:#fff}
html[data-judo-shell] .shared-mat .shared-side:not(.blue){color:var(--white-side-ink);background:var(--white-side)}
html[data-judo-shell] .shared-mat .shared-side:not(.blue) :is(strong,small){color:var(--white-side-ink)}
html[data-judo-shell] .shared-page .protocol-toolbar{gap:6px;padding:10px}
html[data-judo-shell] .shared-page .protocol-zoom{flex-wrap:wrap;gap:4px}
html[data-judo-shell] .shared-page .protocol-zoom button{padding:6px 8px;min-height:36px}
html[data-judo-shell] .shared-page .protocol-header :is(h2,p){color:var(--ink)}
@media(min-width:721px){
 html[data-judo-shell] .shared-group-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 html[data-judo-shell] .shared-club[open]{grid-column:1/-1}
 html[data-judo-shell] .shared-page #shared-clubs .shared-athletes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 html[data-judo-shell] .shared-page #shared-clubs .shared-athlete{grid-template-columns:1fr;align-content:start}
 html[data-judo-shell] .shared-page #shared-clubs .shared-facts{padding-left:41px;grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-judo-shell] .shared-page .shared-header h1{font-size:25px}
 html[data-judo-shell] .shared-page .shared-tabs{padding-block:4px}
 html[data-judo-shell] .live-header .ui-header-actions{margin-left:0}
}
@media(max-width:720px){
 html[data-judo-shell] .ui-page-header{gap:4px}
 html[data-judo-shell] .ui-header-actions{gap:3px}
 html[data-judo-shell] .ui-page-header .ui-back{min-width:36px;width:36px;flex-basis:36px;padding:5px}
 html[data-judo-shell] .ui-page-header .ui-header-actions>.ui-icon-button{min-width:40px;width:40px;flex-basis:40px;padding:6px}
 html[data-judo-shell] .ui-page-header>.admin-heading{font-size:13px}
 html[data-judo-shell] .ui-page-header>.admin-heading>a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:13px}
 html[data-judo-shell] .shared-page .shared-shell{padding:5px 8px calc(78px + env(safe-area-inset-bottom))}
 html[data-judo-shell] .shared-page .shared-header{grid-template-columns:36px minmax(0,1fr) auto;margin:0 0 8px;padding:0 0 7px}
 html[data-judo-shell] .shared-header h1{font-size:20px}
 html[data-judo-shell] .shared-header .ui-select-pop>summary{min-width:40px;min-height:44px;width:40px;padding:5px}
 html[data-judo-shell] .shared-athlete{grid-template-columns:minmax(0,1fr);gap:6px;padding:9px 11px}
 html[data-judo-shell] .shared-athlete .shared-facts{padding-left:41px;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
 html[data-judo-shell] .shared-identity{gap:7px}
 html[data-judo-shell] .shared-page .shared-tabs{padding-top:3px}
 html[data-judo-shell] .audience-nav button{font-size:10px}
 html[data-judo-shell] .shared-queue-tools select{font-size:16px;min-height:44px}
 html[data-judo-shell] #panel-head-to-head .history-bout{padding:10px;border-radius:var(--ui-radius)}
 html[data-judo-shell] .history-bout-top{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 html[data-judo-shell] .history-bout-top .history-event{grid-column:1/-1}
 html[data-judo-shell] .history-bout-top .history-match{font-size:12px;text-align:right;max-width:100px}
 html[data-judo-shell] .history-scoring{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:9px 0}
 html[data-judo-shell] .history-duration{grid-column:1/-1;display:flex;gap:7px;align-items:center;padding:4px}
 html[data-judo-shell] .history-duration strong{font-size:15px}
 html[data-judo-shell] .history-details{font-size:12px}
 html[data-judo-shell] .history-event-log li{grid-template-columns:3rem 4rem minmax(0,1fr);gap:5px}
 html[data-judo-shell] .profile-section-head{padding:12px 10px;gap:7px}
 html[data-judo-shell] .history-person{gap:7px}
 html[data-judo-shell] .live-header .ui-header-actions{margin-left:auto}
}
@media(max-width:360px){
 html[data-judo-shell] .ui-portal-label{font-size:10px;letter-spacing:0}
 html[data-judo-shell] .ui-page-header>.admin-heading{font-size:12px}
 html[data-judo-shell] .history-bout-top{grid-template-columns:1fr}
 html[data-judo-shell] .history-bout-top .history-match{text-align:left;display:flex;gap:8px;max-width:none}
}
/* Fullscreen is a presentation surface. S opens monitor settings, F / Escape exits. */
html[data-judo-shell] body.contest-order-page:fullscreen :is(.order-tools,.stage-environment,.ui-bottom-nav,.ui-page-header){display:none!important}
html[data-judo-shell] body.contest-order-page:fullscreen .order-status:empty{display:none!important}
html[data-judo-shell] body.contest-order-page:fullscreen .order-main{padding:0!important}
html[data-judo-shell] body.contest-order-page:fullscreen .order-settings[open]{display:block}
html[data-judo-shell] body[data-mode=scoreboard]:fullscreen :is(.live-header,.stage-environment,.live-selector){display:none!important}
html[data-judo-shell] body[data-mode=scoreboard]:fullscreen .live-main{padding:0;width:100%;max-width:none}
}
@media print{.ui-back,.ui-header-actions,.ui-login-back{display:none!important}}
@media screen{
html[data-judo-shell] .stage-environment{flex-direction:row;align-items:center;justify-content:center;gap:7px;min-height:22px;height:22px;width:100%;padding:2px 8px;border-bottom:1px solid var(--line)}
html[data-judo-shell] .stage-environment a{margin-left:3px}
html[data-judo-shell] .athlete-page table thead th{color:var(--muted)}
}
@media screen{
html[data-judo-shell] .history-blue .history-shido dd{background:var(--warning-bg);color:var(--warning-text)}
html[data-judo-shell] .live-layout .rank-badge{background:var(--gold-bg);color:var(--gold-text)}
html[data-judo-shell] body[data-mode] .live-title-group span,html[data-judo-shell] body[data-mode] .live-selector label{color:var(--muted)}
html[data-judo-shell] body[data-mode=scoreboard] .live-layout{background:var(--bg)}
html[data-judo-shell] .audience-club-toggle::after{content:'';display:inline-block;width:0;height:0;margin-left:6px;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:5px solid currentColor}
html[data-judo-shell] .audience-club-toggle[aria-expanded=true]::after{transform:rotate(90deg)}
}
@media screen{
html[data-judo-shell] .shared-result-record::after{content:'';display:inline-block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-left:3px}
html[data-judo-shell] .shared-result-athlete[open] .shared-result-record::after{transform:rotate(45deg)}
html[data-judo-shell] .shared-page .event-result-groups{flex-wrap:nowrap;overflow-x:auto;gap:5px;margin-bottom:8px;padding:0 0 2px;scrollbar-width:thin}
html[data-judo-shell] .shared-page .event-result-groups button{flex:0 0 auto;min-height:40px;font-size:12px;padding:7px 10px;white-space:nowrap}
html[data-judo-shell] .shared-page .event-result-groups [aria-pressed=true]{background:var(--accent-soft);color:var(--link)}
html[data-judo-shell] .shared-page .event-result-weights{box-shadow:none;border-radius:var(--ui-control-radius)}
html[data-judo-shell] .shared-page .event-result-head{min-height:52px;padding:10px 12px;gap:6px}
html[data-judo-shell] .shared-page .event-result-head h3{font-size:17px}
html[data-judo-shell] .shared-page .event-result-meta{font-size:11px;gap:7px}
html[data-judo-shell] .shared-page .event-result-meta a{padding:6px 8px;font-size:12px}
html[data-judo-shell] .shared-page #event-result-group-name{font-size:16px;margin:0 0 8px}
html[data-judo-shell] .shared-page .event-result-weights .event-weight-jump{min-height:38px;font-size:12px;padding:7px 10px;gap:7px}
html[data-judo-shell] .shared-result-athlete summary .person{font-size:13px;gap:6px}
html[data-judo-shell] .shared-result-record{white-space:nowrap;font-size:11px}
@media(max-width:720px){
 html[data-judo-shell] .shared-page .audience-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;align-items:start}
 html[data-judo-shell] .shared-page .audience-stat{display:flex;flex-direction:column;flex-wrap:nowrap;gap:2px;min-height:50px;padding:4px 0;align-items:center;justify-content:flex-start}
 html[data-judo-shell] .shared-page .audience-stat strong{font-size:21px;line-height:1.2;margin:0}
 html[data-judo-shell] .shared-page .audience-stat span{font-size:10px;line-height:1.25;text-align:center}
 html[data-judo-shell] .shared-page .event-result-layout{gap:8px}
}
}
@media screen{
html[data-judo-shell] #admin-sidebar .brand{color:var(--link)}
html[data-judo-shell] .audience-medal-table td[data-metric=gold],html[data-judo-shell] .audience-medal[data-medal=gold]{color:var(--gold-text)}
html[data-judo-shell] .audience-medal[data-medal=silver]{color:var(--medal-silver-text)}
html[data-judo-shell] .audience-medal[data-medal=bronze]{color:var(--medal-bronze-text)}
}
/* Final user review, 2026-12-05: Apple shell, compact athlete rows and category planning. */
@media screen{
html[data-judo-shell]{--athlete-path:#b34c00}
html[data-judo-shell][data-judo-theme=dark]{--athlete-path:#ffc06a}
html[data-judo-shell] .shared-bout{padding:0;border-color:var(--line);border-radius:var(--ui-control-radius);overflow:hidden}
html[data-judo-shell] .shared-bout-meta{display:flex;justify-content:flex-start;align-items:center;gap:8px;padding:5px 8px;font-size:11px;line-height:1.2;background:var(--surface-raised);color:var(--muted)}
html[data-judo-shell] .shared-bout-number{min-width:20px;font-size:12px;color:var(--ink)}
html[data-judo-shell] .shared-bout.current .shared-bout-meta{background:var(--success-bg);color:var(--success-text)}
html[data-judo-shell] .shared-bout .shared-pair{display:grid;grid-template-columns:1fr;gap:0}
html[data-judo-shell] .shared-bout .shared-side{display:grid;grid-template-columns:46px minmax(0,1.8fr) minmax(62px,1fr);gap:6px;align-items:center;min-height:34px;padding:7px 8px;min-width:0;border:0}
html[data-judo-shell] .shared-side:not(.blue){background:var(--white-side);color:var(--white-side-ink)}
html[data-judo-shell] .shared-side.blue{background:var(--blue-side);color:#fff}
html[data-judo-shell] .shared-side .shared-side-name{min-width:0;overflow:hidden;white-space:nowrap;line-height:1.2;font-size:13px;color:inherit}
html[data-judo-shell] .shared-side .shared-side-club{min-width:0;overflow:hidden;white-space:nowrap;line-height:1.2;text-align:right;font-size:11px;margin:0;color:inherit}
html[data-judo-shell] .shared-side .shared-side-weight{font-size:11px;white-space:nowrap;color:inherit}
html[data-judo-shell] .fighter-mark .judogi-label [id$=side-label]{display:none}
html[data-judo-shell] #live-queue tr[data-queue-status] td:nth-child(4){background:var(--blue-side);color:#fff}
html[data-judo-shell] #live-queue tr[data-queue-status] td:nth-child(4) :is(strong,small,span,a){color:#fff;opacity:1}
html[data-judo-shell] body[data-mode] #live-board .clock-center[data-clock-status=running]:not(.golden){color:var(--success-text);background:var(--success-bg);border-color:var(--success-border)}
html[data-judo-shell] body[data-mode] #live-board .clock-center[data-clock-status=paused]:not(.golden){color:var(--danger-text);background:var(--danger-bg);border-color:var(--danger-border)}
html[data-judo-shell] body[data-mode] #live-board .clock-center.golden:not([data-clock-status=offline]){color:var(--gold-text);background:var(--gold-bg);border-color:var(--gold-text)}
html[data-judo-shell] body[data-mode] #live-board .clock-center :is(#contest-clock,#phase-label,#clock-state){color:inherit}
html[data-judo-shell] .draw-sheet-picker{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:0 0 10px}
html[data-judo-shell] .draw-sheet-picker select{flex:1;min-width:0;padding:8px;min-height:40px;max-width:600px}
html[data-judo-shell] #draw-categories{gap:9px;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr))}
html[data-judo-shell] #draw-categories .category-card{padding:12px;display:grid;align-content:start;gap:5px}
html[data-judo-shell] #draw-categories .category-card :is(h3,p){margin:0}
html[data-judo-shell] #draw-categories .category-card h3{font-size:15px;line-height:1.25}
html[data-judo-shell] #draw-categories .category-card p{font-size:11px;line-height:1.35}
html[data-judo-shell] #draw-categories .draw-badge{padding:3px 5px;justify-self:start;font-size:10px}
html[data-judo-shell] #draw-categories .draw-card-actions{margin:3px 0 0;gap:6px}
html[data-judo-shell] #draw-categories .draw-move{margin:0;padding:5px 0 0;border:0}
html[data-judo-shell] .draw-move{display:flex;align-items:center;gap:5px;padding:6px 8px;margin:0;background:var(--surface-raised);border:0}
html[data-judo-shell] .draw-move select{min-width:0;max-width:140px;padding:6px;font-size:12px}
html[data-judo-shell] .draw-move button.quiet{padding:7px;font-size:11px;min-height:36px}
html[data-judo-shell] .category-move-locked{display:block;padding:4px 8px;color:var(--muted);font-size:10px}
html[data-judo-shell] #tatamis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start;min-width:0}
html[data-judo-shell] #tatamis .tatami-card{padding:8px;min-width:0}
html[data-judo-shell] .tatami-plan-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
html[data-judo-shell] .tatami-plan-head h2{margin:0;font-size:16px}
html[data-judo-shell] .tatami-plan-head a{font-size:11px;padding:6px}
html[data-judo-shell] .plan-category{border:1px solid var(--line);border-radius:var(--ui-control-radius);overflow:hidden;margin-top:8px}
html[data-judo-shell] .plan-category>summary{list-style:none;display:flex;gap:8px;justify-content:space-between;padding:9px 8px;cursor:pointer;font-size:12px;background:var(--surface-raised)}
html[data-judo-shell] .plan-category>summary::after{content:'⌄';color:var(--muted)}
html[data-judo-shell] #tatamis .queue-bout{padding:0;margin:0;border:0;border-radius:0;border-top:1px solid var(--line)}
html[data-judo-shell] .queue-bout-heading{display:flex;gap:7px;align-items:center;justify-content:space-between;padding:4px 6px;background:var(--surface-raised);font-size:10px;color:var(--muted)}
html[data-judo-shell] .queue-bout-heading a{padding:3px;color:var(--link);white-space:nowrap}
html[data-judo-shell] .queue-bout-heading small{min-width:0;flex:1}
html[data-judo-shell] #tatamis :is(.queue-white,.queue-blue){display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:center;gap:6px;padding:6px;min-width:0}
html[data-judo-shell] #tatamis .queue-white{background:var(--white-side);color:var(--white-side-ink)}
html[data-judo-shell] #tatamis .queue-blue{background:var(--blue-side);color:#fff}
html[data-judo-shell] #tatamis :is(.queue-white,.queue-blue) strong{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
html[data-judo-shell] #tatamis :is(.queue-white,.queue-blue) small{font-size:10px;text-align:right;color:inherit;overflow-wrap:anywhere}
html[data-judo-shell] #bracket .bracket-edge.is-athlete-path{stroke:var(--athlete-path);stroke-width:4;stroke-dasharray:none}
html[data-judo-shell] #bracket .is-athlete-path .match-shell{stroke:var(--athlete-path);stroke-width:2.5}
html[data-judo-shell] #bracket .is-athlete-focus .athlete{text-decoration:underline;text-decoration-thickness:2px}
html[data-judo-shell] #bracket [data-athlete-entry]{cursor:pointer}
html[data-judo-shell] #bracket .rr-card.is-athlete-path{outline:2px solid var(--athlete-path)}
html[data-judo-shell] .matrix-name{border:0;background:none;font:inherit;text-align:left;padding:4px;color:var(--link);cursor:pointer}
html[data-judo-shell] .matrix-name.is-athlete-focus{background:var(--accent-soft);color:var(--link)}
html[data-judo-shell] .ranking-person{display:flex;align-items:center;gap:9px;min-width:0}
html[data-judo-shell] .rank-avatar{width:34px;height:40px;border-radius:6px;object-fit:cover;display:grid;place-content:center;flex:0 0 34px;background:var(--surface-raised);color:var(--muted);font-size:11px}
@media(max-width:720px){
 html[data-judo-shell] #tatamis{grid-template-columns:repeat(3,minmax(270px,1fr));overflow-x:auto;max-width:100%;scrollbar-width:thin}
 html[data-judo-shell] .shared-bout .shared-side{grid-template-columns:43px minmax(0,1.8fr) minmax(65px,1fr);gap:5px;padding-inline:7px}
 html[data-judo-shell] .ranking-table.ui-record-table tr{grid-template-columns:38px minmax(0,1fr) auto;gap:6px}
 html[data-judo-shell] .ranking-table.ui-record-table td:first-child{grid-column:1;grid-row:1/3}
 html[data-judo-shell] .ranking-table.ui-record-table td:nth-child(2){grid-column:2;grid-row:1}
 html[data-judo-shell] .ranking-table.ui-record-table td:nth-child(3){grid-column:2;grid-row:2;font-size:12px;padding-left:43px;color:var(--muted)}
 html[data-judo-shell] .ranking-table.ui-record-table td:nth-child(4){grid-column:3;grid-row:1/3;align-self:center}
 html[data-judo-shell] .ranking-table.ui-record-table td::before{display:none}
}
}
