/* Shared broadcast surface. The route modules keep their business controls. */
:root {
  --bg: #080e13;
  --bg-deep: #05090d;
  --panel: rgba(24, 34, 43, .84);
  --panel-2: rgba(32, 45, 56, .88);
  --panel-soft: rgba(24, 34, 43, .7);
  --line: rgba(173, 201, 217, .18);
  --text: #f2f6f8;
  --muted: #bac8d1;
  --muted-2: #92a8b5;
  --cyan: #3ed9e6;
  --orange: #ff782e;
  --radius: 7px;
  --radius-sm: 4px;
  --shadow: 0 12px 35px rgba(0, 0, 0, .13);
  --concept-gutter: clamp(20px, 3.3vw, 56px);
}
body { background: #080e13; color: var(--text); font-family: "Microsoft YaHei UI", "Noto Sans SC", "PingFang SC", sans-serif; }
.app-shell-v2, .hub-shell-v2 {
  background: linear-gradient(180deg, rgba(6, 12, 17, .88), rgba(7, 13, 18, .96) 640px), url('/assets/racing-track-night.png') center 150px / 1800px auto no-repeat;
}
.app-shell-v2:not(.is-committee-home) .page-container,
.hub-shell-v2 .hub-page-container:has(> .page-header),
.hub-shell-v2 .hub-page-container:has(> .account-center),
.hub-shell-v2 .hub-page-container:has(> .auth-layout) {
  width: min(100%, 1640px); margin: 0 auto; padding: 28px var(--concept-gutter) 48px;
}
#page-root, #page-root > *, .card, .soft-card, .modal-body { min-width: 0; }
.page-header { flex-wrap: wrap; align-items: center; gap: 15px 22px; }
.page-header h1 { font-weight: 900; letter-spacing: -.045em; line-height: 1.2; overflow-wrap: anywhere; }
.page-header-actions { max-width: none; min-width: 0; justify-content: flex-start; gap: 8px; }
.page-container > .page-header,
.hub-page-container > .page-header,
.race-challenge > .page-header {
  position: relative; isolation: isolate; min-height: 122px; padding: 23px 26px; margin-bottom: 20px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 4px;
  background: linear-gradient(95deg, rgba(15, 24, 32, .96), rgba(15, 24, 32, .85) 60%, rgba(18, 34, 45, .62)), url('/assets/racing-track-night.png') 65% 56% / cover;
}
.kicker { color: #65dce5; font-size: 10px; letter-spacing: .2em; }
.page-subtitle { max-width: 70ch; color: #afc0cb; font-size: 13px; line-height: 1.65; }
.card, .soft-card {
  border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(125deg, rgba(30, 42, 51, .84), rgba(14, 25, 33, .86)); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.card-pad { padding: clamp(20px, 2.2vw, 28px); }
.card + .card, .section-gap { margin-top: 18px; }
.card-header { gap: 12px 20px; margin-bottom: 17px; flex-wrap: wrap; }
.card-header h2, .section-title { font-size: 19px; font-weight: 850; line-height: 1.3; }
.card-header h2::before { content: ''; display: inline-block; width: 3px; height: 17px; margin-right: 9px; background: var(--orange); vertical-align: -2px; }
.card-header p, .section-note, .security-note { font-size: 12px; line-height: 1.7; }
.btn, .icon-button { border-radius: 4px; }
.btn { min-height: 43px; font-size: 13px; }
.btn-small { min-height: 34px; font-size: 12px; }
.btn-primary { color: #111820; background: linear-gradient(110deg, #ff8b36, #ff6b20); border-color: #ff8738; box-shadow: 0 5px 18px rgba(255, 103, 31, .12); }
.btn-secondary { color: #daedf3; border-color: rgba(135, 185, 209, .31); background: rgba(45, 67, 82, .58); }
.btn-ghost { color: #bbccd6; background: rgba(6, 15, 22, .34); border-color: rgba(153, 186, 203, .26); }
.status-chip, .rank-pill { border-radius: 4px; font-size: 11px; }
.admin-tip, .security-note, .danger-note { border-radius: 5px; font-size: 12px; }
.admin-tip { flex-wrap: wrap; gap: 8px 12px; }
.input, .select, .textarea, .account-search { border-radius: 4px; border-color: rgba(163, 192, 208, .27); background: rgba(7, 16, 23, .48); }
.input, .select { min-height: 44px; font-size: 14px; }
.textarea { font-size: 14px; line-height: 1.65; }
.field-label { color: #d5e1e8; font-size: 13px; }
.field small, .switch-row small { font-size: 12px; line-height: 1.6; }
.field, .field > div, .form-grid > *, .form-grid-3 > * { min-width: 0; }
.form-actions, .modal-actions, .admin-action-bar, .manage-actions { flex-wrap: wrap; gap: 8px; }
.form-grid, .form-grid-3 { gap: 15px; }
.switch-row { min-height: 62px; border-color: var(--line); }
.table-wrap { border-radius: 4px; border-color: var(--line); scrollbar-width: thin; }
.data-table { font-variant-numeric: tabular-nums; }
.data-table th { padding: 13px 16px; color: #8faab9; font-size: 12px; background: rgba(6, 17, 24, .6); }
.data-table td { padding: 14px 16px; color: #dce6ec; font-size: 14px; border-color: rgba(173, 201, 217, .1); }
.data-table tr:nth-child(even) td { background: rgba(211, 235, 245, .02); }
.data-table tr:hover td { background: rgba(62, 217, 230, .045); }
.loading-state, .empty-state { padding: 38px 24px; }
.empty-state p { font-size: 13px; }
.empty-icon { width: 49px; height: 49px; margin-bottom: 13px; border-radius: 6px; font-size: 22px; }
.modal-overlay { background: rgba(3, 8, 12, .76); backdrop-filter: blur(9px); }
.modal { border-color: rgba(169, 204, 221, .28); border-radius: 8px; background: linear-gradient(135deg, rgba(28, 41, 51, .96), rgba(9, 20, 28, .98)); }
.modal-header { padding: 21px 24px 17px; }
.modal-header p { font-size: 12px; }
.modal-body { padding: 22px 24px 25px; }
.modal-section-title { color: #79dce5; font-size: 13px; }

/* Hero and focus panels reveal the track through restrained glass surfaces. */
.race-home-focus-active, .race-home-data, .race-home-live, .race-home-news, .race-home-module {
  background: linear-gradient(125deg, rgba(31, 46, 56, .81), rgba(12, 24, 33, .84)); backdrop-filter: blur(10px);
}
.race-home-editorial, .race-home-lower { grid-template-columns: minmax(0, 1.8fr) minmax(345px, 1fr); align-items: start; }
.race-home-side { grid-template-rows: auto auto; }
.race-home-focus { min-height: 300px; }
.race-home-focus-idle { min-height: 300px; }
.race-home-focus-context { margin-top: 20px; }
.race-focus-scroll { max-height: 285px; }
.race-focus-player { min-height: 54px; gap: 10px; }
.race-focus-player-name strong, .race-leader-name strong { font-size: 13px; }
.race-focus-player-name small, .race-leader-name small { font-size: 11px; }
.race-home-module { min-height: 106px; padding: 18px; }
.race-home-module strong { margin-top: 14px; font-size: 16px; }
.race-home-module small { font-size: 11px; }
.race-home-news-card { background: rgba(21, 35, 44, .65); }
.race-home-news-card p { font-size: 12px; }
.race-home-join { min-height: 245px; }
.race-home-phases { background: linear-gradient(180deg, rgba(18, 30, 39, .88), rgba(9, 20, 28, .86)); }

/* Result boards retain horizontal scroll locally instead of stretching the page. */
.race-competition .group-card, .race-competition .competition-overview, .race-competition .competition-final-panel {
  background: linear-gradient(130deg, rgba(28, 41, 51, .8), rgba(10, 23, 32, .84)); backdrop-filter: blur(10px);
}
.race-competition .group-head { background: rgba(37, 55, 69, .62); }
.race-competition .entrant-table-head, .race-competition .entrant-row {
  grid-template-columns: minmax(175px, 1.5fr) repeat(var(--score-count, 1), minmax(42px, .45fr)) 48px 44px minmax(55px, .5fr);
  min-width: max(100%, calc(350px + var(--score-count, 1) * 52px)); padding-inline: 13px; gap: 7px;
}
.race-competition .entrant-row { min-height: 58px; }
.race-competition .entrant-player { gap: 8px; }
.race-competition .entrant-player strong { font-size: 12px; }
.race-competition .entrant-player-copy > span { font-size: 10px; }
.race-competition .entrant-player .driver-identity-visual { display: inline-flex; align-items: center; overflow: visible; margin-top: 0; }
.race-competition .entrant-player .driver-level-badge { flex: none; }
.race-competition .entrant-player .driver-level-badge > span { margin-top: 0; overflow: visible; }
.race-competition .entrant-player .driver-level-name { display: none; }
.race-competition .entrant-player .avatar-fallback { margin-top: 0; font-size: 12px; }
.race-competition .competition-stage-head { padding-inline: 5px; }
.race-competition .competition-board, .race-competition .competition-main { min-width: 0; }
.race-competition .group-head .round-summary-controls { flex-wrap: wrap; }
.race-competition .round-tabs { background: rgba(8, 17, 24, .96); }
.race-competition .round-flow .round-tab { max-width: none; }
.race-competition .final-rank-row { background: rgba(32, 47, 57, .55); }

/* Roster and season ranking are editorial lists, with identities kept readable. */
.roster-workspace .card-header { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.roster-workspace .roster-avatar-column { width: 112px; }
.roster-workspace .data-table { min-width: 600px; }
.roster-mobile { gap: 10px; }
.roster-card-mobile { background: rgba(8, 21, 29, .5); border-radius: 5px; }
.player-identity, .account-name-profile { min-width: 0; gap: 12px; }
.leader-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 24px 28px; border-left: 3px solid #f9c866; background: linear-gradient(95deg, rgba(96, 70, 33, .38), rgba(19, 32, 43, .83)), var(--driver-profile-image,url('/assets/racing-track-night.png')) 60% center / cover; }
.leader-card::after { display: none; }
.leader-label { grid-column: 1 / -1; color: #dfb96f; font-size: 10px; }
.leader-name { min-width: 0; margin-top: 0; font-size: clamp(22px, 2.7vw, 36px); }
.leader-points { align-self: center; margin: 0; color: #f3cc89; font-size: 22px; font-variant-numeric: tabular-nums; }
.leaderboard-row-mobile { min-width: 0; border-radius: 5px; background: rgba(10, 23, 31, .58); }
.history-item { padding: 14px; border-radius: 4px; font-size: 12px; }
.history-item > span { line-height: 1.5; }

/* Picks keep their selectable label separate from the driver's experience button. */
.guess-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, .4fr); gap: 18px; }
.guess-side { position: sticky; top: 150px; }
.guess-layout:not(:has(.guess-side .info-list)) { grid-template-columns: 1fr; }
.guess-layout:not(:has(.guess-side .info-list)) .guess-side { position: static; }
.guess-layout:not(:has(.guess-side .info-list)) .guess-side > .card { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.guess-layout:not(:has(.guess-side .info-list)) .guess-side .card-header { margin-bottom: 0; }
.guess-layout:not(:has(.guess-side .info-list)) .guess-side .section-note { margin-top: 0; }
.guess-layout:not(:has(.guess-side .info-list)) .candidate-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.candidate-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.candidate-card { min-width: 0; min-height: 92px; gap: 11px; padding: 15px; border-radius: 5px; background: rgba(7, 21, 30, .5); }
.candidate-card > .driver-identity-visual { flex: none; }
.candidate-choice { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; align-self: stretch; cursor: pointer; }
.candidate-choice:has(input:disabled) { cursor: default; }
.candidate-card:focus-within { border-color: var(--cyan); }
.candidate-choice input:focus-visible ~ .candidate-check { outline: 2px solid var(--cyan); outline-offset: 3px; }
.candidate-copy { flex: 1; min-width: 0; }
.candidate-copy strong { overflow-wrap: anywhere; font-size: 14px; }
.candidate-copy > span { font-size: 11px; line-height: 1.65; }
.candidate-check { flex: none; border-radius: 4px; }
.admin-entry-item { border-radius: 5px; padding: 15px; background: rgba(10, 22, 31, .5); }
.admin-entry-item p { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.admin-entry-identity { min-width: 0; gap: 10px; }
.admin-entry-account strong { font-size: 13px; }
.admin-entry-account span { font-size: 11px; }
.extra-play-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.extra-play-card { min-height: 280px; border-radius: 6px; padding: 28px; background: linear-gradient(100deg, rgba(13, 29, 42, .95), rgba(17, 34, 46, .47)), url('/assets/racing-track-night.png') center / cover; }
.extra-play-challenge { background: linear-gradient(100deg, rgba(57, 36, 23, .91), rgba(11, 26, 37, .59)), url('/assets/racing-hero-night.png') center / cover; }
.extra-play-card-content h2 { font-style: italic; font-size: clamp(29px, 3vw, 42px); }
.extra-play-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }

.race-challenge { display: grid; gap: 18px; }
.race-challenge > * { margin-top: 0; margin-bottom: 0; }
.race-challenge > .page-header { margin-bottom: 0; }
.race-challenge > :is(.card, .soft-card, .section-gap, .admin-tip, .admin-action-bar) { margin: 0; }
.race-challenge .duel-hero { padding: 22px; border-color: rgba(228, 172, 113, .27); background: linear-gradient(100deg, rgba(56, 38, 26, .8), rgba(18, 38, 49, .8)), url('/assets/racing-track-night.png') center / cover; }
.duel-player { min-height: 188px; border-radius: 5px; padding: 20px; background: rgba(6, 16, 24, .4); }
.duel-player .account-avatar { width: 55px; height: 55px; border-radius: 50%; }
.duel-player > span { font-size: 11px; }
.duel-player strong { font-size: 22px; overflow-wrap: anywhere; }
.duel-vs { border: 0; background: none; color: #ffd0a7; font-style: italic; font-size: 30px; }
.game-row { min-height: 64px; border-radius: 4px; background: rgba(8, 19, 27, .47); }
.game-row strong { font-size: 13px; }
.info-key { font-size: 12px; }
.info-value { min-width: 0; font-size: 13px; text-align: right; overflow-wrap: anywhere; }

/* Rules read as documents; reward cards keep image and text at a useful size. */
.content-tabs { gap: 0; padding: 0 4px; border-bottom: 1px solid var(--line); }
.content-tab { height: 47px; min-width: 92px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #afc1cc; font-size: 13px; }
.content-tab.active { color: #52e0e8; border-color: var(--cyan); background: rgba(40, 150, 168, .1); }
.content-list { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }
.content-card-body { padding: 25px 28px; }
.content-meta { font-size: 11px; line-height: 1.6; }
.content-card h3 { margin-top: 8px; color: #f2f7fa; font-size: 21px; line-height: 1.4; overflow-wrap: anywhere; }
.content-body { max-width: 90ch; margin-top: 17px; color: #c3d0d9; font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.content-admin-row { font-size: 12px; }
.content-value { border-radius: 4px; padding: 10px 16px; background: rgba(134, 84, 37, .17); color: #ffc185; }
.content-list:has(.reward-image), .content-list:has(.reward-thumbnail), .content-list:has(.content-value) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }
.reward-thumbnail { width: min(260px, 100%); padding: 10px; border-radius: 4px; border-color: var(--line); background: rgba(6, 17, 24, .45); font-size: 12px; }
.reward-thumbnail img { height: 148px; }
.reward-image { display: block; aspect-ratio: 16 / 9; height: auto; max-height: 330px; object-fit: contain; background: rgba(5, 13, 20, .6); }
.site-announcements { width: min(100% - var(--concept-gutter) * 2, 1440px); padding: 24px 0 48px; }
.site-announcements-head { padding: 20px 26px 24px; border: 1px solid var(--line); border-left: 3px solid var(--orange); background: linear-gradient(95deg, rgba(15, 26, 34, .9), rgba(18, 38, 52, .42)), url('/assets/racing-track-night.png') 68% 55% / cover; }
.site-announcements-head h1 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -.04em; }
.site-announcements-list { gap: 16px; margin-top: 18px; }
.site-announcement { position: relative; padding: 24px 28px; background: linear-gradient(120deg, rgba(28, 43, 53, .83), rgba(12, 24, 32, .85)); backdrop-filter: blur(10px); }
.site-announcement-pinned { border-left: 3px solid #ff9854; }
.site-announcement-head { flex-wrap: wrap; gap: 8px 18px; }
.site-announcement-head h2 { line-height: 1.5; overflow-wrap: anywhere; }
.site-announcement-head time { font-size: 12px; }
.site-announcement p { max-width: 95ch; color: #c7d3db; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }

/* Feedback previously inherited white surfaces; every private view is now on-brand. */
.feedback-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feedback-list-item { position: relative; padding: 20px; border-color: var(--line); border-radius: 5px; background: rgba(13, 27, 37, .72); cursor: default; }
.feedback-list-item:hover { border-color: rgba(91, 193, 211, .46); box-shadow: none; }
.feedback-open-detail { display: flex; width: 100%; justify-content: space-between; gap: 14px; padding: 0; border: 0; background: none; color: #eaf4f8; text-align: left; font: inherit; cursor: pointer; line-height: 1.5; overflow-wrap: anywhere; }
.feedback-open-detail > span { flex: none; color: var(--cyan); }
.feedback-status { border: 1px solid; border-radius: 4px; }
.feedback-status-pending { background: rgba(201, 128, 53, .11); color: #eec08c; border-color: rgba(238, 192, 140, .27); }
.feedback-status-processing { background: rgba(59, 178, 209, .1); color: #83d7e7; border-color: rgba(131, 215, 231, .27); }
.feedback-status-resolved { background: rgba(50, 186, 134, .1); color: #88e2bb; border-color: rgba(136, 226, 187, .27); }
.feedback-list-item > p { color: #a8bfcc; }
.feedback-author, .feedback-author-line, .feedback-list-byline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; min-width: 0; }
.feedback-author strong { font-size: 12px; overflow-wrap: anywhere; }
.feedback-author .account-avatar { width: 28px; height: 28px; }
.feedback-author-line { margin: 13px 0 22px; }
.feedback-author-line time, .feedback-list-byline time { color: #8aa5b6; font-size: 11px; }
.feedback-image, .feedback-upload-preview img { border-color: var(--line); border-radius: 4px; background: rgba(5, 14, 21, .6); }
.feedback-reply { border: 1px solid var(--line); border-radius: 4px; background: rgba(14, 34, 45, .55); }
.feedback-replies, .feedback-manage:not(:empty) { border-color: var(--line); }
.feedback-history { color: #aec4d0; }
.feedback-history-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.feedback-form-error { color: #ffa8a8; }

/* Working surfaces use compact sections, real row spacing and local overflow. */
.race-admin .card { background: linear-gradient(130deg, rgba(37, 50, 61, .83), rgba(23, 35, 45, .87)); }
.race-admin .admin-main-grid .card { background: linear-gradient(130deg, rgba(37, 50, 61, .83), rgba(23, 35, 45, .87)); }
.race-admin .admin-main-grid { align-items: start; }
.race-admin .admin-main-grid .card-header { min-height: 0; }
.race-admin .manage-row, .permission-user-row, .account-card-mobile, .mini-stat, .committee-manage-card { border-radius: 5px; background: rgba(14, 27, 37, .65); }
.race-admin .manage-row { min-height: 74px; }
.race-admin .manage-row h4 { font-size: 15px; }
.race-admin .manage-row p, .admin-module p { font-size: 12px; }
.race-admin .admin-module { min-height: 107px; border-radius: 4px; background: rgba(11, 25, 35, .56); }
.race-admin .admin-module h3 { margin-top: 16px; font-size: 15px; }
.admin-context-card { border-radius: 4px; background: linear-gradient(120deg, rgba(43, 55, 65, .83), rgba(22, 36, 46, .85)); }
.race-admin .admin-jump { background: rgba(9, 20, 29, .95); border-radius: 4px; }
.committee-manage-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr)); gap: 16px; }
.committee-manage-card { padding: 22px; }
.committee-manage-head { gap: 12px; }
.committee-manage-head h3 { font-size: 17px; }
.committee-manage-head p, .committee-manage-desc, .committee-validity-admin span { font-size: 12px; }
.committee-manage-desc { min-height: 0; color: #afc2ce; }
.committee-manage-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 55px; }
.committee-manage-info span { font-size: 10px; border-radius: 4px; background: rgba(39, 58, 71, .46); }
.committee-manage-info strong { font-size: 12px; }
.committee-manage-actions { flex-wrap: wrap; justify-content: flex-start; }
.permission-user-row { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); }
.permission-user-identity { flex-wrap: wrap; }
.permission-user-identity > .driver-identity-visual { flex: none; }
.permission-user-identity > span:not(.driver-identity-visual):not(.account-avatar):not(.status-chip) { flex: 1; min-width: 0; }
.permission-user-identity strong { font-size: 13px; }
.permission-user-identity small, .permission-toolbar span, .permission-check { font-size: 11px; }
.permission-check { border-radius: 4px; min-height: 38px; background: rgba(28, 47, 59, .46); }
.account-stat-grid { gap: 10px; }
.mini-stat { min-height: 87px; padding: 16px; }
.mini-stat span { font-size: 12px; }
.mini-stat strong { font-size: 26px; }
.account-name-cell strong { font-size: 14px; }
.account-name-cell span, .table-subtext { font-size: 11px; }
.account-committee-summary, .account-card-copy p { font-size: 12px; line-height: 1.6; }
.account-card-copy h3 { font-size: 15px; }
.account-detail-grid span { border-radius: 4px; background: rgba(38, 53, 65, .35); }
.account-detail-grid small { font-size: 11px; }
.account-detail-grid b { font-size: 12px; }
.resource-summary { gap: 14px; }
.resource-metric { padding: 22px; border-top: 2px solid rgba(62, 217, 230, .48); }
.resource-runtime-metric { border-radius: 4px; background: rgba(49, 77, 89, .23); }
.pool-category-tabs { gap: 8px; margin: 20px 0; }
.pool-category-tab { min-height: 60px; border-radius: 4px; padding: 13px 16px; background: rgba(22, 40, 52, .55); }
.pool-vehicle-card { border-radius: 5px; background: rgba(12, 25, 34, .73); }
.pool-image-frame { aspect-ratio: 16 / 9; background: radial-gradient(ellipse at center, rgba(55, 75, 89, .51), rgba(8, 18, 25, .75)); }
.pool-vehicle-copy h3 { font-size: 16px; }
.pool-sort-note:empty { display: none; }
.committee-entry-card { backdrop-filter: blur(8px); }
.gateway-summary-item { border-radius: 4px; }
.auth-layout { min-height: 0; padding: 20px 0; }
.auth-card { background: linear-gradient(130deg, rgba(31, 45, 56, .86), rgba(12, 26, 35, .89)); border-radius: 7px; }

@media (max-width: 1180px) {
  .race-home-editorial, .race-home-lower { grid-template-columns: minmax(0, 1.35fr) minmax(315px, 1fr); }
  .race-competition .competition-board { grid-template-columns: minmax(0, 1fr) minmax(250px, .4fr); }
  .race-competition .group-grid { grid-template-columns: 1fr; }
  .guess-layout { grid-template-columns: minmax(0, 1fr) minmax(245px, .44fr); }
  .feedback-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .content-list, .content-list:has(.reward-image), .content-list:has(.reward-thumbnail), .content-list:has(.content-value) { grid-template-columns: 1fr; }
  .permission-user-row { grid-template-columns: 1fr; }
  .permission-committee-list { justify-content: flex-start; }
  .guess-layout { grid-template-columns: 1fr; }
  .guess-side { position: static; }
  .race-admin .admin-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --concept-gutter: 18px; }
  .app-shell-v2:not(.is-committee-home) .page-container,
  .hub-shell-v2 .hub-page-container:has(> .page-header),
  .hub-shell-v2 .hub-page-container:has(> .account-center) { padding: 20px var(--concept-gutter) 36px; }
  .page-container > .page-header, .hub-page-container > .page-header, .race-challenge > .page-header { padding: 19px 20px; min-height: 0; }
  .page-header h1 { font-size: 27px; }
  .page-header-actions { width: 100%; max-width: none; }
  .page-header-actions .btn { min-height: 38px; padding-inline: 11px; font-size: 12px; white-space: normal; }
  .page-subtitle { font-size: 12px; }
  .card-pad, .resource-panel, .resource-global, .committee-manage-card { padding: 20px; }
  .card-header h2, .section-title { font-size: 18px; }
  .race-home-editorial, .race-home-lower { grid-template-columns: 1fr; align-items: stretch; margin-inline: 18px; gap: 14px; }
  .guess-layout:not(:has(.guess-side .info-list)) .guess-side > .card { display: block; }
  .guess-layout:not(:has(.guess-side .info-list)) .guess-side .card-header { margin-bottom: 12px; }
  .race-home-focus, .race-home-focus-idle { min-height: 210px; padding: 20px; }
  .race-home-data, .race-home-news { padding: 20px; }
  .race-home-live { padding: 15px 20px; }
  .race-home-hero { padding-inline: 18px; }
  .race-home-hero-content { padding: 20px; background: rgba(27, 42, 53, .82); backdrop-filter: blur(10px); }
  .race-home-phases { padding-inline: 18px; }
  .race-home-join { min-height: 190px; padding: 20px; }
  .race-home-modules { margin-inline: 18px; }
  .race-home-module:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .race-home .event-poster-section, .race-home .event-poster-empty, .race-home-admin-note { margin-inline: 18px; }
  .race-competition .competition-board { grid-template-columns: 1fr; }
  .race-competition .entrant-table-head { display: none; }
  .race-competition .entrant-row { display: flex; flex-wrap: wrap; min-width: 0; gap: 10px 14px; padding: 15px 16px; }
  .race-competition .entrant-player { flex: 1 0 100%; gap: 12px; }
  .race-competition .entrant-player strong { font-size: 14px; }
  .race-competition .entrant-player-copy > span { font-size: 11px; }
  .race-competition .score-cell { flex: 1 1 58px; text-align: left; }
  .race-competition .score-cell label { display: block; color: #8ea9b9; font-size: 11px; }
  .race-competition .score-box { font-size: 14px; text-align: left; }
  .race-competition .entrant-total, .race-competition .entrant-place { flex-basis: 50px; text-align: left; font-size: 16px; }
  .race-competition .entrant-actions { margin-left: auto; }
  .roster-card-mobile { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px; }
  .roster-card-mobile > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  .roster-card-mobile > div:last-child .btn { margin-top: 0; }
  .roster-card-mobile h3 { font-size: 14px; }
  .roster-card-mobile p { font-size: 11px; }
  .leaderboard-row-mobile { grid-template-columns: 32px auto minmax(0, 1fr) auto; gap: 9px; padding: 13px; }
  .leaderboard-row-mobile h3 { font-size: 14px; }
  .leaderboard-row-mobile p { font-size: 11px; }
  .mobile-row-actions { grid-column: 2 / -1; justify-content: flex-end; }
  .content-card-body { padding: 21px; }
  .content-card h3 { font-size: 19px; }
  .content-body { font-size: 14px; }
  .site-announcements { padding-top: 20px; }
  .site-announcements-head, .site-announcement { padding: 21px; }
  .site-announcement-head h2 { font-size: 19px; }
  .committee-manage-head { grid-template-columns: 42px minmax(0, 1fr); }
  .committee-manage-head > .status-chip { grid-column: 2; justify-self: start; }
  .committee-manage-actions .btn { flex: 1 1 auto; }
  .account-card-head { flex-wrap: wrap; gap: 12px; }
  .account-card-head > .driver-identity-visual { flex: none; }
  .account-card-head .chip-stack { flex-basis: 100%; }
  .account-toolbar { gap: 9px; }
  .modal-overlay { padding: 16px; }
  .modal { max-height: calc(100dvh - 32px); }
  .modal-header { padding: 19px 20px 16px; }
  .modal-body { padding: 20px; }
}
@media (max-width: 600px) {
  .leader-card { grid-template-columns: 1fr; gap: 12px; padding: 21px; }
  .leader-points { margin-left: 0; font-size: 21px; }
  .duel-hero { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 8px; }
  .race-challenge .duel-hero { padding: 14px; }
  .duel-player { min-height: 178px; padding: 13px 7px; gap: 8px; }
  .duel-player strong { font-size: 15px; }
  .duel-player .account-avatar { width: 36px; height: 36px; }
  .duel-player .driver-identity-visual { gap: 3px; }
  .duel-vs { width: 36px; height: 44px; font-size: 23px; }
  .game-row { grid-template-columns: minmax(0, 1fr) 46px 68px 46px; padding: 12px; gap: 6px; }
  .game-row strong { font-size: 12px; }
  .candidate-card { padding: 14px; }
  .candidate-choice { gap: 8px; }
  .extra-play-card { min-height: 246px; padding: 23px; }
  .feedback-list-item { padding: 18px; }
  .feedback-list-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .feedback-filters .field { flex-basis: calc(50% - 10px); }
  .feedback-filters .field:last-of-type { flex-basis: 100%; }
  .resource-summary { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 65px minmax(0, 1fr) auto; padding: 12px; }
  .pool-category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pool-category-tab strong { font-size: 13px; white-space: normal; }
  .pool-vehicle-grid { gap: 12px; }
  .pool-card-heading { flex-wrap: wrap; }
  .pool-vehicle-copy { padding: 13px; }
  .pool-vehicle-copy h3 { font-size: 14px; }
  .permission-toolbar { flex-wrap: wrap; }
  .permission-toolbar .input { max-width: none; }
  .form-actions .btn, .modal-actions .btn { white-space: normal; }
}
@media (max-width: 380px) {
  :root { --concept-gutter: 16px; }
  .roster-card-mobile { grid-template-columns: auto minmax(0, 1fr); }
  .roster-card-mobile > div:last-child { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .leaderboard-row-mobile { grid-template-columns: 26px auto minmax(0, 1fr); }
  .leaderboard-row-mobile > strong { grid-column: 3; }
  .pool-vehicle-grid { grid-template-columns: 1fr; }
  .race-podium-person .account-avatar { width: 31px; height: 31px; }
  .race-podium-1 .account-avatar { width: 36px; height: 36px; }
  .race-podium-person .driver-level-badge { gap: 2px; padding-inline: 3px; font-size: 9px; }
  .race-podium-person > strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .extra-play-card, .btn, .feedback-list-item { transition: none; }
}
