/* Shared visual language with the Radical Quality (NCP) application. */
.standings-data-banner.reconstructed{background:#fff4cf;border-color:#d6a600;color:#6f5600}
:root {
    --surface: #ffffff;
    --surface-muted: #efefec;
    --surface-soft: #f8f8f6;
    --ink: #171717;
    --ink-muted: #626262;
    --line: #d7d7d2;
    --accent: #f2cb13;
    --accent-strong: #292929;
    --success: #24845b;
    --warning: #a86418;
    --danger: #b73333;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(24, 33, 47, .08);
    --red: var(--accent);
    --red-dark: #d8b400;
    --soft: var(--surface-muted);
    --green: var(--success);
}

html, body {
    background: var(--surface-muted);
    background-image: none;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

button, input, select, textarea { font-family: inherit; }
a { color: inherit; }

.app-shell.quality-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.quality-shell .sidebar {
    position: sticky;
    top: 0;
    width: auto;
    height: 100vh;
    min-height: 0;
    padding: 16px 14px;
    overflow: hidden;
    background: var(--surface);
    color: var(--ink);
    border-right: 1px solid var(--line);
    box-shadow: none;
}

.quality-shell .brand {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 4px 8px 16px;
    border-bottom: 3px solid var(--accent);
    font-family: Arial, Helvetica, sans-serif;
}

.quality-shell .brand img,
.quality-shell .sidebar-brand-logo {
    display: block;
    width: 166px;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    filter: none;
}

.quality-shell .brand > div { min-width: 0; margin-top: 8px; }
.quality-shell .brand strong { display: block; max-width: 100%; font-size: .8rem; letter-spacing: .035em; white-space: nowrap; }

.quality-shell .season-card {
    margin: 0 0 18px;
    padding: 12px 10px 14px;
    color: var(--ink);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}

.quality-shell .season-card .eyebrow { color: var(--ink-muted); }
.quality-shell .season-card strong {
    font-family: Arial, Helvetica, sans-serif;
    font-size: .86rem;
    letter-spacing: 0;
    text-transform: none;
}

.quality-shell .workspace-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 10px; }
.quality-shell .workspace-form select,
.quality-shell .workspace-form button {
    min-width: 0;
    min-height: 34px;
    padding: 6px 8px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    font: 700 .72rem Arial, Helvetica, sans-serif;
    text-transform: none;
}
.quality-shell .workspace-form button { background: var(--accent); border-color: var(--accent); }

.quality-shell .nav-list,
.quality-shell nav { display: grid; gap: 3px; }
.quality-shell .nav-list {
    align-content: start;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.quality-shell .nav-item,
.quality-shell .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 4px;
    box-shadow: none;
    font: 600 .88rem Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}
.quality-shell .nav-item:hover,
.quality-shell .nav-link:hover { color: var(--ink); background: var(--surface-soft); }
.quality-shell .nav-item.active,
.quality-shell .nav-link.active {
    color: var(--ink) !important;
    background: #fff8d9 !important;
    border-left-color: var(--accent);
    box-shadow: none !important;
}
.quality-shell .nav-icon {
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex: 0 0 16px;
    color: #313131;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.quality-shell .nav-item span { width: auto; color: inherit; font: inherit; text-align: left; }
.quality-shell .championship-nav-group { display:grid; gap:2px; }
.quality-shell .nav-submenu { display:grid; gap:1px; margin:0 0 4px 17px; padding-left:10px; border-left:1px solid #c9cbc7; }
.quality-shell .nav-subitem { min-height:30px; padding:5px 8px; gap:8px; color:var(--ink-muted); border-left-width:2px; font-size:.76rem; font-weight:600; }
.quality-shell .nav-submarker { display:block; width:5px !important; height:5px; flex:0 0 5px; background:#a4a7a2; border-radius:50%; }
.quality-shell .nav-subitem:hover .nav-submarker,.quality-shell .nav-subitem.active .nav-submarker { background:var(--accent-strong); }

.quality-shell .sidebar-footer,
.quality-shell .nav-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: auto 0 0;
    padding: 13px 8px 3px;
    color: var(--ink);
    background: transparent;
    border-top: 1px solid var(--line);
}
.quality-shell .nav-account > div { display: grid; gap: 2px; }
.quality-shell .nav-account strong { font-size: .85rem; }
.quality-shell .nav-account small { margin: 0; color: var(--ink-muted); font-size: .72rem; }
.quality-shell .nav-sign-out { padding: 0; color: var(--ink-muted); background: transparent; border: 0; font-size: .75rem; }
.quality-shell .nav-sign-out:hover { color: var(--ink); text-decoration: underline; }

.quality-shell .workspace { min-width: 0; width: auto; }
.quality-shell .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    margin: 0;
    padding: 18px 26px;
    background: var(--surface);
    border: 0;
    border-bottom: 1px solid var(--line);
}
.quality-shell .topbar::after { display: none; }
.quality-shell .topbar h1 {
    margin: 0;
    color: var(--ink);
    font: 700 1.45rem Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
}
.quality-shell .topbar h1:focus,
.quality-shell .topbar h1:focus-visible { outline: none !important; box-shadow: none !important; }
.quality-shell .topbar > div:first-child > span { display: block; margin-top: 3px; color: var(--ink-muted); font-size: .78rem; }
.quality-shell .content {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 26px;
}
.quality-shell .top-actions { display: flex; align-items: center; gap: 10px; }
.workspace-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 9px;
    color: var(--ink);
    background: #fff8d9;
    border: 1px solid #ead985;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.primary, .secondary, .ghost, .copy, .button,
a.primary, a.secondary, a.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--accent-strong);
    border-radius: 4px;
    clip-path: none;
    box-shadow: none;
    font: 700 .82rem Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}
.primary, .button.primary { color: #171717; background: var(--accent); border-color: var(--accent); }
.primary:hover, .button.primary:hover { color: #171717; background: #e2bd0d; }
.secondary, .button.secondary { color: #fff; background: #292929; border-color: #292929; }
.ghost, .button.ghost { color: var(--ink); background: var(--surface); border-color: var(--line); }
.compact, .button.compact { min-height: 34px; padding: 6px 10px; font-size: .76rem; }
.text-button, .row-action { color: var(--ink); font: 700 .78rem Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; }
.text-button:hover, .row-action:hover { text-decoration: underline; }

.eyebrow {
    margin: 0 0 4px;
    color: var(--accent-strong);
    font: 700 .76rem Arial, Helvetica, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.muted { color: var(--ink-muted); }

.panel, .metric-card, .kpis article, .race-card, .team-card {
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel { padding: 16px; }
.panel h2, .panel h3, .full-heading h2,
.admin-hero h2, .work-hero h2, .global-hero h2 {
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}
.panel h2, .full-heading h2 { font-size: 1.55rem; }
.panel h3 { font-size: 1rem; }
.panel-heading {
    position: static;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
}
.panel-heading::after { display: none; }

.hero {
    min-height: 0;
    margin-bottom: 20px;
    padding: 22px 24px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero::before, .hero::after { display: none; }
.hero-kicker { padding: 0; color: var(--ink-muted); border: 0; font: 700 .76rem Arial, Helvetica, sans-serif; letter-spacing: .04em; }
.hero h2 { margin: 8px 0 10px; color: var(--ink); font: 700 2rem Arial, Helvetica, sans-serif; line-height: 1.12; letter-spacing: 0; text-transform: none; }
.hero h2 em { color: var(--ink); font-style: normal; }
.hero p { color: var(--ink-muted); font-size: .84rem; }
.hero-stat { min-width: 210px; padding: 15px 18px; color: var(--ink); background: var(--surface-soft); border: 0; border-left: 3px solid var(--accent); border-radius: 4px; }
.hero-stat span, .hero-stat p { color: var(--ink-muted); font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
.hero-stat strong { color: var(--ink); font: 700 3rem Arial, Helvetica, sans-serif; }

.kpis { gap: 12px; margin-bottom: 20px; background: transparent; border: 0; }
.kpis article { padding: 16px; border-top: 4px solid var(--accent); }
.kpis article:first-child, .kpis article:nth-child(2), .kpis article:nth-child(3), .kpis article:nth-child(4) { border-top-color: var(--accent); }
.kpis span, .kpis small { color: var(--ink-muted); font: 400 .75rem Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; }
.kpis strong { margin: 5px 0; color: var(--ink); font: 700 1.5rem Arial, Helvetica, sans-serif; line-height: 1.15; }
.quality-shell .kpis .metric-ratio {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-height: 30px;
    margin: 5px 0;
    color: var(--ink);
    line-height: 1;
}
.quality-shell .kpis .metric-ratio span { display: inline; }
.quality-shell .kpis .metric-current { color: var(--ink); font-size: 1.5rem; font-weight: 700; }
.quality-shell .kpis .metric-separator { color: #a0a0a0; font-size: 1rem; font-weight: 400; }
.quality-shell .kpis .metric-total { color: #5d5d5d; font-size: 1.2rem; font-weight: 700; }

.quality-shell .dashboard-funnel { margin: 18px 0; }
.quality-shell .dashboard-funnel div { gap: 5px; padding-top: 7px; }
.quality-shell .dashboard-funnel span {
    color: var(--ink);
    font: 400 .78rem Arial, Helvetica, sans-serif;
}
.quality-shell .dashboard-funnel strong {
    color: var(--ink);
    font: 700 1.35rem Arial, Helvetica, sans-serif;
    line-height: 1.15;
}

.admin-hero, .work-hero, .global-hero, .control-strip {
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-left: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.admin-hero, .work-hero, .global-hero { padding: 22px 24px; }
.admin-hero h2, .work-hero h2, .global-hero h2 { font-size: 1.55rem; }
.control-strip { padding: 18px 20px; }
.control-strip h2 { color: var(--ink); font: 700 1.35rem Arial, Helvetica, sans-serif; }

.work-summary { gap: 12px; background: transparent; }
.work-summary article { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.work-summary article:first-child { border-top-color: var(--accent); }
.work-phase { border-left: 1px solid var(--line); }
.phase-number { color: var(--ink); font-family: Arial, Helvetica, sans-serif; }

.status-board { gap: 10px; background: transparent; border: 0; }
.status-board article { background: var(--surface); border: 1px solid var(--line); border-top-width: 4px; border-radius: var(--radius); box-shadow: var(--shadow); }
.race-card { border-top: 4px solid var(--accent); }
.race-card .car-no, .car-no { color: var(--ink); background: var(--accent); border-radius: 4px; font-family: Arial, Helvetica, sans-serif; }
.activity-grid > div, .definition-grid > div, .integration-node { background: var(--surface-soft); border-left: 3px solid var(--accent); border-radius: 4px; }
.activity-icon { color: var(--ink); background: var(--accent); border-radius: 50%; }
.dashboard-funnel div, .definition-grid > div, .integration-node { border-top-color: var(--accent); }
.score span, .bar i { background: var(--success); }

.pill, .status, .created-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    font: 700 .72rem Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}
.green, .pill.green { color: #176844; background: #dff3ea; }
.amber, .pill.amber { color: #8b5415; background: #f8ead7; }
.blue, .pill.blue { color: #315d82; background: #e5eef5; }
.red, .pill.red { color: #922929; background: #fff0f0; }
.status-dot.green { background: var(--success); }
.status-dot.amber { background: var(--warning); }
.status-dot.red { background: var(--danger); }

.filters input, .filters select, .panel-heading input, .panel-heading select,
.event-toolbar select, .table-wrap select, .compact-input,
.form-grid input, .form-grid select, .form-grid textarea,
.field-label input, .field-label select, .field-label textarea,
.inline-form input, .auth-form input {
    min-height: 38px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    text-transform: none;
}
input:focus, select:focus, textarea:focus { border-color: #b79a0f; outline: 3px solid rgba(242, 203, 19, .24); }
.form-grid label, .field-label, .event-toolbar label, .auth-form label { color: var(--ink); font: 700 .78rem Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; }

.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink-muted); font: 700 .78rem Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { color: var(--ink); font-size: .84rem; }
.table-wrap tr:hover td { background: #fffbea; }
.clickable-record-row { cursor: pointer; }
.clickable-record-row:focus { outline: none; }
.clickable-record-row:focus-visible td { background: #fffbea; box-shadow: inset 0 2px 0 #d5c363, inset 0 -2px 0 #d5c363; }
.clickable-record-row:focus-visible td:first-child { box-shadow: inset 3px 0 0 var(--accent), inset 0 2px 0 #d5c363, inset 0 -2px 0 #d5c363; }

.alert, .restricted-note, .scanner-live { border-left-color: var(--accent); border-radius: 4px; }
.auth-card { border-top: 4px solid var(--accent); }
.demo-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
.demo-account-grid > span { display: grid; gap: 2px; padding: 9px 10px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; }
.demo-account-grid b { font-size: .76rem; }
.demo-account-grid small { color: var(--ink-muted); overflow-wrap: anywhere; }
.mobile-preview { border-radius: 12px; border-left-color: var(--accent); }
.global-ranking span:first-child, .selection-cars span { color: var(--ink); background: var(--accent); }
.admin-tabs { padding: 4px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-tabs button { color: var(--ink); background: transparent; border-radius: 4px; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; }
.admin-tabs button.selected { color: var(--ink); background: var(--accent); }

@media (max-width: 1050px) {
    .app-shell.quality-shell { grid-template-columns: 1fr; }
    .quality-shell .sidebar { position:static; height:auto; min-height:auto; overflow:visible; border-right:0; border-bottom:1px solid var(--line); }
    .quality-shell .brand { grid-template-columns: 180px 1fr; align-items: center; }
    .quality-shell .brand > div { margin: 0; text-align: right; }
    .quality-shell .season-card { margin-bottom: 12px; }
    .quality-shell .nav-list, .quality-shell nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quality-shell .nav-list { overflow:visible; }
    .quality-shell .nav-account { margin-top: 14px; }
    .quality-shell .content { width: auto; margin: 0; padding: 22px; }
    .quality-shell .topbar { margin: 0; padding: 16px 22px; }
}

@media (max-width: 720px) {
    .quality-shell .brand { grid-template-columns: 1fr; }
    .quality-shell .brand > div { text-align: left; }
    .quality-shell .nav-list, .quality-shell nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quality-shell .topbar { align-items: stretch; flex-direction: column; }
    .quality-shell .top-actions { flex-wrap: wrap; }
    .quality-shell .content { padding: 14px; }
    .hero, .global-hero { align-items: stretch; flex-direction: column; }
    .hero-stat { width: 100%; min-width: 0; }
    .kpis, .grid-two, .cards-grid, .definition-grid { grid-template-columns: 1fr; }
    .status-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .quality-shell .nav-list, .quality-shell nav { grid-template-columns: 1fr; }
    .quality-shell .top-actions .ghost { display: none; }
    .demo-account-grid { grid-template-columns: 1fr; }
}

/* Championship manager hierarchy: Year View -> Event View -> record. */
.page-crumbs { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:0 0 12px; color:var(--ink-muted); font-size:.76rem; }
.page-crumbs a { color:var(--ink-muted); text-decoration:none; }
.page-crumbs a:hover { color:var(--ink); text-decoration:underline; }
.page-crumbs > * + *::before { content:'›'; margin-right:7px; color:#aaa; font-weight:400; }
.page-crumbs b { color:var(--ink); }
.year-header,.event-view-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; padding:18px 20px; background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:var(--radius); box-shadow:var(--shadow); }
.year-header h2,.event-view-header h2 { margin:2px 0 5px; font:700 1.45rem Arial,Helvetica,sans-serif; }
.year-header p,.event-view-header p { margin:0; color:var(--ink-muted); font-size:.82rem; }
.status-chip { display:inline-flex; align-items:center; min-height:26px; padding:5px 9px; border-radius:999px; font-size:.72rem; font-weight:700; white-space:nowrap; }
.status-chip.green{color:#176844;background:#dff3ea}.status-chip.blue{color:#315d82;background:#e5eef5}.status-chip.amber{color:#8b5415;background:#f8ead7}
.season-kpis,.event-view-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.season-kpis a,.event-view-kpis a,.event-view-kpis button,.quality-shell .kpis > a { display:grid; gap:4px; min-width:0; padding:14px 15px; color:var(--ink); text-align:left; text-decoration:none; background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:var(--radius); box-shadow:0 5px 18px rgba(24,33,47,.055); }
.event-view-kpis button { cursor:pointer; font-family:inherit; }
.season-kpis a:hover,.event-view-kpis a:hover,.event-view-kpis button:hover,.quality-shell .kpis > a:hover { background:#fffbea; border-color:#d5c363; }
.season-kpis span,.event-view-kpis span,.quality-shell .kpis > a span { color:var(--ink-muted); font-size:.73rem; }
.season-kpis strong,.event-view-kpis strong,.quality-shell .kpis > a strong { overflow:hidden; margin:0; font:700 1.45rem Arial,Helvetica,sans-serif; text-overflow:ellipsis; white-space:nowrap; }
.season-kpis small,.event-view-kpis small,.quality-shell .kpis > a small { overflow:hidden; color:var(--ink-muted); font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.next-round-kpi { border-top-color:var(--accent-strong)!important; }
.dashboard-main-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,.7fr); gap:16px; margin-bottom:18px; }
.standings-table { display:grid; }
.standings-head,.standings-table > a { display:grid; grid-template-columns:42px minmax(130px,1.2fr) minmax(120px,1fr) minmax(80px,.7fr) 62px; align-items:center; gap:10px; min-height:38px; padding:7px 8px; border-bottom:1px solid var(--line); font-size:.78rem; }
.standings-head { min-height:30px; color:var(--ink-muted); font-size:.69rem; font-weight:700; text-transform:uppercase; }
.standings-table > a { color:var(--ink); text-decoration:none; }
.standings-table > a:hover { background:#fffbea; }
.standings-table > a b:last-child { text-align:right; }
.round-focus { display:flex; align-items:center; gap:11px; padding:11px; background:var(--surface-soft); border-left:3px solid var(--accent); }
.round-focus div { display:grid; gap:3px; }
.round-focus small { color:var(--ink-muted); font-size:.7rem; }
.round-number { display:inline-grid; place-items:center; min-width:36px; min-height:32px; padding:4px 6px; color:var(--ink); background:var(--accent); border-radius:4px; font-size:.8rem; font-weight:700; }
.next-round-panel dl { display:grid; grid-template-columns:1fr auto; gap:0; margin:12px 0; }
.next-round-panel dt,.next-round-panel dd { width:auto; margin:0; padding:6px 0; border-bottom:1px solid #ececea; }
.next-round-panel dd { text-align:right; }
.round-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.round-card { display:block; min-width:0; padding:13px; color:var(--ink); text-decoration:none; background:var(--surface-soft); border:1px solid var(--line); border-radius:6px; }
.round-card:hover { background:#fffbea; border-color:#d5c363; }
.round-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.round-card h4 { margin:11px 0 4px; font-size:.93rem; }
.round-card p { min-height:30px; margin:0 0 12px; color:var(--ink-muted); font-size:.7rem; line-height:1.45; }
.round-card > small { display:block; margin-top:7px; color:var(--ink-muted); font-size:.66rem; line-height:1.4; }
.round-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-bottom:10px; }
.round-stats span { display:grid; gap:2px; color:var(--ink-muted); font-size:.65rem; }
.round-stats b { color:var(--ink); font-size:.9rem; }
.round-progress { height:4px; overflow:hidden; background:#ddd; border-radius:4px; }
.round-progress i { display:block; height:100%; background:var(--success); }
.participation-grid { grid-template-columns:1.25fr .75fr; }
.chart-key { color:var(--ink-muted); font-size:.66rem; }
.chart-key i { display:inline-block; width:9px; height:9px; margin:0 3px 0 7px; background:var(--accent-strong); }
.chart-key i.target { background:var(--accent); }
.season-chart { display:flex; align-items:flex-end; gap:12px; height:190px; padding:10px 8px 0; border-bottom:1px solid var(--line); }
.chart-column { display:grid; grid-template-rows:1fr 22px; align-self:stretch; flex:1; min-width:24px; text-align:center; }
.chart-bars { position:relative; display:flex; align-items:flex-end; justify-content:center; }
.chart-bars b,.chart-bars .target-bar { position:absolute; bottom:0; width:42%; min-height:3px; background:var(--accent-strong); border-radius:3px 3px 0 0; }
.chart-bars .target-bar { right:6%; background:var(--accent); opacity:.7; }
.chart-bars b { left:12%; }
.chart-bars b span { position:absolute; top:-17px; left:50%; transform:translateX(-50%); font-size:.66rem; }
.chart-column small { padding-top:6px; color:var(--ink-muted); font-size:.69rem; }
.bar-chart { height:210px; padding:28px 20px 0; gap:20px; }
.bar-chart > div { min-width:0; }
.bar-chart i { position:relative; min-height:4px; }
.bar-chart i b { position:absolute; top:-21px; bottom:auto; left:50%; transform:translateX(-50%); color:var(--ink); font:700 .72rem Arial,Helvetica,sans-serif; line-height:1; }
.bar-chart > div > span { margin:8px 0 6px; color:var(--ink-muted); font:700 .68rem Arial,Helvetica,sans-serif; white-space:nowrap; }
.participation-list { display:grid; }
.participation-list a { display:grid; grid-template-columns:minmax(0,1fr) auto 48px; align-items:center; gap:12px; padding:9px 4px; border-bottom:1px solid var(--line); color:var(--ink); font-size:.78rem; text-decoration:none; transition:background .15s,color .15s; }
.participation-list a:hover,.participation-list a:focus-visible { margin-inline:-6px; padding-inline:10px; background:#f5f6f4; color:#000; outline:none; }
.participation-list b { font-size:.92rem; }
.participation-list i { color:var(--accent-strong); font-size:.64rem; font-style:normal; font-weight:700; opacity:0; text-align:right; }
.participation-list a:hover i,.participation-list a:focus-visible i { opacity:1; }
.event-stage-control { display:flex; align-items:end; gap:7px; }
.event-stage-control label { display:grid; gap:4px; color:var(--ink-muted); font-size:.7rem; font-weight:700; }
.event-stage-control select { min-height:34px; padding:6px 8px; background:#fff; border:1px solid var(--line); border-radius:4px; }
.event-priority-grid { grid-template-columns:1.2fr .8fr; }
.action-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.action-summary button { display:grid; grid-template-columns:28px 1fr; align-items:center; gap:8px; min-height:43px; padding:7px 9px; color:var(--ink); text-align:left; background:var(--surface-soft); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:4px; }
.action-summary button:hover { background:#fffbea; }
.action-summary b { font-size:1rem; }
.action-summary span { font-size:.73rem; }
.event-entry-heading { align-items:end; }
.event-entry-heading .filters { flex-wrap:wrap; justify-content:flex-end; }
.event-entry-heading .filters input { min-width:250px; }
.bulk-bar { display:flex; align-items:center; gap:10px; min-height:46px; margin:0 -16px; padding:7px 16px; background:var(--surface-soft); border-block:1px solid var(--line); font-size:.74rem; }
.bulk-bar label { display:flex; align-items:center; gap:6px; font-weight:700; }
.bulk-bar span { margin-left:auto; color:var(--ink-muted); }
.bulk-bar select { min-height:34px; padding:5px 8px; background:#fff; border:1px solid var(--line); }
.record-link { color:var(--ink); font-weight:700; text-decoration:none; }
.record-link:hover { text-decoration:underline; }
.event-entry-table { min-width:1080px; }
.event-entry-table td:first-child,.event-entry-table th:first-child { width:34px; }
.driver-record-header { align-items:center; }
.driver-record-identity { display:flex; align-items:center; gap:15px; min-width:0; }
.driver-record-identity>div { min-width:0; }
.driver-profile-photo { display:grid; place-items:center; flex:0 0 74px; width:74px; height:74px; overflow:hidden; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:50%; box-shadow:0 5px 16px rgba(24,33,47,.1); }
.driver-profile-photo img,.driver-photo-preview img { display:block; width:100%; height:100%; object-fit:cover; }
.driver-photo-fallback { display:grid; place-items:center; width:100%; height:100%; color:#1b1b1b; background:linear-gradient(145deg,#ffdf42,var(--accent)); font-size:1.35rem; font-weight:800; letter-spacing:.04em; }
.driver-header-actions { display:flex; align-items:center; gap:8px; }
.driver-kpis article { display:grid; gap:4px; min-width:0; padding:14px 15px; background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:var(--radius); box-shadow:0 5px 18px rgba(24,33,47,.055); }
.driver-kpis article span,.driver-kpis article small { color:var(--ink-muted); font-size:.72rem; }
.driver-kpis article strong { margin:0; font:700 1.3rem Arial,Helvetica,sans-serif; }
.driver-edit-grid,.driver-overview-grid { align-items:start; }
.driver-profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; margin-bottom:18px; }
.driver-profile-grid>.panel { height:100%; margin:0; }
.driver-profile-grid .driver-facts { grid-template-columns:1fr; }
.driver-profile-grid .driver-facts div { display:grid; grid-template-columns:minmax(88px,.8fr) minmax(0,1.2fr); align-items:baseline; gap:8px; padding:8px 0; }
.driver-profile-grid .driver-facts dt { width:auto; margin:0; }
.driver-profile-grid .driver-facts dd { display:block; min-width:0; }
.driver-photo-editor { display:flex; align-items:center; gap:14px; margin:-3px 0 15px; padding:11px; background:var(--surface-soft); border:1px solid var(--line); border-radius:6px; }
.driver-photo-preview { display:grid; place-items:center; flex:0 0 68px; width:68px; height:68px; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:50%; }
.driver-photo-upload { display:grid; gap:4px; min-width:0; color:var(--ink-muted); font-size:.68rem; }
.driver-photo-upload strong { color:var(--ink); font-size:.78rem; }
.driver-photo-upload input { max-width:100%; padding:5px 0; font-size:.7rem; }
.driver-biography { min-height:48px; margin:0 0 8px; color:var(--ink); font-size:.78rem; line-height:1.55; }
.driver-public-links { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.driver-public-links a,.driver-public-links span { max-width:100%; overflow-wrap:anywhere; padding:5px 8px; color:var(--ink); background:var(--surface-soft); border:1px solid var(--line); border-radius:4px; font-size:.68rem; }
.driver-licence-editor { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding:11px; background:#fff; border:1px solid var(--line); border-radius:5px; }
.driver-licence-editor>div { display:grid; gap:3px; }
.driver-licence-editor strong { font-size:.76rem; }
.driver-licence-editor span,.driver-licence-editor a { color:var(--ink-muted); font-size:.66rem; }
.driver-licence-editor input { max-width:250px; font-size:.68rem; }
.licence-document-link { display:inline-flex; margin-top:10px; text-decoration:none; }
.licence-verification { margin:9px 0 0; color:var(--success); font-size:.68rem; font-weight:700; }
.driver-form-grid .span-two { grid-column:1/-1; }
.restricted-profile { border-left:3px solid var(--accent); }
.driver-emergency-card { background:linear-gradient(145deg,#fff 0%,#fffdf2 100%); }
.driver-emergency-card .panel-heading { align-items:center; }
.restricted-profile-lock { display:flex; align-items:center; gap:11px; min-height:92px; padding:13px; background:var(--surface-soft); border:1px solid var(--line); border-radius:6px; }
.restricted-profile-lock>span { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; background:#fff3bd; border-radius:50%; font-size:1rem; }
.restricted-profile-lock strong { display:block; font-size:.8rem; }
.restricted-profile-lock p { margin:4px 0 0; color:var(--ink-muted); font-size:.68rem; line-height:1.4; }
.emergency-facts { grid-template-columns:1fr; }
.emergency-facts .wide-fact { grid-column:1/-1; }
.driver-insight-grid,.driver-workflow-grid { align-items:stretch; margin-bottom:18px; }
.driver-insight-grid>.panel,.driver-workflow-grid>.panel { height:100%; margin:0; }
.career-stats-table { min-width:560px; }
.career-stats-table th:not(:first-child),.career-stats-table td:not(:first-child) { text-align:center; }
.driver-number-history { margin-bottom:18px; }
.driver-number-history table { min-width:680px; }
.race-number-history-value { display:inline-grid; place-items:center; min-width:34px; min-height:34px; padding:0 8px; background:var(--accent); border:1px solid #1f2326; border-radius:7px; color:#111; font-size:1rem; }
.driver-career-timeline { display:grid; }
.driver-career-timeline>div { display:grid; grid-template-columns:88px 14px minmax(0,1fr); align-items:start; gap:8px; min-height:54px; }
.driver-career-timeline time { padding-top:3px; color:var(--ink-muted); font-size:.64rem; }
.driver-career-timeline>div>span { position:relative; width:9px; height:9px; margin-top:3px; background:var(--accent); border:2px solid #1f2326; border-radius:50%; }
.driver-career-timeline>div>span:after { position:absolute; top:8px; left:2px; width:1px; height:42px; background:var(--line); content:""; }
.driver-career-timeline>div:last-child>span:after { display:none; }
.driver-career-timeline p { display:grid; gap:3px; margin:0; }
.driver-career-timeline p strong { font-size:.78rem; }
.driver-career-timeline p small { color:var(--ink-muted); font-size:.67rem; }
.driver-request-list,.profile-history-list { display:grid; }
.driver-request-list>div { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:9px 0; border-top:1px solid var(--line); }
.driver-request-list>div>div { display:grid; gap:2px; min-width:0; }
.driver-request-list strong,.driver-request-list a,.driver-request-list small { font-size:.68rem; }
.driver-request-list a { color:var(--ink); font-weight:700; }
.driver-request-list small { color:var(--ink-muted); }
.request-actions { display:flex; gap:5px; }
.profile-history-list>div { display:grid; grid-template-columns:108px minmax(0,1fr); gap:10px; padding:9px 0; border-top:1px solid var(--line); }
.profile-history-list time { color:var(--ink-muted); font-size:.63rem; }
.profile-history-list p { display:grid; gap:3px; margin:0; }
.profile-history-list strong { font-size:.74rem; }
.profile-history-list small { color:var(--ink-muted); font-size:.66rem; }
.driver-self-service-shell { display:grid; grid-template-rows:auto 1fr auto; min-height:100vh; color:var(--ink); background:linear-gradient(145deg,#f6f7f5 0%,#eceeeb 100%); font-family:Arial,Helvetica,sans-serif; }
.driver-self-service-header { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:88px; padding:16px clamp(22px,5vw,72px); background:#fff; border-bottom:4px solid var(--accent); box-shadow:0 3px 15px rgba(24,33,47,.07); }
.driver-self-service-header img { display:block; width:190px; max-width:42vw; height:auto; }
.driver-self-service-header div { display:grid; gap:3px; text-align:right; }
.driver-self-service-header strong { color:var(--ink); font-size:.86rem; }
.driver-self-service-header span { color:var(--ink-muted); font-size:.68rem; }
.driver-self-service-main { display:grid; align-items:start; padding:clamp(24px,5vh,56px) 16px; }
.self-service-card { width:min(940px,100%); margin:0 auto; padding:0; overflow:hidden; border:1px solid var(--line); border-top:4px solid var(--accent); border-radius:12px; background:#fff; box-shadow:0 18px 48px rgba(24,33,47,.12); }
.self-service-welcome { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:28px; align-items:start; padding:clamp(24px,4vw,40px) clamp(22px,5vw,46px) 24px; background:linear-gradient(135deg,#fff 0%,#fffdf0 100%); }
.self-service-card h1 { margin:7px 0 10px; color:var(--ink); font:700 clamp(1.8rem,4vw,2.65rem) Arial,Helvetica,sans-serif; line-height:1.05; letter-spacing:-.035em; }
.self-service-card h1:focus { outline:none; box-shadow:none; }
.self-service-welcome p { max-width:650px; margin:0; color:#555d61; font-size:.86rem; line-height:1.6; }
.self-service-time { display:grid; gap:4px; min-width:150px; padding:13px 15px; border:1px solid #e2d36a; border-radius:8px; background:#fff; box-shadow:0 5px 16px rgba(24,33,47,.06); }
.self-service-time strong { font-size:.78rem; }
.self-service-time span { color:var(--ink-muted); font-size:.66rem; }
.self-service-card .eyebrow { color:var(--ink); font-family:Arial,Helvetica,sans-serif; }
.self-service-assurance { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 clamp(22px,5vw,46px) 24px; background:linear-gradient(135deg,#fff 0%,#fffdf0 100%); }
.self-service-assurance>span { display:grid; gap:3px; padding:13px 16px; border-top:1px solid #e5e2cf; border-bottom:1px solid #e5e2cf; }
.self-service-assurance>span:first-child { padding-left:0; }
.self-service-assurance>span+span { border-left:1px solid #e5e2cf; }
.self-service-assurance b { font-size:.72rem; }
.self-service-assurance small { color:var(--ink-muted); font-size:.63rem; }
.self-service-sections { display:grid; gap:18px; padding:26px clamp(22px,5vw,46px); background:#f4f5f3; }
.self-service-form-section { padding:clamp(18px,3vw,26px); border:1px solid #dfe1de; border-radius:9px; background:#fff; box-shadow:0 5px 16px rgba(24,33,47,.045); }
.self-service-form-section>header { display:flex; align-items:flex-start; gap:13px; padding-bottom:17px; border-bottom:1px solid var(--line); }
.self-service-form-section>header>span { display:grid; flex:0 0 31px; place-items:center; width:31px; height:31px; border-radius:50%; color:#181a1b; background:var(--accent); font-size:.68rem; font-weight:900; }
.self-service-form-section h2,.self-service-submit-panel h2 { margin:0; color:var(--ink); font:700 1rem Arial,Helvetica,sans-serif; }
.self-service-form-section header p { margin:4px 0 0; color:var(--ink-muted); font-size:.7rem; line-height:1.45; }
.self-service-card .form-grid { gap:16px; margin:20px 0 0; }
.self-service-card .form-grid label,.self-service-card .field-label { gap:7px; color:#292d2f; font-family:Arial,Helvetica,sans-serif; font-size:.72rem; letter-spacing:0; text-transform:none; }
.self-service-card label>small { color:var(--ink-muted); font-size:.62rem; font-weight:400; line-height:1.35; }
.self-service-card input,.self-service-card textarea { width:100%; min-height:45px; border:1px solid #c8ccca; border-radius:6px; padding:11px 12px; background:#fcfcfb; font-family:Arial,Helvetica,sans-serif; transition:border-color .15s,box-shadow .15s,background .15s; }
.self-service-card textarea { min-height:106px; line-height:1.5; resize:vertical; }
.self-service-card input::placeholder,.self-service-card textarea::placeholder { color:#8a9092; }
.self-service-card input:focus,.self-service-card textarea:focus { outline:0; border-color:#b6a000; background:#fff; box-shadow:0 0 0 3px rgba(237,207,0,.18); }
.team-contact-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.self-service-submit-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 clamp(22px,5vw,46px) 18px; padding:22px 24px; border-radius:9px; color:#fff; background:#222627; }
.self-service-submit-panel p { margin:5px 0 0; color:#cfd2d1; font-size:.7rem; }
.self-service-submit-panel h2 { color:#fff; }
.self-service-card .primary { font-family:Arial,Helvetica,sans-serif; letter-spacing:0; text-transform:none; clip-path:none; border-radius:6px; }
.self-service-submit { display:flex; align-items:center; justify-content:center; gap:12px; min-height:48px; padding:12px 18px!important; white-space:nowrap; }
.self-service-submit span { font-size:1.2rem; line-height:1; }
.self-service-card>.restricted-note { margin:0 clamp(22px,5vw,46px) 30px; padding:13px 15px; border-left-color:#c7aa00; border-radius:6px; background:#f1f2f1; font-weight:400; line-height:1.5; }
.self-service-card>.restricted-note b { display:block; margin-bottom:2px; }
.self-service-card>.alert { margin:18px clamp(22px,5vw,46px) 0; }
.driver-self-service-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px clamp(22px,5vw,72px); color:#70767a; background:#fff; border-top:1px solid var(--line); font-size:.66rem; }
.driver-self-service-footer span:first-child { color:var(--ink); font-weight:700; }
@media(max-width:760px){.self-service-welcome{grid-template-columns:1fr}.self-service-time{width:max-content}.self-service-assurance{grid-template-columns:1fr}.self-service-assurance>span{padding:10px 0}.self-service-assurance>span+span{border-left:0;border-top:0}.team-contact-grid{grid-template-columns:1fr}.self-service-submit-panel{align-items:stretch;flex-direction:column}.self-service-submit{width:100%;white-space:normal}}
@media(max-width:600px){.driver-self-service-header{align-items:flex-start;flex-direction:column;gap:9px}.driver-self-service-header div{text-align:left}.driver-self-service-main{padding:18px 10px}.self-service-card{border-radius:9px}.self-service-welcome{padding:23px 18px 19px}.self-service-assurance{padding:0 18px 20px}.self-service-sections{padding:18px 12px}.self-service-form-section{padding:17px 14px}.self-service-submit-panel{margin:0 12px 14px;padding:19px 16px}.self-service-card>.restricted-note{margin:0 12px 22px}.driver-self-service-footer{align-items:flex-start;flex-direction:column;gap:4px}}
.self-service-complete { display:flex; align-items:center; gap:14px; margin:26px clamp(22px,5vw,46px) 34px; padding:20px; color:#165c40; background:#e7f5ef; border:1px solid #b9dfcf; border-radius:8px; }
.self-service-complete-mark { display:grid; flex:0 0 38px; place-items:center; width:38px; height:38px; border-radius:50%; color:#fff; background:#23815d; font-size:1rem; font-weight:900; }
.self-service-complete div { display:grid; gap:4px; }
.self-service-complete div span { font-size:.72rem; }
.driver-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; margin:0; }
.driver-facts div { min-width:0; padding:10px 0; border-bottom:1px solid var(--line); }
.driver-facts dt { margin-bottom:3px; color:var(--ink-muted); font-size:.7rem; }
.driver-facts dd { overflow-wrap:anywhere; margin:0; color:var(--ink); font-size:.82rem; font-weight:700; }
.driver-save-bar { display:flex; justify-content:flex-end; gap:8px; margin:0 0 18px; padding:12px 14px; background:var(--surface-soft); border:1px solid var(--line); border-radius:var(--radius); }
.driver-history-table { min-width:1100px; }
.driver-history-table td:last-child { text-align:right; }
.team-page-heading { align-items:center; }
.team-create-panel { margin-bottom:14px; }
.team-directory-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.team-directory-summary > div { display:grid; gap:3px; min-width:0; padding:12px 14px; background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:var(--radius); box-shadow:0 4px 14px rgba(24,33,47,.05); }
.team-directory-summary span,.team-directory-summary small { overflow:hidden; color:var(--ink-muted); font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.team-directory-summary strong { color:var(--ink); font:700 1.25rem Arial,Helvetica,sans-serif; }
.team-directory-panel { padding-bottom:10px; }
.team-directory-toolbar { align-items:end; margin-bottom:8px; }
.team-directory-controls { display:grid; grid-template-columns:minmax(230px,1.5fr) repeat(6,minmax(112px,1fr)); gap:7px; width:100%; margin-left:20px; }
.team-directory-controls label { display:grid; gap:3px; min-width:0; color:var(--ink-muted); font-size:.62rem; font-weight:700; }
.team-directory-controls input,.team-directory-controls select { min-width:0; width:100%; min-height:34px; padding:6px 8px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:4px; font-size:.68rem; }
.team-search { display:grid; gap:4px; width:min(310px,100%); color:var(--ink-muted); font-size:.7rem; font-weight:700; }
.team-search input { width:100%; min-height:36px; padding:7px 10px; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:4px; font:inherit; font-weight:400; }
.team-directory-grid { display:grid; grid-template-columns:1fr; gap:8px; }
.team-directory-card { position:relative; display:grid; grid-template-columns:84px minmax(230px,320px) minmax(480px,1fr) 76px; align-items:center; gap:12px 18px; min-height:112px; padding:12px 14px; color:var(--ink); text-decoration:none; background:var(--surface-soft); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:6px; transition:border-color .15s,background .15s,transform .15s; }
.team-directory-card:hover,.team-directory-card:focus-visible { z-index:1; color:var(--ink); background:#fffbea; border-color:#d5c363; outline:none; transform:translateY(-1px); }
.team-monogram { display:grid; place-items:center; width:80px; height:76px; color:#1c1c1c; background:var(--accent); border-radius:5px; font-size:1rem; font-weight:800; letter-spacing:.03em; }
.team-card-logo-frame { display:grid; place-items:center; width:80px; height:76px; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:5px; }
.team-directory-card>.team-monogram,.team-directory-card>.team-card-logo-frame { grid-column:1; }
.team-card-logo { display:block; width:100%; height:100%; padding:4px; object-fit:contain; }
.team-card-body { display:grid; grid-column:2; align-items:center; gap:8px; min-width:0; }
.team-card-title,.team-contact { display:grid; gap:3px; min-width:0; }
.team-card-name { display:flex; flex-wrap:wrap; align-items:center; gap:5px 7px; min-width:0; }
.team-card-name > strong { min-width:0; }
.team-card-title strong { overflow:hidden; font-size:.94rem; text-overflow:ellipsis; white-space:nowrap; }
.team-card-title small,.team-contact small { overflow:hidden; color:var(--ink-muted); font-size:.7rem; text-overflow:ellipsis; white-space:nowrap; }
.team-contact b { overflow:hidden; font-size:.77rem; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.team-card-context { display:flex; flex-wrap:wrap; align-items:center; gap:5px 8px; min-width:0; }
.team-card-context small { overflow:hidden; color:var(--ink-muted); font-size:.63rem; text-overflow:ellipsis; white-space:nowrap; }
.team-card-context>b { color:#9b5c00; font-size:.61rem; text-transform:uppercase; }
.team-card-metrics { display:grid; grid-column:3; grid-template-columns:minmax(110px,1.15fr) repeat(3,minmax(72px,1fr)); align-self:stretch; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:5px; }
.team-card-metrics > span { display:grid; align-content:center; min-width:0; padding:7px 10px; border-left:1px solid var(--line); border-bottom:1px solid var(--line); }
.team-card-metrics > span:nth-child(-n+4) { background:#f5f6f4; }
.team-card-metrics > span:nth-child(n+5) { background:#fff9da; border-bottom:0; }
.team-card-metrics > span:nth-child(1),.team-card-metrics > span:nth-child(5) { border-left:0; }
.team-card-period { justify-items:start; gap:2px; }
.team-card-period b { font-size:.76rem; line-height:1; }
.team-card-period small { color:var(--ink-muted); font-size:.58rem; white-space:nowrap; }
.team-card-stat { grid-template-columns:1fr auto; align-items:center; gap:7px; }
.team-card-stat small { overflow:hidden; color:var(--ink-muted); font-size:.64rem; font-weight:700; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.team-card-stat strong { font-size:1.02rem; line-height:1; }
.team-card-open { display:grid; grid-column:4; justify-items:end; gap:4px; color:var(--ink); font-size:.69rem; font-weight:700; white-space:nowrap; }
.team-card-open b { display:grid; place-items:center; width:28px; height:28px; color:#191919; background:var(--accent); border-radius:50%; font-size:1rem; }
.approved-team-badge { display:inline-flex; align-items:center; gap:4px; width:max-content; max-width:100%; padding:3px 7px; color:#1d583d; background:#dff3ea; border:1px solid #b9e3d0; border-radius:999px; font-size:.61rem; font-weight:800; line-height:1.15; white-space:nowrap; }
.approved-team-badge > span { display:grid; place-items:center; width:14px; height:14px; color:#fff; background:#257251; border-radius:50%; font-size:.55rem; }
.approved-team-badge.prominent { padding:5px 9px; font-size:.69rem; }
.team-approval-toggle { display:flex; align-items:flex-start; gap:10px; margin:4px 0 16px; padding:11px 13px; background:#f4faf7; border:1px solid #cfe5da; border-radius:5px; cursor:pointer; }
.team-approval-toggle input { flex:0 0 auto; width:17px; height:17px; margin:1px 0 0; accent-color:#257251; }
.team-approval-toggle > span { display:grid; gap:3px; }
.team-approval-toggle strong { color:var(--ink); font-size:.76rem; }
.team-approval-toggle small { color:var(--ink-muted); font-size:.68rem; font-weight:400; }
.team-record-header { align-items:flex-start; }
.team-record-identity { display:flex; align-items:center; gap:14px; min-width:0; }
.team-record-logo { display:grid; flex:0 0 66px; place-items:center; width:66px; height:66px; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:6px; }
.team-record-logo img { display:block; width:100%; height:100%; padding:6px; object-fit:contain; }
.team-logo-fallback { color:#1c1c1c; background:var(--accent); font-size:.9rem; font-weight:800; letter-spacing:.04em; }
.team-logo-editor { display:flex; align-items:center; gap:16px; margin:4px 0 16px; padding:13px 14px; background:var(--surface-soft); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:5px; }
.team-logo-preview { display:grid; flex:0 0 92px; place-items:center; width:92px; height:66px; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:4px; }
.team-logo-preview img { display:block; width:100%; height:100%; padding:7px; object-fit:contain; }
.team-logo-preview .team-logo-fallback { display:grid; place-items:center; width:100%; height:100%; }
.team-logo-upload { display:grid; gap:5px; min-width:0; color:var(--ink); font-size:.76rem; }
.team-logo-upload span { color:var(--ink-muted); font-size:.69rem; font-weight:400; }
.team-logo-upload input[type=file] { max-width:100%; color:var(--ink); font-size:.72rem; }
.team-kpis article { display:grid; gap:4px; min-width:0; padding:14px 15px; background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:var(--radius); box-shadow:0 5px 18px rgba(24,33,47,.055); }
.team-kpis article span,.team-kpis article small { color:var(--ink-muted); font-size:.72rem; }
.team-kpis article strong { margin:0; font:700 1.3rem Arial,Helvetica,sans-serif; }
.team-summary-grid { align-items:start; }
.team-description { min-height:38px; margin:0 0 12px; color:var(--ink); font-size:.78rem; line-height:1.5; }
.team-operations-grid,.team-analysis-grid,.team-logistics-grid { align-items:start; margin-bottom:18px; }
.team-contact-list { display:grid; gap:6px; margin-bottom:12px; }
.team-contact-list>div { display:flex; justify-content:space-between; gap:10px; align-items:center; padding:8px 10px; background:var(--surface-soft); border-left:3px solid var(--accent); border-radius:4px; }
.team-contact-list span { display:grid; gap:1px; }
.team-contact-list small { color:var(--ink-muted); font-size:.65rem; }
.team-contact-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; align-items:end; padding-top:10px; border-top:1px solid var(--line); }
.team-contact-form label { display:grid; gap:3px; color:var(--ink-muted); font-size:.65rem; font-weight:700; }
.team-contact-form input,.team-contact-form select { min-width:0; min-height:34px; padding:6px 8px; border:1px solid var(--line); border-radius:4px; }
.team-contact-form .check-label { display:flex; align-items:center; min-height:34px; }
.approval-history-list { display:grid; gap:6px; margin-top:12px; }
.approval-history-list>div { display:flex; gap:9px; align-items:center; padding:7px 9px; background:var(--surface-soft); border-radius:4px; }
.approval-history-list p { display:grid; gap:2px; margin:0; font-size:.72rem; }
.approval-history-list small { color:var(--ink-muted); font-size:.64rem; }
.team-self-service-panel { margin-bottom:18px; }
.team-season-comparison { display:grid; gap:5px; margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.team-season-comparison>div { display:grid; grid-template-columns:64px minmax(0,1fr) 58px; gap:8px; align-items:center; padding:5px 8px; background:#f5f6f4; border-radius:4px; }
.team-season-comparison>div.current { background:#fff7c9; border-left:3px solid var(--accent); }
.team-season-comparison>div>strong { font-size:.7rem; }
.team-season-comparison>div>span { display:flex; gap:5px; }
.team-season-comparison i { display:grid; min-width:38px; padding:3px 5px; text-align:center; background:#fff; border:1px solid var(--line); border-radius:3px; font-style:normal; }
.team-season-comparison i b { font-size:.72rem; }
.team-season-comparison i small { color:var(--ink-muted); font-size:.54rem; }
.team-season-comparison em { color:var(--ink-muted); font-size:.62rem; font-style:normal; text-align:right; }
.team-career-table { min-width:690px; }
.team-breakdown { display:grid; gap:5px; }
.team-breakdown h4 { margin:8px 0 2px; font-size:.68rem; letter-spacing:.04em; text-transform:uppercase; }
.team-breakdown>div { display:flex; justify-content:space-between; gap:10px; padding:7px 9px; background:var(--surface-soft); border-radius:4px; font-size:.72rem; }
.team-breakdown>div b { display:grid; place-items:center; min-width:24px; height:20px; background:var(--accent); border-radius:10px; }
.team-timeline { display:grid; gap:7px; }
.team-timeline>div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:10px; padding:8px 10px; background:var(--surface-soft); border-left:3px solid var(--accent); border-radius:4px; }
.team-timeline time { color:var(--ink-muted); font-size:.64rem; }
.team-timeline p { display:grid; gap:2px; margin:0; font-size:.74rem; }
.team-timeline small { color:var(--ink-muted); font-size:.64rem; }
.team-access-list { display:grid; gap:6px; }
.team-access-list>div { display:grid; grid-template-columns:minmax(150px,1.2fr) 64px 72px minmax(120px,1fr); gap:7px; align-items:end; padding:8px 9px; background:var(--surface-soft); border-radius:4px; }
.team-access-list>div>span { display:grid; gap:2px; font-size:.7rem; }
.team-access-list small { color:var(--ink-muted); font-size:.62rem; }
.team-access-list label { display:grid; gap:2px; color:var(--ink-muted); font-size:.59rem; font-weight:700; }
.team-access-list input { min-width:0; width:100%; min-height:31px; padding:5px 6px; border:1px solid var(--line); border-radius:3px; }
.team-merge-panel { border-color:#e5c6c4; }
.merge-control { display:flex; gap:10px; align-items:end; }
.merge-control label { display:grid; flex:1; gap:4px; color:var(--ink-muted); font-size:.68rem; font-weight:700; }
.merge-control select { min-height:36px; padding:6px 8px; border:1px solid var(--line); border-radius:4px; }
.danger-button { min-height:36px; padding:7px 12px; color:#fff; background:#a12622; border:1px solid #861d1a; border-radius:4px; font-weight:700; cursor:pointer; }
.danger-button:disabled { opacity:.45; cursor:not-allowed; }
.team-approval-toggle.archive { background:#f8f8f7; border-color:var(--line); }
.team-entry-chart-panel { overflow:hidden; }
.team-entry-chart-panel .panel-heading { align-items:end; }
.team-entry-chart-panel .panel-heading p { margin:4px 0 0; }
.team-entry-chart { display:flex; align-items:stretch; gap:10px; min-height:202px; padding:10px 8px 0; border-bottom:1px solid var(--line); }
.team-entry-chart a { display:grid; grid-template-rows:132px auto auto auto; flex:1; min-width:72px; color:var(--ink); text-align:center; text-decoration:none; }
.team-entry-bar-shell { position:relative; display:flex; align-items:flex-end; justify-content:center; height:132px; background:linear-gradient(to top,rgba(219,221,218,.45) 1px,transparent 1px); background-size:100% 33%; border-radius:4px 4px 0 0; }
.team-entry-bar-shell i { display:block; width:min(52px,64%); min-height:4px; background:var(--accent-strong); border-radius:4px 4px 0 0; transition:background .15s,transform .15s; }
.team-entry-bar-shell b { position:absolute; bottom:calc(var(--bar-height, 0%) + 6px); color:var(--ink); font-size:.74rem; }
.team-entry-chart a strong { margin-top:7px; font-size:.74rem; }
.team-entry-chart a small { overflow:hidden; margin-top:2px; color:var(--ink-muted); font-size:.65rem; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.team-entry-chart a time { margin:3px 0 7px; color:var(--ink-muted); font-size:.62rem; }
.team-entry-chart a:hover .team-entry-bar-shell i,.team-entry-chart a:focus-visible .team-entry-bar-shell i { background:#1f2326; transform:scaleX(1.06); }
.team-entry-chart a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.team-edit-panel .driver-save-bar { margin:14px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; }
.team-stable-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.stable-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; padding:11px; color:var(--ink); text-decoration:none; background:var(--surface-soft); border:1px solid var(--line); border-radius:5px; }
.stable-card:hover { background:#fffbea; border-color:#d5c363; }
.stable-card div { display:grid; gap:3px; min-width:0; }
.stable-card small { overflow:hidden; color:var(--ink-muted); font-size:.69rem; text-overflow:ellipsis; white-space:nowrap; }
.team-history-table { min-width:1100px; }
.team-history-table td:last-child { text-align:right; }
.car-record-header { align-items:flex-start; }
.car-kpis article { display:grid; gap:4px; min-width:0; padding:14px 15px; background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:var(--radius); box-shadow:0 5px 18px rgba(24,33,47,.055); }
.car-kpis article span,.car-kpis article small { color:var(--ink-muted); font-size:.72rem; }
.car-kpis article strong { margin:0; font:700 1.3rem Arial,Helvetica,sans-serif; }
.car-edit-grid,.car-overview-grid,.car-technical-grid,.car-notes-grid { align-items:start; }
.car-edit-grid .span-two { grid-column:1/-1; }
.car-safety-editor { border-left:3px solid var(--accent); }
.expiry-list,.technical-history { display:grid; }
.expiry-list>div,.technical-history>div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 2px; border-bottom:1px solid var(--line); font-size:.78rem; }
.technical-history span { display:grid; gap:2px; }
.technical-history small { color:var(--ink-muted); font-size:.68rem; }
.car-history-table { min-width:1180px; }
.car-history-table td:last-child { text-align:right; }
.entry-driver-list { display:flex; flex-direction:column; align-items:flex-start; gap:.28rem; min-width:10rem; }
.entry-driver-list .pill { margin-bottom:.08rem; }
.comment-timeline { display:grid; gap:9px; }
.comment-timeline>div { padding:10px 11px; background:var(--surface-soft); border-left:3px solid var(--accent); border-radius:4px; }
.comment-timeline small { display:block; margin-top:2px; color:var(--ink-muted); font-size:.68rem; }
.comment-timeline p { margin:7px 0 0; font-size:.78rem; line-height:1.45; }
.operational-notepad { margin-bottom:18px; }
.notepad-compose { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; padding-bottom:14px; border-bottom:1px solid var(--line); }
.notepad-compose .field-label { margin:0; }
.notepad-compose textarea,.notepad-list textarea { width:100%; resize:vertical; }
.notepad-message { margin:0 0 10px; color:#126a4b; font-size:.75rem; font-weight:700; }
.notepad-list { display:grid; gap:8px; margin-top:14px; }
.notepad-list article { padding:11px 12px; background:var(--surface-soft); border-left:3px solid var(--accent); border-radius:4px; }
.notepad-list article>p { margin:0 0 9px; white-space:pre-wrap; font-size:.8rem; line-height:1.5; }
.notepad-list footer { display:flex; justify-content:space-between; gap:12px; align-items:flex-end; }
.notepad-list footer>span:first-child { display:grid; gap:1px; color:var(--ink-muted); font-size:.67rem; }
.notepad-list footer strong { color:var(--ink); }
.notepad-list time { font-variant-numeric:tabular-nums; }
.notepad-list small { font-size:.64rem; }
.notepad-actions { display:flex; gap:6px; align-items:center; }
.danger-link { border:0; background:transparent; color:#a12622; font-weight:700; cursor:pointer; }
@media(max-width:720px){.notepad-compose{grid-template-columns:1fr}.notepad-compose button{width:100%}.notepad-list footer{align-items:flex-start;flex-direction:column}.notepad-actions{align-self:flex-end}}
@media(max-width:1180px){.round-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.season-kpis,.event-view-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main-grid{grid-template-columns:1fr}.event-priority-grid{grid-template-columns:1fr}}
@media(max-width:720px){.year-header,.event-view-header{align-items:flex-start;flex-direction:column}.season-kpis,.event-view-kpis,.round-grid{grid-template-columns:1fr}.participation-grid{grid-template-columns:1fr}.standings-table{overflow-x:auto}.standings-head,.standings-table>a{min-width:640px}.event-stage-control{width:100%}.event-stage-control label{flex:1}.event-entry-heading{align-items:stretch;flex-direction:column}.event-entry-heading .filters{justify-content:flex-start}.event-entry-heading .filters input{min-width:0;width:100%}.bulk-bar{align-items:stretch;flex-wrap:wrap}.bulk-bar span{margin-left:0}.season-chart{height:160px}.bar-chart{height:180px;gap:10px;padding-inline:6px}.driver-header-actions{width:100%;justify-content:space-between}.driver-facts{grid-template-columns:1fr}.driver-form-grid .span-two,.car-edit-grid .span-two{grid-column:auto}.team-stable-grid{grid-template-columns:1fr}.stable-card{grid-template-columns:auto minmax(0,1fr)}.stable-card>.pill{grid-column:2}.team-logo-editor{align-items:stretch;flex-direction:column}.team-logo-preview{width:100%;height:82px}.team-record-logo{flex-basis:54px;width:54px;height:54px}}
@media(max-width:1180px){.driver-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.driver-profile-grid,.driver-insight-grid,.driver-workflow-grid{grid-template-columns:1fr}.driver-emergency-card{grid-column:auto}.driver-record-identity{align-items:flex-start}.driver-profile-photo{flex-basis:64px;width:64px;height:64px}.driver-photo-editor,.driver-licence-editor{align-items:flex-start;flex-direction:column}.driver-photo-preview{width:62px;height:62px}.driver-request-list>div{grid-template-columns:1fr}.profile-history-list>div{grid-template-columns:1fr}.request-actions{justify-content:flex-start}}
@media(max-width:1400px){.team-directory-controls{grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 0}.team-directory-grid{grid-template-columns:1fr}.team-directory-card{grid-template-columns:72px minmax(0,1fr) auto}.team-directory-card>.team-monogram,.team-directory-card>.team-card-logo-frame{width:68px;height:64px}.team-card-body{grid-column:2}.team-card-metrics{grid-column:1/-1;grid-row:2}.team-card-open{grid-column:3;grid-row:1}.team-directory-toolbar{align-items:stretch;flex-direction:column}.team-contact-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.team-directory-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.team-directory-card{grid-template-columns:52px minmax(0,1fr) auto;gap:10px}.team-directory-card>.team-monogram,.team-directory-card>.team-card-logo-frame{grid-column:1;width:50px;height:50px}.team-card-body{grid-column:2;grid-row:1;gap:5px}.team-card-metrics{grid-column:1/-1;grid-row:2;grid-template-columns:84px repeat(3,minmax(54px,1fr))}.team-card-metrics>span{padding:6px}.team-card-stat{grid-template-columns:1fr;justify-items:center;gap:2px}.team-card-open{grid-column:3;grid-row:1}.team-card-open>span{display:none}}
@media(max-width:480px){.team-directory-toolbar{align-items:stretch;flex-direction:column}.team-directory-card{grid-template-columns:44px minmax(0,1fr)}.team-directory-card>.team-monogram,.team-directory-card>.team-card-logo-frame{width:42px;height:42px}.team-card-open{display:none}.team-card-metrics{grid-template-columns:74px repeat(3,minmax(48px,1fr))}.team-card-period small{white-space:normal}}
@media(max-width:720px){.team-entry-chart-panel{overflow-x:auto}.team-entry-chart{min-width:520px}.team-entry-chart-panel .chart-key{display:none}}
@media(max-width:720px){.team-operations-grid,.team-analysis-grid,.team-logistics-grid{grid-template-columns:1fr}.team-directory-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.team-directory-controls .team-search{grid-column:1/-1}.team-contact-form{grid-template-columns:1fr}.team-access-list>div{grid-template-columns:1fr 64px 72px}.team-access-list .access-note{grid-column:1/-1}.merge-control{align-items:stretch;flex-direction:column}.team-timeline>div{grid-template-columns:1fr}.team-season-comparison{min-width:480px}}
.event-entry-create { margin-bottom:18px; border-top:3px solid var(--accent); }
.entry-amend-backdrop { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:24px; background:rgba(18,22,24,.62); overflow:auto; }
.event-entry-amend { width:min(920px,100%); max-height:calc(100vh - 48px); margin:auto; border-top:3px solid var(--accent); overflow:auto; box-shadow:0 18px 50px rgba(0,0,0,.28); }
.entry-amend-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:12px; }
.entry-amend-grid label { min-width:0; }
.entry-amend-grid label small { display:block; margin-top:4px; color:var(--ink-muted); font-weight:400; }
.entry-amend-grid .amendment-reason { grid-column:span 2; }
.entry-amend-grid textarea { min-height:72px; resize:vertical; }
.event-entry-create-heading { align-items:center; }
.event-entry-create-heading p { margin:4px 0 0; font-size:.76rem; }
.driver-lookup-strip { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:2px 0 14px; padding:11px 12px; background:var(--surface-soft); border-left:3px solid var(--accent); border-radius:4px; }
.driver-lookup-strip label { display:grid; flex:1; gap:4px; color:var(--ink); font-size:.72rem; font-weight:700; }
.driver-lookup-strip input { width:100%; min-height:38px; padding:8px 10px; background:#fff; border:1px solid var(--line); border-radius:4px; font:inherit; font-weight:400; }
.driver-lookup-strip > small { padding-bottom:10px; color:var(--ink-muted); font-size:.7rem; white-space:nowrap; }
.driver-lookup-strip > small strong { color:var(--ink); font-size:.82rem; }
.event-entry-create-grid { margin-bottom:12px; }
.entry-create-actions { display:flex; justify-content:flex-end; padding-top:2px; }
.entry-create-actions button:disabled { cursor:not-allowed; opacity:.5; }
.compact-empty { margin:4px 0 12px; padding:12px; font-size:.76rem; }
@media(max-width:900px){.entry-amend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.event-entry-create-heading,.driver-lookup-strip{align-items:stretch;flex-direction:column}.driver-lookup-strip>small{padding-bottom:0}.entry-create-actions button{width:100%}.entry-amend-grid{grid-template-columns:1fr}.entry-amend-grid .amendment-reason{grid-column:auto}}
.championship-header { align-items:center; }
.championship-header-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.championship-settings { margin-bottom:18px; border-top:3px solid var(--accent); scroll-margin-top:18px; }
.championship-save-bar { display:flex; justify-content:flex-end; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.round-setup-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; padding-top:18px; border-top:1px solid var(--line); }
.round-setup-heading h4 { margin:0; font-size:1rem; }
.round-setup-heading p { margin:4px 0 0; }
.round-settings-form { margin-top:14px; padding:16px; background:var(--surface-soft); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:4px; }
.round-settings-form .panel-heading { margin-bottom:12px; }
.round-editor-list { display:grid; gap:10px; margin-top:14px; }
.round-editor-card { padding:14px; background:var(--surface-soft); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:5px; }
.round-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.round-editor-heading > div { display:flex; align-items:center; gap:9px; min-width:0; }
.round-editor-heading strong { overflow:hidden; font-size:.86rem; text-overflow:ellipsis; white-space:nowrap; }
.round-editor-grid { display:grid; grid-template-columns:90px minmax(180px,1.4fr) minmax(170px,1fr) minmax(135px,.75fr); gap:10px; }
.round-editor-grid label { display:grid; gap:5px; min-width:0; color:var(--ink); font-size:.7rem; font-weight:700; }
.round-editor-grid input,.round-editor-grid select { width:100%; min-width:0; min-height:36px; padding:7px 9px; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:4px; font:inherit; font-weight:400; }
.round-editor-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-top:12px; padding-top:11px; border-top:1px solid var(--line); }
.round-removal-note { margin-right:auto; color:var(--ink-muted); font-size:.68rem; }
.round-removal-note.warning { color:#842d2d; font-weight:700; }
.danger,.danger-outline { min-height:38px; padding:8px 12px; border:1px solid #9f3434; border-radius:4px; font-size:.76rem; font-weight:700; cursor:pointer; }
.danger { color:#fff; background:#9f3434; }
.danger:hover { background:#812626; }
.danger-outline { color:#8a2d2d; background:#fff; }
.danger-outline:hover { background:#fff0f0; }
.operations-home-header { align-items:center; }
.operations-action-list { display:grid; margin-top:12px; }
.operations-action-list a { display:grid; grid-template-columns:minmax(0,1fr) auto 52px; align-items:center; gap:12px; padding:11px 4px; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--line); font-size:.78rem; }
.operations-action-list a:hover { margin-inline:-6px; padding-inline:10px; background:#fffbea; }
.operations-action-list b { font-size:.72rem; }
.operations-action-list i { color:var(--accent-strong); font-size:.68rem; font-style:normal; font-weight:700; text-align:right; }
.commercial-event-header { min-height:104px; }
.commercial-event-header p { margin-top:5px; }
.commercial-pipeline-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:0 0 14px; }
.commercial-pipeline-kpis>a { display:grid; gap:3px; min-width:0; min-height:86px; padding:12px 13px; color:var(--ink); text-decoration:none; background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:6px; box-shadow:0 3px 12px rgba(24,33,47,.04); }
.commercial-pipeline-kpis>a:hover { background:#fffbea; border-color:#d5c363; }
.commercial-pipeline-kpis>a.target { border-top-color:var(--accent-strong); }
.commercial-pipeline-kpis span { overflow:hidden; color:var(--ink-muted); font-size:.69rem; text-overflow:ellipsis; white-space:nowrap; }
.commercial-pipeline-kpis strong { font:700 1.4rem Arial,Helvetica,sans-serif; }
.commercial-pipeline-kpis small { overflow:hidden; color:var(--ink-muted); font-size:.64rem; text-overflow:ellipsis; white-space:nowrap; }
.commercial-overview-grid { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr); gap:14px; align-items:start; }
.commercial-overview-grid>.panel { margin:0; }
.commercial-action-list { display:grid; }
.commercial-action-list>a { display:grid; grid-template-columns:minmax(0,1fr) 42px; align-items:center; gap:10px; min-height:55px; padding:7px 4px; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--line); }
.commercial-action-list>a:last-child { border-bottom:0; }
.commercial-action-list>a:hover { margin-inline:-7px; padding-inline:11px; background:#fffbea; }
.commercial-action-list>a>span { position:relative; display:grid; gap:2px; padding-left:17px; }
.commercial-action-list>a>span>i { position:absolute; top:4px; left:0; width:8px; height:8px; background:#80868c; border-radius:50%; }
.commercial-action-list>a>span>i.amber { background:#e1a400; }
.commercial-action-list>a>span>i.red { background:#bd3a36; }
.commercial-action-list>a>span>i.blue { background:#3f759b; }
.commercial-action-list b { font-size:.75rem; }
.commercial-action-list small { color:var(--ink-muted); font-size:.66rem; }
.commercial-action-list>a>strong { font:700 1.15rem Arial,Helvetica,sans-serif; text-align:right; }
.commercial-conversion-panel>.panel-heading>b { padding:7px 9px; color:#075e45; background:#dff4eb; border-radius:18px; font-size:.78rem; }
.conversion-funnel { display:grid; gap:9px; margin:10px 0 18px; }
.conversion-funnel>div { display:grid; grid-template-columns:76px 34px minmax(0,1fr); align-items:center; gap:8px; }
.conversion-funnel span,.target-progress span { color:var(--ink-muted); font-size:.68rem; }
.conversion-funnel b { font-size:.76rem; text-align:right; }
.conversion-funnel i,.target-progress>i { display:block; height:9px; overflow:hidden; background:#e5e6e6; border-radius:10px; }
.conversion-funnel em,.target-progress em { display:block; height:100%; background:var(--accent); border-radius:10px; }
.conversion-funnel>div:nth-child(2) em { background:#d0ad00; }
.conversion-funnel>div:nth-child(3) em,.target-progress em { background:var(--success); }
.target-progress { padding:12px; background:var(--surface-soft); border-radius:5px; }
.target-progress>div { display:flex; justify-content:space-between; margin-bottom:7px; }
.target-progress b { font-size:.75rem; }
.commercial-comparisons { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; margin:13px 0 0; }
.commercial-comparisons>div,.championship-snapshot-panel dl>div { display:flex; justify-content:space-between; gap:12px; padding:8px 1px; border-bottom:1px solid var(--line); }
.commercial-comparisons dt,.championship-snapshot-panel dt { color:var(--ink-muted); font-size:.66rem; }
.commercial-comparisons dd,.championship-snapshot-panel dd { margin:0; font-size:.7rem; font-weight:700; text-align:right; }
.overview-activity-list { display:grid; }
.overview-activity-list>div { display:flex; justify-content:space-between; gap:12px; padding:10px 2px; border-bottom:1px solid var(--line); }
.overview-activity-list>div:last-child { border-bottom:0; }
.overview-activity-list span { display:grid; gap:2px; }
.overview-activity-list b { font-size:.73rem; }
.overview-activity-list small,.overview-activity-list time { color:var(--ink-muted); font-size:.65rem; }
.overview-activity-list time { flex:none; font-variant-numeric:tabular-nums; }
.championship-snapshot-panel dl { margin:4px 0 14px; }
.championship-snapshot-panel .quick-actions { justify-content:flex-start; }
@media(min-width:1350px){.commercial-overview-grid{grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);grid-template-areas:"actions conversion" "activity snapshot"}.commercial-actions-panel{grid-area:actions}.commercial-conversion-panel{grid-area:conversion}.recent-entry-activity{grid-area:activity}.championship-snapshot-panel{grid-area:snapshot}}
@media(max-width:1000px){.round-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.commercial-pipeline-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.commercial-overview-grid{grid-template-columns:1fr}}
@media(max-width:720px){.championship-header,.operations-home-header{align-items:flex-start;flex-direction:column}.championship-header-actions{justify-content:flex-start;width:100%}.championship-save-bar button{width:100%}.round-setup-heading{align-items:stretch;flex-direction:column}.round-setup-heading button{width:100%}.round-editor-grid{grid-template-columns:1fr}.round-editor-actions{align-items:stretch;flex-direction:column}.round-editor-actions>*{width:100%}.round-removal-note{text-align:left}.operations-action-list a{grid-template-columns:minmax(0,1fr) auto}.operations-action-list i{display:none}.commercial-pipeline-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.commercial-comparisons{grid-template-columns:1fr}.commercial-event-header .quick-actions{width:100%}.commercial-event-header .quick-actions>*{flex:1;text-align:center}}
/* Historical season navigation */
.season-switcher{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:0 0 .75rem;padding:.55rem .65rem;background:#fff;border:1px solid #d7d9da;border-left:3px solid #ffd400;border-radius:5px}
.season-switcher span{margin-right:.25rem;color:#5b6268;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.season-switcher a{display:inline-flex;align-items:center;justify-content:center;min-width:3.5rem;padding:.34rem .62rem;border:1px solid #c8cbce;border-radius:4px;color:#202326;background:#f7f7f6;font-size:.8rem;font-weight:700;text-decoration:none}
.season-switcher a:hover{border-color:#202326;background:#fff}
.season-switcher a.active{border-color:#202326;background:#202326;color:#fff}
.championship-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
.championship-toolbar .page-crumbs{margin:0}
.championship-season-picker{display:flex;align-items:center;gap:8px;color:var(--ink-muted);font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.championship-season-picker select{min-width:150px;min-height:34px;padding:6px 30px 6px 9px;color:var(--ink);background:#fff;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:4px;font:700 .78rem Arial,Helvetica,sans-serif;text-transform:none;letter-spacing:0}
.entries-season-picker{display:flex;align-items:end;gap:10px;width:max-content;min-width:285px;margin:0 0 10px;padding:8px 10px;border-left:3px solid var(--accent);box-shadow:0 3px 12px rgba(24,33,47,.04)}
.entries-season-picker label{display:grid;gap:4px;min-width:155px;color:var(--ink);font:700 .67rem Arial,Helvetica,sans-serif;letter-spacing:.05em;text-transform:uppercase}
.entries-season-picker select{min-height:32px;padding:5px 28px 5px 8px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:4px;font:700 .78rem Arial,Helvetica,sans-serif;letter-spacing:0;text-transform:none}
.entries-season-state{display:inline-flex;align-items:center;min-height:25px;margin-bottom:3px;padding:4px 8px;border-radius:999px;font:700 .61rem Arial,Helvetica,sans-serif;white-space:nowrap}
.entries-season-state.current{color:#6e5900;background:#fff0a8}.entries-season-state.archive{color:var(--ink-muted);background:var(--surface-soft)}
.quality-shell .standings-header { margin-bottom:10px; }
.quality-shell .standings-header h2 { display:flex; align-items:baseline; flex-wrap:wrap; gap:9px; }
.quality-shell .standings-header h2 span { color:var(--ink-muted); font-size:1.05rem; font-weight:700; }
.quality-shell .standings-season-switcher { display:flex; align-items:center; gap:14px; margin:0 0 14px; padding:9px 12px; background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:var(--radius); box-shadow:0 3px 12px rgba(24,33,47,.04); }
.quality-shell .standings-season-switcher .season-switcher-label { flex:0 0 auto; margin:0; color:var(--ink); font-size:.68rem; letter-spacing:.08em; }
.season-switcher-options { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.quality-shell .standings-season-switcher a { gap:6px; min-width:auto; padding:6px 10px; }
.quality-shell .standings-season-switcher a small { padding:2px 5px; color:#6e5b00; background:#fff0a8; border-radius:3px; font-size:.55rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.quality-shell .standings-season-switcher a.active small { color:#202326; background:var(--accent); }

/* Single-screen championship control view on normal desktop workstations. */
@media(min-width:1350px){
  .championship-dashboard:not(.settings-open) .championship-toolbar{height:40px;margin-bottom:9px}
  .championship-dashboard:not(.settings-open) .year-header{min-height:78px;margin-bottom:10px;padding:14px 17px}
  .championship-dashboard:not(.settings-open) .year-header h2{margin:2px 0 4px;font-size:1.32rem}
  .championship-dashboard:not(.settings-open) .year-header p{font-size:.76rem}
  .championship-dashboard:not(.settings-open) .season-kpis{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-bottom:11px}
  .championship-dashboard:not(.settings-open) .season-kpis a{min-height:78px;gap:3px;padding:10px 11px;border-top-width:3px;box-shadow:0 3px 12px rgba(24,33,47,.04)}
  .championship-dashboard:not(.settings-open) .season-kpis span{font-size:.7rem}
  .championship-dashboard:not(.settings-open) .season-kpis strong{font-size:1.15rem}
  .championship-dashboard:not(.settings-open) .season-kpis small{font-size:.65rem}
  .championship-overview-grid{display:grid;grid-template-columns:minmax(365px,1.25fr) minmax(205px,.75fr) minmax(205px,.75fr) minmax(335px,1.1fr);grid-template-rows:repeat(2,minmax(0,1fr));grid-template-areas:"standings current chart rounds" "standings insight insight rounds";gap:12px;height:calc(100vh - 365px);min-height:420px;max-height:640px}
  .championship-overview-grid .dashboard-main-grid,.championship-overview-grid .participation-grid{display:contents}
  .championship-overview-grid .standings-panel{grid-area:standings}
  .championship-overview-grid .next-round-panel{grid-area:current}
  .championship-overview-grid #rounds{grid-area:rounds}
  .championship-overview-grid #participation>article:first-child{grid-area:chart}
  .championship-overview-grid #participation>article:last-child{grid-area:insight}
  .championship-overview-grid #participation>article:first-child{display:flex;flex-direction:column}
  .championship-overview-grid>.panel,.championship-overview-grid .dashboard-main-grid>.panel,.championship-overview-grid .participation-grid>.panel{min-height:0;margin:0;padding:14px 15px;overflow:hidden}
  .championship-overview-grid .panel-heading{margin-bottom:8px}
  .championship-overview-grid .panel-heading h3{font-size:.98rem}
  .championship-overview-grid .eyebrow{font-size:.65rem}
  .championship-overview-grid .standings-head,.championship-overview-grid .standings-table>a{grid-template-columns:30px minmax(105px,1.2fr) minmax(95px,1fr) minmax(70px,.7fr) 52px;gap:7px;min-height:36px;padding:6px;font-size:.72rem}
  .championship-overview-grid .standings-head{min-height:28px;font-size:.61rem}
  .championship-overview-grid .next-round-panel .round-focus{padding:10px}
  .championship-overview-grid .next-round-panel dl{margin:8px 0}
  .championship-overview-grid .next-round-panel dt,.championship-overview-grid .next-round-panel dd{padding:5px 0;font-size:.7rem}
  .championship-overview-grid .next-round-panel .wide{min-height:34px;padding:7px 9px;font-size:.72rem}
  .championship-overview-grid #participation>article:first-child .season-chart{flex:0 0 145px;width:100%;height:145px;margin:auto 0;padding-top:8px}
  .championship-overview-grid .participation-list a{grid-template-columns:minmax(0,1fr) auto;padding:5px 2px;font-size:.7rem}
  .championship-overview-grid .participation-list i{display:none}
  .championship-overview-grid .participation-list b{font-size:.78rem}
  .championship-overview-grid .round-grid{grid-template-columns:1fr;gap:7px}
  .championship-overview-grid .round-card{display:grid;grid-template-columns:64px minmax(0,1fr) 130px;grid-template-areas:"top summary stats" "top target target";gap:5px 9px;padding:9px 10px}
  .championship-overview-grid .round-card-top{grid-area:top;align-items:flex-start;flex-direction:column;justify-content:flex-start;gap:4px}
  .championship-overview-grid .round-number{min-width:34px;min-height:30px;font-size:.74rem}
  .championship-overview-grid .round-card .status-chip{min-height:22px;padding:4px 6px;font-size:.58rem}
  .championship-overview-grid .round-card-summary{grid-area:summary;min-width:0}
  .championship-overview-grid .round-card h4{overflow:hidden;margin:0 0 3px;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
  .championship-overview-grid .round-card p{overflow:hidden;min-height:0;margin:0;color:var(--ink-muted);font-size:.63rem;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
  .championship-overview-grid .round-stats{grid-area:stats;gap:3px;margin:0}
  .championship-overview-grid .round-stats span{font-size:.58rem;text-align:center}
  .championship-overview-grid .round-stats b{font-size:.76rem}
  .championship-overview-grid .round-card-target{grid-area:target;display:grid;grid-template-columns:minmax(60px,1fr) auto;align-items:center;gap:7px}
  .championship-overview-grid .round-card-target small{color:var(--ink-muted);font-size:.58rem;white-space:nowrap}
}
@media(min-width:1350px) and (max-height:850px){
  .quality-shell .sidebar{padding:10px 14px}
  .quality-shell .brand{gap:5px;margin-bottom:10px;padding:2px 8px 10px}
  .quality-shell .brand img,.quality-shell .sidebar-brand-logo{width:150px}
  .quality-shell .brand>div{margin-top:4px}
  .quality-shell .season-card{margin-bottom:9px;padding:8px 9px 9px}
  .quality-shell .workspace-form{margin-top:7px}
  .quality-shell .workspace-form select,.quality-shell .workspace-form button{min-height:31px;padding:5px 7px}
  .quality-shell .nav-item,.quality-shell .nav-link{min-height:32px;padding:5px 10px}
  .quality-shell .nav-subitem{min-height:25px;padding:3px 8px}
  .quality-shell .nav-submenu{margin-bottom:2px}
  .quality-shell .sidebar-footer,.quality-shell .nav-account{padding-top:8px}
}
@media(max-width:720px){.championship-toolbar{align-items:stretch;flex-direction:column}.championship-season-picker{justify-content:space-between}.championship-season-picker select{flex:1}}
.standings-kpis article { display:grid; gap:4px; min-width:0; padding:14px 15px; background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:var(--radius); box-shadow:0 5px 18px rgba(24,33,47,.055); }
.standings-kpis article span,.standings-kpis article small { overflow:hidden; color:var(--ink-muted); font-size:.71rem; text-overflow:ellipsis; white-space:nowrap; }
.standings-kpis article strong { overflow:hidden; margin:0; color:var(--ink); font:700 1.35rem Arial,Helvetica,sans-serif; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.standings-kpis article strong i { color:var(--ink-muted); font-size:.95rem; font-style:normal; font-weight:600; }
.standings-kpis .leader-kpi { border-top-color:var(--ink); }
.standings-kpis .points-basis-kpi strong { font-size:1rem; }
.championship-standings-panel { overflow:hidden; padding:0; }
.standings-panel-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:17px 18px 13px; }
.standings-panel-header h3 { margin:0; font-size:1.05rem; }
.standings-panel-header p { margin:4px 0 0; }
.standings-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 18px; background:var(--surface-soft); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.standings-toolbar > span { color:var(--ink-muted); font-size:.7rem; font-weight:700; white-space:nowrap; }
.standings-filters { flex-wrap:wrap; }
.standings-filters button { min-height:30px; padding:6px 11px; background:var(--surface); }
.standings-filters button:hover { border-color:#9d870f; background:#fffbea; }
.standings-filters .selected { border-color:#202326; background:#202326; }
.standings-table-wrap { padding:0 18px; }
.championship-table { min-width:850px; }
.championship-table th { padding-top:13px; padding-bottom:10px; font-size:.67rem; }
.championship-table td { height:48px; vertical-align:middle; }
.championship-table th:nth-child(n+5):not(:last-child),.championship-table td:nth-child(n+5):not(:last-child) { text-align:center; }
.championship-table .points-column { text-align:right; }
.championship-table .points-column strong { font-size:.9rem; }
.standing-position { display:inline-grid; place-items:center; width:27px; height:27px; color:var(--ink); border:1px solid transparent; border-radius:50%; font-size:.76rem; font-weight:700; }
.podium-row td { background:#fffdf2; }
.podium-row:hover td { background:#fff9d9!important; }
.podium-1 .standing-position { color:#202326; background:var(--accent); border-color:#d0ae00; }
.podium-2 .standing-position { background:#e8eaec; border-color:#c5c9cc; }
.podium-3 .standing-position { color:#714c25; background:#f1dbc5; border-color:#d7b28e; }
.championship-standings-panel > .table-note { margin:0; padding:11px 18px 14px; border-top:1px solid var(--line); }
@media(max-width:720px){.quality-shell .standings-season-switcher{align-items:flex-start;flex-direction:column;gap:7px}.standings-panel-header{align-items:flex-start;flex-direction:column}.standings-toolbar{align-items:flex-start;flex-direction:column}.standings-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.standings-table-wrap{padding:0 10px}}
@media(max-width:480px){.standings-kpis{grid-template-columns:1fr}.season-switcher-options{width:100%}.quality-shell .standings-season-switcher a{flex:1}}
.points-matrix-panel{overflow:hidden}
.points-matrix-legend{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px 13px;color:var(--ink-muted);font-size:.67rem}
.points-matrix-legend span{display:inline-flex;align-items:center;gap:4px}
.points-matrix-legend b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;color:var(--ink);background:#fff;border:1px solid #cdd0d1;border-radius:3px;font-size:.61rem}
.points-matrix-legend .race-total-key{min-height:20px;padding:3px 7px;color:#6b5900;background:#fff28a;border:1px solid #e1ce28;border-radius:3px;font-weight:700}
.points-matrix-wrap{max-width:100%;padding:0 18px 12px;overflow:auto;overscroll-behavior-inline:contain}
.points-matrix{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;border:1px solid #202326;border-right:0;border-bottom:0;background:#fff;font-variant-numeric:tabular-nums}
.points-matrix th,.points-matrix td{height:34px;padding:5px 7px;border-right:1px solid #202326;border-bottom:1px solid #202326;color:#17191b;background:#fff;font-size:.68rem;text-align:center;white-space:nowrap}
.points-matrix th{color:#202326;font-size:.61rem;letter-spacing:.02em;text-transform:none}
.points-matrix-event-head th{height:42px;background:#f2f3f2;font-weight:700}
.points-matrix-event-head th>span,.points-matrix-event-head th>small{display:block}
.points-matrix-event-head th>small{margin-top:3px;color:#666d72;font-size:.56rem;font-weight:500}
.points-matrix-race-head th{height:29px;padding:4px 6px;background:#f8f8f7;font-size:.58rem;text-transform:uppercase}
.points-matrix .race-total{min-width:43px;background:#fff45c}
.points-matrix .race-total.pending{background:#fffbd1}
.points-matrix .matrix-position{left:0;min-width:44px;width:44px}
.points-matrix .matrix-number{left:44px;min-width:46px;width:46px}
.points-matrix .matrix-driver{left:90px;min-width:180px;width:180px;text-align:left}
.points-matrix .matrix-team{left:270px;min-width:145px;width:145px;text-align:left}
.points-matrix .matrix-total{left:415px;min-width:78px;width:78px;background:#fffbe0}
.points-matrix .matrix-wins,.points-matrix .matrix-poles{min-width:48px;width:48px}
.points-matrix .matrix-adjustment{min-width:48px;background:#fff3dd;font-weight:700}
.points-matrix .matrix-fixed{position:sticky;z-index:2}
.points-matrix thead .matrix-fixed{z-index:4}
.points-matrix tbody tr:hover td{background:#fffbea}
.points-matrix tbody tr:hover .race-total{background:#ffed43}
.points-matrix .matrix-driver a{font-weight:700}
.points-matrix .matrix-driver small{display:block;margin-top:2px;color:#73797e;font-size:.56rem;font-weight:500}
.points-matrix .matrix-total strong{font-size:.8rem}
.points-matrix .result-status{font-weight:800;font-size:.6rem}
.points-matrix-class-band td{position:relative;z-index:3;height:28px;padding:5px 9px;color:#1d2022;background:#f2cf14;font-size:.65rem;font-weight:800;letter-spacing:.045em;text-align:left}
.points-matrix-class-band.team td{color:#073c54;background:#33b5df}
.points-matrix-class-band.overall td{color:#fff;background:#202326}
@media(max-width:900px){.points-matrix-wrap{padding-inline:10px}.points-matrix .matrix-driver{min-width:150px;width:150px}.points-matrix .matrix-team{left:240px;min-width:125px;width:125px}.points-matrix .matrix-total{left:365px}.points-matrix-legend{justify-content:flex-start}}
@media(max-width:640px){.points-matrix .matrix-team{position:static}.points-matrix .matrix-total{left:240px}.points-matrix-legend{display:grid;grid-template-columns:repeat(2,max-content)}.points-matrix th,.points-matrix td{height:32px}}
.event-selection{display:flex;align-items:end;gap:.75rem;min-width:min(100%,34rem)}
.event-selection label{display:grid;gap:.35rem;flex:1}
.quality-shell .event-selection label{font:700 .7rem Arial,Helvetica,sans-serif;letter-spacing:0;text-transform:none}
.event-selection select{width:100%;font:700 .78rem Arial,Helvetica,sans-serif;letter-spacing:0;text-transform:none}
.event-season-context{display:grid;min-width:9.5rem;padding:.5rem .7rem;border:1px solid var(--line);border-left:3px solid #8a9094;border-radius:4px;background:#f6f7f6}
.event-season-context.current{border-left-color:#f2cb13;background:#fffbea}
.event-season-context strong{font-size:.84rem}
.event-season-context small{margin-top:.12rem;color:var(--ink-muted);font-size:.66rem}
@media(max-width:720px){.event-selection{align-items:stretch;flex-direction:column;width:100%}.event-season-context{width:100%}}
.entry-list-toolbar{margin-bottom:10px;padding-bottom:12px}
.entry-list-toolbar .panel-heading{align-items:end;margin-bottom:0}
.entry-list-toolbar .panel-heading p{max-width:760px;margin:4px 0 0}
.entry-pipeline-section{margin-bottom:12px;padding-top:15px}
.entry-pipeline-section.paid-pipeline{border-left:3px solid var(--success)}
.entry-pipeline-section.interest-pipeline{border-left:3px solid var(--accent)}
.entry-pipeline-section .panel-heading{align-items:center;margin-bottom:9px}
.entry-pipeline-section .panel-heading p{margin:3px 0 0}
.pipeline-count{display:grid;place-items:center;min-width:38px;height:32px;padding:0 9px;color:var(--ink);background:#e3f3ec;border-radius:999px;font-size:.82rem;font-weight:800}
.pipeline-count.amber{color:#6f5900;background:#fff0a8}
.entry-pipeline-table{min-width:980px}
.quality-shell .entry-pipeline-table{font-family:Arial,Helvetica,sans-serif}
.quality-shell .entry-pipeline-table th{font:700 .64rem Arial,Helvetica,sans-serif;letter-spacing:.035em}
.quality-shell .entry-pipeline-table td{font:400 .72rem Arial,Helvetica,sans-serif;line-height:1.35}
.quality-shell .entry-pipeline-table td>strong{font-family:Arial,Helvetica,sans-serif;font-size:.76rem}
.quality-shell .entry-pipeline-table td small{font-family:Arial,Helvetica,sans-serif;font-size:.61rem;line-height:1.35}
.quality-shell .event-mini-kpis{gap:24px}
.quality-shell .event-mini-kpis span{display:grid;gap:2px;color:var(--ink-muted);font:400 .68rem Arial,Helvetica,sans-serif;text-align:left}
.quality-shell .event-mini-kpis strong{color:var(--ink);font:700 1.18rem Arial,Helvetica,sans-serif;line-height:1.05}
.quality-shell .event-toolbar{display:grid;grid-template-columns:minmax(360px,1.35fr) minmax(500px,1.65fr);align-items:stretch;gap:14px;padding:14px 16px}
.quality-shell .event-selection{display:grid;grid-template-columns:minmax(220px,1fr) minmax(140px,.68fr);align-items:stretch;gap:10px;min-width:0}
.quality-shell .event-selection label{align-content:center;min-width:0}
.quality-shell .event-selection select{max-width:none;min-height:40px;padding:8px 34px 8px 11px;border-radius:4px;background:#fff}
.quality-shell .event-season-context{align-content:center;min-width:0;min-height:40px;padding:7px 11px}
.quality-shell .event-mini-kpis{display:grid;grid-template-columns:repeat(4,minmax(92px,1fr));align-items:stretch;gap:0;border:1px solid var(--line);border-radius:5px;background:var(--surface-soft);overflow:hidden}
.quality-shell .event-mini-kpis span{align-content:center;justify-items:center;min-width:0;padding:7px 10px;border-left:1px solid var(--line);text-align:center}
.quality-shell .event-mini-kpis span:first-child{border-left:0}
.quality-shell .event-mini-kpis strong{font-size:1.24rem!important}
@media(max-width:1050px){.quality-shell .event-toolbar{grid-template-columns:1fr}.quality-shell .event-mini-kpis{min-height:54px}}
@media(max-width:720px){.quality-shell .event-selection{grid-template-columns:1fr}.quality-shell .event-mini-kpis{grid-template-columns:repeat(2,1fr)}.quality-shell .event-mini-kpis span:nth-child(3){border-left:0}.quality-shell .event-mini-kpis span:nth-child(n+3){border-top:1px solid var(--line)}}
.entry-pipeline-table th:nth-child(5),.entry-pipeline-table td:nth-child(5){min-width:160px}
.entry-pipeline-table th:nth-child(6),.entry-pipeline-table td:nth-child(6){min-width:175px}
.entry-pipeline-table td:nth-child(6) small{white-space:normal}
.entry-pipeline-table .payment-status-select{min-width:86px;padding:5px 24px 5px 8px;border:0;border-radius:999px;font-size:.62rem;font-weight:800}
.entry-pipeline-table .payment-status-select.green{color:var(--success);background:#e3f3ec}
.entry-pipeline-table .payment-status-select.amber{color:#7a5a00;background:#fff1c1}
.withdrawn-entry-note{margin:-2px 0 13px;color:var(--ink-muted);font-size:.68rem;text-align:right}
@media(max-width:720px){.entries-season-picker{align-items:stretch;width:100%;min-width:0}.entries-season-picker label{flex:1}.entry-list-toolbar .panel-heading{align-items:stretch;flex-direction:column}.entry-list-toolbar .filters{width:100%}.entry-list-toolbar .filters input{min-width:0;flex:1}.entry-pipeline-section .panel-heading{align-items:flex-start}.withdrawn-entry-note{text-align:left}}
.insight-season-header{display:flex;align-items:center;justify-content:space-between;gap:22px;border-left:4px solid var(--accent)}
.insight-season-header h2{margin:2px 0 5px;font:700 1.35rem Arial,Helvetica,sans-serif}
.insight-season-header p{margin:0;color:var(--ink-muted);font-size:.74rem}
.insight-header-actions{display:flex;align-items:end;gap:8px}
.insight-header-actions label{display:grid;gap:4px;color:var(--ink-muted);font-size:.66rem;font-weight:700}
.insight-header-actions select{min-width:145px;min-height:36px;background:#fff}
.insight-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.insight-kpis article{display:grid;gap:3px;min-width:0;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:var(--radius);box-shadow:0 5px 18px rgba(24,33,47,.045)}
.insight-kpis span,.insight-kpis small{overflow:hidden;color:var(--ink-muted);font-size:.67rem;text-overflow:ellipsis;white-space:nowrap}
.insight-kpis strong{font:700 1.28rem Arial,Helvetica,sans-serif;line-height:1.1}
.insight-section-heading{align-items:flex-start;margin-bottom:10px}
.insight-section-heading h3{margin:1px 0 0;font-size:.98rem}
.insight-section-heading p{margin:4px 0 0}
.insight-round-chart-panel{padding-bottom:10px}
.insight-chart-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;color:var(--ink-muted);font-size:.62rem}
.insight-chart-legend span{display:inline-flex;align-items:center;gap:4px}
.insight-chart-legend span::before{width:8px;height:8px;border-radius:2px;background:#9ba2a7;content:''}
.insight-chart-legend .interested::before{background:#9ca3a8}.insight-chart-legend .entered::before{background:#202427}.insight-chart-legend .paid::before{background:#16805d}.insight-chart-legend .target::before{height:2px;background:var(--accent)}
.insight-round-chart{display:flex;align-items:stretch;gap:18px;height:248px;padding:34px 10px 0;border-bottom:1px solid var(--line)}
.insight-round-column{display:grid;grid-template-rows:minmax(0,1fr) 49px;flex:1;min-width:90px}
.insight-round-bars{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:5px;border-bottom:1px solid #cfd2d0}
.insight-bar{position:relative;width:min(16%,18px);min-width:10px;min-height:0;color:var(--ink);background:#9ca3a8;border-radius:3px 3px 0 0;text-decoration:none;transition:filter .15s,transform .15s}
.insight-bar.entered{background:#202427}.insight-bar.paid{background:#16805d}
.insight-bar:hover,.insight-bar:focus-visible{filter:brightness(.82);outline:2px solid var(--accent);outline-offset:2px;transform:translateY(-2px)}
.insight-bar b{position:absolute;top:-18px;left:50%;transform:translateX(-50%);font-size:.61rem;line-height:1}
.insight-target-marker{position:absolute;right:2%;left:2%;height:2px;background:var(--accent);font-style:normal;pointer-events:none}
.insight-target-marker span{position:absolute;right:0;top:-15px;padding:1px 3px;color:#765f00;background:#fff7cd;font-size:.57rem;font-weight:700}
.insight-round-label{display:grid;align-content:start;gap:2px;padding-top:6px;color:var(--ink);text-align:center;text-decoration:none}
.insight-round-label strong{font-size:.69rem}.insight-round-label small{overflow:hidden;color:var(--ink-muted);font-size:.59rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.insight-round-label:hover small{text-decoration:underline}
.insight-table{min-width:760px}
.insight-table th{font-size:.62rem}.insight-table td{height:40px;font-size:.7rem;vertical-align:middle}
.insight-table td small{display:block;margin-top:2px;color:var(--ink-muted);font-size:.58rem}
.current-season-row td{background:#fffbea;font-weight:700}
.current-tag{display:inline-flex;margin-left:7px;padding:2px 5px;background:var(--accent);border-radius:3px;font-size:.54rem;text-transform:uppercase}
.insight-analysis-grid,.insight-bottom-grid{grid-template-columns:1fr 1fr;align-items:stretch}
.insight-analysis-grid>.panel,.insight-bottom-grid>.panel{height:100%}
.insight-fact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.insight-fact-grid>a,.insight-fact-grid>div{display:grid;gap:4px;padding:10px;color:var(--ink);background:var(--surface-soft);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:4px;text-decoration:none}
.insight-fact-grid>a:hover{background:#fffbea}.insight-fact-grid span{color:var(--ink-muted);font-size:.64rem}.insight-fact-grid strong{font-size:1rem}
.mix-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mix-columns h4{margin:0 0 5px;font-size:.72rem}
.mix-columns p{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:2px 8px;margin:0;padding:6px 2px;border-bottom:1px solid var(--line);font-size:.68rem}
.mix-columns p strong{text-align:right}.mix-columns p small{grid-column:1/-1;color:var(--ink-muted);font-size:.56rem}
.team-insight-table{min-width:820px}.team-insight-table th:nth-child(n+3),.team-insight-table td:nth-child(n+3){text-align:right}
.round-performance-table{min-width:980px}.round-performance-table td:nth-child(n+4){text-align:right}.round-performance-table tr:hover td{background:#fffbea}
.commercial-observation-list{display:grid}
.commercial-observation-list>a,.commercial-observation-list>div{display:grid;grid-template-columns:minmax(125px,.7fr) minmax(0,1.3fr) auto;align-items:center;gap:10px;padding:9px 3px;color:var(--ink);border-bottom:1px solid var(--line);text-decoration:none}
.commercial-observation-list span{color:var(--ink-muted);font-size:.64rem}.commercial-observation-list strong{font-size:.7rem}.commercial-observation-list i{font-size:.59rem;font-style:normal;font-weight:700}
.commercial-observation-list>a:hover{background:#fffbea}
.safe-reporting-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px;border-left:3px solid var(--accent)}
.safe-reporting-card h3{margin:2px 0 6px}.safe-reporting-card p{max-width:620px;margin:0;line-height:1.55}
.report-actions{display:flex;flex-wrap:wrap;gap:7px}.copy-status{color:var(--success);font-size:.65rem;font-weight:700}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:960px){.insight-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.insight-analysis-grid,.insight-bottom-grid{grid-template-columns:1fr}.insight-round-chart{overflow-x:auto}.insight-round-column{flex:0 0 125px}}
@media(max-width:620px){.insight-season-header{align-items:stretch;flex-direction:column}.insight-header-actions{align-items:stretch;flex-direction:column}.insight-header-actions select{width:100%}.insight-kpis{grid-template-columns:1fr 1fr}.insight-chart-legend{justify-content:flex-start}.insight-round-chart{height:228px;padding-inline:0}.insight-fact-grid{grid-template-columns:1fr 1fr}.mix-columns{grid-template-columns:1fr}.commercial-observation-list>a,.commercial-observation-list>div{grid-template-columns:1fr}.commercial-observation-list i{display:none}}
.circuit-library-panel .panel-heading p{max-width:590px;margin:4px 0 0}
.circuit-config-list{max-height:420px;overflow:auto;border-block:1px solid var(--line)}
.circuit-config-list>.circuit-config-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:54px;padding:8px 4px;border-top:0;border-bottom:1px solid #eceeef}
.circuit-config-list>.circuit-config-row:last-child{border-bottom:0}
.circuit-country{display:grid;place-items:center;min-height:26px;color:var(--ink)!important;background:var(--surface-soft);border:1px solid var(--line);border-radius:4px;font-size:.62rem!important;font-weight:800}
.circuit-identity{min-width:0}.circuit-identity strong{overflow:hidden;font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.circuit-identity small{grid-column:auto;margin-top:3px;font-size:.6rem}
.circuit-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.circuit-row-actions .compact{min-height:30px;padding:5px 9px;font-size:.64rem}.circuit-row-actions button:disabled{cursor:not-allowed;opacity:.55}
.circuit-config-list>.circuit-config-row.editing{grid-template-columns:minmax(0,1fr) auto;padding:12px 4px;background:#fffbea}
.circuit-edit-grid{display:grid;grid-template-columns:1.35fr .45fr 1fr 1.35fr;gap:7px}
.circuit-edit-grid label{display:grid;gap:4px;color:var(--ink-muted);font-size:.58rem;font-weight:700}
.circuit-edit-grid input{min-width:0;padding:7px 8px;background:#fff;border:1px solid var(--line);border-radius:4px;font-size:.68rem}
@media(max-width:760px){.circuit-config-list>.circuit-config-row{grid-template-columns:42px minmax(0,1fr)}.circuit-row-actions{grid-column:1/-1;justify-content:flex-start}.circuit-config-list>.circuit-config-row.editing{grid-template-columns:1fr}.circuit-edit-grid{grid-template-columns:1fr 1fr}}
@media(max-width:430px){.circuit-edit-grid{grid-template-columns:1fr}}
.driver-register-table{min-width:1120px}
.driver-register-table .last-event-cell{min-width:210px;white-space:normal}
.driver-register-table .last-event-cell strong{display:block;line-height:1.3}
.standings-data-banner{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:-4px 0 16px;border-radius:7px;border-left:4px solid;font-size:12px}.standings-data-banner strong{font-size:11px;letter-spacing:.65px}.standings-data-banner span{flex:1;color:#4f565b}.standings-data-banner a{font-weight:700;color:inherit}.standings-data-banner.official{background:#e9f5ef;border-color:#19815e;color:#126548}.standings-data-banner.demo{background:#fae9e7;border-color:#c52e29;color:#9e211d}.reconciliation-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.reconciliation-summary div{background:#f4f5f3;border:1px solid #dedfdd;border-radius:7px;padding:14px}.reconciliation-summary strong,.reconciliation-summary span{display:block}.reconciliation-summary strong{font-size:22px}.reconciliation-summary span{font-size:10px;color:#646b70;margin-top:3px}@media(max-width:760px){.standings-data-banner{align-items:flex-start;flex-direction:column}.reconciliation-summary{grid-template-columns:1fr}}
.global-check-version-field{display:flex!important;align-items:end;gap:8px}.global-check-version-field label{display:grid;gap:3px;font-size:8px;color:#d5d8da}.global-check-version-field input{width:100px}
