:root {
  --tms-bg-url: none;
}

.fueldesk-page *,
.fueldesk-page *::before,
.fueldesk-page *::after {
  box-sizing: border-box;
}

.fueldesk-page {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  color: #f5f7ff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0b1020;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.70)),
    var(--tms-bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fueldesk-wrap {
  width: min(1160px, 100%);
  max-width: 100%;
  padding-bottom: 28px;
  flex: 0 0 100%;
}

.fueldesk-top-banner {
  width: min(920px, 100%);
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #b00020;
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.fueldesk-top-banner[hidden] {
  display: none !important;
}

.top-banner-flash {
  animation: topFlash 1.4s ease;
}

@keyframes topFlash {
  0% { transform: scale(1); }
  20% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.result-flash {
  animation: resultFlash 1.2s ease;
}

@keyframes resultFlash {
  0% { background: rgba(255,255,0,0.2); }
  100% { background: transparent; }
}

.fueldesk-page label {
  display: grid;
  gap: 8px;
  color: rgba(240, 244, 255, 0.95);
  font-weight: 700;
}

.fd-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.fd-help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(111, 136, 210, 0.65);
  background: rgba(30, 45, 89, 0.9);
  color: #f5f8ff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  outline: none;
}

.fd-help-tip::after {
  content: attr(data-tip);
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(6, 10, 24, 0.98);
  border: 1px solid rgba(93, 114, 183, 0.72);
  color: #eef3ff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 1200;
}

.fd-help-tip::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 16, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 1190;
}

.fd-help-tip:hover::before,
.fd-help-tip:focus-visible::before,
.fd-help-tip:hover::after,
.fd-help-tip:focus-visible::after {
  opacity: 1;
}

.fueldesk-page input[type="number"],
.fueldesk-page input[type="text"],
.fueldesk-page input[type="tel"] {
  width: 100%;
  background: rgba(7, 12, 34, 0.95);
  color: #f3f7ff;
  border: 1px solid #2a3257;
  border-radius: 16px;
  padding: 12px 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.fueldesk-page input::placeholder {
  color: rgba(224, 232, 255, 0.55);
}

.fueldesk-page input:focus {
  border-color: #4b6cb8;
  box-shadow: 0 0 0 2px rgba(75, 108, 184, 0.25);
}

.fueldesk-page input.fd-input-error {
  border-color: #ff7a7a;
  box-shadow: 0 0 0 2px rgba(255, 122, 122, 0.22);
}

.fueldesk-page .fd-field-invalid {
  color: #ffe0e0;
}

.fd-field-error {
  min-height: 18px;
  margin: 0;
  color: #ff9d9d;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.fd-field-error:empty {
  display: none;
}

.fd-required-note {
  margin: 2px 0 0;
  color: rgba(240, 244, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.fueldesk-page .locked {
  background: rgba(7, 12, 34, 0.75);
  color: #e7eeff;
}

.fd-main-field {
  min-width: 0;
}

.fd-label-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.fd-inline-toggle {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  justify-self: end;
  align-self: center;
}

.fd-inline-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #6f88d2;
}

.fd-inline-toggle span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.fd-zip-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(73, 92, 156, 0.48);
  border-radius: 18px;
  background: rgba(10, 16, 35, 0.58);
}

.fd-toggle-row {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.fd-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #6f88d2;
}

.fd-toggle-row span {
  font-weight: 700;
}

.fd-zip-grid {
  margin-top: 14px;
}

.fueldesk-page input:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.fueldesk-page button {
  border-radius: 16px;
  border: 1px solid #2e4069;
  background: linear-gradient(135deg, #28315a 0%, #353a5f 100%);
  color: #f5f8ff;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.fueldesk-page button:hover {
  filter: brightness(1.08);
}

.fueldesk-page button:active {
  transform: translateY(1px);
}

.fueldesk-page .primary {
  border-color: #4c6dac;
  background: linear-gradient(135deg, #2f4d80 0%, #3d4b83 100%);
}

.fueldesk-screen { display: none; }
.fueldesk-screen.is-active { display: block; }

.fd-idle-card {
  margin: 4vh auto;
  max-width: 640px;
  border: 1px solid #2a2e44;
  border-radius: 24px;
  background: rgba(12, 16, 30, 0.86);
  padding: clamp(24px, 4vw, 48px);
  text-align: left;
}

.fd-idle-kicker {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216, 224, 245, 0.76);
}

.fd-idle-card h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.94;
  color: #f7f9ff;
}

.fd-idle-subhead {
  margin: 16px 0 0;
  font-size: clamp(18px, 3.6vw, 28px);
  line-height: 1.3;
  color: rgba(240, 244, 255, 0.92);
}

.fd-idle-time {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffcf70;
}

.fd-idle-card button {
  width: 100%;
  min-height: 66px;
  margin-top: 22px;
  font-size: clamp(22px, 4.8vw, 32px);
  font-weight: 900;
}

.fueldesk-hero {
  text-align: center;
  margin: 8px 0 18px;
}
.fueldesk-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 1px;
}
.fueldesk-hero h2 {
  margin: 2px 0 8px;
  font-size: clamp(26px, 3.2vw, 44px);
}
.fueldesk-hero p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 22px);
  opacity: .88;
}
.fueldesk-hero.compact h1 { font-size: clamp(28px, 3.5vw, 42px); }

.fd-example-cta {
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
}

.fd-example-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(73, 92, 156, 0.42);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 27, 54, 0.7), rgba(10, 16, 35, 0.54));
  box-shadow: 0 16px 34px rgba(10, 18, 42, 0.2);
  backdrop-filter: blur(4px);
}

.fd-example-cta__copy {
  flex: 1 1 320px;
  min-width: 0;
}

.fd-example-cta__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 800;
}

.fd-example-cta__text {
  margin: 0 0 10px;
  font-size: 0.96rem;
  line-height: 1.4;
  opacity: 0.92;
}

.fd-example-cta__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fd-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.fd-example-cta__actions {
  flex: 0 1 260px;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fd-example-cta__button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.fd-example-cta__button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.fd-example-cta__button:active {
  transform: translateY(0);
}

.fd-example-cta__subtext {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.82;
}

.fueldesk-card {
  border: 1px solid #2a2e44;
  border-radius: 18px;
  background: rgba(15, 18, 32, 0.80);
  padding: clamp(14px, 2vw, 24px);
  margin-bottom: 14px;
  overflow: hidden;
}

#fdInputScreen .fueldesk-card {
  overflow: visible;
}

.fd-usage-panel,
.fd-signup-panel {
  border: 1px solid #2e4069;
  border-radius: 16px;
  background: rgba(9, 14, 34, 0.78);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.fd-usage-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fd-usage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(61, 75, 131, 0.34);
  border: 1px solid #4c6dac;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.fd-usage-badge.warn {
  border-color: #c88d31;
  background: rgba(118, 80, 17, 0.3);
}

.fd-usage-badge.exhausted {
  border-color: #b55252;
  background: rgba(124, 36, 36, 0.28);
}

.fd-signup-panel h3,
.fd-signup-panel p {
  margin: 0 0 10px;
}

.fd-signup-panel button {
  min-height: 54px;
  min-width: min(100%, 320px);
}

.fueldesk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.fd-main-input-grid {
  margin-bottom: 12px;
  align-items: end;
}

.fd-main-input-grid > * {
  display: grid;
  grid-template-rows: minmax(40px, auto) auto;
  align-content: start;
}

.fd-guided-card {
  display: grid;
  gap: 14px;
}

.fd-guided-copy h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 34px);
}

.fd-secondary-grid {
  margin-top: 12px;
}

.fd-optional-field {
  max-width: 320px;
}

.fd-fuel-action-stack {
  display: grid;
  gap: 12px;
  width: 100%;
}

.fd-guided-action {
  grid-template-columns: 1fr;
  justify-content: stretch;
  width: 100%;
}

.fd-guided-action button {
  width: 100%;
}

@media (min-width: 900px) {
  .fd-main-input-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fd-fuel-action-stack {
    max-width: 320px;
  }
}

.fd-secondary-details {
  margin-top: 6px;
  border: 1px solid rgba(79, 94, 139, 0.34);
  border-radius: 16px;
  background: rgba(10, 15, 32, 0.44);
  overflow: hidden;
}

.fd-secondary-details summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
}

.fd-secondary-details summary::-webkit-details-marker {
  display: none;
}

.fd-secondary-stack {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.fd-trial-setup {
  margin-top: 12px;
  border: 1px solid rgba(79, 94, 139, 0.34);
  border-radius: 16px;
  background: rgba(10, 15, 32, 0.52);
  overflow: hidden;
}

.fd-trial-setup summary {
  list-style: none;
  cursor: pointer;
  padding: 14px;
}

.fd-trial-setup summary::-webkit-details-marker {
  display: none;
}

.fd-trial-setup summary span {
  display: block;
}

.fd-trial-setup-sub {
  margin-top: 6px;
  color: rgba(240, 244, 255, 0.78);
  line-height: 1.4;
  font-size: 0.94rem;
}

.fd-trial-setup-body {
  padding: 0 14px 14px;
}

.fd-trial-toprow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fd-trial-mode {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fd-trial-mode-btn,
.fd-trial-recommended-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(90, 116, 189, 0.4);
  background: rgba(14, 22, 42, 0.8);
  color: #edf3ff;
  padding: 10px 14px;
  font-weight: 700;
}

.fd-trial-mode-btn[aria-pressed="true"] {
  background: rgba(57, 91, 170, 0.46);
  border-color: rgba(113, 157, 255, 0.72);
}

.fd-trial-slider-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
}

.fd-trial-slider-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fd-trial-slider-label {
  font-weight: 800;
}

.fd-trial-slider-help {
  color: rgba(240, 244, 255, 0.72);
  font-size: 0.9rem;
}

.fd-trial-slider-value {
  font-weight: 800;
  color: #dce9ff;
  white-space: nowrap;
}

.fd-trial-slider {
  width: 100%;
  margin-top: 8px;
  accent-color: #5c83df;
}

.fd-trial-slider:disabled {
  opacity: 0.55;
}

.fd-reposition-card,
.fd-settings-note,
.fd-driver-viability-card,
.fd-negotiation-session-card,
.fd-result-brief-card {
  border: 1px solid rgba(79, 94, 139, 0.34);
  border-radius: 16px;
  background: rgba(10, 15, 32, 0.52);
  padding: 14px;
}

.fd-reposition-card {
  margin-top: 12px;
}

.fd-reposition-head,
.fd-driver-viability-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.fd-section-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(216, 224, 245, 0.76);
}

.fd-reposition-copy,
.fd-settings-note p {
  margin: 6px 0 0;
  color: rgba(240, 244, 255, 0.86);
  line-height: 1.45;
}

.fd-reposition-value,
.fd-driver-viability-status,
.fd-brief-value {
  font-size: 1.15rem;
  font-weight: 900;
}

.fd-reposition-card input[type="range"] {
  width: 100%;
  margin: 14px 0 10px;
  accent-color: #4c6dac;
}

.fd-reposition-stops {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(216, 224, 245, 0.72);
}


.fd-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 10px 0;
  align-items: start;
}

.fueldesk-grid > *,
.fd-key-grid > * {
  min-width: 0;
}

.fd-key-grid label {
  font-weight: 800;
}

.fueldesk-grid input {
  font-size: clamp(18px, 1.8vw, 28px);
  min-height: 58px;
  max-width: 100%;
}

.fueldesk-mpg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.fueldesk-mpg-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #2a2e44;
  background: rgba(255, 255, 255, .04);
  font-size: clamp(16px, 1.6vw, 24px);
}

.fueldesk-mpg-panel {
  margin-top: 10px;
  border: 1px solid #2a2e44;
  border-radius: 14px;
  padding: 10px;
  background: rgba(0, 0, 0, .18);
}

.fueldesk-mpg-panel input[type="range"] { width: 100%; }

.fueldesk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.fueldesk-actions.is-ready button {
  box-shadow: 0 0 0 1px rgba(113, 157, 255, 0.35), 0 16px 34px rgba(10, 18, 42, 0.38);
  animation: fdActionReadyPulse 1.15s ease-in-out 2;
}

.fueldesk-actions.single {
  grid-template-columns: minmax(260px, 640px);
  margin-top: 0;
}

.fueldesk-actions.single button {
  min-height: 54px;
  font-size: clamp(16px, 1.5vw, 24px);
}

.fueldesk-actions button {
  min-height: 62px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
}

@keyframes fdActionReadyPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(113, 157, 255, 0.35), 0 16px 34px rgba(10, 18, 42, 0.38);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(145, 184, 255, 0.5), 0 22px 42px rgba(10, 18, 42, 0.46);
  }
}

.fd-transparency-card {
  margin: 16px 0 18px;
  border: 1px solid rgba(79, 94, 139, 0.42);
  border-radius: 18px;
  background: rgba(8, 13, 30, 0.6);
  padding: 16px;
}

.fd-result-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fd-run-another-btn {
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 128, 128, 0.55) !important;
  background: linear-gradient(180deg, #b93333 0%, #8d1f1f 100%) !important;
  color: #fff4f4 !important;
  box-shadow: 0 0 0 0 rgba(201, 54, 54, 0.45);
  animation: fd-run-another-pulse 1.8s ease-in-out infinite;
}

.fd-more-info-btn {
  text-align: center;
}

.fd-bottom-run-again {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .fd-main-input-grid > * {
    grid-template-rows: auto auto;
  }

  .fd-label-row-split {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 0;
  }

  .fd-inline-toggle {
    padding: 0;
  }

  .fd-result-topbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fd-result-topbar .fd-run-another-btn,
  .fd-result-topbar .fd-more-info-btn {
    width: 100%;
    white-space: normal;
    line-height: 1.2;
  }
}

@keyframes fd-run-another-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 54, 54, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 12px rgba(201, 54, 54, 0);
  }
}

.fd-transparency-top {
  display: grid;
  gap: 14px;
}

.fd-conversion-card {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.tms-verdict-block,
.tms-pay-target-block,
.tms-impact-block,
.tms-fix-next-block,
.tms-business-reality-block {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.tms-verdict-block {
  background: rgba(120, 20, 20, 0.14);
  border-color: rgba(255, 120, 120, 0.24);
}

.tms-verdict-row,
.tms-impact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.tms-verdict-row + .tms-verdict-row,
.tms-impact-row + .tms-impact-row {
  margin-top: 10px;
}

.tms-verdict-label,
.tms-block-heading {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(216, 224, 245, 0.76);
}

.tms-verdict-value,
.tms-pay-target-amount,
.tms-impact-row strong {
  font-size: clamp(20px, 3.8vw, 30px);
  font-weight: 900;
  color: #f7f9ff;
}

.tms-gap-emphasis {
  color: #ffcf70;
}

.tms-verdict-punch {
  margin-top: 14px;
  font-size: clamp(18px, 3.6vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  color: #ffcf70;
}

.tms-pay-target-copy,
.tms-pay-target-benchmark,
.tms-fix-next-copy {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #eef2ff;
}

.tms-impact-row span {
  color: rgba(240, 244, 255, 0.86);
}

.tms-impact-row-annual {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tms-fix-next-block {
  padding: 16px;
  border-radius: 18px;
  background: rgba(79, 109, 245, 0.12);
  border: 1px solid rgba(110, 140, 255, 0.24);
}

.tms-fix-next-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.tms-upgrade-points {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #eef2ff;
  font-weight: 700;
}

.tms-upgrade-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.tms-fix-next-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(180deg, #5e7bff 0%, #425dde 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.tms-fix-next-btn.secondary {
  background: rgba(12, 18, 40, 0.8);
  border: 1px solid rgba(110, 140, 255, 0.24);
}

.tms-business-reality-block {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tms-business-reality-title,
.tms-business-reality-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(216, 224, 245, 0.78);
}

.tms-business-reality-copy.secondary {
  margin-top: 6px;
  color: rgba(216, 224, 245, 0.68);
}

.fd-otraff-block,
.fd-slider-card,
.fd-metric,
.fd-reason-card {
  border: 1px solid rgba(79, 94, 139, 0.34);
  border-radius: 16px;
  background: rgba(10, 15, 32, 0.52);
  padding: 14px;
}

.fd-label,
.fd-slider-title,
.fd-metric-label,
.fd-live-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(216, 224, 245, 0.76);
}

.fd-otraff-value {
  margin-top: 8px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 900;
}

.fd-credibility-line,
.fd-clarity-line {
  margin: 12px 0 0;
  color: rgba(240, 244, 255, 0.92);
  line-height: 1.45;
}

.fd-clarity-line.secondary {
  margin-top: 4px;
  color: rgba(216, 224, 245, 0.78);
}

.fd-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fd-status-pill.fd-red,
.fd-live-value.fd-red,
.fd-status-pill.state-red,
.fd-live-value.state-red,
.fd-otraff-value.state-red {
  color: #f9c9cf;
}

.fd-status-pill.fd-orange,
.fd-live-value.fd-orange,
.fd-status-pill.state-orange,
.fd-live-value.state-orange,
.fd-otraff-value.state-orange {
  color: #fde2a6;
}

.fd-status-pill.fd-green,
.fd-live-value.fd-green,
.fd-status-pill.state-green,
.fd-live-value.state-green,
.fd-otraff-value.state-green {
  color: #c5f2d3;
}

.fd-status-pill.state-neutral,
.fd-live-value.state-neutral,
.fd-otraff-value.state-neutral {
  color: #dce9ff;
}

.fd-status-pill.fd-red {
  background: rgba(164, 42, 61, 0.18);
  border-color: rgba(210, 91, 110, 0.46);
}

.fd-status-pill.fd-orange {
  background: rgba(184, 118, 24, 0.18);
  border-color: rgba(217, 161, 74, 0.46);
}

.fd-status-pill.fd-green {
  background: rgba(38, 128, 76, 0.18);
  border-color: rgba(88, 188, 126, 0.46);
}

.fd-status-pill.state-red {
  background: rgba(164, 42, 61, 0.18);
  border-color: rgba(210, 91, 110, 0.46);
}

.fd-status-pill.state-orange {
  background: rgba(184, 118, 24, 0.18);
  border-color: rgba(217, 161, 74, 0.46);
}

.fd-status-pill.state-green {
  background: rgba(38, 128, 76, 0.18);
  border-color: rgba(88, 188, 126, 0.46);
}

.fd-status-pill.state-neutral {
  background: rgba(64, 84, 128, 0.18);
  border-color: rgba(139, 165, 224, 0.4);
}

.fd-slider-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.fd-slider-title {
  max-width: 28ch;
  line-height: 1.35;
}

.fd-slider-revenue {
  font-size: 1.1rem;
  font-weight: 900;
  white-space: nowrap;
}

.fd-revenue-slider {
  width: 100%;
  margin: 16px 0 10px;
  accent-color: #4c6dac;
}
.slider-lock-wrap {
  display: grid;
  gap: 6px;
}
.slider-lock-controls {
  display: flex;
  justify-content: flex-end;
}
.slider-lock-toggle {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
}
input[type="range"].slider-locked,
.slider-lock-wrap.is-locked input[type="range"] {
  opacity: 0.72;
  touch-action: pan-y;
}
input[type="range"][data-locked="true"] {
  pointer-events: auto;
}
@media (pointer: coarse) {
  input[type="range"] {
    touch-action: pan-y;
  }
}

.fd-slider-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(216, 224, 245, 0.72);
}

.fd-live-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.fd-live-box {
  min-width: 0;
  border: 1px solid rgba(79, 94, 139, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 11px 12px;
}

.fd-live-value {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 900;
}

.fd-transparency-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .fd-transparency-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fd-metric-value {
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 900;
}

.fd-result-brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.fd-brief-subvalue {
  display: block;
  margin-top: 6px;
  color: rgba(216, 224, 245, 0.78);
  font-size: 0.92rem;
}

.fd-driver-viability-card,
.fd-negotiation-session-card {
  margin-top: 14px;
}

.fd-driver-viability-head h3 {
  margin: 6px 0 0;
  font-size: 1rem;
}

.fd-negotiation-session-grid,
.fd-driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fd-result-actions {
  margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#fdExtendNegotiation.is-warning {
  animation: fdPulse 1s ease-in-out infinite alternate;
}

.fd-reason-card {
  margin-top: 14px;
}

.fd-why-toggle {
  width: 100%;
  min-height: 48px;
  text-align: left;
  padding: 12px 14px;
}

.fd-why-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(79, 94, 139, 0.24);
}

.fd-reason-text {
  white-space: pre-line;
  line-height: 1.5;
  color: rgba(240, 244, 255, 0.94);
}

@media (max-width: 720px) {
  .fd-example-cta__inner {
    padding: 14px;
  }

  .fd-example-cta__actions {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .fd-example-cta__title {
    font-size: 1.05rem;
  }

  .fd-example-cta__text {
    font-size: 0.92rem;
  }

  .fd-live-row,
  .fd-transparency-grid {
    grid-template-columns: 1fr;
  }

  .fd-slider-head {
    flex-direction: column;
  }

  .fd-slider-revenue {
    white-space: normal;
  }

  .fd-reposition-head,
  .fd-driver-viability-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .fd-conversion-card {
    padding: 16px;
  }

  .fd-conversion-actions {
    grid-template-columns: 1fr;
  }

  .fd-conversion-impact-row {
    align-items: flex-start;
    flex-direction: column;
  }

}

@keyframes fdPulse {
  from { box-shadow: 0 0 0 0 rgba(220, 96, 96, 0.18); }
  to { box-shadow: 0 0 0 10px rgba(220, 96, 96, 0); }
}

.fd-dual-status {
  margin: 14px 0 12px;
  border: 1px solid #2a2e44;
  border-radius: 16px;
  background: rgba(10, 15, 32, 0.4);
  padding: 14px;
}

.fd-dual-status-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fd-dual-status-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(208, 218, 245, 0.72);
}

.fd-dual-status-value {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.fd-otraff-gauge-shell {
  border: 1px solid rgba(79, 94, 139, 0.42);
  border-radius: 16px;
  background: rgba(8, 13, 30, 0.6);
  padding: 14px;
}

.fd-otraff-gauge-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fd-otraff-gauge-kicker,
.fd-otraff-gauge-note,
.fd-otraff-status-line,
.fd-otraff-message-line,
.fd-otraff-gauge-helper p {
  margin: 0;
}

.fd-otraff-gauge-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 222, 255, 0.72);
}

.fd-otraff-gauge-value {
  margin-top: 4px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.fd-otraff-gauge-note {
  max-width: 460px;
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(224, 232, 255, 0.78);
}

.fd-otraff-gauge-track {
  position: relative;
  display: flex;
  height: 22px;
  border-radius: 999px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  touch-action: none;
  user-select: none;
}

.fd-otraff-zone {
  flex: 1;
  min-width: 0;
}

.fd-otraff-zone.red { background: #9b3438; border-radius: 999px 0 0 999px; }
.fd-otraff-zone.orange { background: #b7642c; }
.fd-otraff-zone.yellow { background: #b59a2f; }
.fd-otraff-zone.green { background: #34834d; }
.fd-otraff-zone.fleet { background: #186c54; border-radius: 0 999px 999px 0; }

.fd-otraff-gauge-marker {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(10, 14, 28, 0.95);
  background: #f6fbff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.14), 0 10px 22px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
  transition: left 320ms cubic-bezier(.22, 1, .36, 1), background-color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
  animation: fd-health-teeter 2.4s ease-in-out infinite;
  will-change: left, transform;
  cursor: grab;
}

.fd-otraff-gauge-marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.18;
  filter: blur(8px);
  animation: fd-health-pulse 2.2s ease-in-out infinite;
}

.fd-otraff-gauge-shell.is-neutral .fd-otraff-gauge-marker {
  background: rgba(203, 214, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
  color: rgba(203, 214, 235, 0.7);
  animation-duration: 3.2s;
}

.fd-otraff-gauge-shell.is-red .fd-otraff-gauge-marker { background: #ff9a96; color: #ff9a96; }
.fd-otraff-gauge-shell.is-orange .fd-otraff-gauge-marker { background: #ffc28c; color: #ffc28c; }
.fd-otraff-gauge-shell.is-yellow .fd-otraff-gauge-marker { background: #ffe58e; color: #ffe58e; }
.fd-otraff-gauge-shell.is-green .fd-otraff-gauge-marker { background: #9bffc1; color: #9bffc1; }
.fd-otraff-gauge-shell.is-fleet-green .fd-otraff-gauge-marker { background: #72ffd6; color: #72ffd6; }

.fd-otraff-gauge-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  color: rgba(224, 232, 255, 0.72);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
}

.fd-otraff-gauge-labels span:nth-child(1) { text-align: left; }
.fd-otraff-gauge-labels span:nth-child(2),
.fd-otraff-gauge-labels span:nth-child(3),
.fd-otraff-gauge-labels span:nth-child(4) { text-align: center; }
.fd-otraff-gauge-labels span:nth-child(5) { text-align: right; }

.fd-otraff-gauge-status {
  margin-top: 14px;
}

.fd-otraff-status-line {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 900;
}

.fd-otraff-message-line {
  margin-top: 6px;
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(233, 239, 255, 0.88);
}

.fd-otraff-gauge-helper {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 21, 42, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  gap: 6px;
  color: rgba(224, 232, 255, 0.84);
  font-size: clamp(13px, 1.2vw, 15px);
}

.fd-otraff-gauge-shell.is-red .fd-otraff-status-line { color: #ff9a96; }
.fd-otraff-gauge-shell.is-orange .fd-otraff-status-line { color: #ffc28c; }
.fd-otraff-gauge-shell.is-yellow .fd-otraff-status-line { color: #ffe58e; }
.fd-otraff-gauge-shell.is-green .fd-otraff-status-line { color: #9bffc1; }
.fd-otraff-gauge-shell.is-fleet-green .fd-otraff-status-line { color: #72ffd6; }

@keyframes fd-health-teeter {
  0%, 100% {
    transform: translate3d(calc(-50% - 5px), -50%, 0) scale(0.98);
  }
  50% {
    transform: translate3d(calc(-50% + 5px), -50%, 0) scale(1.04);
  }
}

@keyframes fd-health-pulse {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.24;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-otraff-gauge-marker,
  .fd-otraff-gauge-marker::after {
    animation: none;
  }
}

.fd-profit-line {
  margin-top: 10px;
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 900;
}
.fd-profit-line.red { color: #ff8e8e; }
.fd-profit-line.green { color: #82f5a5; }

.fd-post-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.fd-post-result__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fd-post-result__title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.fd-post-result__text {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.fd-post-result__text.strong {
  font-weight: 700;
}

.fd-post-result__button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.fd-post-result__subtext {
  font-size: 0.8rem;
  opacity: 0.75;
  margin: 0;
}

.fd-summary {
  border: 1px solid #2a2e44;
  border-radius: 14px;
  background: rgba(10, 15, 32, 0.45);
  padding: 12px;
  margin-bottom: 12px;
}

.fd-summary h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
}

.fd-summary p {
  margin: 6px 0;
  font-size: clamp(16px, 1.6vw, 24px);
}

.fd-action-box h3 {
  margin-top: 0;
}

.fd-load-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 900;
  border: 1px solid transparent;
}

.fd-load-status::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06), 0 0 22px currentColor;
}

.fd-load-status.red {
  background: rgba(139, 47, 47, 0.22);
  border-color: rgba(255, 136, 136, 0.55);
  color: #ffb2b2;
}

.fd-load-status.red::before,
.fd-load-status.state-red::before {
  background: radial-gradient(circle at 35% 35%, #ffd6da 0%, #ff7f90 45%, #ff314f 100%);
}

.fd-load-status.orange {
  background: rgba(204, 132, 43, 0.20);
  border-color: rgba(255, 183, 110, 0.55);
  color: #ffd39e;
}

.fd-load-status.orange::before,
.fd-load-status.state-orange::before {
  background: radial-gradient(circle at 35% 35%, #fff0bf 0%, #ffd35a 45%, #ff9f1a 100%);
}

.fd-load-status.green {
  background: rgba(47, 122, 71, 0.22);
  border-color: rgba(130, 245, 165, 0.55);
  color: #b6ffd0;
}

.fd-load-status.green::before,
.fd-load-status.state-green::before {
  background: radial-gradient(circle at 35% 35%, #dcffe5 0%, #6ff0a0 45%, #1db954 100%);
}

.fd-load-status.state-red {
  background: rgba(139, 47, 47, 0.22);
  border-color: rgba(255, 136, 136, 0.55);
  color: #ffb2b2;
}

.fd-load-status.state-orange {
  background: rgba(204, 132, 43, 0.20);
  border-color: rgba(255, 183, 110, 0.55);
  color: #ffd39e;
}

.fd-load-status.state-green {
  background: rgba(47, 122, 71, 0.22);
  border-color: rgba(130, 245, 165, 0.55);
  color: #b6ffd0;
}

.fd-load-status.state-neutral {
  background: rgba(58, 77, 118, 0.18);
  border-color: rgba(126, 151, 210, 0.45);
  color: #dce9ff;
}

.fd-teach-section {
  border: 1px solid #2a2e44;
  border-radius: 14px;
  background: rgba(10, 15, 32, 0.40);
  padding: 12px;
  margin-bottom: 12px;
}

.fd-teach-section h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 1.8vw, 26px);
}

.fd-rate-grid label {
  font-weight: 800;
}

.fd-otraf-line {
  margin: 0;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 800;
}

.fd-broker-notice-shell {
  margin-bottom: 12px;
}

.fd-broker-status-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  padding: 16px 18px;
}

.fd-broker-status-card.is-red {
  background: #ffe6e6;
  color: #c00000;
}

.fd-broker-status-card.is-orange {
  background: #fff4e6;
  color: #cc6600;
}

.fd-broker-status-card.is-green {
  background: #e6ffe6;
  color: #008000;
}

.fd-broker-status-kicker {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fd-broker-status-value {
  margin-top: 4px;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.05;
}

.fd-broker-status-label {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 900;
}

.fd-broker-status-compare {
  margin-top: 4px;
  font-size: .98rem;
  opacity: .9;
}

.fd-broker-notice-details {
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.fd-broker-notice-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 800;
}

.fd-broker-notice-details > summary::-webkit-details-marker { display: none; }

.fd-broker-notice-details > summary::after {
  content: "▾";
  float: right;
  opacity: .75;
}

.fd-broker-notice-details[open] > summary::after {
  transform: rotate(180deg);
}

.fd-broker-notice-body {
  padding: 0 16px 16px;
}

.fd-broker-notice-body p {
  margin: 0 0 12px;
}

.fd-notice-modal[hidden] {
  display: none !important;
}

.fd-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.66);
  backdrop-filter: blur(6px);
}

.fd-notice-dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(88vh, 840px);
  overflow: auto;
  padding: 22px 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(126,138,191,.26);
  background: rgba(8,12,24,.97);
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}

.fd-notice-dialog h2 {
  margin: 0 36px 14px 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.fd-notice-copy {
  white-space: pre-wrap;
  line-height: 1.65;
}

.fd-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.fd-notice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.fd-notice-footer {
  margin: 14px 0 0;
  font-size: .86rem;
  opacity: .74;
}

.fd-analysis-jump {
  width: 100%;
  margin-bottom: 12px;
  min-height: 54px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 900;
}

.fueldesk-page label.fueldesk-keepfuel {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 0;
  white-space: nowrap;
  line-height: 1.2;
  font-size: clamp(16px, 1.4vw, 24px);
  width: auto;
}

.fueldesk-page label.fueldesk-keepfuel input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
}

.fueldesk-footer-row {
  margin-top: 12px;
  margin-bottom: 18px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fd-analysis summary {
  cursor: pointer;
  font-size: clamp(18px, 2vw, 28px);
  padding: 2px 0 10px;
}

.fd-analysis h4 {
  margin: 14px 0 8px;
  font-size: clamp(16px, 1.8vw, 24px);
}

.fd-analysis .hint {
  margin-top: 8px;
}

.tms-game-card {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.tms-game-card[hidden],
.tms-game-intro[hidden],
.tms-game-panel[hidden] {
  display: none !important;
}

.tms-game-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tms-game-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tms-game-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tms-game-info-btn,
.tms-copy-btn,
.tms-primary-btn,
.tms-skip-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}

.tms-game-info-btn {
  width: 28px;
  height: 28px;
  font-weight: 800;
}

.tms-primary-btn {
  padding: 10px 14px;
  font-weight: 800;
}

.tms-skip-btn {
  padding: 8px 12px;
  font-size: 0.9rem;
  margin-top: 8px;
  align-self: flex-end;
}

.tms-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
}

.tms-toggle input {
  display: none;
}

.tms-toggle-track {
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #6b7280;
  position: relative;
  transition: background 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.tms-toggle-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
}

.tms-toggle input:checked + .tms-toggle-track {
  background: #10b981;
}

.tms-toggle input:checked + .tms-toggle-track .tms-toggle-thumb {
  transform: translateX(26px);
}

.tms-toggle-label {
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.9;
}

.tms-game-intro {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tms-intro-slide {
  display: none;
  animation: tmsFade 0.28s ease;
}

.tms-intro-slide.is-active {
  display: block;
}

.tms-intro-field {
  height: 70px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 12%),
    linear-gradient(180deg, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0.12));
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.tms-intro-truck {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: tmsDrive 1.6s ease-in-out infinite alternate;
}

.tms-intro-goal {
  font-size: 2rem;
  margin-bottom: 8px;
}

.tms-intro-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tms-intro-line {
  font-size: 1rem;
  font-weight: 800;
}

.tms-intro-subline {
  opacity: 0.88;
  line-height: 1.4;
}

.tms-game-panel {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.tms-field-wrap {
  display: grid;
  gap: 8px;
}

.tms-field-markers {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
}

.tms-field-markers span {
  text-align: center;
}

.tms-field {
  position: relative;
  height: 82px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b5a35;
}

.tms-field-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.zone-red { background: rgba(239, 68, 68, 0.25); }
.zone-orange { background: rgba(249, 115, 22, 0.22); }
.zone-yellow { background: rgba(234, 179, 8, 0.22); }
.zone-green { background: rgba(34, 197, 94, 0.22); }
.zone-gold { background: rgba(250, 204, 21, 0.22); }

.tms-yard-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 2px, transparent 2px 10%);
  pointer-events: none;
}

.tms-truck {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  line-height: 1;
  transition: left 0.45s ease, transform 0.45s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.tms-game-stats,
.tms-goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tms-stat,
.tms-goal-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tms-stat .label,
.tms-goal-card .label {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tms-stat .value,
.tms-goal-card .value {
  font-size: 1rem;
  font-weight: 800;
}

.tms-goal-card .subvalue {
  font-size: 0.9rem;
  opacity: 0.9;
}

.tms-negotiation-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 12px;
}

.tms-negotiation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tms-negotiation-head h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.tms-copy-btn {
  padding: 8px 12px;
  font-weight: 700;
}

.tms-negotiation-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  padding: 12px;
  line-height: 1.45;
  font: inherit;
}

@keyframes tmsFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tmsDrive {
  from { left: 10%; }
  to { left: 72%; }
}

@media (max-width: 900px) {
  .fueldesk-page { padding: 12px; }
  .fueldesk-wrap { padding-bottom: 24px; }
  .fueldesk-actions { grid-template-columns: 1fr; }
  .fueldesk-footer-row { flex-direction: column; align-items: stretch; }
  .fueldesk-keepfuel { justify-content: flex-start; }
  .fd-usage-panel { align-items: flex-start; }
  .fd-trial-toprow,
  .fd-trial-slider-row { flex-direction: column; align-items: flex-start; }
  .fd-dual-status-head,
  .fd-meter-head {
    align-items: flex-start;
  }
}

@media (min-width: 901px) {
  .fueldesk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fd-key-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tms-game-stats,
  .tms-goal-grid {
    grid-template-columns: 1fr;
  }

  .tms-field {
    height: 74px;
  }

  .tms-truck {
    font-size: 1.6rem;
  }
}

.tms-hidden {
  display: none !important;
}

.fmg-lock-line {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fmg-lock-line.show {
  opacity: 1;
  transform: translateY(0);
}

.find-my-green-highlight {
  animation: pulseHighlight 1s ease;
}

@keyframes pulseHighlight {
  0% { box-shadow: 0 0 0 rgba(0, 255, 0, 0); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.45); }
  100% { box-shadow: 0 0 0 rgba(0, 255, 0, 0); }
}

.review-lock-box {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(40px);
  width: min(92vw, 420px);
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 9999;
}

.review-lock-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.review-lock-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.review-lock-sub {
  font-size: 0.86rem;
  line-height: 1.35;
  opacity: 0.86;
  margin: 0 0 12px 0;
}

.review-lock-btn {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
}

.stats-preview-card {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.stats-preview-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.stats-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 10px 0;
}

.stats-chip {
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.stats-preview-sub {
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.84;
  margin: 0 0 12px 0;
}

.stats-preview-btn,
.copy-link-btn,
.fd-trial-lock-btn {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.copy-link-wrap {
  margin-top: 14px;
}

.copy-link-msg {
  display: none;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.82;
}

.built-by-driver-line {
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 0.82;
  margin-top: 8px;
}

.fd-trial-toprow {
  align-items: center;
}

.fd-trial-lock-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #335941 0%, #41684e 100%);
}

@media (max-width: 640px) {
  .stats-preview-grid {
    grid-template-columns: 1fr;
  }
}
