.manage {
  max-width: 1200px;
}
.manage h1 {
  margin: 0;
  line-height: 1.05;
}
.manage :is(h2, h3, p) {
  margin-block: 0;
}
.manage h2 {
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.2;
}
.manage h3 {
  font-size: 1.04rem;
  line-height: 1.3;
}
.manage .title-line,
.edit-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.manage .back-nav {
  margin-bottom: 14px;
}
.manage :is(section, aside) {
  scroll-margin-top: 18px;
}
.hub-filters {
  margin-block: 28px 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.hub-filters button,
.offer-mode label,
.availability-choice label,
.approval-choice label {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.91rem;
  cursor: pointer;
  padding: 9px 13px;
  line-height: 1.3;
}
.hub-filters button[aria-pressed="true"],
.offer-mode label:has(:checked),
.availability-choice label:has(:checked),
.approval-choice label:has(:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.manage .inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 20px;
}
.inventory-card {
  min-width: 0;
  display: block;
  background: white;
  padding-bottom: 16px;
}
.inventory-cover {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1;
  background: white;
  overflow: hidden;
  color: var(--muted);
}
.inventory-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.inventory-card h2 {
  font-size: 1.1rem;
  margin: 9px 14px 4px;
  overflow-wrap: anywhere;
}
.inventory-price {
  margin-inline: 14px;
}
.inventory-price,
.editor-help,
.subtle {
  font-size: 0.91rem;
  line-height: 1.43;
  color: var(--muted);
}
.status-badge {
  display: inline-flex;
  border-radius: var(--radius);
  padding: 5px 9px;
  font-weight: 650;
  font-size: 0.78rem;
  line-height: 1.15;
  background: #eef0f3;
  color: #343d4c;
}
.status-badge.active {
  background: #d9f1e5;
  color: #195b3d;
}
.inventory-cover .status-badge {
  position: absolute;
  top: 0;
  left: 14px;
}
.manage .state-box {
  margin-top: 24px;
}
.manage .state-box h1 {
  font-size: clamp(1.7rem, 4vw, 2.65rem);
}
.manage .state-box p {
  margin: 12px 0 18px;
}
.manage .note,
.manage .feedback,
.addon-dialog .feedback {
  border-radius: var(--radius);
  padding: 12px 15px;
  font-size: 0.94rem;
  line-height: 1.4;
  background: #fff2ec;
  color: #7b3315;
  margin: 12px 0;
}
.manage .success {
  background: #e7f5ec;
  color: #215638;
}
.manage .feedback:empty,
.addon-dialog .feedback:empty {
  display: none;
}
.editor-grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 680px);
  gap: clamp(30px, 6vw, 90px);
  justify-content: start;
  margin-top: 28px;
}
.editor-rail {
  position: sticky;
  top: calc(var(--app-sticky-height) + 20px);
  align-self: start;
}
.editor-rail nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.editor-rail nav a {
  padding: 9px 0;
  font-weight: 650;
  font-size: 0.93rem;
  color: var(--muted);
}
.editor-rail nav a:hover {
  color: var(--blue);
}
.editor-body {
  min-width: 0;
}
.manage .editor-section {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
}
.manage .editor-section h2 {
  margin-bottom: 9px;
}
.manage .editor-help {
  margin: 4px 0 12px;
}
.manage label.field,
.addon-dialog label.field {
  display: block;
  font-size: 0.91rem;
  font-weight: 650;
  margin: 13px 0;
}
.manage .field :is(input, select, textarea),
.addon-dialog .field input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 5px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius);
  padding: 10px 12px;
  height: auto;
  min-height: 48px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 450;
}
.manage .field textarea {
  min-height: 81px;
  resize: vertical;
}
.manage :is(fieldset, legend) {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.manage .control-legend {
  font-size: 0.9rem;
  font-weight: 650;
  margin-block: 13px 7px;
}
.manage :is(.offer-mode, .availability-choice, .approval-choice) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.manage .choice-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.91rem;
}
.manage input[type="checkbox"],
.manage input[type="radio"] {
  accent-color: var(--blue);
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.manage .offer-mode input,
.manage .availability-choice input,
.manage .approval-choice input {
  width: auto;
  height: auto;
}
.manage
  :is(.offer-mode, .availability-choice, .approval-choice)
  label:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.manage .rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
}
.rate-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  align-self: start;
}
.rate-card .field {
  margin: 8px 0 0 !important;
}
.rate-card .field span {
  font-size: 0.8rem;
}
.manage .photo-tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.photo-tile {
  min-width: 0;
}
.photo-tile .thumb {
  background: var(--surface);
  border-radius: var(--radius);
  aspect-ratio: 1.1;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-tile .cover-label {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: white;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius);
  color: var(--ink);
}
.photo-controls {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-top: 3px;
}
.photo-controls button,
.date-chips button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 30px;
  min-width: 28px;
  background: white;
}
.photo-controls button:last-child {
  margin-left: auto;
}
.photo-controls button:disabled {
  opacity: 0.43;
  cursor: default;
}
.add-photos {
  display: inline-block;
  cursor: pointer;
  max-width: 100%;
  border: 1px dashed #a2afc0;
  border-radius: var(--radius);
  background: #f8fafc;
  padding: 8px 12px;
  font-size: 0.87rem;
}
.add-photos input {
  max-width: 100%;
  font-size: 0.87rem;
}
.manage .date-adder,
.editor-actions,
.listing-actions,
.addon-head,
.addon-row,
.addon-row-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.manage .date-adder {
  align-items: end;
}
.date-adder .field {
  margin-bottom: 0;
}
.date-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-block: 12px;
}
.date-chips button {
  padding: 5px 9px;
}
.manage .editor-actions {
  margin: 6px 0 24px;
  align-items: baseline;
}
.manage .listing-actions {
  margin-top: 12px;
}
.danger-action {
  color: #9f291f;
  background: white;
  border: 1px solid #d9b6b2;
  border-radius: var(--radius);
  font-weight: 650;
  padding: 10px 14px;
  min-height: 42px;
}
.manage .addon-row {
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-block: 9px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.manage .addon-row .subtle {
  display: block;
}
.manage .addon-row-actions {
  justify-content: flex-end;
}
.manage .addon-head {
  justify-content: space-between;
}
.manage .addon-section {
  margin-top: 13px;
}
.manage .addon-section .addon-empty {
  padding: 13px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.addon-dialog p {
  line-height: 1.45;
  color: var(--muted);
}
.addon-dialog .modal-actions .danger-action {
  margin-right: auto;
}
.manage :is(input, select, textarea):focus-visible,
.addon-dialog input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
@media (max-width: 850px) {
  .editor-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .editor-rail {
    position: static;
  }
  .editor-rail nav {
    flex-direction: row;
    gap: 4px 13px;
    flex-wrap: wrap;
  }
  .editor-rail nav a {
    padding: 3px 0;
  }
  .manage .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .manage .title-line,
  .edit-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .manage .photo-tray {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manage .rates {
    grid-template-columns: 1fr;
  }
  .manage .inventory-grid {
    gap: 18px 10px;
  }
  .inventory-card h2 {
    font-size: 0.94rem;
  }
  .manage .addon-row {
    align-items: start;
    flex-direction: column;
  }
  .manage .addon-row-actions {
    justify-content: flex-start;
  }
  .manage .editor-section {
    padding: 19px 0;
  }
  .manage .field-pair {
    gap: 8px;
  }
  .manage .editor-actions {
    position: static;
  }
}
