:root {
  color-scheme: light;
  --bg: #fff1f6;
  --ink: #473830;
  --muted: #8d6d7b;
  --line: #ffa8bf;
  --panel: #ffffff;
  --panel-pink: #ffdbe5;
  --accent: #ff6b92;
  --accent-soft: #ffa8bf;
  --accent-dark: #473830;
  --shadow: 0 12px 30px rgba(71, 56, 48, 0.16);
  font-family: Jojoba, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: Adelia;
  src: url("fonts/ADELIA.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: Jojoba;
  src: url("fonts/Jojoba.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: GentleRemind;
  src: url("fonts/Gentle-Remind.ttf") format("truetype");
  font-display: swap;
}

.number-only {
  font-family: GentleRemind, Jojoba, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-color: var(--accent-soft) var(--panel-pink);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-pink);
}

*::-webkit-scrollbar-thumb {
  border: 3px solid var(--panel-pink);
  border-radius: 999px;
  background: var(--accent);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    repeating-linear-gradient(0deg, rgba(255, 168, 191, 0.13) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 168, 191, 0.13) 0 1px, transparent 1px 28px),
    var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 860px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 18px solid var(--panel-pink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--accent);
  font-family: Adelia, cursive;
  font-size: 2.7rem;
  font-weight: 400;
  line-height: 1;
  text-shadow: 1px 1px 0 #ffffff, 2px 2px 0 var(--panel-pink);
}

h2 {
  margin-bottom: 0;
  color: var(--accent);
  font-family: Adelia, cursive;
  font-size: 1.25rem;
  font-weight: 400;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.icon-button span {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  transform: translateY(-1px);
}

.icon-button.quiet {
  width: 42px;
  height: 42px;
  background: #ffffff;
  color: var(--accent);
  box-shadow: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stats div {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 0 rgba(255, 168, 191, 0.35);
}

.stats span {
  display: block;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 400;
}

.stats p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.controls {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -16px 14px;
  padding: 10px 16px 12px;
  border-block: 1px solid rgba(255, 168, 191, 0.6);
  background: rgba(255, 241, 246, 0.94);
  backdrop-filter: blur(14px);
}

.search-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 34px;
}

input,
select {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 146, 0.18);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 750;
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.item-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 8px 0 rgba(255, 168, 191, 0.24), 0 14px 24px rgba(71, 56, 48, 0.08);
}

.lookbook-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 14px solid var(--panel-pink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 0 rgba(255, 168, 191, 0.28);
}

.lookbook-top .search-field {
  margin-bottom: 0;
}

.lookbook-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lookbook-card {
  display: grid;
  gap: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  text-align: left;
  box-shadow: 0 8px 0 rgba(255, 168, 191, 0.24), 0 14px 24px rgba(71, 56, 48, 0.08);
}

.lookbook-card h3 {
  margin: 0;
  color: var(--accent);
  font-family: Adelia, cursive;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.15;
}

.lookbook-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 5px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 168, 191, 0.25) 0 8px, rgba(255, 219, 229, 0.45) 8px 16px),
    #ffffff;
  padding: 5px;
}

.collage.large {
  width: min(42vw, 180px);
  min-width: 128px;
}

.collage-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 168, 191, 0.82);
  border-radius: 6px;
  background: var(--panel-pink);
}

.collage-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-tile:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.collage-tile:first-child:nth-last-child(2),
.collage-tile:first-child:nth-last-child(2) + .collage-tile {
  grid-row: 1 / -1;
}

.collage-tile:first-child:nth-last-child(3) {
  grid-row: 1 / -1;
}

.lookbook-preview-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px dotted var(--accent-soft);
  border-radius: 8px;
  background: rgba(255, 219, 229, 0.22);
}

.selected-names {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.86rem;
}

.piece-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 38vh;
  overflow: auto;
  padding: 2px;
}

.piece-option {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px;
  color: var(--ink);
  text-align: left;
}

.piece-option.selected {
  border-color: var(--accent);
  background: var(--panel-pink);
  box-shadow: inset 0 0 0 2px rgba(255, 107, 146, 0.18);
}

.piece-option img {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
}

.piece-option strong {
  display: block;
  color: var(--accent-dark);
  font-size: 0.82rem;
  line-height: 1.15;
}

.piece-option span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.cart-panel,
.settings-panel,
.checkout-results {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 14px solid var(--panel-pink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 0 rgba(255, 168, 191, 0.28);
}

.cart-list {
  display: flex;
  gap: 8px;
  min-height: 74px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cart-pill {
  position: relative;
  flex: 0 0 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-pink);
}

.cart-pill img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.cart-pill button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  line-height: 1;
}

.cart-empty,
.settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.checkout-results:empty {
  display: none;
}

.checkout-list,
.alternative-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.checkout-list li,
.alternative-list li {
  color: var(--ink);
  line-height: 1.35;
}

.checkout-ok {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 850;
}

.bottom-tabs {
  position: fixed;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: min(100% - 24px, 640px);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.tab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.74rem;
}

.tab-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.lookbook-empty-visual {
  border-radius: 8px;
}

.item-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--panel-pink);
}

.item-body {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-title {
  margin: 0;
  color: var(--accent);
  font-family: Adelia, cursive;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 400;
}

.favorite-mark {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.item-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  max-width: 100%;
  border-radius: 999px;
  border: 1px dotted var(--accent-soft);
  background: var(--panel-pink);
  color: var(--accent-dark);
  padding: 4px 7px;
  font-size: 0.7rem;
  font-weight: 750;
}

.empty-state {
  display: none;
  min-height: 45vh;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 30px 14px;
}

.empty-state.visible {
  display: grid;
}

.empty-state p {
  max-width: 31rem;
  margin-bottom: 4px;
  color: var(--muted);
}

.empty-visual {
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, transparent 42%, var(--accent) 43% 47%, transparent 48%),
    radial-gradient(circle at 50% 28%, #ffffff 0 10px, transparent 11px),
    linear-gradient(115deg, var(--accent-soft) 0 49%, var(--panel-pink) 50% 100%);
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 850;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent-dark);
}

.item-dialog {
  width: min(100% - 20px, 620px);
  max-height: min(92vh, 920px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.item-dialog::backdrop {
  background: rgba(71, 56, 48, 0.42);
}

.item-dialog form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 18px solid var(--panel-pink);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-actions {
  position: sticky;
  bottom: -16px;
  margin: 0 -16px -16px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.photo-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px dashed #b7a99a;
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 168, 191, 0.32) 0 8px, rgba(255, 219, 229, 0.42) 8px 16px),
    #ffffff;
  color: var(--accent-dark);
  font-weight: 850;
}

.photo-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.photo-picker img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-picker.has-photo img {
  display: block;
}

.photo-picker.has-photo span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(71, 56, 48, 0.82);
  color: white;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.check-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 219, 229, 0.22);
}

.check-panel legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.check-panel label {
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 8px;
  color: var(--ink);
}

.check-panel input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

#deleteButton[hidden] {
  display: none;
}

@media (min-width: 700px) {
  .gallery,
  .lookbook-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .controls {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .form-grid,
  .check-panel {
    grid-template-columns: 1fr;
  }

  .lookbook-top,
  .lookbook-preview-panel,
  .piece-picker {
    grid-template-columns: 1fr;
  }

  .collage.large {
    width: 100%;
  }
}

/* ─── Style AI ────────────────────────────────────────────────────────────── */

.ai-panel {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 18px solid var(--panel-pink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.ai-header {
  margin-bottom: 20px;
}

.ai-header h2 {
  margin-bottom: 6px;
}

.ai-intro {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.ai-form {
  display: grid;
  gap: 20px;
}

.ai-step {
  border: 1px dotted var(--accent-soft);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 219, 229, 0.15);
  margin: 0;
}

.ai-step legend {
  padding: 0 8px;
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 850;
}

.ai-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ai-pill {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.ai-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ai-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 750;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  user-select: none;
  cursor: pointer;
}

.ai-pill input[type="radio"]:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.ai-pill:hover span {
  border-color: var(--accent-soft);
  background: var(--panel-pink);
  color: var(--accent-dark);
}

.ai-pill input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ai-form-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── AI Result ───────────────────────────────────────────────────────────── */

.ai-result {
  margin-bottom: 20px;
}

.ai-result-inner {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 18px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.ai-result-header {
  margin-bottom: 16px;
}

.ai-result-header h2 {
  margin-top: 2px;
  font-size: 1.15rem;
}

.ai-outfit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ai-outfit-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 0 rgba(255, 168, 191, 0.22);
}

.ai-outfit-img-wrap {
  position: relative;
}

.ai-outfit-img-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--panel-pink);
}

.ai-slot-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  border-radius: 999px;
  background: rgba(71, 56, 48, 0.80);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 850;
  backdrop-filter: blur(6px);
}

.ai-outfit-info {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
}

.ai-outfit-info strong {
  color: var(--accent-dark);
  font-size: 0.84rem;
  line-height: 1.2;
}

.ai-outfit-info span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.ai-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.ai-empty h2 {
  margin-bottom: 6px;
}

.ai-empty p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

@media (min-width: 600px) {
  .ai-outfit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .bottom-tabs {
    gap: 3px;
    padding: 5px;
  }

  .tab-button {
    font-size: 0.65rem;
    min-height: 38px;
    padding: 0 4px;
  }

  .ai-pill-group {
    gap: 6px;
  }
}

/* ─── Wish List ───────────────────────────────────────────────────────────── */

.wishlist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top: 14px solid var(--panel-pink);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 0 rgba(255, 168, 191, 0.28);
}

.wishlist-top h2 {
  margin-top: 2px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wish-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 0 rgba(255, 168, 191, 0.24), 0 14px 24px rgba(71, 56, 48, 0.08);
}

.wish-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--panel-pink);
}

.wish-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wish-no-img {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(255, 168, 191, 0.32) 0 8px, rgba(255, 219, 229, 0.42) 8px 16px),
    var(--panel-pink);
}

.wish-card-body {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.wish-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.wish-name {
  margin: 0;
  color: var(--accent);
  font-family: Adelia, cursive;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
}

.wish-edit-btn {
  flex-shrink: 0;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 850;
}

.wish-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.wish-price {
  color: var(--accent-dark);
  font-weight: 850;
  font-size: 0.88rem;
}

.wish-store {
  color: var(--muted);
  font-size: 0.78rem;
}

.wish-notes {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.wish-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-soft);
}

.wish-link:hover {
  border-bottom-style: solid;
}

/* ─── Wish Dialog ─────────────────────────────────────────────────────────── */

.wish-photo-picker {
  min-height: 180px;
}

.wish-url-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.wish-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.wish-url-row input {
  min-height: 44px;
}

.wish-fetch-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.2em;
}

.wish-fetch-status.ok    { color: #3a8c5a; }
.wish-fetch-status.warn  { color: #b5690a; }
.wish-fetch-status.error { color: var(--accent); }

.wish-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wish-divider::before,
.wish-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.wish-img-url-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.wish-name-label {
  grid-column: 1 / -1;
}

.required-mark {
  color: var(--accent);
}

@media (min-width: 600px) {
  .wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
