/* Mobile redesign. The original cockpit and sedan selectors keep their own CSS. */
[hidden] { display: none !important; }
.mobile-redesign .app-header { height:76px; padding:0 32px; background:#0b0b0c; border-bottom:1px solid var(--tesla-line); }
.mobile-redesign .brand-cluster { gap:10px; }
.mobile-redesign .nav-tabs { background:var(--tesla-elevated); border-radius:12px; padding:4px; gap:3px; }
.mobile-redesign .nav-tab { min-height:42px; border:0; border-radius:9px; padding:10px 24px; letter-spacing:0; font-weight:600; }
.mobile-redesign .nav-tab.active { background:#303236; color:#fff; box-shadow:none; }
.mobile-redesign .nav-tab.disabled { opacity:.38; }
.mobile-redesign .status-pill { border:0; background:none; font-size:11px; }
.mobile-redesign .header-right { gap:12px; }
.mobile-redesign .advanced-toggle-label { font-size:11px; }
.mobile-redesign .tab-view { padding:0; }
.mobile-redesign .recordings-grid { display:grid; grid-template-columns:minmax(340px,480px) minmax(0,1fr); gap:40px; max-width:1480px; margin:auto; padding:36px 32px 60px; height:auto; min-height:calc(100dvh - 76px); overflow:visible; }
.mobile-redesign .drives-sidebar { background:none; border:0; border-radius:0; max-height:none; overflow:visible; }
.library-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:32px; }
.library-eyebrow { display:block; color:var(--tesla-faint); font-size:10px; font-weight:600; letter-spacing:2px; margin-bottom:8px; }
.library-heading h1 { font-size:34px; font-weight:600; letter-spacing:-1.3px; line-height:1.2; margin:0 0 10px; }
.library-heading p { color:var(--tesla-muted); font-size:12px; }
.library-refresh { border:1px solid var(--tesla-line); border-radius:50%; width:42px; height:42px; background:var(--tesla-panel); color:var(--tesla-ink); font-size:23px; cursor:pointer; }
.library-list-caption { display:flex; justify-content:space-between; color:var(--tesla-faint); font-size:10px; letter-spacing:1.5px; margin-bottom:18px; }
.mobile-redesign .drive-cards-list { padding:0; max-height:none; overflow:visible; gap:0; }
.mobile-redesign .date-group { margin:0 0 28px; }
.mobile-redesign .date-group-header { display:block; position:static; background:none; border:0; padding:0; margin:0 0 12px; color:var(--tesla-muted); font-size:12px; font-weight:500; letter-spacing:.2px; }
.mobile-redesign .drive-card { position:relative; background:var(--tesla-panel); border:1px solid var(--tesla-line); border-radius:18px; padding:22px; margin:0 0 14px; box-shadow:none; cursor:default; transition:border-color .15s; }
.mobile-redesign .drive-card.active { border-color:rgba(61,168,242,.6); background:var(--tesla-panel); box-shadow:none; }
.mobile-redesign .drive-card::before,.mobile-redesign .drive-card::after { display:none; }
.mobile-redesign .drive-card-header { display:flex; justify-content:space-between; align-items:start; padding:0; border:0; margin:0; gap:12px; }
.drive-departure { font-size:25px; line-height:1.2; font-weight:550; letter-spacing:-.7px; margin:0 0 7px; }
.drive-card-summary { color:var(--tesla-muted); font-size:12px; }.drive-card-summary span {margin:0 5px;opacity:.6;}
.drive-storage { color:var(--tesla-faint); border:1px solid var(--tesla-line); border-radius:6px; padding:4px 7px; font-size:10px; white-space:nowrap; }
.drive-route-summary { display:flex; align-items:center; gap:8px; color:var(--tesla-muted); margin:20px 0; font-size:12px; line-height:1.6; }
.route-marker { width:6px; height:6px; border:1px solid var(--tesla-faint); border-radius:50%; flex:none; }
.mobile-redesign .drive-card-actions { display:flex; flex-direction:column; padding:0; border:0; gap:9px; margin:0; }
.drive-play { width:100%; min-height:46px; display:flex; justify-content:center; align-items:center; gap:9px; border:0; border-radius:10px; color:#07141e; background:var(--m-blue); font:600 13px inherit; font-family:inherit; cursor:pointer; }
.drive-secondary-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.mobile-redesign .btn-view-entire-drive,.mobile-redesign .btn-toggle-recordings { display:flex; justify-content:center; gap:10px; align-items:center; border:1px solid var(--tesla-line); background:var(--tesla-elevated); border-radius:10px; min-height:42px; padding:9px; margin:0; font-size:12px; font-weight:500; color:var(--tesla-muted); cursor:pointer; width:100%; }
.mobile-redesign .drive-recordings-drawer { border:0; padding:0; max-height:none; }.mobile-redesign .drive-recordings-drawer.open { padding-top:12px; display:block; }
.mobile-redesign .recording-clip-row { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:60px; padding:12px 0; border:0; border-top:1px solid var(--tesla-line); background:none; text-align:left; color:var(--tesla-ink); font-family:inherit; cursor:pointer; }
.recording-clip-row strong {display:block;font-size:12px;font-weight:500;}.recording-clip-row small {display:block;font-size:10px;color:var(--tesla-faint);margin-top:4px;}.clip-row-play {color:var(--m-blue);padding:10px;}
.mobile-redesign .drive-overview-stage { position:relative; background:var(--tesla-panel); border:1px solid var(--tesla-line); border-radius:20px; padding:26px; align-self:start; min-width:0; min-height:480px; }
.overview-placeholder {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:48px;background:var(--tesla-panel);border-radius:20px;z-index:2;}
.overview-placeholder h2 {font-size:clamp(30px,4vw,52px);font-weight:500;letter-spacing:-1.8px;line-height:1.15;margin:12px 0 20px;}.overview-placeholder p {color:var(--tesla-muted);max-width:280px;line-height:1.8;}
.back-link {border:0;background:none;color:var(--tesla-muted);font-family:inherit;font-size:12px;min-height:44px;cursor:pointer;padding:8px 0;text-align:left;}
.mobile-redesign .drive-overview-stage>.back-link {display:none;}
.mobile-redesign .overview-header-row {margin-bottom:26px;}.mobile-redesign .overview-title {font-size:22px;letter-spacing:-.5px;font-weight:550;}.mobile-redesign .overview-subtitle {font-size:11px;line-height:1.8;}
.mobile-redesign .overview-play-btn {min-height:44px;padding:10px 18px;background:var(--m-blue);border:0;border-radius:10px;color:#07141e;white-space:nowrap;}
.mobile-redesign .endpoints-row {gap:10px;}.mobile-redesign .endpoint-card {background:var(--tesla-elevated);border:0;border-radius:12px;padding:16px;}.mobile-redesign .endpoint-address {font-size:13px;line-height:1.6;}.mobile-redesign .endpoint-time {font-size:11px;}
.mobile-redesign .overview-map-card {border-radius:12px;overflow:hidden;min-height:200px;margin:16px 0;}
.mobile-redesign .metrics-grid {gap:8px;}.mobile-redesign .metric-card {border:0;background:var(--tesla-elevated);border-radius:12px;padding:16px;}.mobile-redesign .metric-val {font-size:20px;}.mobile-redesign .metric-label {font-size:9px;}
.mobile-redesign .drive-segments-box {padding:20px 0 0;background:none;border:0;}.mobile-redesign .segment-item {font-size:11px;min-height:58px;gap:10px;}.mobile-redesign .segment-item>div {line-height:1.9;}.mobile-redesign .segment-item>div>span {display:block;margin:0 !important;}.mobile-redesign .segment-item button {min-height:40px;min-width:52px;}
.playback-heading {max-width:1480px;margin:auto;padding:22px 32px 0;display:flex;align-items:center;gap:24px;}.playback-heading h1 {font-size:19px;font-weight:550;letter-spacing:-.4px;}.playback-heading p {display:flex;gap:14px;color:var(--tesla-muted);font-size:11px;margin-top:5px;}#playbackStatus[data-state=error] {color:var(--m-red);}#playbackStatus[data-state=buffering] {color:var(--m-blue);}
.mobile-redesign .playback-grid {max-width:1480px;margin:auto;padding:24px 32px 60px;gap:20px;grid-template-columns:300px minmax(0,1fr);height:auto;min-height:0;overflow:visible;}
.mobile-redesign .playback-stage {min-width:0;overflow:visible;}.mobile-redesign .player-stage {height:auto;overflow:visible;border-radius:20px;}.mobile-redesign .canvas-viewport {width:100%;aspect-ratio:4/3;min-height:0;max-height:65dvh;}.mobile-redesign #videoCanvas {width:100%;height:100%;object-fit:contain;}
.mobile-redesign .transport-panel {padding:18px 20px 20px;overflow:visible;}.mobile-redesign .scrubber-bar-row {display:flex;gap:14px;align-items:center;}.mobile-redesign .scrub-slider {min-width:0;flex:1;height:28px;touch-action:pan-y;}.mobile-redesign .timecode-display {white-space:nowrap;font-size:10px;}.mobile-redesign .transport-action-row {margin-top:12px;}.mobile-redesign .action-btn {min-height:44px;}
.drive-timeline {border-bottom:1px solid var(--tesla-line);padding:0 0 16px;margin:0 0 14px;}.timeline-heading {display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:9px;font-weight:550;letter-spacing:1px;color:var(--tesla-muted);margin-bottom:16px;}.timeline-heading>span:last-child {letter-spacing:0;font-size:10px;font-weight:400;color:var(--tesla-ink);}
.drive-timeline-track {position:relative;height:20px;background:#25272b;border-radius:4px;overflow:hidden;}.timeline-segment {position:absolute;height:100%;top:0;background:#285778;border:0;border-right:2px solid var(--tesla-panel);min-width:2px;cursor:pointer;}.timeline-segment.current {background:var(--m-blue);}
.drive-timeline-input {display:block;width:100%;height:36px;margin:-28px 0 -8px;position:relative;z-index:1;accent-color:#fff;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;touch-action:pan-y;}.drive-timeline-input::-webkit-slider-runnable-track {background:transparent;height:2px;}.drive-timeline-input::-webkit-slider-thumb {appearance:none;-webkit-appearance:none;width:14px;height:24px;border-radius:4px;background:#fff;margin-top:-11px;box-shadow:0 0 0 2px #0b0b0c;}.drive-timeline-input::-moz-range-track {background:transparent;}.drive-timeline-input::-moz-range-thumb {width:12px;height:22px;border-radius:4px;background:#fff;}
.timeline-scale {display:flex;justify-content:space-between;font-size:9px;color:var(--tesla-faint);margin-top:9px;}.timeline-feedback {color:var(--tesla-muted);font-size:10px;margin-top:6px;}.timeline-feedback:empty {display:none;}.clip-timeline-label {font-size:9px;letter-spacing:1px;color:var(--tesla-faint);margin-bottom:4px;}
.playback-buffering {font-size:11px;color:var(--m-blue);display:flex;align-items:center;gap:8px;padding-bottom:12px;}.inline-spinner {height:12px;width:12px;border:2px solid #285778;border-top-color:var(--m-blue);border-radius:50%;animation:bvspin .9s linear infinite;}@keyframes bvspin {to{transform:rotate(360deg);}}
.mobile-redesign .loading-modal-backdrop {background:rgba(0,0,0,.78);backdrop-filter:blur(14px);z-index:2000;padding:24px;}.mobile-redesign .loading-modal-card {display:flex;flex-direction:column;align-items:center;text-align:center;max-width:390px;width:100%;padding:34px 26px;border-radius:22px;background:var(--tesla-panel);border:1px solid var(--tesla-line);}.mobile-redesign .loading-modal-title {font-size:21px;font-weight:550;letter-spacing:-.6px;margin-top:8px;}.mobile-redesign .loading-modal-status {font-size:12px;line-height:1.8;margin-top:10px;color:var(--tesla-muted);}.loading-progress {font-size:10px;color:var(--tesla-faint);margin:16px 0;}.loading-actions {display:flex;gap:10px;margin-top:16px;justify-content:center;}.loading-actions button {min-height:44px;border:1px solid var(--tesla-line);background:var(--tesla-elevated);padding:10px 24px;border-radius:10px;color:#fff;font-family:inherit;cursor:pointer;}.loading-actions #loadingRetryBtn {background:var(--m-blue);color:#07141e;}.has-error .loading-spinner-ring {display:none;}
.mobile-redesign .modal-sheet {max-height:calc(100dvh - 32px);overflow:auto;}.mobile-redesign .modal-backdrop {z-index:1100;padding:16px;}.mobile-redesign .modal-row {gap:16px;}.export-note {font-size:12px;line-height:1.9;color:var(--tesla-muted);margin-bottom:20px;}#nativeDownloadLink {text-decoration:none;display:flex;align-items:center;justify-content:center;min-height:48px;}
.mobile-redesign button:focus-visible,.mobile-redesign a:focus-visible,.mobile-redesign input:focus-visible {outline:2px solid var(--m-blue);outline-offset:4px;}
@media(min-width:1400px){.mobile-redesign .playback-grid {grid-template-columns:320px minmax(0,1fr);}}
@media(max-width:1000px){.mobile-redesign .header-right .status-pill{display:none;}.mobile-redesign .recordings-grid{gap:22px;grid-template-columns:minmax(310px,400px) minmax(0,1fr);padding:28px 20px;}.mobile-redesign .drive-overview-stage{padding:20px;}.mobile-redesign .overview-header-row{flex-wrap:wrap;}.mobile-redesign .endpoints-row{grid-template-columns:1fr;}.mobile-redesign .playback-grid{grid-template-columns:270px minmax(0,1fr);padding:20px;}.mobile-redesign .canvas-viewport{max-height:none;}}
@media(max-width:760px){
 .mobile-redesign .app-header{height:auto;min-height:120px;display:grid;grid-template-columns:1fr auto;gap:14px;padding:18px 20px 12px;position:relative;}
 .mobile-redesign .header-left{grid-column:1;grid-row:1;}.mobile-redesign .header-right{grid-column:2;grid-row:1;}.mobile-redesign .header-right .advanced-toggle-label{display:none;}.mobile-redesign .app-logo{height:25px;width:auto;}.mobile-redesign .brand-wordmark{height:15px;max-width:160px;}.mobile-redesign .nav-tabs{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;width:100%;}.mobile-redesign .nav-tab{justify-content:center;padding:8px 16px;min-height:42px;font-size:12px;}.mobile-redesign .nav-tab svg{width:14px;height:14px;}
 .mobile-redesign .recordings-grid{display:block;min-height:0;padding:28px 20px 40px;}.mobile-redesign .drives-sidebar{width:100%;}.mobile-redesign .drive-overview-stage{display:none;}.mobile-redesign .detail-open .drives-sidebar{display:none;}.mobile-redesign .detail-open .drive-overview-stage{display:block;border:0;border-radius:0;background:none;padding:0;min-height:0;}.mobile-redesign .detail-open .drive-overview-stage>.back-link{display:block;margin-bottom:12px;}.mobile-redesign .overview-placeholder{display:none;}.mobile-redesign .detail-open .overview-header-row{display:block;}.mobile-redesign .overview-play-btn{width:100%;justify-content:center;margin-top:18px;}.mobile-redesign .overview-map-card{height:240px;}.mobile-redesign .endpoints-row{display:grid;grid-template-columns:1fr 1fr;}.mobile-redesign .endpoint-card{padding:14px;}.mobile-redesign .endpoint-address{font-size:11px;}.mobile-redesign .endpoint-time{font-size:10px;}
 .library-heading{margin-bottom:28px;}.library-heading h1{font-size:32px;}.mobile-redesign .drive-card{padding:20px;}.mobile-redesign .date-group-header{font-size:11px;margin-bottom:13px;}.drive-departure{font-size:25px;}.mobile-redesign .drive-cards-list{display:block;}.drive-play{min-height:48px;}.mobile-redesign .btn-view-entire-drive,.mobile-redesign .btn-toggle-recordings{min-height:44px;}
 .playback-heading{padding:14px 16px 0;display:block;}.playback-heading>.back-link{min-height:34px;margin-bottom:6px;}.playback-heading h1{font-size:17px;}.playback-heading p{font-size:10px;gap:10px;flex-wrap:wrap;}.mobile-redesign .playback-grid{display:flex;flex-direction:column;padding:18px 12px 32px;gap:14px;}.mobile-redesign .playback-stage{order:0;width:100%;}.mobile-redesign .playback-sidebar{order:1;width:100%;}.mobile-redesign .canvas-viewport{aspect-ratio:4/3;max-height:none;}.mobile-redesign .transport-panel{padding:16px 16px 18px;}.mobile-redesign .player-stage{border-radius:18px;}.timeline-heading{display:block;line-height:1.8;margin-bottom:12px;}.timeline-heading>span:last-child{display:block;}.mobile-redesign .timecode-display{font-size:9px;}.mobile-redesign .transport-action-row{flex-wrap:wrap;gap:12px;}.mobile-redesign .transport-secondary-actions{margin-left:auto;}.mobile-redesign .modal-header{padding:20px;}.mobile-redesign .modal-body{padding:20px;}.mobile-redesign .modal-title{font-size:19px;}.mobile-redesign .modal-select{max-width:58%;font-size:12px;}
}
@media(prefers-reduced-motion:reduce){.mobile-redesign *{scroll-behavior:auto !important;}.mobile-redesign .loading-spinner-ring,.inline-spinner{animation-duration:2s;}}
.mobile-redesign .drive-secondary-actions { width:100%; }
.mobile-redesign .drive-secondary-actions button { max-width:none; }
.mobile-redesign .scrub-slider { appearance:none;-webkit-appearance:none;background:transparent; }
.mobile-redesign .scrub-slider::-webkit-slider-runnable-track { height:3px;background:#35373a;border-radius:2px; }
.mobile-redesign .scrub-slider::-webkit-slider-thumb { appearance:none;-webkit-appearance:none;width:14px;height:14px;background:white;border-radius:50%;margin-top:-5.5px; }
.mobile-redesign .scrub-slider::-moz-range-track { height:3px;background:#35373a; }
.mobile-redesign .scrub-slider::-moz-range-thumb { width:14px;height:14px;border:0;background:white;border-radius:50%; }
.mobile-redesign .modal-backdrop { visibility:hidden; }
.mobile-redesign .modal-backdrop.open { visibility:visible; }
.mobile-redesign .app-shell { height:auto;min-height:100dvh;overflow:visible; }
.mobile-redesign .tab-view { height:auto;overflow:visible;flex:none; }
.mobile-redesign .drive-overview-stage { height:auto;overflow:visible; }
.mobile-redesign .drive-overview-stage>div { flex-shrink:0; }
.mobile-redesign .metrics-grid { grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;border:0;background:none; }
.mobile-redesign .drive-segments-box { max-height:none;overflow:visible; }
.mobile-redesign .playback-sidebar { height:auto;align-self:start; }
@media(max-width:640px){.mobile-redesign .metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }}
.identify-prompt-badge { background:rgba(61,168,242,0.18);border:1px solid var(--m-blue);color:var(--m-blue);font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;letter-spacing:0.5px;text-transform:uppercase; }

/* Export Preview & Blinker Bar Overlays */
.export-preview-card {
  margin-bottom: 18px;
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}
.export-preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.export-preview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #94a3b8;
}
.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m-blue, #3da8f2);
  box-shadow: 0 0 8px rgba(61, 168, 242, 0.6);
}
.export-preview-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--m-blue, #3da8f2);
  background: rgba(61, 168, 242, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}
.export-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  background: #080a0f;
  display: flex;
  align-items: center;
  justify-content: center;
}
#exportPreviewCanvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.export-section {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.export-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
.quick-toggle-group {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.quick-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.quick-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.metadata-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 440px) {
  .metadata-toggle-grid {
    grid-template-columns: 1fr;
  }
}
.meta-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  min-height: 42px;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
}
.meta-toggle-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.meta-toggle-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.meta-toggle-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.meta-toggle-item input:checked + .meta-toggle-check {
  background: var(--m-blue, #3da8f2);
  border-color: var(--m-blue, #3da8f2);
}
.meta-toggle-item input:checked + .meta-toggle-check::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: solid #0b1118;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.meta-toggle-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  transition: color 0.15s;
}
.meta-toggle-item input:checked ~ .meta-toggle-title {
  color: #ffffff;
  font-weight: 550;
}
.export-brand-hint {
  margin-top: 12px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}
.mobile-redesign .identify-action-btn { min-height:44px;display:flex;align-items:center;justify-content:center; }
.mobile-redesign #doneIdentifyBtn { min-height:44px;background:var(--m-blue);color:#07141e;font-weight:700; }


/* Fixed-scale footage ruler: 5 px per second on every screen. */
.mobile-redesign .transport-panel {padding:8px 14px 10px;}
.mobile-redesign .scrubber-bar-row[hidden] {display:none;}
.mobile-redesign .drive-timeline {border:0;padding:0;margin:0;}
.mobile-redesign .timeline-heading {display:flex;justify-content:space-between;line-height:1.4;margin:0 0 4px;font-size:8px;letter-spacing:.7px;}
.mobile-redesign .timeline-heading .timeline-position {display:inline;font-size:9px;white-space:nowrap;}
.timeline-viewport {position:relative;height:58px;overflow:hidden;touch-action:pan-y;cursor:grab;border-radius:6px;background:#171a1f;user-select:none;-webkit-user-select:none;outline-offset:3px;}
.timeline-viewport:active {cursor:grabbing;}
.timeline-viewport:focus-visible {outline:2px solid var(--m-blue);}
.mobile-redesign .timeline-viewport .drive-timeline-track {position:absolute;left:0;right:0;top:26px;height:25px;overflow:hidden;border-radius:0;background:repeating-linear-gradient(120deg,#25272b,#25272b 4px,#1c1e22 4px,#1c1e22 8px);pointer-events:none;}
.mobile-redesign .timeline-segment {position:absolute;display:flex;align-items:center;justify-content:flex-start;padding-left:8px;color:#d5e6f5;font:10px system-ui;box-sizing:border-box;border-right:2px solid #0c1015;cursor:inherit;}
.timeline-ruler {position:absolute;inset:0;pointer-events:none;}
.timeline-ruler span {position:absolute;top:4px;transform:translateX(-50%);color:#a1a9b5;font:9px system-ui;white-space:nowrap;}
.timeline-ruler span::after {content:'';position:absolute;left:50%;top:14px;height:6px;border-left:1px solid #727b89;}
.timeline-playhead {position:absolute;left:50%;top:22px;bottom:3px;width:2px;transform:translateX(-1px);background:#fff;box-shadow:0 0 3px #000;pointer-events:none;}
.timeline-playhead::before {content:'';position:absolute;left:-4px;top:-3px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #fff;}
.mobile-redesign .transport-action-row {display:flex;align-items:center;justify-content:center;gap:12px;margin-top:6px;}
.mobile-redesign .playback-controls {margin:0;}
.mobile-redesign .recording-actions {display:flex;gap:6px;padding:8px;background:var(--tesla-panel);border:1px solid var(--tesla-line);border-radius:12px;}
.mobile-redesign .recording-actions .export-btn {flex:1;justify-content:center;min-width:0;min-height:40px;padding:8px 6px;font-size:11px;white-space:nowrap;}
.camera-review-action {display:flex;gap:8px;align-items:center;margin-top:-6px;}
.camera-review-action>span {font-size:10px;color:var(--tesla-muted);}
.camera-review-action .export-btn {min-height:36px;font-size:11px;padding:6px 10px;}
.identify-save-status {font-size:12px;line-height:1.5;color:#efc17b;margin:0 0 10px;}
.identify-save-status:empty {display:none;}
@media(max-width:700px){.mobile-redesign .transport-panel{padding:8px 10px 10px;}.mobile-redesign .timeline-heading{gap:6px;}.camera-review-action>span{font-size:11px;}}

/* Keep the compact transport visible alongside the video at laptop heights. */
@media(min-width:701px){.mobile-redesign .canvas-viewport {max-height:max(220px,calc(100dvh - 390px));}}
/* Camera identification already lives in the selector's Identify button. */
.mobile-redesign .camera-review-action {display:none;}

/* Stable clip identity across scrolling: BMW M light blue, dark blue, red. */
.mobile-redesign .timeline-segment[data-m-color="0"] {background:var(--m-blue);color:#061b2b;}
.mobile-redesign .timeline-segment[data-m-color="1"] {background:var(--m-indigo);color:#fff;}
.mobile-redesign .timeline-segment[data-m-color="2"] {background:var(--m-red);color:#fff;}
.mobile-redesign .timeline-segment.current {box-shadow:inset 0 0 0 2px rgba(255,255,255,.7);font-weight:700;}
/* Reserve a compact status line so buffering never moves transport controls. */
.mobile-redesign #playbackProgress {height:18px;min-height:18px;box-sizing:border-box;margin-top:2px;padding:0;line-height:18px;white-space:nowrap;}
.mobile-redesign #playbackProgress[hidden] {display:flex !important;visibility:hidden;}
.mobile-redesign #playbackProgress[hidden] .inline-spinner {animation-play-state:paused;}

.release-notice {display:flex;align-items:center;gap:14px;padding:12px 24px;margin:12px 24px 0;border:1px solid #285778;border-radius:12px;background:#101d29;font-size:12px;line-height:1.5;color:#ecf5ff;}
.release-notice a {color:#82caff;white-space:nowrap;}
.release-notice button {margin-left:auto;min-width:32px;min-height:32px;background:transparent;border:0;color:#fff;font-size:22px;cursor:pointer;}
.release-check-status {font-size:12px;line-height:1.6;color:var(--tesla-muted);margin:10px 0;}
.recording-notice {flex-shrink:0;margin:10px 24px 0;padding:12px 16px;border:1px solid #73542a;border-radius:10px;background:#282015;color:#ffe0a7;font-size:13px;line-height:1.5;}
.recording-notice[hidden] {display:none !important;}
.recording-notice-inline {margin:12px 0 0;text-align:left;}
@media(max-width:700px){.recording-notice:not(.recording-notice-inline){margin:10px 12px 0;}}
@media(max-width:700px){.release-notice{margin:10px 12px 0;padding:10px 12px;flex-wrap:wrap;gap:8px;}.release-notice>span{flex:1 1 75%;}.release-notice a{order:2;}}
