.navigator-consumption-field {
  position: relative;
  border-color: rgba(14, 166, 83, 0.52) !important;
  background: linear-gradient(145deg, rgba(21, 178, 95, 0.12), #fff) !important;
  box-shadow: 0 0 0 3px rgba(21, 178, 95, 0.07);
}

.consumption-edit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 12px 0 2px;
  padding: 14px 15px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0aa855, #087f42);
  box-shadow: 0 10px 24px rgba(8, 127, 66, 0.22);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.consumption-edit-button span {
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.consumption-edit-button strong {
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.consumption-edit-button:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(8, 127, 66, 0.18);
}

.recommended-pill[data-navigator-mode="planning"] {
  background: #eef5f1;
  color: #49705c;
}

.recommended-pill[data-navigator-mode="warning"] {
  background: #fff2d9;
  color: #8a5700;
}

.beta-note[data-navigator-mode="warning"] {
  border-color: rgba(220, 139, 0, 0.25);
  background: rgba(255, 242, 217, 0.7);
}

.beta-pill {
  display: none !important;
}

/*
 * Keep the custom profile visually first without rewriting the compiled React
 * tree. The expanded form stays directly below it and all preset vehicles
 * remain independent grid items after the form.
 */
.vehicle-list > .custom-vehicle-option {
  order: -2;
}

.vehicle-list > .custom-vehicle-form {
  order: -1;
}

.app-footer > span {
  font-size: 0;
}

.app-footer > span::after {
  content: "iHunt EV Navigator • v5.0.1";
  font-size: 9px;
}

.route-fields {
  grid-template-columns: minmax(0, 1fr) clamp(106px, 30vw, 118px) !important;
  gap: 14px 12px !important;
}

.navigator-soc-control {
  position: relative;
  align-self: start;
  min-width: 0;
}

.route-fields > .location-field > .field-label,
.navigator-soc-control > span {
  display: flex !important;
  align-items: flex-end;
  min-height: 28px;
  margin: 0 0 7px;
  line-height: 1.25;
}

.navigator-soc-control > span {
  justify-content: center;
  text-align: center !important;
}

.navigator-native-soc-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.navigator-soc-slider {
  display: grid;
  box-sizing: border-box;
  gap: 4px;
  min-height: 82px;
  padding: 8px 10px 7px;
  border: 1px solid #d8e5eb;
  border-radius: 15px;
  background: #fbfdfe;
}

.navigator-soc-output {
  color: #173c2b;
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.navigator-soc-range {
  --navigator-soc-progress: 50%;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.navigator-soc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #0da553 0,
    #0da553 var(--navigator-soc-progress),
    #d7e2dc var(--navigator-soc-progress),
    #d7e2dc 100%
  );
}

.navigator-soc-range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0da553;
  box-shadow: 0 1px 5px rgba(8, 127, 66, 0.38);
  appearance: none;
  -webkit-appearance: none;
}

.navigator-soc-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #d7e2dc;
}

.navigator-soc-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #0da553;
}

.navigator-soc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0da553;
  box-shadow: 0 1px 5px rgba(8, 127, 66, 0.38);
}

.navigator-soc-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 1px 5px rgba(8, 127, 66, 0.38),
    0 0 0 4px rgba(13, 165, 83, 0.16);
}

.navigator-soc-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 1px;
  color: #87978f;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.navigator-navigation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 5px;
}

.navigator-navigation-actions .maps-button {
  min-width: 0;
  min-height: 52px;
  margin: 0;
  border-radius: 15px;
  box-shadow: none;
  font-size: 14px;
}

.navigator-google-maps-button {
  background: linear-gradient(115deg, #00b866, #008d4e) !important;
}

.navigator-waze-button {
  background: linear-gradient(115deg, #20a9e8, #137fb8) !important;
}

.navigator-waze-note {
  display: block;
  margin: 8px 2px 0;
  color: #6a7a72;
  font-size: 10px;
  line-height: 1.4;
}

.navigator-waze-note[hidden] {
  display: none;
}

.navigator-save-route-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(21, 178, 95, 0.32);
  border-radius: 13px;
  background: rgba(21, 178, 95, 0.065);
  color: #087f42;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.navigator-route-memory-actions {
  display: grid;
  gap: 3px;
}

.navigator-route-memory-actions[hidden] {
  display: none;
}

.navigator-forget-route-button {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #8a5d54;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.navigator-forget-route-button[hidden] {
  display: none;
}

.navigator-save-route-button:disabled {
  opacity: 0.58;
  cursor: default;
}

.navigator-saved-route-status {
  display: block;
  min-height: 0;
  margin: 6px 2px 0;
  color: #087f42;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.navigator-saved-route-status:empty {
  display: none;
}

.navigator-saved-route-status[data-mode="error"] {
  color: #9c4f00;
}

.navigator-saved-route-recovery {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(21, 178, 95, 0.24);
  border-radius: 14px;
  background: rgba(21, 178, 95, 0.06);
  color: #52685d;
  text-align: center;
}

.navigator-saved-route-recovery[hidden] {
  display: none;
}

.navigator-saved-route-recovery-copy {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.navigator-saved-route-recovery button {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(21, 178, 95, 0.34);
  border-radius: 12px;
  background: #fff;
  color: #087f42;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.navigator-saved-route-recovery button:focus-visible {
  outline: 3px solid rgba(21, 178, 95, 0.18);
  outline-offset: 2px;
}

.navigator-station-list {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.navigator-station-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(21, 178, 95, 0.22);
  border-radius: 12px;
  background: rgba(21, 178, 95, 0.07);
}

.navigator-station-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #10a653;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.navigator-station-content,
.navigator-station-heading {
  min-width: 0;
}

.navigator-station-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.navigator-station-item strong,
.navigator-station-item small,
.navigator-station-item p {
  display: block;
}

.navigator-station-item strong {
  color: #123c29;
  font-size: 13px;
  line-height: 1.35;
}

.navigator-station-item small {
  margin-top: 3px;
  color: #66756d;
  font-size: 11px;
  line-height: 1.35;
}

.navigator-station-item p {
  margin: 7px 0 0;
  color: #315642;
  font-size: 11px;
  font-weight: 750;
}

.navigator-network-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.network-ihunt {
  background: #0da553;
  color: #fff;
}

.network-roaming {
  background: #dff6e9;
  color: #08733b;
  text-transform: none;
}

.network-external {
  background: #fff0d6;
  color: #8a5700;
  text-transform: none;
}

.navigator-network-preference {
  position: relative;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(21, 178, 95, 0.2);
  border-radius: 14px;
  background: rgba(21, 178, 95, 0.055);
  cursor: pointer;
}

.navigator-preference-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.navigator-preference-copy strong {
  color: #173c2b;
  font-size: 12px;
  line-height: 1.35;
}

.navigator-preference-copy small {
  color: #64746c;
  font-size: 10px;
  line-height: 1.4;
}

.navigator-network-preference input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.navigator-switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c8d2cc;
  transition: background 160ms ease;
}

.navigator-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(23, 60, 43, 0.24);
  content: "";
  transition: transform 160ms ease;
}

.navigator-network-preference input:checked + .navigator-switch {
  background: #0da553;
}

.navigator-network-preference input:checked + .navigator-switch::after {
  transform: translateX(18px);
}

.navigator-network-preference:focus-within {
  outline: 3px solid rgba(21, 178, 95, 0.18);
  outline-offset: 2px;
}

.navigator-planning-copy,
.navigator-warning-copy {
  margin: 9px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.navigator-unavailable {
  border-color: rgba(220, 139, 0, 0.28) !important;
  background: rgba(255, 247, 231, 0.9) !important;
}

.navigator-waypoint-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  margin: 2px 0 4px;
  padding-left: 28px;
}

.navigator-waypoint-rows {
  display: grid;
  gap: 9px;
}

.navigator-waypoint-row {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(35, 82, 59, 0.18);
  border-radius: 13px;
  background: #f7faf8;
}

.navigator-waypoint-row[data-selected="true"] {
  border-color: rgba(21, 178, 95, 0.42);
  background: rgba(21, 178, 95, 0.06);
}

.navigator-waypoint-heading,
.navigator-waypoint-actions {
  display: flex;
  align-items: center;
}

.navigator-waypoint-heading {
  justify-content: space-between;
  gap: 10px;
}

.navigator-waypoint-heading strong {
  color: #173c2b;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navigator-waypoint-actions {
  gap: 4px;
}

.navigator-waypoint-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(35, 82, 59, 0.17);
  border-radius: 8px;
  background: #fff;
  color: #375848;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.navigator-waypoint-actions button:disabled {
  opacity: 0.3;
  cursor: default;
}

.navigator-waypoint-input-wrap {
  position: relative;
}

.navigator-waypoint-input-wrap input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(35, 82, 59, 0.2);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #163725;
  font: inherit;
  font-size: 13px;
}

.navigator-waypoint-input-wrap input:focus {
  border-color: #10a653;
  box-shadow: 0 0 0 3px rgba(16, 166, 83, 0.11);
}

.navigator-waypoint-status {
  color: #6b7b72;
  font-size: 10px;
  line-height: 1.35;
}

.navigator-waypoint-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 82, 59, 0.2);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 60, 41, 0.18);
}

.navigator-endpoint-autocomplete {
  position: relative;
}

.navigator-endpoint-suggestions {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 82, 59, 0.2);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 60, 41, 0.2);
}

.navigator-endpoint-suggestions button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid rgba(35, 82, 59, 0.1);
  background: #fff;
  color: #173c2b;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.navigator-endpoint-suggestions button:last-child {
  border-bottom: 0;
}

.navigator-endpoint-suggestions button:active {
  background: rgba(21, 178, 95, 0.08);
}

.navigator-autocomplete-status {
  padding: 11px 12px;
  background: rgba(255, 247, 231, 0.96);
  color: #7a4b00;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.navigator-service-notice {
  margin: 10px 0;
  padding: 11px 13px;
  border: 1px solid rgba(220, 139, 0, 0.3);
  border-radius: 12px;
  background: rgba(255, 247, 231, 0.96);
  color: #6f4707;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.navigator-waypoint-suggestions button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid rgba(35, 82, 59, 0.1);
  background: #fff;
  color: #173c2b;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.navigator-waypoint-suggestions button:last-child {
  border-bottom: 0;
}

.navigator-waypoint-suggestions button:active {
  background: rgba(21, 178, 95, 0.08);
}

.navigator-add-waypoint {
  justify-self: start;
  padding: 8px 11px;
  border: 1px dashed rgba(16, 166, 83, 0.55);
  border-radius: 10px;
  background: rgba(21, 178, 95, 0.05);
  color: #087f42;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.navigator-add-waypoint:disabled {
  opacity: 0.55;
  cursor: default;
}

.navigator-map-privacy {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(30, 85, 58, 0.045);
  color: #60736a;
  font-size: 9px;
  line-height: 1.45;
}

.navigator-destination-soc {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: fit-content;
  margin-top: 4px;
  padding-top: 4px;
  color: #60736a;
  line-height: 1.25;
}

.navigator-destination-soc-label {
  font-size: 10px;
  font-weight: 650;
}

.navigator-destination-soc-label::after {
  content: "•";
  margin-left: 6px;
  color: #a3b2aa;
}

.navigator-destination-soc-value {
  color: #087f42;
  font-size: 12px !important;
  font-weight: 850;
}

.navigator-destination-soc[data-mode="planning"] {
  color: #587166;
}

.navigator-destination-soc[data-mode="planning"]
  .navigator-destination-soc-value {
  color: #587166;
  font-size: 10px !important;
  font-weight: 700;
}

.navigator-destination-soc[data-mode="unconfirmed"] {
  color: #8a5700;
}

.navigator-destination-soc[data-mode="unconfirmed"]
  .navigator-destination-soc-value {
  color: #8a5700;
  font-size: 10px !important;
  font-weight: 700;
}

.navigator-via-node {
  background: #fff !important;
  color: #0da553 !important;
  box-shadow: inset 0 0 0 2px #0da553;
  font-size: 18px;
}

.navigator-via-card {
  border-color: rgba(21, 178, 95, 0.2) !important;
  background: rgba(21, 178, 95, 0.045) !important;
}

.navigator-via-list {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding-left: 20px;
  color: #315642;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.navigator-destination-charging {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(21, 178, 95, 0.24);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(21, 178, 95, 0.08), #fff);
}

.navigator-destination-title {
  color: #123c29;
  font-size: 13px;
}

.navigator-destination-list {
  display: grid;
  gap: 7px;
}

.navigator-destination-station {
  padding: 10px;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 178, 95, 0.14);
}

.navigator-destination-station strong,
.navigator-destination-station small {
  display: block;
}

.navigator-destination-station strong {
  color: #173c2b;
  font-size: 12px;
  line-height: 1.35;
}

.navigator-destination-station small,
.navigator-destination-note {
  margin-top: 4px;
  color: #65766d;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 390px) {
  .consumption-edit-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .navigator-station-heading {
    flex-direction: column;
    gap: 5px;
  }

  .navigator-waypoint-section {
    padding-left: 0;
  }
}

@media (max-width: 330px) {
  .route-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-line {
    display: none !important;
  }

  .route-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .route-fields > .location-field > .field-label,
  .navigator-soc-control > span {
    min-height: 16px;
  }

  .navigator-soc-control > span {
    justify-content: flex-start;
    text-align: left !important;
  }
}
