/* Four-tab polish. Loaded after the existing Frost and clubhouse rules. */
.elf-w3.elf-frost-ui{--christmas-green:#22663e;--christmas-red:#b92f45;--gold:#22663e}
.elf-w3.elf-frost-ui .masthead{gap:7px;justify-content:space-between}
.elf-w3.elf-frost-ui .masthead #heroHow{flex:none;min-height:40px;padding:7px 10px;font-size:12px;white-space:nowrap;color:#22663e!important;background:linear-gradient(#fff,#cde6d5)!important;border:1px solid #8bb89a!important;border-bottom:3px solid #609773!important;border-image:none!important;border-radius:9px!important}
.elf-w3.elf-frost-ui .masthead .brand img.brand-logo{width:clamp(100px,35vw,195px);max-width:100%}
.elf-w3.elf-frost-ui .view>.page-banner,.elf-w3.elf-frost-ui .view>.clubhouse-banner{height:clamp(112px,18vw,170px)!important;min-height:0!important;max-height:none!important;display:flex;flex-direction:column;justify-content:center;padding:12px max(15px,calc((100vw - 1100px)/2))!important;box-sizing:border-box}
.elf-w3.elf-frost-ui .clubhouse-banner .wrap{margin:0;width:100%;max-width:none;padding:0}
.elf-w3.elf-frost-ui :is(.page-banner,.clubhouse-banner) h1{font:650 clamp(25px,5vw,44px)/1.08 Fredoka,system-ui,sans-serif!important;margin:4px 0!important}
.elf-w3.elf-frost-ui :is(.page-banner,.clubhouse-banner) .kicker{color:var(--christmas-green)!important}
.elf-w3.elf-frost-ui #homeView>.clubhouse-banner{background-image:linear-gradient(90deg,#3e251bed 0%,#573924bd 38%,#5739241a 72%),url("./clubhouse-cabin.svg")!important;background-size:cover!important;background-position:center 48%!important;border-bottom-color:#aa714a!important}
.elf-w3.elf-frost-ui #homeView>.clubhouse-banner :is(h1,p,.clubhouse-kicker){color:#fff4dc!important;text-shadow:0 2px 3px #402519!important}
.elf-w3.elf-frost-ui #homeView .clubhouse-panel{border-image:none!important;background:linear-gradient(#fff8eb,#f2e3ca)!important;border:1px solid #cead80!important;border-bottom:3px solid #bb9563!important;border-radius:13px!important;box-shadow:0 3px 8px #775d3024!important}
#homeView .clubhouse-panel-title h2,#homeView .clubhouse-board-heading h3{color:#654324!important}
#homeView .clubhouse-kicker{color:#22663e}
#homeView .clubhouse-event{background:#f6eedc;border-color:#d8bf94}
#homeView .clubhouse-board th{background:#ead8b7}
#homeView .clubhouse-board td{border-color:#ddcdb3}
#homeView .clubhouse-board tr.me{background:#e2edd9}
#homeView .clubhouse-bottom{display:none!important}
.elf-w3.elf-frost-ui #standingsView>.page-banner{background-image:linear-gradient(105deg,#fff5d8 0%,#f3dfad 42%,#dce4e9 70%,#ddb58d 100%)!important;border-bottom:2px solid #c59c53!important}
.elf-w3.elf-frost-ui #standingsView>.page-banner :is(h1,.kicker){color:#684a22!important}
.elf-w3.elf-frost-ui #standingsView>.content{min-width:0;max-width:1148px;overflow:visible}
.elf-w3.elf-frost-ui #standingsInfo{margin:0 0 7px;padding:0;color:#a22b3e;font-size:13px}
.elf-w3.elf-frost-ui #standingsInfo:empty{display:none!important}
.elf-w3.elf-frost-ui #overallTable{width:100%;min-width:0;max-width:100%;margin:0;padding:0!important;border:1px solid #d4ba82!important;border-image:none!important;border-radius:11px!important;background:#fffaf0!important;overflow:hidden;box-shadow:0 2px 6px #8b6b3720!important}
#overallTable table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse;font-size:clamp(12px,3.4vw,15px)}
#overallTable th,#overallTable td{padding:9px 5px!important;white-space:normal!important;overflow-wrap:anywhere;min-width:0;text-align:center;vertical-align:middle;color:#4c3d2c!important}
#overallTable th{font:700 11px/1.2 system-ui,sans-serif!important;letter-spacing:0!important;background:#e9d6a8!important;text-transform:none!important}
#overallTable th:nth-child(1){width:19%}#overallTable th:nth-child(2){width:45%;text-align:left}#overallTable th:nth-child(3){width:18%}#overallTable th:nth-child(4){width:18%}
#overallTable td:nth-child(2){text-align:left;font-weight:650}#overallTable td:nth-child(n+3){font-variant-numeric:tabular-nums}
#overallTable td{border-bottom:1px solid #e5d8bb!important}#overallTable .rank-cell{display:flex;justify-content:center;align-items:center;gap:2px;flex-wrap:wrap}
#overallTable .rank-cell .elf-icon{width:clamp(18px,5.5vw,27px);height:clamp(18px,5.5vw,27px);flex:none}
#overallTable .rank-cell .tie-mark{width:13px;height:13px;flex:none}
#overallTable tr[data-place="1"]{background:#fff0c4}#overallTable tr[data-place="2"]{background:#edf1f5}#overallTable tr[data-place="3"]{background:#f3e1d0}
#overallTable tr.me td:nth-child(2){box-shadow:inset 3px 0 #2a784d}
.elf-w3.elf-frost-ui #overallTable .empty{background:none!important;border:0!important;border-image:none!important;border-radius:0!important;padding:14px!important}
.elf-w3.elf-frost-ui #eventsView :is(.calendar-caption,.section-subtle,.section-title,.day-number,.event-num){color:#22663e!important}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button:nth-child(3n+1){border-image-source:var(--frost-panel-red,var(--frost-panel))!important}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button:nth-child(3n+2){border-image-source:var(--frost-panel-green,var(--frost-panel))!important}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button:nth-child(3n){border-image-source:var(--frost-panel-gold,var(--frost-panel))!important}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button:disabled{filter:drop-shadow(0 3px 3px #163a4c35)!important;opacity:.72!important}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button strong{color:#194b37!important;text-shadow:0 1px #ffffff66}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button small{color:#244c3d!important}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events .tile-emblem{background:#ffffff95!important;color:#215c3b!important;border-color:#ffffffb0!important}
.elf-w3.elf-frost-ui #profileView .profile-card{padding:23px 18px 16px}
.profile-name-details{margin:12px 0;border:1px solid #9cbfd4;border-radius:10px;background:#f4fbff;color:#23415d}
.profile-name-details summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;font-weight:750}
.profile-name-details summary::-webkit-details-marker{display:none}
.profile-name-details summary:after{content:"▾";font-size:18px;color:#22663e}.profile-name-details[open] summary:after{content:"▴"}
.profile-name-details summary .profile-current-name{min-width:0;overflow-wrap:anywhere}
.elf-w3.elf-frost-ui .profile-edit{margin:0;border:0;border-top:1px solid #c1dbe9;border-radius:0 0 10px 10px;background:transparent;padding:12px}
#profileNameStatus:empty{display:none}#profileNameStatus[data-error="true"],#authStatus[data-error="true"]{color:#b21d32!important;font-weight:700!important}
.profile-account-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;border-top:1px solid #b9d2df;padding-top:13px}
.profile-account-row .profile-email{min-width:0;overflow-wrap:anywhere;font-size:12px;color:#42647a}.profile-account-row #signOut{flex:none;min-height:44px}
.elf-w3.elf-frost-ui #raceDialog .race-head #quitRace,.elf-w3.elf-frost-ui #raceDialog.sweets-race .race-head #quitRace{background:transparent!important;border:1px solid transparent!important;border-image:var(--frost-red) 40 40 32 40 fill / 11px 12px 10px 12px / 0 stretch!important;color:#fff!important;text-shadow:0 1px 2px #7c2434;min-height:44px!important;padding:10px 10px 13px!important}
.elf-w3.elf-frost-ui #raceDialog .race-head #quitRace:hover:not(:disabled){border-image-source:var(--frost-red-hover)!important}
.elf-w3.elf-frost-ui #raceDialog .race-head #quitRace:active:not(:disabled){border-image-source:var(--frost-red-pressed)!important}
.elf-w3.elf-frost-ui #raceDialog.results-active .race-head #quitRace{border-image-source:var(--frost-button)!important;color:#23415d!important;text-shadow:none}
.elf-w3.elf-frost-ui #raceDialog .race-head #raceSettings,.elf-w3.elf-frost-ui #raceDialog.sweets-race .race-head #raceSettings{background:transparent!important;border:1px solid transparent!important;border-image:var(--frost-green-normal,var(--frost-red)) 40 40 32 40 fill / 11px 12px 10px 12px / 0 stretch!important;border-radius:0!important;width:44px!important;min-width:44px!important;height:44px!important;padding:8px 8px 10px!important}
.elf-w3.elf-frost-ui #raceDialog .race-head #raceSettings:hover:not(:disabled){border-image-source:var(--frost-green-hover,var(--frost-green-normal,var(--frost-red)))!important}
.elf-w3.elf-frost-ui #raceDialog .race-head #raceSettings:active:not(:disabled){border-image-source:var(--frost-green-pressed,var(--frost-green-normal,var(--frost-red)))!important}
.elf-w3.elf-frost-ui:not([data-christmas-tints="ready"]) #raceDialog #raceSettings{filter:hue-rotate(112deg)}
#raceSettings .elf-icon{display:block;width:26px;height:26px;flex:none;filter:none}
#raceDialog #raceSettings[hidden]{display:none!important}
.elf-w3.elf-frost-ui #raceDialog .race-head{grid-template-columns:minmax(0,1fr) minmax(58px,88px) minmax(0,1fr)!important}
@media(max-width:420px){.elf-w3.elf-frost-ui .masthead{padding-inline:7px!important}.elf-w3.elf-frost-ui .masthead #heroHow{font-size:10px;padding:6px 5px}.elf-w3.elf-frost-ui .masthead .head-account{max-width:104px}.elf-w3.elf-frost-ui #raceDialog .race-head{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr)!important}.elf-w3.elf-frost-ui #raceDialog .race-head #quitRace{padding-inline:6px!important;font-size:10px!important}.elf-w3.elf-frost-ui #raceDialog .race-head #raceSettings{width:40px!important;min-width:40px!important;padding:8px 5px 10px!important}.elf-w3.elf-frost-ui #homeView>.clubhouse-banner{background-position:61% center!important}}

/* Profile has no separate footer banner; keep account controls unchanged. */
.app-shell:has(#profileView:not([hidden])) > footer{display:none!important}

/* Daily bulletin and corrected approved frosted surfaces. */
.elf-w3.elf-frost-ui #homeView>.clubhouse-banner{background-image:linear-gradient(90deg,#3a2119b8 0%,#3a211966 32%,transparent 75%),url("./clubhouse-banner.webp"),url("../../assets/elflympics-village-desktop.avif")!important;background-size:cover!important;background-position:center center!important;border-bottom-color:#a87945!important}
.elf-w3.elf-frost-ui #standingsView>.page-banner{background-image:linear-gradient(90deg,#192a40ad 0%,#192a4055 32%,transparent 70%),url("./standings-banner.webp"),url("../../assets/elflympics-village-desktop.avif")!important;background-size:cover!important;background-position:center 52%!important;border-bottom-color:#c49b54!important}
.elf-w3.elf-frost-ui #standingsView>.page-banner :is(h1,.kicker){color:#fff!important;text-shadow:0 2px 4px #15273e!important}
.elf-w3.elf-frost-ui #homeView>.clubhouse-banner :is(h1,p,.clubhouse-kicker){color:#fff8e9!important;text-shadow:0 2px 4px #3a2119!important}
.elf-w3.elf-frost-ui .masthead #heroHow{min-height:44px;background:transparent!important;border:1px solid transparent!important;border-image:var(--frost-button) 40 40 32 40 fill / 11px 12px 10px 12px / 0 stretch!important;border-radius:0!important;padding:10px 12px 13px!important;color:#23415d!important}
.elf-w3.elf-frost-ui .masthead #heroHow:hover{border-image-source:var(--frost-hover)!important}
.elf-w3.elf-frost-ui .masthead #heroHow:active{border-image-source:var(--frost-pressed)!important}
.elf-w3.elf-frost-ui #homeView .clubhouse-today{background:linear-gradient(105deg,#fffdf3,#f5e7c7)!important;border:1px solid #bda57b!important;border-image:none!important;border-radius:3px!important;padding:14px 16px 16px!important;box-shadow:0 4px 12px #5e3b2530!important;position:relative}
.bulletin-masthead{display:flex;justify-content:space-between;align-items:center;gap:8px;border-block:3px double #8a5c37;padding:6px 0;color:#782d2d;font:900 clamp(15px,4vw,22px)/1.05 Georgia,serif;text-transform:uppercase;letter-spacing:.045em}
.bulletin-masthead span:last-child{font:700 10px/1.1 system-ui,sans-serif;letter-spacing:.08em;text-align:right;color:#805c3d}
#homeView .bulletin-headline{margin:10px 0 7px;text-align:center}
#homeView .bulletin-headline #todayKicker{color:#9c3035;font-size:10px;letter-spacing:.12em}
#homeView .bulletin-headline h2{font:900 clamp(28px,7vw,46px)/.99 Georgia,serif;color:#513321;margin:6px 0;overflow-wrap:anywhere}
#homeView .clubhouse-today .clubhouse-event{background:none!important;border:0!important;border-radius:0!important;border-block:1px solid #ba9970!important;padding:10px 0!important;margin:8px 0 12px}
#homeView .clubhouse-today .clubhouse-event-mark{background:#e8d7b5;border:1px solid #baa17a;color:#6f4a2e}
#homeView .clubhouse-today .clubhouse-event-copy strong{color:#8c3437;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
#homeView .clubhouse-today .clubhouse-event-copy p{font:600 15px/1.35 Georgia,serif;color:#644b32}
#homeView .clubhouse-today .clubhouse-board-heading{padding-top:2px}
.elf-w3.elf-frost-ui #homeView .clubhouse-overall{background:transparent!important;border:1px solid transparent!important;border-image:var(--frost-panel-gold,var(--frost-panel)) 60 52 48 52 fill / 22px 18px 17px 18px / 0 stretch!important;border-radius:0!important;padding:26px 17px 19px!important;box-shadow:none!important;filter:drop-shadow(0 4px 5px #63441455)}
#homeView .clubhouse-overall .clubhouse-panel-title h2{color:#523509!important}
#homeView .clubhouse-overall .clubhouse-board th{background:#f4d88b;color:#60400e}
#homeView .clubhouse-overall .clubhouse-board td{color:#523509;border-bottom-color:#b98e43}
#homeView .clubhouse-overall .clubhouse-board tr.me{background:#fff0b4}
.elf-w3.elf-frost-ui #standingsView #overallTable{background:transparent!important;border:1px solid transparent!important;border-image:var(--frost-panel) 60 52 48 52 fill / 22px 18px 17px 18px / 0 stretch!important;border-radius:0!important;box-shadow:none!important;padding:21px 12px 15px!important;overflow:hidden;filter:drop-shadow(0 3px 5px #26465e30)}
#overallTable th,#overallTable td{border-right:1px solid #b4cbda!important}
#overallTable th:last-child,#overallTable td:last-child{border-right:0!important}
#overallTable td{border-bottom-color:#b4cbda!important}
#overallTable tr:last-child td{border-bottom:0!important}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button:nth-child(n){border-image-source:var(--calendar-panel,var(--frost-panel))!important}
:is(#eventsView,#standingsView) .all-events button[data-tone="red"]{--calendar-panel:var(--frost-panel-red,var(--frost-panel))}
:is(#eventsView,#standingsView) .all-events button[data-tone="green"]{--calendar-panel:var(--frost-panel-green,var(--frost-panel))}
:is(#eventsView,#standingsView) .all-events button[data-tone="gold"]{--calendar-panel:var(--frost-panel-gold,var(--frost-panel))}
:is(#eventsView,#standingsView) .all-events button[data-tone="ice"]{--calendar-panel:var(--frost-panel)}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button:disabled{opacity:.87!important}
.elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events button strong{color:#213a2e!important;text-shadow:0 1px #ffffff90}
.elf-w3.elf-frost-ui #raceDialog.results-active .race-head #raceTitle{font:750 clamp(12px,3.5vw,19px)/1.12 system-ui,sans-serif!important;color:#23415d!important}
.elf-w3.elf-frost-ui #raceDialog.results-active .race-head #raceType{font:650 clamp(8px,2.1vw,10px)/1.1 system-ui,sans-serif!important;color:#426882!important}
.elf-w3.elf-frost-ui #raceDialog .race-results .race-result-stats{border-image-source:var(--frost-panel-green,var(--frost-panel))!important}
.elf-w3.elf-frost-ui #raceDialog .race-results .race-result-board{border-image-source:var(--frost-panel-gold,var(--frost-panel))!important}
.race-result-hero #raceResultsTitle{display:none}
@media(max-width:420px){.elf-w3.elf-frost-ui .masthead #heroHow{padding-inline:7px!important}.elf-w3.elf-frost-ui #standingsView #overallTable{padding-inline:9px!important}#overallTable th,#overallTable td{padding-inline:3px!important}}

/* Shared race settings */
#sharedRaceSettingsDialog{position:fixed;inset:0;margin:auto;width:min(90vw,370px);max-width:calc(100vw - 20px);max-height:90dvh;border:0;background:transparent;padding:0;overflow:visible;color:#23415d}
#sharedRaceSettingsDialog::backdrop{background:#102b46c2;backdrop-filter:blur(2px)}
.elf-frost-ui #sharedRaceSettingsDialog .shared-settings-panel{border:1px solid transparent;border-image:var(--frost-panel) 60 52 48 52 fill / 28px 23px 23px 23px / 0 stretch;background:transparent;padding:25px 20px 22px;display:grid;gap:15px;filter:drop-shadow(0 6px 12px #081f3866)}
.shared-settings-header{display:flex;align-items:center;justify-content:center;position:relative;min-height:44px;padding:0 44px}
.shared-settings-header h2{font:700 25px/1 Fredoka,system-ui,sans-serif;margin:0}
.elf-frost-ui #sharedSettingsClose,.elf-frost-ui #eventDialog[data-settings-help="true"] #entryHelpClose{border:1px solid transparent!important;border-image:var(--frost-red) 40 40 32 40 fill / 11px 12px 10px 12px / 0 stretch!important;border-radius:0!important;background:transparent!important;color:white!important;font:800 26px/1 system-ui,sans-serif!important;padding:4px 9px 8px!important;width:42px!important;height:44px!important;min-height:44px!important;cursor:pointer}
#sharedSettingsClose{position:absolute;right:0;top:0}
.elf-frost-ui #sharedHowTo{width:100%;min-height:50px;font-size:17px}
.shared-sound-row{display:grid;grid-template-columns:38px minmax(0,1fr) 26px;align-items:center;gap:11px;min-height:56px;padding:9px 12px;border:1px solid #93b5cd;border-bottom:3px solid #6699b7;border-radius:11px;background:linear-gradient(#f8fdff,#cfe6f4);cursor:pointer;font:700 16px/1.2 Fredoka,system-ui,sans-serif;color:#23415d}
.shared-sound-row svg{width:30px;height:30px;display:block;color:#246440}.shared-sound-row strong{font:750 16px/1.2 system-ui,sans-serif;color:#246440;margin-left:4px}.shared-sound-row input{width:24px;height:24px;margin:0;accent-color:#246440;cursor:pointer}
#sharedSpeakerWaves[hidden],#sharedSpeakerMute[hidden]{display:none!important}
#raceDialog.shared-settings-active #raceFrame{visibility:hidden!important}
#eventDialog[data-settings-help="true"] .entry-footer{display:none!important}
#eventDialog[data-settings-help="true"] .entry-heading{position:relative;padding-top:4px}
.elf-frost-ui #eventDialog[data-settings-help="true"] #entryHelpClose:not([hidden]){position:absolute;right:0;top:0;z-index:5;display:grid;place-items:center}
#eventDialog[data-settings-help="true"] #entryHelpClose[hidden]{display:none!important}
#eventDialog[data-settings-help="true"] #eventEyebrow{padding-inline:46px}

/* Approved event sprite sheet: 6 columns x 4 rows, padded square cells. */
.event-sprite{display:none;width:100%;height:100%;aspect-ratio:1;flex:none;background-image:url("./elflympics-icons-atlas.png");background-repeat:no-repeat;background-size:600% 400%;background-position:var(--event-sprite-x) var(--event-sprite-y)}
html.event-sprites-ready .event-sprite{display:block}
html.event-sprites-ready .event-glyph-fallback{display:none!important}
html.event-sprites-ready .elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events .tile-emblem,
html.event-sprites-ready .elf-w3.elf-frost-ui #homeView .clubhouse-today .clubhouse-event-mark,
html.event-sprites-ready .elf-w3.elf-frost-ui .event-emblem,
html.event-sprites-ready .elf-w3.elf-frost-ui .entry-emblem,
html.event-sprites-ready .elf-w3.elf-frost-ui .race-result-emblem{background:transparent!important;border-color:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important;overflow:visible}
html.event-sprites-ready .elf-w3.elf-frost-ui :is(#eventsView,#standingsView) .all-events .tile-emblem{width:clamp(54px,17vw,90px)!important;height:clamp(54px,17vw,90px)!important;flex-shrink:0}
html.event-sprites-ready .elf-w3.elf-frost-ui #homeView .clubhouse-today .clubhouse-event{grid-template-columns:64px minmax(0,1fr)}
html.event-sprites-ready .elf-w3.elf-frost-ui #homeView .clubhouse-today .clubhouse-event-mark{width:64px;height:64px}
html.event-sprites-ready .elf-w3.elf-frost-ui .race-result-emblem{width:70px;height:70px}
@media(max-width:600px){html.event-sprites-ready .elf-w3.elf-frost-ui .race-result-emblem{width:54px;height:54px}}

/* Shared event leaderboard: fit the actual panel, including phone widths. */
.elf-w3.elf-frost-ui #boardDialog{box-sizing:border-box;width:min(680px,calc(100% - 16px));max-width:calc(100% - 16px);min-width:0;overflow-x:hidden}
.elf-w3.elf-frost-ui #boardDialog .modal{width:100%;min-width:0;max-width:100%;padding-inline:clamp(9px,3vw,24px);box-sizing:border-box}
.elf-w3.elf-frost-ui #eventTable.table-wrap{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;padding:0!important;border:1px solid #b4ccdc!important;border-image:none!important;border-radius:10px!important;background:#f3f9fd!important}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) table{width:100%!important;max-width:100%;min-width:0!important;table-layout:fixed!important;border-collapse:collapse;font:500 clamp(11px,3.2vw,15px)/1.25 Fredoka,system-ui,sans-serif}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) :is(th,td){min-width:0;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;padding:7px clamp(2px,1vw,8px)!important;vertical-align:middle;text-align:center;box-sizing:border-box;color:#23415d!important}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) th{font:600 clamp(10px,2.8vw,13px)/1.2 Fredoka,system-ui,sans-serif!important;background:#c5e0f0!important;text-transform:none!important;letter-spacing:0!important}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) th:nth-child(1){width:16%}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) th:nth-child(2){width:42%}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) th:nth-child(3){width:22%}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) th:nth-child(4){width:20%}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) :is(th,td):nth-child(2){text-align:left}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) td:nth-child(n+3){font-variant-numeric:tabular-nums}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) td{border-bottom:1px solid #b4ccdc!important}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) tr:last-child td{border-bottom:0!important}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) tr.me{background:#d4e9f5!important}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) .rank-cell{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px;min-width:0}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) .rank-cell .elf-icon{width:clamp(15px,5vw,23px);height:clamp(15px,5vw,23px);flex:none}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable) .rank-cell .tie-mark{width:12px;height:12px;flex:none}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable,#overallTable) .avatar-name{min-width:0;max-width:100%;gap:4px}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable,#overallTable) .avatar-name>span:last-child{min-width:0;overflow-wrap:anywhere}
.elf-w3.elf-frost-ui :is(#eventTable,#raceResultsTable,#overallTable) .avatar-name :is(.competitor-avatar,.elf-icon){width:clamp(19px,6vw,32px);height:clamp(19px,6vw,32px);flex:none}
.elf-w3.elf-frost-ui #raceResultsTable.table-wrap{overflow:hidden}
#standingsInfo:empty{display:none}
#leaderboardEvents .empty{grid-column:1/-1}
@media(max-width:380px){.elf-w3.elf-frost-ui #boardDialog .modal{padding-inline:9px}.elf-w3.elf-frost-ui #leaderboardEvents small{font-size:11px!important}}

/* Competitor profile V7: compact identity, controls and warm family clubhouse. */
.elf-w3.elf-frost-ui #profileContent{display:grid;gap:12px;max-width:560px;margin:0 auto;min-width:0}
.elf-w3.elf-frost-ui #profileView .profile-card{margin:0;min-width:0;max-width:100%;padding:24px 16px 15px!important}
.elf-w3.elf-frost-ui #profileView .competitor-card{display:grid;gap:12px}
.competitor-identity{display:flex;align-items:center;gap:15px;min-width:0;padding:0 2px 3px}
.competitor-circle{position:relative;width:clamp(76px,22vw,112px);aspect-ratio:1;display:grid;place-items:center;flex:none}
.competitor-circle .competitor-avatar,.competitor-circle .elf-icon{width:100%;height:100%;object-fit:contain;border-radius:50%;flex:none}
.competitor-circle .family-crown{position:absolute;left:-4px;top:-3px;width:29px;height:26px;filter:drop-shadow(0 1px 2px #573509)}
.elf-w3.elf-frost-ui #profileView .competitor-title{margin:0;min-width:0;font:650 clamp(21px,6vw,32px)/1.12 Fredoka,ui-rounded,system-ui,sans-serif!important;color:#214b3b!important;overflow-wrap:anywhere}
.competitor-actions{display:grid;gap:6px;min-width:0}
.elf-w3.elf-frost-ui #profileView .competitor-actions .profile-action{width:100%;min-height:43px!important;padding:9px 10px 12px!important;font:600 15px/1.15 Fredoka,ui-rounded,system-ui,sans-serif!important}
.elf-w3.elf-frost-ui #profileView .competitor-actions .profile-name-details{margin:0;min-width:0;border:0;background:transparent}
.elf-w3.elf-frost-ui #profileView .competitor-actions .profile-action-summary{min-height:43px;display:flex;justify-content:center;align-items:center;position:relative;text-align:center;padding:9px 25px 11px;background:#e8f3ec;border:1px solid #80aa94;border-radius:9px;color:#234a37;font:600 15px/1.15 Fredoka,ui-rounded,system-ui,sans-serif}
.competitor-actions .profile-name-details summary:after{position:absolute;right:12px;font-size:15px}
.elf-w3.elf-frost-ui #profileView .competitor-actions .profile-edit{margin:3px 0 0;border:1px solid #aacbb8;border-radius:9px;background:#f4fbf6;padding:10px}
.elf-w3.elf-frost-ui #profileView .clubhouse-profile-card{background:transparent!important;border:1px solid transparent!important;border-image:var(--frost-panel-gold,var(--frost-panel)) 60 52 48 52 fill / 22px 18px 17px 18px / 0 stretch!important;filter:drop-shadow(0 3px 4px #74532d30)}
.elf-w3.elf-frost-ui #profileView .clubhouse-profile-card .profile-heading{font:650 22px/1.15 Fredoka,ui-rounded,system-ui,sans-serif!important;color:#65431e!important;margin:0 0 8px}
.clubhouse-profile-actions{display:grid;gap:6px}
.elf-w3.elf-frost-ui #profileView .clubhouse-profile-actions button{margin:0;min-height:44px!important;font:600 15px/1.15 Fredoka,ui-rounded,system-ui,sans-serif!important;padding:9px 10px 13px!important}
.elf-w3.elf-frost-ui #profileView .clubhouse-switch{border:1px solid transparent!important;border-image:var(--frost-gold-button,var(--frost-button)) 40 40 32 40 fill / 12px 13px 11px 13px / 0 stretch!important;background:transparent!important;color:#65431e!important}
.profile-session-actions{text-align:center;margin:0;min-height:26px}
.elf-w3.elf-frost-ui #profileView .profile-session-actions #signOut{font:500 13px Fredoka,system-ui,sans-serif!important;min-height:30px;padding:4px 12px;color:#34556b}
@media(max-width:380px){.competitor-identity{gap:10px}.elf-w3.elf-frost-ui #profileView .profile-card{padding-inline:12px!important}}

/* V8: every profile button uses the same original frost sprite and slice geometry. */
.elf-w3.elf-frost-ui #profileView .competitor-actions .profile-action,.elf-w3.elf-frost-ui #profileView .clubhouse-profile-actions button{width:100%;min-height:46px!important;height:46px;border:1px solid transparent!important;border-image:var(--frost-button) 40 40 32 40 fill / 12px 13px 11px 13px / 0 stretch!important;background:transparent!important;color:#23415d!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important;display:flex;align-items:center;justify-content:center;padding:8px 8px 11px!important;font:600 15px/1.15 Fredoka,ui-rounded,system-ui,sans-serif!important}
.elf-w3.elf-frost-ui #profileView .clubhouse-profile-actions .clubhouse-switch{border-image-source:var(--frost-gold-button,var(--frost-button))!important;color:#65431e!important}
.elf-w3.elf-frost-ui #profileView .clubhouse-profile-actions .clubhouse-switch:hover{border-image-source:var(--frost-gold-hover,var(--frost-hover))!important}
.elf-w3.elf-frost-ui #profileView .competitor-actions #profileNameDetails{margin:0;border:0;background:transparent}
