/* GC-11a: the GenieCloud team site in the myRaceGENIE "Pit Wall" look (my/tokens.css): a side menu, dark panels,
   lime for what matters, white "paper" panels for people and plans, Barlow Condensed headings, IBM Plex Mono figures.
   Dense: small text, tight spacing. Scoped to body.gc so myRaceGENIE (which also loads admin.css) is unchanged. */
body.gc {
  --bg: var(--c-bg);
  --panel: var(--c-panel);
  --raised: var(--c-raised);
  --line: var(--c-line);
  --text: var(--c-text);
  --muted: var(--c-muted);
  --lime: var(--c-lime);
  --blue: var(--c-mate);
  --amber: var(--c-amber);
  --red: var(--c-danger);
  --ink: var(--c-on-lime);
  background: var(--c-bg);
  color: var(--c-text);
  font: 13px/1.4 var(--f-body);
}
body.gc button,
body.gc input,
body.gc select,
body.gc textarea {
  background: var(--c-panel-alt);
  border-color: var(--c-line-strong);
  border-radius: var(--r-pill);
}
body.gc button.primary,
body.gc .gc-cta {
  background: var(--c-lime);
  border-color: var(--c-lime);
  color: var(--c-on-lime);
}
body.gc a {
  color: var(--c-lime);
}
body.gc a:hover {
  color: var(--c-lime-hover);
}
.gc-skip {
  position: absolute;
  left: -999px;
}
.gc-skip:focus {
  left: 8px;
  top: 8px;
  z-index: 10;
}

/* The shell: the side menu and the page. */
.gc-shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}
.gc-side {
  position: sticky;
  top: 0;
  z-index: 30; /* WEB-13: Choose team draws above the page's sticky table headers */
  flex: 0 0 196px;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 14px 10px;
  border-right: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.gc-brand b {
  color: var(--c-lime);
}
.gc-mark {
  color: var(--c-lime);
  display: inline-flex;
}
.gc-side .team-pick {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 6px;
  font-size: 11px;
}
.gc-side .views {
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.gc-menu {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gc-menu[hidden] {
  display: none;
}
.gc-menu button,
.gc-menu a {
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--r-card);
  padding: 6px 10px;
  min-height: 32px;
  color: var(--c-text2);
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  transition:
    background var(--m-press) ease,
    color var(--m-press) ease;
}
.gc-menu button:hover,
.gc-menu a:hover {
  color: var(--c-text);
  background: var(--c-panel);
}
/* UX-1: the page you are on: lime text and edge on the soft lime fill (lime marks "you are here", not a big block) */
body.gc .views button[aria-pressed='true'] {
  background: var(--c-lime-soft);
  color: var(--c-lime);
  font-weight: 600;
  box-shadow: inset 2px 0 var(--c-lime);
}
.gc-ico16 {
  flex: none;
  opacity: 0.85;
}
.gc-menu-k {
  padding: 2px 10px 4px;
  color: var(--c-muted);
  font: 500 10px/14px var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gc-more {
  display: none !important;
}
.views a.to-my::after {
  content: ' ↗';
}
.gc-you {
  border-top: 1px solid var(--c-line);
  padding-top: 8px;
}
body.gc .views a.to-my {
  margin: 0;
  padding: 6px 10px;
  color: var(--c-text2);
  font-size: 13px;
  align-self: stretch;
}
.gc-body {
  flex: 1 1 auto;
  min-width: 0;
}
.gc-top {
  display: flex;
  justify-content: flex-end;
  background: none;
  border: 0;
  padding: 8px 18px 0;
}
body.gc main {
  padding: 4px 18px 30px;
  max-width: 1180px;
}

/* Page head: the page's name, then the team. */
.gc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
}
body.gc h1.gc-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.gc-teamline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.gc-teamline #team-name {
  font-weight: 600;
}
body.gc h2,
.gc-h {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-text2);
  margin: 0 0 6px;
}
body.gc .grid {
  gap: 10px;
}
.gc-page > .wide {
  grid-column: 1 / -1;
}
body.gc section {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-panel);
  padding: 10px 12px;
}
.gc-mono,
.gc-big {
  font-family: var(--f-mono);
}
.gc-big {
  font-size: 20px;
}
.gc-big small {
  font-size: 12px;
  color: var(--c-muted);
}
.gc-sub {
  font-size: 11px;
  color: var(--c-muted);
}
.gc-warn {
  color: var(--c-amber);
}
.gc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
}
.gc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.gc-cta,
.gc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--r-control);
  text-decoration: none;
  font-weight: 600;
}
.gc-cta {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
}
body.gc a.gc-cta {
  color: var(--c-on-lime);
}
body.gc .gc-btn {
  border: 1px solid var(--c-line-strong);
  color: var(--c-text);
  background: transparent;
}
.gc-chip {
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-programme);
  padding: 6px 10px;
}
.gc-small {
  min-height: 26px;
  padding: 0 8px;
  color: var(--c-text2);
}
button.link.gc-inline {
  color: var(--c-lime);
  padding: 0;
}
.gc-empty p {
  margin: 0;
}

/* PERF-1: the team page's skeleton while its first load arrives (drawn at once after signing in). */
.gc-skeleton h1 {
  margin-bottom: 4px;
}
.gc-skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}
.gc-skel {
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--c-panel) 0%, var(--c-raised) 50%, var(--c-panel) 100%);
  background-size: 200% 100%;
  animation: gc-skel 1.2s ease-in-out infinite;
}
.gc-skel-wide {
  height: 140px;
}
@keyframes gc-skel {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gc-skel {
    animation: none;
  }
}

/* Paper panels: people and plans. */
body.gc section.gc-paper {
  background: var(--c-paper);
  color: var(--c-paper-ink);
  border-color: var(--c-paper);
}
body.gc .gc-paper h2,
body.gc .gc-paper .gc-h {
  color: var(--c-paper-ink);
}
.gc-paper .gc-sub {
  color: var(--c-paper-muted);
}
body.gc .gc-paper a {
  color: var(--c-paper-ink);
}
body.gc .gc-paper .gc-btn {
  color: var(--c-paper-ink);
  border-color: var(--c-track);
}
body.gc .gc-paper .gc-btn.ink {
  background: var(--c-paper-ink);
  color: var(--c-paper);
}
.gc-paper p {
  margin: 4px 0;
}

/* Team home: the next meeting. */
body.gc section.gc-hero {
  background: var(--c-lime);
  color: var(--c-on-lime);
  border-color: var(--c-lime);
  border-radius: var(--r-hero);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: stretch;
}
body.gc .gc-hero a {
  color: var(--c-on-lime);
  font-weight: 600;
}
body.gc section.gc-hero-quiet {
  display: block;
  background: var(--c-panel);
  color: var(--c-text);
  border-color: var(--c-line);
}
.gc-hero-quiet p {
  margin: 4px 0 0;
}
.gc-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.gc-hero-main {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-hero-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 0.95;
  text-transform: uppercase;
}
.gc-count {
  background: var(--c-bg);
  color: var(--c-lime);
  border-radius: var(--r-panel);
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gc-count b {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
}
.gc-count span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.gc-ready {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  min-width: 0;
}
.gc-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.gc-step {
  height: 9px;
  border-radius: 3px;
  background: rgba(14, 16, 18, 0.18);
}
.gc-step.done {
  background: var(--c-on-lime);
}
.gc-step-labels {
  font-size: 11px;
  font-weight: 600;
}
.gc-step-labels span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gauges. */
.gc-gauges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
body.gc .gc-gauge {
  display: flex;
  gap: 12px;
  align-items: center;
}
body.gc .gc-gauge.gc-col {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
}
.gc-gauge h2 {
  margin: 0;
}
.gc-ring .track,
.gc-donut .track {
  stroke: var(--c-line);
}
.gc-ring .fill {
  stroke: var(--c-lime);
}
.gc-ring .fill.over {
  stroke: var(--c-amber);
}
.gc-ring text {
  fill: var(--c-text);
  font: 15px var(--f-mono);
}
.gc-split {
  display: flex;
  gap: 2px;
  height: 12px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--c-line);
}
.gc-split span {
  display: block;
  height: 100%;
}
.gc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--c-text2);
}
.gc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.gc-legend.gc-stack {
  flex-direction: column;
  gap: 6px;
}
.gc-paper .gc-legend {
  color: var(--c-paper-text2);
}
.gc-legend i,
.gc-person i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.gc-legend i.line {
  width: 14px;
  height: 0;
  border-top: 2px solid var(--c-lime);
  border-radius: 0;
}
.gc-legend i.dotted {
  border-top: 2px dotted var(--c-lime);
}
.gc-legend i.dashed {
  border-top: 2px dashed var(--c-line-strong);
}
.gc-seats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.gc-seat {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px dashed var(--c-line-strong);
  box-sizing: border-box;
}
.gc-seat.on {
  background: var(--c-lime);
  border: 0;
}

/* Series colours (fixed order: lime, blue, amber, violet; the fifth and on fold into grey). */
.s0 {
  background: var(--c-lime);
  fill: var(--c-lime);
  stroke: var(--c-lime);
}
.s1 {
  background: var(--c-mate);
  fill: var(--c-mate);
  stroke: var(--c-mate);
}
.s2 {
  background: var(--c-amber);
  fill: var(--c-amber);
  stroke: var(--c-amber);
}
.s3 {
  background: #c792ea;
  fill: #c792ea;
  stroke: #c792ea;
}
.s4 {
  background: var(--c-muted);
  fill: var(--c-muted);
  stroke: var(--c-muted);
}
.ink {
  background: var(--c-paper-ink);
  stroke: var(--c-paper-ink);
}
.free {
  background: var(--c-paper-line);
  border: 1px solid var(--c-track);
}
.k0 {
  background: var(--c-text);
}
.k1 {
  background: var(--c-paper-muted);
}
.k2 {
  background: var(--c-muted);
}
.gc-chart rect.empty {
  fill: var(--c-line);
}
.gc-chart .grid {
  stroke: var(--c-line);
  stroke-width: 1;
  fill: none;
}
.gc-chart .even {
  stroke: var(--c-line-strong);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  fill: none;
}
.gc-chart .limit {
  stroke: var(--c-track);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  fill: none;
}
.gc-chart .used {
  stroke: var(--c-lime);
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
}
.gc-chart .pace {
  stroke: var(--c-lime);
  stroke-width: 2;
  stroke-dasharray: 3 5;
  fill: none;
}
.gc-paper .gc-chart .used {
  stroke: var(--c-mate);
}
.gc-paper .gc-chart .area {
  fill: #dce8f8;
}
.gc-paper .gc-chart .dot {
  fill: var(--c-mate);
}
.gc-donut .s1,
.gc-donut .ink {
  fill: none;
}
.gc-paper .gc-donut .track {
  stroke: var(--c-paper-line);
}
.gc-donut text {
  fill: var(--c-paper-ink);
  font: 18px var(--f-mono);
}
.gc-donut text.sub {
  font: 11px var(--f-body);
  fill: var(--c-paper-muted);
}
.gc-axis {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-muted);
}

/* Bars and cards. */
.gc-bar {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--c-paper-line);
  overflow: hidden;
}
.gc-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--c-paper-ink);
}
.gc-bar.dark {
  background: var(--c-line);
}
.gc-bar.paper > span {
  background: var(--c-mate);
}
.gc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}
.gc-driver,
.gc-seatcard {
  border: 1px solid var(--c-paper-line);
  border-radius: var(--r-control);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.gc-driver.guest {
  border-style: dashed;
  border-color: var(--c-track);
}
.gc-seatcard {
  border-color: var(--c-line);
}
.gc-seatcard.gc-free {
  border-style: dashed;
  border-color: var(--c-line-strong);
  justify-content: center;
}
.gc-who {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.gc-avatar {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--c-on-lime);
}
.gc-avatar.s1,
.gc-avatar.s4 {
  color: #fff;
}
.gc-devices {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
.gc-devices > span {
  overflow-wrap: anywhere;
}
.gc-ico {
  color: var(--c-text2);
  display: inline-flex;
}
.gc-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}
.gc-feed {
  display: grid;
  grid-template-columns: 10px 44px minmax(0, 1fr);
  gap: 7px 8px;
  align-items: start;
  margin-bottom: 6px;
}
.gc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--c-muted);
}
.gc-dot.k-member,
.gc-dot.k-driver {
  background: var(--c-lime);
}
.gc-dot.k-video {
  background: var(--c-mate);
}

/* Plan and usage: two columns that wrap. */
.gc-split-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.gc-wide-col {
  flex: 2 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-narrow-col {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gc-narrow-col p {
  margin: 0;
}
.gc-ruled {
  border-top: 1px solid var(--c-line);
  padding-top: 10px;
  margin-top: 10px;
}
.gc-paper .gc-ruled {
  border-color: var(--c-paper-line);
}
.gc-person {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gc-person .gc-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gc-donut-box {
  flex: 1 1 220px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.gc-biggest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 2fr);
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 8px;
}
.gc-biggest > span:first-child,
.gc-biggest > span:nth-child(3n + 1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gc-ents-box .ents div b {
  font-family: var(--f-mono);
}

.gc-bar > span.s0 {
  background: var(--c-lime);
}
.gc-bar > span.s1 {
  background: var(--c-mate);
}
.gc-bar > span.s2 {
  background: var(--c-amber);
}
.gc-bar > span.s3 {
  background: #c792ea;
}
.gc-bar > span.s4 {
  background: var(--c-muted);
}
body.gc .gc-brand span {
  color: var(--c-text);
  font-size: inherit;
  margin-left: 0;
}
body.gc .gc-brand .gc-mark {
  color: var(--c-lime);
}

/* GC-11b: Announcements, Drivers and Meetings (teampages.js). */
.tp-compose-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.tp-compose {
  flex: 3 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-compose label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--c-paper-text2);
}
body.gc .tp-compose input,
body.gc .tp-compose select,
body.gc .tp-compose textarea {
  background: var(--c-paper);
  color: var(--c-paper-ink);
  border: 1px solid var(--c-track);
  border-radius: var(--r-control);
  min-width: 0;
  max-width: 100%;
}
.tp-preview {
  flex: 1 1 220px;
  min-width: 0;
}
.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.gc .tp-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid var(--c-track);
  background: transparent;
  color: inherit;
  font-weight: 600;
}
body.gc .tp-chip[aria-pressed='true'] {
  background: var(--c-paper-ink);
  color: var(--c-paper);
  border-color: var(--c-paper-ink);
}
body.gc .tp-pace .tp-chip[aria-pressed='true'],
body.gc section:not(.gc-paper) .tp-chip[aria-pressed='true'] {
  background: var(--c-lime);
  color: var(--c-on-lime);
  border-color: var(--c-lime);
}
.tp-people {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
body.gc .tp-pchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f2f3;
  color: var(--c-paper-ink);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 2px 8px 2px 2px;
  font-size: 12px;
  max-width: 100%;
}
body.gc button.tp-pchip[aria-pressed='true'] {
  border-color: var(--c-paper-ink);
  background: var(--c-lime);
}
.tp-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-track);
  color: var(--c-paper-ink);
  font-size: 9px;
  font-weight: 600;
}
.tp-av.driver {
  background: var(--c-paper-ink);
  color: var(--c-lime);
}
.tp-av.guest {
  background: transparent;
  border: 2px dashed var(--c-muted);
  box-sizing: border-box;
}
.tp-av.read {
  background: var(--c-lime);
  color: var(--c-on-lime);
}
.tp-av.unread {
  background: transparent;
  border: 2px solid var(--c-line-strong);
  color: var(--c-muted);
  box-sizing: border-box;
}
.tp-av.big {
  width: 34px;
  height: 34px;
  font-size: 12px;
  background: var(--c-paper-ink);
  color: var(--c-lime);
}
.tp-av.big.guest {
  background: transparent;
}
.tp-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
body.gc .tp-checks label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  color: var(--c-paper-ink);
  font-size: 13px;
}
.tp-phone {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.tp-push {
  background: var(--c-line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.tp-push > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tp-mark {
  color: var(--c-lime);
  flex: none;
}
.tp-push-head {
  font-weight: 600;
  font-size: 12px;
}
.tp-push-title {
  font-size: 12px;
}
.tp-push-body {
  font-size: 12px;
  color: var(--c-text2);
}
.tp-sent {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 8px 16px;
  align-items: start;
  border-top: 1px solid var(--c-line);
  padding: 8px 0;
}
.tp-msg {
  overflow-wrap: anywhere;
}
.tp-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.tp-names {
  margin: 4px 0 0;
  padding-left: 16px;
}
@media (max-width: 640px) {
  .tp-sent {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Drivers */
.tp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}
body.gc .tp-card {
  background: var(--c-panel);
  color: var(--c-text);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-card);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tp-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tp-spark {
  width: 100%;
  height: 48px;
  color: var(--c-paper-ink);
}
.tp-spark-none {
  min-height: 24px;
}
.tp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.tp-stats div {
  display: flex;
  flex-direction: column;
}
.tp-stats b {
  font-family: var(--f-mono);
  font-size: 15px;
}
.tp-stats span {
  font: 500 10px/14px var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.tp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tp-badge {
  font-size: 11px;
  border: 1px solid var(--c-track);
  border-radius: 10px;
  padding: 1px 7px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-badge.ok {
  background: var(--c-lime);
  border-color: var(--c-lime);
  color: var(--c-on-lime);
}
.tp-badge.warn {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-on-lime);
}
.tp-share {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-line);
  margin: 6px 0;
}
.tp-seg.s0 {
  background: var(--c-lime);
}
.tp-seg.s1 {
  background: var(--c-mate);
}
.tp-seg.s2 {
  background: var(--c-text2);
}
.tp-seg.s3 {
  background: var(--c-amber);
}
.tp-seg.s4 {
  background: var(--c-muted);
}
.gc-legend i.tp-seg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Meetings */
.tp-plan-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tp-plan-name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
}
.tp-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
}
.tp-list {
  list-style: none;
  margin: 4px 0;
  padding: 0;
}
.tp-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--c-line);
  padding: 3px 0;
}
.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}
.tp-table td,
.tp-table th {
  text-align: left;
  padding: 3px 6px 3px 0;
  border-top: 1px solid var(--c-line);
  overflow-wrap: anywhere;
}
.tp-plan {
  margin: 6px 0 10px;
  min-width: 0;
}
.tp-kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 12px;
  margin: 0 0 6px;
}
.tp-kv dt {
  color: var(--c-muted);
}
.tp-kv dd {
  margin: 0;
}
.tp-pace {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  min-width: 0;
  overflow-x: auto;
}
.tp-pace-table tr[draggable='true'] {
  cursor: grab;
}
.tp-grip {
  color: var(--c-muted);
}
.tp-move {
  white-space: nowrap;
}
.tp-move .gc-btn {
  min-height: 24px;
  padding: 0 7px;
  margin-right: 2px;
}

/* FX-5: invite a driver by email, and "Invite the line-up" */
.tp-handover {
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.tp-handover .invite-qr {
  display: block;
  width: 132px;
  height: 132px;
  margin-top: 6px;
  border-radius: 4px;
}
.tp-invite {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.tp-invite input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}
/* INV-1: with the role picker and This is me the email takes its own line */
.tp-invite:has(select, [data-tp='this-is-me']) {
  flex-wrap: wrap;
}
.tp-invite:has(select, [data-tp='this-is-me']) input {
  flex-basis: 100%;
}
.tp-invite select {
  font-size: 12px;
  min-width: 0;
}
/* INV-1: the card is paper: its email and role read dark on light, as the card's text */
.tp-card .tp-invite input,
.tp-card .tp-invite select {
  background: var(--c-panel-alt);
  color: var(--c-text);
  border: 1px solid var(--c-control-border);
}
.tp-lineup {
  gap: 10px;
  align-items: center;
}

/* FX-C: Meetings as the Mac's hub */
.tp-phase-group + .tp-phase-group {
  margin-top: 10px;
}
.tp-phase-title {
  margin: 4px 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tp-day + .tp-day {
  margin-top: 6px;
}
.tp-when {
  width: 6.5em;
  white-space: nowrap;
}
.tp-pub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 12px;
}
.tp-publish {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tp-publish input {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 12px;
}
.tp-ok {
  color: var(--c-lime);
}

/* ============================================================================================================== */
/* UX-1: the team site on the Pit Wall system (ui.css + my/tokens.css): team chip, workspace head, Team home,       */
/* Meetings and the meeting hub, Drivers. Dense: 12-13px text, 11px meta; 44px targets on touch pointers.           */
/* ============================================================================================================== */

body.gc {
  font-variant-numeric: tabular-nums;
}
body.gc .gc-menu button {
  background: transparent;
  border: 0;
}
body.gc .hm-row.gc-driver {
  display: grid;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  border-radius: 0;
  padding: 6px 12px;
}
body.gc .hm-row.gc-driver:last-child {
  border-bottom: 0;
}
body.gc .gc-paper button.link {
  color: var(--c-paper-ink);
}
body.gc :where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 2px;
}
body.gc .gc-btn.primary {
  background: var(--c-lime);
  border-color: var(--c-lime);
  color: var(--c-on-lime);
}
body.gc .gc-btn:disabled {
  opacity: 0.45;
}
body.gc .pw-btn {
  text-decoration: none;
}
body.gc a.pw-btn.primary {
  color: var(--c-on-lime);
}

/* ---- Team chip and Choose team (UX-1d) ---------------------------------------------------------------------------- */
.team-pick {
  position: relative;
}
.tc-slot {
  display: flex;
  gap: 4px;
  align-items: stretch;
}
.tc-chip {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 10px;
  text-align: left;
  background: var(--c-panel);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-card);
  color: var(--c-text);
}
body.gc button.tc-chip {
  background: var(--c-panel);
  border-color: var(--c-control-border);
  cursor: pointer;
}
body.gc button.tc-chip:hover,
body.gc button.tc-chip[aria-expanded='true'] {
  background: var(--c-raised);
}
.tc-chip.loading .tc-av {
  border-style: dashed;
}
.tc-av {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--c-line-strong);
  border-left: 3px solid var(--c-lime);
  border-radius: var(--r-chip);
  background: var(--c-panel-alt);
  font: 500 11px/1 var(--f-mono);
  color: var(--c-text);
}
.tc-av.empty {
  border-left-width: 1px;
  color: var(--c-muted);
}
.tc-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.tc-txt b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.tc-txt > span {
  color: var(--c-muted);
  font-size: 11px;
  line-height: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-chev {
  flex: none;
  color: var(--c-text2);
  transition: transform var(--m-select) ease;
}
[aria-expanded='true'] > .tc-chev {
  transform: rotate(180deg);
}
body.gc .tc-add {
  flex: none;
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-card);
  color: var(--c-text2);
}
body.gc .tc-add:hover {
  color: var(--c-text);
  border-color: var(--c-control-border);
}
.tc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
}
.tc-backdrop[hidden],
.tc-pop[hidden] {
  display: none;
}
.tc-pop {
  position: absolute;
  z-index: 41;
  top: 0;
  left: calc(100% + 18px);
  width: 320px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--c-panel);
  border: 1px solid var(--c-control-border);
  border-radius: var(--r-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: tc-fade 120ms ease-out;
}
@keyframes tc-fade {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
}
.tc-pop-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 8px 14px;
  border-bottom: 1px solid var(--c-line);
}
body.gc .tc-pop-h h2 {
  flex: 1;
  margin: 0;
  color: var(--c-text);
  font-size: var(--ts-panel);
  line-height: var(--lh-panel);
}
.tc-count {
  color: var(--c-muted);
  font: 500 10px/14px var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.gc .tc-x {
  width: 32px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--c-text2);
}
.tc-hint {
  margin: 0;
  padding: 8px 14px 4px;
  color: var(--c-muted);
  font-size: 11px;
}
.tc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px;
}
body.gc .tc-opt,
body.gc .tc-new {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  color: var(--c-text);
}
body.gc .tc-opt:hover,
body.gc .tc-new:hover {
  background: var(--c-raised);
}
body.gc .tc-opt[aria-checked='true'] {
  background: var(--c-lime-soft);
  border-color: color-mix(in srgb, var(--c-lime) 35%, transparent);
}
.tc-check {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--c-control-border);
  border-radius: 50%;
}
.tc-opt[aria-checked='true'] .tc-check {
  border-color: var(--c-lime);
  background: radial-gradient(circle, var(--c-lime) 0 4px, transparent 4.5px);
}
body.gc .tc-new {
  min-height: 40px;
  margin: 0 6px;
  width: calc(100% - 12px);
  color: var(--c-text2);
  border-top: 1px solid var(--c-line);
  border-radius: 0;
}
body.gc .tc-my {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 6px;
  padding: 8px;
  border-top: 1px solid var(--c-line);
  color: var(--c-text);
  text-decoration: none;
}
.tc-my b {
  font-weight: 600;
  font-size: 13px;
}
.tc-my span {
  color: var(--c-muted);
  font-size: 11px;
}
.tc-foot {
  margin: 0;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 11px;
}

/* ---- Workspace head: team / page, title, your role -------------------------------------------------------------- */
.gc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 12px;
  margin-bottom: 10px;
}
.gc-crumb {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  color: var(--c-muted);
  font: 500 var(--ts-meta) / var(--lh-meta) var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gc-crumb #team-name {
  color: var(--c-text2);
  font-weight: 500;
}
body.gc .gc-teamline {
  gap: 10px;
  font-size: 12px;
}
.gc-teamline b {
  color: var(--c-text);
  font-weight: 600;
}

/* ---- Team home ------------------------------------------------------------------------------------------------- */
body.gc section.hm-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-panel);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-card);
  box-shadow: inset 3px 0 var(--c-lime);
}
body.gc section.hm-hero.quiet {
  box-shadow: none;
  padding: 0;
  border: 0;
  background: none;
}
.hm-hero-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}
.hm-hero-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hm-hero-main .pw-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hm-name {
  font: 700 30px/32px var(--f-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.hm-where {
  color: var(--c-text2);
  font-size: 13px;
}
.hm-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 6px;
}
.hm-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-left: 1px solid var(--c-line);
}
.hm-fact:first-child {
  padding-left: 0;
  border-left: 0;
}
.hm-fact > span:last-child {
  display: flex;
  flex-direction: column;
}
.hm-fact b {
  font-size: 13px;
  font-weight: 600;
}
.hm-fact > span > span {
  color: var(--c-muted);
  font-size: 11px;
}
.hm-car {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--c-lime);
  border-radius: var(--r-chip);
  background: var(--c-lime-soft);
  color: var(--c-lime);
  font: 500 17px/1 var(--f-mono);
}
body.gc .hm-hero .gc-count {
  flex: none;
  min-width: 96px;
  padding: 8px 14px;
  background: var(--c-panel-alt);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-card);
}
body.gc .hm-hero .gc-count b {
  font-size: 40px;
  color: var(--c-lime);
}
body.gc .hm-hero .gc-count span {
  color: var(--c-text2);
}
.hm-prep {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--c-line);
}
.hm-prep-h,
.hm-prep-f {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hm-prep-t {
  font-weight: 600;
}
.hm-prep-f {
  margin-top: 4px;
}
body.gc .hm-prep .gc-steps,
body.gc .tp-steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
  gap: 4px;
}
body.gc .hm-prep .gc-step {
  height: 4px;
  border-radius: 2px;
  background: var(--c-line-strong);
}
body.gc .hm-prep .gc-step.done {
  background: var(--c-lime);
}
body.gc .hm-prep .gc-step-labels {
  font-size: 11px;
  font-weight: 500;
}
.gc-step-labels .ok {
  color: var(--c-text2);
}
.gc-step-labels .todo {
  color: var(--c-amber);
}
.hm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.hm-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
body.gc section.hm-panel {
  padding: 0;
  overflow: hidden;
  border-color: var(--c-line-strong);
  border-radius: var(--r-card);
}
.hm-ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--c-line);
}
body.gc .hm-ph h2 {
  margin: 0;
  color: var(--c-text);
  font-size: var(--ts-panel);
  line-height: var(--lh-panel);
}
.hm-ph a {
  font-size: 12px;
}
.hm-panel > .pw-empty,
.hm-panel > .gc-feed,
.hm-panel > .hm-note,
.hm-panel > .hm-meter-h,
.hm-panel > .gc-sub,
.hm-panel > .tp-rail,
.hm-panel > .tp-rail-legend {
  margin: 10px 12px;
}
.hm-panel > .pw-meter {
  margin: 0 12px;
  width: calc(100% - 24px);
}
.hm-pf {
  padding: 6px 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-panel-alt);
  color: var(--c-muted);
  font-size: 11px;
  margin-top: 10px;
}
.hm-rows {
  display: flex;
  flex-direction: column;
}
.hm-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--c-line);
}
.hm-row:last-child {
  border-bottom: 0;
}
.hm-row.guest .pw-avatar {
  border-style: dashed;
}
.hm-row-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.hm-row-t {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.hm-row-t b {
  font-weight: 600;
  white-space: nowrap;
}
.hm-row-t .gc-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-row-v {
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}
.hm-bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--c-line-strong);
  overflow: hidden;
}
.hm-bar > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--pw-series, var(--c-lime));
}
.hm-bar.s0 {
  --pw-series: var(--c-lime);
}
.hm-bar.s1 {
  --pw-series: var(--c-mate-text);
}
.hm-bar.s2 {
  --pw-series: var(--c-amber);
}
.hm-bar.s3 {
  --pw-series: var(--c-violet);
}
.hm-bar.s4 {
  --pw-series: var(--c-teal);
}
.hm-note {
  padding: 8px 10px;
  border-left: 2px solid var(--c-amber);
  background: var(--c-panel-alt);
  border-radius: 0 var(--r-chip) var(--r-chip) 0;
  overflow-wrap: anywhere;
}
.hm-note p {
  margin: 3px 0 0;
  color: var(--c-text2);
}
.hm-meter-h,
.hm-meter-f {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--c-text2);
}
.hm-meter-h {
  margin-bottom: 5px;
}
.hm-meter-h b {
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
}
.hm-meter-h small {
  color: var(--c-muted);
  font-size: 12px;
}
.hm-meter-f {
  margin-top: 5px;
  color: var(--c-muted);
}
.hm-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-card);
  background: var(--c-panel);
  overflow: hidden;
}
body.gc section.hm-meter {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--c-line);
  border-radius: 0;
  background: none;
}
body.gc section.hm-meter:last-child {
  border-right: 0;
}
.hm-split {
  display: flex;
  gap: 1px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--c-line-strong);
}
.hm-split > span,
.hm-key {
  display: block;
  height: 100%;
}
.hm-split .v,
.hm-key.v {
  background: var(--c-mate-text);
}
.hm-split .b,
.hm-key.b {
  background: var(--c-lime);
}
.hm-key {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
}
.hm-meters .gc-seats {
  gap: 4px;
  height: 14px;
  align-items: center;
}
.hm-meters .gc-seat {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}

/* ---- Meetings list ----------------------------------------------------------------------------------------------- */
.tp-meet + .tp-meet {
  margin-top: 4px;
}
body.gc .tp-meet-b {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto minmax(150px, auto) 12px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 6px 10px;
  text-align: left;
  background: var(--c-panel-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-card);
  color: var(--c-text);
  cursor: pointer;
}
body.gc .tp-meet-b:hover {
  background: var(--c-raised);
  border-color: var(--c-line-strong);
}
.tp-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-chip);
  background: var(--c-panel);
}
.tp-date b {
  font: 500 17px/20px var(--f-mono);
}
.tp-date span {
  color: var(--c-muted);
  font: 500 9px/12px var(--f-mono);
  letter-spacing: 0.08em;
}
.tp-meet-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tp-meet-t b {
  font-weight: 600;
  font-size: 13px;
}
.tp-meet-car {
  font: 500 12px var(--f-mono);
  color: var(--c-text2);
  white-space: nowrap;
}
.tp-meet-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 11px;
}
.tp-prep {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text2);
}
.tp-prep-bars {
  display: inline-flex;
  gap: 2px;
}
.tp-prep-bars i {
  display: block;
  width: 10px;
  height: 4px;
  border-radius: 1px;
  background: var(--c-line-strong);
}
.tp-prep-bars i.on {
  background: var(--c-lime);
}
.tp-next {
  color: var(--c-amber);
}
.tp-meet-go {
  color: var(--c-muted);
  font-size: 18px;
}

/* ---- Meeting hub -------------------------------------------------------------------------------------------------- */
.tp-crumb {
  margin-bottom: 2px;
}
body.gc .tp-back {
  padding: 0;
  font-size: 12px;
}
.tp-plan-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
body.gc .tp-plan-name {
  margin: 0;
  font: 700 28px/30px var(--f-display);
  color: var(--c-text);
}
.tp-plan-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 12px;
}
.tp-plan-facts .hm-car {
  height: 26px;
  font-size: 15px;
}
body.gc .tp-subnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin-top: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--c-line);
  scrollbar-width: none;
}
.tp-subnav a {
  flex: none;
  padding: 8px 10px;
  color: var(--c-text2);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
body.gc .tp-subnav a:hover {
  color: var(--c-text);
  border-bottom-color: var(--c-lime);
}
.tp-steps-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tp-steps-h {
  display: flex;
  justify-content: space-between;
  color: var(--c-muted);
  font: 500 var(--ts-meta) / var(--lh-meta) var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.gc .tp-steps {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}
.tp-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  color: var(--c-amber);
}
.tp-step i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--c-line-strong);
}
.tp-step.done {
  color: var(--c-text2);
}
.tp-step.done i {
  background: var(--c-lime);
}
.tp-step b {
  display: none;
}
.tp-step span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: start;
}
.tp-hub-main,
.tp-hub-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
body.gc section.tp-part {
  padding: 0;
  overflow: hidden;
  border-color: var(--c-line-strong);
  border-radius: var(--r-card);
}
.tp-part-h {
  min-height: 40px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--c-line);
  align-items: center;
}
body.gc .tp-part-h h2 {
  margin: 0;
  color: var(--c-text);
  font-size: var(--ts-panel);
  line-height: var(--lh-panel);
}
.tp-part > :not(.tp-part-h) {
  margin: 10px 12px;
}
.tp-part > .pw-table-wrap,
.tp-part > .tp-table {
  margin: 0;
}
.tp-part > .tp-table td:first-child,
.tp-part > .tp-table th:first-child {
  padding-left: 12px;
}
.tp-part .tp-plan {
  margin: 10px 12px;
}
.tp-part .tp-plan + .tp-plan {
  border-top: 1px solid var(--c-line);
  padding-top: 10px;
}
.tp-part .tp-plan .pw-table-wrap {
  margin: 8px -12px 6px;
}
.tp-part .pw-table th:first-child,
.tp-part .pw-table td:first-child {
  padding-left: 12px;
}
body.gc .tp-table {
  font-size: 12px;
}
body.gc .tp-table td,
body.gc .tp-table th {
  height: var(--rh-row);
  padding: 2px 8px 2px 0;
  border-top: 1px solid var(--c-line);
  vertical-align: middle;
}
.tp-table thead th {
  color: var(--c-muted);
  font: 500 var(--ts-meta) / var(--lh-meta) var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 0;
}
.tp-races .tp-race-state {
  text-align: right;
}
.tp-races .tp-race-state .pw-chip {
  white-space: normal;
}

/* Publication strip */
body.gc #tp-publication {
  box-shadow: inset 3px 0 var(--c-line-strong);
}
.tp-pub {
  gap: 8px;
}
.tp-pub-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.tp-pub-id {
  flex: 1 1 260px;
  min-width: 0;
}
.tp-pub-id b {
  font-size: 13px;
}
.tp-pub-actions {
  flex: none;
}
.tp-pub-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tp-ack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 11px;
  color: var(--c-text2);
}
.tp-ack-bars {
  display: inline-flex;
  gap: 3px;
}
.tp-ack-bars i {
  display: block;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-line-strong);
}
.tp-ack-bars i.ack {
  background: var(--c-lime);
}
.tp-ack-bars i.read {
  background: var(--c-amber);
}
.tp-ack-t b {
  color: var(--c-text);
  font-weight: 500;
}
.tp-rc-h {
  margin-top: 4px;
}
.tp-receipts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-receipts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
}
.tp-rc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tp-rc-main b {
  font-weight: 600;
}
.tp-rc-state {
  text-align: right;
  font-size: 11px;
}

/* Race plan rail and rows */
.tp-rail {
  margin: 8px 0 2px;
}
.tp-rail-legend {
  font-size: 11px;
}
.tp-key {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--pw-series, var(--c-lime));
}
.tp-stint-rows td:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--rh-row);
}
.tp-sn {
  color: var(--c-muted);
  font-size: 11px;
}
.tp-sd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-stint-rows small {
  display: inline;
  color: var(--c-muted);
  font-size: 10px;
}
.pw-table tr.tp-dayrow td {
  height: 24px;
  color: var(--c-muted);
  background: var(--c-panel-alt);
  font: 500 var(--ts-meta) var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Timetable: a time column and an event column */
.tp-day + .tp-day {
  margin-top: 8px;
}
.tp-day-h {
  padding: 2px 0 4px;
  border-bottom: 1px solid var(--c-line-strong);
}
.tp-cal {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-cal-row {
  display: grid;
  grid-template-columns: 60px 8px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 40px;
  padding: 7px 0;
  border-bottom: 1px solid var(--c-line);
}
.tp-cal-row:last-child {
  border-bottom: 0;
}
.tp-cal-t {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 17px;
}
.tp-cal-t small {
  color: var(--c-muted);
  font-size: 11px;
  line-height: 14px;
}
.tp-cal-k {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  border: 1.5px solid var(--c-text2);
}
.tp-cal-k.k-session {
  border-radius: 2px;
  background: var(--c-lime);
  border-color: var(--c-lime);
}
.tp-cal-k.k-officials {
  background: var(--c-amber);
  border-color: var(--c-amber);
}
.tp-cal-k.k-team {
  border-color: var(--c-mate-text);
}
.tp-cal-e {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.tp-cal-n {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.tp-cal-n b {
  font-weight: 600;
}

/* Entry and line-up */
.tp-entry-car {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tp-entry-car .hm-car {
  height: 24px;
  min-width: 38px;
  font-size: 13px;
}
.tp-people-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.tp-people-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-top: 1px solid var(--c-line);
  font-size: 12px;
}
.tp-pl-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tp-skel {
  height: 120px;
  margin-top: 8px;
}

/* ---- Drivers ------------------------------------------------------------------------------------------------------ */
.tp-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 6px 0;
  padding: 6px 10px;
  background: var(--c-panel-alt);
  border-left: 2px solid var(--c-text2);
  border-radius: 0 var(--r-chip) var(--r-chip) 0;
}
.tp-cmp {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}
.tp-cmp-row {
  display: grid;
  grid-template-columns: auto minmax(70px, 160px) 72px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-bottom: 1px solid var(--c-line);
}
.tp-cmp-row .pw-delta {
  grid-template-columns: minmax(60px, 1fr) auto auto;
  width: 100%;
}
.tp-cmp-row .pw-delta-g {
  width: 100%;
}
.tp-cmp-lap,
.tp-cmp-pct {
  text-align: right;
}
.tp-bar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-trend {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-trend .pw-spark {
  width: 100%;
  height: 34px;
}
.tp-trend-x {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
}
.tp-up {
  color: var(--c-text2);
}
.tp-stats {
  padding-top: 6px;
  border-top: 1px solid var(--c-line);
}
.pw-avatar.guest {
  border-style: dashed;
  background: transparent;
}
.tp-card .tp-who b {
  font-weight: 600;
}

/* ---- Media and empty states ----------------------------------------------------------------------------------------- */
body.gc section > .pw-empty,
body.gc .gc-empty .pw-empty {
  margin: 4px 0;
}
.gc-more-info summary {
  color: var(--c-text2);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
}

/* ---- Wide screens / narrow screens ------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tp-hub,
  .hm-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .hm-meters {
    grid-template-columns: minmax(0, 1fr);
  }
  body.gc section.hm-meter {
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }
  body.gc section.hm-meter:last-child {
    border-bottom: 0;
  }
}

/* Phones: brand, the team chip, then Home / Meetings / Drivers / More; the page below. Nothing scrolls sideways. */
@media (max-width: 760px) {
  .gc-shell {
    flex-direction: column;
    position: relative;
  }
  body.gc .gc-brand span {
    display: inline-flex;
  }
  .gc-side .gc-brand {
    min-height: 32px;
    padding-right: 120px;
  }
  .gc-side {
    position: static;
    min-height: 0;
    width: 100%;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
    padding: 8px 10px 6px;
    gap: 6px;
  }
  .gc-brand {
    padding-bottom: 0;
  }
  .gc-side .views {
    flex-direction: column;
    gap: 4px;
  }
  .gc-menu-k {
    display: none;
  }
  .gc-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
  }
  #team-menu > button {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 6px 4px;
    gap: 5px;
    font-size: 12px;
    white-space: nowrap;
  }
  /* WEB-12: a long label ("Team and seats") is cut with an ellipsis inside its own tab, never over "More" */
  #team-menu > button > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #team-menu > button[data-more] {
    display: none;
  }
  #team-menu > button[data-more][aria-current='page'] {
    display: flex;
  }
  .gc-side.more-open #team-menu > button[data-more] {
    display: flex;
    flex: 1 1 40%;
    justify-content: flex-start;
  }
  #team-menu > .gc-more {
    display: flex !important;
  }
  .gc-more.on {
    color: var(--c-lime);
  }
  body.gc .views button[aria-pressed='true'] {
    box-shadow: inset 0 -2px var(--c-lime);
  }
  .gc-you {
    border-top: 1px solid var(--c-line);
    padding-top: 2px;
  }
  .gc-you > button,
  .gc-you > a {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 4px;
    font-size: 12px;
    white-space: nowrap;
  }
  body.gc .views a.to-my {
    padding: 4px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
  }
  .gc-top {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 0;
  }
  body.gc main {
    padding: 4px 10px 30px;
  }
  /* Choose team: a bottom sheet */
  .tc-backdrop {
    background: rgba(0, 0, 0, 0.55);
  }
  .tc-pop {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 85vh;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: tc-sheet 200ms ease-out;
  }
  .tc-pop::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: var(--c-line-strong);
  }
  .hm-hero-top {
    flex-direction: column-reverse;
    gap: 8px;
  }
  body.gc .hm-hero .gc-count {
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    padding: 4px 10px;
  }
  body.gc .hm-hero .gc-count b {
    font-size: 26px;
  }
  .hm-name {
    font-size: 24px;
    line-height: 26px;
  }
  .hm-fact {
    padding: 0 10px;
  }
  body.gc .hm-prep .gc-step-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .hm-prep-f {
    flex-wrap: wrap;
  }
  body.gc .tp-meet-b {
    grid-template-columns: 40px minmax(0, 1fr) 12px;
    gap: 4px 10px;
  }
  .tp-meet-car {
    display: none;
  }
  .tp-meet-state {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
  }
  .tp-meet-go {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .tp-date {
    grid-row: 1 / span 2;
  }
  .tp-cmp-row {
    grid-template-columns: auto minmax(0, 1fr) 70px;
    gap: 2px 8px;
    padding: 4px 0;
  }
  .tp-cmp-row .pw-delta {
    grid-column: 2 / -1;
  }
  .tp-cmp-pct {
    display: none;
  }
  .tp-ack {
    align-items: flex-start;
  }
  body.gc .tp-plan-name {
    font-size: 24px;
    line-height: 26px;
  }
}
@keyframes tc-sheet {
  from {
    transform: translateY(24px);
    opacity: 0.4;
  }
}

/* ---- Touch pointers: 44px targets, text stays small --------------------------------------------------------------- */
@media (pointer: coarse) {
  .gc-menu button,
  .gc-menu a,
  .gc-small,
  body.gc .gc-btn,
  .tp-move .gc-btn,
  body.gc .tc-add,
  body.gc .tc-x,
  .tp-subnav a {
    min-height: 44px;
  }
  .tp-move .gc-btn {
    min-width: 44px;
  }
  body.gc .tc-add,
  body.gc .tc-x {
    width: 44px;
  }
  .tp-subnav a {
    display: inline-flex;
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tc-pop,
  .tc-chev,
  .gc-menu button {
    animation: none;
    transition: none;
  }
}

/* UX-2e: team chip tags (TEST, LIVE, unread) */
.tc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 1px 5px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-chip);
  font: 500 9px/14px var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--c-text2);
}
.tc-tag.test {
  border-color: var(--c-amber, #f4bc66);
  color: var(--c-amber, #f4bc66);
}
.tc-tag.live {
  border-color: var(--c-go, #4ade80);
  color: var(--c-go, #4ade80);
}
.tc-tag.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tc-tag.unread {
  border-color: var(--c-lime);
  background: var(--c-lime);
  color: var(--c-on-lime, #101200);
  min-width: 18px;
  justify-content: center;
}

/* UX-2c: the announcement composer on the dark panel (it was a white sheet); the audience chips and people read as
   controls, the picked ones in lime. Receipts and the preview keep their own styles. */
body.gc section.gc-paper.tp-compose {
  background: var(--c-panel);
  color: var(--c-text);
  border-color: var(--c-line);
}
body.gc .tp-compose h2,
body.gc .tp-compose .gc-h {
  color: var(--c-text);
}
body.gc .tp-compose label,
body.gc .tp-compose .gc-sub {
  color: var(--c-text2);
}
body.gc .tp-compose input,
body.gc .tp-compose select,
body.gc .tp-compose textarea {
  background: var(--c-panel-alt);
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
body.gc .tp-compose .tp-chip {
  border-color: var(--c-line-strong);
  color: var(--c-text);
}
body.gc .tp-compose .tp-chip[aria-pressed='true'] {
  background: var(--c-lime);
  color: var(--c-on-lime);
  border-color: var(--c-lime);
}
body.gc .tp-compose .tp-pchip {
  background: var(--c-panel-alt);
  color: var(--c-text);
  border-color: var(--c-line);
}
body.gc .tp-compose button.tp-pchip[aria-pressed='true'] {
  background: color-mix(in srgb, var(--c-lime) 22%, var(--c-panel-alt));
  border-color: var(--c-lime);
}
body.gc .tp-compose .tp-av {
  background: var(--c-line-strong);
  color: var(--c-text);
}
body.gc .tp-compose .tp-av.driver {
  background: var(--c-lime);
  color: var(--c-on-lime);
}

/* UX-2c: the merged Team and seats page, settings and the audit log */
.gc-seat-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  align-items: stretch;
}
.gc-seat-hero > div:first-child {
  grid-column: span 2;
}
.gc-seat-hero > div {
  min-width: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
  align-content: start;
}
.gc-hero-l {
  font: 500 11px/1.2 var(--f-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.gc-hero-big b {
  font-size: 28px;
  line-height: 1;
  color: var(--c-lime);
}
.gc-hero-stat b {
  font-size: 22px;
  line-height: 1.1;
}
.gc-seat-hero .gc-seat {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
}
.gc-seat.inv {
  border: 2px solid var(--c-amber);
  background: transparent;
}
@media (max-width: 420px) {
  .gc-seat-hero > div:first-child {
    grid-column: 1 / -1;
  }
}
.gc-setform {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
}
.gc-setform label {
  display: grid;
  gap: 2px;
}
.gc-fl {
  font: 500 11px/1.2 var(--f-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.gc-fnote {
  flex: 1 1 100%;
}
.gc-audit td {
  vertical-align: top;
}
.gc-audit .gc-at {
  white-space: nowrap;
}
.gc-audit .gc-det {
  font: 400 11px/1.3 var(--f-mono);
  overflow-wrap: anywhere;
}

/* ---- PE-4: Results (results.js) --------------------------------------------------------------------------------- */
.rs .rs-sessions tr.rs-row {
  cursor: pointer;
}
.rs .rs-go {
  color: var(--c-muted);
  text-align: right;
}
.rs-field-off {
  font-size: 12px;
}
.rs-detail {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 10px 0;
}
.rs-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.rs-sub {
  margin-top: 14px;
}
.rs-sub h3,
.rs h3.pw-kicker {
  margin: 0 0 6px;
}
.rs h3.pw-kicker {
  margin: 12px 12px 6px;
}
.rs-story {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}
.rs-story .pw-line {
  fill: none;
  stroke: var(--pw-series, var(--c-lime));
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.rs-story .rs-flag {
  fill: var(--c-amber);
  opacity: 0.16;
}
.rs-story .rs-flag-red {
  fill: var(--c-danger);
  opacity: 0.25;
}
.rs-story .rs-stop {
  stroke: var(--c-muted);
  stroke-width: 1;
}
.rs-key-flag {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--c-amber);
  opacity: 0.4;
}
.rs-stint {
  border-bottom: 1px solid var(--c-line);
  padding: 4px 0;
}
.rs-stint summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  cursor: pointer;
  min-height: var(--rh-row);
}
.rs-stint.own summary b {
  color: var(--c-lime);
}
.rs .pw-table td small {
  display: block;
}
.rs .pw-table tr.rs-dim td {
  color: var(--c-muted);
}
.rs .pw-table tr.rs-best td {
  color: var(--c-lime);
}
.rs .pw-table tr.rs-inclass td:nth-child(2) {
  color: var(--c-text);
  font-weight: 600;
}
.rs-car {
  margin-top: 8px;
}
.rs-notes {
  margin: 8px 0 0;
  padding-left: 18px;
}

/* DL-1: Downloads (the Mac app for a team switched on in Genie Control) */
.gc-menu button[hidden] {
  display: none !important;
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.dl-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  margin: 0;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: 10px 12px;
}
.dl-card.dl-latest {
  border-color: var(--c-lime);
}
.dl-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.dl-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}
.dl-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  margin: 0;
}
.dl-facts div {
  min-width: 0;
}
.dl-facts dt {
  font: 500 11px/1.2 var(--f-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.dl-facts dd {
  margin: 0;
  font-size: 13px;
}
.dl-facts .dl-sha {
  grid-column: 1 / -1;
}
.dl-sha code {
  font: 400 11px/1.3 var(--f-mono);
  overflow-wrap: anywhere;
}
.dl-notes {
  margin: 0;
  font-size: 13px;
}
.dl-card button {
  justify-self: start;
}
.dl-install ol {
  margin: 4px 0 6px;
  padding-left: 18px;
  font-size: 13px;
}
.dl-older summary {
  cursor: pointer;
  margin-bottom: 8px;
}

/* WEB-1: help and legal links on every team-site page */
.gc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  padding: 8px 20px 24px;
  font-size: var(--t-sm, 13px);
  color: var(--c-muted);
}
.gc-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--c-text2);
  text-decoration: none;
}
.gc-foot a:hover {
  color: var(--c-text);
  text-decoration: underline;
}
.gc-foot span a {
  display: inline;
  min-height: 0;
}
.gc-you[hidden] {
  display: none !important;
}
/* WEB-2: the signed-out page: the card centred, with one line on what GenieCloud is */
.gc-signin-wrap {
  max-width: 440px;
  margin: 24px auto;
  text-align: center;
}
.gc-signin-wrap .signin {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.gc-signin-legal {
  max-width: 400px;
  margin: 0 auto;
}
/* WEB-7: invitations with Accept; a team set up by raceGENIE support */
.gc-invites {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gc-inv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-line);
}
.gc-setup {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.gc-setup .chk {
  display: block;
  margin: 8px 0;
}
.gc-signin-wrap h1 {
  text-align: center;
}

/* ---- CLD-6: the live page (live.js) ------------------------------------------------------------------------------ */
.tp-live-go {
  margin-left: 8px;
  font-size: 12px;
}
.gc-body:has(.lv) {
  width: 100%; /* shell items size to their content: a wide table scrolls in its own box, never the page */
  max-width: 100%;
}
.lv {
  max-width: 980px;
  margin: 0 auto;
  font-size: 13px;
}
.lv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lv-mark {
  color: var(--c-lime);
}
.lv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 4px 0;
}
.lv-title {
  margin: 0;
  font: 600 var(--t-lg) / 1.2 var(--f-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lv-flag {
  padding: 1px 8px;
  border-radius: var(--r-chip);
  font: 600 12px / 1.5 var(--f-body);
  background: #1a7a43;
  color: #fff;
}
.lv-flag[data-flag='yellow'],
.lv-flag[data-flag='fcy'],
.lv-flag[data-flag='sc'],
.lv-flag[data-flag='vsc'] {
  background: #f2c230;
  color: #0e1012;
}
.lv-flag[data-flag='red'] {
  background: #d83a34;
  color: #fff;
}
.lv-flag[data-flag='chequered'] {
  background: #f2f4f5;
  color: #0e1012;
}
.lv-clock {
  font-size: 13px;
}
.lv-age {
  min-height: 16px;
  color: var(--c-muted);
  font: 400 12px / 1.3 var(--f-mono);
}
.lv-age.on {
  color: var(--c-go);
}
.lv-age.stale {
  color: var(--c-muted);
}
.lv-banner {
  margin: 6px 0;
  padding: 6px 10px;
  border: 1px solid var(--c-line-strong);
  border-left: 3px solid var(--c-amber);
  border-radius: var(--r-programme);
  background: var(--c-panel);
}
.lv-off {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-programme);
  background: var(--c-panel);
  color: var(--c-text2);
}
.lv-cars {
  display: grid;
  gap: 6px;
  margin: 6px 0;
}
.lv-car {
  padding: 6px 10px;
  border: 1px solid var(--c-line-strong);
  border-left: 3px solid var(--c-lime);
  border-radius: var(--r-programme);
  background: var(--c-panel);
}
.lv-car-top,
.lv-figs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
}
.lv-pos {
  font: 600 20px / 1.1 var(--f-display);
}
.lv-no {
  font: 600 15px / 1.1 var(--f-display);
}
.lv-who {
  min-width: 0;
  overflow-wrap: anywhere;
}
.lv-switch {
  display: inline-flex;
  gap: 4px;
  margin: 6px 0;
}
.lv-switch button,
.lv-choice {
  min-height: 32px;
  padding: 2px 10px;
  border: 1px solid var(--c-control-border);
  border-radius: var(--r-control);
  background: transparent;
  color: var(--c-text);
  font: 500 13px / 1.2 var(--f-body);
  cursor: pointer;
}
.lv-switch button[aria-pressed='true'],
.lv-choice.on {
  border-color: var(--c-lime);
  background: var(--c-lime-soft);
  color: var(--c-lime);
}
.lv-choice.strong {
  border-color: var(--c-lime);
  background: var(--c-lime);
  color: var(--c-on-lime);
}
.lv-table tr.own td {
  background: var(--c-lime-soft);
}
.lv-log {
  margin-top: 10px;
}
.lv-h {
  margin: 0 0 4px;
  font: 600 var(--t-md) / 1.2 var(--f-display);
  text-transform: uppercase;
}
.lv-block {
  display: grid;
  gap: 6px;
  margin: 6px 0;
  padding: 8px 10px;
  border: 1px solid var(--c-line-strong);
  border-top: 2px solid var(--c-amber);
  border-radius: var(--r-programme);
  background: var(--c-panel);
}
.lv-ask {
  margin: 0;
  font-weight: 600;
}
.lv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lv-grid .lv-choice {
  flex: 1 1 110px;
}
.lv-note {
  margin: 4px 0;
  color: var(--c-text2);
}
.lv-note.bad {
  color: var(--c-danger);
}
.lv-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lv-details {
  display: grid;
  gap: 6px;
  padding-bottom: 6px;
}
.lv-litres {
  min-height: 32px;
  padding: 2px 8px;
  border: 1px solid var(--c-control-border);
  border-radius: var(--r-control);
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 13px var(--f-mono);
}
.lv-foot {
  margin-top: 8px;
  font-size: 11px;
}
@media (max-width: 640px) {
  .lv .pw-table th,
  .lv .pw-table td {
    padding: 0 5px;
  }
  .lv-table th:nth-child(3),
  .lv-table td:nth-child(3) {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
