.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-heading h2 { margin-bottom: .2rem; }
.table-wrap { width: 100%; overflow-x: auto; }
.row-title { font-weight: 800; text-decoration: none; }
.data-table td small, .row-title + small { display: block; color: var(--muted); font-size: .72rem; }
.back-link { color: var(--muted); font-size: .82rem; font-weight: 750; text-decoration: none; }
.optional { color: var(--muted); font-weight: 500; }
.checkbox-field { justify-content: center; }
.checkbox-field label { display: flex; align-items: center; gap: .5rem; }
.checkbox-field input { width: auto; min-height: 0; }

.quick-links { display: grid; gap: .2rem; }
.quick-links a {
  display: flex;
  justify-content: space-between;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
  text-decoration: none;
}

.media-state { margin-top: 1.2rem; padding: 1rem; border-radius: 12px; background: var(--soft); }
.media-state p { margin: .25rem 0; }
.asset-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: .55rem;
  max-height: 430px;
  overflow: auto;
  margin-bottom: 1rem;
}
.asset-choice {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .25rem;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}
.asset-choice:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 2px var(--mint); }
.asset-choice input { position: absolute; top: .5rem; left: .5rem; }
.asset-choice img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 7px; background: #f5f7f3; }
.asset-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.copy-button {
  width: 100%;
  margin-top: .45rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: .68rem;
  font-weight: 750;
  cursor: pointer;
}

.point-positive { color: #177148; font-weight: 800; }
.point-negative { color: #a33a3a; font-weight: 800; }
.inline-form.compact { align-items: center; flex-wrap: nowrap; }
.inline-form.compact select { min-height: 34px; }
.price-card label { display: flex; align-items: center; gap: .45rem; margin-top: .5rem; }
.price-card input[type="number"] { width: 105px; min-height: 40px; padding: .45rem; border: 1px solid var(--line); border-radius: 8px; }
.price-card input[type="checkbox"] { width: auto; }
.section-title { margin: 2rem 0 .8rem; }
.danger { color: #a33a3a !important; }

@media (max-width: 640px) {
  .panel-heading { align-items: flex-start; }
  .inline-form.compact { align-items: flex-start; flex-direction: column; }
}
