/* ============================================================
   NOTHING DESIGN SYSTEM — Calculator Page
   Fonts: Space Grotesk · Space Mono (local)
   Scoped to body.calculator-page to avoid global conflicts.
   ============================================================ */

body.calculator-page {
  background: var(--body-bg) !important;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.theme-light.calculator-page {
  background:
    radial-gradient(circle at top, #ffffff 0, #eef2f7 46%, #dde5ef 100%) !important;
  color: #334155;
}

.calculator-page .main-panels {
  background: transparent;
}

body.calculator-page .app-shell {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 52px 0 var(--space-9);
}

body.nm-page.calculator-page>.nm-footer {
  margin-top: auto;
}

body.nm-page.calculator-page>.nm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
}

.calculator-page .panel-calculator {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  width: min(560px, 100%);
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 0 96px;
}

.nm-page-header {
  padding: 0 0 48px;
}

.nm-page-title {
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #e8edf5;
  margin: 0;
}

.nm-title-angry {
  margin-left: 0.3ch;
  color: #d71921;
}

@media (max-width: 768px) {
  body.calculator-page .nm-nav-links {
    left: 0;
    right: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-sizing: border-box;
  }

  body.calculator-page #calcBrandWrapper>.selection-filter-trigger,
  body.calculator-page #calcBrandWrapper>.search-dropdown {
    display: none !important;
  }

  body.calculator-page #calcBrand {
    display: block !important;
    width: 100%;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    cursor: pointer;
  }
}

.nm-filter-btn:not([disabled]):hover,
.calculator-page .selection-filter-trigger:not([disabled]):hover {
  border-color: #5A6270 !important;
  color: #CDD1DC !important;
}

.nm-filter-btn[disabled],
.calculator-page .selection-filter-trigger[disabled] {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

.calculator-page .selection-filter-label {
  display: none !important;
}

.calculator-page .selection-filter-trigger::after {
  display: none !important;
}

body.calculator-page .calc-input:not([type="range"]):focus,
body.calculator-page .moto-search-input:focus,
body.calculator-page .selection-filter:focus,
body.calculator-page .selection-filter-trigger:focus,
body.calculator-page .calc-frequency-trigger:focus,
body.calculator-page .select-wrapper.is-open>.selection-filter-trigger,
body.calculator-page .select-wrapper.is-open>.input-icon-wrap>.moto-search-input,
body.calculator-page select.calc-input:focus {
  border-color: var(--brand-red) !important;
  box-shadow: none !important;
}

/* ─── BIKE META HINT ─────────────────────────────────────── */

.calculator-page #calcBikeMeta {
  font-family: "Space Mono", monospace !important;
  font-size: 12px !important;
  /* 12px: absolute floor for hints */
  color: #5A6270 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 12px !important;
  letter-spacing: 0.03em !important;
  line-height: 1.5 !important;
}

/* ─── KM PRESETS ─────────────────────────────────────────── */

.nm-km-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}

.nm-km-btn {
  font-family: "Space Mono", monospace !important;
  background: transparent !important;
  border: 1px solid #22252D !important;
  border-radius: 4px !important;
  padding: 16px 8px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 76px !important;
  /* generous touch target */
  cursor: pointer;
  transition: border-color 150ms ease-out, background 150ms ease-out;
  line-height: 1.1 !important;
}

.nm-km-num {
  font-family: "Space Mono", monospace !important;
  font-size: 22px;
  /* clear, scannable number */
  font-weight: 700;
  color: #8890A0;
  line-height: 1.0;
  display: block;
  transition: color 150ms ease-out;
}

.nm-km-unit {
  font-family: "Space Mono", monospace !important;
  font-size: 11px;
  /* supporting label, ALL CAPS */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5A6270;
  display: block;
  transition: color 150ms ease-out;
}

.nm-km-btn:hover {
  border-color: #5A6270 !important;
}

.nm-km-btn:hover .nm-km-num {
  color: #CDD1DC;
}

.nm-km-btn:hover .nm-km-unit {
  color: #8890A0;
}

.nm-km-btn.is-active {
  background: #E8EDF5 !important;
  border-color: #E8EDF5 !important;
}

.nm-km-btn.is-active .nm-km-num {
  color: #0F1012;
}

.nm-km-btn.is-active .nm-km-unit {
  color: #5A6270;
}

.nm-km-ctx {
  font-family: "Space Mono", monospace !important;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #3E4450;
  text-transform: none;
  display: block;
  transition: color 150ms ease-out;
}

.nm-km-btn:hover .nm-km-ctx {
  color: #8890A0;
}

.nm-km-btn.is-active .nm-km-ctx {
  color: #5A6270;
}

/* ─── CUSTOM KM SLIDER ──────────────────────────────────── */

.nm-custom-km-slider:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.nm-custom-km-slider[hidden] {
  display: none !important;
}

.nm-custom-km-slider .nm-gas-display {
  font-size: 22px;
}

/* ─── CUSTOM KM ROW (legacy, kept for safety) ────────────── */

.nm-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.nm-input-number {
  font-family: "Space Mono", monospace !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #22252D !important;
  border-radius: 0 !important;
  color: #CDD1DC !important;
  padding: 10px 0 !important;
  font-size: 16px !important;
  /* 16px: iOS zoom prevention */
  width: 140px !important;
  box-shadow: none !important;
  transition: border-bottom-color 150ms ease-out;
}

.nm-input-number:focus {
  outline: none !important;
  border-bottom-color: var(--brand-red) !important;
}

.nm-freq-btn {
  font-family: "Space Mono", monospace !important;
  font-size: 13px !important;
  background: transparent !important;
  border: 1px solid #22252D !important;
  border-radius: 4px !important;
  color: #8890A0 !important;
  padding: 10px 14px !important;
  min-height: 40px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 150ms ease-out;
  display: flex !important;
  align-items: center;
}

/* ─── ANGRY MODE TOGGLE ──────────────────────────────────── */

.nm-toggle-row {
  border-top: 1px solid #1D1F24;
  padding-top: 20px;
  margin-top: 8px;
  margin-bottom: 0;
}

.calculator-page .calc-angry-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nm-toggle-text {
  font-family: "Space Mono", monospace !important;
  font-size: 13px !important;
  /* 13px: interactive label */
  letter-spacing: 0.06em !important;
  color: #CDD1DC !important;
  text-transform: uppercase !important;
}

.nm-toggle-hint {
  font-family: "Space Mono", monospace !important;
  font-size: 12px !important;
  /* 12px: hint/caption floor */
  color: #5A6270 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  line-height: 1.5 !important;
}

/* ─── GAS PRICE FIELD ────────────────────────────────────── */

.nm-gas-display {
  font-family: var(--font-display) !important;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #E8EDF5;
  margin: 4px 0 28px;
  line-height: 1.0;
  display: block;
}

/* Valor do preço da gasolina centralizado sobre o slider. */
.nm-field-gas .nm-gas-display {
  text-align: center;
}

.calculator-page .calc-gas-slider-value {
  display: none !important;
}

.nm-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
      var(--accent, #D71921) 0,
      var(--accent, #D71921) var(--gas-slider-progress, 50%),
      var(--border-visible, #2E3540) var(--gas-slider-progress, 50%),
      var(--border-visible, #2E3540) 100%);
  border-radius: 0;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  box-shadow: none;
}

.nm-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 0;
  background: transparent;
}

.nm-slider::-moz-range-track {
  height: 3px;
  border-radius: 0;
  background: transparent;
}

.nm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  background: var(--surface-raised, #181A1E);
  border-radius: 0;
  cursor: pointer;
  border: 2px solid var(--accent, #D71921);
  box-shadow: none;
}

.nm-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--surface-raised, #181A1E);
  border-radius: 0;
  border: 2px solid var(--accent, #D71921);
  cursor: pointer;
  box-shadow: none;
}

.nm-slider-range {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.nm-slider-range span {
  font-family: "Space Mono", monospace !important;
  font-size: 12px;
  /* range labels: 12px floor */
  letter-spacing: 0.04em;
  color: #5A6270;
}

/* ─── ACTION ROWS ────────────────────────────────────────── */

.nm-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
  gap: 12px;
}

.nm-actions-split {
  justify-content: space-between;
}

/* ─── BUTTONS ────────────────────────────────────────────── */

.nm-btn-primary {
  font-family: "Space Mono", monospace !important;
  font-size: 14px;
  /* 14px: button text WCAG minimum */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #E8EDF5;
  color: #0F1012;
  border: none;
  border-radius: 999px;
  padding: 13px 32px;
  min-height: 48px;
  /* 48px: WCAG 2.5.5 target size */
  cursor: pointer;
  transition: opacity 150ms ease-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nm-btn-primary:hover {
  opacity: 0.82;
}

body.theme-dark.calculator-page .nm-btn-primary {
  background: var(--action-primary-bg);
  color: var(--action-primary-text);
}

body.theme-dark.calculator-page .nm-btn-primary:hover,
body.theme-dark.calculator-page .nm-btn-primary:focus-visible {
  background: var(--action-primary-bg-hover);
  color: var(--action-primary-text);
  opacity: 1;
}

.nm-btn-secondary {
  font-family: "Space Mono", monospace !important;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f8fafc;
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 13px 28px;
  min-height: 48px;
  cursor: pointer;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}

.nm-btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.92);
  color: #111827;
}

/* ─── RESULT SECTION ─────────────────────────────────────── */

.calculator-page .calc-result {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 48px !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
}

.calculator-page .calc-result-title {
  display: none !important;
}


/* ─── BIKE HERO IMAGE ────────────────────────────────────── */

.calc-hero-wrap {
  width: 100%;
  height: 210px;
  background: #1b232b;
  border-radius: 16px;
  border: 1px solid #1d1f24;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
}

.calc-hero-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.calc-hero-wrap.has-photo .calc-hero-img {
  display: block;
  opacity: 1;
}

.calc-hero-wrap.has-photo .calc-hero-fallback-logo,
.calc-hero-wrap.is-loading .calc-hero-fallback-logo {
  display: none;
}

.calc-hero-wrap.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: calc-hero-shimmer 1.2s linear infinite;
  pointer-events: none;
}

@keyframes calc-hero-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.calc-hero-fallback-logo {
  width: 52px;
  height: 52px;
  opacity: 0.25;
  filter: invert(1);
}

@media (max-width: 600px) {
  .calc-hero-wrap {
    height: 180px;
  }
}

/* ─── COST TICKER ────────────────────────────────────────── */

.calc-ticker-card {
  background: #131517;
  border: 1px solid #1d1f24;
  border-radius: 18px;
  padding: 18px 20px 16px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.calc-ticker-period {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.calc-period-btn {
  flex: 1;
  font-family: "Space Mono", monospace !important;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: transparent;
  color: #5a6270;
  border: 1px solid #2c303a;
  border-radius: 999px;
  padding: 7px 4px;
  min-height: 32px;
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
}

.calc-period-btn:hover {
  color: #9aa4b4;
  border-color: #3c404a;
}

.calc-period-btn.is-active {
  background: #e8edf5;
  color: #0f1012;
  border-color: #e8edf5;
}

.calc-ticker-amount {
  font-family: var(--font-display) !important;
  font-size: clamp(44px, 8vw, 52px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #e8edf5;
  display: block;
  margin-bottom: 10px;
}

.calc-ticker-sub {
  font-family: "Space Mono", monospace !important;
  font-size: 12px;
  color: #5a6270;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.45;
}

.calc-ticker-sep {
  color: #2c303a;
}

/* ─── SIGNAL GRID ────────────────────────────────────────── */

.calc-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ─── DONUT BREAKDOWN ────────────────────────────────────── */

.calc-donut-card {
  margin-top: 12px;
  padding: 16px;
  background: #131517;
  border: 1px solid #1d1f24;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
}

.calc-donut-svg {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  display: block;
}

.calc-donut-bg {
  fill: none;
  stroke: #1d1f24;
  stroke-width: 18;
}

.calc-donut-fuel,
.calc-donut-tax {
  fill: none;
  stroke-width: 18;
  stroke-linecap: butt;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dasharray 700ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-donut-fuel {
  stroke: #f59e0b;
  stroke-dasharray: 0 289;
  stroke-dashoffset: 0;
}

.calc-donut-tax {
  stroke: #d71921;
  stroke-dasharray: 0 289;
  stroke-dashoffset: 0;
}

.calc-donut-legend {
  display: grid;
  gap: 10px;
}

.calc-donut-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.calc-donut-dot--fuel {
  background: #f59e0b;
}

.calc-donut-dot--tax {
  background: #d71921;
}

/* shared label/note font */
.calc-signal-label,
.calc-signal-note,
.calc-mix-item-label,
.calc-mix-item-note {
  font-family: "Space Mono", monospace !important;
}



.calc-signal-card {
  border: 1px solid #1d1f24;
  background: #131517;
  border-radius: 12px;
}

.calc-signal-card {
  padding: 14px 14px 13px;
  display: grid;
  gap: 7px;
  min-height: 104px;
  align-content: start;
}

.calc-signal-label,
.calc-mix-item-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calc-signal-label {
  font-size: 16px;
  color: #8890a0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calc-signal-icon,
.calc-mix-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8890A0;
  flex: 0 0 auto;
}

.calc-signal-icon svg,
.calc-mix-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calc-signal-value {
  font-family: "Space Mono", monospace !important;
  font-size: clamp(21px, 2.5vw, 26px);
  line-height: 1.1;
  color: #e8edf5;
}

.calc-signal-note {
  font-size: 12px;
  line-height: 1.4;
  color: #5a6270;
}

.calc-mix-item {
  display: grid;
  gap: 6px;
}

.calc-mix-item-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calc-mix-item-label {
  font-size: 14px;
  color: #8890a0;
}

.calc-mix-item-value {
  font-family: "Space Mono", monospace !important;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.1;
  color: #e8edf5;
}

.calc-mix-item-note {
  font-size: 12px;
  color: #5a6270;
}

/* ─── RESULT BIKE HEADER ─────────────────────────────────── */

.calc-bike-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(20, 24, 29, 0.96), rgba(13, 17, 22, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  margin-bottom: 12px;
}

.calc-bike-header .calc-hero-wrap {
  height: auto;
  min-height: 140px;
  border-radius: 12px;
  align-self: stretch;
  margin-bottom: 0;
}

.calc-bike-summary {
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 0;
}

.calc-bike-summary-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 1px;
}

.calc-bike-summary-brand,
.calc-bike-summary-name,
.calc-bike-summary-meta,
.calc-bike-summary-price {
  margin: 0;
}

.calc-bike-summary-brand {
  margin-bottom: 0;
  line-height: 1;
}

.calc-bike-summary-name {
  font-size: clamp(1.7rem, 4vw, 2rem);
  line-height: 1.02;
}

.calc-bike-summary-meta {
  margin-top: 0;
  line-height: 1.15;
}

.calc-bike-summary-price {
  font-family: "Space Mono", monospace !important;
  font-size: 0.82rem;
  line-height: 1.1;
  color: var(--text-dim-strong, #9ba5b3);
}

@media (max-width: 600px) {
  .calc-bike-header {
    grid-template-columns: 132px 1fr;
    gap: 12px;
  }

  .calc-bike-header .calc-hero-wrap {
    min-height: 116px;
  }

  .calc-bike-summary-name {
    font-size: 1.55rem;
  }
}

/* ─── SEGMENTED TABS ─────────────────────────────────────── */

.nm-seg {
  display: flex;
  border: 1px solid #2C303A;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  background: transparent;
}

.nm-seg-btn {
  flex: 1;
  font-family: "Space Mono", monospace !important;
  font-size: 12px;
  /* 12px: tab labels, ALL CAPS */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: #5A6270;
  border: none;
  border-right: 1px solid #2C303A;
  padding: 12px 8px;
  min-height: 44px;
  /* 44px: Apple HIG minimum */
  cursor: pointer;
  transition: background 150ms ease-out, color 150ms ease-out;
}

.nm-seg-btn:last-child {
  border-right: none;
}

.nm-seg-btn.is-active,
.nm-seg-btn[aria-selected="true"] {
  background: #E8EDF5;
  color: #0F1012;
}

/* ─── TAB PANELS ─────────────────────────────────────────── */

.calculator-page .result-panels,
.calculator-page .calc-result-panels {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.calculator-page .result-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* ─── HERO STAT (monthly fuel cost) ─────────────────────── */

.nm-hero {
  padding: 32px 0 24px;
}

.nm-hero-label {
  font-family: "Space Mono", monospace !important;
  font-size: 12px;
  /* supporting label */
  letter-spacing: 0.08em;
  color: #8890A0;
  text-transform: uppercase;
  margin: 0 0 10px;
  display: block;
}

.nm-hero-num {
  font-family: var(--font-display) !important;
  font-size: 64px;
  /* Display headline: one prominent numeric moment */
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #E8EDF5;
  line-height: 1.0;
  margin-bottom: 10px;
  display: block;
}

.nm-hero-sub {
  font-family: "Space Mono", monospace !important;
  font-size: 13px;
  /* supporting context text */
  color: #5A6270;
  margin: 0;
  display: block;
}

/* ─── DATA ROWS ──────────────────────────────────────────── */

.nm-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #1D1F24;
}

.nm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  /* taller rows = easier to scan */
  border-bottom: 1px solid #1D1F24;
  gap: 12px;
}

.nm-row-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nm-row-label {
  font-family: "Space Mono", monospace !important;
  font-size: 12px;
  /* row label: 12px minimum */
  letter-spacing: 0.08em;
  color: #8890A0;
  text-transform: uppercase;
}

.nm-row-meta {
  font-family: "Space Mono", monospace !important;
  font-size: 12px;
  color: #5A6270;
  line-height: 1.4;
}

.nm-row-value {
  font-family: "Space Mono", monospace !important;
  font-size: 15px;
  /* value: clearly readable */
  font-weight: 700;
  color: #CDD1DC;
  text-align: right;
  flex-shrink: 0;
}

/* ─── STAT PAIR ──────────────────────────────────────────── */

.nm-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 24px 0;
}

.nm-stat-card {
  border: 1px solid #1D1F24;
  padding: 18px;
  border-radius: 8px;
  background: #131517;
}

.nm-stat-label {
  font-family: "Space Mono", monospace !important;
  font-size: 11px;
  /* card label: 11px, ALL CAPS */
  letter-spacing: 0.08em;
  color: #8890A0;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.nm-stat-num {
  font-family: "Space Mono", monospace !important;
  font-size: 24px;
  /* card value: prominent */
  font-weight: 700;
  color: #E8EDF5;
  line-height: 1.1;
  margin-bottom: 6px;
  display: block;
}

.nm-stat-note {
  font-family: "Space Mono", monospace !important;
  font-size: 12px;
  /* 12px: caption floor */
  color: #5A6270;
  margin: 0;
  display: block;
  line-height: 1.4;
}

/* ─── RESULT FOOTER ──────────────────────────────────────── */

.nm-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 28px 0 0;
}

.nm-footnote {
  font-family: "Space Mono", monospace !important;
  font-size: 11px;
  /* legal footnote: 11px minimum */
  letter-spacing: 0.06em;
  color: #2C303A;
  text-transform: uppercase;
  margin-top: 12px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 600px) {
  .calculator-page .panel-calculator {
    padding: 32px 0 64px;
  }

  .nm-page-header {
    padding: 0 0 40px;
  }

  .nm-page-title {
    font-size: 28px;
  }

  .nm-gas-display {
    font-size: 44px;
  }

  .nm-hero-num {
    font-size: 52px;
  }

  .nm-stat-num {
    font-size: 20px;
  }

  .nm-row-value {
    font-size: 14px;
  }

  .nm-km-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .nm-actions {
    margin-top: 24px;
  }
}

@media (max-width: 900px) {

  .calc-signal-grid,
  .calc-mix-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  .calc-signal-card {
    padding: 14px 12px;
  }
}

body.theme-light.calculator-page .nm-overline,
body.theme-light.calculator-page .nm-filter-label,
body.theme-light.calculator-page #calcBikeMeta,
body.theme-light.calculator-page .nm-km-unit,
body.theme-light.calculator-page .nm-toggle-hint,
body.theme-light.calculator-page .nm-slider-range span,
body.theme-light.calculator-page .calc-bike-summary-price,
body.theme-light.calculator-page .nm-row-meta,
body.theme-light.calculator-page .nm-stat-note,
body.theme-light.calculator-page .nm-footnote,
body.theme-light.calculator-page .calc-signal-note,
body.theme-light.calculator-page .calc-mix-item-note {
  color: #64748b !important;
}

body.theme-light.calculator-page .nm-page-title,
body.theme-light.calculator-page .calc-bike-summary-name,
body.theme-light.calculator-page .nm-hero-num,
body.theme-light.calculator-page .nm-stat-num,
body.theme-light.calculator-page .calc-signal-value,
body.theme-light.calculator-page .calc-mix-item-value {
  color: #0f172a !important;
}

body.theme-light.calculator-page .nm-field-label,
body.theme-light.calculator-page .nm-row-label,
body.theme-light.calculator-page .nm-stat-label,
body.theme-light.calculator-page .nm-hero-label,
body.theme-light.calculator-page .calc-bike-summary-brand,
body.theme-light.calculator-page .calc-bike-summary-meta,
body.theme-light.calculator-page .calc-signal-label,
body.theme-light.calculator-page .calc-mix-item-label {
  color: #475569 !important;
}

body.theme-light.calculator-page .calculator-page .icon-search-hero,
body.theme-light.calculator-page .icon-search-hero,
body.theme-light.calculator-page .nm-step-index,
body.theme-light.calculator-page .nm-title-angry {
  color: #d71921;
}

body.theme-light.calculator-page .calc-step,
body.theme-light.calculator-page .calc-result,
body.theme-light.calculator-page .nm-toggle-row,
body.theme-light.calculator-page .nm-result-bike,
body.theme-light.calculator-page .nm-rows,
body.theme-light.calculator-page .nm-row {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

body.theme-light.calculator-page .nm-text-input,
body.theme-light.calculator-page .nm-input-number {
  color: #0f172a !important;
  border-bottom-color: rgba(148, 163, 184, 0.45) !important;
}

body.theme-light.calculator-page .nm-text-input:focus,
body.theme-light.calculator-page .nm-input-number:focus {
  border-bottom-color: var(--brand-red) !important;
}

body.theme-light.calculator-page .nm-text-input::placeholder {
  color: #94a3b8 !important;
}

body.theme-light.calculator-page .search-dropdown {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.38) !important;
}

body.theme-light.calculator-page .dropdown-item {
  color: #475569 !important;
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
}

body.theme-light.calculator-page .dropdown-item:hover,
body.theme-light.calculator-page .dropdown-item:focus {
  background: #eef2f7 !important;
  color: #0f172a !important;
}

body.theme-light.calculator-page .dropdown-item-sub {
  color: #64748b !important;
}

body.theme-light.calculator-page .nm-filter-btn,
body.theme-light.calculator-page .selection-filter-trigger,
body.theme-light.calculator-page .nm-freq-btn,
body.theme-light.calculator-page .nm-km-btn,
body.theme-light.calculator-page .nm-seg {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
}

body.theme-light.calculator-page .nm-filter-btn,
body.theme-light.calculator-page .selection-filter-trigger,
body.theme-light.calculator-page .nm-freq-btn,
body.theme-light.calculator-page .nm-seg-btn {
  color: #475569 !important;
}

body.theme-light.calculator-page .nm-filter-btn:not([disabled]):hover,
body.theme-light.calculator-page .selection-filter-trigger:not([disabled]):hover,
body.theme-light.calculator-page .nm-freq-btn:hover,
body.theme-light.calculator-page .nm-km-btn:hover,
body.theme-light.calculator-page .nm-btn-secondary:hover {
  border-color: rgba(71, 85, 105, 0.45) !important;
  color: #0f172a !important;
}

body.theme-light.calculator-page .nm-km-num,
body.theme-light.calculator-page .nm-toggle-text,
body.theme-light.calculator-page .nm-row-value {
  color: #334155 !important;
}

body.theme-light.calculator-page .nm-km-btn.is-active,
body.theme-light.calculator-page .nm-seg-btn.is-active,
body.theme-light.calculator-page .nm-seg-btn[aria-selected="true"] {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

body.calculator-page .calc-native-brand-select:focus,
body.calculator-page .calc-native-brand-select:focus-visible,
body.calculator-page #calcYear:focus,
body.calculator-page #calcYear:focus-visible,
body.calculator-page #calcModel:focus,
body.calculator-page #calcModel:focus-visible,
body.calculator-page .selection-filter-trigger:focus,
body.calculator-page .selection-filter-trigger:focus-visible,
body.calculator-page .select-wrapper.is-open>.selection-filter-trigger,
body.theme-light.calculator-page .calc-native-brand-select:focus,
body.theme-light.calculator-page .calc-native-brand-select:focus-visible,
body.theme-light.calculator-page #calcYear:focus,
body.theme-light.calculator-page #calcYear:focus-visible,
body.theme-light.calculator-page #calcModel:focus,
body.theme-light.calculator-page #calcModel:focus-visible,
body.theme-light.calculator-page .selection-filter-trigger:focus,
body.theme-light.calculator-page .selection-filter-trigger:focus-visible,
body.theme-light.calculator-page .select-wrapper.is-open>.selection-filter-trigger {
  border-color: var(--brand-red) !important;
  box-shadow: none !important;
}

body.theme-light.calculator-page .nm-km-btn.is-active .nm-km-num,
body.theme-light.calculator-page .nm-km-btn.is-active .nm-km-unit,
body.theme-light.calculator-page .nm-km-btn.is-active .nm-km-ctx {
  color: #ffffff !important;
}

body.theme-light.calculator-page .nm-km-ctx {
  color: #64748b;
}

body.theme-light.calculator-page .nm-km-btn:hover .nm-km-ctx {
  color: #334155;
}

body.theme-light.calculator-page .nm-gas-display {
  color: #0f172a;
}

body.theme-light.calculator-page .nm-slider {
  background: linear-gradient(90deg,
      var(--accent, #d71921) 0,
      var(--accent, #d71921) var(--gas-slider-progress, 50%),
      rgba(148, 163, 184, 0.45) var(--gas-slider-progress, 50%),
      rgba(148, 163, 184, 0.45) 100%);
}

body.theme-light.calculator-page .nm-slider::-webkit-slider-thumb,
body.theme-light.calculator-page .nm-slider::-moz-range-thumb {
  background: #ffffff;
  border-color: var(--accent, #d71921);
}

body.theme-light.calculator-page .nm-btn-primary {
  background: #0f172a;
  color: #ffffff;
}

body.theme-light.calculator-page .nm-btn-secondary {
  background: #e5e7eb;
  color: #334155;
  border-color: rgba(148, 163, 184, 0.38);
}

body.theme-light.calculator-page .calc-ticker-card,
body.theme-light.calculator-page .calc-signal-card,
body.theme-light.calculator-page .calc-donut-card,
body.theme-light.calculator-page .calc-mix-item,
body.theme-light.calculator-page .nm-stat-card {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(148, 163, 184, 0.28);
}

body.theme-light.calculator-page .calc-bike-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 251, 0.94));
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 42px rgba(148, 163, 184, 0.16);
}

body.theme-light.calculator-page .calc-hero-wrap {
  background: #f1f5f9;
  border-color: rgba(148, 163, 184, 0.28);
}

body.theme-light.calculator-page .calc-hero-fallback-logo {
  filter: none;
  opacity: 0.15;
}

body.theme-light.calculator-page .calc-donut-bg {
  stroke: rgba(148, 163, 184, 0.3);
}

body.theme-light.calculator-page .calc-period-btn {
  border-color: rgba(148, 163, 184, 0.4);
  color: #64748b;
}

body.theme-light.calculator-page .calc-period-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

body.theme-light.calculator-page .calc-ticker-amount {
  color: #0f172a;
}

body.theme-light.calculator-page .calc-ticker-sub {
  color: #64748b;
}

body.theme-light.calculator-page .calc-signal-icon,
body.theme-light.calculator-page .calc-mix-icon {
  color: #64748b;
}

body.theme-light.calculator-page .nm-stat-card {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-light.calculator-page .nm-hero-sub {
  color: #64748b;
}