/* Test design: dense registers + split vehicle workspace. */
@media (min-width: 761px) {
  .app { grid-template-columns: 176px minmax(0, 1fr); }
  .side { padding: 18px 8px 12px; }
  .brand { padding: 0 10px 22px; font-size: 18px; }
  .nav button { min-height: 38px; padding: 8px 10px; font-size: 13px; }
  .nav i { width: 23px; }
  .workspace.view { max-width: none; padding: 19px 20px 34px; }
  .workspace.view .head { margin-bottom: 14px; align-items: center; flex-direction: row; }
  .workspace.view .head h1 { margin-top: 3px; font-size: 27px; }
  .workspace.view .eyebrow { font-size: 10px; }
  .workspace.view .toolbar, #estimates .estimate-toolbar { margin-bottom: 9px; }
  .workspace.view .search, #estimates #estimatesSearch { min-height: 35px; padding: 7px 10px; }
  .workspace.view .btn { min-height: 34px; padding: 7px 11px; }
  #clients .client-bulk, #vehicles .vehicle-bulk, #products .product-selection { margin: 7px 0 9px; }
  #clients .box, #vehicles .box, #estimates .estimate-box, #products .box { border-radius: 5px; }
  #clients table, #vehicles table, #estimates table, #products table { font-size: 13px; }
  #clients th, #vehicles th, #estimates .estimate-table th, #products th {
    height: 34px; padding: 7px 9px; font-size: 11px; letter-spacing: .04em;
  }
  #clients td, #vehicles td, #estimates .estimate-table td, #products td {
    height: 42px; padding: 7px 9px; line-height: 1.25;
  }
  #clients .client-select-cell, #vehicles .vehicle-select-cell,
  #estimates .estimate-check, #products .product-check { width: 38px !important; min-width: 38px !important; }
  #clients .avatar, #vehicles .avatar { width: 24px; height: 24px; margin-right: 5px; }
  .list-summary { margin: 6px 0 8px; }
  .list-pager { margin-top: 7px; }
}

/* Card content keeps the existing ETK/AOS tabs and editing actions. */
.vehicle-detail { max-width: none; padding: 16px 20px 30px; min-width: 0; }
.vehicle-detail .detail-top { margin-bottom: 7px; }
.vehicle-detail .detail-actions .btn { padding: 7px 11px; }
.vehicle-detail .vehicle-hero { padding: 9px 0 13px; gap: 12px; }
.vehicle-detail .vehicle-id { gap: 10px; min-width: 0; }
.vehicle-detail .roundel { width: 42px; height: 42px; flex: none; box-shadow: inset 0 0 0 6px #10171d; }
.vehicle-detail .vehicle-id h1 { font-size: clamp(23px, 2.1vw, 30px); margin-bottom: 3px; }
.vehicle-detail .vehicle-meta { gap: 7px 10px; font-size: 12px; }
.vehicle-detail .vehicle-meta span + span { padding-left: 10px; }
.vehicle-detail .work-tag { padding: 5px 9px; }
.vehicle-detail .detail-main { grid-template-columns: minmax(185px, 26%) minmax(0, 1fr); gap: 12px; margin-top: 13px; }
.vehicle-detail .media-grid { gap: 7px; }
.vehicle-detail .image-viewport, .vehicle-detail .image-viewport.interior {
  aspect-ratio: 16 / 10; border-radius: 6px;
}
.vehicle-detail .media-caption { display: none; }
.vehicle-detail .technical-heading { margin-bottom: 8px; }
.vehicle-detail .technical-heading h2 { font-size: 16px; }
.vehicle-detail .technical-heading span { font-size: 9px; }
.vehicle-detail .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.vehicle-detail .fact, .vehicle-detail .fact-priority {
  min-height: 62px; padding: 8px 10px; border-radius: 6px; background: var(--p); border-color: var(--l);
}
.vehicle-detail .fact small, .vehicle-detail .fact-priority small {
  margin-bottom: 3px; color: var(--m); font-size: 11px; letter-spacing: 0; text-transform: none;
}
.vehicle-detail .fact b, .vehicle-detail .fact-priority b { font-size: 14px; line-height: 1.25; letter-spacing: 0; }
.vehicle-detail .fact span { margin-top: 2px; font-size: 11px; }
.vehicle-detail .vehicle-tabs { margin-top: 13px; }
.vehicle-detail .vehicle-tabs button { padding: 8px 10px; font-size: 12px; }
.vehicle-detail .detail-pane { padding-top: 11px; }
.vehicle-detail .detail-pane h2 { font-size: 14px; margin-bottom: 8px; }
.vehicle-detail .detail-note { margin-top: 12px; padding: 10px 11px; }

@media (min-width: 1420px) {
  .vehicle-detail .fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vehicle-context[hidden] { display: none !important; }
.vehicle-context { min-width: 0; padding: 17px 9px; background: var(--bg); border-right: 1px solid var(--l); }
.vehicle-context-title { display: flex; justify-content: space-between; gap: 8px; margin: 0 5px 12px; font-size: 14px; }
.vehicle-context-title span { color: var(--m); font-size: 12px; }
.vehicle-context-search { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px; border: 1px solid var(--l); border-radius: 5px; background: var(--p); color: var(--m); }
.vehicle-context-search span { font-size: 20px; line-height: 1; }
.vehicle-context-search input { min-width: 0; width: 100%; border: 0; background: transparent; outline: 0; color: var(--t); font-size: 12px; }
.vehicle-context-search input::placeholder { color: var(--m); }
#vehicleContextList { margin-top: 8px; }
.vehicle-context-item { display: grid; width: 100%; gap: 2px; padding: 9px 7px; border: 0; border-bottom: 1px solid var(--l); background: transparent; color: var(--t); text-align: left; }
.vehicle-context-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.vehicle-context-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--m); font-size: 11px; }
.vehicle-context-item:hover, .vehicle-context-item:focus-visible { background: var(--p2); }
.vehicle-context-item.active { padding-left: 5px; border-left: 2px solid var(--a); background: var(--p2); }
.vehicle-context-empty { color: var(--m); padding: 9px 7px; font-size: 12px; }
@media (min-width: 761px) {
  main.vehicle-split-active { display: grid; grid-template-columns: 216px minmax(0, 1fr); align-items: start; min-width: 0; }
  main.vehicle-split-active .vehicle-context { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; }
  main.vehicle-split-active #vehicleDetail.show { min-width: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  main.vehicle-split-active { grid-template-columns: minmax(0, 1fr); }
  main.vehicle-split-active .vehicle-context { display: none; }
}
@media (min-width: 761px) and (max-width: 850px) {
  .side { flex-direction: column; height: 100vh; }
  .nav { display: grid; overflow: visible; }
  .side .side-footer { margin: auto 0 0; padding: 14px 4px 0; border-top: 1px solid var(--l); }
  .side-footer .staff-button { width: 100%; justify-content: flex-start; padding: 9px 11px; }
  .side-footer .staff-dot, .side-footer #staffLabel, .side-footer .relay-note, .crm-data-status { display: block; }
  .side-footer .account-icon { display: none; }
  .account-menu { position: absolute; top: auto; right: auto; bottom: calc(100% + 10px); left: 0; }
}
@media (max-width: 1050px) {
  .vehicle-detail .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .vehicle-context { display: none !important; }
  .vehicle-detail { padding: 13px 12px 28px; }
  .vehicle-detail .detail-main { grid-template-columns: 1fr; }
  .vehicle-detail .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-detail .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-detail .image-viewport, .vehicle-detail .image-viewport.interior { aspect-ratio: 4 / 3; }
}
