Rework command center for race weekends

This commit is contained in:
2026-05-25 11:51:16 -04:00
parent a0f135aac1
commit 79b0b9f469
21 changed files with 1030 additions and 484 deletions

View File

@@ -86,6 +86,36 @@ a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--surface-h); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-utility {
margin-left: auto;
display: flex;
align-items: center;
flex-shrink: 0;
}
.nav-utility-link {
padding: 3px 9px;
font-family: var(--f-mono);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-3);
border: 1px solid var(--border);
border-radius: 2px;
transition: color 0.1s, border-color 0.1s, background 0.1s;
}
.nav-utility-link:hover {
color: var(--text-2);
border-color: var(--border-2);
background: var(--surface-h);
}
.nav-utility-link.active {
color: var(--text);
border-color: var(--border-2);
background: var(--surface-2);
}
/* ── Page ── */
.page {
max-width: 1040px;
@@ -713,6 +743,17 @@ a { color: inherit; text-decoration: none; }
.dl-page-header {
padding: var(--s5) var(--s6);
border-bottom: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 2px;
}
.dl-page-eyebrow {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-3);
}
.dl-page-title {
@@ -720,6 +761,57 @@ a { color: inherit; text-decoration: none; }
font-weight: 700;
}
.dl-page-sub {
font-size: 11px;
color: var(--text-3);
}
.dl-page-banner {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--s5);
flex-wrap: wrap;
padding: var(--s4) var(--s6);
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.dl-banner-titles {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.dl-banner-stats {
display: flex;
flex-wrap: wrap;
gap: var(--s5);
font-size: 11px;
color: var(--text-3);
letter-spacing: 0.05em;
text-transform: uppercase;
}
.dl-banner-stats em {
font-style: normal;
font-weight: 700;
font-size: 15px;
color: var(--text-2);
margin-right: 4px;
}
.dl-banner-stats em.dl-stat-full { color: var(--green); }
.dl-banner-stats em.dl-stat-partial { color: var(--yellow); }
.dl-footer-link {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--s4);
}
.dl-footer-back { color: var(--text-3); }
.dl-footer-back:hover { color: var(--text); }
.dl-layout {
display: grid;
grid-template-columns: 220px 1fr;
@@ -1062,38 +1154,43 @@ a { color: inherit; text-decoration: none; }
/* ── Command Center ── */
.cc-page {
max-width: 1120px;
max-width: 1160px;
margin: 0 auto;
padding: var(--s5) var(--s6);
min-height: calc(100vh - var(--nav-h));
display: flex;
flex-direction: column;
gap: var(--s5);
--gp-accent: var(--red);
}
.cc-header {
.cc-topbar {
display: flex;
align-items: flex-start;
justify-content: space-between;
align-items: center;
gap: var(--s5);
margin-bottom: var(--s5);
padding-bottom: var(--s5);
flex-wrap: wrap;
padding-bottom: var(--s4);
border-bottom: 1px solid var(--border);
}
.cc-title {
font-size: 16px;
.cc-topbar-label {
font-size: 10px;
font-weight: 700;
margin-bottom: 2px;
}
.cc-subtitle {
font-size: 12px;
font-family: var(--f-mono);
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-3);
}
.cc-topbar-meta {
font-size: 11px;
color: var(--text-2);
}
.cc-live-pill {
display: flex;
display: inline-flex;
align-items: center;
gap: var(--s3);
margin-left: auto;
font-size: 11px;
font-family: var(--f-mono);
color: var(--text-2);
@@ -1118,143 +1215,332 @@ a { color: inherit; text-decoration: none; }
border: 1px solid rgba(225, 6, 0, 0.35);
}
.cc-summary {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 1px;
/* GP identity band */
.cc-weekend-band {
display: flex;
background: var(--surface);
border: 1px solid var(--border);
margin-bottom: var(--s5);
border-radius: 4px;
overflow: hidden;
min-height: 124px;
}
.cc-stat {
padding: var(--s4);
background: var(--surface);
.cc-band-accent {
width: 6px;
background: var(--gp-accent);
flex-shrink: 0;
}
.cc-band-body {
flex: 1;
padding: var(--s5);
min-width: 0;
}
.cc-band-row {
display: flex;
align-items: stretch;
gap: var(--s6);
min-width: 0;
}
.cc-band-decal {
font-size: 56px;
font-weight: 800;
letter-spacing: -0.04em;
line-height: 0.9;
color: var(--text);
opacity: 0.9;
align-self: center;
flex-shrink: 0;
}
.cc-band-titles {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.cc-stat-label {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-3);
}
.cc-stat-val {
font-family: var(--f-mono);
font-size: 18px;
font-weight: 700;
color: var(--text-2);
}
.cc-stat-full { color: var(--green); }
.cc-stat-partial { color: var(--yellow); }
.cc-grid {
display: grid;
grid-template-columns: 1fr;
gap: var(--s5);
align-items: start;
}
.cc-panel {
background: var(--surface);
border: 1px solid var(--border);
padding: var(--s5);
}
.cc-side {
display: flex;
flex-direction: column;
gap: var(--s5);
}
.cc-focus-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--s4);
margin-bottom: var(--s4);
}
.cc-focus-name {
font-size: 15px;
font-weight: 700;
margin-bottom: 2px;
}
.cc-focus-meta {
font-size: 11px;
color: var(--text-3);
}
.cc-circuit {
font-size: 11px;
color: var(--text-2);
padding: 2px 8px;
border: 1px solid var(--border);
border-radius: 2px;
}
.cc-focus-status {
margin-bottom: var(--s5);
display: flex;
flex-direction: column;
gap: var(--s3);
}
.cc-status-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--s3);
font-size: 12px;
color: var(--text-2);
}
.cc-status-row.muted { color: var(--text-3); }
.cc-status-label {
.cc-band-eyebrow {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-3);
}
.cc-status-value { font-weight: 600; color: var(--text); }
.cc-countdown {
font-size: 13px;
font-weight: 700;
color: var(--red);
}
.cc-schedule-table { margin-top: var(--s3); }
.cc-schedule-table .badge { margin-left: var(--s3); }
.cc-session-type {
.cc-kind {
display: inline-flex;
align-items: center;
gap: 4px;
}
.cc-kind-live { color: var(--red); }
.cc-kind-current { color: var(--text); }
.cc-kind-next { color: var(--text-2); }
.cc-kind-recent { color: var(--text-3); }
.cc-band-name {
font-size: 22px;
font-weight: 700;
line-height: 1.15;
margin-top: 2px;
}
.cc-band-sub {
font-size: 11px;
color: var(--text-3);
}
.cc-band-dates {
color: var(--text-2);
}
.cc-countdown-block {
flex-shrink: 0;
border-left: 1px solid var(--border);
padding-left: var(--s6);
display: flex;
flex-direction: column;
justify-content: center;
min-width: 28px;
padding: 1px 4px;
margin-right: var(--s3);
font-family: var(--f-mono);
align-items: flex-end;
gap: 4px;
text-align: right;
min-width: 200px;
}
.cc-cd-label {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-3);
}
.cc-cd-value {
font-size: 24px;
font-weight: 700;
color: var(--text);
font-variant-numeric: tabular-nums;
line-height: 1.05;
}
.cc-cd-live { color: var(--red); }
.cc-cd-current { color: var(--text); }
.cc-cd-done { color: var(--text-2); }
.cc-cd-sub {
font-size: 11px;
color: var(--text-3);
}
/* Primary actions */
.cc-actions-row {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: var(--s3);
}
.cc-pri-action {
display: flex;
flex-direction: column;
gap: 2px;
padding: var(--s4) var(--s5);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
border-left: 3px solid var(--gp-accent);
transition: background 0.1s, border-color 0.1s;
min-width: 0;
}
.cc-pri-action:hover {
background: var(--surface-h);
border-color: var(--border-2);
border-left-color: var(--gp-accent);
}
.cc-pri-action.is-live {
border-left-color: var(--red);
background: rgba(225, 6, 0, 0.05);
}
.cc-pri-label {
font-size: 13px;
font-weight: 700;
color: var(--text);
}
.cc-pri-meta {
font-size: 11px;
color: var(--text-3);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Schedule strip */
.cc-schedule { display: flex; flex-direction: column; gap: var(--s3); }
.cc-session-strip {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: var(--s3);
}
.cc-session-card {
display: flex;
flex-direction: column;
gap: 4px;
padding: var(--s3) var(--s4);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
min-width: 0;
transition: background 0.1s, border-color 0.1s;
}
.cc-session-card:hover {
background: var(--surface-h);
border-color: var(--border-2);
}
.cc-session-card.is-current {
border-color: rgba(225, 6, 0, 0.4);
background: rgba(225, 6, 0, 0.06);
}
.cc-session-card.is-next {
border-color: rgba(255, 214, 0, 0.35);
background: rgba(255, 214, 0, 0.04);
}
.cc-status-done { opacity: 0.78; }
.cc-session-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--s3);
}
.cc-session-abbrev {
font-size: 11px;
font-weight: 800;
letter-spacing: 0.05em;
color: var(--text-2);
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 2px;
padding: 1px 6px;
min-width: 28px;
text-align: center;
}
.cc-row-live td { background: rgba(225, 6, 0, 0.06); }
.cc-row-next td { background: rgba(255, 214, 0, 0.04); }
.cc-session-status {
font-size: 9px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-3);
white-space: nowrap;
}
.cc-status-pill-live { color: var(--red); }
.cc-status-pill-upcoming { color: var(--yellow); }
.cc-status-pill-done { color: var(--text-3); }
.cc-actions {
.cc-session-name {
font-size: 12px;
font-weight: 600;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cc-session-time {
font-size: 10px;
color: var(--text-2);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cc-session-cov {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 10px;
color: var(--text-3);
margin-top: 2px;
}
.cc-cov-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-3);
flex-shrink: 0;
}
.cc-cov-local { background: var(--green); }
.cc-cov-partial { background: var(--yellow); }
.cc-cov-none { background: var(--text-3); opacity: 0.5; }
/* Recent weekends strip */
.cc-recent { display: flex; flex-direction: column; gap: var(--s3); }
.cc-recent-strip {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: var(--s3);
}
.cc-recent-card {
display: flex;
flex-direction: column;
gap: 1px;
gap: 4px;
padding: var(--s3) var(--s4);
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
transition: background 0.1s, border-color 0.1s;
min-width: 0;
}
.cc-recent-card:hover {
background: var(--surface-h);
border-color: var(--border-2);
}
.cc-recent-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--s3);
}
.cc-recent-decal {
font-size: 11px;
font-weight: 800;
letter-spacing: 0.06em;
color: var(--text-2);
}
.cc-recent-name {
font-size: 12px;
font-weight: 600;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cc-recent-meta {
font-size: 10px;
color: var(--text-3);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cc-side-empty {
font-size: 12px;
color: var(--text-3);
padding: var(--s4) 0;
}
.cc-action {
@@ -1262,62 +1548,77 @@ a { color: inherit; text-decoration: none; }
flex-direction: column;
gap: 2px;
padding: var(--s4);
background: var(--surface-h);
transition: background 0.1s;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 4px;
transition: background 0.1s, border-color 0.1s;
}
.cc-action:hover { background: var(--surface-2); }
.cc-action:hover { background: var(--surface-h); border-color: var(--border-2); }
.cc-action-label { font-size: 13px; font-weight: 600; color: var(--text); }
.cc-action-meta { font-size: 11px; font-family: var(--f-mono); color: var(--text-3); }
.cc-action-live { border-left: 3px solid var(--red); }
.cc-action-label {
font-size: 13px;
font-weight: 600;
color: var(--text);
/* Empty command center */
.cc-empty {
max-width: 720px;
gap: var(--s5);
}
.cc-action-meta {
font-size: 11px;
font-family: var(--f-mono);
color: var(--text-3);
}
.cc-session-list {
.cc-empty-band {
padding: var(--s6) var(--s5);
background: var(--surface);
border: 1px solid var(--border);
border-left: 3px solid var(--red);
border-radius: 4px;
display: flex;
flex-direction: column;
gap: 1px;
border: 1px solid var(--border);
gap: var(--s2);
}
.cc-session-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--s4);
padding: var(--s3) var(--s4);
background: var(--surface-h);
transition: background 0.1s;
}
.cc-session-row:hover { background: var(--surface-2); }
.cc-session-row-title {
font-size: 12px;
font-weight: 600;
}
.cc-session-row-meta {
.cc-empty-eyebrow {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-3);
margin-top: 1px;
}
.cc-side-empty,
.cc-cli-section {
font-size: 12px;
color: var(--text-3);
.cc-empty-title {
font-size: 22px;
font-weight: 700;
}
.cc-empty-sub {
font-size: 13px;
color: var(--text-2);
max-width: 56ch;
}
.cc-empty-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--s3);
}
.mono { font-family: var(--f-mono); }
@media (min-width: 1101px) {
.cc-grid { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
/* Tablet */
@media (max-width: 900px) {
.cc-band-row {
flex-direction: column;
gap: var(--s4);
}
.cc-band-decal { font-size: 44px; align-self: flex-start; }
.cc-countdown-block {
border-left: none;
border-top: 1px solid var(--border);
padding-left: 0;
padding-top: var(--s4);
align-items: flex-start;
text-align: left;
width: 100%;
}
.cc-actions-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ── Mobile ── */
@@ -1370,7 +1671,15 @@ a { color: inherit; text-decoration: none; }
.dl-content-header { padding: var(--s3) var(--s4); }
.dl-content-meta { font-size: 11px; }
.cc-page { padding: var(--s4); }
.cc-header { flex-direction: column; align-items: flex-start; }
.cc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-page { padding: var(--s4); gap: var(--s4); }
.cc-topbar { gap: var(--s3); }
.cc-live-pill { margin-left: 0; }
.cc-band-body { padding: var(--s4); }
.cc-band-name { font-size: 18px; }
.cc-band-decal { font-size: 36px; }
.cc-cd-value { font-size: 20px; }
.cc-countdown-block { min-width: 0; }
.cc-actions-row { grid-template-columns: 1fr; }
.cc-empty-actions { grid-template-columns: 1fr; }
.cc-empty-title { font-size: 19px; }
}