.demo-note, .empty-catalog { margin-block: 16px; color: var(--muted); }
.hero-text-only { display: block; min-height: 0; }
.text-lines { white-space: pre-line; overflow-wrap: anywhere; }
.gallery, .spec-list, .edit-gallery { list-style: none; padding: 0; margin: 0; }
.gallery { display: grid; gap: 16px; }
.gallery img { margin: auto; max-height: 760px; object-fit: contain; }
.video-stage { aspect-ratio: 16 / 9; background: var(--stage); display: grid; overflow: hidden; color: var(--light-ink); }
.video-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.play-video { display: grid; place-content: center; justify-items: center; gap: 12px; border: 0; color: inherit; background: var(--wine); font: inherit; cursor: pointer; }
.play-video:hover { background: #482630; }
.play-symbol { display: grid; place-items: center; border: 1px solid #e6bdb1; border-radius: 50%; width: 48px; height: 48px; padding-left: 2px; }
.video-note { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.admin-shell { max-width: 980px; padding-block: 40px 64px; }
.admin-shell h1 { font-size: 2.25rem; line-height: 2.5rem; }
.admin-shell h2 { font-size: 1.5rem; line-height: 2rem; margin-bottom: 12px; }
.admin-help { margin: 16px 0; color: var(--muted); }
.notice { margin-bottom: 16px; padding: 12px 16px; background: #e3e8e4; }
.notice.error { background: #f4dfdc; color: #632626; }
.edit-form { display: grid; gap: 16px; margin-top: 24px; }
.edit-section { padding: 24px; border: 1px solid var(--line); background: #fffdf9; }
.edit-section .field { margin-top: 16px; }
.edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 4px; }
.field > label, .edit-form > label { font-weight: 650; }
.hint, .row-note { display: block; color: var(--muted); font-size: .875rem; line-height: 1.25rem; }
.edit-form input:not([type=checkbox],[type=hidden]), .edit-form textarea {
  display: block; width: 100%; min-width: 0; padding: 8px 12px; border: 1px solid #9d9094; border-radius: 0;
  font: inherit; color: var(--ink); background: #fff; min-height: 44px;
}
.edit-form textarea { resize: vertical; }
.edit-form input[type=file] { margin-top: 4px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: 18px; height: 18px; margin: 0; }
button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #946ab7; outline-offset: 2px; }
button.button { border: 1px solid var(--wine); }
.minor { padding: 8px 12px; min-height: 44px; color: var(--wine); background: #fffdf9; border: 1px solid #9d9094; }
.minor:hover, .logout:hover { text-decoration: underline; }
.danger { color: #8a2525; }
.logout { border: 0; color: inherit; background: transparent; min-height: 44px; padding: 0; font-size: .875rem; }
.spec-list { display: grid; gap: 8px; margin-block: 16px; }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: end; gap: 8px; }
.spec-row span { font-size: .875rem; }
.editor-cover, .edit-gallery img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; }
.edit-gallery { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.gallery-controls { display: flex; gap: 4px; margin-top: 4px; }
.gallery-controls .minor { font-size: .75rem; padding-inline: 8px; }
.edit-actions { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; bottom: 0; background: var(--paper); padding-block: 12px; }
.login-panel { max-width: 420px; margin-inline: auto; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.admin-table th, .admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.admin-table th:last-child { width: 72px; }
@media (max-width: 760px) {
  .edit-section { padding: 16px; }
  .edit-grid { grid-template-columns: 1fr; gap: 0; }
  .mast nav { gap: 8px; }
  .admin-shell h1 { font-size: 1.875rem; line-height: 2.25rem; }
  .spec-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; }
  .minor { padding-inline: 8px; }
}
