:root {
  --border: rgba(15, 23, 42, 0.12);
  --surface: #fff;
  --muted: #0f172a;
  --brand: #0ea5e9;
  --background: #f7fafc;
  --section-gap: 8px;
  /* Premium motion (no layout/JS changes; respects reduced motion below) */
  --ease-premium: cubic-bezier(0.2, 0.82, 0.22, 1);
  --dur-fast: 0.18s;
  --dur-mid: 0.28s;
  /* Form controls (global create listing) */
  --gb-input-border: rgba(15, 23, 42, 0.1);
  --gb-input-border-hover: rgba(15, 23, 42, 0.18);
  --gb-focus-ring: #2563eb;
  --gb-input-depth: 0 1px 2px rgba(15, 23, 42, 0.04);
}

@keyframes gb-premium-modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(0.375rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-mid: 0.01ms;
  }
}

/* This page does not load /assets/css/styles.css — keep a11y helper local */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gb-create-motor {
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2rem 0 4rem;
}

.gb-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 32px;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.gb-card + .gb-card {
  margin-top: 16px;
}

.gb-section details.gb-card + details.gb-card {
  margin-top: 16px;
}

.gb-section > .gb-card + .gb-card {
  margin-top: 16px;
}

/* Card column uses flex + gap (--section-gap on .gb-section-cards in create_vessel.php).
   Do not add extra margin between consecutive tiles: .gb-card + .gb-card was 16px and
   stacked on top of gap. */
.gb-section.gb-section-cards > .gb-card + .gb-card {
  margin-top: 0;
}

.gb-section.gb-section-cards details.gb-card + details.gb-card {
  margin-top: 0;
}

/* Primary “essentials” listing card — visual polish only (same fields / order as before) */
.gb-card.gb-card--required {
  border-color: rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 44px rgba(15, 23, 42, 0.07),
    0 6px 14px rgba(14, 165, 233, 0.06);
  padding: 26px 22px 28px;
}

/* Dashboard dash-v2-hero palette: navy gradient + light type — inverted vs white card body */
.gb-card.gb-card--required.gb-card--listing-hero {
  padding-top: 0;
  overflow: hidden;
  padding-left: 22px;
  padding-right: 22px;
  padding-bottom: 28px;
}

@media (min-width: 640px) {
  .gb-card.gb-card--required.gb-card--listing-hero {
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 32px;
  }
}

.gb-listing-hero-tile {
  position: relative;
  margin-left: -22px;
  margin-right: -22px;
  margin-bottom: 1.35rem;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.22);
}

@media (min-width: 640px) {
  .gb-listing-hero-tile {
    margin-left: -28px;
    margin-right: -28px;
    margin-bottom: 1.5rem;
  }
}

.gb-listing-hero-tile__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.09), transparent 44%),
    linear-gradient(135deg, #0b1f3a 0%, #123a6b 100%);
}

.gb-listing-hero-tile__inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.35rem 1.45rem;
}

@media (min-width: 640px) {
  .gb-listing-hero-tile__inner {
    padding: 1.45rem 1.65rem 1.55rem;
  }
}

.gb-listing-hero-tile #listing-heading {
  margin: 0 0 0.35rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gb-listing-hero-tile .gb-listing-heading-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.gb-listing-hero-tile .gb-listing-intro-draft,
.gb-listing-hero-tile .gb-listing-intro-required {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.gb-listing-hero-tile .required-indicator {
  color: #dc2626;
  font-weight: 700;
}

.gb-listing-hero-tile .gb-listing-progress__track {
  stroke: rgba(255, 255, 255, 0.22);
}

.gb-listing-hero-tile .gb-listing-progress__pct.gb-listing-progress__pct--orange {
  color: #ffedd5;
}

.gb-listing-hero-tile .gb-listing-progress__pct.gb-listing-progress__pct--blue {
  color: #bae6fd;
}

.gb-listing-hero-tile .gb-listing-progress__pct.gb-listing-progress__pct--green {
  color: #bbf7d0;
}

.gb-listing-hero-tile .gb-listing-progress__quality-label {
  color: rgba(255, 255, 255, 0.62);
}

.gb-listing-hero-tile .gb-listing-progress__info-btn {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.gb-listing-hero-tile .gb-listing-progress__info-btn:hover,
.gb-listing-hero-tile .gb-listing-progress__info-btn:focus-visible {
  border-color: rgba(125, 211, 252, 0.85);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.gb-listing-hero-tile .gb-listing-progress__bar-track {
  background: rgba(255, 255, 255, 0.14);
}

.gb-listing-hero-tile .gb-listing-progress__bar-fill {
  background: linear-gradient(90deg, rgba(29, 161, 242, 0.75), rgba(125, 211, 252, 0.98));
}

.gb-listing-hero-tile .gb-listing-progress__ready {
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 640px) {
  .gb-card.gb-card--required:not(.gb-card--listing-hero) {
    padding: 30px 28px 32px;
  }

  .gb-card.gb-card--required.gb-card--listing-hero {
    padding: 0 28px 32px;
  }
}

.gb-card-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 24px;
}

.gb-card-heading.gb-card-heading--with-progress {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.gb-card-heading__intro {
  flex: 1;
  min-width: 0;
}

.gb-listing-progress {
  flex-shrink: 0;
  width: 118px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding-top: 0.1rem;
}

.gb-listing-progress__publish {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  gap: 0.2rem;
  width: auto;
}

.gb-listing-progress__ring-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.gb-listing-progress__svg {
  width: 54px;
  height: 54px;
  display: block;
}

.gb-listing-progress__track {
  stroke: #e5e7eb;
}

.gb-listing-progress__arc {
  stroke-dasharray: 106.814;
  stroke-dashoffset: 106.814;
  transition:
    stroke-dashoffset 0.35s var(--ease-premium, ease-out),
    stroke 0.28s ease;
}

.gb-listing-progress__arc.gb-listing-progress__arc--orange {
  stroke: #fb923c;
}

.gb-listing-progress__arc.gb-listing-progress__arc--blue {
  stroke: #38bdf8;
}

.gb-listing-progress__arc.gb-listing-progress__arc--green {
  stroke: #22c55e;
}

.gb-listing-progress__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  pointer-events: none;
  transition: color 0.28s ease;
}

.gb-listing-progress__pct.gb-listing-progress__pct--orange {
  color: #c2410c;
}

.gb-listing-progress__pct.gb-listing-progress__pct--blue {
  color: #0369a1;
}

.gb-listing-progress__pct.gb-listing-progress__pct--green {
  color: #15803d;
}

.gb-listing-progress__pct.gb-listing-progress__pct--full {
  font-size: 0.58rem;
  letter-spacing: -0.04em;
}

.gb-listing-progress__ready {
  margin: 0;
  padding: 0;
  max-width: 118px;
  font-size: 0.62rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.25;
  text-align: right;
  letter-spacing: 0.01em;
}

.gb-listing-progress__quality {
  width: 100%;
}

.gb-listing-progress__quality-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.gb-listing-progress__quality-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0;
  text-align: right;
}

.gb-listing-progress__info-btn {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gb-listing-progress__info-btn:hover,
.gb-listing-progress__info-btn:focus-visible {
  border-color: #38bdf8;
  color: #0284c7;
  background: #e0f2fe;
}

.gb-listing-progress__info-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.gb-listing-progress__bar-track {
  height: 7px;
  border-radius: 999px;
  background: #eef2f6;
  overflow: hidden;
}

.gb-listing-progress__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #bae6fd, #38bdf8);
  transition: width 0.35s var(--ease-premium, ease-out);
}

@media (max-width: 520px) {
  .gb-card-heading.gb-card-heading--with-progress {
    flex-wrap: wrap;
  }

  .gb-listing-progress {
    width: 100%;
    max-width: 118px;
    margin-left: auto;
  }
}

.gb-card.gb-card--required:not(.gb-card--listing-hero) .gb-card-heading {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.gb-card.gb-card--required.gb-card--listing-hero .gb-listing-hero-tile .gb-card-heading.gb-card-heading--with-progress {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.gb-card.gb-card--required:not(.gb-card--listing-hero) #listing-heading {
  letter-spacing: -0.02em;
}

/* Listing ID (left) + length ft/m (right); compact, vertically centered */
.gb-card.gb-card--required .gb-listing-id-units-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.gb-card.gb-card--required .gb-listing-id-units-row:has(#auto-listing-id[hidden]) {
  justify-content: flex-end;
}

.gb-card.gb-card--required .gb-listing-id-units-row #auto-listing-id {
  margin: 0;
}

.gb-card.gb-card--required .gb-listing-id-units-row .gb-units-bar {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.32rem 0.55rem;
  gap: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

.gb-card.gb-card--required .gb-listing-id-units-row .gb-units-bar-label {
  font-size: 0.75rem;
  color: #475569;
}

.gb-card.gb-card--required .gb-listing-id-units-row .gb-segmented {
  border-radius: 5px;
}

.gb-card.gb-card--required .gb-listing-id-units-row .gb-segmented .gb-segment {
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
}

/* Price + Currency + VAT — one grouped block; Payment methods sits below divider */
.gb-price-deal-pricing-group {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e3e8ef;
}

/* Price column | Currency + VAT stack (~67% / ~33%) */
.gb-price-deal-price-currency-vat {
  display: grid;
  grid-template-columns: minmax(0, 67fr) minmax(0, 33fr);
  gap: 0 1rem;
  align-items: start;
}

.gb-price-deal-price-stack,
.gb-price-deal-currency-vat-stack {
  min-width: 0;
}

.gb-price-deal-price-stack {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.gb-price-deal-currency-vat-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gb-price-deal-currency-vat-stack > .gb-field[data-field='listing-currency'] {
  margin-bottom: 0;
}

.gb-card.gb-card--required .gb-field[data-field='listing-price'] input.gb-input {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  min-height: 3.55rem;
  box-sizing: border-box;
}

#motor-listing-form .gb-card.gb-card--required .gb-price-deal-currency-vat-stack .gb-field[data-field='listing-currency'] .gb-select select {
  min-height: 3.55rem;
  box-sizing: border-box;
  font-size: 0.875rem;
  padding: 0.75rem 2.35rem 0.75rem 0.65rem;
}

.gb-card.gb-card--required .form-actions.form-actions--with-status {
  margin-top: 0.35rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* Payment methods: same checkbox names/values — styled as selectable chips */
.gb-field.gb-field--payment-methods .payment-methods-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.4rem;
}

.gb-field.gb-field--payment-methods .payment-methods-grid > label {
  display: inline-flex;
  align-items: stretch;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.gb-field.gb-field--payment-methods .payment-methods-grid > label input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.gb-field.gb-field--payment-methods .payment-methods-grid > label > span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  pointer-events: none;
  user-select: none;
  transition:
    background var(--dur-fast, 0.18s) var(--ease-premium, cubic-bezier(0.2, 0.82, 0.22, 1)),
    border-color var(--dur-fast, 0.18s) var(--ease-premium, cubic-bezier(0.2, 0.82, 0.22, 1)),
    color var(--dur-fast, 0.18s) var(--ease-premium, cubic-bezier(0.2, 0.82, 0.22, 1)),
    box-shadow var(--dur-fast, 0.18s) var(--ease-premium, cubic-bezier(0.2, 0.82, 0.22, 1));
}

@media (prefers-reduced-motion: reduce) {
  .gb-field.gb-field--payment-methods .payment-methods-grid > label > span {
    transition: none;
  }
}

.gb-field.gb-field--payment-methods .payment-methods-grid > label:hover > span {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.gb-field.gb-field--payment-methods .payment-methods-grid > label input:checked + span {
  background: rgba(224, 242, 254, 0.98);
  border-color: #38bdf8;
  color: #0c4a6e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.gb-field.gb-field--payment-methods .payment-methods-grid > label:focus-within > span {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
}

.gb-card--required:not(.gb-card--listing-hero) .gb-listing-heading-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #334155;
}

.gb-card--required:not(.gb-card--listing-hero) .gb-listing-intro-draft,
.gb-card--required:not(.gb-card--listing-hero) .gb-listing-intro-required,
.image-manager .gb-listing-intro-hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
  color: #475569;
  max-width: 40rem;
}

.image-manager .gb-listing-intro-hint {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.gb-card--required:not(.gb-card--listing-hero) .gb-listing-intro-required .required-indicator {
  color: #dc2626;
  font-size: inherit;
  font-weight: 600;
  margin-left: 1px;
}

.gb-card-heading h2 {
  font-family: 'Space Grotesk', 'Inter', 'system-ui', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

/* Sail: outer white card + inner .form-subgroup tiles (like Hull & Size) */
.sailing-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.gb-card.gb-card--sail-rig .gb-card-body .form-subgroup + .form-subgroup {
  margin-top: 24px;
}

.sailing-sections > details {
  width: 100%;
}

.gb-section-cards .gb-card,
.gb-card.gb-card--cabin,
.gb-card.gb-card--onboard-power,
.gb-card.gb-card--features,
.gb-card.gb-card--sailing,
.gb-card.gb-card--sail-rig {
  padding: 14px 16px;
}

.gb-section-cards .gb-card-summary,
.gb-card.gb-card--cabin .gb-card-summary,
.gb-card.gb-card--onboard-power .gb-card-summary,
.gb-card.gb-card--features .gb-card-summary,
.gb-card.gb-card--sailing .gb-card-summary,
.gb-card.gb-card--sail-rig .gb-card-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0;
  cursor: pointer;
}

.gb-section-cards .gb-card-summary::-webkit-details-marker,
.gb-card.gb-card--cabin .gb-card-summary::-webkit-details-marker,
.gb-card.gb-card--onboard-power .gb-card-summary::-webkit-details-marker,
.gb-card.gb-card--features .gb-card-summary::-webkit-details-marker,
.gb-card.gb-card--sailing .gb-card-summary::-webkit-details-marker,
.gb-card.gb-card--sail-rig .gb-card-summary::-webkit-details-marker,
.gb-section-cards .gb-card-summary::marker,
.gb-card.gb-card--cabin .gb-card-summary::marker,
.gb-card.gb-card--onboard-power .gb-card-summary::marker,
.gb-card.gb-card--features .gb-card-summary::marker,
.gb-card.gb-card--sailing .gb-card-summary::marker,
.gb-card.gb-card--sail-rig .gb-card-summary::marker {
  display: none;
}

.gb-section-cards .gb-card-heading,
.gb-card.gb-card--cabin .gb-card-heading,
.gb-card.gb-card--onboard-power .gb-card-heading,
.gb-card.gb-card--features .gb-card-heading,
.gb-card.gb-card--sailing .gb-card-heading,
.gb-card.gb-card--sail-rig .gb-card-heading {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  margin: 0;
  width: 100%;
}

.gb-section-cards .gb-card-body,
.gb-card.gb-card--cabin .gb-card-body,
.gb-card.gb-card--onboard-power .gb-card-body,
.gb-card.gb-card--features .gb-card-body,
.gb-card.gb-card--sailing .gb-card-body,
.gb-card.gb-card--sail-rig .gb-card-body {
  padding-top: 16px;
}

.gb-card.gb-card--onboard-power .gb-card-summary {
  min-height: 46px;
  height: auto;
  padding: 0.35rem 0 !important;
  line-height: 1.2;
  align-items: flex-start;
}

.gb-card.gb-card--onboard-power .gb-card-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin: 0 !important;
}

.gb-card.gb-card--cabin .gb-card-summary {
  height: 46px;
  min-height: 46px;
  padding: 0 !important;
  line-height: 1.1;
}

.gb-card.gb-card--sailing .gb-card-summary {
  height: 46px;
  min-height: 46px;
  padding: 0 !important;
  line-height: 1.1;
}

.gb-card.gb-card--sail-rig .gb-card-summary {
  height: 46px;
  min-height: 46px;
  padding: 0 !important;
  line-height: 1.1;
}

.gb-card.gb-card--cabin .gb-card-heading {
  margin: 0 !important;
}

/* —— Section cards: clearly lifted panel (sichtbar „Premium“, nicht nur Haarlinie) —— */
.gb-section.gb-section-cards > details.gb-card,
.gb-section.gb-section-cards .sailing-sections details.gb-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 14px 44px rgba(15, 23, 42, 0.1),
    0 6px 16px rgba(15, 23, 42, 0.06);
  background: #ffffff;
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-mid) var(--ease-premium);
}

.gb-section.gb-section-cards > details.gb-card:not([open]):hover,
.gb-section.gb-section-cards .sailing-sections details.gb-card:not([open]):hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 3px 8px rgba(15, 23, 42, 0.06),
    0 18px 48px rgba(15, 23, 42, 0.12),
    0 8px 20px rgba(15, 23, 42, 0.07);
}

.gb-section.gb-section-cards > details.gb-card > .gb-card-summary:focus-visible,
.gb-section.gb-section-cards .sailing-sections details.gb-card > .gb-card-summary:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
  border-radius: 10px;
}

#create-vessel-root .gb-open-all-row {
  margin: 0 0 var(--section-gap);
  text-align: right;
  line-height: 1.2;
}

#create-vessel-root .gb-open-all-link {
  padding: 0.35rem 0.55rem;
  margin: -0.35rem -0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #64748b;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition:
    color var(--dur-fast) var(--ease-premium),
    background-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

#create-vessel-root .gb-open-all-link:hover {
  color: #374151;
  background: rgba(15, 23, 42, 0.04);
}

#create-vessel-root .gb-open-all-link:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
  color: #374151;
}

/* —— Form controls: inputs are the focus (global) —— */
.form-input:not([type='hidden']) {
  background: #ffffff;
  border: 1px solid var(--gb-input-border);
  border-radius: 10px;
  box-shadow: var(--gb-input-depth);
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.form-input:not([type='hidden']):hover:not(:disabled):not(:focus):not(:focus-within) {
  border-color: var(--gb-input-border-hover);
}

.form-input:focus,
.form-input:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

/* Composite shells: inner text field has no second box */
.gb-displacement-input-wrap .gb-displacement-display.form-input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gb-displacement-input-wrap .gb-displacement-display.form-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.gb-displacement-display::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

.form-section-title {
  font-family: 'Space Grotesk', 'Inter', 'system-ui', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.024em;
  color: #0f172a;
  margin: 0;
  line-height: 1.22;
}

.form-section-body {
  padding-top: 0;
}

.form-subgroup {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 100%);
  border-radius: 12px;
  padding: 18px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 12px 24px rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(15, 23, 42, 0.05);
}

.form-subgroup + .form-subgroup {
  margin-top: 24px;
}

.form-subgroup-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.35;
}

.form-subgroup-title:has(+ .form-subgroup-hint) {
  margin-bottom: 8px;
}

.form-subgroup-hint {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

.form-subgroup .form-subgroup.gb-financial-derived-preview {
  margin-top: 20px;
  background: linear-gradient(165deg, #f1f5f9 0%, #e8edf3 100%);
}

.gb-financial-derived-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gb-financial-derived-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.gb-financial-derived-label {
  color: #64748b;
}

.gb-financial-derived-value {
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.form-subgroup.subgroup--electric {
  background: #f3faf6;
  border: 1px solid rgba(34, 197, 94, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(34, 197, 94, 0.07),
    0 1px 3px rgba(15, 23, 42, 0.05);
}

.form-grid--cols-1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
}

.form-grid--cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (max-width: 520px) {
  .form-grid--cols-2 {
    grid-template-columns: 1fr;
  }
}

.form-grid--cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

@media (max-width: 900px) {
  .form-grid--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .form-grid--cols-3 {
    grid-template-columns: 1fr;
  }
}

.form-section-body .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
}

.form-label,
.form-field-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.form-section-body .form-input.gb-input,
.form-section-body .form-input.form-input--picker.gb-length-m-trigger {
  min-height: 3rem;
  box-sizing: border-box;
}

.form-section-body .form-input.form-input--picker.gb-length-m-trigger {
  padding: 0.65rem 0.85rem;
  gap: 0.5rem;
}

.form-section-body select.form-input {
  width: 100%;
}

.form-section-body .gb-displacement-input-wrap:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.form-section-body .gb-field--engine-power-kw .gb-engine-power-input-wrap,
.form-section-body .gb-field--speed-kn .gb-engine-power-input-wrap {
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.form-section-body .gb-field--engine-power-kw .gb-engine-power-input-wrap {
  --gb-e-power-chip-pull-x: 0.85rem;
  --gb-e-power-chip-pull-y: 0.65rem;
}

.form-section-body .gb-field--engine-power-kw .gb-engine-power-input-wrap:hover:not(:focus-within),
.form-section-body .gb-field--speed-kn .gb-engine-power-input-wrap:hover:not(:focus-within) {
  border-color: var(--gb-input-border-hover);
}

.form-section-body .gb-field--engine-power-kw .gb-engine-power-input-wrap:focus-within,
.form-section-body .gb-field--speed-kn .gb-engine-power-input-wrap:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.gb-engine-power-input-wrap .gb-engine-power-display.form-input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gb-engine-power-input-wrap .gb-engine-power-display.form-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.form-section-body .gb-engine-power-suffix.form-unit:not(.gb-engine-power-unit-chip) {
  margin-left: 0;
  min-width: 44px;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  text-decoration: underline dotted rgba(100, 116, 139, 0.5);
  text-underline-offset: 3px;
}

.form-section-body .gb-engine-power-suffix.form-unit:not(.gb-engine-power-unit-chip):hover {
  color: #0ea5e9;
}

/* Wheel fields: neon unit chip (kg, kWh, kW, kn, h, L, m², …) flush inside bordered shells */
.form-section-body .gb-engine-power-unit-chip.form-unit {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(-1 * var(--gb-e-power-chip-pull-y, 0.65rem));
  margin-bottom: calc(-1 * var(--gb-e-power-chip-pull-y, 0.65rem));
  margin-right: calc(-1 * var(--gb-e-power-chip-pull-x, 0.85rem));
  margin-left: 0;
  border: 1px solid rgba(52, 211, 153, 0.55);
  border-radius: 7px 9px 9px 7px;
  padding: 0 0.65rem;
  min-width: 2.75rem;
  width: auto;
  max-height: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: #065f46;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  text-decoration: none;
  line-height: 1.15;
  background: linear-gradient(
    165deg,
    rgba(167, 243, 208, 0.55) 0%,
    rgba(74, 222, 128, 0.38) 50%,
    rgba(34, 197, 94, 0.28) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(22, 163, 74, 0.14);
  transition:
    background var(--dur-fast) var(--ease-premium),
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium),
    color var(--dur-fast) var(--ease-premium),
    transform 0.1s var(--ease-premium);
}

.form-section-body .gb-engine-power-unit-chip.form-unit:hover {
  color: #064e3b;
  border-color: rgba(45, 212, 191, 0.72);
  background: linear-gradient(
    165deg,
    rgba(209, 250, 229, 0.85) 0%,
    rgba(110, 231, 183, 0.52) 48%,
    rgba(52, 211, 153, 0.42) 100%
  );
}

.form-section-body .gb-engine-power-unit-chip.form-unit:focus-visible {
  outline: 2px solid rgba(52, 211, 153, 0.85);
  outline-offset: -2px;
}

.form-section-body .gb-engine-power-unit-chip.form-unit:active {
  transform: scale(0.99);
}

/* Aux / generator kW + sail area: row layout — value left, unit (kW / m²) right */
.form-section-body .gb-small-kw-input-wrap,
.form-section-body .gb-field--aux-fuel-pills ~ .form-grid .gb-small-kw-input-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.form-section-body .gb-small-kw-input-wrap:hover:not(:focus-within) {
  border-color: var(--gb-input-border-hover);
}

.form-section-body .gb-small-kw-input-wrap:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.gb-small-kw-input-wrap .gb-small-kw-display.form-input {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  text-align: left;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.gb-small-kw-input-wrap .gb-small-kw-display.form-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.form-section-body .gb-small-kw-suffix.form-unit:not(.gb-engine-power-unit-chip) {
  margin-left: 0;
  min-width: 44px;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  text-decoration: underline dotted rgba(100, 116, 139, 0.5);
  text-underline-offset: 3px;
}

.form-section-body .gb-small-kw-suffix.form-unit:not(.gb-engine-power-unit-chip):hover {
  color: #0ea5e9;
}

/* Livewell / fishbox volume (L): type or tap L for two wheels (×10 + ×1, max 500) */
.form-section-body .gb-volume-l-input-wrap {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.form-section-body .gb-volume-l-input-wrap:hover:not(:focus-within) {
  border-color: var(--gb-input-border-hover);
}

.form-section-body .gb-volume-l-input-wrap:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.gb-volume-l-input-wrap .gb-volume-l-display.form-input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  cursor: text;
  flex: 1 1 0;
  min-width: 0;
}

.gb-volume-l-input-wrap .gb-volume-l-display.form-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.form-section-body .gb-volume-l-suffix.form-unit:not(.gb-engine-power-unit-chip) {
  margin-left: 0;
  min-width: 44px;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  text-decoration: underline dotted rgba(100, 116, 139, 0.5);
  text-underline-offset: 3px;
}

.form-section-body .gb-volume-l-suffix.form-unit:not(.gb-engine-power-unit-chip):hover {
  color: #0ea5e9;
}

/* Engine hours: five-digit wheel + typing; "h" opens picker */
.form-section-body .gb-engine-hours-input-wrap {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.form-section-body .gb-engine-hours-input-wrap:hover:not(:focus-within) {
  border-color: var(--gb-input-border-hover);
}

.form-section-body .gb-engine-hours-input-wrap:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.gb-engine-hours-input-wrap .gb-engine-hours-display.form-input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: text;
  flex: 1;
  min-width: 0;
}

.gb-engine-hours-input-wrap .gb-engine-hours-display.form-input:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.form-section-body .gb-engine-hours-suffix.form-unit:not(.gb-engine-power-unit-chip) {
  margin-left: 0;
  min-width: 44px;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  text-decoration: underline dotted rgba(100, 116, 139, 0.5);
  text-underline-offset: 3px;
}

.form-section-body .gb-engine-hours-suffix.form-unit:not(.gb-engine-power-unit-chip):hover {
  color: #0ea5e9;
}

/* Units: fixed right column — same optical slot for m / kg (muscle memory) */
.form-section-body .gb-length-m-trigger__hint.form-unit {
  margin-left: 0;
  min-width: 44px;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.form-section-body .gb-displacement-suffix.form-unit {
  margin-left: 0;
  min-width: 44px;
  width: 44px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.form-input-shell {
  display: block;
  width: 100%;
}

.form-unit {
  user-select: none;
}

/* Classification & Operation — segment + operating area */
.gb-card-body--classification .gb-classification-segment {
  max-width: min(100%, 26rem);
}

.gb-card-body--classification .gb-classification-segment .gb-field,
.gb-card-body--classification .gb-classification-segment .form-field {
  margin-bottom: 0;
}

fieldset.section-subblock {
  min-inline-size: 0;
  display: block;
  appearance: none;
  margin: 16px 0 0;
  padding: 18px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 12px 24px rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04),
    0 1px 3px rgba(15, 23, 42, 0.05);
}

.section-subblock__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.35;
}

.section-subblock__group + .section-subblock__group {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.section-subblock__group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.section-subblock__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.section-subblock__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-size: 0.9375rem;
  color: #1f2937;
  cursor: pointer;
  padding: 6px 10px;
  margin: 0;
  border-radius: 8px;
  line-height: 1.25;
  user-select: none;
}

.section-subblock__option:hover {
  background: rgba(255, 255, 255, 0.88);
}

.section-subblock__option:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
}

.section-subblock__option input[type='checkbox'] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0;
  accent-color: #0ea5e9;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .section-subblock__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.125rem;
  }
}

@media (max-width: 420px) {
  .section-subblock__grid {
    grid-template-columns: 1fr;
  }
}

.gb-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 16px;
}

.gb-field span .required-indicator {
  color: #dc2626;
  margin-left: 4px;
  font-size: 0.95rem;
}

.gb-select {
  position: relative;
}

.gb-field select,
.gb-select select,
.gb-input,
.gb-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--gb-input-border);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: var(--gb-input-depth);
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.gb-input,
.gb-textarea {
  padding: 0.85rem 1rem;
  background: #ffffff;
}

textarea.gb-textarea[name='navigation_system_model']::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* Native selects: custom thin chevron (#9aa3af), ~14px — all dropdowns in create listing form */
.gb-field select,
.gb-select select,
#motor-listing-form select {
  padding: 0.85rem 2.35rem 0.85rem 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%239aa3af' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 14px;
}

.gb-field select:hover:not(:disabled):not(:focus),
.gb-select select:hover:not(:disabled):not(:focus),
#motor-listing-form select:hover:not(:disabled):not(:focus),
.gb-input:hover:not(:disabled):not(:focus),
.gb-textarea:hover:not(:disabled):not(:focus) {
  border-color: var(--gb-input-border-hover);
}

.gb-field textarea[name="special_features_text"] {
  min-height: 160px;
}

.gb-card--features [data-api-features-tail] {
  margin-top: 1rem;
  width: 100%;
}

.gb-input:focus,
.gb-input:focus-visible,
.gb-field select:focus,
.gb-field select:focus-visible,
.gb-select select:focus,
.gb-select select:focus-visible,
#motor-listing-form select:focus,
#motor-listing-form select:focus-visible,
.gb-textarea:focus,
.gb-textarea:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.gb-grid-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.gb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* Beam + Draft + Displacement: one horizontal row, equal thirds (grid min-width:auto can crowd columns) */
.gb-hull-dims-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}

.gb-hull-dims-row > .gb-field {
  flex: 1 1 0;
  min-width: 0;
}

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  margin-bottom: 1rem;
}

.form-alert--error {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.form-status {
  margin: 0;
  font-weight: 600;
}

.form-status--warning {
  color: #b45309;
}

.gb-field-warning {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b45309;
}

.form-status--info {
  color: #0f172a;
}

.form-status--success {
  color: #15803d;
}

.gb-card--performance .gb-card-body {
  padding-top: 0;
}

.form-section-body .performance-field .performance-input {
  margin-top: 0;
}

.form-section-body .performance-input {
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.performance-field {
  margin-bottom: 0;
}

.performance-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.performance-input {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gb-input-border);
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  background: #fff;
  box-shadow: var(--gb-input-depth);
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.performance-input:hover:not(:focus-within) {
  border-color: var(--gb-input-border-hover);
}

.performance-input:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.performance-input input,
.performance-input select {
  border: none;
  width: 100%;
  min-width: 0;
  flex: 1;
  padding: 0;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
}

.performance-input input:focus,
.performance-input select:focus {
  outline: none;
}

/* Inline selects in performance strip: keep compact padding + subdued chevron */
#motor-listing-form .performance-input select {
  padding: 0 1.35rem 0 0;
  min-height: 0;
  background-size: 13px 13px;
  background-position: right 0.1rem center;
}

.performance-unit {
  font-size: 0.85rem;
  color: #475569;
}

.gb-card--performance .gb-field-hint {
  margin-top: 0.125rem;
  font-size: 0.85rem;
}

.gb-performance-advanced {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Disclosure row: same voice as form-subgroup-title (Hull), not a pill button */
.gb-performance-advanced__summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.15rem 0 0.85rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--dur-fast) var(--ease-premium);
}

.gb-performance-advanced__summary:hover {
  color: #475569;
}

.gb-performance-advanced__summary:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.gb-performance-advanced__summary::-webkit-details-marker {
  display: none;
}

.gb-performance-advanced__summary::after {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(0, -0.1rem);
  opacity: 0.65;
  transition: transform var(--dur-fast) var(--ease-premium);
  flex-shrink: 0;
}

.gb-performance-advanced[open] > .gb-performance-advanced__summary::after {
  transform: rotate(-135deg) translate(0, 0.06rem);
}

.gb-performance-advanced[open] > .gb-performance-advanced__summary {
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}

/* Panel: Hull subgroup surface inside Performance card */
.gb-performance-advanced__panel.form-subgroup {
  margin-top: 0;
}

.gb-performance-advanced__hint.form-subgroup-hint {
  margin-top: 0;
  margin-bottom: 16px;
}

.gb-performance-advanced__label--when-open {
  display: none;
}

.gb-performance-advanced[open] .gb-performance-advanced__label--when-closed {
  display: none;
}

.gb-performance-advanced[open] .gb-performance-advanced__label--when-open {
  display: inline;
}

.gb-onboard-power-charging-row {
  margin-top: 1rem;
}

.gb-onboard-power-advanced {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.gb-onboard-power-advanced__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.gb-onboard-power-advanced__summary:hover {
  background: #f8fafc;
  border-color: rgba(14, 165, 233, 0.45);
  color: #0c4a6e;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.12);
}

.gb-onboard-power-advanced__summary:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
  border-color: var(--gb-focus-ring);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.gb-onboard-power-advanced__summary::-webkit-details-marker {
  display: none;
}

.gb-onboard-power-advanced__summary::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(0, -0.12rem);
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.gb-onboard-power-advanced[open] > .gb-onboard-power-advanced__summary::after {
  transform: rotate(-135deg) translate(0, 0.08rem);
}

.gb-onboard-power-advanced[open] > .gb-onboard-power-advanced__summary {
  margin-bottom: 1rem;
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.08);
}

.gb-onboard-power-advanced__label--when-open {
  display: none;
}

.gb-onboard-power-advanced[open] .gb-onboard-power-advanced__label--when-closed {
  display: none;
}

.gb-onboard-power-advanced[open] .gb-onboard-power-advanced__label--when-open {
  display: inline;
}

.gb-onboard-power-advanced__body {
  max-width: min(100%, 28rem);
}

.gb-field--speed-kn .gb-engine-power-controls {
  margin-top: 0.5rem;
}

/* Special features: merged display groups (Hull-style subgroups) */
.gb-card--features .gb-feature-regroup-primary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gb-card--features .gb-feature-display-group {
  margin-bottom: 0;
}

.gb-card--features .gb-feature-display-group .form-subgroup-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Fishing capable: Hull-style nested subgroups inside Special Features card */
.gb-card--features .gb-fishing-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.gb-card--features .gb-fishing-subgroup {
  margin-bottom: 0;
}

.gb-card--features .gb-fishing-subgroup .form-subgroup-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gb-fishing-subgroup__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.gb-fishing-subgroup__numbers {
  margin: 0;
}

.gb-fishing-subgroup__numbers .gb-field,
.gb-fishing-subgroup__numbers label.gb-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  min-width: 0;
}

.gb-fishing-subgroup__numbers .gb-input {
  width: 100%;
}

.gb-fishing-subgroup__hint {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.gb-davits-load-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.gb-davits-load-wrap .gb-davits-load-custom {
  margin-top: 0;
}

.gb-card--features .gb-fishing-subgroup--electronics .gb-fishing-electronics__row-fields .gb-field {
  min-width: 0;
}

.gb-fishing-electronics__bools {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem 1rem;
  margin-top: 0.15rem;
}

/* Compact tiles reuse .feature-tile--compact; layout lives in .feature-tile rules below */
.gb-fishing-electronics__bools .feature-tile--compact {
  flex: 0 1 auto;
  min-width: min(100%, 200px);
}

/* Fishing setup / towers: bool tiles same width as Tower (~⅓ row) and uniform height */
.gb-fishing-subgroup[data-fishing-subgroup='setup'] .gb-feature-grid--fishing,
.gb-fishing-subgroup[data-fishing-subgroup='towers'] .gb-feature-grid--fishing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.gb-fishing-subgroup[data-fishing-subgroup='setup'] .gb-feature-grid--fishing > .gb-feature-tile,
.gb-fishing-subgroup[data-fishing-subgroup='towers'] .gb-feature-grid--fishing > .gb-feature-tile {
  align-self: stretch;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .gb-fishing-subgroup[data-fishing-subgroup='setup'] .gb-feature-grid--fishing,
  .gb-fishing-subgroup[data-fishing-subgroup='towers'] .gb-feature-grid--fishing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gb-fishing-subgroup[data-fishing-subgroup='setup'] .gb-feature-grid--fishing,
  .gb-fishing-subgroup[data-fishing-subgroup='towers'] .gb-feature-grid--fishing {
    grid-template-columns: 1fr;
  }
}

.gb-feature-category-count {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.gb-card--yacht .gb-feature-regroup-primary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gb-card--yacht .gb-feature-display-group .form-subgroup-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gb-feature-category {
  margin-top: 1.25rem;
}

.gb-feature-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #101828;
}

.gb-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

/* Nav & electronics: 3 fixed columns so a last row with only VHF + WiFi keeps ~⅓ width like rows above */
.gb-feature-grid.gb-feature-grid--nav-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .gb-feature-grid.gb-feature-grid--nav-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gb-feature-grid.gb-feature-grid--nav-main {
    grid-template-columns: 1fr;
  }
}

/* Safety: same 3-column tracks as nav — bilge/liferaft tiles align with flares / life jackets row */
.gb-feature-grid.gb-feature-grid--safety-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .gb-feature-grid.gb-feature-grid--safety-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gb-feature-grid.gb-feature-grid--safety-main {
    grid-template-columns: 1fr;
  }
}

/* Flares + life jackets: third column empty so each cell matches ~⅓ width (like Bilge / Liferaft tiles) */
.gb-safety-flares-lj-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  margin-top: 0.35rem;
}

.gb-safety-flares-lj-row > .gb-feature-tile,
.gb-safety-flares-lj-row > .gb-life-jackets-wrap {
  min-width: 0;
}

.gb-safety-flares-lj-row > .gb-life-jackets-wrap {
  margin-top: 0;
  display: flex;
  align-self: start;
}

/* Life jackets: column width from grid; height intrinsic like Liferaft (do not stretch to row) */
.gb-safety-flares-lj-row > .gb-life-jackets-wrap .gb-life-jackets-control {
  flex: 0 1 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: none;
  font-size: 0.92rem;
}

.gb-safety-flares-lj-row > .gb-life-jackets-wrap .gb-life-jackets-control:hover {
  border-color: rgba(14, 165, 233, 0.4);
  background: #f8fbff;
  box-shadow: none;
}

.gb-safety-flares-lj-row .gb-life-jackets-value {
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .gb-safety-flares-lj-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gb-safety-flares-lj-row {
    grid-template-columns: 1fr;
  }
}

/* Brand + Model selects in one row (stack on narrow viewports) */
.gb-nav-brand-model-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 0.35rem 1rem;
  align-items: stretch;
  margin-top: 0.35rem;
}

.gb-nav-brand-model-row.gb-nav-brand-model-row--single {
  grid-template-columns: minmax(220px, 1fr);
}

.gb-nav-brand-model-row > .gb-field.gb-field--stacked,
.gb-nav-brand-model-row > label.gb-field {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.gb-nav-brand-model-row .gb-input {
  width: 100%;
  max-width: none;
}

@media (max-width: 520px) {
  .gb-nav-brand-model-row {
    grid-template-columns: 1fr;
  }
}

/* Safety: bool tiles flow in rows; life jackets full-width below (left-aligned). */
.gb-feature-grid.gb-feature-grid--with-life-jackets {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.gb-feature-grid.gb-feature-grid--with-life-jackets > .gb-feature-tile {
  flex: 1 1 200px;
  min-width: 0;
}

.gb-feature-grid.gb-feature-grid--with-life-jackets > .gb-life-jackets-wrap {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
}

.gb-life-jackets-wrap {
  margin-top: 0.15rem;
}

.gb-life-jackets-wrap .gb-life-jackets-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  font: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gb-life-jackets-wrap .gb-life-jackets-control:hover {
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.12);
}

.gb-life-jackets-wrap .gb-life-jackets-control:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
}

.gb-life-jackets-label {
  flex: 1;
  font-weight: 500;
}

.gb-life-jackets-value {
  flex-shrink: 0;
  min-width: 1.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0284c7;
}

/* --- Unified bool feature tiles (checkbox hidden; category tint only when selected) --- */
.feature-tile.gb-feature-tile {
  --ft-accent: #64748b;
  --ft-accent-mid: rgba(100, 116, 139, 0.4);
  --ft-accent-soft: rgba(100, 116, 139, 0.1);
  --ft-surface: #f6f7f9;
  --ft-border: #e3e6ea;
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--ft-border);
  background: var(--ft-surface);
  color: #0f172a;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  box-sizing: border-box;
  min-width: 0;
}

.feature-tile__surface {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  pointer-events: none;
}

.feature-tile__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  border: none;
  appearance: none;
}

.feature-tile__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: #64748b;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.feature-tile__icon--emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.feature-tile__emoji {
  display: block;
  line-height: 1;
}

.feature-tile__glyph {
  display: block;
}

.feature-tile__label.gb-feature-label {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.feature-tile__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  color: var(--ft-accent);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.feature-tile__check-icon {
  display: block;
}

.feature-tile.gb-feature-tile:hover {
  transform: translateY(-2px);
}

/* Neutral hover lift only when not selected (keeps category border/bg when selected) */
.feature-tile.gb-feature-tile:hover:not(.is-selected):not(:has(.feature-tile__input:checked)) {
  border-color: #cbd5e1;
  background: #fafbfc;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.feature-tile.gb-feature-tile.is-selected:hover,
.feature-tile.gb-feature-tile:has(.feature-tile__input:checked):hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.feature-tile.gb-feature-tile:focus-within {
  outline: 2px solid var(--gb-focus-ring, #0ea5e9);
  outline-offset: 2px;
}

/* Default selected (fallback) — slate */
.feature-tile.gb-feature-tile.is-selected,
.feature-tile.gb-feature-tile:has(.feature-tile__input:checked) {
  --ft-accent: #475569;
  --ft-accent-mid: rgba(71, 85, 105, 0.45);
  --ft-accent-soft: rgba(71, 85, 105, 0.12);
  border-color: rgba(71, 85, 105, 0.45);
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

/* Safety — subtle warm red / orange (selected only) */
.gb-feature-display-group[data-display-group='safety'] .feature-tile.gb-feature-tile.is-selected,
.gb-feature-display-group[data-display-group='safety'] .feature-tile.gb-feature-tile:has(.feature-tile__input:checked) {
  --ft-accent: #c2410c;
  --ft-accent-mid: rgba(194, 65, 12, 0.45);
  --ft-accent-soft: rgba(194, 65, 12, 0.12);
  border-color: rgba(194, 65, 12, 0.42);
  background: rgba(255, 247, 237, 0.95);
  box-shadow: 0 4px 16px rgba(194, 65, 12, 0.1);
}

/* Navigation & electronics — blue */
.gb-feature-display-group[data-display-group='nav_electronics'] .feature-tile.gb-feature-tile.is-selected,
.gb-feature-display-group[data-display-group='nav_electronics'] .feature-tile.gb-feature-tile:has(.feature-tile__input:checked) {
  --ft-accent: #2563eb;
  --ft-accent-mid: rgba(37, 99, 235, 0.45);
  --ft-accent-soft: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

/* Sonar / fishfinding-style nav items: turquoise selected tint (still Navigation group) */
.gb-feature-display-group[data-display-group='nav_electronics'] .feature-tile.gb-feature-tile[data-feature-key='fishfinder'].is-selected,
.gb-feature-display-group[data-display-group='nav_electronics']
  .feature-tile.gb-feature-tile[data-feature-key='fishfinder']:has(.feature-tile__input:checked),
.gb-feature-display-group[data-display-group='nav_electronics'] .feature-tile.gb-feature-tile[data-feature-key='depth_sounder'].is-selected,
.gb-feature-display-group[data-display-group='nav_electronics']
  .feature-tile.gb-feature-tile[data-feature-key='depth_sounder']:has(.feature-tile__input:checked) {
  --ft-accent: #0d9488;
  --ft-accent-mid: rgba(13, 148, 136, 0.45);
  --ft-accent-soft: rgba(13, 148, 136, 0.14);
  border-color: rgba(13, 148, 136, 0.42);
  background: rgba(204, 251, 241, 0.88);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
}

/* Power & electrical — green */
.gb-feature-display-group[data-display-group='power_electrical'] .feature-tile.gb-feature-tile.is-selected,
.gb-feature-display-group[data-display-group='power_electrical'] .feature-tile.gb-feature-tile:has(.feature-tile__input:checked) {
  --ft-accent: #15803d;
  --ft-accent-mid: rgba(21, 128, 61, 0.45);
  --ft-accent-soft: rgba(21, 128, 61, 0.12);
  border-color: rgba(21, 128, 61, 0.4);
  background: rgba(240, 253, 244, 0.95);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.09);
}

/* Comfort & interior — warm gray */
.gb-feature-display-group[data-display-group='comfort_interior'] .feature-tile.gb-feature-tile.is-selected,
.gb-feature-display-group[data-display-group='comfort_interior'] .feature-tile.gb-feature-tile:has(.feature-tile__input:checked) {
  --ft-accent: #57534e;
  --ft-accent-mid: rgba(87, 83, 78, 0.45);
  --ft-accent-soft: rgba(87, 83, 78, 0.12);
  border-color: rgba(87, 83, 78, 0.38);
  background: rgba(245, 245, 244, 0.98);
  box-shadow: 0 4px 16px rgba(87, 83, 78, 0.08);
}

/* Deck & exterior — cool slate */
.gb-feature-display-group[data-display-group='deck_exterior'] .feature-tile.gb-feature-tile.is-selected,
.gb-feature-display-group[data-display-group='deck_exterior'] .feature-tile.gb-feature-tile:has(.feature-tile__input:checked) {
  --ft-accent: #475569;
  --ft-accent-mid: rgba(71, 85, 105, 0.45);
  --ft-accent-soft: rgba(71, 85, 105, 0.1);
  border-color: rgba(71, 85, 105, 0.4);
  background: rgba(241, 245, 249, 0.95);
  box-shadow: 0 4px 16px rgba(71, 85, 105, 0.08);
}

/* Commercial & certification — amber */
.gb-feature-display-group[data-display-group='commercial_cert'] .feature-tile.gb-feature-tile.is-selected,
.gb-feature-display-group[data-display-group='commercial_cert'] .feature-tile.gb-feature-tile:has(.feature-tile__input:checked) {
  --ft-accent: #b45309;
  --ft-accent-mid: rgba(180, 83, 9, 0.45);
  --ft-accent-soft: rgba(180, 83, 9, 0.12);
  border-color: rgba(180, 83, 9, 0.4);
  background: rgba(255, 251, 235, 0.96);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.09);
}

/* Fishing capable panel — turquoise (selected) */
#fishing-capabilities .feature-tile.gb-feature-tile.is-selected,
#fishing-capabilities .feature-tile.gb-feature-tile:has(.feature-tile__input:checked) {
  --ft-accent: #0d9488;
  --ft-accent-mid: rgba(13, 148, 136, 0.45);
  --ft-accent-soft: rgba(13, 148, 136, 0.14);
  border-color: rgba(13, 148, 136, 0.42);
  background: rgba(204, 251, 241, 0.88);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
}

.feature-tile.gb-feature-tile.is-selected .feature-tile__check,
.feature-tile.gb-feature-tile:has(.feature-tile__input:checked) .feature-tile__check {
  opacity: 1;
  transform: scale(1);
}

.feature-tile.gb-feature-tile.is-selected .feature-tile__icon,
.feature-tile.gb-feature-tile:has(.feature-tile__input:checked) .feature-tile__icon {
  color: var(--ft-accent);
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.feature-tile--compact.gb-feature-tile {
  padding: 10px 12px;
  border-radius: 10px;
}

.feature-tile--compact .feature-tile__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
}

.feature-tile--compact .feature-tile__glyph {
  width: 16px;
  height: 16px;
}

.feature-tile--compact .feature-tile__label.gb-feature-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.gb-feature-label {
  /* legacy: label text now inside .feature-tile__label */
  flex: 1;
  min-width: 0;
}

/* After spec cards (Special Features is last); form has no inter-child gap */
#motor-listing-form > .image-manager {
  margin-top: 1.25rem;
}

.image-manager {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.image-manager h2 .required-indicator {
  color: #dc2626;
  margin-left: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  vertical-align: 0.05em;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 1rem;
  align-items: stretch;
}

.upload-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.upload-controls input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.file-upload-button:hover {
  background: #0b78c6;
  transform: translateY(-1px);
}

.file-upload-button:focus-visible {
  background: #0b78c6;
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
}

.image-preview,
.image-preview-slot {
  border: 1px dashed rgba(15, 23, 42, 0.3);
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  min-width: 0;
  position: relative;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
}

.image-preview {
  align-items: stretch;
  justify-content: center;
}

.image-preview-slot {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.image-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  pointer-events: none;
  display: block;
}

/* Hero badge must not participate in flex row (would squeeze img next to it). */
.hero-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #0ea5e9;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  line-height: 1.2;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.image-preview .image-preview-actions .danger-btn {
  border: none;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: #f87171;
  color: #fff;
}

.image-preview .image-preview-actions .danger-btn:hover {
  background: #ef4444;
}

.image-preview-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
  max-height: none;
  border-radius: 0;
  display: block;
}

@media (max-width: 640px) {
  .image-preview,
  .image-preview-slot {
    aspect-ratio: 4 / 3;
  }
}

.delete-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(15, 23, 42, 0.2);
  border: none;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: #fff;
}

.image-preview--hero {
  border-color: #0ea5e9;
}

.image-preview-actions {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  gap: 0.35rem;
}

.image-preview--preview {
  cursor: not-allowed;
}

.upload-progress {
  margin-top: 1rem;
}

.upload-progress-bar {
  width: 0;
  height: 6px;
  border-radius: 999px;
  background: #0ea5e9;
  transition: width 0.2s ease;
}

.status-info {
  font-size: 0.85rem;
  color: #475569;
}

.manifest-hidden {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-actions--with-status {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.form-actions__end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.form-my-listings-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0ea5e9;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.form-my-listings-link:hover {
  color: #0284c7;
}

.form-my-listings-link:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
}

.form-my-listings-link[hidden] {
  display: none !important;
}

.form-actions--with-status .motor-form-status--primary {
  flex: 1 1 10rem;
  min-width: min(100%, 11rem);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  align-self: center;
}

.draft-submit {
  border: none;
  background: #0ea5e9;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(14, 165, 233, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.draft-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.45);
}

.draft-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(14, 165, 233, 0.45);
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
}

.draft-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.save-confirmation {
  font-weight: 600;
  color: #0ea5e9;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.save-confirmation.is-visible {
  opacity: 1;
  transform: translateY(0);
}

details.gb-card.gb-card--collapsible summary {
  list-style: none;
}

details.gb-card.gb-card--collapsible summary::-webkit-details-marker {
  display: none;
}

details.gb-card.gb-card--collapsible summary::marker {
  content: '';
}

.gb-location-row {
  align-items: start;
  width: 100%;
}

.gb-field.gb-field--location {
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.gb-field.gb-field--location > label.gb-field {
  width: 100%;
}

.gb-field.gb-field--location #city_input {
  width: 100%;
}

.gb-location-enter-manual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.4rem 1.05rem 0.4rem 0.9rem;
  border: 1px solid rgba(14, 165, 233, 0.38);
  border-radius: 999px;
  background: linear-gradient(180deg, #e0f2fe 0%, #dbeafe 55%, #cffafe 100%);
  color: #0369a1;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.gb-location-enter-manual:hover {
  background: linear-gradient(180deg, #bae6fd 0%, #bfdbfe 100%);
  border-color: rgba(14, 165, 233, 0.55);
  color: #0c4a6e;
}

.gb-location-enter-manual:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
}

.gb-location-enter-manual[aria-expanded='true'] {
  background: linear-gradient(180deg, #bae6fd 0%, #93c5fd 58%, #bfdbfe 100%);
  border-color: #38bdf8;
  color: #0c4a6e;
}

.gb-location-enter-manual__label {
  white-space: nowrap;
}

.gb-location-enter-manual__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.gb-location-intro {
  display: block;
  margin: 0.25rem 0 0.35rem;
  line-height: 1.35;
  color: #64748b;
  font-size: 0.88rem;
}

#location-status:empty {
  display: none;
  margin: 0;
}

#location-status:not(:empty) {
  margin-top: 0.35rem;
}

.gb-location-manual {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

.gb-location-manual__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 720px) {
  .gb-location-manual__layout {
    grid-template-columns: 1fr;
  }
}

.gb-location-manual__fields {
  min-width: 0;
  width: 100%;
}

.gb-location-manual__reference {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.08), rgba(15, 23, 42, 0.04));
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.gb-location-manual__reference-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.gb-location-manual__reference-icon {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.12));
}

.gb-location-manual__reference-titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.gb-location-manual__reference-marina {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.gb-location-manual__reference-city {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.02em;
}

.gb-location-manual__reference-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0369a1;
}

.gb-location-manual__reference-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gb-location-manual__reference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}

.gb-location-manual__reference-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.gb-location-manual__reference-row dt {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
}

.gb-location-manual__reference-row dd {
  margin: 0;
}

.gb-location-manual__reference-row code {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0c4a6e;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.gb-location-manual__reference-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.gb-location-manual__coords {
  margin-top: 0;
}

.gb-location-manual__coords .gb-input {
  width: 100%;
}

.gb-location-manual__map-panel {
  position: relative;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #e8eef5;
  align-self: stretch;
}

.gb-location-manual__map {
  width: 100%;
  height: 100%;
  min-height: 260px;
}

@media (max-width: 1023px) {
  .gb-grid-2 {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared modal chrome (gb-year-built-dialog__* reused inside gb-length-m-dialog panels) */
.gb-year-built-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.gb-year-built-dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gb-year-built-dialog__close {
  border: none;
  background: #f1f5f9;
  color: #475569;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--dur-fast) var(--ease-premium),
    color var(--dur-fast) var(--ease-premium),
    transform 0.1s var(--ease-premium);
}

.gb-year-built-dialog__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.gb-year-built-dialog__close:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 2px;
}

.gb-year-built-dialog__close:active {
  transform: scale(0.94);
}

.gb-year-built-dialog__footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #f1f5f9;
}

.gb-year-built-dialog__done {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #0f172a;
  color: #fff;
  transition:
    background var(--dur-fast) var(--ease-premium),
    transform 0.12s var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.gb-year-built-dialog__done:hover {
  background: #1e293b;
}

.gb-year-built-dialog__done:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.gb-year-built-dialog__done:active {
  transform: scale(0.98);
}

/* --- Length (vessel_specs.length_m): dual wheel picker --- */
.gb-length-m-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid var(--gb-input-border);
  border-radius: 10px;
  padding: 0.625rem 0.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  box-shadow: var(--gb-input-depth);
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.gb-length-m-trigger:not(:has(.gb-length-m-trigger__hint)) {
  justify-content: flex-start;
}

.gb-length-m-trigger:hover:not(:focus):not(:focus-visible) {
  border-color: var(--gb-input-border-hover);
}

.gb-length-m-trigger:focus,
.gb-length-m-trigger:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.gb-length-m-trigger__value {
  flex: 1;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  text-align: left;
}

.gb-length-m-trigger__hint {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 0.5rem;
  flex-shrink: 0;
  min-width: 44px;
  width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.gb-length-m-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.gb-length-m-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: 1rem;
  padding: 0;
  width: min(28rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  height: fit-content;
  max-height: min(90dvh, 40rem);
  background: #fff;
  color: #0f172a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 25px 50px -12px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.gb-length-m-dialog__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#gb-length-m-dialog .gb-length-m-dialog__wheels,
#gb-beam-m-dialog .gb-length-m-dialog__wheels,
#gb-draft-m-dialog .gb-length-m-dialog__wheels {
  padding-bottom: 1rem;
}

/* Length picker: colored columns, selection band, Done footer */
#gb-length-m-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(14, 165, 233, 0.18);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.65) 0%, #fff 55%);
}

#gb-length-m-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 52%, #4f46e5 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-length-m-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 52%, #6366f1 100%);
}

#gb-length-m-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(14, 165, 233, 0.95);
}

#gb-length-m-dialog #gb-length-m-label-main {
  color: #0e7490;
}

#gb-length-m-dialog #gb-length-m-label-decimal {
  color: #4f46e5;
}

#gb-length-m-dialog #gb-length-m-viewport-meter {
  border-radius: 0.65rem;
  border: 1px solid rgba(6, 182, 212, 0.42);
  background: linear-gradient(180deg, #ecfeff 0%, #cffafe 42%, #a5f3fc 50%, #cffafe 58%, #ecfeff 100%);
  box-shadow: inset 0 1px 2px rgba(14, 116, 144, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-length-m-dialog #gb-length-m-viewport-meter::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22d3ee, #06b6d4);
  border-radius: 999px;
}

#gb-length-m-dialog #gb-length-m-viewport-meter .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 254, 255, 0.55) 0%,
    rgba(165, 243, 252, 0.82) 45%,
    rgba(165, 243, 252, 0.82) 55%,
    rgba(236, 254, 255, 0.55) 100%
  );
  border-top-color: rgba(8, 145, 178, 0.45);
  border-bottom-color: rgba(8, 145, 178, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(6, 182, 212, 0.28);
}

#gb-length-m-dialog #gb-length-m-viewport-meter .gb-length-m-wheel-item {
  color: rgba(14, 116, 144, 0.55);
}

#gb-length-m-dialog #gb-length-m-viewport-meter .gb-length-m-wheel-item.is-near {
  color: rgba(13, 148, 136, 0.72);
}

#gb-length-m-dialog #gb-length-m-viewport-meter .gb-length-m-wheel-item.is-selected {
  color: #0f766e;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

#gb-length-m-dialog #gb-length-m-viewport-decimal {
  border-radius: 0.65rem;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 42%, #c7d2fe 50%, #e0e7ff 58%, #eef2ff 100%);
  box-shadow: inset 0 1px 2px rgba(67, 56, 202, 0.07);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-length-m-dialog #gb-length-m-viewport-decimal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a5b4fc, #6366f1);
  border-radius: 999px;
}

#gb-length-m-dialog #gb-length-m-viewport-decimal .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(238, 242, 255, 0.65) 0%,
    rgba(199, 210, 254, 0.88) 45%,
    rgba(199, 210, 254, 0.88) 55%,
    rgba(238, 242, 255, 0.65) 100%
  );
  border-top-color: rgba(79, 70, 229, 0.42);
  border-bottom-color: rgba(79, 70, 229, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(99, 102, 241, 0.28);
}

#gb-length-m-dialog #gb-length-m-viewport-decimal .gb-length-m-wheel-item {
  color: rgba(67, 56, 202, 0.52);
}

#gb-length-m-dialog #gb-length-m-viewport-decimal .gb-length-m-wheel-item.is-near {
  color: rgba(79, 70, 229, 0.72);
}

#gb-length-m-dialog #gb-length-m-viewport-decimal .gb-length-m-wheel-item.is-selected {
  color: #4338ca;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Displacement (kg): multiplier × N + step — warm amber vs sea-teal columns */
#gb-displacement-kg-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-displacement-kg-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-displacement-kg-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-displacement-kg-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-displacement-kg-dialog #gb-displacement-kg-label-num {
  color: #c2410c;
}

#gb-displacement-kg-dialog #gb-displacement-kg-label-step {
  color: #0f766e;
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-num {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-num::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-num .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-num .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-num .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-num .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-step {
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-step::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-step .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-step .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-step .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-displacement-kg-dialog #gb-displacement-kg-viewport-step .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
/* Cruise speed (kn): whole knots + tenths — amber × teal (displacement palette) */
#gb-cruise-speed-kn-dialog .gb-engine-power-kw-dialog__hint {
  color: #475569;
  border-left: 3px solid rgba(251, 146, 60, 0.42);
  padding-left: 0.65rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

#gb-cruise-speed-kn-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-cruise-speed-kn-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-cruise-speed-kn-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-cruise-speed-kn-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-label-main {
  color: #c2410c;
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-label-dec {
  color: #0f766e;
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-main {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-main .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-main .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-main .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-main .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-dec {
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-dec::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-dec .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-dec .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-dec .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-cruise-speed-kn-dialog #gb-cruise-speed-kn-viewport-dec .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Beam & Draft (m): fishing-volume master — hint bar + total summary row */
#gb-beam-m-dialog .gb-engine-power-kw-dialog__hint,
#gb-draft-m-dialog .gb-engine-power-kw-dialog__hint {
  margin-bottom: 0.35rem;
}

#gb-beam-m-dialog .gb-engine-power-kw-dialog__hint.gb-beam-m-dialog__hint,
#gb-draft-m-dialog .gb-engine-power-kw-dialog__hint.gb-draft-m-dialog__hint {
  color: #475569;
  border-left: 3px solid rgba(251, 146, 60, 0.42);
  padding-left: 0.65rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

#gb-beam-m-dialog .gb-volume-l-dialog__wheels,
#gb-draft-m-dialog .gb-volume-l-dialog__wheels {
  padding-top: 0.25rem;
  padding-bottom: 0.35rem;
}

#gb-beam-m-dialog .gb-volume-l-dialog__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 1rem 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.92) 0%, rgba(236, 253, 245, 0.95) 55%, rgba(204, 251, 241, 0.65) 100%);
  border: 1px solid rgba(234, 88, 12, 0.18);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#gb-beam-m-dialog .gb-volume-l-dialog__summary-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2410c;
}

#gb-beam-m-dialog .gb-volume-l-dialog__summary-value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #115e59;
  line-height: 1.2;
}

#gb-draft-m-dialog .gb-volume-l-dialog__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 1rem 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.92) 0%, rgba(236, 253, 245, 0.95) 55%, rgba(204, 251, 241, 0.65) 100%);
  border: 1px solid rgba(234, 88, 12, 0.18);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#gb-draft-m-dialog .gb-volume-l-dialog__summary-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2410c;
}

#gb-draft-m-dialog .gb-volume-l-dialog__summary-value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #115e59;
  line-height: 1.2;
}

@media (max-width: 640px) {
  #gb-beam-m-dialog .gb-volume-l-dialog__summary,
  #gb-draft-m-dialog .gb-volume-l-dialog__summary {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
}

/* Beam (m): same dual-wheel palette + Done as displacement (amber Meter + teal Decimal) */
#gb-beam-m-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-beam-m-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-beam-m-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-beam-m-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-beam-m-dialog #gb-beam-m-label-main {
  color: #c2410c;
}

#gb-beam-m-dialog #gb-beam-m-label-decimal {
  color: #0f766e;
}

#gb-beam-m-dialog #gb-beam-m-viewport-main {
  height: 13rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-beam-m-dialog #gb-beam-m-viewport-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-beam-m-dialog #gb-beam-m-viewport-main .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-beam-m-dialog #gb-beam-m-viewport-main .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-beam-m-dialog #gb-beam-m-viewport-main .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-beam-m-dialog #gb-beam-m-viewport-main .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-beam-m-dialog #gb-beam-m-viewport-decimal {
  height: 13rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-beam-m-dialog #gb-beam-m-viewport-decimal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-beam-m-dialog #gb-beam-m-viewport-decimal .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-beam-m-dialog #gb-beam-m-viewport-decimal .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-beam-m-dialog #gb-beam-m-viewport-decimal .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-beam-m-dialog #gb-beam-m-viewport-decimal .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-draft-m-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-draft-m-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-draft-m-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-draft-m-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-draft-m-dialog #gb-draft-m-label-main {
  color: #c2410c;
}

#gb-draft-m-dialog #gb-draft-m-label-decimal {
  color: #0f766e;
}

#gb-draft-m-dialog #gb-draft-m-viewport-main {
  height: 13rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-draft-m-dialog #gb-draft-m-viewport-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-draft-m-dialog #gb-draft-m-viewport-main .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-draft-m-dialog #gb-draft-m-viewport-main .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-draft-m-dialog #gb-draft-m-viewport-main .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-draft-m-dialog #gb-draft-m-viewport-main .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-draft-m-dialog #gb-draft-m-viewport-decimal {
  height: 13rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-draft-m-dialog #gb-draft-m-viewport-decimal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-draft-m-dialog #gb-draft-m-viewport-decimal .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-draft-m-dialog #gb-draft-m-viewport-decimal .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-draft-m-dialog #gb-draft-m-viewport-decimal .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-draft-m-dialog #gb-draft-m-viewport-decimal .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (max-width: 640px) {
  #gb-beam-m-dialog #gb-beam-m-viewport-main,
  #gb-beam-m-dialog #gb-beam-m-viewport-decimal,
  #gb-draft-m-dialog #gb-draft-m-viewport-main,
  #gb-draft-m-dialog #gb-draft-m-viewport-decimal {
    height: 11.5rem;
  }
}

/* House battery (kWh): three wheels — displacement palette amber / teal / amber */
#gb-house-battery-kwh-dialog .gb-engine-power-kw-dialog__hint {
  color: #475569;
  border-left: 3px solid rgba(251, 146, 60, 0.42);
  padding-left: 0.65rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

#gb-house-battery-kwh-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-house-battery-kwh-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-house-battery-kwh-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-house-battery-kwh-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-label-d2 {
  color: #c2410c;
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d2 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d2::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d2 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d2 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d2 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d2 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-label-d1 {
  color: #0f766e;
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d1 {
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d1::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d1 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d1 .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d1 .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d1 .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-label-d0 {
  color: #c2410c;
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d0 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d0::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d0 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d0 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d0 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-house-battery-kwh-dialog #gb-house-battery-kwh-viewport-d0 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
/* House battery (kWh): three wheels — displacement palette amber / teal / amber */
#gb-solar-panel-w-dialog .gb-engine-power-kw-dialog__hint {
  color: #475569;
  border-left: 3px solid rgba(251, 146, 60, 0.42);
  padding-left: 0.65rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

#gb-solar-panel-w-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-solar-panel-w-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-solar-panel-w-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-solar-panel-w-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-label-d2 {
  color: #c2410c;
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d2 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d2::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d2 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d2 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d2 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d2 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-label-d1 {
  color: #0f766e;
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d1 {
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d1::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d1 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d1 .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d1 .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d1 .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-label-d0 {
  color: #c2410c;
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d0 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d0::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d0 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d0 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d0 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-solar-panel-w-dialog #gb-solar-panel-w-viewport-d0 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* House battery (kWh): three wheels — displacement palette amber / teal / amber */
#gb-charging-power-kw-dialog .gb-engine-power-kw-dialog__hint {
  color: #475569;
  border-left: 3px solid rgba(251, 146, 60, 0.42);
  padding-left: 0.65rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

#gb-charging-power-kw-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-charging-power-kw-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-charging-power-kw-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-charging-power-kw-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-label-d2 {
  color: #c2410c;
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d2 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d2::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d2 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d2 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d2 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d2 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-label-d1 {
  color: #0f766e;
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d1 {
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d1::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d1 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d1 .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d1 .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d1 .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-label-d0 {
  color: #c2410c;
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d0 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d0::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d0 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d0 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d0 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-charging-power-kw-dialog #gb-charging-power-kw-viewport-d0 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
/* Max speed (kn): three wheels — same amber/teal palette as house battery / displacement */
#gb-max-speed-kn-dialog .gb-engine-power-kw-dialog__hint {
  color: #475569;
  border-left: 3px solid rgba(251, 146, 60, 0.42);
  padding-left: 0.65rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

#gb-max-speed-kn-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-max-speed-kn-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-max-speed-kn-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-max-speed-kn-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-label-d2 {
  color: #c2410c;
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d2 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d2::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d2 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d2 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d2 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d2 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-label-d1 {
  color: #0f766e;
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d1 {
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d1::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d1 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d1 .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d1 .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d1 .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-label-d0 {
  color: #c2410c;
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d0 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d0::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d0 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d0 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d0 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-max-speed-kn-dialog #gb-max-speed-kn-viewport-d0 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Total engine power: same dual-wheel palette as displacement (amber × N + teal step) */
#gb-engine-power-kw-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

#gb-engine-power-kw-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#gb-engine-power-kw-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

#gb-engine-power-kw-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

/* Four wheels: amber / teal / amber / teal (same vocabulary as displacement) */
#gb-engine-power-kw-dialog #gb-engine-power-kw-label-d3 {
  color: #c2410c;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d3 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d3::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d3 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d3 .gb-length-m-wheel-item[data-overflow='1'] {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d3 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d3 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d3 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d3 .gb-length-m-wheel-item.is-selected[data-overflow='1'] {
  font-size: 0.9375rem;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-label-d2 {
  color: #0f766e;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d2 {
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d2::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d2 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d2 .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d2 .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d2 .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-label-d1 {
  color: #c2410c;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d1 {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d1::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d1 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d1 .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d1 .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d1 .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-label-d0 {
  color: #0f766e;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d0 {
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d0::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d0 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d0 .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d0 .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-engine-power-kw-dialog #gb-engine-power-kw-viewport-d0 .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Engine hours: five digit wheels — cool (10k) → warm (1s), gauge-style */
#gb-engine-hours-dialog .gb-engine-power-kw-dialog__hint {
  color: #475569;
  border-left: 3px solid rgba(99, 102, 241, 0.45);
  padding-left: 0.65rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

#gb-engine-hours-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(99, 102, 241, 0.2);
  background: linear-gradient(180deg, rgba(238, 242, 255, 0.65) 0%, rgba(255, 251, 235, 0.35) 55%, #fff 100%);
}

#gb-engine-hours-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #6366f1 0%, #2563eb 22%, #0891b2 48%, #059669 74%, #d97706 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#gb-engine-hours-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #818cf8 0%, #3b82f6 22%, #22d3ee 48%, #10b981 74%, #fbbf24 100%);
}

#gb-engine-hours-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(99, 102, 241, 0.95);
}

#gb-engine-hours-dialog #gb-engine-hours-label-d4 {
  color: #6d28d9;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d4 {
  border-radius: 0.55rem;
  border: 1px solid rgba(139, 92, 246, 0.42);
  background: linear-gradient(180deg, #f5f3ff 0%, #ddd6fe 45%, #c4b5fd 50%, #ddd6fe 55%, #f5f3ff 100%);
  box-shadow: inset 0 1px 2px rgba(91, 33, 182, 0.07);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d4::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
  border-radius: 999px;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d4 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(245, 243, 255, 0.72) 0%,
    rgba(196, 181, 253, 0.88) 48%,
    rgba(196, 181, 253, 0.88) 52%,
    rgba(245, 243, 255, 0.72) 100%
  );
  border-top-color: rgba(109, 40, 217, 0.38);
  border-bottom-color: rgba(109, 40, 217, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(139, 92, 246, 0.28);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d4 .gb-length-m-wheel-item {
  color: rgba(91, 33, 182, 0.52);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d4 .gb-length-m-wheel-item.is-near {
  color: rgba(109, 40, 217, 0.72);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d4 .gb-length-m-wheel-item.is-selected {
  color: #5b21b6;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

#gb-engine-hours-dialog #gb-engine-hours-label-d3 {
  color: #1d4ed8;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d3 {
  border-radius: 0.55rem;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: linear-gradient(180deg, #eff6ff 0%, #bfdbfe 45%, #93c5fd 50%, #bfdbfe 55%, #eff6ff 100%);
  box-shadow: inset 0 1px 2px rgba(30, 64, 175, 0.07);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d3::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #93c5fd, #2563eb);
  border-radius: 999px;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d3 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(239, 246, 255, 0.75) 0%,
    rgba(147, 197, 253, 0.88) 48%,
    rgba(147, 197, 253, 0.88) 52%,
    rgba(239, 246, 255, 0.75) 100%
  );
  border-top-color: rgba(37, 99, 235, 0.38);
  border-bottom-color: rgba(37, 99, 235, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(59, 130, 246, 0.28);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d3 .gb-length-m-wheel-item {
  color: rgba(29, 78, 216, 0.52);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d3 .gb-length-m-wheel-item.is-near {
  color: rgba(37, 99, 235, 0.75);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d3 .gb-length-m-wheel-item.is-selected {
  color: #1e40af;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

#gb-engine-hours-dialog #gb-engine-hours-label-d2 {
  color: #0e7490;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d2 {
  border-radius: 0.55rem;
  border: 1px solid rgba(34, 211, 238, 0.42);
  background: linear-gradient(180deg, #ecfeff 0%, #a5f3fc 45%, #67e8f9 50%, #a5f3fc 55%, #ecfeff 100%);
  box-shadow: inset 0 1px 2px rgba(14, 116, 144, 0.07);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d2::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22d3ee, #0891b2);
  border-radius: 999px;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d2 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 254, 255, 0.72) 0%,
    rgba(103, 232, 249, 0.88) 48%,
    rgba(103, 232, 249, 0.88) 52%,
    rgba(236, 254, 255, 0.72) 100%
  );
  border-top-color: rgba(14, 116, 144, 0.38);
  border-bottom-color: rgba(14, 116, 144, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(34, 211, 238, 0.28);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d2 .gb-length-m-wheel-item {
  color: rgba(14, 116, 144, 0.52);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d2 .gb-length-m-wheel-item.is-near {
  color: rgba(8, 145, 178, 0.76);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d2 .gb-length-m-wheel-item.is-selected {
  color: #0e7490;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

#gb-engine-hours-dialog #gb-engine-hours-label-d1 {
  color: #047857;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d1 {
  border-radius: 0.55rem;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #a7f3d0 45%, #6ee7b7 50%, #a7f3d0 55%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(4, 120, 87, 0.07);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d1::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6ee7b7, #059669);
  border-radius: 999px;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d1 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(110, 231, 183, 0.88) 48%,
    rgba(110, 231, 183, 0.88) 52%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(5, 150, 105, 0.38);
  border-bottom-color: rgba(5, 150, 105, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(52, 211, 153, 0.28);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d1 .gb-length-m-wheel-item {
  color: rgba(4, 120, 87, 0.52);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d1 .gb-length-m-wheel-item.is-near {
  color: rgba(5, 150, 105, 0.76);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d1 .gb-length-m-wheel-item.is-selected {
  color: #047857;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

#gb-engine-hours-dialog #gb-engine-hours-label-d0 {
  color: #b45309;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d0 {
  border-radius: 0.55rem;
  border: 1px solid rgba(251, 191, 36, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 45%, #fcd34d 50%, #fde68a 55%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(180, 83, 9, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d0::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fcd34d, #d97706);
  border-radius: 999px;
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d0 .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 251, 235, 0.72) 0%,
    rgba(252, 211, 77, 0.9) 48%,
    rgba(252, 211, 77, 0.9) 52%,
    rgba(255, 251, 235, 0.72) 100%
  );
  border-top-color: rgba(180, 83, 9, 0.4);
  border-bottom-color: rgba(180, 83, 9, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 191, 36, 0.32);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d0 .gb-length-m-wheel-item {
  color: rgba(146, 64, 14, 0.52);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d0 .gb-length-m-wheel-item.is-near {
  color: rgba(180, 83, 9, 0.76);
}

#gb-engine-hours-dialog #gb-engine-hours-viewport-d0 .gb-length-m-wheel-item.is-selected {
  color: #b45309;
  font-size: 1.0625rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.gb-length-m-dialog[open] .gb-length-m-dialog__panel {
  animation: gb-premium-modal-panel-in var(--dur-mid) var(--ease-premium) both;
}

/* Fishing / livewell volume (L): amber × teal wheels + live total (displacement / cruise palette) */
.gb-volume-l-dialog .gb-volume-l-dialog__hint {
  margin-bottom: 0.35rem;
}

.gb-volume-l-dialog .gb-engine-power-kw-dialog__hint.gb-volume-l-dialog__hint {
  color: #475569;
  border-left: 3px solid rgba(251, 146, 60, 0.42);
  padding-left: 0.65rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.gb-volume-l-dialog .gb-volume-l-dialog__wheels {
  padding-top: 0.25rem;
  padding-bottom: 0.35rem;
}

.gb-volume-l-dialog .gb-year-built-dialog__footer {
  border-top-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.75) 0%, #fff 52%);
}

.gb-volume-l-dialog .gb-year-built-dialog__done {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 42%, #0d9488 100%);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.gb-volume-l-dialog .gb-year-built-dialog__done:hover {
  background: linear-gradient(135deg, #fb923c 0%, #fbbf24 38%, #14b8a6 100%);
}

.gb-volume-l-dialog .gb-year-built-dialog__done:focus-visible {
  outline-color: rgba(245, 158, 11, 0.95);
}

#gb-volume-l-dialog #gb-volume-l-label-tens {
  color: #c2410c;
}

#gb-volume-l-dialog #gb-volume-l-label-ones {
  color: #0f766e;
}

#gb-volume-l-dialog #gb-volume-l-viewport-tens {
  height: 13rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 146, 60, 0.48);
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 44%, #fcd34d 50%, #fde68a 56%, #fffbeb 100%);
  box-shadow: inset 0 1px 2px rgba(154, 52, 18, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-volume-l-dialog #gb-volume-l-viewport-tens::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fdba74, #ea580c);
  border-radius: 999px;
}

#gb-volume-l-dialog #gb-volume-l-viewport-tens .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 237, 0.65) 0%,
    rgba(254, 215, 170, 0.88) 45%,
    rgba(254, 215, 170, 0.88) 55%,
    rgba(255, 247, 237, 0.65) 100%
  );
  border-top-color: rgba(234, 88, 12, 0.42);
  border-bottom-color: rgba(234, 88, 12, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(251, 146, 60, 0.32);
}

#gb-volume-l-dialog #gb-volume-l-viewport-tens .gb-length-m-wheel-item {
  color: rgba(154, 52, 18, 0.52);
}

#gb-volume-l-dialog #gb-volume-l-viewport-tens .gb-length-m-wheel-item.is-near {
  color: rgba(194, 65, 12, 0.72);
}

#gb-volume-l-dialog #gb-volume-l-viewport-tens .gb-length-m-wheel-item.is-selected {
  color: #9a3412;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

#gb-volume-l-dialog #gb-volume-l-viewport-ones {
  height: 13rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, #ecfdf5 0%, #ccfbf1 42%, #99f6e4 50%, #ccfbf1 58%, #ecfdf5 100%);
  box-shadow: inset 0 1px 2px rgba(15, 118, 110, 0.08);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

#gb-volume-l-dialog #gb-volume-l-viewport-ones::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5eead4, #0d9488);
  border-radius: 999px;
}

#gb-volume-l-dialog #gb-volume-l-viewport-ones .gb-length-m-wheel-highlight {
  background: linear-gradient(
    180deg,
    rgba(236, 253, 245, 0.72) 0%,
    rgba(153, 246, 228, 0.9) 45%,
    rgba(153, 246, 228, 0.9) 55%,
    rgba(236, 253, 245, 0.72) 100%
  );
  border-top-color: rgba(13, 148, 136, 0.42);
  border-bottom-color: rgba(13, 148, 136, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 1px rgba(45, 212, 191, 0.3);
}

#gb-volume-l-dialog #gb-volume-l-viewport-ones .gb-length-m-wheel-item {
  color: rgba(17, 94, 89, 0.52);
}

#gb-volume-l-dialog #gb-volume-l-viewport-ones .gb-length-m-wheel-item.is-near {
  color: rgba(15, 118, 110, 0.78);
}

#gb-volume-l-dialog #gb-volume-l-viewport-ones .gb-length-m-wheel-item.is-selected {
  color: #115e59;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.gb-volume-l-dialog__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 1rem 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.92) 0%, rgba(236, 253, 245, 0.95) 55%, rgba(204, 251, 241, 0.65) 100%);
  border: 1px solid rgba(234, 88, 12, 0.18);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.gb-volume-l-dialog__summary-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c2410c;
}

.gb-volume-l-dialog__summary-value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #115e59;
  line-height: 1.2;
}

@media (max-width: 640px) {
  #gb-volume-l-dialog #gb-volume-l-viewport-tens,
  #gb-volume-l-dialog #gb-volume-l-viewport-ones {
    height: 11.5rem;
  }

  .gb-volume-l-dialog__summary {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
}

.gb-length-m-dialog__wheels {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.75rem;
  align-items: stretch;
}

.gb-length-m-dialog__wheels--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.gb-length-m-dialog__wheels--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.gb-length-m-dialog__wheels--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.gb-length-m-wheel-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.gb-length-m-wheel-col__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.gb-length-m-wheel-viewport {
  position: relative;
  width: 100%;
  height: 14rem;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.gb-length-m-wheel-viewport::-webkit-scrollbar {
  width: 6px;
}

.gb-length-m-wheel-viewport::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.gb-length-m-wheel-highlight {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: var(--length-item-dim, 3rem);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.92);
  z-index: 0;
}

.gb-length-m-wheel {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

.gb-length-m-wheel-item {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--length-item-dim, 3rem);
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.12s ease, font-size 0.12s ease, font-weight 0.12s ease,
    transform 0.12s ease, opacity 0.12s ease;
  transform: scale(var(--length-item-scale, 0.92));
  opacity: 0.72;
}

.gb-length-m-wheel-item.is-near {
  opacity: 0.88;
}

.gb-length-m-wheel-item.is-selected {
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 600;
  transform: scale(1);
  opacity: 1;
}

@media (max-width: 640px) {
  .gb-length-m-dialog {
    width: min(28rem, calc(100vw - 1.25rem));
    max-width: calc(100vw - 1.25rem);
    max-height: min(85dvh, 32rem);
    border-radius: 1rem;
  }

  .gb-length-m-dialog__panel {
    max-height: min(85dvh, 32rem);
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gb-length-m-dialog__wheels {
    grid-template-columns: 1fr 1fr;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .gb-length-m-dialog__wheels--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .gb-length-m-dialog__wheels--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .gb-length-m-dialog__wheels--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .gb-length-m-dialog__wheels--5 .gb-length-m-wheel-col__label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }

  .gb-length-m-dialog__wheels--3 .gb-length-m-wheel-col__label {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .gb-length-m-dialog__wheels--4 .gb-length-m-wheel-col__label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }
}

/* Displacement (kg): inner layout; shell uses .form-input.gb-input with other fields */
.form-section-body .gb-displacement-input-wrap {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  cursor: text;
  padding: 0.65rem 0.85rem;
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.form-section-body .gb-displacement-input-wrap:hover {
  border-color: rgba(0, 0, 0, 0.14);
}

.gb-displacement-display {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  box-sizing: border-box;
}

.gb-displacement-suffix {
  flex-shrink: 0;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  user-select: none;
}

.gb-displacement-suffix.form-unit:not(.gb-engine-power-unit-chip) {
  cursor: pointer;
  pointer-events: auto;
  text-decoration: underline dotted rgba(100, 116, 139, 0.5);
  text-underline-offset: 3px;
}

.gb-displacement-suffix.form-unit:not(.gb-engine-power-unit-chip):hover {
  color: #0ea5e9;
}

/* House battery / solar W / charging kW: text + three-wheel picker — shell matches displacement row */
.form-section-body .gb-house-battery-kwh-input-wrap,
.form-section-body .gb-solar-panel-w-input-wrap,
.form-section-body .gb-charging-power-kw-input-wrap {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  cursor: text;
  padding: 0.65rem 0.85rem;
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.form-section-body .gb-house-battery-kwh-input-wrap:hover,
.form-section-body .gb-solar-panel-w-input-wrap:hover,
.form-section-body .gb-charging-power-kw-input-wrap:hover {
  border-color: rgba(0, 0, 0, 0.14);
}

.form-section-body .gb-house-battery-kwh-input-wrap:focus-within,
.form-section-body .gb-solar-panel-w-input-wrap:focus-within,
.form-section-body .gb-charging-power-kw-input-wrap:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
}

.gb-house-battery-kwh-display,
.gb-solar-panel-w-display,
.gb-charging-power-kw-display {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  box-sizing: border-box;
}

.gb-house-battery-kwh-suffix,
.gb-solar-panel-w-suffix,
.gb-charging-power-kw-suffix {
  flex-shrink: 0;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  user-select: none;
}

.gb-house-battery-kwh-suffix.form-unit:not(.gb-engine-power-unit-chip),
.gb-solar-panel-w-suffix.form-unit:not(.gb-engine-power-unit-chip),
.gb-charging-power-kw-suffix.form-unit:not(.gb-engine-power-unit-chip) {
  cursor: pointer;
  pointer-events: auto;
  text-decoration: underline dotted rgba(100, 116, 139, 0.5);
  text-underline-offset: 3px;
}

.gb-house-battery-kwh-suffix.form-unit:not(.gb-engine-power-unit-chip):hover,
.gb-solar-panel-w-suffix.form-unit:not(.gb-engine-power-unit-chip):hover,
.gb-charging-power-kw-suffix.form-unit:not(.gb-engine-power-unit-chip):hover {
  color: #0ea5e9;
}

/* Total engine power (kW): combined all engines; text + wheel (hp steps → kW) */
.gb-engine-power-kw-dialog__hint {
  margin: 0 1rem 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
}

.gb-engine-power-kw-dialog__hint--secondary {
  margin: 0 1rem 0.65rem;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
}

.gb-engine-power-unit-toggle {
  display: flex;
  gap: 0;
  margin: 0 1rem 0.5rem;
  padding: 3px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  align-self: stretch;
  max-width: 13rem;
}

.gb-engine-power-unit-toggle__btn {
  flex: 1;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.gb-engine-power-unit-toggle__btn:hover {
  color: #0f172a;
}

.gb-engine-power-unit-toggle__btn:focus-visible {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
}

.gb-engine-power-unit-toggle__btn.is-selected,
.gb-engine-power-unit-toggle__btn[aria-pressed='true'] {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.form-section-body .gb-field--engine-power-kw .gb-total-engine-power-multi-example:not([hidden]) {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.gb-field--engine-power-kw .gb-engine-power-controls {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.gb-engine-power-wheel-open {
  flex: 0 0 auto;
  align-self: stretch;
  width: auto;
  min-width: 4.25rem;
  min-height: 2.75rem;
  padding-block: 0;
  padding-inline: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

.gb-field--engine-power-kw .gb-engine-power-input-wrap,
.gb-field--speed-kn .gb-engine-power-input-wrap {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  cursor: text;
  padding: 0.625rem 0.75rem;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--gb-input-border);
  border-radius: 10px;
  box-shadow: var(--gb-input-depth);
  transition:
    border-color var(--dur-fast) var(--ease-premium),
    box-shadow var(--dur-fast) var(--ease-premium);
}

.gb-field--engine-power-kw .gb-engine-power-input-wrap:hover:not(:focus-within),
.gb-field--speed-kn .gb-engine-power-input-wrap:hover:not(:focus-within) {
  border-color: var(--gb-input-border-hover);
}

.gb-field--engine-power-kw .gb-engine-power-input-wrap:focus-within,
.gb-field--speed-kn .gb-engine-power-input-wrap:focus-within {
  outline: 2px solid var(--gb-focus-ring);
  outline-offset: 1px;
  border-color: var(--gb-focus-ring);
  box-shadow: var(--gb-input-depth);
}

.gb-engine-power-display {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  box-sizing: border-box;
}

.gb-engine-power-suffix {
  flex-shrink: 0;
  pointer-events: none;
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .gb-length-m-dialog[open] .gb-length-m-dialog__panel {
    animation: none !important;
  }
}

/* Form scope: antialiasing only (label weight/size global above) */
#motor-listing-form .form-section-body .form-label,
#motor-listing-form .form-section-body .form-field-label,
#motor-listing-form .form-subgroup-title,
#motor-listing-form .section-subblock__title {
  -webkit-font-smoothing: antialiased;
}

/*
 * Visual-only section grouping on create listing (Price & Deal, vessel specs tile, Location, Specs column).
 * Same field names/IDs — presentation only.
 */
.gb-listing-visual-section {
  margin: 0;
}

.gb-card.gb-card--required .gb-listing-visual-section + .gb-listing-visual-section {
  margin-top: 1.35rem;
}

.gb-listing-visual-section__title {
  margin: 0 0 0.65rem;
  padding: 0 0.05rem;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.gb-listing-visual-section__title::before {
  content: '';
  width: 4px;
  height: 1.05em;
  border-radius: 3px;
  background: linear-gradient(180deg, #0ea5e9, #2563eb);
  flex-shrink: 0;
}

.gb-listing-visual-section__body {
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.gb-card.gb-card--required .gb-listing-visual-section__body {
  background: linear-gradient(180deg, #eef8fd 0%, #e4f2fb 100%);
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Calm tile (same weight as Price & Deal): vessel identity + price blocks + location */
.gb-card.gb-card--required .gb-listing-visual-section--price-deal .gb-listing-visual-section__body,
.gb-card.gb-card--required .gb-listing-visual-section--vessel-specs .gb-listing-visual-section__body,
.gb-card.gb-card--required .gb-listing-visual-section--location .gb-listing-visual-section__body {
  background: #f7f9fc;
  border-color: #e3e8ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.gb-listing-visual-section--specs .gb-listing-visual-section__body {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.gb-listing-visual-section--specs {
  margin-top: 1.25rem;
  width: 100%;
}

/* VAT: inline group under Price — no card frame (subordinate to Price) */
.gb-listing-vat-under-price {
  width: 100%;
  align-self: stretch;
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

/* VAT mode + rate: one row; stretched columns so both selects share one baseline */
.gb-listing-vat-under-price > .gb-listing-vat-fields-row.gb-grid-2 {
  width: 100%;
  gap: 0.5rem;
  align-items: stretch;
}

.gb-listing-vat-under-price > .gb-listing-vat-fields-row > .gb-field {
  margin-bottom: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gb-listing-vat-under-price .gb-listing-vat-fields-row > .gb-field > span:first-of-type {
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Push selects to bottom of the row so both align when labels differ in height */
.gb-listing-vat-under-price .gb-listing-vat-fields-row .gb-field .gb-select {
  margin-top: auto;
}

#motor-listing-form .gb-listing-vat-under-price .gb-listing-vat-fields-row .gb-field .gb-select select {
  padding: 0.48rem 2rem 0.48rem 0.6rem;
  font-size: 0.8125rem;
  border-radius: 8px;
  min-height: 2.375rem;
  box-sizing: border-box;
  line-height: 1.2;
}
