.ves-wrap,
.ves-portal {
  --ves-ink: #17202c;
  --ves-muted: #667287;
  --ves-line: #d9e0e8;
  --ves-panel: #ffffff;
  --ves-page: #f4f6f8;
  --ves-accent: #0f766e;
  --ves-bad: #b91c1c;
  color: var(--ves-ink);
}

.ves-layout {
  display: grid;
  gap: 18px;
}

.ves-panel {
  background: var(--ves-panel);
  border: 1px solid var(--ves-line);
  border-radius: 8px;
  padding: 16px;
  margin: 14px 0;
}

.ves-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ves-form label,
.ves-login-form label {
  color: var(--ves-muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.ves-form input,
.ves-form select,
.ves-form textarea,
.ves-login-form input {
  width: 100%;
  max-width: none;
  min-height: 40px;
  border: 1px solid var(--ves-line);
  border-radius: 8px;
  padding: 8px 10px;
}

.ves-form textarea {
  min-height: 92px;
}

.ves-wide {
  grid-column: 1 / -1;
}

.ves-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ves-photo-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ves-photo-preview img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--ves-line);
  background: #eef2f6;
}

.ves-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.ves-card {
  overflow: hidden;
  display: grid;
  min-height: 430px;
  background: #fff;
  border: 1px solid var(--ves-line);
  border-radius: 8px;
}

.ves-photo {
  height: 190px;
  display: grid;
  place-items: center;
  color: var(--ves-muted);
  font-weight: 800;
  background: #dfe6ed;
  overflow: hidden;
}

.ves-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ves-card-body {
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.ves-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ves-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.ves-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--ves-accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ves-price {
  font-size: 20px;
}

.ves-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  font-size: 13px;
}

.ves-details div {
  min-width: 0;
}

.ves-details dt {
  color: var(--ves-muted);
  font-size: 12px;
}

.ves-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ves-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ves-empty {
  padding: 32px;
  color: var(--ves-muted);
  text-align: center;
  border: 1px dashed #b9c2cf;
  border-radius: 8px;
  background: #fff;
}

.ves-login-form {
  max-width: 460px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--ves-line);
  border-radius: 8px;
  background: #fff;
}

.ves-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ves-accent);
  text-decoration: none;
  cursor: pointer;
}

.ves-error {
  max-width: 460px;
  margin: 0 0 14px;
  padding: 10px 12px;
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.ves-portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ves-portal-head h2 {
  margin: 0;
}

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

@media (max-width: 620px) {
  .ves-form,
  .ves-grid,
  .ves-details {
    grid-template-columns: 1fr;
  }

  .ves-portal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ves-button {
    width: 100%;
  }
}
