:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6f6268;
  --paper: #fff7f2;
  --card: #fffdfb;
  --pink: #ef4e89;
  --pink-soft: #ffd8e7;
  --gold: #c79945;
  --blue: #5d8fcf;
  --green: #57a773;
  --line: rgba(17, 17, 17, 0.12);
  --shadow: 0 18px 50px rgba(52, 28, 38, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(239, 78, 137, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fffaf6 0%, var(--paper) 100%);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not(.admin-page) {
  background:
    url("assets/background-doodles.svg"),
    linear-gradient(90deg, rgba(239, 78, 137, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #fffaf6 0%, var(--paper) 100%);
  background-position: center 24px, 0 0, 0 0, 0 0;
  background-size: 380px 380px, 42px 42px, 42px 42px, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 246, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-line {
  min-width: 0;
  max-width: 18rem;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.brand-line-pink {
  color: var(--pink);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-nav a {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 0.8rem;
  color: var(--muted);
  font-weight: 750;
}

.nav-button {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  padding: 0.62rem 0.8rem;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

main {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.6rem);
  padding: clamp(1rem, 4vw, 3rem);
}

.catalog-shell,
.story-band,
.claim-band {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.8rem 0 1rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--pink);
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(239, 78, 137, 0.22);
  border-radius: 999px;
  background: rgba(255, 216, 231, 0.42);
  padding: 0.32rem 0.72rem;
  color: #d83f78;
  font-family: "Marker Felt", "Comic Sans MS", Inter, sans-serif;
  font-size: clamp(0.98rem, 1.6vw, 1.28rem);
  font-weight: 900;
  text-transform: none;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  font-family: "Marker Felt", "Comic Sans MS", Inter, sans-serif;
}

h1 {
  font-size: clamp(3rem, 10vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.drop-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(87, 167, 115, 0.16);
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 240px);
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1rem;
}

.controls > * {
  min-width: 0;
}

.search-box,
.select-box {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0.75rem 0.85rem;
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 78, 137, 0.12);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  min-height: 46px;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.segmented button {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.segmented button.is-active {
  background: var(--ink);
  color: white;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.feature-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.9rem;
}

.character-art,
.story-video-wrap {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.character-art {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, 0.88);
  padding: 1rem;
}

.mini-card strong {
  display: block;
  margin: 0.2rem 0;
  font-size: 1.25rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.mini-label {
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.section-bar h2 {
  font-size: 1.55rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.section-bar span {
  color: var(--muted);
  font-weight: 850;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(52, 28, 38, 0.08);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.20)),
    var(--item-accent, var(--pink-soft));
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  height: 10px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(-13deg);
}

.product-visual::before {
  width: 46%;
  top: 16%;
  left: -8%;
}

.product-visual::after {
  width: 38%;
  right: -7%;
  bottom: 18%;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dialog-grid > .product-gallery {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.20)),
    var(--item-accent, var(--pink-soft));
}

.photo-thumbs {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
}

.photo-thumbs button {
  display: block;
  width: 46px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.18);
}

.photo-thumbs button.is-active {
  border-color: var(--pink);
}

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

.placeholder-art {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  padding: 1rem;
  text-align: center;
}

.hanger {
  width: 88px;
  height: 64px;
  border-top: 6px solid var(--ink);
  border-left: 6px solid var(--ink);
  transform: rotate(45deg);
  border-radius: 12px 0 0 0;
}

.placeholder-art strong {
  font-family: "Marker Felt", "Comic Sans MS", Inter, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.product-body {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.product-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.price {
  flex: 0 0 auto;
  font-weight: 950;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: #f6efe9;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.status {
  color: var(--ink);
}

.status.available {
  background: rgba(87, 167, 115, 0.18);
}

.status.pending {
  background: rgba(199, 153, 69, 0.20);
}

.status.sold {
  background: rgba(17, 17, 17, 0.12);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr minmax(5.1rem, auto);
  gap: 0.45rem;
}

.action-button {
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.icon-button {
  width: auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 950;
  padding: 0 0.75rem;
}

.story-band,
.claim-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  padding: clamp(1.1rem, 4vw, 2rem) 0;
}

.story-copy p {
  max-width: 30rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.05rem;
}

.quiet-line {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--ink);
  font-style: italic;
  font-weight: 850;
}

.story-video-wrap {
  position: relative;
  width: min(360px, 100%);
  max-height: 640px;
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
}

.story-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
  pointer-events: none;
}

.video-link {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.68);
  color: white;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.video-play {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.76);
  color: white;
  cursor: pointer;
  padding: 0 1rem;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.video-sound {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.76);
  color: white;
  cursor: pointer;
  padding: 0 1rem;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.story-video-wrap.is-playing .video-play {
  background: rgba(239, 78, 137, 0.84);
}

.story-video-wrap.has-sound .video-sound {
  background: rgba(239, 78, 137, 0.84);
}

.video-status {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 3.25rem;
  z-index: 2;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.video-status:empty {
  display: none;
}

.claim-band {
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 4vw, 2.4rem);
}

.claim-copy {
  display: grid;
  align-content: center;
}

.claim-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.claim-copy p {
  max-width: 24rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.02rem;
}

.claim-panel {
  display: grid;
  gap: 0.75rem;
}

.claim-checker {
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, 0.88);
  padding: 1rem;
}

.claim-checker label {
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.claim-checker div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.claim-checker input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  outline: none;
  text-transform: uppercase;
}

.claim-checker input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 78, 137, 0.12);
}

.claim-checker button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  padding: 0 1rem;
  font-weight: 950;
}

.claim-result {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 750;
}

.claim-result strong {
  color: var(--ink);
}

.claim-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.claim-steps div {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem;
}

.claim-steps span {
  width: fit-content;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 950;
}

.claim-steps strong {
  font-size: 1.1rem;
}

.claim-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.item-dialog {
  width: min(980px, calc(100vw - 2rem));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.item-dialog::backdrop {
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-weight: 950;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1fr);
}

.dialog-grid > .product-gallery {
  min-height: min(680px, 78vh);
}

.dialog-grid .product-photo {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.20)),
    var(--item-accent, var(--pink-soft));
}

.dialog-details {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.2rem;
}

.listing-copy {
  white-space: pre-wrap;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff8f4;
  padding: 0.85rem;
  color: #342b2f;
  font-size: 0.9rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: min(340px, calc(100vw - 2rem));
  transform: translateY(140%);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 0.8rem 1rem;
  font-weight: 850;
  transition: transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
}

.reel-page {
  min-height: 100vh;
}

.reel-main {
  min-height: calc(100vh - 78px);
  align-items: center;
}

.reel-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(280px, 0.78fr);
  gap: clamp(1.2rem, 5vw, 4rem);
  align-items: center;
  width: min(1060px, 100%);
  margin: 0 auto;
}

.reel-copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.reel-copy h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.reel-copy p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.55;
}

.reel-back {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-width: 180px;
  padding: 0 1rem;
}

.reel-player-frame {
  width: min(390px, 100%);
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.reel-player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--ink);
}

.is-hidden {
  display: none !important;
}

.admin-main {
  gap: 1.5rem;
}

.admin-login,
.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  min-height: calc(100vh - 160px);
}

.admin-login h1,
.admin-head h1 {
  font-size: clamp(3rem, 9vw, 6rem);
}

.login-card,
.account-card,
.editor-form,
.admin-list-panel,
.export-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 251, 0.88);
  box-shadow: 0 12px 32px rgba(52, 28, 38, 0.08);
}

.login-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.login-card label,
.account-card label,
.editor-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.login-card input,
.login-card button,
.account-card input,
.account-card button,
.editor-form input,
.editor-form select,
.editor-form textarea,
.export-panel textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 0.7rem 0.8rem;
  outline: none;
}

.login-card input:focus,
.account-card input:focus,
.editor-form input:focus,
.editor-form select:focus,
.editor-form textarea:focus,
.export-panel textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(239, 78, 137, 0.12);
}

.login-card button {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 950;
}

.text-button {
  justify-self: start;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pink) !important;
  padding: 0 !important;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-shell {
  display: grid;
  gap: 1rem;
}

.account-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.account-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.admin-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-list-panel {
  position: sticky;
  top: 96px;
  padding: 1rem;
}

.admin-list {
  display: grid;
  gap: 0.45rem;
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.admin-list button {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  padding: 0.7rem;
  text-align: left;
}

.admin-list button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.admin-list span {
  display: grid;
  gap: 0.15rem;
}

.admin-list em {
  color: inherit;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.editor-form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.three > * {
  min-width: 0;
}

.photo-grid {
  display: grid;
  gap: 0.75rem;
}

.editor-form textarea {
  resize: vertical;
}

.file-input {
  padding-top: 0.55rem !important;
}

.photo-slot {
  align-content: start;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.photo-slot input {
  width: 100%;
  max-width: 100%;
}

.photo-slot input:not([type="file"]) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-slot .file-input {
  min-height: 40px;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-slot-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
}

.photo-slot-actions .danger-button,
.photo-save-button {
  min-height: 40px;
  padding: 0 0.75rem;
}

.photo-save-button {
  white-space: nowrap;
}

.photo-status {
  color: var(--pink);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: none;
}

.admin-preview {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.admin-preview .product-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-preview .listing-copy {
  height: 100%;
  min-height: 220px;
  margin: 0.35rem 0 0;
}

.danger-button {
  border-color: rgba(160, 36, 65, 0.3);
  color: #a02441;
}

.export-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.export-panel textarea {
  width: 100%;
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    position: static;
    grid-template-columns: 180px 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout,
  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-list-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    position: static;
    padding-inline: 0.9rem;
  }

  .brand-lockup {
    width: 100%;
  }

  .brand-line {
    flex: 1;
    max-width: none;
    font-size: 0.96rem;
    line-height: 1.12;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .reel-page .top-nav {
    grid-template-columns: 1fr;
  }

  .top-nav a {
    padding-inline: 0.6rem;
    text-align: center;
  }

  main {
    padding: 0.9rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .catalog-head {
    display: grid;
  }

  .drop-note {
    justify-content: center;
    white-space: normal;
  }

  .segmented {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    min-width: 0;
  }

  .segmented button {
    min-width: 0;
    padding: 0 0.35rem;
  }

  .feature-panel {
    grid-template-columns: 1fr;
  }

  .character-art {
    max-height: 430px;
  }

  .product-grid,
  .story-band,
  .claim-band,
  .claim-steps,
  .dialog-grid,
  .reel-shell,
  .form-grid.two,
  .form-grid.three,
  .admin-preview {
    grid-template-columns: 1fr;
  }

  .dialog-grid .product-visual {
    max-height: 420px;
  }
}
