/* iStrategy additions built on top of the provided iStewards standalone stylesheet. */
:root {
  --rm-purple: #8b5cf6;
  --rm-blue-soft: rgba(37, 99, 235, 0.14);
  --rm-green-soft: rgba(16, 185, 129, 0.12);
  --rm-yellow-soft: rgba(245, 158, 11, 0.12);
  --rm-red-soft: rgba(239, 68, 68, 0.12);
}

body.app-body,
body.landing-body,
body.login-body,
body.join-body {
  color: var(--text-main, #f3f4f6);
  min-height: 100vh;
  display: block;
  padding: 0;
  position: relative;
  background: #070a11;
}

body.app-body::before,
body.landing-body::before,
body.login-body::before,
body.join-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(7,10,17,.78), rgba(7,10,17,.9)),
    radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 34%),
    radial-gradient(circle at top right, rgba(139,92,246,.14), transparent 28%),
    url('../img/background-race.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: saturate(.95) brightness(.72);
}

body.app-body::after,
body.landing-body::after,
body.login-body::after,
body.join-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,10,17,.18), rgba(7,10,17,.34));
  pointer-events: none;
}

.rm-main {
  padding: 42px max(24px, 4%) 64px;
}

.rm-shell {
  width: 100%;
  max-width: min(1500px, 72vw);
  margin: 0 auto;
}

.rm-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.rm-header h1 {
  margin: 0 0 10px;
}

.rm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.rm-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: start;
}

.rm-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.rm-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.rm-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.rm-stack {
  display: grid;
  gap: 14px;
}

.rm-card {
  background: var(--bg-card, #111827);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
}

.app-body .rm-card,
.login-body .card,
.login-body .brand,
.join-body .card,
.landing-body .landing-panel,
.landing-body .landing-feature-card,
.landing-body .landing-workflow-card,
.landing-body .landing-faq-card,
.landing-body .landing-summary-card,
.landing-body .landing-value-card,
.landing-body .landing-cta-card {
  background: color-mix(in srgb, var(--bg-card, #111827) 90%, transparent);
  backdrop-filter: blur(10px);
}

.rm-card h2,
.rm-card h3,
.rm-card h4 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.rm-tab-panel,
.rm-card,
.rm-stack,
.rm-grid-3,
.rm-grid-5 {
  min-width: 0;
}

#availabilityForm {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.rm-card-eyebrow {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #9ca3af);
  margin-bottom: 8px;
}

.rm-live-card {
  position: relative;
  overflow: hidden;
}

.rm-live-card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.rm-live-card-current {
  border-color: color-mix(in srgb, var(--driver-color, #2563eb) 45%, var(--border, rgba(255,255,255,0.1)));
  background: linear-gradient(180deg, color-mix(in srgb, var(--driver-color-soft, rgba(37,99,235,.12)) 75%, transparent), rgba(255,255,255,0.02));
}

.rm-live-card-next {
  border-color: rgba(16,185,129,0.28);
  background: linear-gradient(180deg, rgba(16,185,129,0.08), rgba(255,255,255,0.02));
}

.rm-live-detail {
  margin-top: 10px;
  color: var(--text-main, #f3f4f6);
  font-size: 0.88rem;
  font-weight: 800;
}

.rm-muted {
  color: var(--text-muted, #9ca3af);
  line-height: 1.55;
}

.rm-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.rm-row {
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.rm-row.is-editing {
  border-color: rgba(224,224,160,.45);
  background: rgba(224,224,160,.07);
}

.rm-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rm-row-title {
  font-weight: 900;
}

.rm-row-meta {
  color: var(--text-muted, #9ca3af);
  font-size: .84rem;
  line-height: 1.45;
}

.rm-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--text-muted, #9ca3af);
  font-size: .76rem;
  font-weight: 900;
}

.rm-pill.good { color: #6ee7b7; border-color: rgba(16,185,129,.35); background: var(--rm-green-soft); }
.rm-pill.warn { color: #fcd34d; border-color: rgba(245,158,11,.35); background: var(--rm-yellow-soft); }
.rm-pill.info { color: #93c5fd; border-color: rgba(37,99,235,.35); background: var(--rm-blue-soft); }
.rm-pill.danger { color: #fca5a5; border-color: rgba(239,68,68,.35); background: var(--rm-red-soft); }

.rm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
}

.rm-tab {
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 999px;
  padding: 9px 13px;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  font-weight: 900;
  cursor: pointer;
}

.rm-tab.is-active,
.rm-tab:hover {
  color: white;
  border-color: var(--primary, #2563eb);
  background: rgba(37,99,235,.14);
}

.rm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rm-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rm-form-grid .full,
.rm-form-grid-3 .full {
  grid-column: 1 / -1;
}


.rm-form-section-title {
  color: var(--text-main, #f3f4f6);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.rm-field label {
  display: block;
  color: var(--text-muted, #9ca3af);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.rm-field input,
.rm-field select,
.rm-field textarea {
  width: 100%;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
  border-radius: 9px;
  padding: 10px 11px;
  outline: none;
  font: inherit;
}

.rm-field input:focus,
.rm-field select:focus,
.rm-field textarea:focus {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.rm-field textarea {
  resize: vertical;
  min-height: 86px;
}

.rm-btn,
.rm-btn-outline,
.rm-btn-danger,
.rm-btn-warning,
.rm-btn-success {
  border: none;
  border-radius: 9px;
  padding: 10px 15px;
  color: white;
  background: var(--primary, #2563eb);
  font-weight: 900;
  cursor: pointer;
  transition: .18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.rm-btn:hover,
.rm-btn-outline:hover,
.rm-btn-danger:hover,
.rm-btn-warning:hover,
.rm-btn-success:hover {
  transform: translateY(-1px);
  opacity: .94;
}

.rm-btn-outline {
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  color: var(--text-main, #f3f4f6);
}

.rm-btn-danger { background: var(--danger, #ef4444); }
.rm-btn-warning { background: var(--warning, #f59e0b); color: #111827; }
.rm-btn-success { background: var(--success, #10b981); }
.rm-btn-small { padding: 7px 9px; font-size: .75rem; border-radius: 8px; }
.rm-btn:disabled,
.rm-btn-outline:disabled,
.rm-btn-danger:disabled,
.rm-btn-warning:disabled,
.rm-btn-success:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.rm-status {
  min-height: 1.2em;
  margin-top: 10px;
  color: var(--text-muted, #9ca3af);
  font-size: .86rem;
  line-height: 1.45;
}
.rm-status.success { color: #6ee7b7; }
.rm-status.error { color: #fca5a5; }

.rm-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
}

.rm-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  background: rgba(255,255,255,0.015);
}

.rm-table th {
  text-align: left;
  padding: 12px 13px;
  color: var(--text-muted, #9ca3af);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.rm-table td {
  padding: 12px 13px;
  border-top: 1px solid rgba(255,255,255,.045);
  vertical-align: top;
  font-size: .86rem;
}

.rm-table tr:first-child td { border-top: none; }
.rm-table tr.is-live td { background: rgba(16,185,129,.05); }
.rm-table tr.is-locked td { opacity: .72; }

.condition-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 1000;
  text-transform: uppercase;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
}
.condition-dry { color: #fcd34d; background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); }
.condition-wet { color: #93c5fd; background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.3); }
.condition-eco { color: #6ee7b7; background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); }

.rm-empty {
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 18px;
  color: var(--text-muted, #9ca3af);
  line-height: 1.55;
  background: rgba(255,255,255,.025);
}

.rm-hero-preview {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rm-preview-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(17,24,39,.88);
  border: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

.rm-preview-card strong {
  display: block;
  font-size: 1.35rem;
}

.rm-preview-card span {
  color: var(--text-muted, #9ca3af);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(16,185,129,.28);
  background: rgba(6, 78, 59, .94);
  color: #d1fae5;
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  font-size: .9rem;
}
.toast.error {
  border-color: rgba(239,68,68,.32);
  background: rgba(127,29,29,.94);
  color: #fee2e2;
}

@media (max-width: 980px) {
  .rm-layout,
  .rm-grid-2,
  .rm-grid-3,
  .rm-grid-4,
  .rm-grid-5,
  .rm-form-grid,
  .rm-form-grid-3,
  .rm-hero-preview {
    grid-template-columns: 1fr;
  }
  .rm-header {
    flex-direction: column;
  }
  .rm-actions {
    justify-content: flex-start;
  }
}


.rm-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rm-meta-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rm-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}

.rm-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .8rem;
  color: var(--text-muted, #9ca3af);
  word-break: break-all;
}

.rm-admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: start;
}

.rm-admin-list {
  display: grid;
  gap: 12px;
}

.rm-inline-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.rm-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rm-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main, #f3f4f6);
  font-weight: 700;
  font-size: .86rem;
}

.rm-check input {
  width: auto;
  accent-color: var(--primary, #2563eb);
}

.rm-field input[readonly] {
  opacity: 0.82;
}

.rm-inline-field {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rm-inline-field > *:first-child {
  flex: 1 1 auto;
}

.rm-inline-field .rm-btn-small {
  flex: 0 0 auto;
  white-space: nowrap;
}


.rm-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 20px 0;
}

.rm-caption {
  color: var(--text-muted, #9ca3af);
  font-size: .8rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .rm-info-grid,
  .rm-inline-grid,
  .rm-admin-grid,
  .rm-profile-head {
    grid-template-columns: 1fr;
  }
}


.rm-driver-row {
  box-shadow: inset 3px 0 0 var(--driver-color, rgba(255,255,255,0.18));
}

.rm-driver-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  color: #fff;
  background: var(--driver-color-soft, rgba(255,255,255,0.08));
  border: 1px solid color-mix(in srgb, var(--driver-color, #fff) 55%, transparent);
}

.rm-strategy-table tr.is-locked {
  opacity: 0.72;
}


.rm-strategy-table {
  table-layout: auto;
  min-width: 1680px;
}

.rm-strategy-table td {
  white-space: nowrap;
}

.rm-strategy-table th {
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rm-col-driver {
  width: 180px;
  min-width: 180px;
}

.rm-col-my-time,
.rm-col-my-time-head,
.rm-col-driver-time,
.rm-col-driver-time-head {
  width: 126px;
  min-width: 126px;
}

.rm-col-pit,
.rm-col-pit-head {
  width: 160px;
  min-width: 160px;
}

.rm-col-drive,
.rm-col-drive-head {
  width: 150px;
  min-width: 150px;
}

.rm-col-action,
.rm-col-action-head {
  width: 136px;
  min-width: 136px;
}

.rm-strategy-table tr.is-current {
  background: linear-gradient(90deg, var(--driver-color-soft, rgba(37,99,235,.12)), rgba(255,255,255,0.02));
  box-shadow: inset 4px 0 0 var(--driver-color, var(--primary, #2563eb));
}

.rm-strategy-table tr.is-current .rm-col-my-time {
  background: rgba(37,99,235,0.16);
}

.rm-col-my-time-head,
.rm-col-my-time {
  background: rgba(37,99,235,0.09);
}

.rm-col-driver-time-head,
.rm-col-driver-time {
  background: rgba(255,255,255,0.02);
}

.rm-condition-select {
  width: 100%;
  min-width: 88px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
  padding: 8px 9px;
  font: inherit;
  font-weight: 800;
  text-transform: lowercase;
}

.rm-condition-select.condition-dry,
.condition-badge.condition-dry {
  color: #fcd34d;
}

.rm-condition-select.condition-wet,
.condition-badge.condition-wet {
  color: #93c5fd;
}

.rm-condition-select.condition-eco,
.condition-badge.condition-eco {
  color: #6ee7b7;
}


.rm-driver-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--driver-color, #fff) 45%, rgba(255,255,255,0.12));
  background: var(--driver-color-soft, rgba(255,255,255,0.06));
  color: #fff;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
}

.rm-driver-select option,
.rm-condition-select option {
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
}

.rm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rm-grid-wide {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.rm-admin-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.rm-admin-tile {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.rm-admin-tile:hover {
  border-color: var(--primary, #2563eb);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(37,99,235,.16);
}

.rm-admin-count {
  margin-top: auto;
  font-size: 2.6rem;
  font-weight: 1000;
  line-height: 1;
}

.landing-body nav,
.landing-body .landing-hero,
.landing-body .features,
.landing-body .pricing,
.landing-body footer {
  padding-left: max(24px, 4%);
  padding-right: max(24px, 4%);
}

.landing-body .landing-hero {
  text-align: center;
}

.landing-body .landing-hero > * {
  margin-left: auto;
  margin-right: auto;
}

.landing-body .landing-hero h1 {
  width: 100%;
  max-width: none;
}

.landing-body .landing-hero p {
  width: min(100%, 1440px);
  max-width: none;
}

.landing-body .cta-group {
  width: 100%;
}

.landing-body .section-title {
  max-width: none;
}

@media (max-width: 1600px) {
  .rm-shell {
    max-width: min(1420px, 82vw);
  }
}

@media (max-width: 980px) {
  .rm-shell {
    max-width: none;
  }
}

.rm-profile-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.rm-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(139,92,246,0.26));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.35rem;
  font-weight: 1000;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,0.26);
}

.rm-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rm-profile-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* v5.5 QOL + landing refresh */
.rm-pill.role-owner,
.rm-pill.role-manager,
.rm-pill.role-strategist,
.rm-pill.role-driver,
.rm-pill.role-default {
  text-transform: capitalize;
}
.rm-pill.role-owner {
  color: #fcd34d;
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.12);
}
.rm-pill.role-manager {
  color: #c4b5fd;
  border-color: rgba(139,92,246,.35);
  background: rgba(139,92,246,.12);
}
.rm-pill.role-strategist {
  color: #93c5fd;
  border-color: rgba(37,99,235,.35);
  background: rgba(37,99,235,.12);
}
.rm-pill.role-driver {
  color: #6ee7b7;
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.12);
}
.rm-pill.role-default {
  color: var(--text-muted, #9ca3af);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.rm-admin-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 14px;
}

.rm-search-input {
  width: min(420px, 100%);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.rm-search-input:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}

.rm-col-pit,
.rm-col-pit-head {
  width: 172px;
  min-width: 172px;
}

.rm-col-drive,
.rm-col-drive-head {
  width: 162px;
  min-width: 162px;
}

.rm-col-action,
.rm-col-action-head {
  width: 148px;
  min-width: 148px;
}

.rm-action-stack {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


.landing-shell {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-upgraded {
  padding-top: 132px;
  padding-bottom: 84px;
  text-align: left;
  background-image:
    linear-gradient(180deg, rgba(7,10,17,.62), rgba(7,10,17,.88)),
    radial-gradient(circle at 20% 20%, rgba(37,99,235,.22), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(139,92,246,.18), transparent 22%);
}

.landing-hero.hero-upgraded {
  width: 100%;
  margin: 0;
  max-width: none;
  min-height: auto;
  padding-left: max(24px, 4%);
  padding-right: max(24px, 4%);
}

.landing-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.landing-hero-copy > * {
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
}

.landing-hero-visual {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.landing-hero-copy .cta-group {
  justify-content: center;
}

.landing-hero-copy .landing-inline-metrics {
  width: 100%;
  max-width: 760px;
}

.landing-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.28);
  background: rgba(37,99,235,.12);
  color: #bfdbfe;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.landing-hero-copy h1,
.landing-section-head h2,
.landing-highlight-layout h2,
.landing-cta-card h2 {
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 0 0 18px;
}

.landing-hero-copy p {
  max-width: 820px;
  font-size: 1.12rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1.7;
  margin-bottom: 26px;
}

.landing-inline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.landing-inline-metric,
.landing-panel,
.landing-feature-card,
.landing-step-card,
.landing-faq-card,
.landing-cta-card {
  background: rgba(17,24,39,.88);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
}

.landing-inline-metric {
  padding: 14px 16px;
}

.landing-inline-metric strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.landing-inline-metric span {
  color: var(--text-muted, #9ca3af);
  font-size: .84rem;
}

.landing-hero-visual {
  display: grid;
  gap: 18px;
}

.landing-panel {
  padding: 20px;
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.landing-panel-main {
  background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(11,18,32,.96));
}

.landing-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.landing-panel-meta {
  color: var(--text-muted, #9ca3af);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.landing-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-panel-stat {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.03);
}
.landing-panel-stat span,
.landing-panel-stat small,
.landing-timeline-row small {
  display: block;
  color: var(--text-muted, #9ca3af);
}
.landing-panel-stat strong { font-size: 1.2rem; display:block; margin:6px 0 4px; }

.landing-timeline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.landing-timeline-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.025);
}

.landing-timeline-row.is-current {
  border-color: rgba(16,185,129,.35);
  box-shadow: inset 4px 0 0 rgba(16,185,129,.9);
}

.landing-panel-side h3,
.landing-feature-card h3,
.landing-step-card h3,
.landing-faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.landing-panel-side p,
.landing-feature-card p,
.landing-step-card p,
.landing-faq-card p,
.landing-cta-card p {
  color: var(--text-muted, #9ca3af);
  line-height: 1.65;
}

.landing-section {
  padding: 34px 0 78px;
}

.landing-section-head {
  max-width: 960px;
  margin-bottom: 28px;
}

.landing-section-head h2,
.landing-highlight-layout h2,
.landing-cta-card h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.landing-feature-grid,
.landing-workflow-grid,
.landing-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.landing-feature-card,
.landing-step-card,
.landing-faq-card {
  padding: 22px;
}

.landing-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(37,99,235,.12);
  color: #93c5fd;
  font-weight: 900;
  margin-bottom: 14px;
}

.landing-highlight-band {
  padding-top: 18px;
}

.landing-highlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 22px;
  align-items: start;
}

.landing-check-grid {
  display: grid;
  gap: 12px;
}

.landing-check-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px 16px 14px 46px;
  background: rgba(17,24,39,.88);
  position: relative;
}

.landing-check-item::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 14px;
  color: #6ee7b7;
  font-weight: 1000;
}

.landing-cta-band {
  padding-bottom: 100px;
}

.landing-cta-card {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-footer {
  padding: 0 0 36px;
}

.landing-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 28px;
}

.landing-footer-inner p {
  color: var(--text-muted, #9ca3af);
  margin: 0;
}

@media (max-width: 1100px) {
  .landing-hero-stack,
  .landing-highlight-layout,
  .landing-cta-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
  }

  .landing-inline-metrics,
  .landing-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-shell {
    width: min(100vw - 32px, 100%);
  }

  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-body .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .landing-timeline-row {
    grid-template-columns: 1fr;
  }

  .landing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.rm-rotation-card {
  background: rgba(17,24,39,.74);
  border-style: dashed;
}

.rm-driver-meta-table {
  min-width: 960px;
}

.rm-driver-meta-table td {
  vertical-align: middle;
}

.rm-driver-meta-table .rm-muted {
  font-size: .78rem;
}

.rm-pill.danger {
  color: #fca5a5;
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.1);
}


.rm-manual-pit-input {
  width: 100%;
  min-width: 180px;
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 8px;
  padding: 8px 10px;
}

.rm-col-pit,
.rm-col-pit-head {
  width: 210px;
  min-width: 210px;
}

.rm-col-action,
.rm-col-action-head {
  width: 230px;
  min-width: 230px;
}


.rm-manual-start-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.rm-manual-start-label {
  color: var(--text-muted, #9ca3af);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rm-manual-start-input {
  min-width: 240px;
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 8px;
  padding: 8px 10px;
}

.rm-btn-outline.disabled { opacity: .55; pointer-events: none; }


.rm-availability-table {
  width: max-content;
  min-width: 100%;
}

.rm-availability-table th,
.rm-availability-table td {
  white-space: nowrap;
}

.rm-availability-table-swapped .rm-availability-driver-head-top {
  min-width: 156px;
  width: 156px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: color-mix(in srgb, var(--bg-card, #111827) 96%, transparent);
  text-align: center;
  vertical-align: top;
}

.rm-availability-slot-sticky-head,
.rm-availability-slot-sticky-cell {
  min-width: 152px;
  width: 152px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--bg-card, #111827) 96%, transparent);
}

.rm-availability-slot-sticky-head {
  z-index: 4;
  top: 0;
  text-align: left;
}

.rm-availability-driver-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rm-availability-driver-box-top {
  align-items: center;
  text-align: center;
}

.rm-btn-mini {
  padding: 5px 8px;
  border-radius: 7px;
  font-size: .68rem;
  line-height: 1;
}

.rm-availability-row-toggle {
  white-space: nowrap;
}

.rm-availability-slot-head {
  min-width: 128px;
  width: 128px;
  text-align: center;
  vertical-align: top;
}

.rm-availability-slot-head-side {
  min-width: 0;
  width: auto;
  text-align: left;
}

.rm-availability-slot-title {
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1.15;
}

.rm-availability-slot-time {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.rm-availability-slot-time span {
  color: var(--text-muted, #9ca3af);
  font-size: .72rem;
  font-weight: 800;
}

.rm-availability-slot-sub {
  display: block;
  font-size: .72rem;
  color: var(--text-muted, #9ca3af);
  margin-top: 4px;
  line-height: 1.25;
  white-space: nowrap;
}

.rm-availability-slot-duration {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-main, #f3f4f6);
  line-height: 1.25;
  white-space: nowrap;
}

.rm-availability-cell {
  text-align: center;
}

.rm-availability-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  color: var(--text-muted, #9ca3af);
}

.rm-availability-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #2563eb);
}

.rm-strategy-table tr.has-availability-conflict {
  background: linear-gradient(90deg, rgba(239,68,68,.22), rgba(239,68,68,.07));
  box-shadow: inset 4px 0 0 var(--danger, #ef4444);
}

.rm-strategy-table tr.has-availability-conflict.is-current {
  background: linear-gradient(90deg, rgba(239,68,68,.26), var(--driver-color-soft, rgba(37,99,235,.12)), rgba(255,255,255,.02));
  box-shadow: inset 4px 0 0 var(--danger, #ef4444);
}

.rm-strategy-table tr.has-availability-ok:not(.has-availability-conflict) .rm-col-driver {
  box-shadow: inset 3px 0 0 rgba(16,185,129,.55);
}

.rm-driver-chip.has-availability-conflict,
.rm-driver-select.has-availability-conflict {
  border-color: rgba(239,68,68,.58) !important;
  box-shadow: 0 0 0 1px rgba(239,68,68,.18), inset 0 0 0 999px rgba(239,68,68,.10);
}

.rm-driver-chip.has-availability-ok,
.rm-driver-select.has-availability-ok {
  border-color: rgba(16,185,129,.46) !important;
  box-shadow: 0 0 0 1px rgba(16,185,129,.14), inset 0 0 0 999px rgba(16,185,129,.08);
}


.logo.logo-image,
.internal-logo.logo-image {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-logo-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.22));
}

.site-logo-img-landing {
  width: min(176px, 24vw);
}

.site-logo-img-footer {
  width: 210px;
}

.site-logo-img-login {
  width: min(260px, 60vw);
}

.site-logo-img-app {
  width: 154px;
}

.internal-logo.logo-image {
  padding: 2px 0;
}

@media (max-width: 900px) {
  .site-logo-img-landing {
    width: 156px;
  }

  .site-logo-img-app {
    width: 138px;
  }
}

/* Landing header refinement */
.landing-nav {
  min-height: 78px;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(7,10,17,.86);
  backdrop-filter: blur(10px);
}

.landing-nav .logo.logo-image {
  flex: 0 0 auto;
}

.site-logo-img-landing {
  width: 124px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}

.landing-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.landing-nav .nav-links a {
  margin-left: 0 !important;
  line-height: 1;
}

.landing-nav .btn-nav-login {
  padding: 10px 18px;
}

@media (max-width: 900px) {
  .landing-nav {
    min-height: 68px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .site-logo-img-landing {
    width: 108px;
  }

  .landing-nav .nav-links {
    gap: 14px;
  }
}

.rm-fuel-targets-card .rm-mini-card {
  background: rgba(255,255,255,.025);
  box-shadow: none;
}

.rm-fuel-target-table {
  min-width: 980px;
}

.rm-fuel-target-table tr.is-base-target td {
  background: rgba(37,99,235,.08);
}

.rm-fuel-target-table td {
  vertical-align: middle;
}

.rm-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.rm-pit-model-summary .rm-mini-card {
  background: rgba(255,255,255,.025);
  box-shadow: none;
}

.rm-stop-select {
  width: 100%;
  min-width: 150px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
  padding: 8px 9px;
  font: inherit;
  font-weight: 800;
}

.rm-stop-select option {
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
}

.rm-col-stop {
  width: 170px;
  min-width: 170px;
}

.rm-col-pit-loss {
  width: 178px;
  min-width: 178px;
}

/* Compact, full-width stint planner layout. Keeps the stint plan inside the visible page width. */
.app-body .rm-main {
  padding-left: clamp(12px, 1.5vw, 24px);
  padding-right: clamp(12px, 1.5vw, 24px);
}

.app-body .rm-shell {
  max-width: min(1420px, calc(100vw - 48px));
}

.rm-strategy-wrap {
  overflow-x: hidden;
}

.rm-strategy-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.rm-strategy-table th,
.rm-strategy-table td {
  padding: 8px 7px;
  font-size: .74rem;
  line-height: 1.22;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.rm-strategy-table td {
  vertical-align: middle;
}

.rm-strategy-table th:nth-child(1),
.rm-strategy-table td:nth-child(1) { width: 42px; text-align: center; }
.rm-strategy-table .rm-col-driver { width: 150px; min-width: 0; }
.rm-strategy-table .rm-col-my-time,
.rm-strategy-table .rm-col-my-time-head,
.rm-strategy-table .rm-col-driver-time,
.rm-strategy-table .rm-col-driver-time-head { width: 90px; min-width: 0; }
.rm-strategy-table th:nth-child(5),
.rm-strategy-table td:nth-child(5) { width: 86px; }
.rm-strategy-table .rm-col-stop { width: 132px; min-width: 0; }
.rm-strategy-table .rm-col-pit-loss { width: 132px; min-width: 0; }
.rm-strategy-table .rm-col-pit,
.rm-strategy-table .rm-col-pit-head { width: 108px; min-width: 0; }
.rm-strategy-table .rm-col-drive,
.rm-strategy-table .rm-col-drive-head { width: 92px; min-width: 0; }
.rm-strategy-table th:nth-child(10),
.rm-strategy-table td:nth-child(10) { width: 70px; }
.rm-strategy-table th:nth-child(11),
.rm-strategy-table td:nth-child(11) { width: 48px; text-align: center; }
.rm-strategy-table th:nth-child(12),
.rm-strategy-table td:nth-child(12) { width: 62px; text-align: right; }
.rm-strategy-table .rm-col-action,
.rm-strategy-table .rm-col-action-head { width: 124px; min-width: 0; }

.rm-strategy-table .rm-driver-select,
.rm-strategy-table .rm-condition-select,
.rm-strategy-table .rm-stop-select {
  min-width: 0;
  width: 100%;
  padding: 6px 7px;
  font-size: .72rem;
}

.rm-strategy-table .rm-driver-chip,
.rm-strategy-table .rm-pill,
.rm-strategy-table .condition-badge {
  max-width: 100%;
  padding: 5px 7px;
  font-size: .68rem;
  line-height: 1.2;
}

.rm-strategy-table .rm-muted {
  font-size: .68rem;
  line-height: 1.25;
}

.rm-strategy-table .rm-action-stack {
  gap: 6px;
}

.rm-strategy-table .rm-btn-small {
  padding: 6px 7px;
  font-size: .68rem;
}

.rm-strategy-table .rm-manual-pit-input {
  width: 100%;
  min-width: 0;
  padding: 6px 7px;
  font-size: .7rem;
}

@media (max-width: 1200px) {
  .rm-strategy-table th,
  .rm-strategy-table td {
    padding: 7px 5px;
    font-size: .68rem;
  }

  .rm-strategy-table .rm-driver-select,
  .rm-strategy-table .rm-condition-select,
  .rm-strategy-table .rm-stop-select,
  .rm-strategy-table .rm-btn-small {
    font-size: .64rem;
    padding: 5px 6px;
  }
}


/* v5.8.6.17: compact pit-stop controls */
.rm-strategy-table .rm-col-stop {
  width: 108px;
  min-width: 0;
}

.rm-strategy-table .rm-stop-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.rm-strategy-table .rm-stop-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 26px;
  border-radius: 7px;
  padding: 3px 20px 3px 6px;
  font-size: .66rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.rm-strategy-table .rm-stop-pill {
  max-width: 100%;
  font-size: .66rem;
}

.rm-strategy-table .rm-stop-subline {
  color: var(--text-muted, #94a3b8);
  font-size: .64rem;
  line-height: 1.15;
}

.rm-strategy-table .rm-refuel-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  color: var(--text-muted, #94a3b8);
  font-size: .63rem;
  font-weight: 800;
}

.rm-strategy-table .rm-refuel-field input {
  width: 100%;
  min-width: 0;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: #0b1220;
  color: var(--text-main, #f3f4f6);
  padding: 3px 5px;
  font: inherit;
}

/* v5.8.6.18: tighter stint planner width and fixed compact pit controls */
.app-body .rm-shell {
  max-width: min(1420px, calc(100vw - 48px));
}

.rm-strategy-table {
  table-layout: fixed;
}

.rm-strategy-table th,
.rm-strategy-table td {
  padding-left: 6px;
  padding-right: 6px;
}

.rm-strategy-table th:nth-child(1),
.rm-strategy-table td:nth-child(1) { width: 34px; }
.rm-strategy-table .rm-col-driver { width: 124px; }
.rm-strategy-table .rm-col-my-time,
.rm-strategy-table .rm-col-my-time-head,
.rm-strategy-table .rm-col-driver-time,
.rm-strategy-table .rm-col-driver-time-head { width: 76px; }
.rm-strategy-table th:nth-child(5),
.rm-strategy-table td:nth-child(5) { width: 70px; }
.rm-strategy-table .rm-col-stop,
.rm-strategy-table .rm-col-stop-head { width: 112px; max-width: 112px; }
.rm-strategy-table .rm-col-pit-loss,
.rm-strategy-table .rm-col-pit-loss-head { width: 108px; max-width: 108px; }
.rm-strategy-table .rm-col-pit,
.rm-strategy-table .rm-col-pit-head { width: 82px; }
.rm-strategy-table .rm-col-drive,
.rm-strategy-table .rm-col-drive-head { width: 78px; }
.rm-strategy-table th:nth-child(10),
.rm-strategy-table td:nth-child(10) { width: 58px; }
.rm-strategy-table th:nth-child(11),
.rm-strategy-table td:nth-child(11) { width: 38px; }
.rm-strategy-table th:nth-child(12),
.rm-strategy-table td:nth-child(12) { width: 54px; }
.rm-strategy-table .rm-col-action,
.rm-strategy-table .rm-col-action-head { width: 74px; }

.rm-strategy-table .rm-stop-cell {
  width: 100%;
  max-width: 104px;
}

.rm-strategy-table .rm-stop-select {
  width: 104px;
  max-width: 104px;
  min-width: 0;
  height: 24px;
  padding: 2px 18px 2px 6px;
  font-size: .64rem;
}

.rm-strategy-table .rm-refuel-field {
  grid-template-columns: 20px 1fr;
  max-width: 104px;
}

.rm-strategy-table .rm-col-pit-loss .rm-muted {
  display: block;
  max-width: 102px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rm-strategy-table .rm-action-stack {
  gap: 4px;
}

.rm-strategy-table .rm-btn-small {
  width: 100%;
  padding: 5px 5px;
}


/* Center stint plan time columns. */
.rm-strategy-table .rm-col-my-time,
.rm-strategy-table .rm-col-my-time-head,
.rm-strategy-table .rm-col-driver-time,
.rm-strategy-table .rm-col-driver-time-head {
  text-align: center;
}

@media (max-width: 1280px) {
  .app-body .rm-shell {
    max-width: calc(100vw - 32px);
  }

  .rm-strategy-table th,
  .rm-strategy-table td {
    padding-left: 4px;
    padding-right: 4px;
    font-size: .66rem;
  }

  .rm-strategy-table .rm-col-driver { width: 112px; }
  .rm-strategy-table .rm-col-stop,
  .rm-strategy-table .rm-col-stop-head { width: 104px; max-width: 104px; }
  .rm-strategy-table .rm-col-pit-loss,
  .rm-strategy-table .rm-col-pit-loss-head { width: 100px; max-width: 100px; }
  .rm-strategy-table .rm-stop-cell,
  .rm-strategy-table .rm-stop-select,
  .rm-strategy-table .rm-refuel-field { max-width: 96px; }
  .rm-strategy-table .rm-stop-select { width: 96px; }
}

.rm-event-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: transparent;
  backdrop-filter: none;
  padding-top: 8px;
}

.rm-safety-car-quick {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(245,158,11,.28);
  border-radius: 16px;
  background: rgba(245,158,11,.08);
}

.rm-safety-car-quick h3 {
  margin: 0 0 6px;
}

.rm-safety-car-quick .rm-status.full {
  flex-basis: 100%;
}

@media (max-width: 820px) {
  .rm-safety-car-quick {
    flex-direction: column;
  }
}

/* v6.0.5: normalize stint-plan column widths after the v6 Safety-Car columns. */
.rm-strategy-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.rm-strategy-table {
  width: 100%;
  min-width: 1240px;
  table-layout: fixed;
}

.rm-strategy-table th,
.rm-strategy-table td {
  padding: 7px 6px;
  font-size: .72rem;
  line-height: 1.18;
  word-break: normal;
  overflow-wrap: normal;
}

.rm-strategy-table th {
  white-space: normal;
  hyphens: none;
}

.rm-strategy-table td {
  white-space: normal;
}

.rm-strategy-table .rm-col-stint,
.rm-strategy-table .rm-col-stint-head {
  width: 44px !important;
  max-width: 44px !important;
  text-align: center;
}

.rm-strategy-table .rm-col-driver,
.rm-strategy-table .rm-col-driver-head {
  width: 124px !important;
  max-width: 124px !important;
}

.rm-strategy-table .rm-col-my-time,
.rm-strategy-table .rm-col-my-time-head,
.rm-strategy-table .rm-col-driver-time,
.rm-strategy-table .rm-col-driver-time-head {
  width: 76px !important;
  max-width: 76px !important;
  text-align: center;
}

.rm-strategy-table .rm-col-conditions,
.rm-strategy-table .rm-col-conditions-head {
  width: 76px !important;
  max-width: 76px !important;
}

.rm-strategy-table .rm-col-stop,
.rm-strategy-table .rm-col-stop-head {
  width: 112px !important;
  max-width: 112px !important;
}

.rm-strategy-table .rm-col-pit-loss,
.rm-strategy-table .rm-col-pit-loss-head {
  width: 118px !important;
  max-width: 118px !important;
}

.rm-strategy-table .rm-col-pit,
.rm-strategy-table .rm-col-pit-head {
  width: 86px !important;
  max-width: 86px !important;
}

.rm-strategy-table .rm-col-drive,
.rm-strategy-table .rm-col-drive-head {
  width: 78px !important;
  max-width: 78px !important;
}

.rm-strategy-table .rm-col-sc,
.rm-strategy-table .rm-col-sc-head {
  width: 54px !important;
  max-width: 54px !important;
  text-align: center;
}

.rm-strategy-table .rm-col-sim,
.rm-strategy-table .rm-col-sim-head {
  width: 66px !important;
  max-width: 66px !important;
  text-align: center;
}

.rm-strategy-table .rm-col-laps,
.rm-strategy-table .rm-col-laps-head {
  width: 50px !important;
  max-width: 50px !important;
  text-align: right;
}

.rm-strategy-table .rm-col-fuel,
.rm-strategy-table .rm-col-fuel-head {
  width: 68px !important;
  max-width: 68px !important;
}

.rm-strategy-table .rm-col-action,
.rm-strategy-table .rm-col-action-head {
  width: 74px !important;
  max-width: 74px !important;
}

.rm-strategy-table .rm-driver-select,
.rm-strategy-table .rm-condition-select,
.rm-strategy-table .rm-stop-select {
  max-width: 100%;
}

.rm-strategy-table .rm-stop-cell,
.rm-strategy-table .rm-stop-select,
.rm-strategy-table .rm-refuel-field {
  width: 100%;
  max-width: 100%;
}

.rm-strategy-table .rm-col-pit-loss .rm-muted,
.rm-strategy-table .rm-col-sc .rm-muted {
  overflow-wrap: anywhere;
}

.rm-strategy-table .rm-action-stack {
  align-items: stretch;
}

.rm-strategy-table .rm-btn-small {
  min-width: 0;
  width: 100%;
  white-space: nowrap;
}

.rm-preset-class-list {
  gap: 10px;
}

.rm-row-compact {
  padding: 12px;
}

.rm-row-compact .rm-inline-form {
  margin-top: 10px;
}

/* v6.0.7: make Safety Car lap accounting visible instead of hiding it behind the rounded total. */
.rm-strategy-table .rm-col-sc,
.rm-strategy-table .rm-col-sc-head {
  width: 82px;
  text-align: center;
}

.rm-strategy-table .rm-col-laps,
.rm-strategy-table .rm-col-laps-head {
  width: 88px;
  text-align: right;
}

.rm-strategy-table .rm-lap-subline {
  display: block;
  line-height: 1.18;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .rm-strategy-table .rm-col-sc,
  .rm-strategy-table .rm-col-sc-head { width: 76px; }
  .rm-strategy-table .rm-col-laps,
  .rm-strategy-table .rm-col-laps-head { width: 82px; }
}
