[v-cloak] {
  display: none;
}

body {
  background: #f6f8fb;
  color: #172033;
}

.app-width {
  max-width: 1040px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e7ebf0;
}

.topbar > .container {
  min-height: 64px;
}

.brand {
  color: #172033;
  font-size: 1.08rem;
  font-weight: 750;
  text-decoration: none;
}

.user-email {
  max-width: 260px;
  overflow: hidden;
  color: #697386;
  font-size: .875rem;
  text-overflow: ellipsis;
}

.auth-card {
  max-width: 440px;
  margin-top: min(12vh, 100px);
}

.empty-state,
.product-card,
.card {
  border-radius: 14px;
}

.product-card {
  overflow: hidden;
  border: 1px solid #e8edf3;
  background: #fff;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}

.product-card:hover {
  box-shadow: 0 8px 24px #17203318;
  transform: translateY(-2px);
}

.product-card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #e9eef4;
}

.placeholder-image {
  display: grid;
  place-items: center;
  color: #8792a2;
}

.badge-status-waiting {
  background: #fff1c2;
  color: #765300;
}

.badge-status-analyzing {
  background: #dbeafe;
  color: #174ea6;
}

.badge-status-completed {
  background: #dcfce7;
  color: #17683a;
}

.badge-status-failed {
  background: #fee2e2;
  color: #9d2020;
}

.photo-add-tile {
  display: inline-flex;
  width: 112px;
  height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  border: 1px dashed #aab5c4;
  border-radius: 12px;
  background: #fbfcfe;
  color: #516072;
}

.photo-add-tile:hover:not(:disabled) {
  border-color: #0d6efd;
  color: #0d6efd;
}

.photo-add-tile:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.photo-item {
  position: relative;
  min-width: 0;
}

.photo-item > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #e9eef4;
  object-fit: cover;
}

.photo-number {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #172033c9;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.photo-actions {
  position: absolute;
  right: 5px;
  bottom: 30px;
  left: 5px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.photo-actions .btn {
  min-width: 32px;
  padding: .15rem .4rem;
  font-size: .8rem;
}

.photo-name {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #5d6979;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.description-box {
  min-height: 200px;
  resize: vertical;
}

footer {
  text-align: center;
}

@media (max-width: 575.98px) {
  .product-card-image {
    height: 180px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .photo-actions {
    bottom: 26px;
    gap: 2px;
  }

  .photo-actions .btn {
    min-width: 29px;
  }
}
