/* REVOLT — Engine Voice. Made to sit on a Tesla touchscreen: an off-black base,
   flat surfaces from one cool grey family, white for what matters, Tesla blue only
   on things you act on, red only for the redline. No glows, no glass, no gradients. */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600&display=swap');

:root {
  --bg: #0b0b0c;
  --s1: #141416;             /* cards, panels */
  --s2: #1c1c1f;             /* controls */
  --s3: #2a2a2e;             /* selected / pressed */
  --line: #232326;
  --line-2: #323236;
  --text: #f2f2f3;
  --text-2: #a1a1a6;
  --text-3: #6c6c71;
  --blue: #3e6ae1;
  --blue-press: #3459c4;
  --red: #e82127;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --font: 'Hanken Grotesk', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-thai: 'Noto Sans Thai', 'Hanken Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: max(20px, env(safe-area-inset-left));
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%; margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); overflow: hidden; -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.bg-gradient { display: none; }

#app { position: relative; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 14px var(--pad) 16px; overflow: hidden; }

/* ---------- top bar ---------- */
#topbar { position: relative; z-index: 10; flex: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 52px; }
.brand, .gate-brand { display: flex; align-items: baseline; gap: 10px; }
.brand-svg { display: none; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; color: var(--text); }
.brand-name b { font-weight: inherit; }
.brand-sub { font-size: 14px; font-weight: 500; color: var(--text-3); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }

/* segmented controls — the Chill / Standard / Sport pattern */
.gearbox, .filter-row { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--s2); }
.gearbox button {
  min-width: 84px; min-height: 42px; padding: 0 16px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.gearbox button[aria-pressed='true'], .chip[aria-pressed='true'], .seg button[aria-pressed='true'] {
  background: var(--s3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background 0.2s var(--ease), transform 0.12s; }
button.chip-btn:active { transform: scale(0.97); }
.chip-btn svg { width: 20px; height: 20px; flex: none; }
.mode-chip { padding: 0 6px; font-weight: 500; color: var(--text-3); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); }
#app[data-mode='electric'] .pill-dot { background: var(--blue); }
#muteBtn { background: var(--s2); color: var(--text); }
#muteBtn .ic-off { display: none; }
#muteBtn.active { color: var(--red); }
#muteBtn.active .ic-on { display: none; }
#muteBtn.active .ic-off { display: block; }

/* ---------- stage: tach ---------- */
#stage { position: relative; z-index: 5; flex: 1; min-height: 0; display: flex; align-items: stretch; gap: 12px; padding-left: 76px; }
#tach { display: none; }
.speed-center { position: relative; flex: 1; min-width: 0; display: grid; place-items: center; }
.speed-ring { position: relative; width: min(100%, 54vh, 440px); aspect-ratio: 1; container-type: inline-size; }
.speed-ring-svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #1d1d20; stroke-width: 5; }
.ring-red { fill: none; stroke: var(--red); stroke-width: 5; opacity: 0.5; stroke-dasharray: 0 653.45; }
.ring-progress { fill: none; stroke: var(--text); stroke-width: 5; stroke-dasharray: 653.45; stroke-dashoffset: 653.45; transition: stroke 0.15s; }
#app[data-mode='electric'] .ring-progress { stroke: var(--blue); }   /* Thor: the eco tach is blue */
#app .speed-ring.at-redline .ring-progress { stroke: var(--red); }

.speed-core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 14%; text-align: center; }
.core-name { max-width: 100%; margin-bottom: 4px; font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.speed-value {
  font-size: clamp(56px, 13vh, 112px); font-size: clamp(56px, 25cqw, 112px);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums;
}
#rpmNum.cut { color: var(--red); }
.speed-unit { margin-top: 2px; font-size: 15px; font-weight: 500; color: var(--text-3); }
.speed-sub { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.speed-sub b { font-weight: 600; color: var(--text); }
.speed-sub .sep { color: var(--text-3); }
.tel.hot b { color: var(--red); }
.lim-chip { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.lim-chip b { font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }

.load-side { position: relative; flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 6px; }
.tube-label { display: none; }
.tube-body { flex: 1; min-height: 90px; display: flex; justify-content: center; }
.tube-track { position: relative; width: 6px; height: 100%; border-radius: 3px; background: #1d1d20; overflow: hidden; }
.tube-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 3px; background: var(--text); }
#stage.hot .tube-fill { background: var(--red); }
.tube-readout { min-height: 1.2em; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tube-unit { font-size: 12px; font-weight: 500; color: var(--text-3); }

/* ---------- dock: tuning · engines · start ---------- */
#dock { position: relative; z-index: 10; flex: none; display: flex; align-items: flex-end; gap: 16px; min-height: 150px; }

.left-dock { flex: none; display: flex; align-items: center; padding-bottom: 18px; }
.tune-fab { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--s2); color: var(--text-2); transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s; }
.tune-fab svg { width: 26px; height: 26px; }
.tune-fab.is-open { background: var(--s3); color: var(--text); }

.profile-dock { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; }
.dock-head .lbl { font-size: 15px; font-weight: 600; color: var(--text-2); }
.chip { min-height: 36px; padding: 0 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background 0.2s var(--ease), color 0.2s var(--ease); }

.engine-rail { margin: 0 -4px; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 93%, transparent 100%); }
.engine-list { position: relative; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px 4px 4px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.engine-list::-webkit-scrollbar { display: none; }
.focus-line { display: none; }

.engine {
  position: relative; flex: 0 0 auto; width: 176px; height: 96px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; overflow: hidden; cursor: pointer;
  border-radius: var(--r-md); background: var(--s1); transition: background 0.2s var(--ease), transform 0.12s;
}
.engine:active { transform: scale(0.98); }
.engine[aria-selected='true'] { background: var(--s2); box-shadow: inset 0 0 0 2px var(--blue); }
.engine .glyph { position: absolute; right: 12px; bottom: 10px; width: 54px; height: 32px; display: flex; align-items: flex-end; justify-content: flex-end; color: var(--text-3); opacity: 0.55; pointer-events: none; }
.engine .glyph svg { width: 100%; height: 100%; }
.engine .glyph span { font-size: 13px; font-weight: 700; }
.engine[aria-selected='true'] .glyph { color: var(--text-2); opacity: 0.9; }
.engine .meta { position: relative; z-index: 1; min-width: 0; }
.engine .nm { font-size: 15px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.engine .tag { font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.start-dock { flex: none; display: flex; align-items: center; gap: 14px; }
.launch-btn { position: relative; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--s2); transition: background 0.2s var(--ease), transform 0.12s; }
.lb-ring, .lb-eyebrow { display: none; }
.lb-main { font-size: 13px; font-weight: 600; }
.launch-btn.is-open { background: var(--s3); box-shadow: inset 0 0 0 2px var(--text); }

.push-start {
  position: relative; width: 124px; height: 124px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.12s;
}
.ps-ring { display: none; }
.ps-eyebrow { font-size: 12px; font-weight: 600; color: var(--text-3); }
.ps-main { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.ps-status { font-size: 12px; font-weight: 500; color: var(--text-3); }
.push-start.playing { box-shadow: inset 0 0 0 2px var(--red); }
.push-start.playing .ps-main { color: var(--red); }
.tune-fab:active, .launch-btn:active, .push-start:active { transform: scale(0.96); }

@media (hover: hover) {
  #muteBtn:hover, .tune-fab:hover, .launch-btn:hover, .push-start:hover, .sheet-close:hover, .btn:hover, .pad:hover { background: #232326; }
  .engine:hover { background: #18181b; }
  .engine[aria-selected='true']:hover { background: var(--s2); }
  .btn.primary:hover { background: #4673e6; }
  .gearbox button:not([aria-pressed='true']):hover, .chip:not([aria-pressed='true']):hover, .seg button:not([aria-pressed='true']):hover { color: var(--text); }
}

/* ---------- sheets ---------- */
.sheet-backdrop { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease); }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: absolute; left: var(--pad); bottom: 16px; z-index: 45;
  width: min(420px, calc(100% - 2 * var(--pad))); max-height: min(86vh, 740px);
  display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px;
  border-radius: var(--r-lg); background: var(--s1); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.28s var(--ease), opacity 0.22s var(--ease), visibility 0.28s;
}
.sheet.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.sheet-wide { width: min(660px, calc(100% - 2 * var(--pad))); }
.sheet-head { flex: none; display: flex; align-items: center; gap: 12px; }
.sheet-title { margin-right: auto; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.profile-chip { max-width: 50%; font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--s2); }
.board-tabs button { min-height: 38px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.board-tabs button[aria-pressed='true'] { background: var(--s3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.sheet-close { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--s2); color: var(--text-2); transition: background 0.2s var(--ease); }
.sheet-close svg { width: 16px; height: 16px; }
.sheet-body { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-body::-webkit-scrollbar { width: 6px; }
.sheet-body::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 3px; }

.section { display: flex; flex-direction: column; }
.section-head { display: none; }
.section-note { margin: 0 0 6px; max-width: 48ch; font-size: 13px; line-height: 1.45; color: var(--text-3); }
#nowPoetic { margin-bottom: 2px; font-size: 14px; color: var(--text-2); }

.tune { display: flex; flex-direction: column; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.tune .row { display: flex; align-items: baseline; justify-content: space-between; }
.tune .k { font-size: 15px; font-weight: 500; }
.tune .v { font-size: 15px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }

input[type='range'] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 0; background: transparent; outline: none; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--text), var(--text)) 0 0 / var(--p) 100% no-repeat, #2c2c30; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55); }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--blue); }
input[type='range']::-moz-range-track { height: 6px; border-radius: 3px; background: #2c2c30; }
input[type='range']::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--text); }
input[type='range']::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 8px; padding: 3px; border-radius: 10px; background: var(--s2); }
.seg-2 { grid-template-columns: repeat(2, 1fr); }
.mode-note { margin: 8px 0 0; }
#tuneList.locked .tune:not(.tune-keep) { opacity: 0.45; pointer-events: none; }
.seg button { min-height: 44px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background 0.2s var(--ease), color 0.2s var(--ease); }

.sheet-actions { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { min-height: 52px; border-radius: 10px; background: var(--s2); font-size: 16px; font-weight: 600; transition: background 0.2s var(--ease), transform 0.12s; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:active { background: var(--blue-press); }

/* boombox */
.visualizer { flex: none; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg); }
#vizCanvas { width: 100%; height: 100%; display: block; }
.pad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pad {
  position: relative; min-height: 72px; padding: 12px 14px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 10px; background: var(--s2); transition: background 0.15s var(--ease), transform 0.12s;
}
.pad:active { transform: scale(0.97); }
.pad .idx { font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pad .lbl { font-family: var(--font-thai); font-size: 15px; font-weight: 500; line-height: 1.3; }
.pad .bar { position: absolute; left: 0; bottom: 0; width: 0%; height: 3px; background: var(--text); }
.pad.playing { background: var(--s3); }
.board-controls { flex: none; display: flex; align-items: center; gap: 16px; }
.loop-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--s2); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.loop-btn svg { width: 18px; height: 18px; }
.loop-btn[aria-pressed='true'] { background: var(--s3); color: var(--text); box-shadow: inset 0 0 0 2px var(--blue); }
.board-vol { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.board-vol input { flex: 1; min-width: 0; }

/* ---------- gate ---------- */
#gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); transition: opacity 0.5s var(--ease), visibility 0.5s; }
#gate.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-art { position: absolute; top: 50%; right: -14vh; width: 88vh; height: 88vh; transform: translateY(-50%) rotate(-90deg); fill: none; stroke: #17171a; stroke-width: 3; pointer-events: none; }
.gate-art-arc { stroke: #3a3a3e; stroke-dasharray: 200 653.45; }
.gate-inner { position: relative; z-index: 1; width: 100%; max-width: 820px; display: flex; flex-direction: column; align-items: flex-start; padding: 0 var(--pad) clamp(40px, 12vh, 120px) clamp(24px, 7vw, 96px); }
.gate-inner > * { opacity: 0; animation: rise 0.6s var(--ease) forwards; }
.gate-inner > :nth-child(2) { animation-delay: 0.08s; }
.gate-inner > :nth-child(3) { animation-delay: 0.16s; }
.gate-inner > :nth-child(4) { animation-delay: 0.24s; }
.gate-inner > :nth-child(5) { animation-delay: 0.32s; }
.gate-title { margin: 20px 0 0; max-width: 14ch; font-size: clamp(40px, 6.4vw, 76px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
.gate-tagline { margin: 18px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.gate-btn { margin-top: 36px; min-height: 56px; padding: 0 32px; border-radius: 10px; background: var(--blue); font-size: 17px; font-weight: 600; color: #fff; transition: background 0.2s var(--ease), transform 0.12s; }
.gate-btn:active { background: var(--blue-press); transform: scale(0.98); }
.gate-note { margin: 18px 0 0; max-width: 52ch; font-size: 14px; line-height: 1.5; color: var(--text-3); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- toast: one notice under the top bar ---------- */
#toasts { position: fixed; left: 50%; top: 74px; z-index: 120; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); display: flex; justify-content: center; pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 12px 18px;
  border-radius: var(--r-md); background: #202023; box-shadow: 0 0 0 1px var(--line-2), 0 12px 32px rgba(0, 0, 0, 0.5);
  font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--text);
  animation: toastin 0.3s var(--ease) both;
}
.toast.loading::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3a3a3e; border-top-color: var(--text); animation: spin 0.8s linear infinite; }
.toast.out { animation: toastout 0.25s ease forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toastout { to { opacity: 0; transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- short viewports (Tesla browser: 1254×784 CSS px, windowed ~773×601) ---------- */
@media (max-height: 780px) {
  #dock { min-height: 130px; }
  .push-start { width: 108px; height: 108px; }
  .ps-main { font-size: 21px; }
  .launch-btn { width: 68px; height: 68px; }
  .engine { width: 160px; height: 88px; padding: 12px 14px; }
  .left-dock { padding-bottom: 14px; }
  .speed-sub { margin-top: 12px; }
}
@media (max-height: 620px) {
  .speed-ring { width: min(100%, 46vh, 440px); }
  .dock-head, .lim-chip, .core-name { display: none; }
  #dock { min-height: 0; }
  .speed-sub { margin-top: 6px; font-size: 15px; }
  .tube-body { min-height: 40px; }
  #toasts { top: 66px; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  #stage { padding-left: 0; }
  .load-side { flex-basis: 44px; }
  .brand-sub, .mode-chip { display: none; }
  .gearbox button { min-width: 0; padding: 0 14px; }
  .gate-art { opacity: 0.5; }
}
@media (max-width: 640px) {
  #app { padding: 10px 14px 12px; }
  #topbar, .top-actions { gap: 8px; }
  .gearbox button { padding: 0 11px; font-size: 14px; }
  #muteBtn span { display: none; }
  .load-side { flex-basis: 30px; }
  .tube-unit { display: none; }
  #dock { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; min-height: 0; }
  .profile-dock { order: -1; flex: 1 0 100%; }
  .left-dock { padding-bottom: 0; }
  .engine { width: 150px; height: 84px; }
  .push-start { width: 96px; height: 96px; }
  .ps-main { font-size: 19px; }
  .launch-btn { width: 64px; height: 64px; }
  .sheet, .sheet-wide { left: 10px; right: 10px; bottom: 10px; width: auto; }
  #toasts { top: 108px; }
  .gate-inner { padding-left: 22px; }
}

/* perf-lite: set from JS when the measured frame rate is low (Tesla MCU2) */
.perf-lite .engine, .perf-lite .sheet, .perf-lite .sheet-backdrop { transition: none; }
.perf-lite .engine-rail { -webkit-mask-image: none; mask-image: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
