.site-mast{background:#052443;color:white;border-bottom:1px solid #29465d;font:400 16px/1.4 Exo,Arial,sans-serif}
.site-mast .mast-row{width:min(1280px,calc(100% - clamp(32px,8.3vw,112px)));margin:auto;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px 24px}
.site-mast .site-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:15px;font-weight:700;line-height:1.17;letter-spacing:.025em;white-space:nowrap}
.site-mast .site-brand img{width:43px;height:52px;object-fit:contain}.site-mast .site-brand strong{display:block;margin-top:3px;color:#b8d1dc;font-size:12px}
.site-mast .mast-row nav{display:flex;width:auto;min-width:0;margin:0;padding:0;align-self:stretch;align-items:stretch;flex-wrap:wrap;gap:0 clamp(12px,2vw,28px)}
.site-mast .mast-row nav a{display:inline-flex;align-items:center;gap:6px;margin:0;padding:7px 0 4px;color:#c3d4dc;font:500 15px/1.25 Exo,Arial,sans-serif;letter-spacing:normal;text-transform:none;text-decoration:none;white-space:nowrap;border:0;border-bottom:3px solid transparent}
.site-mast .mast-row nav a:hover,.site-mast .mast-row nav a[aria-current="page"]{color:white;border-bottom-color:#4cdbd1}.site-mast .play-mark{font-size:20px;line-height:1;color:#4cdbd1}
@media(max-width:850px){.site-mast .mast-row{flex-direction:column;align-items:flex-start;gap:0;padding-top:7px}.site-mast .site-brand img{width:30px;height:37px}.site-mast .mast-row nav{gap:0 16px}.site-mast .mast-row nav a{min-height:35px;font-size:14px}}
.site-mast .mast-row nav{margin-left:auto}
.site-mast .site-brand .logo-on-light{display:none}
.site-mast .theme-toggle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;align-self:center;padding:10px;border:1px solid #476475;border-radius:50%;background:transparent;color:#d4e9ef;cursor:pointer}
.site-mast .theme-toggle:hover{background:#163d55;border-color:#6eddd6;color:white}
.site-mast .theme-toggle:focus-visible{outline:3px solid #4cdbd1;outline-offset:4px}
.theme-toggle svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.theme-toggle .theme-icon-sun{display:none}
.theme-toggle .theme-icon-moon{fill:currentColor;stroke:none}
@media(max-width:850px){
 .site-mast .mast-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:0 14px;align-items:center}
 .site-mast .site-brand{grid-column:1;grid-row:1;min-width:0;white-space:normal}
 .site-mast .theme-toggle{grid-column:2;grid-row:1;justify-self:end}
 .site-mast .mast-row nav{grid-column:1/-1;grid-row:2;margin-left:0}
}

/* The player and selected participant's replay controls share one panel. */
html body .group-layout.isu-layout{display:flex;flex-direction:column;gap:20px}
.isu-layout>*{width:100%;min-width:0}
.isu-layout .monitor{
 --player-active-text:#fff;
 --player-controls-shade:rgba(8,53,70,.94);
 --player-cover:url('/archive/video-cover-dark.png');
 --player-cover-fallback:none;
}
html[data-theme="dark"] .isu-layout .monitor{
 --player-active-text:#081925;
 --player-controls-shade:rgba(3,19,33,.96);
 --player-cover:url('/archive/video-cover.png');
 --player-cover-fallback:url('/archive/video-cover-dark.png');
}
.isu-layout .live-frame{background:var(--player-cover) center/contain no-repeat,var(--player-cover-fallback) center/contain no-repeat #052443}
.isu-layout .monitor-caption{align-items:flex-start;flex-wrap:nowrap;gap:20px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:0 0 7px 7px}
.isu-layout .monitor-caption p{color:var(--muted)}
.isu-layout .monitor-caption #run-indicator{color:var(--teal)}
.isu-layout .monitor-caption>.current-participant{flex:0 1 27%;min-width:180px}
.isu-layout .monitor-caption>#isu-roster{flex:1 1 0;min-width:0;max-width:none;container-type:normal}
.isu-layout #isu-roster .warmup-heading,.isu-layout #isu-roster:not(.has-selection),.isu-layout #isu-roster li:not(.replay-selected),.isu-layout #isu-roster summary{display:none}
.isu-layout #isu-roster .isu-roster{list-style:none;margin:0;padding:0}
.isu-layout #isu-roster li{padding:0;border:0}
.isu-layout #isu-roster li::marker{content:''}
.isu-layout #isu-roster .athlete-options{display:flex;flex-wrap:wrap;gap:6px;margin:0;color:var(--muted)}
.isu-layout #isu-roster .athlete-options button{width:auto;min-height:36px;margin:0;padding:7px 10px;border:1px solid var(--line);border-radius:4px;font-size:13px;color:var(--teal);background:var(--paper);white-space:nowrap}
.isu-layout #isu-roster .athlete-options button:hover:not(:disabled,[aria-pressed="true"]){background:var(--theme-soft,#e5f3f2);border-color:var(--teal)}
.isu-layout #isu-roster .athlete-options button[aria-pressed="true"]{background:var(--teal);border-color:var(--teal);color:var(--player-active-text);font-weight:700}
.isu-layout #isu-roster .athlete-options button:disabled{color:var(--muted);background:var(--bg);cursor:default}
.isu-layout .replay-graphics-toggle{display:flex;align-items:center;gap:8px;min-height:32px;margin-top:5px;color:var(--ink);font-size:14px;cursor:pointer;width:fit-content}
.isu-layout .replay-graphics-toggle input{margin:0;width:18px;height:18px;accent-color:var(--teal);cursor:pointer}
.isu-layout .replay-graphics-toggle input:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.isu-layout #isu-roster .athlete-options button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
html body .isu-layout .monitor-caption #isu-school{white-space:normal!important;line-height:1.5;color:var(--muted);font-size:13px!important}
/* Keep the browser's controls and their contrast against ice footage. */
.isu-layout .live-frame video::-webkit-media-controls-panel{
 background-image:linear-gradient(to top,var(--player-controls-shade),transparent 115px);
}
.isu-layout video:fullscreen{width:100vw;height:100vh;object-fit:contain;background:#031626}
.isu-layout .run-table .sheet-head{padding:18px}
.isu-layout .run-table table{width:100%}
.isu-layout .run-table .school-cell{text-align:left;color:var(--muted);font-size:13px}
.live-tools{align-items:flex-end;gap:12px 20px}
.live-tools>label:has(select){flex:1 1 24rem;min-width:0;max-width:100%}
#isu-competition,#isu-program{display:block;width:100%;min-height:44px;font-size:16px;margin-top:6px}
.run-table .recording-cell{text-align:center;width:64px}
.video-mark{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:24px;height:24px}
.video-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.video-mark.available{color:#128245}.video-mark.unavailable{color:#c93440}
html[data-theme="dark"] .video-mark.available{color:#53d890}html[data-theme="dark"] .video-mark.unavailable{color:#ff7881}
.run-table tr.has-recording{cursor:pointer}
html body .run-table tr.has-recording:hover td,html body .run-table tr.replay-active td{background:var(--theme-active,#dff2ee)}
.run-table tr.replay-active td:first-child{box-shadow:inset 3px 0 var(--teal)}
.run-table .result-replay-link{border:0;padding:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer}
.run-table .result-replay-link:focus-visible{outline:2px solid var(--teal);outline-offset:5px}
/* A transparent light graphics document must keep a light iframe canvas even in dark mode. */
.isu-layout .live-frame iframe{color-scheme:light}
.isu-layout .live-frame .camera-overlay[popover]{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;pointer-events:none}
.camera-overlay[popover]::backdrop{background:transparent;pointer-events:none}
.isu-layout [hidden],.tour-head [hidden]{display:none!important}
.isu-layout .live-frame.awaiting-program{background:var(--paper)}
.isu-layout .live-frame.awaiting-program iframe{visibility:hidden}
.isu-layout .live-frame.awaiting-program::after{content:'Выберите программу';position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:16px}

/* Phone layout: readable protocols, full-size controls and no clipped columns. */
@media(max-width:720px){
 html body .group-layout.isu-layout{gap:16px}
 .site-mast .mast-row{width:calc(100% - 32px);gap:0 10px;padding-block:8px 0}
 .site-mast .site-brand{font-size:13px;letter-spacing:0}
 .site-mast .site-brand strong{font-size:11px}
 .site-mast .theme-toggle{width:44px;height:44px}
 .site-mast .mast-row nav{gap:24px}
 .site-mast .mast-row nav a{min-height:44px;font-size:14px}
 .landing-wrap,body:not(.landing-page) main:has(>.broadcast){width:calc(100% - 32px)}
 .landing-air{margin-top:24px}
 .landing-air h2{margin-bottom:18px}
 .report{overflow:visible;max-width:100%}
 .report :is(h1,h2,h3,caption){overflow-wrap:break-word}
 .report p>a,.report .export-categories a{display:inline-flex;align-items:center;min-height:44px;padding:5px 4px}
 .report .export-categories tr{gap:3px 14px}
 .report .export-categories tbody{padding:8px 12px 12px;border-radius:5px}
 .report .export-categories tr:first-child td:first-child{font-size:16px}
 html body .mobile-records{display:block;width:100%!important;max-width:100%;zoom:1!important;font-size:14px;text-align:left}
 .mobile-records>caption{display:block;width:100%;margin-bottom:18px}
 .mobile-records>thead,.mobile-records .mobile-heading{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%)}
 .mobile-records>tbody{display:block;width:100%}
 html body .mobile-records .mobile-record{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;padding:14px 12px;border-bottom:1px solid var(--line,#d6e6e9)}
 html body .mobile-records .mobile-record :is(td,th){display:block;min-width:0;width:auto!important;border:0;padding:0;text-align:left;font-size:14px;line-height:1.4;white-space:nowrap!important;background:transparent}
 .mobile-records .mobile-record td::before{content:attr(data-mobile-label);display:block;margin-bottom:3px;font-size:11px;line-height:1.3;font-weight:400;color:var(--muted,#536875);white-space:normal;text-transform:none}
 html body .mobile-records .mobile-record .mobile-name{grid-column:1/-1;grid-row:1;padding-left:30px;font-size:15px;font-weight:700;white-space:normal!important;overflow-wrap:break-word!important}
 .mobile-records .mobile-record .mobile-rank{grid-column:1;grid-row:1;max-width:26px;font-weight:700;color:var(--teal,#006770)}
 html body .mobile-records .mobile-record .mobile-rank:is([data-mobile-label="№"],[data-mobile-label="М."]){align-self:start;color:inherit;font-size:14px;font-weight:400;line-height:1.5}
 .mobile-records .mobile-record :is(.mobile-rank,.mobile-name)::before{display:none}
 html body .mobile-records .mobile-record .mobile-wide{grid-column:1/-1;white-space:normal!important;overflow-wrap:break-word!important}
 html body .run-table .mobile-records .mobile-record .mobile-name{padding-right:32px}
 html body .mobile-records .mobile-record .mobile-video{grid-column:3;grid-row:1;justify-self:end;align-self:start;width:24px!important}
 .mobile-records .mobile-record .mobile-video::before{display:none}
 html body .mobile-records .mobile-record :is(td:empty,.mobile-empty){display:none}
 html body .mobile-records :is(.school,small){white-space:normal!important;font-size:13px!important;font-weight:400}
 .mobile-records .mobile-group{display:block;width:100%}
 .mobile-records .mobile-group>*{display:block;width:100%}
 .mobile-records .run-athlete{background:var(--theme-active,#e1f3ef)}
 .report table:not(.mobile-records):not(.export-categories){table-layout:fixed;width:100%;font-size:13px}
 .report table:not(.mobile-records):not(.export-categories) :is(td,th){width:auto;white-space:normal;overflow-wrap:anywhere}
 .broadcast-view .tour-head,.tour-head{margin-bottom:18px}
 html body .tour-head h1{font-size:22px!important;line-height:1.2;white-space:normal!important;overflow-wrap:break-word}
 .tour-head .event-meta{font-size:13px;gap:4px 12px;margin-bottom:8px}
 #run-program{font-size:13px;line-height:1.6}
 .live-tools{margin-bottom:16px}
 .live-tools label:has(#isu-program){width:100%;font-size:14px}
 #isu-program{min-height:44px;font-size:16px;margin-top:6px}
 .isu-layout .replay-graphics-toggle{min-height:44px}
 .isu-layout .replay-graphics-toggle input{width:20px;height:20px}
 html body .isu-layout .monitor-caption{padding:12px 14px}
 html body .isu-layout .monitor-caption h2{font-size:18px!important;white-space:normal!important}
 html body .isu-layout .monitor-caption p{font-size:13px!important;white-space:normal!important}
 html body .isu-layout .sheet-head{padding:14px 12px}
 html body .isu-layout .sheet-head h2{font-size:20px!important;white-space:normal!important}
 .isu-layout .sheet-head .quiet{font-size:13px}
 html body .isu-layout .chapters h2{font-size:20px;padding:14px}
 .isu-layout .warmup-heading{padding:10px 14px;font-size:15px}
 .isu-layout .isu-roster{padding-right:12px}
 .isu-roster details>summary{min-height:44px}
 .isu-layout .isu-entry{font-size:14px}
 .isu-layout .isu-entry .school{font-size:12px;line-height:1.5}
 .isu-layout .athlete-options button{min-height:44px;font-size:14px;padding:8px 12px}
}
@media(max-width:360px){.mobile-records .mobile-record td::before{font-size:10px}}
@media(max-width:640px){
 .isu-layout .monitor-caption{flex-wrap:wrap;gap:12px}
 .isu-layout .monitor-caption>.current-participant,.isu-layout .monitor-caption>#isu-roster{flex:1 1 100%;min-width:0}
 .isu-layout #isu-roster .athlete-options button{min-height:44px}
 .isu-layout #isu-roster .athlete-options .program-action{font-size:12px;padding-inline:8px}
}
.isu-layout #isu-roster .athlete-options .program-action{min-inline-size:8.5em}
.isu-layout #isu-roster .athlete-options button.program-action.program-loading{
  background-image:linear-gradient(90deg,
    color-mix(in srgb,var(--teal,#007d83) 35%,transparent) var(--program-upload,0%),
    transparent var(--program-upload,0%));
}
.cover-action a::after{content:none!important}





/* Uppercase belongs only to the skate cover, not the rest of the interface. */
.landing-hero h1,.landing-hero .cover-meta,.hero h1,.hero .meta,.hero .eyebrow{text-transform:uppercase}

/* A clear disclosure area without replacing native keyboard or touch selection. */
#isu-competition,#isu-program{
 --picker-button:#e2f1f1;
 --picker-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23006f70' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 -webkit-appearance:none;appearance:none;cursor:pointer;padding-right:56px;
 background-image:var(--picker-chevron),linear-gradient(to left,var(--picker-button) 43px,var(--line,#cbdde2) 43px,var(--line,#cbdde2) 44px,transparent 44px);
 background-position:right 11px center,center;background-size:22px 22px,100% 100%;background-repeat:no-repeat;
}
html[data-theme="dark"] #isu-competition,html[data-theme="dark"] #isu-program{
 --picker-button:#1c414e;
 --picker-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2378dcd2' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#isu-competition:focus,#isu-program:focus{outline:none!important;box-shadow:none!important}
#isu-competition:focus-visible,#isu-program:focus-visible{background-color:#edf8f7;--picker-button:#d0ebe7}
html[data-theme="dark"] :is(#isu-competition,#isu-program):focus-visible{background-color:#193846;--picker-button:#285461}
@media(hover:hover){
 #isu-competition:hover,#isu-program:hover{background-color:#edf8f7;--picker-button:#d0ebe7}
 html[data-theme="dark"] #isu-competition:hover,html[data-theme="dark"] #isu-program:hover{background-color:#193846;--picker-button:#285461}
}

/* The full federation name wraps naturally on narrow displays. */
.site-mast .site-brand{min-width:0;white-space:normal}
.site-mast .site-brand>span{min-width:0;line-height:1.25}
.site-mast .site-brand img{flex-shrink:0}
.site-mast .site-brand strong{line-height:1.3}
@media(max-width:850px){.site-mast .site-brand{padding-block:6px}}

/* Uppercase only the selected category and rank heading. */
.tour-head #isu-category{text-transform:uppercase}

/* Match the compact, centered ISU legend and its original 75 / 200 columns. */
html body .report table.isu-legend:not(.mobile-records):not(.export-categories){width:275px;max-width:100%;table-layout:fixed;margin:16px auto;font-size:.92rem;border-collapse:collapse}
html body .report table.isu-legend:not(.mobile-records):not(.export-categories) td{padding:1px;border:0;width:auto;white-space:normal;overflow-wrap:normal;text-align:left}
html body .report table.isu-legend:not(.mobile-records):not(.export-categories) td:first-child{width:75px;white-space:nowrap}
