.app-shell-v2,
.hub-shell-v2 { min-height: 100vh; color: #f4f8fa; background: #08131c; }
.app-shell-v2, .hub-shell-v2 { display: flex; flex-direction: column; }
.app-shell-v2 > .committee-scene, .hub-shell-v2 > .hub-page-container { flex: 1 0 auto; }
.app-shell-v2 .page-container { grid-column: auto; }
.site-header { position: sticky; top: 0; z-index: 80; min-height: 72px; border-bottom: 1px solid rgba(190, 215, 227, .16); background: rgba(8, 17, 24, .97); backdrop-filter: blur(18px); }
.site-header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(22px, 3vw, 52px); width: 100%; min-height: 72px; padding: 0 clamp(18px, 3.7vw, 62px); }
.site-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; white-space: nowrap; }
.site-brand img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.site-brand > span { min-width: 0; max-width: clamp(130px, 20vw, 330px); }
.site-brand strong, .site-brand small { overflow: hidden; text-overflow: ellipsis; }
.site-brand strong { display: block; color: #f8fafb; font-size: 16px; font-weight: 850; letter-spacing: .025em; }
.site-brand small { display: block; margin-top: 2px; color: #8da6b5; font-size: 8px; font-weight: 750; letter-spacing: .3em; }
.site-primary-nav { display: flex; align-self: stretch; align-items: stretch; justify-content: center; gap: clamp(16px, 2vw, 36px); min-width: 0; }
.site-primary-nav > a,
.site-committee-picker > summary { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 100%; border: 0; color: #c6d3da; font-size: 13px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: color .18s ease; }
.site-primary-nav > a:hover,
.site-committee-picker > summary:hover,
.site-primary-nav [aria-current="page"],
.site-committee-picker > .is-current,
.site-committee-picker[open] > summary { color: #ff8845; }
.site-primary-nav [aria-current="page"]::after,
.site-committee-picker > .is-current::after { content: ''; position: absolute; right: 0; bottom: 10px; left: 0; height: 2px; background: #ff7830; }
.site-committee-picker { position: relative; flex: none; }
.site-committee-picker > summary { list-style: none; }
.site-committee-picker > summary::-webkit-details-marker,
.site-admin-menu > summary::-webkit-details-marker { display: none; }
.site-committee-picker > summary span,
.site-admin-menu > summary span { font-size: 17px; line-height: 0; }
.site-committee-list,
.site-admin-list { position: absolute; z-index: 100; top: calc(100% + 1px); left: -15px; min-width: 225px; max-height: min(62vh, 500px); overflow-y: auto; padding: 7px; border: 1px solid rgba(183, 214, 229, .25); border-radius: 5px; background: #11212c; box-shadow: 0 22px 45px rgba(0, 0, 0, .45); }
.site-committee-list a,
.site-admin-list a,
.site-menu-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 39px; padding: 8px 10px; border-radius: 3px; color: #dce8ee; font-size: 12px; white-space: nowrap; }
.site-committee-list a:hover,
.site-admin-list a:hover { background: rgba(55, 213, 229, .12); color: #fff; }
.site-committee-list a span { color: #ff8845; }
.site-menu-empty { color: #9eb2be; }
.site-header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.site-admin-menu { position: relative; }
.site-admin-menu > summary { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid rgba(185, 213, 228, .22); border-radius: 3px; color: #d5e1e6; font-size: 11px; font-weight: 750; white-space: nowrap; list-style: none; cursor: pointer; }
.site-admin-list { right: 0; left: auto; min-width: 165px; }
.site-account-link { display: inline-flex; align-items: center; gap: 9px; min-width: 0; padding-left: 11px; border-left: 1px solid rgba(190, 215, 227, .2); color: #edf3f6; font-size: 11px; font-weight: 750; white-space: nowrap; }
.site-account-link .account-avatar { width: 35px; height: 35px; flex: none; }
.site-account-link > span:not(.account-avatar) { display: block; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.site-logout,
.site-refresh { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #aebec8; cursor: pointer; }
.site-logout:hover,
.site-refresh:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.site-secondary-bar { position: sticky; top: 72px; z-index: 65; border-bottom: 1px solid rgba(132, 176, 197, .2); background: rgba(15, 29, 40, .97); backdrop-filter: blur(16px); }
.site-secondary-inner { display: flex; align-items: center; gap: 24px; min-height: 57px; padding: 0 clamp(18px, 3.7vw, 62px); }
.site-secondary-identity { display: flex; flex: none; align-items: center; gap: 9px; max-width: 230px; padding-right: 24px; border-right: 1px solid rgba(185, 212, 225, .18); }
.site-committee-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.site-committee-copy small { color: #91a6b3; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.site-secondary-identity .site-committee-avatar { width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid rgba(116, 187, 204, .32); font-size: 13px; }
.site-secondary-identity strong { overflow: hidden; color: #dbe6ec; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.site-secondary-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(15px, 1.7vw, 28px); min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.site-secondary-link { position: relative; display: inline-flex; align-items: center; flex: none; color: #94aab8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.site-secondary-link:hover,
.site-secondary-link.active { color: #eaf4f7; }
.site-secondary-link.active::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #3bd9e6; }
.site-secondary-link[hidden] { display: none; }
.site-refresh { margin-left: auto; }
.site-footer { border-top: 1px solid rgba(173, 204, 219, .15); background: linear-gradient(180deg, rgba(16, 29, 39, .65), rgba(5, 13, 20, .9)); }
.site-footer-inner { display: flex; align-items: center; justify-content: center; gap: 14px 26px; width: min(100%, 1500px); margin: 0 auto; padding: 23px clamp(18px, 3.7vw, 62px); color: #859da9; font-size: 11px; line-height: 1.8; }
.site-footer-copyright { max-width: 100%; margin: 0; white-space: pre-line; overflow-wrap: anywhere; text-align: center; }
.site-footer-icp { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding-left: 26px; border-left: 1px solid rgba(159, 199, 219, .18); color: #9cb2bf; }
.site-footer-icp-number { min-width: 0; overflow-wrap: anywhere; }
.site-footer-icp:hover, .site-footer-icp:focus-visible { color: #64d9df; }
.site-footer-icp-arrow { flex: none; font-size: 12px; color: #658898; }
@media(max-width:700px) {
  .site-footer-inner { flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 18px max(18px, env(safe-area-inset-bottom)); font-size: 12px; text-align: center; }
  .site-footer-icp { justify-content: center; width: 100%; min-height: 44px; padding: 8px 6px; border-left: 0; }
}
.race-competition .round-tabs,
.admin-jump { top: 129px; }
[data-admin-section] { scroll-margin-top: 198px; }
.app-shell-v2.is-committee-home .page-container { width: 100%; max-width: none; padding: 0 0 76px; }
.app-shell-v2:not(.is-committee-home) .page-container { width: min(100%, 1500px); }
.hub-shell-v2 .committee-gateway-head { isolation: isolate; background: #060d14; }
.hub-shell-v2 .gateway-hero-art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-shell-v2 .gateway-hero-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(5, 12, 19, .99) 0%, rgba(5, 12, 19, .94) 25%, rgba(5, 12, 19, .66) 46%, rgba(5, 12, 19, .08) 100%), linear-gradient(0deg, rgba(5, 12, 19, .59), transparent 35%); pointer-events: none; }
.hub-shell-v2 .committee-gateway-head::before { z-index: 3; }
.hub-shell-v2 .gateway-hero-content h1 { font-family: "Microsoft YaHei UI", "Noto Sans SC", "PingFang SC", sans-serif; font-size: clamp(42px, 4.9vw, 76px); font-weight: 900; line-height: 1.18; letter-spacing: -.065em; white-space: nowrap; text-shadow: 0 8px 25px rgba(0, 0, 0, .35); }
.hub-shell-v2 .gateway-hero-content h1 .gateway-hero-title-accent { display: inline; background: linear-gradient(120deg, #fff, #e9f5f7); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hub-shell-v2 .gateway-hero-content h1 .gateway-hero-title-accent + span { display: inline; }
.race-home-status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.race-home-status-line .race-home-status { margin: 0 12px 0 0; }
.race-home-feature-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid rgba(108, 220, 229, .35); border-radius: 3px; background: rgba(10, 33, 44, .77); color: #a6dce1; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.race-home-focus-active { background: #101e29; }
.race-focus-head { margin-top: 16px; }
.race-focus-head .race-home-focus-context { margin: 0 0 7px; }
.race-focus-head h3 { margin: 0; color: #f5f9fb; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }
.race-focus-head > p:last-child { margin: 7px 0 0; color: #8faaba; font-size: 12px; }
.race-focus-scroll { display: grid; align-content: start; gap: 0; max-height: 238px; overflow-y: auto; margin-top: 14px; padding-right: 7px; scrollbar-color: #4a6678 transparent; scrollbar-width: thin; }
.race-focus-player { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 6px 3px; border-top: 1px solid rgba(179, 210, 224, .12); }
.race-focus-player .account-avatar { width: 32px; height: 32px; flex: none; }
.race-focus-index { width: 27px; flex: none; color: #df9a66; font-size: 12px; font-style: italic; font-weight: 900; }
.race-focus-player-name { display: grid; min-width: 0; gap: 2px; }
.race-focus-player-name strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.race-focus-player-name small { color: #8ea5b3; font-size: 10px; }
.race-focus-player > b { margin-left: auto; color: #edcf9a; font-size: 14px; white-space: nowrap; }
.race-focus-player > b small { color: #8ea5b3; font-size: 10px; font-weight: 650; }
.race-focus-empty { margin: 12px 0; color: #93a9b6; font-size: 12px; }
.race-focus-groups { gap: 9px; }
.race-focus-group { padding: 10px 12px; border: 1px solid rgba(149, 189, 211, .16); border-radius: 4px; background: rgba(12, 26, 36, .73); }
.race-focus-group header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 3px; }
.race-focus-group header strong { color: #d6e8ed; font-size: 12px; }
.race-focus-group header span { color: #7f9bac; font-size: 11px; }
.race-focus-group .race-focus-player { min-height: 41px; }
.race-focus-group .race-focus-player:last-child { padding-bottom: 0; }
.race-home-focus-active .race-home-focus-bottom { margin-top: auto; padding-top: 14px; }
.race-home-data .race-panel-heading { align-items: flex-start; }
.race-home-data .race-panel-heading h2 { font-size: 18px; }
.race-leader-full { flex: none; padding: 3px 0; border: 0; background: transparent; color: #b8cad4; font-size: 11px; font-weight: 800; cursor: pointer; }
.race-leader-full:hover { color: #53dce8; }
.race-leader-list { margin-top: 12px; }
.race-leader-row { display: flex; align-items: center; gap: 8px; min-height: 43px; border-top: 1px solid rgba(197, 220, 234, .13); }
.race-leader-row .account-avatar { width: 30px; height: 30px; flex: none; }
.race-leader-rank { width: 26px; flex: none; color: #aabcc6; font-size: 14px; font-style: italic; font-weight: 900; }
.race-leader-top-1 { color: #ffc275; }
.race-leader-top-2 { color: #c7d9e2; }
.race-leader-top-3 { color: #d19b75; }
.race-leader-name { display: grid; min-width: 0; gap: 1px; }
.race-leader-name strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.race-leader-name small { overflow: hidden; color: #829ba9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.race-leader-score { display: flex; align-items: baseline; gap: 2px; margin-left: auto; color: #ff965a; }
.race-leader-score strong { font-size: 16px; }
.race-leader-score small { font-size: 10px; }
.race-leader-modal-list { max-height: min(68vh, 650px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.race-leader-modal-list .race-leader-row { min-height: 53px; }
.race-leader-modal-list .race-leader-name strong { font-size: 13px; }

.site-announcements { width: min(100% - 36px, 1200px); margin: 0 auto; padding: 40px 0 80px; }
.site-announcements-head { padding: 26px 0 30px; border-bottom: 1px solid rgba(186, 211, 225, .2); }
.site-announcements-head span { color: #48d9e5; font-size: 11px; font-weight: 850; letter-spacing: .2em; }
.site-announcements-head h1 { margin: 9px 0 5px; font-size: clamp(32px, 4vw, 50px); }
.site-announcements-head p { margin: 0; color: #a7b9c4; font-size: 13px; }
.site-announcements-list { display: grid; gap: 12px; margin-top: 22px; }
.site-announcement { padding: 22px 24px; border: 1px solid rgba(170, 202, 219, .17); border-radius: 5px; background: #12212c; }
.site-announcement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.site-announcement-head h2 { margin: 0; font-size: 20px; }
.site-announcement-head time { color: #819aa9; font-size: 11px; white-space: nowrap; }
.site-announcement-pin { display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 2px; background: #ab4f25; color: #fff; font-size: 10px; vertical-align: 2px; }
.site-announcement p { margin: 13px 0 0; color: #b7c7d0; font-size: 14px; line-height: 1.7; }
.site-announcement a { display: inline-block; margin-top: 14px; color: #56dce7; font-size: 12px; font-weight: 750; }

@media (max-width: 1280px) {
  .site-header-main { grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; min-height: 104px; padding-top: 8px; }
  .site-primary-nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 28px; min-height: 44px; }
  .site-primary-nav > a,
  .site-committee-picker > summary { font-size: 12px; }
  .site-primary-nav [aria-current="page"]::after,
  .site-committee-picker > .is-current::after { bottom: 0; }
  .site-secondary-bar { top: 104px; }
  .race-competition .round-tabs,
  .admin-jump { top: 161px; }
  [data-admin-section] { scroll-margin-top: 230px; }
}
@media (max-width: 720px) {
  .site-header-main { padding-inline: 14px; }
  .site-brand img { width: 34px; height: 34px; }
  .site-brand strong { font-size: 12px; }
  .site-brand small { font-size: 7px; letter-spacing: .18em; }
  .site-primary-nav { justify-content: space-between; gap: 8px; }
  .site-primary-nav > a,
  .site-committee-picker > summary { font-size: 11px; }
  .site-admin-menu > summary { max-width: 32px; overflow: hidden; padding: 7px; font-size: 0; }
  .site-admin-menu > summary span { font-size: 14px; }
  .site-account-link { padding-left: 7px; }
  .site-account-link > span:not(.account-avatar) { display: none; }
  .site-logout { width: 27px; }
  .site-committee-list { left: -58px; min-width: min(265px, calc(100vw - 24px)); }
  .site-secondary-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 9px; padding: 5px 14px 0; }
  .site-secondary-identity { grid-column: 1; max-width: none; padding: 3px 0; border: 0; }
  .site-secondary-identity .site-committee-copy small { display: none; }
  .site-secondary-identity .site-committee-avatar { width: 25px; height: 25px; border-radius: 7px; font-size: 10px; }
  .site-secondary-identity strong { font-size: 10px; }
  .site-secondary-nav { grid-row: 2; grid-column: 1 / -1; gap: 19px; min-height: 43px; }
  .site-secondary-link { font-size: 11px; }
  .race-competition .round-tabs,
  .admin-jump { top: 181px; }
  [data-admin-section] { scroll-margin-top: 250px; }
  .site-refresh { grid-row: 1; grid-column: 2; width: 30px; height: 30px; }
  .app-shell-v2 .page-container { padding-bottom: 30px; }
  .site-announcements { padding-top: 20px; }
  .site-announcement { padding: 18px; }
  .site-announcement-head { display: block; }
  .site-announcement-head time { display: block; margin-top: 8px; }
  .hub-shell-v2 .gateway-hero-shade { background: linear-gradient(0deg, rgba(5, 12, 19, .99) 0%, rgba(5, 12, 19, .8) 38%, rgba(5, 12, 19, .13) 100%); }
  .hub-shell-v2 .gateway-hero-content h1 { font-size: clamp(33px, 8.8vw, 58px); }
}


/* RACE: approved continuous circuit, fixed ratio and editable two-line title. */
.site-brand.site-brand-speedline { position: relative; padding: 0; gap: 0; overflow: visible; }
.site-brand > .race-brand-lockup { position: relative; display: block; width: 244px; height: 64px; min-width: 0; max-width: 100%; overflow: visible; }
.site-brand .race-refined-svg { position: absolute; left: 0; top: 2px; width: 138px; height: 60px; object-fit: contain; }
.race-refined-copy { position: absolute; left: 72px; right: 0; top: 13px; display: block; min-width: 0; white-space: nowrap; }
.site-brand .race-refined-copy strong { font-family: 'Segoe UI','Microsoft YaHei',sans-serif; font-size: 17px; line-height: 1.15; font-weight: 700; font-style: normal; letter-spacing: .045em; color: #f3f8f7; text-shadow: none; }
.site-brand .race-refined-copy small { display: block; margin-top: 3px; color: #9fb9bf; font-size: 6.5px; line-height: 1; letter-spacing: .15em; }
.site-brand-english { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.site-brand > .race-custom { display: flex; align-items: center; gap: 11px; }
.site-brand .race-custom .site-brand-logo { position: static; width: 46px; height: 46px; flex: none; }
.site-brand .race-custom .race-refined-copy { position: static; flex: 1; }
.site-account-link > .site-account-name { display: block; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .site-brand > .race-brand-lockup { width: 210px; height: 52px; }
  .site-brand .race-refined-svg { width: 110.4px; height: 48px; top: 2px; }
  .race-refined-copy { left: 57px; top: 10px; }
  .site-brand .race-refined-copy strong { font-size: 13px; line-height: 1.2; letter-spacing: .02em; }
  .site-brand .race-refined-copy small { font-size: 5.5px; line-height: 1; margin-top: 3px; letter-spacing: .15em; }
  .site-brand .race-custom .site-brand-logo { width: 34px; height: 34px; }
  .site-account-link > .site-account-name { max-width: 56px; }
}
@media (max-width: 360px) {
  .site-brand > .race-brand-lockup { width: 196px; }
  .site-brand .race-refined-copy strong { font-size: 12px; }
  .site-header .site-account-identity .site-account-link .site-account-name { max-width: 32px; }
  .site-primary-nav { gap: 4px; }
  .site-primary-nav > a, .site-committee-picker > summary { font-size: 10px; }
}
