/* Scoped subset of the released desktop stylesheet; generated by ops/marketing/build-landing-demo.cjs. */

.desktop-demo { margin: 0 0 4rem; }
.demo-intro { display:flex; align-items:end; justify-content:space-between; gap:2rem; margin-bottom:1.35rem; }
.demo-kicker { color:var(--orange); font-size:.75rem; font-weight:650; letter-spacing:.1em; }
.demo-intro h3 { margin:.4rem 0 0; font-size:1.6rem; font-weight:650; letter-spacing:-.035em; }
.demo-context { display:flex; align-items:center; gap:1rem; color:var(--muted); font-size:.8125rem; }
.demo-context > span { border:1px solid #49515a; border-radius:4px; padding:.25rem .5rem; }
.demo-context button { padding:.45rem 0; border:0; border-bottom:1px solid #64717e; color:#d8dee5; background:none; font:600 .875rem var(--body); cursor:pointer; }
.demo-example { margin:.45rem 0 0; color:var(--muted); font-size:.875rem; }
.demo-announcement { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.desktop-app {
  color-scheme: dark;
  --bg: #080b0e;
  --panel: #0d1217;
  --surface: #141a20;
  --surface-2: #1b2229;
  --surface-3: #242b32;
  --field: #0d1217;
  --line: #2f3842;
  --line-soft: rgba(255, 255, 255, .08);
  --text: #E5E7EB;
  --muted: #a8b0ba;
  --muted-2: #7e8894;
  --red: #f15a24;
  --red-hover: #ff6a32;
  --green: #36d47c;
  --green-soft: rgba(54, 212, 124, .15);
  --silver: #E5E7EB;
  --silver-hover: #2f3842;
  --amber: #d6a23e;
  --danger: #d86b6b;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .26);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
 --orange:#f15a24; isolation:isolate; container-type:inline-size; width:100%; color:var(--text); background:var(--bg); font:14px/1.45 "Segoe UI",system-ui,sans-serif; border:1px solid #48515b; border-radius:9px; overflow:hidden; box-shadow:0 28px 70px #0006; }
.desktop-app *, .desktop-app *::before, .desktop-app *::after { box-sizing:border-box; }
.desktop-app h1, .desktop-app h2, .desktop-app h3, .desktop-app h4 { font-family:inherit; font-style:normal; font-weight:700; text-transform:none; letter-spacing:0; }
.desktop-app h1 { font-size:25px; line-height:1.1; margin:0; }
.desktop-app h2 { font-size:20px; line-height:1.2; margin:0 0 6px; }
.desktop-app h3 { font-size:18px; margin:0 0 6px; }
.desktop-app p { margin:0; color:var(--muted); }
.desktop-app button, .desktop-app input, .desktop-app select { font-family:inherit; }
.desktop-app button,
.desktop-app input,
.desktop-app select,
.desktop-app textarea {
  font: inherit;
}
.desktop-app button {
  color: inherit;
}
.desktop-app h1,
.desktop-app h2,
.desktop-app p {
  margin-top: 0;
}
.desktop-app h1,
.desktop-app h2 {
  letter-spacing: 0;
}
.desktop-app h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.1;
}
.desktop-app h2 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.2;
}
.desktop-app p {
  margin-bottom: 0;
  color: var(--muted);
}
.desktop-app .app-window {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: 34px auto minmax(0, 1fr);
  background: var(--bg);
}
.desktop-app .desktop-update-slot {
  height: 0;
  min-height: 0;
  overflow: hidden;
}
.desktop-app .titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #202020;
  user-select: none;
}
.desktop-app .titlebar-title {
  padding-left: 12px;
  color: #d9dedb;
  font-size: 13px;
  font-weight: 700;
}
.desktop-app .shell {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: clamp(190px, 19vw, 244px) minmax(0, 1fr);
}
.desktop-app .sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 18px 18px;
  border-right: 1px solid var(--line-soft);
  background: var(--panel);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.desktop-app .brand {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.desktop-app .brand img {
  width: min(188px, 100%);
  height: auto;
  object-fit: contain;
}
.desktop-app .nav-group {
  display: grid;
  gap: 8px;
}
.desktop-app .nav-label {
  padding: 0 6px 4px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.desktop-app .nav-item {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .nav-item .btn-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.desktop-app .nav-item:hover,
.desktop-app .nav-item.is-active {
  background: var(--surface-2);
  color: var(--text);
}
.desktop-app .nav-item:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.desktop-app .nav-item:disabled:hover {
  background: transparent;
  color: var(--muted);
}
.desktop-app .nav-item.is-active:disabled {
  background: var(--surface-2);
  color: var(--text);
}
.desktop-app .main-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(78px, auto) minmax(0, 1fr);
}
.desktop-app .topbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 12, 16, .94);
}
.desktop-app .topbar h1 {
  min-width: 0;
  flex: 1 1 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .topbar-actions {
  min-width: 0;
  flex: 1 1 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.desktop-app .content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 24px 28px 28px;
}
.desktop-app .content-cpc-detail {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}
.desktop-app .flash-lifecycle-banner {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.desktop-app .flash-lifecycle-banner > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.desktop-app .flash-lifecycle-banner strong,
.desktop-app .flash-lifecycle-banner span,
.desktop-app .flash-lifecycle-banner small {
  display: block;
}
.desktop-app .flash-lifecycle-banner strong {
  font-size: 14px;
}
.desktop-app .flash-lifecycle-banner span,
.desktop-app .flash-lifecycle-banner small {
  font-size: 12px;
  line-height: 1.45;
}
.desktop-app .flash-lifecycle-banner.is-active {
  border-color: rgba(89, 176, 255, .46);
  background: rgba(38, 113, 174, .18);
  color: #d9efff;
}
.desktop-app .flash-lifecycle-banner.is-error,
.desktop-app .flash-lifecycle-banner.is-recovery {
  border-color: rgba(216, 107, 107, .55);
  background: rgba(139, 43, 43, .22);
  color: #ffd9d9;
}
.desktop-app .interface-id-grid .info-row {
  min-height: 46px;
}
.desktop-app .interface-id-grid .info-row span {
  font-size: 14px;
}
.desktop-app .interface-id-grid .info-row strong {
  font-size: 15px;
}
.desktop-app .kicker {
  margin: 0;
  color: var(--silver);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.desktop-app .field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.desktop-app input,
.desktop-app select,
.desktop-app textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: var(--field);
  color: var(--text);
}
.desktop-app textarea {
  min-height: 104px;
  resize: vertical;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
}
.desktop-app input::placeholder,
.desktop-app textarea::placeholder {
  color: #68747a;
}
.desktop-app input:focus,
.desktop-app select:focus,
.desktop-app textarea:focus {
  border-color: var(--silver);
  box-shadow: 0 0 0 3px rgba(229, 231, 235, .16);
}
.desktop-app .btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.desktop-app .btn:disabled {
  cursor: default;
  opacity: .46;
}
.desktop-app .btn-primary {
  background: var(--red);
  color: #fff;
}
.desktop-app .btn-primary:not(:disabled):hover {
  background: var(--red-hover);
}
.desktop-app .btn-secondary {
  background: #242b32;
  color: #fff;
}
.desktop-app .btn-secondary:not(:disabled):hover {
  background: var(--silver-hover);
}
.desktop-app .btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
}
.desktop-app .btn-ghost:not(:disabled):hover {
  border-color: rgba(229, 231, 235, .8);
  background: rgba(229, 231, 235, .08);
}
.desktop-app .btn.compact {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 13px;
}
.desktop-app .action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.desktop-app .status-pill {
  min-width: 142px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10161b;
}
.desktop-app .status-pill.is-good {
  border-color: rgba(54, 212, 124, .45);
  background: var(--green-soft);
}
.desktop-app .status-pill.is-good strong {
  color: #dffbea;
}
.desktop-app .status-pill.is-red {
  border-color: rgba(241, 90, 36, .55);
  background: rgba(241, 90, 36, .14);
}
.desktop-app .status-pill.is-red strong {
  color: #ffd8ce;
}
.desktop-app .status-pill.is-warn {
  border-color: rgba(214, 162, 62, .48);
  background: rgba(214, 162, 62, .12);
}
.desktop-app .status-pill strong {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.desktop-app .card {
  padding: 20px;
}
.desktop-app .garage-page {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  align-content: start;
  grid-template-rows: minmax(0, 1fr);
}
.desktop-app .vehicle-card {
  width: 100%;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto max-content max-content auto;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.desktop-app .vehicle-count-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(229, 231, 235, .4);
  border-radius: 999px;
  color: #E5E7EB;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.desktop-app .vehicle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.desktop-app .vehicle-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.desktop-app .vehicle-card-actions > .vehicle-count-pill {
  padding: 5px 10px;
  border: 1px solid rgba(229, 231, 235, .4);
  border-radius: 999px;
  color: #E5E7EB;
  font-size: 12px;
  font-weight: 900;
}
.desktop-app .vehicle-list {
  min-height: 0;
  height: auto;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  overflow: visible;
}
.desktop-app .vehicle-empty {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(9, 12, 16, .24);
}
.desktop-app .vehicle-empty h3 {
  margin: 0;
  font-size: 18px;
}
.desktop-app .vehicle-empty p {
  margin: 0;
  color: var(--muted);
}
.desktop-app .vehicle-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(9, 12, 16, .32);
}
.desktop-app .vehicle-row.is-connected {
  border-color: rgba(54, 212, 124, .5);
  animation: connected-pulse 2.4s ease-in-out infinite;
}
@keyframes connected-pulse{
  0%, 100% { box-shadow: 0 0 0 1px rgba(54, 212, 124, .28), 0 0 10px rgba(54, 212, 124, .16); }
  50% { box-shadow: 0 0 0 1px rgba(54, 212, 124, .5), 0 0 24px rgba(54, 212, 124, .38); }
}
@media (prefers-reduced-motion: reduce){
.desktop-app .vehicle-row.is-connected {
    animation: none;
    box-shadow: 0 0 0 1px rgba(54, 212, 124, .4), 0 0 16px rgba(54, 212, 124, .3);
  }
}
.desktop-app .connected-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(54, 212, 124, .45);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  vertical-align: 2px;
}
.desktop-app .connected-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(54, 212, 124, .18), 0 0 12px rgba(54, 212, 124, .55);
}
.desktop-app .vehicle-row-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.desktop-app .vehicle-title-block {
  min-width: 0;
}
.desktop-app .vehicle-title-block h2 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}
.desktop-app .vehicle-title-block p:not(.kicker) {
  overflow-wrap: anywhere;
}
.desktop-app .vehicle-details {
  display: grid;
  grid-template-columns: minmax(210px, 1fr);
  gap: 10px;
}
.desktop-app .vehicle-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.desktop-app .vehicle-meta span,
.desktop-app .module-list > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.desktop-app .vehicle-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.desktop-app .vehicle-note-field {
  width: min(100%, 560px);
  display: grid;
  gap: 4px;
  margin-top: 0;
}
.desktop-app .vehicle-note-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.desktop-app .vehicle-note-heading > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.desktop-app .vehicle-note-heading small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
}
.desktop-app .vehicle-note-heading small.is-saving {
  color: #e2bd68;
}
.desktop-app .vehicle-note-heading small.is-saved {
  color: #76d49b;
}
.desktop-app .vehicle-note-heading small.is-error {
  color: #f87171;
}
.desktop-app .vehicle-note-field input {
  width: 100%;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #24333a;
  border-radius: 6px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.desktop-app .vehicle-note-field input:focus {
  border-color: rgba(54, 212, 124, .58);
  box-shadow: 0 0 0 3px rgba(54, 212, 124, .08);
}
.desktop-app .module-list {
  width: min(100%, 520px);
  display: grid;
  gap: 8px;
}
.desktop-app .vehicle-row-actions {
  min-width: 0;
  display: grid;
  justify-items: end;
}
.desktop-app .module-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
}
.desktop-app .garage-module-button {
  min-width: 0;
  min-height: 60px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.desktop-app .garage-module-icon,
.desktop-app .garage-module-copy {
  min-width: 0;
}
.desktop-app .garage-module-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 231, 235, .18);
  border-radius: 7px;
  color: var(--muted);
}
.desktop-app .garage-module-copy {
  display: grid;
  gap: 3px;
}
.desktop-app .garage-module-copy strong,
.desktop-app .garage-module-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .garage-module-copy strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}
.desktop-app .garage-module-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.desktop-app .garage-module-button.is-enabled {
  border-color: rgba(54, 212, 124, .5);
  background: rgba(54, 212, 124, .07);
  box-shadow: 0 0 0 1px rgba(54, 212, 124, .12), 0 0 14px rgba(54, 212, 124, .12);
}
.desktop-app .garage-module-button.is-enabled .garage-module-icon {
  border-color: rgba(54, 212, 124, .36);
  background: rgba(54, 212, 124, .08);
  color: var(--green);
}
.desktop-app .garage-module-button.is-unavailable {
  cursor: default;
  opacity: .62;
}
.desktop-app .garage-module-button.is-unsupported {
  border-color: rgba(239, 68, 68, .3);
  background: rgba(239, 68, 68, .05);
  cursor: default;
  opacity: .72;
}
.desktop-app .garage-module-button.is-unsupported .garage-module-copy small,
.desktop-app .garage-module-button.is-unsupported .garage-module-icon {
  color: #f87171;
}
.desktop-app .garage-module-button.is-enabled:hover,
.desktop-app .garage-module-button.is-active {
  border-color: rgba(54, 212, 124, .72);
  background: rgba(54, 212, 124, .12);
  box-shadow: 0 0 0 1px rgba(54, 212, 124, .22), 0 0 20px rgba(54, 212, 124, .2);
  transform: translateY(-1px);
}
.desktop-app .garage-module-button.is-locked,
.desktop-app .garage-module-button.is-missing {
  cursor: default;
  opacity: .46;
  filter: saturate(.35);
}
.desktop-app .interface-card {
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 18px;
}
.desktop-app .interface-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.desktop-app .interface-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.desktop-app .interface-buttons {
  display: flex;
  gap: 10px;
}
.desktop-app .interface-buttons .btn {
  min-width: 118px;
}
@keyframes vehicle-read-spin{
  to { transform: rotate(360deg); }
}
@keyframes vehicle-read-sweep{
  from { transform: translateX(-105%); }
  to { transform: translateX(295%); }
}
.desktop-app .interface-steps {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.desktop-app .interface-step {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(9, 12, 16, .32);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}
.desktop-app .interface-step-num {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.desktop-app .interface-step-num .btn-icon {
  width: 12px;
  height: 12px;
}
.desktop-app .interface-step-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.desktop-app .interface-step.is-now {
  border-color: rgba(214, 162, 62, .45);
  color: #e3bd6e;
}
.desktop-app .interface-step.is-now .interface-step-num {
  background: rgba(214, 162, 62, .16);
  color: #e3bd6e;
}
.desktop-app .interface-step.is-done {
  border-color: rgba(54, 212, 124, .4);
  color: #9fd9ae;
}
.desktop-app .interface-step.is-done .interface-step-num {
  background: var(--green-soft);
  color: var(--green);
}
.desktop-app .interface-read-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.desktop-app .handoff-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(54, 212, 124, .4);
  border-radius: 6px;
  background: var(--green-soft);
  color: #9fd9ae;
  font-weight: 700;
}
.desktop-app .handoff-check {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--green);
}
.desktop-app .handoff-banner .handoff-text {
  flex: 1;
  min-width: 0;
}
.desktop-app .handoff-banner .btn {
  flex-shrink: 0;
}
.desktop-app .btn .btn-icon {
  flex-shrink: 0;
}
.desktop-app .interface-status-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.desktop-app .interface-status-panel,
.desktop-app .interface-log-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(9, 12, 16, .24);
}
.desktop-app .interface-log-panel {
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr);
}
.desktop-app .interface-id-grid .info-row {
  grid-template-columns: minmax(112px, .3fr) minmax(0, 1fr);
}
.desktop-app .interface-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.desktop-app .interface-output-head strong {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  text-transform: none;
}
.desktop-app .interface-activity-lines {
  height: 100%;
  min-height: 154px;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
}
.desktop-app .interface-activity-line {
  width: max-content;
  min-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: pre;
}
.desktop-app .module-panel {
  display: grid;
  gap: 14px;
  min-height: 0;
}
.desktop-app .cpc-module-panel {
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-content: stretch;
  overflow: visible;
}
.desktop-app .cpc-module-panel .card-head {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.desktop-app .cpc-read-required {
  flex: 0 0 auto;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(214, 162, 62, .42);
  border-radius: 6px;
  background: rgba(214, 162, 62, .1);
}
.desktop-app .cpc-read-required-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 162, 62, .38);
  border-radius: 50%;
  background: rgba(214, 162, 62, .12);
  color: var(--amber);
}
.desktop-app .cpc-read-required-icon svg {
  width: 15px;
  height: 15px;
}
.desktop-app .cpc-read-required-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.35;
}
.desktop-app .cpc-read-required-copy strong {
  flex: 0 0 auto;
  color: #f2d48c;
  font-size: 13px;
}
.desktop-app .cpc-read-required-copy span {
  color: var(--muted);
  font-size: 12.5px;
}
.desktop-app .cpc-workspace-grid {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .88fr);
  gap: 14px;
  align-items: stretch;
  overflow: visible;
}
.desktop-app .cpc-read-box,
.desktop-app .cpc-tune-box {
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  display: grid;
  grid-template-rows: auto;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(9, 12, 16, .22);
  overflow: visible;
}
.desktop-app .cpc-tune-box {
  grid-template-rows: auto auto auto auto;
  gap: 10px;
}
.desktop-app .cpc-read-box {
  grid-template-rows: auto auto auto auto;
  align-content: start;
}
.desktop-app .section-title-row,
.desktop-app .flash-screen-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.desktop-app .section-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}
.desktop-app .cpc-id-grid .info-row {
  grid-template-columns: minmax(116px, .24fr) minmax(0, 1fr);
}
.desktop-app .cpc-id-grid {
  min-height: 0;
  height: auto;
  grid-template-rows: repeat(5, minmax(46px, auto));
}
.desktop-app .cpc-id-grid .info-row span {
  font-size: 14px;
}
.desktop-app .cpc-id-grid .info-row strong {
  font-size: 15px;
}
.desktop-app .cpc-id-grid .info-row {
  min-height: 0;
  padding-top: 4px;
  padding-bottom: 4px;
}
.desktop-app .tune-file-rows {
  min-height: 0;
  display: grid;
  gap: 7px;
  align-content: start;
}
.desktop-app .tune-option {
  min-width: 0;
  width: 100%;
  min-height: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  text-align: left;
}
.desktop-app .tune-option.is-selected {
  border-color: rgba(54, 212, 124, .58);
  background: rgba(54, 212, 124, .10);
  box-shadow: inset 3px 0 0 var(--green);
}
.desktop-app .tune-option.is-disabled {
  opacity: .56;
}
.desktop-app .tune-option strong,
.desktop-app .tune-option span,
.desktop-app .tune-option small {
  display: block;
}
.desktop-app .tune-option span,
.desktop-app .tune-option small {
  color: var(--muted);
}
.desktop-app .tune-option > div:first-child {
  min-width: 0;
}
.desktop-app .tune-option > div:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .tune-option small {
  font-weight: 900;
}
.desktop-app .tune-option-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.desktop-app .tune-option-actions small {
  min-width: 48px;
  text-align: right;
}
.desktop-app .tune-option-actions .btn {
  min-width: 112px;
}
.desktop-app .tune-file-row {
  cursor: default;
  font: inherit;
  color: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
}
.desktop-app .tune-file-row .tune-file-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.desktop-app .tune-file-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.desktop-app .tune-file-heading strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}
.desktop-app .tune-file-statuses {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  overflow: visible !important;
  white-space: normal !important;
}
.desktop-app .tune-file-name,
.desktop-app .tune-file-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .tune-file-name {
  color: var(--text-soft) !important;
  font-size: 12px;
}
.desktop-app .tune-file-meta {
  color: var(--muted) !important;
  font-size: 11px;
}
.desktop-app .tune-file-row .tune-option-actions {
  margin-left: 0;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}
.desktop-app .tune-file-row .tune-option-actions .btn {
  min-width: 84px;
}
.desktop-app .tune-file-row .tune-delete-button {
  border-color: rgba(216, 107, 107, .42);
  color: var(--danger);
}
.desktop-app .tune-file-row .tune-delete-button:not(:disabled):hover {
  border-color: var(--danger);
  background: rgba(216, 107, 107, .12);
}
.desktop-app .tune-file-row .tune-option-actions .tune-icon-button {
  width: 36px;
  min-width: 36px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
}
.desktop-app .tune-file-row .tune-select-button {
  min-width: 88px;
}
.desktop-app .tune-file-row .tune-select-button.is-selected {
  border-color: rgba(54, 212, 124, .58);
  background: var(--green-soft);
  color: var(--green);
  opacity: 1;
}
.desktop-app .tune-file-row .tune-select-button.is-selected:disabled {
  color: var(--green);
  opacity: 1;
}
.desktop-app .tune-file-row:hover:not(.is-selected) {
  border-color: rgba(229, 231, 235, .32);
  background: rgba(255, 255, 255, .05);
}
.desktop-app .tune-file-row.is-purchased strong {
  color: var(--muted);
}
.desktop-app .tune-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  white-space: nowrap;
}
.desktop-app .tune-badge.is-stock {
  border-color: rgba(120, 200, 140, .38);
  color: #9fd9ae;
}
.desktop-app .tune-badge.is-custom {
  border-color: rgba(229, 231, 235, .38);
  color: var(--text);
}
.desktop-app .tune-badge.is-purchased {
  border-color: rgba(230, 90, 90, .48);
  color: #eb9a9a;
}
.desktop-app .cpc-tune-box .tune-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  align-items: center;
  gap: 7px;
  margin-top: 0;
}
.desktop-app .cpc-tune-box .tune-action-row .btn:only-child {
  grid-column: 1 / -1;
}
.desktop-app .tune-empty-hint {
  margin: 0;
  padding: 14px 4px;
  color: var(--muted);
  font-size: 13px;
}
.desktop-app .tune-empty-hint.has-detail {
  color: var(--text);
}
.desktop-app .tune-empty-hint code {
  font-family: "Cascadia Mono", "Consolas", ui-monospace, monospace;
  font-size: 12px;
  color: var(--amber);
}
.desktop-app .cpc-tune-box .tune-action-row .btn {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
}
.desktop-app .card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.desktop-app .cpc-identity-title-row {
  flex-wrap: wrap;
}
.desktop-app .cpc-identity-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}
.desktop-app .cpc-identity-actions .btn {
  min-width: 112px;
}
.desktop-app .details-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.desktop-app .details-grid.compact-grid {
  margin-top: 10px;
}
.desktop-app .info-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(120px, .32fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .025);
}
.desktop-app .info-row:last-child {
  border-bottom: 0;
}
.desktop-app .info-row span {
  color: var(--muted);
}
.desktop-app .info-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
.desktop-app .cpc-flash-card {
  display: grid;
  gap: 16px;
  align-content: start;
}
.desktop-app .cpc-flash-card .flash-preflight-cols .info-row {
  min-height: 44px;
}
.desktop-app .cpc-flash-card .flash-preflight-cols .info-row span {
  font-size: 14px;
}
.desktop-app .cpc-flash-card .flash-preflight-cols .info-row strong {
  font-size: 15px;
}
.desktop-app .flash-setup-box .field > span {
  font-size: 14px;
}
.desktop-app .flash-preflight-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.desktop-app .flash-safety-box,
.desktop-app .flash-setup-box {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(9, 12, 16, .24);
}
.desktop-app .flash-safety-box {
  gap: 16px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(241, 90, 36, .055), transparent 46%),
    rgba(9, 12, 16, .3);
}
.desktop-app .flash-prep-head {
  display: grid;
  gap: 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.desktop-app .flash-prep-head > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.desktop-app .flash-prep-head > strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}
.desktop-app .flash-prep-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.desktop-app .flash-prep-list {
  display: grid;
  gap: 9px;
}
.desktop-app .flash-prep-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, .018);
}
.desktop-app .flash-prep-item:nth-child(3) {
  border-color: rgba(241, 90, 36, .28);
  background: rgba(241, 90, 36, .055);
}
.desktop-app .flash-prep-marker {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241, 90, 36, .34);
  border-radius: 50%;
  background: rgba(241, 90, 36, .1);
  color: #ff9b73;
  font-size: 11px;
  font-weight: 900;
}
.desktop-app .flash-prep-item p {
  min-width: 0;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.desktop-app .flash-prep-item p strong {
  color: var(--text);
  font-weight: 900;
}
.desktop-app .flash-prep-item p span {
  color: var(--muted);
}
.desktop-app .battery-voltage-status {
  min-width: 0;
  min-height: 166px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 162, 62, .3);
  border-radius: 8px;
  background: rgba(214, 162, 62, .07);
}
.desktop-app .content-diagnostics {
  display: block;
  overflow: auto;
}
.desktop-app .diagnostics-card {
  width: min(100%, 1180px);
  min-height: 320px;
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 14px;
}
.desktop-app .diagnostics-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.desktop-app .diagnostics-card-head > div:first-child {
  display: grid;
  gap: 3px;
}
.desktop-app .diagnostics-card-head h2,
.desktop-app .diagnostics-card-head p {
  margin: 0;
}
.desktop-app .diagnostics-card-head > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.desktop-app .diagnostics-vehicle-meta {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 3px;
  text-align: right;
}
.desktop-app .diagnostics-vehicle-meta strong {
  max-width: 360px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .diagnostics-vehicle-meta span {
  color: var(--muted-2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}
.desktop-app .diagnostics-body {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(7, 10, 13, .34);
}
.desktop-app .diagnostics-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.desktop-app .diagnostics-module-card {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 36px minmax(36px, 1fr) fit-content(124px);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  cursor: default;
  text-align: left;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.desktop-app .diagnostics-module-card.is-enabled,
.desktop-app .diagnostics-module-card.is-clean {
  border-color: rgba(54, 212, 124, .46);
  background: rgba(54, 212, 124, .065);
}
.desktop-app .diagnostics-module-card.is-warning {
  border-color: rgba(214, 162, 62, .46);
  background: rgba(214, 162, 62, .075);
}
.desktop-app .diagnostics-module-card.is-unsupported {
  border-color: rgba(239, 68, 68, .3);
  background: rgba(239, 68, 68, .05);
}
.desktop-app .diagnostics-module-card.is-unavailable,
.desktop-app .diagnostics-module-card:disabled {
  cursor: default;
  opacity: .46;
  filter: saturate(.35);
}
.desktop-app .diagnostics-module-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 231, 235, .16);
  border-radius: 7px;
}
.desktop-app .diagnostics-module-card.is-enabled .diagnostics-module-icon,
.desktop-app .diagnostics-module-card.is-clean .diagnostics-module-icon {
  border-color: rgba(54, 212, 124, .34);
  background: rgba(54, 212, 124, .07);
  color: var(--green);
}
.desktop-app .diagnostics-module-card.is-warning .diagnostics-module-icon {
  border-color: rgba(214, 162, 62, .34);
  background: rgba(214, 162, 62, .08);
  color: var(--amber);
}
.desktop-app .diagnostics-module-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.desktop-app .diagnostics-module-copy strong {
  color: var(--text);
  font-size: 14px;
}
.desktop-app .diagnostics-module-state {
  min-width: 0;
  max-width: 124px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.desktop-app .diagnostics-module-state .btn-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.desktop-app .diagnostics-module-status-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.desktop-app .diagnostics-module-status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}
.desktop-app .diagnostics-module-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .diagnostics-module-card.is-enabled .diagnostics-module-state,
.desktop-app .diagnostics-module-card.is-clean .diagnostics-module-state {
  border-color: rgba(54, 212, 124, .35);
  background: rgba(54, 212, 124, .12);
  color: #82e9aa;
}
.desktop-app .diagnostics-module-card.is-warning .diagnostics-module-state {
  border-color: rgba(214, 162, 62, .35);
  background: rgba(214, 162, 62, .12);
  color: var(--amber);
}
.desktop-app .diagnostics-module-card.is-unsupported .diagnostics-module-state {
  border-color: rgba(239, 68, 68, .22);
  background: rgba(239, 68, 68, .065);
  color: #e4b7b7;
}
.desktop-app .diagnostics-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
}
.desktop-app .diagnostics-action-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.desktop-app .diagnostics-action-row span {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.desktop-app .diagnostics-action-row strong {
  color: var(--text);
  font-size: 15px;
}
.desktop-app .diagnostics-action-row small {
  color: var(--muted);
  font-size: 11px;
}
.desktop-app .diagnostics-action-row .btn {
  min-width: 138px;
}
.desktop-app .diagnostics-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.desktop-app .diagnostics-clear-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border: 1px solid rgba(54, 212, 124, .28);
  border-radius: 7px;
  background: rgba(54, 212, 124, .055);
}
.desktop-app .diagnostics-clear-summary.is-warning {
  border-color: rgba(214, 162, 62, .34);
  background: rgba(214, 162, 62, .06);
}
.desktop-app .diagnostics-clear-summary strong {
  color: var(--text);
  font-size: 11px;
}
.desktop-app .diagnostics-clear-summary span {
  color: var(--muted);
  font-size: 10px;
}
.desktop-app .diagnostics-results {
  display: grid;
  gap: 9px;
}
.desktop-app .diagnostics-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 1px 5px;
}
.desktop-app .diagnostics-results-head > div {
  display: grid;
  gap: 2px;
}
.desktop-app .diagnostics-results-head span,
.desktop-app .diagnostics-result-module-head span {
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.desktop-app .diagnostics-results-head strong {
  color: var(--text);
  font-size: 14px;
}
.desktop-app .diagnostics-results-head em,
.desktop-app .diagnostics-result-module-head em {
  padding: 4px 7px;
  border: 1px solid rgba(54, 212, 124, .25);
  border-radius: 999px;
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.desktop-app .diagnostics-results-head em.is-warning,
.desktop-app .diagnostics-result-module.is-unavailable .diagnostics-result-module-head em {
  border-color: rgba(214, 162, 62, .3);
  color: var(--amber);
}
.desktop-app .diagnostics-result-module {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(7, 10, 13, .34);
}
.desktop-app .diagnostics-result-module.is-unavailable {
  border-color: rgba(214, 162, 62, .24);
}
.desktop-app .diagnostics-result-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-soft);
}
.desktop-app .diagnostics-result-module-head > div {
  display: grid;
  gap: 2px;
}
.desktop-app .diagnostics-result-module-head strong {
  color: var(--text);
  font-size: 13px;
}
.desktop-app .diagnostics-module-empty {
  margin: 0;
  padding: 12px 13px;
  color: var(--muted);
  font-size: 11px;
}
.desktop-app .diagnostics-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(7, 10, 13, .34);
  text-align: center;
}
.desktop-app .diagnostics-empty > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(54, 212, 124, .28);
  border-radius: 50%;
  color: var(--green);
}
.desktop-app .diagnostics-empty h3,
.desktop-app .diagnostics-empty p {
  margin: 0;
}
.desktop-app .diagnostics-empty p {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1000px){
.desktop-app .diagnostics-module-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px){
.desktop-app .diagnostics-card-head,
.desktop-app .diagnostics-action-row {
    align-items: stretch;
    flex-direction: column;
  }
.desktop-app .diagnostics-vehicle-meta {
    justify-items: start;
    text-align: left;
  }
.desktop-app .diagnostics-action-row .btn {
    width: 100%;
  }
.desktop-app .diagnostics-actions,
.desktop-app .diagnostics-clear-summary,
.desktop-app .diagnostics-results-head {
    align-items: stretch;
    flex-direction: column;
  }
.desktop-app .diagnostics-actions {
    display: grid;
  }
}
.desktop-app .battery-voltage-status strong,
.desktop-app .battery-voltage-status span {
  display: block;
}
.desktop-app .battery-voltage-status.is-ready {
  border-color: rgba(54, 212, 124, .34);
  background: rgba(54, 212, 124, .07);
}
.desktop-app .battery-voltage-status.is-ready .battery-voltage-status-dot {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(54, 212, 124, .13);
}
.desktop-app .battery-voltage-status.is-low {
  border-color: rgba(241, 90, 36, .42);
  background: rgba(241, 90, 36, .08);
}
.desktop-app .battery-voltage-status.is-low .battery-voltage-status-dot {
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(241, 90, 36, .13);
}
.desktop-app .battery-voltage-status.is-checking .battery-voltage-status-dot {
  animation: safety-status-pulse 1.4s ease-in-out infinite;
}
@keyframes battery-voltage-live-pulse{
  0% { opacity: .9; transform: scale(.65); }
  70%, 100% { opacity: 0; transform: scale(1.8); }
}
@keyframes safety-status-pulse{
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.desktop-app .flash-setup-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}
.desktop-app .flash-setup-box textarea {
  min-height: 64px;
  max-height: 96px;
}
.desktop-app .flash-output-head {
  min-height: 42px;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .018);
  text-transform: none;
}
.desktop-app .flash-output-status {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}
.desktop-app .flash-output-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}
.desktop-app .flash-output-status.is-ready,
.desktop-app .flash-output-status.is-ok {
  border-color: rgba(54, 212, 124, .3);
  background: rgba(54, 212, 124, .07);
  color: #85d99f;
}
.desktop-app .flash-output-status.is-active {
  border-color: rgba(241, 90, 36, .32);
  background: rgba(241, 90, 36, .08);
  color: #ff9b73;
}
.desktop-app .flash-output-status.is-error {
  border-color: rgba(241, 90, 36, .38);
  background: rgba(241, 90, 36, .1);
  color: #ff805c;
}
.desktop-app .flash-screen-head strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}
.desktop-app .workflow-vehicle-heading {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
}
.desktop-app .workflow-vehicle-heading h2,
.desktop-app .workflow-vehicle-heading p {
  margin: 0;
}
.desktop-app .workflow-vehicle-heading h2 {
  overflow-wrap: anywhere;
  font-size: 18px;
}
.desktop-app .workflow-vehicle-heading p:not(.kicker),
.desktop-app .workflow-vehicle-details {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.desktop-app .workflow-vehicle-details {
  margin: 3px 0 0;
}
.desktop-app .flash-selected-tune {
  margin-bottom: 0;
}
.desktop-app .tune-badge.is-recovery-review {
  border-color: rgba(232, 154, 72, .58);
  background: rgba(232, 154, 72, .1);
  color: #ffd39f;
}
.desktop-app .tune-file-statuses .tune-badge.is-recovery-review {
  max-width: 100%;
  padding-left: 6px;
  padding-right: 6px;
}
@keyframes flash-glow{
  0%, 100% { box-shadow: 0 0 3px rgba(54, 212, 124, .7), 0 0 8px rgba(54, 212, 124, .35); }
  50% { box-shadow: 0 0 6px rgba(54, 212, 124, 1), 0 0 22px rgba(54, 212, 124, .75); }
}
@media (prefers-reduced-motion: reduce){
.desktop-app .battery-voltage-status.is-checking .battery-voltage-status-dot {
    animation: none;
  }
}
.desktop-app .flash-summary-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.desktop-app .flash-output {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(9, 12, 16, .38);
}
.desktop-app .flash-output pre {
  min-height: 220px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #E5E7EB;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.desktop-app .region-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.desktop-app .region-row:has(.region-pill:only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.desktop-app .region-pill {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.desktop-app .region-pill.is-complete {
  border-color: rgba(54, 212, 124, .52);
  background: rgba(54, 212, 124, .12);
  color: #8be0a8;
  box-shadow: 0 0 4px rgba(54, 212, 124, .3), 0 0 12px rgba(54, 212, 124, .14);
}
.desktop-app .region-pill.just-completed {
  animation: region-complete-pulse .8s ease-out 1;
}
@keyframes region-complete-pulse{
  0% { box-shadow: 0 0 0 0 rgba(54, 212, 124, .72), 0 0 6px rgba(54, 212, 124, .48); }
  55% { box-shadow: 0 0 0 5px rgba(54, 212, 124, .12), 0 0 25px rgba(54, 212, 124, .74); }
  100% { box-shadow: 0 0 0 8px rgba(54, 212, 124, 0), 0 0 12px rgba(54, 212, 124, .14); }
}
@media (prefers-reduced-motion: reduce){
.desktop-app .region-pill.just-completed {
    animation: none;
  }
}
.desktop-app .garage-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.desktop-app .garage-pager {
  position: sticky;
  z-index: 2;
  bottom: 0;
  min-height: 40px;
  padding: 6px 0 2px;
  background: linear-gradient(to bottom, rgba(20, 26, 32, .84), var(--surface) 36%);
}
.desktop-app .garage-pager .btn {
  min-width: 88px;
}
.desktop-app .garage-page-meta {
  min-width: 92px;
  display: grid;
  gap: 2px;
  text-align: center;
}
.desktop-app .cpc-tune-box > .notice {
  max-height: 120px;
  overflow: auto;
}
@media (min-width: 1501px) and (min-height: 860px){
.desktop-app .cpc-module-panel {
    min-height: 0;
    height: 100%;
    overflow: visible;
  }
.desktop-app .cpc-workspace-grid {
    flex: 1 1 auto;
    height: auto;
    overflow: visible;
  }
.desktop-app .cpc-read-box,
.desktop-app .cpc-tune-box {
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: visible;
  }
.desktop-app .cpc-read-box {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: stretch;
  }
.desktop-app .cpc-tune-box {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }
.desktop-app .cpc-id-grid {
    height: auto;
    grid-template-rows: repeat(5, minmax(46px, auto));
    align-content: start;
  }
.desktop-app .cpc-id-grid .info-row {
    padding-top: 6px;
    padding-bottom: 6px;
  }
.desktop-app .tune-file-rows {
    height: 100%;
    grid-auto-rows: minmax(74px, auto);
    align-content: start;
    overflow-y: auto;
    gap: 10px;
  }
.desktop-app .tune-option {
    height: 100%;
    padding: 12px 14px;
  }
}
@media (max-width: 1800px){
.desktop-app .content-cpc-detail {
    padding-top: 18px;
    padding-bottom: 18px;
  }
.desktop-app .cpc-module-panel {
    gap: 12px;
    padding: 18px;
  }
.desktop-app .cpc-workspace-grid {
    gap: 12px;
  }
.desktop-app .cpc-read-box,
.desktop-app .cpc-tune-box {
    gap: 9px;
    padding: 10px;
  }
.desktop-app .tune-option {
    min-height: 74px;
  }
.desktop-app .cpc-tune-box .tune-action-row .btn {
    min-height: 36px;
  }
.desktop-app .content-cpc-detail .notice {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
@media (max-width: 1400px){
.desktop-app .topbar {
    gap: 12px;
    padding-left: 20px;
    padding-right: 20px;
  }
.desktop-app .topbar h1 {
    flex-basis: 240px;
    font-size: 22px;
  }
.desktop-app .topbar-actions {
    flex-basis: 500px;
    gap: 8px;
  }
.desktop-app .topbar-actions .status-pill {
    min-width: 118px;
    height: 40px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 1120px){
.desktop-app .shell {
    grid-template-columns: clamp(178px, 22vw, 214px) minmax(0, 1fr);
  }
.desktop-app .sidebar {
    gap: 18px;
    padding: 20px 14px 14px;
  }
.desktop-app .brand {
    min-height: 46px;
  }
.desktop-app .brand img {
    width: min(160px, 100%);
  }
.desktop-app .nav-item {
    min-height: 38px;
    padding: 7px 10px;
  }
.desktop-app .cpc-workspace-grid,
.desktop-app .interface-controls,
.desktop-app .interface-status-grid,
.desktop-app .vehicle-row,
.desktop-app .vehicle-details {
    grid-template-columns: 1fr;
  }
.desktop-app .vehicle-row-actions {
    justify-items: start;
  }
.desktop-app .cpc-module-panel {
    height: auto;
    min-height: calc(100vh - 188px);
    overflow: visible;
  }
.desktop-app .cpc-workspace-grid {
    flex: 0 0 auto;
    height: auto;
    overflow: visible;
  }
.desktop-app .cpc-tune-box .tune-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.desktop-app .cpc-tune-box .tune-action-row .btn {
    width: 100%;
    min-width: 0;
  }
.desktop-app .cpc-read-box,
.desktop-app .cpc-tune-box,
.desktop-app .cpc-id-grid {
    height: auto;
    max-height: none;
    overflow: visible;
  }
.desktop-app .cpc-id-grid {
    grid-template-rows: none;
  }
.desktop-app .cpc-identity-title-row {
    align-items: stretch;
    flex-direction: column;
  }
.desktop-app .cpc-identity-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
.desktop-app .cpc-identity-actions .btn {
    width: 100%;
    min-width: 0;
  }
.desktop-app .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
.desktop-app .topbar h1 {
    width: 100%;
    flex: 0 0 auto;
  }
.desktop-app .topbar-actions {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-height: 780px){
.desktop-app .content {
    padding-top: 16px;
    padding-bottom: 18px;
  }
.desktop-app .sidebar {
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 12px;
  }
.desktop-app .brand {
    min-height: 44px;
  }
.desktop-app .brand img {
    width: min(154px, 100%);
  }
.desktop-app .nav-group {
    gap: 6px;
  }
.desktop-app .nav-label {
    padding-bottom: 2px;
    font-size: 10px;
  }
.desktop-app .nav-item {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
.desktop-app .cpc-module-panel {
    min-height: calc(100vh - 164px);
  }
.desktop-app .cpc-module-panel,
.desktop-app .cpc-workspace-grid,
.desktop-app .cpc-read-box,
.desktop-app .cpc-tune-box {
    gap: 10px;
  }
.desktop-app .cpc-read-box,
.desktop-app .cpc-tune-box {
    padding: 10px;
  }
}
@media (max-height: 740px){
.desktop-app .main-pane {
    grid-template-rows: minmax(66px, auto) minmax(0, 1fr);
  }
.desktop-app .topbar {
    padding: 10px 24px;
  }
.desktop-app .topbar h1 {
    font-size: 24px;
  }
.desktop-app .content {
    padding-top: 10px;
    padding-bottom: 12px;
  }
.desktop-app .cpc-module-panel {
    gap: 10px;
    padding: 14px;
  }
.desktop-app .cpc-module-panel .card-head {
    gap: 12px;
  }
.desktop-app .cpc-module-panel .card-head p:not(.kicker) {
    display: none;
  }
.desktop-app .cpc-read-box,
.desktop-app .cpc-tune-box {
    gap: 8px;
    padding: 8px;
  }
.desktop-app .field {
    gap: 5px;
  }
.desktop-app .tune-option {
    padding: 6px 10px;
  }
.desktop-app .cpc-id-grid {
    grid-template-rows: repeat(5, minmax(29px, auto));
  }
.desktop-app .cpc-id-grid .info-row {
    padding-top: 2px;
    padding-bottom: 2px;
  }
.desktop-app .cpc-tune-box .tune-action-row .btn {
    min-height: 34px;
    padding: 5px 8px;
  }
}
@media (max-height: 640px){
.desktop-app .content {
    padding-top: 12px;
    padding-bottom: 14px;
  }
.desktop-app .sidebar {
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
.desktop-app .brand {
    min-height: 34px;
  }
.desktop-app .brand img {
    width: min(128px, 100%);
  }
.desktop-app .nav-item {
    min-height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
.desktop-app .cpc-module-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
.desktop-app .cpc-workspace-grid {
    flex: 0 0 auto;
    height: auto;
    overflow: visible;
  }
.desktop-app .cpc-read-box,
.desktop-app .cpc-tune-box {
    height: auto;
    max-height: none;
    overflow: visible;
  }
.desktop-app .cpc-id-grid {
    height: auto;
    grid-template-rows: none;
  }
}
@media (max-width: 780px){
.desktop-app .flash-lifecycle-banner {
    align-items: flex-start;
    flex-direction: column;
  }
.desktop-app .flash-preflight-cols {
    grid-template-columns: 1fr;
  }
.desktop-app .shell {
    grid-template-columns: 136px minmax(0, 1fr);
  }
.desktop-app .sidebar {
    gap: 14px;
    padding: 14px 8px 10px;
  }
.desktop-app .brand {
    min-height: 38px;
  }
.desktop-app .brand img {
    width: 118px;
  }
.desktop-app .nav-label {
    padding: 0 4px 2px;
    font-size: 10px;
  }
.desktop-app .nav-group {
    gap: 6px;
  }
.desktop-app .nav-item {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
  }
.desktop-app .content,
.desktop-app .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
.desktop-app .cpc-workspace-grid,
.desktop-app .interface-controls,
.desktop-app .interface-status-grid,
.desktop-app .vehicle-row,
.desktop-app .vehicle-details,
.desktop-app .region-row {
    grid-template-columns: 1fr;
  }
.desktop-app .module-actions {
    grid-template-columns: 1fr;
  }
.desktop-app .vehicle-row-actions {
    width: 100%;
  }
.desktop-app .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }
.desktop-app .info-row strong {
    text-align: left;
  }
}
@media (max-width: 620px){
.desktop-app .shell {
    grid-template-columns: 108px minmax(0, 1fr);
  }
.desktop-app .tune-option {
    grid-template-columns: 1fr;
  }
.desktop-app .tune-option-actions {
    justify-content: flex-start;
  }
.desktop-app .cpc-tune-box .tune-action-row {
    grid-template-columns: 1fr;
  }
.desktop-app .sidebar {
    padding: 12px 6px 8px;
  }
.desktop-app .brand img {
    width: 96px;
  }
.desktop-app .nav-label {
    font-size: 9px;
  }
.desktop-app .nav-item {
    padding: 6px;
    font-size: 11px;
  }
}
@media (min-width: 1121px) and (min-height: 760px){
.desktop-app .main-pane-cpc-detail {
  min-height: 0;
  overflow: hidden;
  grid-template-rows: 68px minmax(0, 1fr);
}
.desktop-app .main-pane-cpc-detail .topbar {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}
.desktop-app .main-pane-cpc-detail .content {
  min-height: 0;
  overflow: auto;
  padding-top: 14px;
  padding-bottom: 14px;
}
.desktop-app .main-pane-cpc-detail .vehicle-detail-page,
.desktop-app .main-pane-cpc-detail .vehicle-module-workflow {
  min-height: 0;
  height: auto;
  grid-template-rows: none;
  grid-auto-rows: unset;
  gap: 0;
  overflow: visible;
}
.desktop-app .main-pane-cpc-detail .cpc-module-panel {
  min-height: 100%;
  height: auto;
  gap: 9px;
  padding: 14px 18px;
  overflow: visible;
}
.desktop-app .main-pane-cpc-detail .cpc-module-panel .card-head {
  gap: 12px;
}
.desktop-app .main-pane-cpc-detail .cpc-module-panel .card-head p:not(.kicker) {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.3;
}
.desktop-app .main-pane-cpc-detail .card-head-actions .btn {
  min-height: 38px;
  padding: 7px 14px;
}
.desktop-app .main-pane-cpc-detail .module-context-strip {
  gap: 7px;
  padding: 7px;
}
.desktop-app .main-pane-cpc-detail .module-context-strip .vehicle-overview-item {
  min-height: 40px;
  gap: 2px;
  padding: 5px 8px;
}
.desktop-app .main-pane-cpc-detail .cpc-workspace-grid {
  flex: 0 0 auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr);
  gap: 10px;
  overflow: visible;
}
.desktop-app .main-pane-cpc-detail .cpc-read-box,
.desktop-app .main-pane-cpc-detail .cpc-tune-box {
  min-height: 0;
  height: auto;
  gap: 10px;
  padding: 16px;
  overflow: visible;
}
.desktop-app .main-pane-cpc-detail .cpc-read-box {
  grid-template-rows: auto auto auto;
  align-content: start;
}
.desktop-app .main-pane-cpc-detail .cpc-tune-box {
  grid-template-rows: auto auto auto auto;
  align-content: start;
}
.desktop-app .main-pane-cpc-detail .section-title-row h3 {
  font-size: 18px;
}
.desktop-app .main-pane-cpc-detail .section-title-row .btn {
  min-height: 38px;
  padding: 7px 14px;
}
.desktop-app .main-pane-cpc-detail .field {
  gap: 4px;
}
.desktop-app .main-pane-cpc-detail .adapter-trigger {
  min-height: 42px;
  padding: 10px 12px;
}
.desktop-app .main-pane-cpc-detail .inline-actions {
  gap: 10px;
}
.desktop-app .main-pane-cpc-detail .inline-actions .btn {
  min-height: 38px;
  padding: 7px 14px;
}
.desktop-app .main-pane-cpc-detail .cpc-id-grid {
  height: auto;
  grid-template-rows: none;
  grid-auto-rows: minmax(34px, auto);
  align-self: start;
  align-content: start;
}
.desktop-app .main-pane-cpc-detail .cpc-id-grid .info-row {
  min-height: 0;
  padding: 3px 10px;
}
.desktop-app .main-pane-cpc-detail .cpc-id-grid .info-row strong {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.desktop-app .main-pane-cpc-detail .content:has(.cpc-flash-card) {
  overflow: auto;
}
.desktop-app .main-pane-cpc-detail .vehicle-detail-page:has(.cpc-flash-card),
.desktop-app .main-pane-cpc-detail .vehicle-module-workflow:has(.cpc-flash-card) {
  height: auto;
  min-height: 100%;
  grid-template-rows: none;
  overflow: visible;
}
.desktop-app .main-pane-cpc-detail .tune-file-rows {
  height: auto;
  max-height: 317px;
  grid-auto-rows: 74px;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  gap: 7px;
}
.desktop-app .main-pane-cpc-detail .current-tune-strip,
.desktop-app .main-pane-cpc-detail .tune-option {
  min-height: 0;
  height: 100%;
  padding: 7px 10px;
}
.desktop-app .main-pane-cpc-detail .tune-file-row {
  min-height: 74px;
  height: 74px;
  align-self: start;
}
.desktop-app .main-pane-cpc-detail .current-tune-strip span,
.desktop-app .main-pane-cpc-detail .current-tune-strip strong,
.desktop-app .main-pane-cpc-detail .current-tune-strip small,
.desktop-app .main-pane-cpc-detail .tune-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desktop-app .main-pane-cpc-detail .tune-option {
  gap: 8px;
}
.desktop-app .main-pane-cpc-detail .tune-option-actions {
  gap: 7px;
}
.desktop-app .main-pane-cpc-detail .tune-option-actions small {
  min-width: 40px;
}
.desktop-app .main-pane-cpc-detail .tune-option-actions .btn {
  min-width: 96px;
  min-height: 34px;
  padding: 6px 10px;
}
.desktop-app .main-pane-cpc-detail .cpc-tune-box .tune-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.desktop-app .main-pane-cpc-detail .cpc-tune-box .tune-action-row .btn {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
}
.desktop-app .main-pane-cpc-detail .notice {
  min-height: 34px;
  padding: 6px 10px;
}
}
@media (max-width: 1120px), (max-height: 759px){
.desktop-app .content-cpc-detail {
    display: block;
    overflow: auto;
  }
.desktop-app .content-cpc-detail .garage-page,
.desktop-app .content-cpc-detail .vehicle-detail-page,
.desktop-app .content-cpc-detail .vehicle-module-workflow {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
.desktop-app .content-cpc-detail .cpc-module-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
.desktop-app .content-cpc-detail .cpc-workspace-grid,
.desktop-app .content-cpc-detail .cpc-read-box,
.desktop-app .content-cpc-detail .cpc-tune-box,
.desktop-app .content-cpc-detail .cpc-id-grid {
    height: auto;
    overflow: visible;
  }
.desktop-app .content-cpc-detail .cpc-id-grid {
    grid-template-rows: none;
  }
.desktop-app .content-cpc-detail .tune-file-rows {
    height: auto;
    max-height: 46vh;
    overflow-y: auto;
  }
.desktop-app .content-cpc-detail .current-tune-strip,
.desktop-app .content-cpc-detail .tune-option {
    height: auto;
    min-height: 64px;
  }
}
@media (min-width: 1121px) and (max-width: 1600px){
.desktop-app .main-pane-cpc-detail .tune-file-row {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
.desktop-app .main-pane-cpc-detail .tune-file-heading {
    gap: 5px;
  }
.desktop-app .main-pane-cpc-detail .tune-file-heading strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
.desktop-app .main-pane-cpc-detail .tune-file-statuses {
    flex: 0 0 auto;
  }
.desktop-app .main-pane-cpc-detail .tune-file-row .tune-option-actions {
    gap: 4px;
  }
.desktop-app .main-pane-cpc-detail .tune-file-row .tune-option-actions .btn {
    min-width: 72px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 12px;
  }
.desktop-app .main-pane-cpc-detail .tune-file-row .tune-option-actions .tune-icon-button {
    width: 32px;
    min-width: 32px;
  }
.desktop-app .main-pane-cpc-detail .tune-file-row .tune-select-button {
    min-width: 72px;
  }
}
.desktop-app .ecu-flash-card {
  min-width: 0;
  min-height: 0;
}
.desktop-app .main-pane-cpc-detail .ecu-module-panel {
  min-height: 0;
  height: auto;
  align-content: start;
}
.desktop-app .main-pane-cpc-detail .ecu-module-panel .cpc-workspace-grid {
  flex: 0 0 auto;
  height: auto;
  align-items: stretch;
}
.desktop-app .main-pane-cpc-detail .ecu-module-panel .cpc-read-box,
.desktop-app .main-pane-cpc-detail .ecu-module-panel .cpc-tune-box {
  min-height: 0;
  height: 100%;
  grid-template-rows: none;
  grid-auto-rows: max-content;
  align-content: start;
  overflow: visible;
}
.desktop-app .ecu-flash-card .flash-safety-box,
.desktop-app .ecu-flash-card .flash-setup-box {
  height: 100%;
}
.desktop-app .main-pane-cpc-detail .ecu-module-panel .cpc-id-grid {
  min-height: 0;
  height: auto;
  grid-template-rows: none;
  grid-auto-rows: minmax(34px, auto);
  align-self: start;
  align-content: start;
  overflow: hidden;
}
.desktop-app .ecu-flash-card {
  display: grid;
  gap: 14px;
}
.desktop-app .ecu-flash-card .module-context-strip {
  margin: 0;
}
.desktop-app .ecu-flash-card .ecu-result-summary {
  max-width: 720px;
}
.desktop-app .ecu-flash-card .flash-meter {
  color: var(--green);
  accent-color: var(--green);
}
.desktop-app .ecu-flash-card .flash-meter::-webkit-progress-value,
.desktop-app .ecu-flash-card .flash-meter::-moz-progress-bar {
  background: var(--green);
}
.desktop-app .ecu-region-row.is-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.desktop-app .ecu-region-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 1120px){
.desktop-app .ecu-flash-card .flash-preflight-cols {
    grid-template-columns: 1fr;
  }
.desktop-app .main-pane-cpc-detail .ecu-module-panel .cpc-read-box,
.desktop-app .main-pane-cpc-detail .ecu-module-panel .cpc-tune-box,
.desktop-app .ecu-flash-card .flash-safety-box,
.desktop-app .ecu-flash-card .flash-setup-box {
    height: auto;
  }
}
.desktop-app .battery-voltage-status.module-voltage-panel {
  min-height: 118px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
}
.desktop-app .battery-voltage-status.module-voltage-panel .battery-voltage-status-summary {
  align-self: auto;
  gap: 10px;
}
.desktop-app .battery-voltage-status.module-voltage-panel .battery-voltage-status-copy {
  gap: 2px;
}
.desktop-app .battery-voltage-status.module-voltage-panel .battery-voltage-status-copy > strong {
  font-size: 13px;
  line-height: 1.25;
}
.desktop-app .battery-voltage-status.module-voltage-panel .battery-voltage-status-copy > span {
  font-size: 11px;
  line-height: 1.3;
}
.desktop-app .battery-voltage-status.module-voltage-panel .battery-voltage-status-value {
  font-size: 17px;
}
@media (min-width: 1121px) and (min-height: 641px){
.desktop-app .main-pane-cpc-detail .content-cpc-detail,
.desktop-app .main-pane-cpc-detail .content:has(.module-flash-preflight-card),
.desktop-app .main-pane-cpc-detail .content:has(.module-flash-active-card) {
    min-height: 0;
    display: block;
    overflow: auto;
    padding: 10px 14px 12px;
  }
.desktop-app .main-pane-cpc-detail .content-cpc-detail > .vehicle-detail-page,
.desktop-app .main-pane-cpc-detail .content-cpc-detail > .vehicle-detail-page > .vehicle-module-workflow,
.desktop-app .main-pane-cpc-detail .vehicle-detail-page:has(.module-flash-preflight-card),
.desktop-app .main-pane-cpc-detail .vehicle-module-workflow:has(.module-flash-preflight-card),
.desktop-app .main-pane-cpc-detail .vehicle-detail-page:has(.module-flash-active-card),
.desktop-app .main-pane-cpc-detail .vehicle-module-workflow:has(.module-flash-active-card) {
    min-height: 100%;
    height: auto;
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .content-cpc-detail > .vehicle-detail-page > .vehicle-module-workflow:has(.module-flash-active-card) {
    min-height: 0;
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    overflow: hidden;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card {
    min-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card > :not(.module-workspace-grid) {
    flex: 0 0 auto;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .module-workspace-grid {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    gap: 8px;
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .module-workspace-grid > .cpc-read-box,
.desktop-app .main-pane-cpc-detail .module-workspace-card .module-workspace-grid > .cpc-tune-box {
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-rows: none;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 7px;
    padding: 9px;
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .cpc-id-grid {
    min-height: 0;
    height: auto;
    grid-template-rows: none;
    grid-auto-rows: minmax(28px, auto);
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-file-rows {
    min-height: 0;
    height: auto;
    max-height: 198px;
    grid-auto-rows: minmax(60px, max-content);
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-file-row,
.desktop-app .main-pane-cpc-detail .module-workspace-card .current-tune-strip,
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-option {
    min-height: 60px;
    height: auto;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card {
    min-height: 100%;
    height: auto;
    display: grid;
    grid-template-rows: none;
    align-content: start;
    gap: 8px;
    padding: 10px 14px;
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-preflight-cols {
    min-height: 0;
    height: auto;
    gap: 8px;
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-safety-box,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-setup-box {
    min-height: 0;
    height: auto;
    gap: 8px;
    padding: 10px;
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .module-flash-active-card {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
    align-content: stretch;
    gap: 8px;
    padding: 10px 14px;
    overflow: hidden;
  }
.desktop-app .main-pane-cpc-detail .module-flash-active-card .flash-output {
    min-height: 0;
    height: 100%;
    max-height: none;
    grid-template-rows: 34px minmax(0, 1fr);
    overflow: hidden;
  }
.desktop-app .main-pane-cpc-detail .module-flash-active-card .flash-output pre {
    min-height: 0;
    height: 100%;
    overflow: auto;
  }
.desktop-app .main-pane-cpc-detail .content:has(.module-flash-active-card) {
    display: grid;
    overflow: hidden;
  }
.desktop-app .main-pane-cpc-detail .vehicle-detail-page:has(.module-flash-active-card),
.desktop-app .main-pane-cpc-detail .vehicle-module-workflow:has(.module-flash-active-card) {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
}
@media (min-width: 1121px) and (max-height: 780px){
.desktop-app .main-pane-cpc-detail .module-workspace-card,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card,
.desktop-app .main-pane-cpc-detail .module-flash-active-card {
    gap: 6px;
    padding: 8px 12px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .module-workspace-grid,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-preflight-cols {
    gap: 6px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .module-workspace-grid > .cpc-read-box,
.desktop-app .main-pane-cpc-detail .module-workspace-card .module-workspace-grid > .cpc-tune-box,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-safety-box,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-setup-box {
    gap: 6px;
    padding: 8px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-screen-head h2,
.desktop-app .main-pane-cpc-detail .module-flash-active-card .flash-screen-head h2 {
    margin-bottom: 1px;
    font-size: 16px;
    line-height: 1.1;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-selected-tune,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .workflow-vehicle-details,
.desktop-app .main-pane-cpc-detail .module-flash-active-card .flash-selected-tune,
.desktop-app .main-pane-cpc-detail .module-flash-active-card .workflow-vehicle-details {
    margin-top: 0;
    font-size: 10px;
    line-height: 1.2;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-prep-head {
    gap: 1px;
    padding-bottom: 4px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-prep-head > strong,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-setup-title {
    font-size: 14px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-prep-head p,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-prep-item p {
    margin-top: 0;
    font-size: 10px;
    line-height: 1.2;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-prep-list {
    gap: 4px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-prep-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
    padding: 4px 6px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-prep-marker {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-summary-grid .info-row {
    min-height: 29px;
    gap: 8px;
    padding: 3px 8px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-summary-grid .info-row span,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .flash-summary-grid .info-row strong {
    font-size: 11px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .action-row {
    gap: 6px;
    margin-top: 0;
  }
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card .action-row .btn {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 11px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-file-rows {
    max-height: 118px;
    grid-auto-rows: minmax(54px, max-content);
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-file-row,
.desktop-app .main-pane-cpc-detail .module-workspace-card .current-tune-strip,
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-option {
    min-height: 54px;
    padding: 5px 7px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-file-heading strong {
    font-size: 12px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-file-name {
    font-size: 10.5px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-file-meta {
    font-size: 9.5px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-file-row .tune-option-actions .btn,
.desktop-app .main-pane-cpc-detail .module-workspace-card .tune-action-row .btn {
    min-height: 30px;
    padding: 4px 7px;
    font-size: 10.5px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .ecu-flash-advanced {
    gap: 3px;
    margin-top: 0;
    padding-top: 4px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .ecu-flash-advanced-title {
    font-size: 8.5px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .ecu-flash-force-mode {
    gap: 6px;
    padding: 5px 7px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .ecu-flash-force-mode strong {
    font-size: 10.5px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .ecu-flash-force-mode small {
    font-size: 9px;
    line-height: 1.15;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .cpc-id-grid {
    grid-auto-rows: minmax(27px, auto);
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .cpc-id-grid .info-row {
    padding: 1px 8px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card .cpc-id-grid .info-row span,
.desktop-app .main-pane-cpc-detail .module-workspace-card .cpc-id-grid .info-row strong {
    font-size: 11px;
  }
.desktop-app .battery-voltage-status.module-voltage-panel {
    min-height: 96px;
    gap: 5px;
    padding: 7px 10px;
  }
.desktop-app .battery-voltage-status.module-voltage-panel .battery-voltage-status-copy > strong {
    font-size: 12px;
  }
.desktop-app .battery-voltage-status.module-voltage-panel .battery-voltage-status-copy > span {
    font-size: 10px;
    line-height: 1.2;
  }
.desktop-app .battery-voltage-status.module-voltage-panel .battery-voltage-status-value {
    font-size: 16px;
  }
.desktop-app .main-pane-cpc-detail .module-flash-active-card .flash-output {
    min-height: 0;
    height: 100%;
    max-height: none;
  }
}
@media (max-width: 1120px), (max-height: 640px){
.desktop-app .battery-voltage-status.module-voltage-panel {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card,
.desktop-app .main-pane-cpc-detail .module-flash-active-card {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
.desktop-app .main-pane-cpc-detail .module-flash-active-card .flash-output {
    min-height: 180px;
    height: auto;
    max-height: 260px;
  }
}
@media (min-width: 1121px) and (max-height: 700px){
.desktop-app .main-pane-cpc-detail .content-cpc-detail,
.desktop-app .main-pane-cpc-detail .content:has(.module-flash-preflight-card),
.desktop-app .main-pane-cpc-detail .content:has(.module-flash-active-card) {
    padding: 6px 12px;
  }
.desktop-app .main-pane-cpc-detail .module-workspace-card,
.desktop-app .main-pane-cpc-detail .module-flash-preflight-card,
.desktop-app .main-pane-cpc-detail .module-flash-active-card {
    gap: 5px;
    padding: 6px 10px;
  }
.desktop-app .battery-voltage-status.module-voltage-panel {
    padding: 6px 9px;
  }
}
@media (min-width: 1121px) and (min-height: 641px){
.desktop-app .garage-page:not(.vehicle-detail-page) {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-card {
    min-height: 0;
    height: 100%;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 8px;
    padding: 10px 12px;
    overflow: hidden;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-list {
    min-height: 0;
    height: 100%;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    grid-auto-rows: unset;
    align-content: stretch;
    gap: 6px;
    overflow: hidden;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-row {
    min-height: 0;
    height: 100%;
    gap: 10px;
    padding: 7px 10px;
    overflow: hidden;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-row-main {
    gap: 3px;
    align-content: center;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-title-block h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.1;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .connected-pill {
    margin-left: 7px;
    padding: 2px 7px;
    font-size: 9.5px;
    vertical-align: 1px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .connected-dot {
    width: 6px;
    height: 6px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-details,
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-meta {
    gap: 1px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-meta span {
    font-size: 9.5px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-meta strong {
    font-size: 12px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-note-field {
    width: min(100%, 560px);
    gap: 2px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-note-heading > span:first-child,
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-note-heading small {
    font-size: 9px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-note-field input {
    min-height: 28px;
    padding: 4px 7px;
    font-size: 11px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-row-actions,
.desktop-app .garage-page:not(.vehicle-detail-page) .module-list {
    width: 100%;
    max-width: 520px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .module-list,
.desktop-app .garage-page:not(.vehicle-detail-page) .module-actions {
    gap: 6px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-module-button {
    min-height: 46px;
    grid-template-columns: 26px minmax(0, 1fr) 14px;
    gap: 7px;
    padding: 5px 7px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-module-icon {
    width: 26px;
    height: 26px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .module-card-icon {
    width: 20px;
    height: 20px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-module-copy {
    gap: 1px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-module-copy strong {
    font-size: 12.5px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-module-copy small,
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-access-guidance {
    font-size: 9.5px;
    line-height: 1.2;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-unlock-action .btn {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 10px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-pager {
    position: static;
    z-index: auto;
    bottom: auto;
    min-height: 34px;
    padding: 2px 0 0;
    background: none;
    border-top: 1px solid var(--line-soft);
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-pager .btn {
    min-height: 30px;
    padding: 4px 10px;
    font-size: 11px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-page-info {
    font-size: 11px;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .garage-page-size {
    font-size: 9.5px;
  }
}
.desktop-app .nav-item,
.desktop-app .btn {
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.desktop-app .nav-item.is-active {
  background: linear-gradient(135deg, rgba(241, 90, 36, .16), rgba(255, 255, 255, .05));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--red), inset 0 0 18px rgba(241, 90, 36, .1);
}
.desktop-app .btn:focus-visible,
.desktop-app .nav-item:focus-visible {
  outline: 2px solid rgba(255, 168, 112, .95);
  outline-offset: 3px;
}
.desktop-app .garage-page:not(.vehicle-detail-page) .btn:focus-visible,
.desktop-app .tune-file-rows .btn:focus-visible {
  outline-offset: -3px;
}
@media (hover: hover) and (pointer: fine){
.desktop-app .nav-item:not(:disabled):not(.is-active):hover {
    background: linear-gradient(135deg, rgba(241, 90, 36, .12), rgba(255, 255, 255, .045));
    color: var(--text);
    box-shadow: inset 3px 0 0 rgba(241, 90, 36, .72), inset 0 0 16px rgba(241, 90, 36, .08);
  }
.desktop-app .btn-primary:not(:disabled):hover {
    background: var(--red-hover);
    box-shadow: 0 8px 24px rgba(241, 90, 36, .34);
    transform: translateY(-1px);
  }
.desktop-app .btn-secondary:not(:disabled):hover,
.desktop-app .btn-ghost:not(:disabled):not(.tune-delete-button):hover {
    border-color: rgba(241, 90, 36, .72);
    background: linear-gradient(135deg, rgba(241, 90, 36, .13), rgba(255, 255, 255, .065));
    box-shadow: 0 8px 22px rgba(241, 90, 36, .17);
    transform: translateY(-1px);
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .btn-primary:not(:disabled):hover,
.desktop-app .tune-file-rows .btn-primary:not(:disabled):hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 0 16px rgba(241, 90, 36, .2);
    transform: none;
  }
.desktop-app .garage-page:not(.vehicle-detail-page) .btn-secondary:not(:disabled):hover,
.desktop-app .garage-page:not(.vehicle-detail-page) .btn-ghost:not(:disabled):not(.tune-delete-button):hover,
.desktop-app .tune-file-rows .btn-secondary:not(:disabled):hover,
.desktop-app .tune-file-rows .btn-ghost:not(:disabled):not(.tune-delete-button):hover {
    box-shadow: inset 0 0 0 1px rgba(241, 90, 36, .24), inset 0 0 16px rgba(241, 90, 36, .11);
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce){
.desktop-app .nav-item,
.desktop-app .btn {
    transition: none;
  }
.desktop-app .nav-item:not(:disabled):hover,
.desktop-app .btn:not(:disabled):hover {
    transform: none;
  }
}
@media (min-width: 1121px){
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-details-with-account {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }
}
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-list.is-identified-view {
  height: auto;
  grid-template-rows: auto;
  align-content: start;
  overflow: visible;
}
.desktop-app .garage-page:not(.vehicle-detail-page) .vehicle-list.is-identified-view .vehicle-row {
  height: auto;
  min-height: 190px;
  padding: 16px;
  overflow: visible;
}

/* Host sizing and responsive adaptation; component declarations above come from the released desktop stylesheet. */
.desktop-app .app-window { height:760px; min-height:0; }
.desktop-app .shell { width:100%; margin:0; grid-template-columns:clamp(190px,19cqw,244px) minmax(0,1fr); }
.desktop-app .sidebar { gap:24px; }
.desktop-app .main-pane { min-width:0; min-height:0; }
.desktop-app .content { overflow:auto; min-height:0; }
.desktop-app .module-panel::after { content:none; }
.desktop-app .module-panel { position:static; }
.desktop-app .demo-window-controls { display:flex; align-items:center; height:34px; }
.desktop-app .demo-window-controls span { display:grid; place-items:center; width:40px; color:#c6ccd1; font-size:14px; }
.desktop-app .topbar { padding:16px 22px; }
.desktop-app .topbar-actions { flex:0 1 auto; }
.desktop-app .card { margin:0; }
.desktop-app .btn-icon { width:17px; height:17px; flex:none; }
.desktop-app .garage-module-icon .btn-icon { width:28px; height:28px; }
.desktop-app .interface-status-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.desktop-app .interface-read-actions, .desktop-app .cpc-identity-actions { flex-wrap:wrap; }
.desktop-app .field select { width:100%; min-height:44px; color:var(--text); background:var(--field); border:1px solid var(--line); border-radius:6px; padding:10px 12px; font-size:14px; }
.desktop-app .info-row strong { overflow-wrap:anywhere; }
.desktop-app .module-actions { display:flex; flex-wrap:wrap; gap:9px; }
.desktop-app .garage-module-button { min-width:130px; }
.desktop-app .vehicle-row { flex-wrap:wrap; }
.desktop-app .cpc-workspace-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.desktop-app .cpc-read-box, .desktop-app .cpc-tune-box { padding:14px; }
.desktop-app .tune-option-actions { flex-shrink:0; }
.desktop-app .card-head { flex-wrap:wrap; }
.desktop-app .demo-operation { padding:14px; border:1px solid #b35b354a; border-radius:7px; background:#241d174d; }
.desktop-app .demo-operation > div { display:flex; justify-content:space-between; gap:12px; color:var(--text); font-size:14px; margin-bottom:10px; }
.desktop-app .demo-operation progress { display:block; width:100%; height:7px; border:0; border-radius:9px; overflow:hidden; appearance:none; background:#26313a; accent-color:#f15a24; }
.desktop-app .demo-operation progress::-webkit-progress-bar { background:#26313a; }
.desktop-app .demo-operation progress::-webkit-progress-value { background:#f15a24; }
.desktop-app .demo-operation.is-green progress { accent-color:#36d47c; }
.desktop-app .demo-operation.is-green progress::-webkit-progress-value { background:#36d47c; }
.desktop-app .demo-operation p { margin-top:9px; font-size:13px; }
.desktop-app .demo-voltage { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding:10px; }
.desktop-app .demo-voltage > div { display:flex; align-items:center; gap:18px; }
.desktop-app .demo-voltage strong { color:#91d9a9; font-size:22px; }
.desktop-app .demo-voltage > span { font-size:12px; color:var(--muted); }
.desktop-app .demo-output-line { padding:16px; font:13px/1.6 Consolas,monospace; color:var(--muted); }
.desktop-app .diagnostics-action-row strong, .desktop-app .diagnostics-action-row small, .desktop-app .diagnostics-action-eyebrow { display:block; }
.desktop-app .diagnostics-action-eyebrow { color:var(--muted-2); text-transform:uppercase; letter-spacing:.05em; font-size:11px; margin-bottom:4px; }
.desktop-app .diagnostics-action-row small { color:var(--muted); margin-top:5px; }
.desktop-app .diagnostics-result-module-head > div { display:grid; gap:4px; }
.desktop-app .diagnostics-result-key { color:var(--muted-2); font-size:11px; }
.desktop-app .diagnostics-module-card { grid-template-columns:30px minmax(0,1fr) auto; }
.desktop-app :is(button,input,select):focus-visible, .demo-context button:focus-visible { outline:2px solid #ff8c61; outline-offset:3px; }
.desktop-app .nav-item { font-size:16px; }
.desktop-app .flash-lifecycle-banner.is-complete { background:#153223; border-color:#3e7958; color:#a7e5bc; }
.desktop-app .notice.is-ok { border:1px solid #3e7958; background:#153223; border-radius:7px; padding:12px 14px; }
@media(max-width:1000px) {
 .desktop-app .shell { grid-template-columns:165px minmax(0,1fr); }
 .desktop-app .sidebar { padding-inline:12px; }
 .desktop-app .interface-controls { grid-template-columns:minmax(0,1fr); }
 .desktop-app .interface-status-grid, .desktop-app .cpc-workspace-grid, .desktop-app .flash-preflight-cols { grid-template-columns:1fr; }
 .desktop-app .vehicle-row-actions { width:100%; }
 .desktop-app .diagnostics-action-row, .desktop-app .diagnostics-card-head { flex-wrap:wrap; }
}
@media(max-width:760px) {
 .demo-intro { align-items:start; flex-direction:column; gap:1rem; }
 .demo-context { width:100%; justify-content:space-between; }
 .desktop-app .app-window { height:760px; }
 .desktop-app .shell { grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); }
 .desktop-app .sidebar { padding:8px; border-right:0; border-bottom:1px solid var(--line); overflow:visible; }
 .desktop-app .brand, .desktop-app .nav-label { display:none; }
 .desktop-app .nav-group { display:flex; gap:4px; }
 .desktop-app .nav-item { min-height:40px; padding:8px; gap:5px; justify-content:center; font-size:13px; }
 .desktop-app .nav-item .btn-icon { width:15px; height:15px; }
 .desktop-app .topbar { gap:10px; padding:12px 14px; flex-wrap:wrap; }
 .desktop-app .topbar h1 { font-size:21px; flex-basis:auto; }
 .desktop-app .topbar-actions { gap:6px; flex-basis:auto; }
 .desktop-app .status-pill { font-size:11px; min-height:25px; }
 .desktop-app .content { padding:12px; }
 .desktop-app .interface-step { white-space:normal; min-width:100%; }
 .desktop-app .section-title-row { flex-wrap:wrap; }
 .desktop-app .interface-read-actions { justify-content:space-between; width:100%; }
 .desktop-app .module-actions { display:grid; grid-template-columns:1fr; width:100%; }
 .desktop-app .garage-module-button { width:100%; }
 .desktop-app .vehicle-row-main { min-width:0; width:100%; }
 .desktop-app .vehicle-title-block h2 { font-size:18px; flex-wrap:wrap; }
 .desktop-app .handoff-banner { display:flex; flex-wrap:wrap; padding:12px; }
 .desktop-app .handoff-check { display:none; }
 .desktop-app .handoff-text { white-space:normal; }
 .desktop-app .diagnostics-actions { flex-wrap:wrap; width:100%; }
 .desktop-app .diagnostics-actions .btn { flex:1; }
 .desktop-app .diagnostics-vehicle-meta { text-align:left; }
 .desktop-app .workflow-vehicle-title { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) { .desktop-app *, .desktop-app *::before, .desktop-app *::after { animation:none !important; transition:none !important; } }
