.fleet-workspace {
  --fleet-soft-wine: #f7e9e6;
  --fleet-soft-gold: #fff5e3;
  --fleet-soft-green: #e9f5ee;
  --fleet-soft-red: #fae9e7;
  display: grid;
  gap: 18px;
}

.fleet-workspace :focus-visible {
  outline: 3px solid rgba(121, 36, 36, .34);
  outline-offset: 3px;
}

.fleet-workspace-head {
  align-items: flex-start;
}

.fleet-workspace-head h2,
.fleet-section-head h3,
.fleet-list-head h3,
.fleet-state h3,
.fleet-editor h3 {
  margin: 3px 0 0;
  color: var(--wine-dark);
}

.fleet-workspace-head p,
.fleet-section-head p,
.fleet-editor .fleet-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.fleet-new-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.fleet-new-button > span {
  font-size: 21px;
  font-weight: 500;
  line-height: .7;
}

.fleet-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 4px 16px rgba(74, 43, 21, .035);
}

.fleet-summary > div {
  position: relative;
  min-width: 0;
  padding: 14px 17px;
  border-right: 1px solid var(--line);
}

.fleet-summary > div:last-child {
  border-right: 0;
}

.fleet-summary > div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
  content: "";
}

.fleet-summary .fleet-summary-overdue::before { background: var(--red); }
.fleet-summary .fleet-summary-soon::before { background: var(--amber); }
.fleet-summary .fleet-summary-current::before { background: var(--green); }

.fleet-summary strong,
.fleet-summary span {
  display: block;
}

.fleet-summary strong {
  color: var(--wine-dark);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.fleet-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fleet-layout {
  display: grid;
  grid-template-columns: minmax(255px, 310px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.fleet-list-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

.fleet-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px 12px;
  border-bottom: 1px solid var(--line);
}

.fleet-list-head span,
.fleet-count {
  display: inline-grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 999px;
  color: var(--wine);
  background: #f5ede2;
  font-size: 11px;
  font-weight: 850;
}

.fleet-list {
  display: grid;
  max-height: calc(100vh - 188px);
  overflow: auto;
  padding: 8px;
}

.fleet-list-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 9px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.fleet-list-item:hover {
  border-color: #e1d6c5;
  background: #fbf8f1;
}

.fleet-list-item.is-selected {
  border-color: #d9bd8f;
  background: var(--fleet-soft-gold);
  box-shadow: inset 3px 0 var(--wine);
}

.fleet-list-photo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.fleet-photo-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid #d9ccba;
  color: var(--wine);
  background: linear-gradient(145deg, #f5ead9, #fffdf8);
  font-family: Georgia, serif;
  font-weight: 700;
}

.fleet-list-copy,
.fleet-list-copy strong,
.fleet-list-copy span,
.fleet-list-copy small {
  display: block;
  min-width: 0;
}

.fleet-list-copy strong,
.fleet-list-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fleet-list-copy strong { color: var(--wine-dark); font-size: 12px; }
.fleet-list-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.fleet-list-copy small { margin-top: 5px; color: #81776a; font-size: 9px; }

.fleet-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px #e6f2eb;
}

.fleet-list-dot-overdue { background: var(--red); box-shadow: 0 0 0 3px #f8e3e1; }
.fleet-list-dot-due_soon { background: var(--amber); box-shadow: 0 0 0 3px #faecd3; }

.fleet-detail {
  display: grid;
  min-width: 0;
  gap: 16px;
  scroll-margin-block-start: 105px;
}

.fleet-hero {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) auto;
  min-height: 150px;
}

.fleet-hero-photo {
  min-height: 150px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #efe8dc;
}

.fleet-vehicle-photo {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.fleet-hero-copy {
  align-self: center;
  min-width: 0;
  padding: 19px 21px;
}

.fleet-hero-copy h2 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--wine-dark);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

.fleet-hero-copy > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.fleet-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.fleet-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 9px;
  min-width: 160px;
  padding: 17px;
  border-left: 1px solid var(--line);
  background: #fbf8f1;
}

.fleet-hero-actions form {
  display: grid;
  gap: 7px;
}

.fleet-photo-button {
  display: inline-flex;
  justify-content: center;
  cursor: pointer;
}

.workspace .fleet-photo-button input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fleet-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdf9;
}

.fleet-facts > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.fleet-facts > div:last-child { border-right: 0; }
.fleet-facts dt { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.fleet-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--wine-dark); font-size: 12px; font-weight: 750; }

.fleet-section,
.fleet-editor {
  padding: 19px;
  scroll-margin-block-start: 105px;
}

.fleet-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.fleet-deadline-list,
.fleet-document-list,
.fleet-damage-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.fleet-deadline {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(145px, auto);
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e3dacc;
  border-left: 4px solid var(--green);
  border-radius: 9px;
  background: #fff;
}

.fleet-deadline-overdue { border-left-color: var(--red); background: #fffaf9; }
.fleet-deadline-due_soon { border-left-color: var(--amber); background: #fffdf8; }

.fleet-deadline-date {
  display: grid;
  min-height: 50px;
  place-content: center;
  border-radius: 8px;
  color: var(--wine-dark);
  background: #f5ede2;
  text-align: center;
}

.fleet-deadline-date span { font-size: 15px; font-weight: 850; }
.fleet-deadline-date small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.fleet-deadline-copy { min-width: 0; }
.fleet-deadline-copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.fleet-deadline-copy h4 { margin: 0; color: var(--wine-dark); font-size: 13px; }
.fleet-deadline-copy p { margin: 6px 0 0; color: var(--ink); font-size: 11px; }
.fleet-deadline-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.fleet-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #17623f;
  background: var(--fleet-soft-green);
  font-size: 9px;
  font-weight: 850;
}

.fleet-status > span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.fleet-status-amber { color: #7e4b09; background: #fff0d7; }
.fleet-status-amber > span { background: var(--amber); }
.fleet-status-red { color: #8c2525; background: var(--fleet-soft-red); }
.fleet-status-red > span { background: var(--red); }

.fleet-completion {
  position: relative;
  justify-self: end;
}

.fleet-completion > summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.fleet-completion > summary::-webkit-details-marker { display: none; }
.fleet-completion[open] { grid-column: 1 / -1; width: 100%; }
.fleet-completion[open] > summary { float: right; }
.fleet-completion form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 9px; clear: both; align-items: end; margin-top: 11px; padding: 12px; border: 1px solid #dfd3c0; border-radius: 8px; background: #fbf8f1; }
.fleet-completion .field { gap: 4px; }
.fleet-completion input { padding: 8px; }

.fleet-deadline-manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
  gap: 12px;
  clear: both;
  padding-top: 11px;
}

.fleet-deadline-manage-grid > section {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfd3c0;
  border-radius: 8px;
  background: #fbf8f1;
}

.fleet-deadline-manage-grid h5 {
  margin: 0;
  color: var(--wine-dark);
  font-size: 11px;
}

.fleet-deadline-manage-grid section > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.fleet-completion .fleet-deadline-edit-form,
.fleet-completion .fleet-deadline-complete-form {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
}

.fleet-completion .fleet-deadline-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fleet-completion .fleet-deadline-complete-form {
  grid-template-columns: 1fr;
}

.fleet-history {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.fleet-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fleet-history-head h4 {
  margin: 0;
  color: var(--wine-dark);
  font-size: 12px;
}

.fleet-history-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.fleet-history ol {
  display: grid;
  gap: 8px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.fleet-history .fleet-empty-inline { margin-top: 11px; }

.fleet-history-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid #e3dacc;
  border-radius: 8px;
  background: #fff;
}

.fleet-history-date {
  display: grid;
  min-height: 44px;
  place-content: center;
  border-radius: 7px;
  color: #17623f;
  background: var(--fleet-soft-green);
  text-align: center;
}

.fleet-history-date span { font-size: 13px; font-weight: 850; }
.fleet-history-date small { margin-top: 1px; font-size: 8px; }
.fleet-history-copy { min-width: 0; }
.fleet-history-copy strong { display: block; color: var(--wine-dark); font-size: 11px; }
.fleet-history-copy > span { display: block; margin-top: 3px; color: var(--ink); font-size: 10px; }
.fleet-history-copy > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.fleet-history-copy > p { margin: 7px 0 0; color: var(--ink); font-size: 10px; white-space: pre-wrap; }
.fleet-history-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.fleet-history-files a,
.fleet-history-files span { padding: 4px 7px; border-radius: 999px; color: var(--wine); background: #f5ede2; font-size: 9px; text-decoration: none; }

.fleet-document {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #e4dbce;
  border-radius: 8px;
  background: #fff;
}

.fleet-document-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 7px;
  color: var(--wine);
  background: #f5e8d1;
  font-size: 9px;
  font-weight: 900;
}

.fleet-document strong,
.fleet-document span { display: block; min-width: 0; }
.fleet-document strong { overflow: hidden; color: var(--wine-dark); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fleet-document span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.fleet-document .secondary { padding: 7px 9px; font-size: 10px; text-decoration: none; }
.fleet-file-unavailable { text-align: right; }

.fleet-upload-form,
.fleet-add-panel {
  margin-top: 14px;
  padding: 13px;
  border: 1px dashed #d8c39f;
  border-radius: 9px;
  background: #fffbf4;
}

.fleet-upload-form {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) minmax(260px, 1fr) auto;
  gap: 11px;
  align-items: end;
}

.fleet-upload-form .form-actions { padding: 0; }

.fleet-add-panel > summary {
  cursor: pointer;
  color: var(--wine);
  font-size: 12px;
  font-weight: 850;
}

.fleet-add-panel[open] > summary { margin-bottom: 13px; }

.fleet-dropzone {
  display: grid;
  min-height: 100px;
  place-content: center;
  padding: 12px;
  border: 1.5px dashed #c9aa77;
  border-radius: 9px;
  color: var(--wine-dark);
  background: #fffaf2;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.fleet-dropzone:hover,
.fleet-dropzone.is-dragging {
  border-color: var(--wine);
  background: #fff1df;
}

.fleet-dropzone strong,
.fleet-dropzone span,
.fleet-dropzone small { display: block; }
.fleet-dropzone strong { font-size: 12px; }
.fleet-dropzone span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.fleet-dropzone small { margin-top: 5px; color: #81776a; font-size: 9px; line-height: 1.4; }
.workspace .fleet-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.fleet-dropzone .fleet-file-summary { margin-top: 7px; color: var(--wine); font-weight: 800; }
.fleet-dropzone-compact { min-height: 86px; margin-top: 2px; }

.fleet-damage {
  padding: 12px;
  border: 1px solid #e2d8c9;
  border-radius: 9px;
  background: #fff;
}

.fleet-damage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.fleet-damage h4 { margin: 0; color: var(--wine-dark); font-size: 13px; }
.fleet-damage-head div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.fleet-damage > p { margin: 9px 0 0; color: var(--ink); font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.fleet-damage > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }

.fleet-repair-result {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid var(--green);
  border-radius: 0 7px 7px 0;
  color: #17623f;
  background: var(--fleet-soft-green);
  font-size: 10px;
}

.fleet-repair-result span {
  color: var(--ink);
  line-height: 1.45;
  white-space: pre-wrap;
}

.fleet-damage-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 120px));
  gap: 7px;
  margin-top: 10px;
}

.fleet-damage-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #ddd2c1;
  border-radius: 7px;
  object-fit: cover;
}

.fleet-damage-edit {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.fleet-damage-edit > summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
}

.fleet-damage-edit > summary::-webkit-details-marker { display: none; }

.fleet-damage-edit form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid #dfd3c0;
  border-radius: 8px;
  background: #fbf8f1;
}

.fleet-empty-inline {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #dfd3c0;
  border-radius: 8px;
  color: var(--muted);
  background: #fbf8f1;
  text-align: center;
}

.fleet-empty-inline strong { color: var(--wine-dark); font-size: 12px; }
.fleet-empty-inline span { font-size: 10px; line-height: 1.45; }

.fleet-editor {
  max-width: 980px;
}

.fleet-editor form {
  margin-top: 18px;
}

.fleet-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fleet-field-wide { grid-column: 1 / -1; }
.fleet-responsible { min-width: 0; margin: 0; padding: 12px; border: 1px solid #ddd2c1; border-radius: 8px; }
.fleet-responsible legend { padding: 0 5px; color: var(--wine-dark); font-size: 10px; font-weight: 850; }
.fleet-responsible > p { margin: 0 0 9px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.fleet-responsible-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.fleet-responsible-options label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid #e1d6c5; border-radius: 7px; color: var(--ink); background: #fff; font-size: 10px; cursor: pointer; }
.fleet-responsible-options input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--wine); }
.fleet-responsible-options span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-responsible-empty { padding: 10px; border-radius: 7px; color: var(--muted); background: #fbf8f1; font-size: 10px; }
.fleet-form-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.fleet-inline-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 1px solid #cec5b5; border-radius: 7px; background: #fffdf9; }
.fleet-inline-input input { border: 0; }
.fleet-inline-input span { padding: 0 10px; color: var(--muted); font-size: 10px; }

.fleet-state {
  display: grid;
  min-height: 280px;
  place-content: center;
  justify-items: center;
  padding: 35px;
  text-align: center;
}

.fleet-state > p {
  max-width: 540px;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.fleet-empty-icon,
.fleet-state-error > span {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 11px;
  place-items: center;
  border-radius: 13px;
  color: var(--wine);
  background: #f5e8d1;
  font-size: 24px;
}

.fleet-state-error > span { color: var(--red); background: var(--fleet-soft-red); font-weight: 850; }

.fleet-spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 13px;
  border: 3px solid #eadfce;
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: fleet-spin .8s linear infinite;
}

.fleet-notes > p { margin: 12px 0 0; color: var(--ink); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.fleet-live-region { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@keyframes fleet-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .fleet-spinner { animation-duration: 1.8s; }
  .fleet-dropzone { transition: none; }
}

@media (max-width: 1100px) {
  .fleet-layout { grid-template-columns: 1fr; }
  .fleet-list-panel { position: static; max-height: none; }
  .fleet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 260px; }
  .fleet-hero { grid-template-columns: 150px minmax(0, 1fr); }
  .fleet-hero-actions { grid-column: 1 / -1; flex-direction: row; border-top: 1px solid var(--line); border-left: 0; }
  .fleet-hero-actions form { grid-template-columns: 1fr auto; }
  .fleet-upload-form { grid-template-columns: 1fr 1fr; }
  .fleet-upload-form .form-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 760px) {
  .fleet-workspace { gap: 13px; }
  .fleet-workspace-head { display: grid; gap: 13px; }
  .fleet-new-button { width: 100%; justify-content: center; }
  .fleet-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-summary > div:nth-child(2) { border-right: 0; }
  .fleet-summary > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .fleet-list { grid-template-columns: 1fr; max-height: 245px; }
  .fleet-detail { scroll-margin-block-start: 72px; }
  .fleet-hero { grid-template-columns: 105px minmax(0, 1fr); min-height: 125px; }
  .fleet-hero-photo, .fleet-vehicle-photo { min-height: 125px; }
  .fleet-hero-copy { padding: 15px; }
  .fleet-hero-copy h2 { font-size: 22px; }
  .fleet-hero-actions { align-items: stretch; flex-direction: column; }
  .fleet-hero-actions form { grid-template-columns: 1fr; }
  .fleet-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-facts > div:nth-child(2) { border-right: 0; }
  .fleet-facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .fleet-section, .fleet-editor { padding: 15px; }
  .fleet-deadline { grid-template-columns: 51px minmax(0, 1fr); }
  .fleet-completion { grid-column: 1 / -1; justify-self: stretch; }
  .fleet-completion > summary { display: flex; justify-content: center; }
  .fleet-completion form { grid-template-columns: 1fr; }
  .fleet-deadline-manage-grid { grid-template-columns: 1fr; }
  .fleet-completion .fleet-deadline-edit-form { grid-template-columns: 1fr; }
  .fleet-damage-edit form { grid-template-columns: 1fr; }
  .fleet-upload-form, .fleet-form-grid { grid-template-columns: 1fr; }
  .fleet-field-wide, .fleet-upload-form .form-actions { grid-column: auto; }
  .fleet-responsible-options { grid-template-columns: 1fr; }
  .fleet-upload-form .form-actions button { width: 100%; }
}

@media (max-width: 430px) {
  .fleet-hero { grid-template-columns: 1fr; }
  .fleet-hero-photo { max-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .fleet-vehicle-photo { max-height: 190px; }
  .fleet-document { grid-template-columns: 35px minmax(0, 1fr); }
  .fleet-document > :last-child { grid-column: 2; justify-self: start; }
  .fleet-damage-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fleet-critical-warning { padding: 18px 22px; color: #7f1d1d; background: #fff1f2; border: 1px solid #fecdd3; border-left: 5px solid #b91c1c; border-radius: 12px; }
.fleet-critical-warning p { margin: 6px 0 0; }

.fleet-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}.fleet-gallery-grid figure{margin:0;min-width:0;border:1px solid #ded9d0;border-radius:12px;overflow:hidden}.fleet-gallery-grid img{display:block;width:100%;height:150px;object-fit:cover}.fleet-gallery-grid figcaption{padding:10px;font-size:13px}.fleet-gallery-grid button{width:100%;min-height:44px}.fleet-gallery form{margin-top:18px}.fleet-gallery input[type=file]{max-width:100%}@media(max-width:420px){.fleet-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fleet-gallery-grid img{height:120px}.fleet-gallery-grid button{font-size:12px;white-space:normal}}
