/* ================================================================
   MOTO PAGE
   Individual bike dossier and profile radar.
   ================================================================ */

body.nm-page.moto-page {
  --moto-shell-bg: var(--surface-raised, #101318);
  --moto-shell-high: var(--surface-high, #151922);
  --moto-shell-border: var(--border-visible, rgba(255, 255, 255, 0.14));
  --moto-shell-border-soft: var(--border, rgba(255, 255, 255, 0.1));
  --moto-copy-soft: var(--text-secondary, rgba(255, 255, 255, 0.68));
  --moto-fixed-header-height: 52px;
  --moto-dock-safe-space: 112px;
  --moto-good: #22c55e;
  --moto-watch: #f59e0b;
  --moto-bad: #ef4444;
  --moto-cool: #38bdf8;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 35, 26, 0.11), transparent 30rem),
    var(--bg, #0a0b0d);
}

body.theme-light.nm-page.moto-page {
  --moto-shell-bg: #ffffff;
  --moto-shell-high: #f8fafc;
  --moto-shell-border: rgba(148, 163, 184, 0.5);
  --moto-shell-border-soft: rgba(148, 163, 184, 0.32);
  --moto-copy-soft: #475569;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 35, 26, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, #e9eef5 100%);
}

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

body.nm-page.moto-page .moto-shell {
  flex: 1;
  width: 100%;
  padding: 72px clamp(16px, 3vw, 40px) 92px;
}

body.nm-page.moto-page .moto-main {
  width: min(100%, 1180px);
  margin: 0 auto;
}

body.nm-page.moto-page .moto-topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

body.nm-page.moto-page .moto-topbar-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.nm-page.moto-page .moto-topbar-kicker {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red, #e2231a);
}

body.nm-page.moto-page .moto-topbar-title {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.35;
  text-wrap: pretty;
}

body.nm-page.moto-page .moto-search {
  position: relative;
  min-width: 0;
}

body.nm-page.moto-page .moto-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("../img/icons/lucide/search.svg") center / contain no-repeat;
  mask: url("../img/icons/lucide/search.svg") center / contain no-repeat;
  transform: translateY(-50%);
  color: var(--moto-copy-soft);
  pointer-events: none;
}

body.nm-page.moto-page .moto-search-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--moto-shell-border);
  border-radius: 12px;
  outline: none;
  background: var(--moto-shell-bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  transition-property: border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out, ease);
}

body.nm-page.moto-page .moto-search-input:focus {
  border-color: color-mix(in srgb, var(--brand-red) 72%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-red) 18%, transparent);
}

body.nm-page.moto-page .moto-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--moto-shell-border);
  border-radius: 12px;
  background: var(--moto-shell-high);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

body.nm-page.moto-page .moto-search-dropdown.is-open {
  display: grid;
}

body.nm-page.moto-page .moto-search-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--moto-shell-border-soft);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

body.nm-page.moto-page .moto-search-option:hover,
body.nm-page.moto-page .moto-search-option:focus-visible {
  background: color-mix(in srgb, var(--brand-red) 10%, transparent);
  outline: none;
}

body.nm-page.moto-page .moto-search-option strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

body.nm-page.moto-page .moto-search-option span {
  color: var(--moto-copy-soft);
  font-size: 0.78rem;
}

body.nm-page.moto-page .moto-loading-state {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 360px;
  border: 1px solid var(--moto-shell-border);
  border-radius: 16px;
  background: var(--moto-shell-bg);
  color: var(--moto-copy-soft);
}

body.nm-page.moto-page.is-loaded .moto-loading-state {
  display: none;
}

body.nm-page.moto-page .moto-loading-mark {
  width: 38px;
  height: 38px;
  border: 3px solid color-mix(in srgb, var(--text-primary) 14%, transparent);
  border-top-color: var(--brand-red, #e2231a);
  border-radius: 999px;
  animation: moto-spin 0.9s linear infinite;
}

@keyframes moto-spin {
  to {
    transform: rotate(360deg);
  }
}

body.nm-page.moto-page .moto-content {
  display: none;
}

body.nm-page.moto-page.is-loaded .moto-content {
  display: grid;
  gap: 18px;
}

body.nm-page.moto-page .moto-hero-card,
body.nm-page.moto-page .moto-panel,
body.nm-page.moto-page .moto-related-card {
  border: 1px solid var(--moto-shell-border);
  border-radius: 16px;
  background: var(--moto-shell-bg);
  color: var(--text-primary);
}

body.nm-page.moto-page .moto-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 32px);
  overflow: hidden;
}

body.nm-page.moto-page .moto-identity {
  --moto-title-size: clamp(2rem, 4.6vw, 4.25rem);
  --moto-brand-logo-gap: clamp(10px, calc(var(--moto-title-size) * 0.22), 16px);
  --moto-brand-logo-padding: clamp(6px, calc(var(--moto-title-size) * 0.13), 9px);
  --moto-brand-logo-size: var(--moto-title-size);
  --moto-title-brand-gap: 2px;
  --moto-title-block-offset: 2px;
  --moto-brand-logo-title-offset: calc(0.814rem + var(--moto-title-brand-gap) + var(--moto-title-block-offset));
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

body.nm-page.moto-page--a .moto-identity {
  align-content: center;
}

body.nm-page.moto-page .moto-brand-card-head {
  display: grid;
  grid-template-columns: var(--moto-brand-logo-size) minmax(0, 1fr);
  align-items: start;
  column-gap: var(--moto-brand-logo-gap);
  min-width: 0;
}

body.nm-page.moto-page .moto-brand-logo-wrap {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--moto-brand-logo-size);
  height: var(--moto-brand-logo-size);
  margin-top: var(--moto-brand-logo-title-offset);
  padding: var(--moto-brand-logo-padding);
  border-radius: clamp(12px, calc(var(--moto-title-size) * 0.22), 16px);
  background: #05080d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

body.theme-light.nm-page.moto-page .moto-brand-logo-wrap {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

body.nm-page.moto-page .moto-brand-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

body.nm-page.moto-page .moto-brand-eyebrow,
body.nm-page.moto-page .moto-brand-meta {
  font-family: var(--font-data);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

body.nm-page.moto-page .moto-brand-eyebrow {
  color: var(--brand-red, #e2231a);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.nm-page.moto-page .moto-brand-meta {
  display: block;
  color: var(--moto-copy-soft);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
}

body.nm-page.moto-page .moto-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.nm-page.moto-page .moto-brand-pill,
body.nm-page.moto-page .moto-data-pill,
body.nm-page.moto-page .moto-fit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--moto-shell-border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
  color: var(--moto-copy-soft);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.nm-page.moto-page .moto-title-block {
  display: grid;
  gap: var(--moto-title-brand-gap);
  min-width: 0;
  padding-top: var(--moto-title-block-offset);
}

body.nm-page.moto-page .moto-title {
  margin: 0;
  color: var(--text-display, var(--text-primary));
  font-family: var(--font-ui);
  font-size: var(--moto-title-size);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

body.nm-page.moto-page .moto-subtitle,
body.nm-page.moto-page .moto-copy,
body.nm-page.moto-page .moto-panel-copy {
  margin: 0;
  color: var(--moto-copy-soft);
  line-height: 1.55;
  text-wrap: pretty;
}

body.nm-page.moto-page .moto-hero-actions,
body.nm-page.moto-page .moto-dock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.nm-page.moto-page .moto-hero-actions {
  margin-left: calc(var(--moto-brand-logo-size) + var(--moto-brand-logo-gap));
}

body.nm-page.moto-page .moto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--moto-shell-border);
  border-radius: 10px;
  background: var(--moto-shell-high);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition-property: transform, border-color, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out, ease);
}

body.nm-page.moto-page .moto-btn:hover,
body.nm-page.moto-page .moto-btn:focus-visible {
  border-color: color-mix(in srgb, var(--brand-red) 62%, transparent);
  outline: none;
}

body.nm-page.moto-page .moto-btn:active {
  transform: scale(0.96);
}

body.nm-page.moto-page .moto-btn-primary {
  border-color: color-mix(in srgb, var(--brand-red) 72%, transparent);
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-700, #a51212));
  color: #fff5f5;
  box-shadow: 0 16px 34px rgba(127, 16, 16, 0.22);
}

body.nm-page.moto-page .moto-image-card {
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
  min-width: 0;
}

body.nm-page.moto-page .moto-image-well {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--text-primary) 7%, transparent), transparent),
    var(--moto-shell-high);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

body.theme-light.nm-page.moto-page .moto-image-well {
  outline-color: rgba(0, 0, 0, 0.1);
}

body.nm-page.moto-page .moto-image {
  display: block;
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.28));
}

body.nm-page.moto-page .moto-image-note {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.72rem;
}

body.nm-page.moto-page .moto-section-kicker,
body.nm-page.moto-page .moto-spec-label {
  color: var(--moto-copy-soft);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.nm-page.moto-page .moto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 18px;
  align-items: start;
}

body.nm-page.moto-page .moto-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body.nm-page.moto-page .moto-panel {
  padding: clamp(16px, 2.2vw, 24px);
}

body.nm-page.moto-page .moto-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

body.nm-page.moto-page .moto-section-title {
  margin: 0;
  color: var(--text-display, var(--text-primary));
  font-family: var(--font-ui);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 650;
  line-height: 1.2;
  text-wrap: balance;
}

body.nm-page.moto-page .moto-section-head--map {
  align-items: center;
}

body.nm-page.moto-page .moto-map-copy {
  margin: 6px 0 0;
  color: var(--moto-copy-soft);
  font-size: 0.88rem;
  line-height: 1.4;
  text-wrap: pretty;
}

body.nm-page.moto-page .moto-verdict-card {
  display: grid;
  gap: 14px;
}

body.nm-page.moto-page .moto-verdict-line {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.35;
  text-wrap: balance;
}

body.nm-page.moto-page .moto-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.nm-page.moto-page .moto-icon-mask {
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--moto-icon-url) center / contain no-repeat;
  mask: var(--moto-icon-url) center / contain no-repeat;
}

body.nm-page.moto-page .moto-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.nm-page.moto-page .moto-list li {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--moto-copy-soft);
  line-height: 1.45;
}

body.nm-page.moto-page .moto-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.48em;
  border-radius: 999px;
  background: var(--moto-good);
}

body.nm-page.moto-page .moto-list--cons li::before {
  background: var(--moto-watch);
}

body.nm-page.moto-page .moto-use-console {
  overflow: hidden;
}

body.nm-page.moto-page .moto-console-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

body.nm-page.moto-page .moto-profile-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  align-content: start;
  min-width: 0;
}

body.nm-page.moto-page .moto-profile-tab {
  --fit-color: hsl(var(--fit-hue, 92) 72% 46%);
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto 4px;
  gap: 8px 10px;
  align-items: center;
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--moto-shell-border-soft);
  border-radius: 12px;
  background: var(--moto-shell-high);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition-property: transform, border-color, box-shadow, background-color;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

body.nm-page.moto-page .moto-profile-tab:hover,
body.nm-page.moto-page .moto-profile-tab:focus-visible,
body.nm-page.moto-page .moto-profile-tab.is-active {
  border-color: color-mix(in srgb, var(--fit-color) 58%, transparent);
  outline: none;
}

body.nm-page.moto-page .moto-profile-tab:active {
  transform: scale(0.96);
}

body.nm-page.moto-page .moto-profile-tab.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--fit-color) 12%, transparent), transparent 64%),
    var(--moto-shell-high);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

body.nm-page.moto-page .moto-profile-tab-icon,
body.nm-page.moto-page .moto-profile-emblem,
body.nm-page.moto-page .moto-ranked-icon,
body.nm-page.moto-page .moto-insignia-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--text-primary) 9%, transparent);
  color: var(--text-primary);
}

body.nm-page.moto-page .moto-profile-tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 20px;
}

body.nm-page.moto-page .moto-profile-tab-icon[data-tier="great"],
body.nm-page.moto-page .moto-profile-emblem[data-tier="great"],
body.nm-page.moto-page .moto-ranked-icon[data-tier="great"] {
  background: color-mix(in srgb, var(--moto-good) 16%, transparent);
  color: var(--moto-good);
}

body.nm-page.moto-page .moto-profile-tab-icon[data-tier="good"],
body.nm-page.moto-page .moto-profile-emblem[data-tier="good"],
body.nm-page.moto-page .moto-ranked-icon[data-tier="good"] {
  background: color-mix(in srgb, var(--moto-cool) 16%, transparent);
  color: var(--moto-cool);
}

body.nm-page.moto-page .moto-profile-tab-icon[data-tier="watch"],
body.nm-page.moto-page .moto-profile-emblem[data-tier="watch"],
body.nm-page.moto-page .moto-ranked-icon[data-tier="watch"] {
  background: color-mix(in srgb, var(--moto-watch) 16%, transparent);
  color: var(--moto-watch);
}

body.nm-page.moto-page .moto-profile-tab-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.nm-page.moto-page .moto-profile-tab-name {
  color: var(--text-primary);
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-profile-tab-cue {
  color: var(--moto-copy-soft);
  font-family: var(--font-data);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-profile-tab-meter {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  overflow: hidden;
}

body.nm-page.moto-page .moto-profile-tab-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fit-color);
}

body.nm-page.moto-page .moto-profile-stage {
  display: grid;
  gap: 12px;
  min-width: 0;
}

body.nm-page.moto-page .moto-profile-detail {
  --fit-color: hsl(var(--fit-hue, 92) 72% 46%);
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--fit-color) 12%, transparent), transparent 15rem),
    var(--moto-shell-high);
  box-shadow: 0 0 0 1px var(--moto-shell-border-soft);
}

body.nm-page.moto-page .moto-profile-detail[hidden] {
  display: none;
}

body.nm-page.moto-page .moto-profile-decision {
  --fit-color: hsl(var(--fit-hue, 92) 72% 46%);
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(14px, 2vw, 18px);
  border-radius: 12px;
  background: var(--moto-shell-high);
  box-shadow:
    0 0 0 1px var(--moto-shell-border-soft),
    inset 0 1px 0 color-mix(in srgb, var(--text-primary) 6%, transparent);
}

body.nm-page.moto-page .moto-profile-decision[hidden] {
  display: none;
}

body.nm-page.moto-page .moto-decision-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

body.nm-page.moto-page .moto-decision-score {
  flex: 0 0 auto;
  color: var(--fit-color);
  font-family: var(--font-data);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.nm-page.moto-page .moto-decision-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

body.nm-page.moto-page .moto-profile-decision .moto-profile-emblem {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text-primary) 7%, transparent);
  color: var(--text-primary);
  font-size: 22px;
  box-shadow: 0 0 0 1px var(--moto-shell-border-soft);
}

body.nm-page.moto-page .moto-profile-decision .moto-profile-detail-title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

body.nm-page.moto-page .moto-profile-decision .moto-profile-detail-summary {
  max-width: 58ch;
}

body.nm-page.moto-page .moto-profile-attribute-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.nm-page.moto-page .moto-profile-attributes-title {
  color: var(--moto-copy-soft);
  font-family: var(--font-data);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

body.nm-page.moto-page .moto-profile-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
}

body.nm-page.moto-page .moto-profile-attribute {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text-primary) 4%, transparent);
  box-shadow: 0 0 0 1px var(--moto-shell-border-soft);
}

body.nm-page.moto-page .moto-profile-attribute dt {
  min-width: 0;
  color: var(--moto-copy-soft);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-profile-attribute dd {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-data);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-profile-attribute-empty {
  margin: 0;
  padding: 10px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text-primary) 4%, transparent);
  color: var(--moto-copy-soft);
  font-size: 0.82rem;
  line-height: 1.35;
  box-shadow: 0 0 0 1px var(--moto-shell-border-soft);
}

body.nm-page.moto-page .moto-profile-detail-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

body.nm-page.moto-page .moto-profile-emblem {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 28px;
}

body.nm-page.moto-page .moto-profile-detail-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.nm-page.moto-page .moto-profile-detail-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 780;
  line-height: 1;
  text-wrap: balance;
}

body.nm-page.moto-page .moto-profile-detail-summary {
  margin: 0;
  color: var(--moto-copy-soft);
  font-size: 0.95rem;
  line-height: 1.45;
  text-wrap: pretty;
}

body.nm-page.moto-page .moto-profile-scorebar {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-primary) 10%, transparent);
  overflow: hidden;
}

body.nm-page.moto-page .moto-profile-scorebar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fit-color);
}

body.nm-page.moto-page .moto-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.nm-page.moto-page .moto-profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-primary) 7%, transparent);
  color: var(--moto-copy-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-profile-chip[data-tone="good"] {
  color: var(--moto-good);
}

body.nm-page.moto-page .moto-profile-chip[data-tone="watch"] {
  color: var(--moto-watch);
}

body.nm-page.moto-page .moto-insignia-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

body.nm-page.moto-page .moto-insignia {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  place-items: center;
  gap: 7px;
  width: 88px;
  min-width: 88px;
  min-height: 88px;
  padding: 8px 6px;
  border: 1px solid var(--moto-shell-border-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--text-primary) 5%, transparent);
  color: var(--text-primary);
  text-align: center;
  overflow: hidden;
}

body.nm-page.moto-page .moto-insignia-icon {
  width: 25px;
  height: 25px;
  border-radius: 9px;
  font-size: 16px;
}

body.nm-page.moto-page .moto-insignia[data-tone="good"] {
  border-color: color-mix(in srgb, var(--moto-good) 38%, transparent);
  color: var(--moto-good);
}

body.nm-page.moto-page .moto-insignia[data-tone="watch"] {
  border-color: color-mix(in srgb, var(--moto-watch) 42%, transparent);
  color: var(--moto-watch);
}

body.nm-page.moto-page .moto-insignia-label {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  color: currentColor;
  font-family: var(--font-data);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.06;
  text-transform: uppercase;
}

body.nm-page.moto-page .moto-insignia-label span,
body.nm-page.moto-page .moto-insignia-label strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.nm-page.moto-page .moto-insignia-label span {
  opacity: 0.72;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-insignia-label strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-primary);
  font-size: 0.64rem;
}

body.nm-page.moto-page .moto-fit-label[data-tier="great"] {
  border-color: color-mix(in srgb, var(--moto-good) 60%, transparent);
  color: var(--moto-good);
}

body.nm-page.moto-page .moto-fit-label[data-tier="good"] {
  border-color: color-mix(in srgb, var(--moto-cool) 60%, transparent);
  color: var(--moto-cool);
}

body.nm-page.moto-page .moto-fit-label[data-tier="watch"] {
  border-color: color-mix(in srgb, var(--moto-watch) 60%, transparent);
  color: var(--moto-watch);
}

body.nm-page.moto-page .moto-fit-label[data-tier="low"] {
  color: var(--moto-copy-soft);
}

body.nm-page.moto-page .moto-fit-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-profile-detail .moto-fit-label,
body.nm-page.moto-page .moto-profile-decision .moto-fit-label {
  border-color: color-mix(in srgb, var(--fit-color) 60%, transparent);
  color: var(--fit-color);
}

body.nm-page.moto-page .moto-fit-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

body.nm-page.moto-page .moto-fit-pip {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-primary) 12%, transparent);
}

body.nm-page.moto-page .moto-fit-pip.is-active {
  background: var(--brand-red);
}

body.nm-page.moto-page .moto-profile-copy {
  margin: 0;
  color: var(--moto-copy-soft);
  font-size: 0.86rem;
  line-height: 1.45;
  text-wrap: pretty;
}

body.nm-page.moto-page .moto-ranked-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(14px, 2.4vw, 24px);
  align-items: start;
}

body.nm-page.moto-page .moto-ranked-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.nm-page.moto-page .moto-ranked-profile {
  --fit-color: hsl(var(--fit-hue, 92) 72% 46%);
  position: relative;
  display: grid;
  grid-template-columns: 28px 36px minmax(0, 1fr) auto;
  gap: 0 9px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--moto-shell-high);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--moto-shell-border-soft);
  transition-property: transform, box-shadow, background-color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out, ease);
}

body.nm-page.moto-page .moto-ranked-profile,
body.nm-page.moto-page .moto-profile-decision {
  scroll-margin-top: calc(var(--moto-fixed-header-height) + 14px);
  scroll-margin-bottom: calc(var(--moto-dock-safe-space) + 18px);
}

body.nm-page.moto-page .moto-ranked-profile:hover,
body.nm-page.moto-page .moto-ranked-profile:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text-primary) 18%, var(--moto-shell-border-soft)),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

body.nm-page.moto-page .moto-ranked-profile:focus-visible {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--fit-color) 48%, transparent),
    0 10px 24px rgba(0, 0, 0, 0.12);
}

body.nm-page.moto-page .moto-ranked-profile.is-active {
  background: color-mix(in srgb, var(--text-primary) 3%, var(--moto-shell-high));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--fit-color) 36%, var(--moto-shell-border-soft)),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

body.nm-page.moto-page .moto-ranked-profile:active {
  transform: scale(0.96);
}

body.nm-page.moto-page .moto-ranked-index {
  color: color-mix(in srgb, var(--text-primary) 44%, transparent);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.nm-page.moto-page .moto-ranked-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text-primary) 7%, transparent);
  color: var(--fit-color);
  font-size: 18px;
}

body.nm-page.moto-page .moto-ranked-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.nm-page.moto-page .moto-ranked-copy strong,
body.nm-page.moto-page .moto-ranked-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-ranked-copy strong {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.12;
}

body.nm-page.moto-page .moto-ranked-copy span {
  color: var(--moto-copy-soft);
  font-family: var(--font-data);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body.nm-page.moto-page .moto-ranked-meta {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 58px;
  font-family: var(--font-data);
  line-height: 1;
  text-align: right;
}

body.nm-page.moto-page .moto-ranked-meta strong {
  color: var(--fit-color);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-ranked-meta em {
  color: var(--moto-copy-soft);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-ranked-profile .moto-ranked-meta em {
  color: var(--fit-color);
}

body.nm-page.moto-page .moto-ranked-stage {
  display: grid;
  gap: 12px;
  min-width: 0;
}

body.nm-page.moto-page .moto-spec-groups {
  display: grid;
  gap: 10px;
}

body.nm-page.moto-page .moto-spec-group {
  border: 1px solid var(--moto-shell-border-soft);
  border-radius: 12px;
  background: var(--moto-shell-high);
  overflow: hidden;
}

body.nm-page.moto-page .moto-spec-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

body.nm-page.moto-page .moto-spec-summary::-webkit-details-marker {
  display: none;
}

body.nm-page.moto-page .moto-spec-summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms var(--ease-out, ease);
}

body.nm-page.moto-page .moto-spec-group[open] .moto-spec-summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

body.nm-page.moto-page .moto-spec-rows {
  display: grid;
  padding: 0 14px 14px;
}

body.nm-page.moto-page .moto-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--moto-shell-border-soft);
}

body.nm-page.moto-page .moto-spec-value {
  color: var(--text-primary);
  font-family: var(--font-data);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: right;
}

body.nm-page.moto-page .moto-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.nm-page.moto-page .moto-related-card {
  display: grid;
  grid-template-rows: 112px auto;
  gap: 12px;
  padding: 8px 8px 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition-property: transform, border-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease;
}

body.nm-page.moto-page .moto-related-card:hover,
body.nm-page.moto-page .moto-related-card:focus-visible {
  border-color: color-mix(in srgb, var(--brand-red) 70%, transparent);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  outline: none;
  transform: translateY(-1px);
}

body.nm-page.moto-page .moto-related-card:active {
  transform: scale(0.96);
}

body.nm-page.moto-page .moto-related-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--moto-shell-high);
}

body.nm-page.moto-page .moto-related-media img {
  max-width: 100%;
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
}

body.nm-page.moto-page .moto-related-body {
  display: grid;
  gap: 6px;
  padding: 0 4px;
}

body.nm-page.moto-page .moto-related-name {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.28;
  text-wrap: balance;
}

body.nm-page.moto-page .moto-related-reason {
  margin: 0;
  color: var(--moto-copy-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

body.nm-page.moto-page .moto-trust-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--moto-copy-soft);
  font-size: 0.83rem;
  line-height: 1.45;
}

body.nm-page.moto-page .moto-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 120;
  display: none;
  max-width: min(92vw, 420px);
  padding: 10px 13px;
  border: 1px solid var(--moto-shell-border);
  border-radius: 999px;
  background: var(--moto-shell-bg);
  color: var(--text-primary);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

body.nm-page.moto-page .moto-toast.is-visible {
  display: block;
}

body.nm-page.moto-page .moto-dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 110;
  display: none;
  width: min(calc(100vw - 28px), 760px);
  padding: 8px;
  border: 1px solid var(--moto-shell-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--moto-shell-bg) 92%, transparent);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

body.nm-page.moto-page.has-dock .moto-dock {
  display: block;
}

body.nm-page.moto-page .moto-dock-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body.nm-page.moto-page .moto-dock-title {
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nm-page.moto-page .moto-dock-subtitle {
  color: var(--moto-copy-soft);
  font-size: 0.76rem;
}

/* Version B: profile-first radar */
body.nm-page.moto-page--b .moto-hero-card {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
}

body.nm-page.moto-page--b .moto-identity {
  --moto-title-size: clamp(1.85rem, 4vw, 3.6rem);
  order: 2;
}

body.nm-page.moto-page--b .moto-image-card {
  order: 1;
}

body.nm-page.moto-page--b .moto-grid {
  grid-template-columns: 1fr;
}

body.nm-page.moto-page--b .moto-grid>.moto-stack:last-child {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

body.nm-page.moto-page--b .moto-related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.nm-page.moto-page--b .moto-ranked-layout {
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1fr);
}

@media (max-width: 980px) {

  body.nm-page.moto-page .moto-hero-card,
  body.nm-page.moto-page--b .moto-hero-card,
  body.nm-page.moto-page .moto-grid,
  body.nm-page.moto-page--b .moto-grid {
    grid-template-columns: 1fr;
  }

  body.nm-page.moto-page--b .moto-identity,
  body.nm-page.moto-page--b .moto-image-card {
    order: initial;
  }

  body.nm-page.moto-page--b .moto-grid>.moto-stack:last-child {
    grid-template-columns: 1fr;
  }

  body.nm-page.moto-page--a .moto-identity {
    align-content: start;
  }

  body.nm-page.moto-page .moto-console-layout,
  body.nm-page.moto-page .moto-ranked-layout,
  body.nm-page.moto-page--b .moto-ranked-layout {
    grid-template-columns: 1fr;
  }

  body.nm-page.moto-page .moto-profile-tabs {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  body.nm-page.moto-page .moto-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.nm-page.moto-page {
    --moto-fixed-header-height: 44px;
    --moto-dock-safe-space: 132px;
  }

  body.nm-page.moto-page .moto-shell {
    padding: 66px 14px calc(142px + env(safe-area-inset-bottom, 0px));
  }

  body.nm-page.moto-page .moto-topbar {
    grid-template-columns: 1fr;
  }

  body.nm-page.moto-page .moto-hero-card,
  body.nm-page.moto-page .moto-panel {
    border-radius: 14px;
  }

  body.nm-page.moto-page .moto-image-well {
    min-height: 190px;
    padding: 14px;
  }

  body.nm-page.moto-page .moto-image {
    max-height: 168px;
  }

  body.nm-page.moto-page .moto-identity {
    --moto-title-size: clamp(1.9rem, 10vw, 2.75rem);
    --moto-brand-logo-gap: 12px;
    gap: 14px;
  }

  body.nm-page.moto-page .moto-hero-actions [data-moto-share] {
    display: none;
  }

  body.nm-page.moto-page .moto-related-grid {
    grid-template-columns: 1fr;
  }

  body.nm-page.moto-page .moto-profile-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  body.nm-page.moto-page .moto-profile-tab {
    flex: 0 0 min(78vw, 240px);
    scroll-snap-align: start;
  }

  body.nm-page.moto-page .moto-profile-detail-head {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  body.nm-page.moto-page .moto-profile-detail-head .moto-fit-label {
    grid-column: 2;
    justify-self: start;
  }

  body.nm-page.moto-page .moto-profile-emblem {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  body.nm-page.moto-page .moto-insignia {
    width: 82px;
    min-width: 82px;
    min-height: 82px;
  }

  body.nm-page.moto-page .moto-section-head {
    display: grid;
  }

  body.nm-page.moto-page .moto-section-head--map {
    gap: 12px;
  }

  body.nm-page.moto-page .moto-use-ranked {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  body.nm-page.moto-page .moto-ranked-list {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
  }

  body.nm-page.moto-page .moto-ranked-profile {
    grid-template-columns: 28px 34px minmax(0, 1fr) auto;
    min-height: 56px;
    padding: 8px;
  }

  body.nm-page.moto-page .moto-ranked-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  body.nm-page.moto-page .moto-ranked-meta {
    min-width: 48px;
  }

  body.nm-page.moto-page .moto-ranked-meta strong {
    font-size: 0.76rem;
  }

  body.nm-page.moto-page .moto-ranked-meta em {
    font-size: 0.5rem;
  }

  body.nm-page.moto-page .moto-decision-main {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  body.nm-page.moto-page .moto-decision-main .moto-fit-label {
    grid-column: 2;
    justify-self: start;
  }

  body.nm-page.moto-page .moto-profile-decision .moto-profile-emblem {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  body.nm-page.moto-page .moto-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  body.nm-page.moto-page .moto-spec-value {
    text-align: left;
  }

  body.nm-page.moto-page .moto-dock-inner {
    grid-template-columns: 1fr;
  }

  body.nm-page.moto-page .moto-dock-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.nm-page.moto-page .moto-dock .moto-btn {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }
}
