/* cardope design tokens: static, build-free CSS is the production delivery path. */
@font-face {
  font-family: Inter;
  src: local("Inter");
  font-display: swap;
}
:root {
  --bg: #0b0f17;
  --panel: #121720;
  --elevated: #1a202a;
  --line: #282e37;
  --muted: #969ea9;
  --text: #f1f3f5;
  --lime: #ccff00;
  --amber: #ffaa00;
  --radius: 16px;
  --font: Inter, Arial, Helvetica, sans-serif;
  color-scheme: dark;
  font-family: var(--font);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
button,
input,
select {
  touch-action: manipulation;
}
button {
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 12px;
  background: var(--lime);
  color: #000;
}
.skip-link:focus {
  top: 10px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  line-height: 1.6;
  color: var(--muted);
}
.fine-print {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}
.app-header {
  height: 78px;
  padding: 0 3.1%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 50px;
}
.wordmark {
  font-size: 2rem;
  letter-spacing: -1.9px;
  font-weight: 800;
  white-space: nowrap;
}
.wordmark span {
  color: var(--lime);
}
.wordmark b {
  display: inline-block;
  font-size: 0.75rem;
  vertical-align: top;
  letter-spacing: 0;
  margin: 7px 0 0 4px;
}
.top-nav {
  display: flex;
  gap: 34px;
  height: 100%;
  align-items: center;
}
.top-nav button {
  height: 100%;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}
.top-nav button.active {
  color: var(--text);
}
.top-nav button.active:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--lime);
  bottom: 0;
  left: 0;
  right: 0;
}
.nav-count {
  font-size: 0.75rem;
  background: #242c28;
  color: var(--lime);
  padding: 3px 5px;
  margin-left: 6px;
  border-radius: 4px;
}
.header-right {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.prototype-badge {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #a5abb5;
  padding: 6px 8px;
  border: 1px solid #303742;
  border-radius: 4px;
}
.profile-mark {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #232a23;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
}
#garage-app {
  padding: 28px 3.1% 0;
  max-width: 1920px;
  margin: auto;
}
.garage-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.garage-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tiny-line {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--lime);
}
h1 {
  font-size: clamp(1.65rem, 2.7vw, 2.75rem);
  margin: 4px 0 0;
  letter-spacing: -0.05em;
  font-weight: 650;
  line-height: 1.1;
}
h1 em {
  color: var(--lime);
  font-style: normal;
}
h2 {
  margin: 4px 0 12px;
  letter-spacing: -0.04em;
  font-weight: 600;
}
h3 {
  font-weight: 550;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.save-status {
  font-size: 0.75rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 17px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.8rem;
}
.button-outline {
  border: 1px solid #38404b;
  background: #121821;
}
.button-outline:hover {
  background: #222b34;
  border-color: #566171;
}
.button-lime {
  background: var(--lime);
  color: #111700;
}
.button-lime:hover:not(:disabled) {
  background: #deff60;
  box-shadow: 0 0 24px #ccff0014;
}
.button svg {
  width: 18px;
  height: 18px;
}
.icon-button {
  width: 35px;
  height: 35px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  color: #abb2bd;
}
.icon-button:hover,
.icon-button[aria-pressed="true"] {
  color: var(--lime);
  background: #ccff0010;
}
.workbench {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 295px;
  gap: 16px;
  align-items: stretch;
}
.category-rail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 17px 7px;
  background: #10151d;
}
.rail-heading {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #7a8490;
  margin-bottom: 16px;
}
.category {
  width: 69px;
  min-height: 83px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #a5adb8;
  margin-bottom: 7px;
  border: 1px solid transparent;
}
.category svg {
  width: 23px;
  height: 23px;
}
.category span {
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 550;
}
.category:hover {
  background: #1b222b;
}
.category.active {
  color: var(--lime);
  background: #ccff000d;
  border-color: #ccff0029;
}
.rail-divider {
  width: 38px;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.rail-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #7e8996;
}
.rail-tool span {
  font-size: 0.75rem;
}
.rail-end {
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #5a626f;
  margin-top: auto;
  padding-top: 34px;
}
.studio-column {
  min-width: 0;
}
.studio {
  height: clamp(360px, 34vw, 540px);
  min-height: 360px;
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid #2a3039;
  background: radial-gradient(
    ellipse at 50% 68%,
    #222a31 0%,
    #151b23 47%,
    #10151d 85%
  );
  overflow: hidden;
}
.studio-top {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 19px;
  right: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.vehicle-picker {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  pointer-events: auto;
}
.vehicle-picker > svg {
  width: 15px;
  color: #88929f;
}
.vehicle-mark {
  font-size: 1.6rem;
  font-style: italic;
  letter-spacing: -0.1em;
  font-weight: 800;
  border: 1px solid #5b637040;
  padding: 5px 10px;
  border-radius: 7px;
  background: #13192070;
}
.vehicle-picker strong {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
}
.vehicle-picker small {
  font-size: 0.75rem;
  color: #8c97a3;
  display: block;
  margin-top: 5px;
}
.studio-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #7a8795;
  display: flex;
  align-items: center;
  gap: 7px;
}
.studio-label span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px #ccff0055;
}
.studio-type {
  position: absolute;
  left: 50%;
  top: 45px;
  transform: translateX(-50%);
  font-size: clamp(170px, 20vw, 310px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.1em;
  color: #71829410;
  z-index: -1;
  user-select: none;
}
.viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
  touch-action: none;
}
.viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #111721e6;
  transition: opacity 0.5s;
}
.viewer-loading strong {
  font-size: 0.95rem;
  font-weight: 500;
}
.viewer-loading span:last-child {
  font-size: 0.75rem;
  color: var(--muted);
}
.loader-ring {
  width: 32px;
  height: 32px;
  border: 2px solid #ccff0022;
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.studio-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 90px #070b1138;
}
.studio-bottom {
  position: absolute;
  bottom: 37px;
  left: 19px;
  right: 19px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.camera-controls {
  display: flex;
  background: #10161ccc;
  border: 1px solid #36404b80;
  padding: 4px;
  border-radius: 7px;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}
.camera-controls button {
  font-size: 0.75rem;
  padding: 7px 10px;
  border-radius: 4px;
  color: #909ba8;
}
.camera-controls button.active {
  background: #303a43;
  color: #f5f7f8;
}
.viewer-tools {
  pointer-events: auto;
  display: flex;
  gap: 5px;
}
.viewer-tools .icon-button {
  background: #131922c9;
  border: 1px solid #3d465b60;
  backdrop-filter: blur(12px);
}
.viewer-tools .icon-button[aria-pressed="true"] {
  border-color: #ccff0077;
  color: var(--lime);
}
.studio-hint {
  position: absolute;
  left: 20px;
  bottom: 13px;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  color: #687483;
  z-index: 3;
  pointer-events: none;
}
.studio-hint i {
  font-style: normal;
  padding: 0 7px;
}
.compare-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.compare-label {
  position: absolute;
  top: 80px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  background: #0b0f1788;
  padding: 5px 8px;
  border: 1px solid #ffffff22;
  border-radius: 4px;
}
.compare-label.left {
  left: 18px;
}
.compare-label.right {
  right: 18px;
  color: var(--lime);
}
.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #ccff0080;
  pointer-events: none;
}
.compare-line b {
  position: absolute;
  top: 50%;
  left: -17px;
  background: var(--lime);
  color: #121700;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.compare-overlay input {
  position: absolute;
  inset: 98px 5% 82px;
  width: 90%;
  height: calc(100% - 180px);
  opacity: 0;
  pointer-events: auto;
  cursor: ew-resize;
  margin: 0;
}
.vehicle-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 5px 15px;
  border-bottom: 1px solid var(--line);
}
.stat {
  padding-left: 18px;
  border-right: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 9px;
}
.stat:last-child {
  border: 0;
}
.stat label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  color: #8e97a3;
  margin-bottom: 5px;
}
.stat strong {
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.stat strong small {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 3px;
}
.stat button {
  font-size: 0.75rem;
  color: var(--lime);
  padding: 5px 0;
}
.parts-tray {
  padding: 18px 4px 0;
}
.tray-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.tray-heading h2 {
  font-size: 1.19rem;
  margin: 3px 0 0;
}
.tray-heading .eyebrow {
  font-size: 0.75rem;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
}
.segmented button {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 4px;
}
.segmented button.active {
  background: #323a42;
  color: var(--text);
}
.parts-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 1px 10px;
  scrollbar-width: thin;
  scrollbar-color: #4a5360 transparent;
}
.swatch-card {
  flex: 1;
  min-width: 64px;
  max-width: 114px;
  text-align: left;
  padding: 0;
  background: none;
  position: relative;
}
.swatch {
  display: block;
  height: 47px;
  border: 1px solid #ffffff20;
  border-radius: 7px;
  position: relative;
  background: var(--swatch);
  overflow: hidden;
}
.swatch:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, #ffffff50, transparent 45%, #00000055);
}
.swatch-card.active .swatch {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.swatch-card.active .swatch:after {
  content: "✓";
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--lime);
  border-radius: 50%;
  font-size: 10px;
  width: 15px;
  height: 15px;
  text-align: center;
  color: #111600;
}
.swatch-name {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
  white-space: nowrap;
}
.swatch-card.active .swatch-name {
  color: var(--text);
}
.swatch[data-finish="matte"]:before {
  background: linear-gradient(115deg, #ffffff12, #00000055);
}
.swatch[data-finish="satin"]:before {
  background: linear-gradient(130deg, #ffffff25, transparent, #0000003a);
}
.swatch.carbon {
  background: repeating-conic-gradient(#4d535b 0% 25%, #20252a 0% 50%) 0/8px 8px;
}
.selected-part {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0 10px;
  gap: 15px;
}
.selected-part strong {
  font-size: 0.81rem;
  font-weight: 550;
}
.selected-part p {
  margin: 4px 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.fitment-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #bbd481;
  background: #a9d0600b;
  border: 1px solid #a9d06025;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 0.75rem;
  white-space: nowrap;
}
.fitment-badge svg {
  width: 12px;
  height: 12px;
}
.glass-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  gap: 12px;
}
.glass-options label {
  font-size: 0.75rem;
}
.glass-options label span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}
.glass-options select {
  font-size: 0.75rem;
  padding: 7px 9px;
  background: #151c25;
  border: 1px solid #353e48;
  border-radius: 6px;
  min-width: 125px;
}
.part-card {
  min-width: 143px;
  max-width: 180px;
  flex: 1;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: left;
  background: #131922;
  position: relative;
}
.part-card.active {
  border-color: var(--lime);
  background: #ccff0008;
}
.part-card img {
  width: 100%;
  height: 76px;
  object-fit: contain;
}
.part-card .part-thumb {
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.part-card .part-thumb svg {
  width: 65px;
  height: 65px;
  stroke-width: 1;
}
.part-card strong {
  font-size: 0.75rem;
  display: block;
  white-space: nowrap;
}
.part-card .card-meta {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 5px 0;
}
.part-card .card-price {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}
.part-card .unavailable {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 0.75rem;
  background: #1b212c;
  padding: 3px 5px;
  color: #b6bfcc;
  border: 1px solid #37414e;
}
.part-card:disabled {
  opacity: 0.4;
}
.trim-sample {
  width: 70px;
  height: 60px;
  border-radius: 14px 14px 8px 8px;
  box-shadow:
    inset 0 1px 3px #ffffff35,
    inset -10px -8px 15px #0006;
  border: 1px solid #ffffff12;
  background: #2b3038;
  transform: perspective(150px) rotateX(15deg) rotateY(-12deg);
}
.trim-sample.carbon {
  background: repeating-conic-gradient(#555b60 0% 25%, #24282e 0% 50%) 0/10px
    10px;
}
.ledger {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #161c25, #10151d);
  padding: 23px 20px 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  position: sticky;
  top: 18px;
}
.ledger-heading .eyebrow {
  font-size: 0.75rem;
}
.ledger h2 {
  font-size: 1.3rem;
  margin: 6px 0 13px;
}
.ledger-heading p {
  font-size: 0.75rem;
  color: #9bb58b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 23px;
}
.ledger-heading p svg {
  width: 14px;
  height: 14px;
}
.ledger-items {
  border-top: 1px solid var(--line);
}
.ledger-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 29px 1fr auto;
  gap: 9px;
  position: relative;
}
.ledger-item-icon {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #232c34;
  color: #a5b081;
}
.ledger-item-icon svg {
  width: 16px;
  height: 16px;
}
.ledger-item .line-category {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #808b99;
  text-transform: uppercase;
  display: block;
}
.ledger-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 550;
  margin-top: 5px;
}
.ledger-item .item-price {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  padding-top: 2px;
}
.ledger-item .line-sub {
  font-size: 0.75rem;
  color: #7e8b9b;
  display: block;
  margin-top: 6px;
}
.remove-item {
  position: absolute;
  right: -4px;
  bottom: 10px;
  width: 23px;
  height: 23px;
  opacity: 0.6;
}
.remove-item svg {
  width: 12px;
  height: 12px;
}
.remove-item:hover {
  color: var(--lime);
  opacity: 1;
}
.empty-ledger {
  font-size: 0.79rem;
  line-height: 1.7;
  color: var(--muted);
  padding: 20px 0;
}
.ledger-summary {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.75rem;
}
.ledger-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.ledger-summary > div > span:first-child {
  color: #a0aab6;
}
.ledger-summary strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ledger-time {
  border-top: 1px solid var(--line);
  margin-top: 5px;
  padding-top: 14px;
}
.ledger-time span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
}
.ledger-time svg {
  width: 13px;
  height: 13px;
}
.ledger-time > span:last-child {
  font-size: 0.75rem;
}
.ledger-grand {
  padding-top: 27px;
}
.ledger-grand > span {
  font-size: 0.75rem;
  color: #a1aab5;
  display: block;
}
.ledger-grand strong {
  display: block;
  font-size: 2.4rem;
  letter-spacing: -0.06em;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  margin: 5px 0;
}
.ledger-grand small {
  font-size: 0.75rem;
  color: #74808f;
}
.book-button {
  margin-top: 23px;
  width: 100%;
  height: 46px;
}
.fulfillment-promise {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 19px 0 22px;
}
.fulfillment-promise > svg {
  color: #89967c;
  width: 21px;
  height: 21px;
}
.fulfillment-promise p {
  font-size: 0.75rem;
  color: #919ca8;
  line-height: 1.65;
  margin: 0;
}
.fulfillment-promise strong {
  font-weight: 400;
  color: #c2cbd3;
}
.ledger-foot {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #77818d;
  padding: 16px 0;
}
.ledger-foot span:first-child {
  color: var(--lime);
}
.ledger-foot i {
  width: 13px;
  height: 1px;
  background: #414a50;
}
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 16px 0 20px;
  font-size: 0.75rem;
  color: #697585;
  border-top: 1px solid #1b222d;
}
.app-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.app-footer button {
  padding: 0;
  height: 17px;
}
.app-footer svg {
  width: 14px;
  height: 14px;
}
/* Native dialogs provide focus trapping, Escape dismissal and a semantic modal. */
.dialog {
  background: #121922;
  color: var(--text);
  border: 1px solid #39424d;
  border-radius: 18px;
  padding: 28px;
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  box-shadow: 0 28px 120px #000b;
  scrollbar-width: thin;
}
.dialog::backdrop {
  background: #050911ce;
  backdrop-filter: blur(9px);
}
.dialog[open] {
  animation: dialog-in 0.22s ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.dialog-header h2 {
  font-size: 1.9rem;
  margin: 4px 0 10px;
}
.dialog-header > .icon-button {
  flex-shrink: 0;
}
.dialog p {
  line-height: 1.6;
  font-size: 0.85rem;
  color: #adb7c3;
}
.dialog-intro {
  max-width: 650px;
  margin: 2px 0 22px;
  font-size: 0.85rem;
  color: #adb7c3;
}
.dialog .fine-print {
  font-size: 0.75rem;
}
.research-dialog {
  width: min(940px, calc(100% - 28px));
}
.research-cars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.research-card {
  border: 1px solid #333d49;
  border-radius: 12px;
  overflow: hidden;
  background: #161e28;
}
.research-car-image {
  height: 175px;
  background: radial-gradient(ellipse at 50% 75%, #343e43, #111821);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.research-car-image > span {
  font-size: 7rem;
  font-weight: 800;
  font-style: italic;
  color: #727d8830;
  position: absolute;
  letter-spacing: -0.1em;
}
.research-car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}
.research-card-body {
  padding: 19px;
}
.research-card h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.research-card .research-sub {
  font-size: 0.75rem;
  margin-bottom: 17px;
  color: var(--muted);
}
.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 0 0 20px;
}
.spec-list dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.spec-list dd {
  font-size: 0.75rem;
  margin: 4px 0 0;
}
.research-card .button {
  width: 100%;
}
.research-price {
  font-size: 0.75rem;
  margin: 12px 0 16px;
}
.booking-dialog {
  width: min(920px, calc(100% - 28px));
}
.booking-progress {
  display: flex;
  gap: 20px;
  margin: 8px 0 16px;
  font-size: 0.75rem;
  color: #7a8797;
}
.booking-progress .active {
  color: var(--lime);
}
.garage-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 18px 0 23px;
}
.garage-card {
  text-align: left;
  border: 1px solid #384251;
  border-radius: 10px;
  padding: 16px 13px;
  background: #18212b;
}
.garage-card.active {
  border-color: var(--lime);
  background: #ccff0008;
}
.garage-card > svg {
  color: var(--lime);
  width: 18px;
  height: 18px;
  margin-bottom: 10px;
}
.garage-card strong {
  display: block;
  font-size: 0.82rem;
}
.garage-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 7px;
}
.garage-card .garage-rating {
  font-size: 0.75rem;
  color: #d1dcbb;
}
.booking-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.booking-two-col h3 {
  font-size: 1rem;
  margin: 0 0 15px;
}
.slot-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 275px;
  overflow: auto;
  padding: 3px;
}
.slot-button {
  padding: 12px 9px;
  text-align: left;
  border: 1px solid #384251;
  border-radius: 7px;
  background: #171f29;
}
.slot-button strong {
  display: block;
  font-size: 0.75rem;
}
.slot-button span {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #97a3b2;
}
.slot-button.active {
  border-color: var(--lime);
  background: #ccff0011;
}
.slot-button.active strong {
  color: var(--lime);
}
.booking-recap {
  padding: 20px;
  border: 1px solid #35404b;
  border-radius: 12px;
  background: #0f161e;
}
.booking-recap > h3 {
  margin: 8px 0;
}
.booking-recap > strong {
  display: block;
  font-size: 2.15rem;
  font-weight: 550;
  letter-spacing: -0.05em;
  margin: 15px 0 20px;
  font-variant-numeric: tabular-nums;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.75rem;
  color: #a6b1bf;
  line-height: 1.5;
  margin-bottom: 20px;
}
.check-field input {
  accent-color: var(--lime);
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}
.booking-recap .button {
  width: 100%;
}
.form-error {
  color: #ffb582 !important;
  font-size: 0.75rem !important;
  margin-bottom: 0;
}
.review-notice {
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 10px;
  background: #ffaa0010;
  border: 1px solid #ffaa0033;
  border-radius: 6px;
  color: #e5ba73;
  margin: 12px 0;
}
.ticket-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px;
  border-radius: 10px;
  background: #ccff000b;
  border: 1px solid #ccff0030;
  margin: 5px 0 20px;
}
.ticket-hero > .ticket-check {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #111600;
}
.ticket-hero strong {
  font-size: 1.2rem;
  display: block;
}
.ticket-hero span {
  font-size: 0.75rem;
  display: block;
  color: #aeb99e;
  margin-top: 6px;
}
.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 25px;
}
.ticket-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.ticket-data dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.ticket-data dd {
  font-size: 0.81rem;
  margin: 5px 0 0;
  line-height: 1.5;
}
.qr-box {
  background: #fff;
  border-radius: 8px;
  padding: 9px;
  align-self: start;
  color: #18212b;
  text-align: center;
}
.qr-box svg {
  width: 100%;
  height: auto;
  stroke: none;
}
.qr-box small {
  display: block;
  font-size: 0.75rem;
  padding: 3px;
}
.ticket-code {
  font-family: monospace;
  font-size: 0.77rem;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
  color: var(--lime);
}
.ticket-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.ticket-section h3 {
  font-size: 1rem;
  margin: 0 0 13px;
}
.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.milestone {
  position: relative;
  background: #1b242f;
  border: 1px solid #2d3945;
  border-radius: 7px;
  padding: 12px 9px;
}
.milestone strong {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
}
.milestone small {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}
.milestone.active {
  border-color: #ccff0040;
}
.milestone.active strong {
  color: var(--lime);
}
.ticket-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: #a8b4c1;
}
.ticket-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.history-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #35414d;
  border-radius: 8px;
  margin: 12px 0;
  gap: 12px;
}
.history-card strong {
  display: block;
  font-size: 0.85rem;
}
.history-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 7px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 30px);
  padding: 13px 20px;
  border: 1px solid #ccff0044;
  background: #222c1ef5;
  border-radius: 9px;
  font-size: 0.78rem;
  color: #e5f0d7;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.noscript {
  padding: 40px;
  background: #141c27;
  color: var(--lime);
}
.studio:fullscreen {
  border-radius: 0;
  width: 100vw;
  height: 100dvh;
  background: #121922;
}
@media (min-width: 1500px) {
  .workbench {
    grid-template-columns: 94px minmax(0, 1fr) 330px;
    gap: 22px;
  }
  .ledger {
    padding: 26px 24px 0;
  }
  .ledger h2 {
    font-size: 1.45rem;
  }
  .ledger-item strong,
  .ledger-item .item-price {
    font-size: 0.78rem;
  }
  .ledger-summary {
    font-size: 0.76rem;
  }
  .studio {
    height: 490px;
  }
  .swatch {
    height: 55px;
  }
  .swatch-name {
    font-size: 0.75rem;
  }
  .tray-heading h2 {
    font-size: 1.35rem;
  }
  .vehicle-picker strong {
    font-size: 0.92rem;
  }
  .vehicle-picker small {
    font-size: 0.75rem;
  }
}
@media (max-width: 1100px) {
  .app-header {
    gap: 30px;
  }
  .top-nav {
    gap: 23px;
  }
  .prototype-badge {
    display: none;
  }
  .workbench {
    grid-template-columns: 72px minmax(0, 1fr) 255px;
    gap: 12px;
  }
  .category {
    width: 58px;
  }
  .rail-heading {
    font-size: 0.75rem;
  }
  .ledger {
    padding: 19px 15px 0;
  }
  .ledger h2 {
    font-size: 1.12rem;
  }
  .studio-label {
    display: none;
  }
  .studio {
    height: 365px;
  }
  .segmented button {
    padding: 6px 8px;
  }
  .save-status {
    display: none;
  }
  .swatch-card {
    min-width: 55px;
  }
  .selected-part {
    align-items: flex-start;
  }
  .fitment-badge {
    font-size: 0.75rem;
  }
  .ledger-grand strong {
    font-size: 2.1rem;
  }
  .vehicle-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat:last-child {
    display: none;
  }
  .stat:nth-child(3) {
    border: 0;
  }
}
@media (max-width: 850px) {
  .app-header {
    padding: 0 20px;
    height: 68px;
    gap: 28px;
  }
  .wordmark {
    font-size: 1.8rem;
  }
  .top-nav {
    gap: 20px;
  }
  .top-nav button {
    font-size: 0.75rem;
  }
  .header-right {
    gap: 0;
  }
  .profile-mark {
    width: 29px;
    height: 29px;
  }
  #garage-app {
    padding: 23px 20px 0;
  }
  .workbench {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .ledger {
    grid-column: 1/-1;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
    padding: 22px;
  }
  .ledger-heading {
    grid-column: 1;
  }
  .ledger-items {
    grid-column: 1;
    grid-row: 2/6;
  }
  .ledger-summary {
    grid-column: 2;
    grid-row: 1/3;
    padding-top: 0;
  }
  .ledger-grand {
    grid-column: 2;
    padding-top: 15px;
  }
  .book-button {
    grid-column: 2;
    margin-top: 16px;
  }
  .fulfillment-promise {
    grid-column: 2;
    margin-bottom: 0;
  }
  .ledger-foot {
    grid-column: 1/-1;
    margin-top: 19px;
    padding-bottom: 0;
  }
  .studio {
    height: 430px;
  }
  .glass-options {
    padding-bottom: 8px;
  }
  .app-footer {
    font-size: 0.75rem;
  }
  .ledger-heading p {
    margin-bottom: 18px;
  }
  .garage-heading {
    margin-bottom: 21px;
  }
}
@media (max-width: 600px) {
  .app-header {
    height: 61px;
    padding: 0 16px;
    gap: 22px;
  }
  .wordmark {
    font-size: 1.65rem;
  }
  .top-nav {
    gap: 17px;
    margin-left: auto;
  }
  .top-nav button {
    font-size: 0.75rem;
  }
  .top-nav button:first-child {
    display: none;
  }
  .nav-count {
    font-size: 0.75rem;
    padding: 2px 4px;
  }
  .header-right {
    display: none;
  }
  #garage-app {
    padding: 19px 13px 0;
  }
  .garage-heading {
    align-items: flex-end;
    margin-bottom: 16px;
  }
  .garage-heading .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }
  h1 {
    font-size: 1.8rem;
    margin-top: 6px;
  }
  .heading-actions .button {
    font-size: 0.75rem;
    min-height: 35px;
    padding: 7px 9px;
  }
  .heading-actions .button svg {
    width: 13px;
  }
  .workbench {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .category-rail {
    order: 1;
    flex-direction: row;
    justify-content: space-around;
    border: 0;
    border-radius: 8px;
    padding: 4px;
    background: #121922;
  }
  .rail-heading,
  .rail-divider,
  .rail-tool,
  .rail-end {
    display: none;
  }
  .category {
    flex-direction: row;
    min-height: 45px;
    width: auto;
    flex: 1;
    gap: 7px;
    padding: 6px;
    margin: 0;
    border-radius: 6px;
  }
  .category svg {
    width: 18px;
    height: 18px;
  }
  .category span {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .category span br {
    display: none;
  }
  .studio-column {
    display: contents;
  }
  .studio {
    order: 0;
    height: 358px;
    min-height: 320px;
    border-radius: 12px;
  }
  .studio-type {
    font-size: 210px;
    top: 72px;
  }
  .studio-top {
    top: 13px;
    left: 14px;
    right: 14px;
  }
  .vehicle-mark {
    font-size: 1.4rem;
    padding: 5px 8px;
  }
  .vehicle-picker strong {
    font-size: 0.76rem;
  }
  .vehicle-picker small {
    font-size: 0.75rem;
  }
  .studio-bottom {
    left: 12px;
    right: 12px;
    bottom: 31px;
  }
  .camera-controls button {
    font-size: 0.75rem;
    padding: 7px 8px;
  }
  .viewer-tools {
    gap: 4px;
  }
  .viewer-tools .icon-button {
    width: 31px;
    height: 31px;
  }
  .viewer-tools svg {
    width: 16px;
    height: 16px;
  }
  .studio-hint {
    left: 15px;
    font-size: 0.75rem;
    bottom: 12px;
    letter-spacing: 0.07em;
  }
  .studio-hint i {
    padding: 0 4px;
  }
  .vehicle-stats {
    order: 2;
    padding-top: 4px;
    padding-bottom: 14px;
  }
  .stat label {
    font-size: 0.75rem;
  }
  .stat strong {
    font-size: 0.89rem;
  }
  .stat strong small {
    font-size: 0.75rem;
  }
  .parts-tray {
    order: 3;
    padding: 9px 0 0;
  }
  .tray-heading {
    gap: 5px;
    margin-bottom: 12px;
  }
  .tray-heading h2 {
    font-size: 1.17rem;
  }
  .segmented button {
    font-size: 0.75rem;
    padding: 6px 7px;
  }
  .swatch {
    height: 48px;
  }
  .swatch-card {
    min-width: 58px;
  }
  .swatch-name {
    font-size: 0.75rem;
  }
  .selected-part strong {
    font-size: 0.77rem;
  }
  .selected-part p {
    font-size: 0.75rem;
  }
  .fitment-badge {
    font-size: 0.75rem;
  }
  .glass-options {
    padding-bottom: 8px;
  }
  .ledger {
    order: 4;
    display: flex;
    padding: 20px;
    gap: 0;
    border-radius: 12px;
  }
  .ledger-heading h2 {
    font-size: 1.35rem;
  }
  .ledger-heading .eyebrow {
    font-size: 0.75rem;
  }
  .ledger-items {
    width: 100%;
  }
  .ledger-item {
    padding: 14px 0;
    grid-template-columns: 32px 1fr auto;
  }
  .ledger-item strong,
  .ledger-item .item-price {
    font-size: 0.8rem;
  }
  .ledger-item .line-sub {
    font-size: 0.75rem;
  }
  .ledger-item .line-category {
    font-size: 0.75rem;
  }
  .ledger-summary {
    width: 100%;
    padding-top: 20px;
    gap: 14px;
    font-size: 0.78rem;
  }
  .ledger-grand {
    margin-top: 15px;
    width: 100%;
  }
  .ledger-grand > span {
    font-size: 0.75rem;
  }
  .ledger-grand strong {
    font-size: 2.4rem;
  }
  .ledger-grand small {
    font-size: 0.75rem;
  }
  .book-button {
    font-size: 0.83rem;
    margin-top: 18px;
    position: sticky;
    bottom: 12px;
    z-index: 6;
    box-shadow: 0 7px 30px #0008;
  }
  .fulfillment-promise {
    margin-top: 19px;
  }
  .fulfillment-promise p {
    font-size: 0.75rem;
  }
  .ledger-foot {
    width: 100%;
    font-size: 0.75rem;
    margin-top: 20px;
  }
  .ledger-time span:first-child {
    font-size: 0.75rem;
  }
  .ledger-time > span:last-child {
    font-size: 0.75rem;
  }
  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    font-size: 0.75rem;
    margin-top: 17px;
    padding-bottom: 25px;
  }
  .dialog {
    padding: 20px 16px;
    max-height: calc(100dvh - 24px);
    width: calc(100% - 20px);
    border-radius: 13px;
  }
  .dialog-header h2 {
    font-size: 1.5rem;
  }
  .dialog-header .eyebrow {
    font-size: 0.75rem;
  }
  .dialog-intro {
    font-size: 0.78rem !important;
  }
  .research-cars {
    grid-template-columns: 1fr;
  }
  .research-car-image {
    height: 175px;
  }
  .research-card .button {
    font-size: 0.8rem;
  }
  .garage-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .garage-card {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 6px 9px;
    padding: 12px;
  }
  .garage-card > svg {
    margin: 0;
    grid-row: 1/3;
  }
  .garage-card > strong {
    font-size: 0.8rem;
  }
  .garage-card > span {
    margin: 0;
    grid-column: 2;
    font-size: 0.75rem;
  }
  .garage-card > .garage-rating {
    grid-column: 3;
    grid-row: 1/3;
    align-self: center;
    font-size: 0.75rem;
  }
  .booking-two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .slot-options {
    max-height: 220px;
  }
  .ticket-grid {
    grid-template-columns: 1fr 96px;
    gap: 12px;
  }
  .ticket-data {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
  }
  .ticket-data dt {
    font-size: 0.75rem;
  }
  .ticket-data dd {
    font-size: 0.77rem;
  }
  .ticket-hero {
    padding: 13px;
    gap: 11px;
  }
  .ticket-hero strong {
    font-size: 1rem;
  }
  .ticket-hero span {
    font-size: 0.75rem;
  }
  .ticket-hero > .ticket-check {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .milestones {
    grid-template-columns: 1fr 1fr;
  }
  .ticket-code {
    font-size: 0.75rem;
  }
  .ticket-actions .button {
    font-size: 0.75rem;
  }
  .history-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .booking-progress {
    gap: 17px;
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: white;
    color: #111;
  }
  .app-header,
  #garage-app,
  .dialog:not([open]),
  .dialog-header button,
  .ticket-actions,
  .toast {
    display: none !important;
  }
  .dialog[open] {
    display: block;
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    background: white;
    border: 0;
    box-shadow: none;
    color: #111;
  }
  .dialog p,
  .ticket-data dd,
  .ticket-steps,
  .milestone strong {
    color: #111;
  }
  .qr-box {
    border: 1px solid #ddd;
  }
  .ticket-hero,
  .ticket-section,
  .milestone {
    break-inside: avoid;
  }
}

/* Keep ordinary interactive labels readable at common laptop widths. */
.category span,
.top-nav button,
.camera-controls button,
.segmented button,
.glass-options label,
.glass-options select,
.ledger-item strong,
.ledger-item .item-price,
.ledger-summary,
.button {
  font-size: 0.875rem;
}
.studio-hint {
  letter-spacing: 0.03em;
  right: 15px;
}
.rail-heading {
  font-size: 0.6rem;
}
.rail-end {
  font-size: 0.6rem;
}
.part-card {
  min-width: 165px;
}
.swatch-card {
  min-width: 74px;
}
.swatch-name {
  white-space: normal;
  line-height: 1.3;
}
.parts-tray {
  padding-bottom: 8px;
}
@media (max-width: 600px) {
  .category span {
    font-size: 0.75rem;
  }
  .top-nav button {
    font-size: 0.75rem;
  }
  .camera-controls button {
    font-size: 0.75rem;
  }
  .segmented button {
    font-size: 0.75rem;
  }
  .swatch-card {
    min-width: 70px;
  }
  .studio-hint {
    font-size: 0.75rem;
  }
  .header-right {
    display: none;
  }
  .studio-bottom {
    bottom: 42px;
  }
  .rail-heading,
  .rail-end {
    display: none;
  }
}
