.file-input {
  height: auto;
  min-height: 44px;
  padding: 9px 11px;
}

.fleet-vehicle-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fleet-vehicle-cell > img {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.owner-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.owner-gallery-item {
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.owner-gallery-item > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #101719;
}

.owner-gallery-meta {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}

.owner-gallery-meta span:first-child {
  min-width: 0;
}

.owner-gallery-meta strong,
.owner-gallery-meta small {
  display: block;
}

.owner-gallery-meta strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-gallery-meta small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.owner-gallery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 12px 12px;
}

.vehicle-gallery {
  min-width: 0;
}

.vehicle-gallery-main {
  position: relative;
  display: grid;
  min-height: 470px;
  overflow: hidden;
  place-items: center;
  color: #739ba2;
  background: linear-gradient(145deg, var(--surface-2), color-mix(in srgb, var(--primary) 12%, var(--surface)));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-gallery-main > img {
  display: block;
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.vehicle-gallery-main > svg {
  width: 180px;
  height: 180px;
  stroke-width: .8;
}

.vehicle-gallery-main .badge {
  position: absolute;
  top: 18px;
  right: 18px;
}

.vehicle-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.vehicle-gallery-thumbs button {
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 6px;
}

.vehicle-gallery-thumbs button.active {
  border-color: var(--primary);
}

.vehicle-gallery-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.public-car-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .owner-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-gallery-main,
  .vehicle-gallery-main > img {
    min-height: 340px;
    height: 340px;
  }
}

@media (max-width: 620px) {
  .owner-gallery {
    grid-template-columns: 1fr;
  }

  .vehicle-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
