:root {
  color-scheme: dark;
  /* W11: Kinetic Cinema skin - deep graphite bg, #22252B/#2D3037 card+modal
     fills (--panel/--panel-strong), Tesla Red accent. Value swap only, same
     variables/selectors as before. */
  --bg: #171A20;
  --panel: rgba(34, 37, 43, 0.92);
  --panel-strong: rgba(45, 48, 55, 0.96);
  --text: #F6FAFF;
  --muted: #9AA0A6;
  --accent: #E82127;
  --accent-strong: #FFB4AC;
  --ok: #34C759;
  --warn: #FFCA6A;
  --danger: #FF6B6B;
  --line: rgba(255, 255, 255, 0.16);
  /* W11: flat/tonal system - drop shadows replaced by a 1px top/left inner glow. */
  --shadow: inset 1px 1px 0 0 rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  letter-spacing: -0.2px;
  touch-action: manipulation;
  user-select: none;
  /* W1: without this, a right-edge horizontal drag can be hijacked by the
     browser's own back/forward navigation gesture instead of reaching our
     touch handlers as a normal touchend. */
  overscroll-behavior: none;
}

body::-webkit-scrollbar {
  display: none;
}

button {
  color: inherit;
  font: inherit;
}

/* Longhand duplicates every inset: below — Chromium 80-86 in older Tesla firmware ignores the shorthand and collapses the box to zero. */
.shell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, #1c1f26 0%, var(--bg) 46%, #0a0b0d 100%);
}

.video-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #05070D;
  touch-action: none;
  /* W12: <video> has its own native touch-gesture handling (seek/volume
     swipe, drag-start, long-press callout) that can preempt touch-action on
     mobile Chrome/Android - these back it up on both surfaces. */
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  /* Stream-gap smoothing: the last frame stays on screen while reconnecting;
     dimming it (see .stale) signals "paused" without clearing the picture. */
  transition: filter 400ms ease, opacity 300ms ease;
}

/* Applied whenever the stream isn't live (blip/wait tiers) so the frozen last
   frame reads as stale. Removing the class restores the picture on its own. */
.video-canvas.stale {
  filter: brightness(0.68) saturate(0.78);
  pointer-events: none;
}

.video-canvas.cleared {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .video-canvas {
    transition: none;
  }
}

/* The MSE fallback paints into <video>, which would otherwise stretch to fill;
   the canvas path does its own letterbox math so this must target #videoEl only. */
#videoEl {
  object-fit: contain;
}

.unsupported,
.disconnected,
.modal {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  z-index: 5;
}

.unsupported[hidden],
.modal[hidden] {
  display: none;
}

.modal {
  background: rgba(8, 10, 12, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* The wait overlay fades instead of hard-cutting so a brief blip never flashes
   the full-screen route state. Kept in the layer (opacity 0 + pointer-events:none)
   so touches fall through to the video surface when it's hidden. app.js toggles .show. */
.disconnected {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.disconnected.show {
  opacity: 1;
  pointer-events: auto;
}

.unsupported > div,
.modal-panel {
  width: min(640px, 92vw);
  border-radius: 12px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}

.safety-panel {
  width: min(880px, calc(100vw - 64px));
  min-height: 360px;
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 202, 106, 0.3);
  border-radius: 20px;
  background: #191C21;
  box-shadow: var(--shadow);
  text-align: start;
}

.safety-mark {
  display: grid;
  place-items: center;
  background: var(--warn);
  color: #171A20;
}

.safety-mark svg {
  width: 118px;
  height: 118px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.safety-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px 44px;
}

.modal-panel.safety-panel h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.modal-panel.safety-panel p {
  max-width: 34ch;
  color: #C5C9CE;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.6;
}

.wait-state {
  width: min(760px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.wait-state h1,
.modal-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.wait-state h1 {
  margin: 0;
}

.connection-route {
  display: flex;
  align-items: center;
  width: min(520px, 76vw);
}

.connection-route[hidden] {
  display: none;
}

.route-node {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
}

.route-node.done {
  border-color: var(--ok);
  background: var(--ok);
}

.route-node.current {
  border-color: var(--accent);
  background: var(--accent);
}

.route-line {
  height: 4px;
  flex: 1;
  background: var(--line);
}

.route-line.done {
  background: var(--ok);
}

.route-line.pending {
  /* Same 4px bar as .route-line, dashed via gradient — a border-top dash on a
     0-height box paints ABOVE the flex-centered line and sits 2px higher than
     the solid segments. */
  background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 20px);
}

.wait-state p,
.modal-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wait-hint {
  font-size: 0.85em;
  opacity: 0.8;
}

/* Mini connection-status pill (top-left, safe-area aware). Purely
   informational HUD over the stream - pointer-events:none so it never
   steals a touch/scroll from the video surface below it. Hidden by default;
   app.js's revealPill() adds .visible on stream start or a screen tap, then
   fades it back out after 4s. */
.status-pill {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  top: max(12px, env(safe-area-inset-top));
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.status-pill.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .status-pill {
    transition: opacity 120ms linear;
    transform: none;
  }
}

.pill-sep {
  color: var(--muted);
}

.connection-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--danger);
}

.connection-dot.ok {
  background: var(--ok);
}

.connection-dot.warn {
  background: var(--warn);
}

.connection-dot.lost {
  background: var(--danger);
}

/* Transient confirmation for gesture-triggered actions (e.g. 3-finger tap toggling lipsync). */
.gesture-toast {
  position: absolute;
  left: 50%;
  top: calc(max(12px, env(safe-area-inset-top)) + 68px);
  z-index: 11;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(34, 37, 43, 0.9);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
  font-weight: 800;
  pointer-events: none;
}

.gesture-toast[hidden] {
  display: none;
}

/* Top-center connection state. Automatic recovery stays compact; after a
   sustained drop the same flat surface exposes one manual recovery action. */
.reconnect-pill {
  position: absolute;
  left: 50%;
  top: max(12px, env(safe-area-inset-top));
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #22252B;
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.reconnect-pill[hidden] {
  display: none;
}

.reconnect-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reconnect-recovery {
  display: none;
}

.reconnect-pill.is-expanded {
  width: min(520px, calc(100vw - 48px));
  padding: 16px;
  pointer-events: auto;
  /* The collapsed pill is a one-liner (nowrap above); the expanded panel holds a
     full-sentence hint that must wrap INSIDE the panel — without this the hint
     renders as one endless line and pushes the retry button outside the box. */
  white-space: normal;
}

.reconnect-pill.is-expanded .reconnect-status-row {
  justify-content: flex-start;
}

.reconnect-pill.is-expanded .reconnect-recovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.reconnect-pill.is-success {
  border-color: var(--line);
}

.reconnect-recovery p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

.reconnect-recovery button {
  flex: 0 0 auto;
  min-width: 148px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 700;
}

.reconnect-indicator {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 2px;
  background: var(--warn);
}

.reconnect-pill.is-success .reconnect-indicator {
  background: var(--ok);
}

.safety-panel button {
  width: 100%;
  min-height: 62px;
  margin-top: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: #171A20;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, transform 120ms ease;
}

.safety-panel button:active,
.reconnect-recovery button:active {
  transform: translateY(1px);
}

.safety-panel button:focus-visible {
  outline: 3px solid var(--warn);
  outline-offset: 4px;
}

@media (hover: hover) {
  .safety-panel button:hover {
    background: #FFFFFF;
  }
}

@media (max-width: 720px) {
  .modal {
    padding: 20px;
  }

  .safety-panel {
    width: min(520px, 100%);
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .safety-mark {
    min-height: 116px;
  }

  .safety-mark svg {
    width: 74px;
    height: 74px;
  }

  .safety-content {
    padding: 28px;
  }

  .safety-panel button {
    margin-top: 26px;
  }
}

@media (max-height: 520px) and (min-width: 721px) {
  .safety-panel {
    min-height: 300px;
  }

  .safety-content {
    padding: 30px 40px;
  }

  .safety-panel button {
    min-height: 56px;
    margin-top: 24px;
  }
}

.nav-dock {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 12;
  width: 136px;
  height: 60px;
  isolation: isolate;
  color: rgba(255, 255, 255, 0.94);
  touch-action: none;
  transform: translateX(-50%);
  transition:
    left 360ms cubic-bezier(0.22, 1.2, 0.36, 1),
    width 380ms cubic-bezier(0.2, 1.25, 0.32, 1),
    height 380ms cubic-bezier(0.2, 1.25, 0.32, 1),
    transform 220ms ease;
}

.nav-dock[hidden] {
  display: none;
}

.nav-dock::before,
.nav-dock::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  border-radius: 999px;
  content: "";
  pointer-events: none;
  transition: border-radius 380ms cubic-bezier(0.2, 1.25, 0.32, 1);
}

.nav-dock::before {
  z-index: -2;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.035) 42%, rgba(12, 14, 20, 0.38)),
    rgba(24, 26, 33, 0.78);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.38);
}

.nav-dock::after {
  z-index: -1;
  opacity: 0.72;
  background:
    radial-gradient(ellipse at 30% 8%, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.12) 45%, transparent 64%);
  mix-blend-mode: screen;
}

.nav-dock.is-expanded {
  /* Keep the expanded dock inside the viewport even when its draggable anchor
     sits at 25% or 75%; the text field gets a full row above the actions row.
     Three 104px actions (back/home/sync) need 3x104 + 2x16 gap + 2x16 inset =
     376, which the 392px cap still clears. */
  width: min(392px, calc(50vw - 28px));
  height: 228px;
}

.nav-dock.is-expanded::before,
.nav-dock.is-expanded::after {
  border-radius: 28px;
}

.nav-dock.is-dragging {
  transform: translateX(-50%) scale(1.06, 0.94);
  transition: none;
}

.nav-dock-handle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  transition: opacity 140ms ease, transform 260ms cubic-bezier(0.2, 1.4, 0.3, 1);
}

.nav-dock-grabber {
  width: 72px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(190, 198, 214, 0.48));
  box-shadow: 0 1px 8px rgba(255, 255, 255, 0.22);
}

.nav-dock.is-expanded .nav-dock-handle {
  opacity: 0;
  transform: scaleX(1.45) scaleY(0.55);
  pointer-events: none;
}

.nav-dock-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  inset: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px) scale(0.72);
  pointer-events: none;
  transition:
    opacity 130ms ease,
    transform 360ms cubic-bezier(0.16, 1.35, 0.3, 1);
}

.nav-dock.is-expanded .nav-dock-actions {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-text-form {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  width: 100%;
  height: 64px;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(8, 10, 14, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-text-form:focus-within {
  border-color: rgba(255, 255, 255, 0.62);
}

.nav-text-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--text);
  font: inherit;
  font-size: 17px;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}

.nav-text-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.nav-text-send {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  margin: 0 6px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--text);
  color: #171A20;
  cursor: pointer;
}

.nav-text-send svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-text-send:active {
  transform: translateY(1px);
}

.nav-text-send:focus {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.nav-dock-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-dock-button + .nav-dock-button {
  margin-left: 16px;
}

.nav-dock-button::before {
  position: absolute;
  top: -30%;
  right: -30%;
  bottom: -30%;
  left: -30%;
  inset: -30%;
  border-radius: 50%;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.42) 48%, transparent 66%);
  content: "";
  opacity: 0;
  transform: translateX(-42%);
  pointer-events: none;
}

.nav-dock-button svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-dock-button:active {
  transform: scale(0.84, 1.1);
}

.nav-dock-button.is-bouncing {
  animation: liquid-bounce 400ms cubic-bezier(0.2, 1.45, 0.35, 1);
}

.nav-dock-button.is-bouncing::before {
  animation: glass-sheen 400ms ease-out;
}

.nav-dock-button.is-pending {
  animation: pulse-pending 1s ease-in-out infinite;
}

.nav-dock-button:focus-visible,
.nav-dock-handle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

@media (hover: hover) {
  .nav-dock-button:hover {
    border-color: rgba(255, 255, 255, 0.38);
    background-color: rgba(255, 255, 255, 0.13);
  }
}

/* A/V sync panel: sits above the dock, same glass tone, opened by the dock's
   sync button or a three-finger hold. Driving-first sizing — every control is a
   56px touch target, and the values read at a glance instead of on a slider. */
.sync-panel {
  position: absolute;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 152px);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.035) 42%, rgba(12, 14, 20, 0.38)),
    rgba(24, 26, 33, 0.86);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 48px rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.94);
  touch-action: none;
  transform: translateX(-50%);
}

.sync-panel[hidden] {
  display: none;
}

.sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
}

.sync-switch,
.sync-step {
  position: relative;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: inherit;
  cursor: pointer;
}

.sync-switch {
  flex: 0 0 96px;
  width: 96px;
  height: 56px;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.sync-switch[aria-checked="true"] {
  border-color: var(--accent);
  background-color: var(--accent);
}

.sync-switch-knob {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 160ms cubic-bezier(0.2, 1.3, 0.32, 1);
}

.sync-switch[aria-checked="true"] .sync-switch-knob {
  transform: translateX(38px);
}

.sync-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-step {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.sync-step:active {
  transform: scale(0.9);
}

.sync-value {
  min-width: 84px;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.sync-reset {
  align-self: center;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sync-switch:focus-visible,
.sync-step:focus-visible,
.sync-reset:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

@keyframes liquid-bounce {
  0% { transform: scale(1); border-radius: 50%; }
  30% { transform: scale(0.8, 1.16); border-radius: 44% 56% 48% 52%; }
  58% { transform: scale(1.1, 0.9); border-radius: 54% 46% 56% 44%; }
  78% { transform: scale(0.96, 1.05); border-radius: 48% 52% 46% 54%; }
  100% { transform: scale(1); border-radius: 50%; }
}

@keyframes glass-sheen {
  0% { opacity: 0; transform: translateX(-42%); }
  35% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(42%); }
}

@keyframes pulse-pending {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dock,
  .nav-dock::before,
  .nav-dock::after,
  .nav-dock-handle,
  .nav-dock-actions {
    transition-duration: 100ms;
    transition-timing-function: linear;
  }

  .nav-dock.is-dragging {
    transform: translateX(-50%);
  }

  .nav-dock-button:active {
    transform: none;
  }

  .nav-dock-button.is-bouncing,
  .nav-dock-button.is-bouncing::before {
    animation: none;
  }

  .nav-dock-button.is-pending {
    animation: none;
    opacity: 0.72;
  }

  .sync-switch,
  .sync-switch-knob {
    transition: none;
  }

  .sync-step:active {
    transform: none;
  }
}
