/* 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;
  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 .team-pick select {
  width: 100%;
  min-height: 30px;
}
.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-programme);
  padding: 6px 10px;
  min-height: 30px;
  color: var(--c-text2);
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.gc-menu button:hover {
  color: var(--c-text);
  background: var(--c-panel);
}
body.gc .views button[aria-pressed='true'] {
  background: var(--c-lime);
  color: var(--c-on-lime);
  font-weight: 600;
  border-color: var(--c-lime);
}
.gc-you {
  border-top: 1px solid var(--c-line);
  padding-top: 8px;
}
.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;
}

/* 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);
}

/* Phones: the menu becomes a strip above the page that scrolls in its own box. */
@media (max-width: 760px) {
  .gc-shell {
    flex-direction: column;
  }
  .gc-side {
    position: static;
    min-height: 0;
    width: 100%;
    flex: none;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
    padding: 8px 10px;
  }
  .gc-side .views {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .gc-menu {
    flex-direction: row;
    flex: none;
  }
  .gc-menu button,
  .gc-menu a {
    white-space: nowrap;
  }
  .gc-you {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--c-line);
    padding-left: 6px;
  }
  body.gc main {
    padding: 4px 10px 30px;
  }
  .gc-hero-name {
    font-size: 26px;
  }
  .gc-step-labels {
    font-size: 9px;
  }
}
.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-bars {
  display: grid;
  grid-template-columns: minmax(70px, max-content) minmax(0, 1fr) max-content max-content;
  gap: 4px 8px;
  align-items: center;
  margin: 6px 0;
}
.tp-bar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--c-line);
  min-width: 0;
}
.tp-bar i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--c-lime);
}
.tp-bar i.ref {
  background: var(--c-muted);
}
.tp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}
body.gc .tp-card {
  background: var(--c-paper);
  color: var(--c-paper-ink);
  border-radius: var(--r-panel);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tp-card .gc-sub {
  color: var(--c-paper-muted);
}
.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-size: 10px;
  color: var(--c-paper-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-meet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: 4px 12px;
  align-items: center;
  border-top: 1px solid var(--c-line);
  padding: 6px 0;
}
.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-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr));
  gap: 6px;
}
.tp-step {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--r-control);
  padding: 6px 8px;
  font-size: 12px;
}
.tp-step b {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--c-muted);
}
.tp-step.done b {
  color: var(--c-lime);
}
.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-stints {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 4px 0;
}
.tp-stint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  background: var(--c-raised);
  border-radius: var(--r-control);
  padding: 2px 6px;
  font-size: 10px;
}
.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;
}
.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);
}
