/* Shared skin: black / charcoal / white, Montserrat, orange only on primary actions.
   Preview on sandbox first. Do not invent track-map art. */

html {
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
}

html,
html body {
  max-width: 100%;
  overflow-x: hidden;
}

html body {
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0;
  /* Viewport gutters stay black; the 1280px letterbox paints charcoal. */
  background: #000 !important;
  background-image: none !important;
  color: var(--ink, #f4f5f7);
}
html .sg-letterbox {
  background: #0b0d10;
  padding-top: var(--chrome-h, 112px);
}
@media (max-width: 900px) {
  html .sg-letterbox {
    padding-top: var(--chrome-h, 84px);
  }
}

html .sg-sticky-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: #fff;
}
html header {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html header .sg-header-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 8px 28px;
}
@media (max-width: 900px) {
  html header .sg-header-inner {
    padding: 8px 16px;
  }
}
html header .brand,
html header .brand b,
html header .nav-links a,
html header .guest-auth a.ghost,
html header #headerSignIn {
  color: #111 !important;
}
html header #headerSignIn .login-ico {
  color: var(--orange, #ff5a1f) !important;
}
html header .cart-btn {
  color: #111 !important;
}
html header .brand img {
  height: 56px !important;
  width: auto !important;
  max-height: 56px !important;
  object-fit: contain !important;
}
@media (max-width: 900px) {
  html header .brand img {
    height: 40px !important;
    max-height: 40px !important;
  }
}
html header .brand-txt small {
  color: #666 !important;
}
html header .nav-links a:hover,
html header .nav-links a.on {
  color: #111 !important;
}
html header .chip,
html header .chip .v {
  color: #555 !important;
}
html header .account-btn {
  color: #111 !important;
  border-color: #ddd !important;
}
html header .account-btn .caret {
  color: #555 !important;
}
/* display:block on .account-item must not override .hidden on Admin view */
html .account-drop .account-item.hidden {
  display: none !important;
}

html .guest-auth a {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  width: auto !important;
}

html .guest-auth a.join {
  padding: 0 16px !important;
}

html h1, html h2, html h3,
html .sel-title, html .hero-copy h1, html .packs-card h1 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
}

html .cta,
html .cta.go,
html .btn-primary,
html #login button,
html #signin,
html .guest-auth a.cta,
html .guest-auth a.join,
html .modal .actions .primary,
html .packs-actions .btn-primary,
html .btn-dl {
  background: var(--orange, #ff5a1f) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
}

html .levels-cta,
html .exp-card .cta,
html .sheet-cta,
html .pack-actions .cta,
html .buy-row .cta,
html .renew-strip .bbtn,
html .track-card .btn-dl {
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}
/* Pack actions share one row and are uppercased. nowrap on .cta lets
   "Download all cars in this pack" paint past the button border. */
html .pack-actions .cta {
  white-space: normal !important;
  text-align: center;
  line-height: 1.25;
  font-size: 12px;
  letter-spacing: .02em !important;
  overflow-wrap: break-word;
}
html .track-card .btn-dl {
  background: #16181d !important;
  color: #fff !important;
  border: 1px solid #2a313c !important;
  box-shadow: none !important;
}
html .track-card .tm .track-when {
  color: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
html .track-card .tm .track-when.is-new {
  color: #fff;
  background: var(--orange, #ff5a1f);
  border-radius: 4px;
  padding: 1px 6px;
}
html .track-card .btn-dl[disabled] {
  opacity: .4;
}
html .tracks-head .all-link {
  color: var(--orange, #ff5a1f) !important;
}
html .cta.ghost-cta,
html .exp-card .cta {
  background: #16181d !important;
  color: #fff !important;
  border: 1px solid #2a313c !important;
  box-shadow: none !important;
}

html label,
html .sel-kicker,
html .colhead span,
html .card h2,
html .extra-card .k,
html .incl h4,
html .how h4,
html .field-label {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600 !important;
}

/* "Having trouble with a setup?" — text link above Reviews on owned setup car pages. */
html .troubleshoot-row {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 14px;
}
html .troubleshoot-link {
  background: none !important;
  background-image: none !important;
  color: var(--orange, #ff5a1f) !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  padding: 4px 6px !important;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  position: relative;
}
html .troubleshoot-link:hover { text-decoration: underline !important; }
html .troubleshoot-link.replied {
  color: #3db4ff !important;
  font-weight: 700 !important;
}
/* CSS tooltip (title= is not enough per spec). */
html .trb-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 220px;
  max-width: 320px;
  background: #16181d;
  color: #f4f5f7;
  border: 1px solid #2a313c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
html .trb-tooltip.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Troubleshoot SPA view (in-app page opened from the link). */
html .trb-sheet { max-width: 760px; margin: 0 auto; padding: 24px 20px 60px; }
html .trb-back {
  background: none !important; color: var(--orange, #ff5a1f) !important;
  border: none !important; box-shadow: none !important; cursor: pointer;
  font-weight: 600 !important; padding: 0 !important; font-size: inherit;
  font-family: inherit; margin-bottom: 16px; display: inline-block;
}
html .trb-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
html .trb-sub { color: #9aa1ab; font-size: 14px; margin: 0 0 20px; }
html .trb-field { margin-bottom: 16px; }
html .trb-field > .k { display: block; margin-bottom: 6px; }
html .trb-readonly {
  background: #12141a; color: #c9ced6; border: 1px solid #2a313c;
  border-radius: 8px; padding: 10px 12px; font-weight: 600;
}
html .trb-field input, html .trb-field select, html .trb-field textarea {
  width: 100%; background: #12141a; color: #f4f5f7; border: 1px solid #2a313c;
  border-radius: 8px; padding: 10px 12px; font-size: 15px; font-family: inherit;
  box-sizing: border-box;
}
html .trb-field textarea { min-height: 110px; resize: vertical; }
html .trb-row2 { display: flex; gap: 14px; flex-wrap: wrap; }
html .trb-row2 > div { flex: 1 1 200px; }
html .trb-disclaimer { color: #9aa1ab; font-size: 13px; margin: 4px 0 20px; }
html .trb-submit {
  background: var(--orange, #ff5a1f) !important; background-image: none !important;
  color: #fff !important; border: none !important; box-shadow: none !important;
  font-weight: 600 !important; border-radius: 8px; padding: 12px 22px;
  cursor: pointer; font-size: 15px; font-family: inherit;
}
html .trb-submit[disabled] { opacity: .5; cursor: default; }
html .trb-error { color: #ff8a5c; font-size: 14px; margin: 8px 0; min-height: 0; }
/* Thread (existing report) styling. */
html .trb-thread { border-top: 1px solid #2a313c; padding-top: 18px; }
html .trb-msg { margin-bottom: 14px; max-width: 82%; }
html .trb-msg.customer { margin-left: 0; }
html .trb-msg.admin { margin-left: auto; text-align: right; }
html .trb-bubble {
  border-radius: 10px; padding: 10px 12px; font-size: 15px; line-height: 1.4;
  display: inline-block; text-align: left; white-space: pre-wrap; word-break: break-word;
}
html .trb-msg.customer .trb-bubble { background: #16181d; border: 1px solid #2a313c; color: #f4f5f7; }
html .trb-msg.admin .trb-bubble { background: var(--orange, #ff5a1f); color: #fff; }
html .trb-meta { font-size: 12px; color: #8a909c; margin-bottom: 3px; }
html .trb-reply { margin-top: 18px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
html .trb-reply textarea { flex: 1 1 240px; min-height: 60px; background: #12141a; color: #f4f5f7; border: 1px solid #2a313c; border-radius: 8px; padding: 10px 12px; font-family: inherit; resize: vertical; }
html .trb-reply button { background: var(--orange, #ff5a1f) !important; background-image: none !important; color: #fff !important; border: none !important; box-shadow: none !important; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; font-family: inherit; }

.sg-analytics-banner{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:4000;
  display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap;
  max-width:880px; margin:0 auto; padding:14px 16px;
  background:#12161e; color:#eef1f6; border:1px solid #2b3648; border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.sg-analytics-banner p{ margin:0; font-size:14px; line-height:1.4; }
.sg-analytics-actions{ display:flex; gap:8px; }
.sg-analytics-banner button{
  border:0; border-radius:8px; padding:8px 14px; font-weight:700; cursor:pointer; background:#3db4ff; color:#041018;
}
.sg-analytics-banner button.ghost{ background:transparent; color:#eef1f6; border:1px solid #2b3648; }

/* Customer pages other than the shop. Index keeps .sg-letterbox padding and its own bar. */
html body.sg-page {
  padding-top: var(--chrome-h, 112px);
}
html body.sg-page .sg-sticky-chrome header {
  display: block;
  width: 100%;
  border-bottom: 1px solid #ececec;
}
html body.sg-page header .sg-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
html body.sg-page header .spacer {
  flex: 1;
  min-width: 8px;
}
html body.sg-page header .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: #111;
}
html body.sg-page .sg-sticky-chrome .nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 20px;
  margin-right: 8px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
html body.sg-page .sg-sticky-chrome .nav-links a {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 32px;
  line-height: 1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
html body.sg-page .sg-sticky-chrome .nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
html body.sg-page .nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}
html body.sg-page .nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: #111;
  border-radius: 1px;
}
html body.sg-page header #headerSignIn {
  width: auto;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
html body.sg-page .account-wrap {
  position: relative;
  flex-shrink: 0;
}
html body.sg-page .account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 12px 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  font-family: inherit;
}
html body.sg-page .account-btn .av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1d24;
  flex: none;
}
html body.sg-page .account-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #12161e;
  border: 1px solid #2a313c;
  border-radius: 12px;
  padding: 8px;
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
html body.sg-page .account-drop .account-email {
  font-size: 11px;
  color: #8b93a2;
  padding: 6px 10px 8px;
  border-bottom: 1px solid #2a313c;
  margin-bottom: 6px;
  word-break: break-all;
}
html body.sg-page .account-drop .account-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #eef1f6;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
html body.sg-page .account-drop .account-item.mode { color: #ff5a1f; }
html body.sg-page .account-drop .account-item.danger { color: #ff6b6b; }
html body.sg-page .account-drop .account-item:hover { background: #1a2030; }
html body.sg-page #guestAuth.hidden,
html body.sg-page #accountWrap.hidden,
html body.sg-page .account-drop.hidden {
  display: none !important;
}
@media (max-width: 900px) {
  html .sg-sticky-chrome .nav-toggle,
  html body.sg-page .sg-sticky-chrome .nav-toggle {
    display: inline-flex;
  }
  html .sg-sticky-chrome .nav-links,
  html body.sg-page .sg-sticky-chrome .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex: none;
    gap: 0;
    margin: 0;
    padding: 8px 0 12px;
    background: #fff;
    border-bottom: 1px solid #ececec;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    z-index: 11;
  }
  html .sg-sticky-chrome header.nav-open .nav-links,
  html body.sg-page .sg-sticky-chrome header.nav-open .nav-links {
    display: flex;
  }
  html .sg-sticky-chrome .nav-links a {
    height: auto;
    padding: 12px 20px;
    font-size: 15px;
    justify-content: flex-start;
    color: #111 !important;
    white-space: normal !important;
  }
}
