:root {
  --cream: #f7f0e6;
  --paper: #fffaf2;
  --beige: #eadfD2;
  --sage: #78876f;
  --sage-dark: #607056;
  --terra: #b87961;
  --terra-dark: #965e4e;
  --brown: #332c27;
  --muted: #7f746a;
  --line: #ded2c4;
  --shadow: 0 18px 45px rgba(59, 48, 38, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(184, 121, 97, 0.12), transparent 28rem),
    linear-gradient(135deg, #fffaf2 0%, var(--cream) 52%, #ebe4d8 100%);
  color: var(--brown);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  display: none;
}

.main-content {
  width: min(100%, 1220px);
  min-width: 0;
  margin: 0 auto;
  padding: 22px 16px 96px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--terra-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 8vw, 4.8rem);
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

.primary-action,
.hero-button,
.secondary-button,
.danger-button,
.settings-button,
.text-button,
.icon-button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
}

.primary-action,
.hero-button {
  background: var(--terra);
  color: #fffaf2;
  padding: 0 20px;
}

.primary-action:hover,
.hero-button:hover {
  background: var(--terra-dark);
}

.topbar .primary-action {
  display: none;
  flex: 0 0 auto;
}

.hero-panel {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 18px;
  background: var(--sage);
  box-shadow: var(--shadow);
  color: #fffaf2;
}

.hero-panel p,
.hero-panel span {
  display: block;
  margin: 0;
  color: rgba(255, 250, 242, 0.86);
  font-weight: 750;
}

.hero-panel strong {
  display: block;
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 12vw, 4.4rem);
  line-height: 1;
}

.hero-button {
  width: 100%;
}

.metric-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.metric-card {
  min-height: 144px;
  padding: 18px;
  border: 1px solid rgba(222, 210, 196, 0.7);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 12px 32px rgba(59, 48, 38, 0.08);
}

.metric-card span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: #d8e0d1;
  color: var(--sage-dark);
  font-weight: 900;
}

.metric-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.metric-card small {
  color: var(--muted);
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 12px;
}

.text-button {
  min-height: 40px;
  background: transparent;
  color: var(--terra-dark);
}

.recent-list,
.recommendation-list,
.book-list,
.two-column {
  display: grid;
  gap: 14px;
}

.compact-book,
.recommendation-card,
.book-card,
.grid-book,
.chart-card,
.settings-panel,
.book-form {
  border: 1px solid rgba(222, 210, 196, 0.72);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 12px 32px rgba(59, 48, 38, 0.08);
}

.compact-book,
.book-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 14px;
}

.recommendations-panel {
  margin-bottom: 28px;
}

.recommendation-heading {
  align-items: end;
}

.recommendation-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.recommendation-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 128px;
  padding: 14px;
}

.recommendation-card img {
  width: 72px;
  height: 104px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--beige);
}

.recommendation-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.recommendation-copy h3 {
  overflow-wrap: anywhere;
}

.recommendation-copy p,
.recommendation-copy strong {
  color: var(--muted);
  font-weight: 750;
}

.recommendation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.recommendation-actions .secondary-button {
  min-height: 44px;
  border-radius: 10px;
}

.recommendation-wide-action {
  grid-column: 1 / -1;
}

.compact-book:focus-visible,
.book-card:focus-visible,
.grid-book:focus-visible {
  outline: 3px solid rgba(184, 121, 97, 0.45);
  outline-offset: 2px;
}

.compact-book img,
.book-card img {
  width: 66px;
  height: 96px;
  border-radius: 7px;
  object-fit: contain;
  background: var(--beige);
}

.compact-book p,
.compact-book strong,
.book-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.book-info {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.book-info h3,
.compact-book h3,
.grid-book h3 {
  overflow-wrap: anywhere;
}

.book-meta,
.rating-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sage-dark);
  font-weight: 800;
}

.book-meta span,
.pill-list span {
  border-radius: 999px;
  background: #e2e8da;
  padding: 7px 10px;
}

.rating-line {
  color: var(--terra-dark);
}

.toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  max-width: 100%;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--brown);
  padding: 0 13px;
}

.field textarea {
  min-height: 116px;
  padding: 13px;
  resize: vertical;
}

.search-field input {
  min-height: 54px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.segmented button {
  border: 0;
  background: var(--paper);
  color: var(--muted);
  font-weight: 850;
}

.segmented button.active {
  background: var(--sage);
  color: #fffaf2;
}

.library-count {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 850;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 100%;
}

.grid-book {
  padding: 12px;
}

.grid-book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 7px;
  object-fit: contain;
  background: var(--beige);
}

.grid-book h3 {
  margin-top: 10px;
  font-size: 1.02rem;
}

.grid-book p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-weight: 700;
}

.grid-book small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--sage-dark);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(222, 210, 196, 0.72);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.92);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(59, 48, 38, 0.08);
}

.wishlist-hero h2 {
  font-size: 1.55rem;
}

.book-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: -6px;
}

.genre-tags span {
  color: var(--muted);
  font-weight: 800;
}

.genre-tag {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--sage-dark);
  padding: 0 14px;
  font-weight: 850;
}

.genre-tag.active,
.genre-tag:hover {
  border-color: transparent;
  background: var(--sage);
  color: #fffaf2;
}

.cover-upload {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(234, 223, 210, 0.34);
  padding: 12px;
}

.upload-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.cover-preview {
  width: 86px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--beige);
  box-shadow: 0 8px 16px rgba(59, 48, 38, 0.12);
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-drop {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 118px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.upload-drop strong {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 44px;
  border-radius: var(--radius);
  background: var(--sage);
  color: #fffaf2;
  padding: 0 16px;
}

.upload-drop input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.wide,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.secondary-button,
.settings-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--brown);
  padding: 0 16px;
}

.danger-button,
.settings-button.danger {
  background: #8d493d;
  color: #fffaf2;
  padding: 0 16px;
}

.chart-card,
.settings-panel {
  padding: 16px;
}

.chart-card h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.bar-chart {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 850;
}

.bar-row div {
  height: 18px;
  border-radius: 999px;
  background: #eadfd2;
  overflow: hidden;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--sage-dark);
  font-weight: 850;
}

.year-shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.year-overview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(222, 210, 196, 0.72);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.92);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(59, 48, 38, 0.08);
}

.year-overview-hero h2 {
  font-size: 1.65rem;
}

.year-overview-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.year-overview-stats span {
  border-radius: 999px;
  background: #e2e8da;
  color: var(--sage-dark);
  padding: 8px 11px;
  font-weight: 900;
}

.year-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.year-switcher button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  font-weight: 900;
}

.year-switcher button.active,
.year-switcher button:hover {
  border-color: transparent;
  background: var(--sage);
  color: #fffaf2;
}

.month-shelf {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(222, 210, 196, 0.72);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.92);
  padding: 12px;
  box-shadow: 0 10px 24px rgba(59, 48, 38, 0.07);
}

.chart-card .month-shelf {
  box-shadow: none;
}

.month-shelf header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.month-shelf strong {
  display: block;
  color: var(--brown);
  font-weight: 900;
}

.month-shelf span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.month-book-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  gap: 8px;
  min-height: 44px;
}

.month-book-list.empty-month {
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 50px;
  color: var(--muted);
  font-weight: 850;
}

.shelf-book {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  border: 1px solid rgba(222, 210, 196, 0.72);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 6px;
  color: var(--brown);
  text-align: left;
}

.shelf-book img {
  width: 32px;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  object-fit: contain;
  background: var(--beige);
  box-shadow: 0 5px 10px rgba(59, 48, 38, 0.12);
}

.shelf-book-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.shelf-book-copy strong,
.shelf-book-copy small,
.shelf-book-copy em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-book-copy strong {
  color: var(--brown);
  font-size: 0.74rem;
  font-weight: 900;
}

.shelf-book-copy small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

.shelf-book-copy em {
  color: var(--terra-dark);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 850;
}

.shelf-book:focus-visible {
  outline: 3px solid rgba(184, 121, 97, 0.45);
  outline-offset: 2px;
}

.settings-panel {
  display: grid;
  gap: 12px;
}

.settings-status {
  min-height: 24px;
  margin: 4px 0 0;
  color: var(--sage-dark);
  font-weight: 850;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  padding: 14px;
  background: rgba(51, 44, 39, 0.36);
}

.modal {
  position: relative;
  width: min(100%, 920px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border-radius: 18px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 44px;
  min-height: 44px;
  background: var(--beige);
  color: var(--brown);
  font-size: 1.6rem;
}

.detail-layout {
  display: grid;
  gap: 18px;
}

.detail-cover {
  width: min(220px, 60vw);
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: contain;
  background: var(--beige);
}

.detail-copy {
  display: grid;
  gap: 14px;
}

.detail-copy h2 {
  padding-right: 46px;
  font-size: 2rem;
}

.detail-author {
  margin: -8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  border-radius: var(--radius);
  background: var(--cream);
  padding: 10px;
}

.detail-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.detail-grid strong {
  overflow-wrap: anywhere;
}

.quote-box {
  border-left: 4px solid var(--terra);
  background: var(--cream);
  padding: 14px;
  color: var(--muted);
  font-weight: 700;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border: 1px solid rgba(222, 210, 196, 0.8);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.94);
  padding: 7px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}

.nav-item span {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-item strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item[aria-current="page"] {
  background: var(--beige);
  color: var(--terra-dark);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: block;
    height: 100vh;
    border-right: 1px solid var(--line);
    background: rgba(255, 250, 242, 0.72);
    padding: 22px 18px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 34px;
  }

  .brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--terra);
    color: #fffaf2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 900;
  }

  .brand strong,
  .brand span {
    display: block;
  }

  .brand span {
    color: var(--muted);
    font-weight: 750;
  }

  .nav-list {
    display: grid;
    gap: 10px;
  }

  .nav-list .nav-item {
    grid-template-columns: 30px 1fr;
    place-items: center start;
    min-height: 58px;
    padding: 0 14px;
  }

  .nav-list .nav-item strong {
    font-size: 1rem;
  }

  .bottom-nav {
    display: none;
  }

  .main-content {
    padding: 34px 28px 54px;
  }

  .topbar .primary-action {
    display: inline-flex;
    align-items: center;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    padding: 30px;
  }

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

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

  .toolbar {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: end;
  }

  .search-field {
    grid-column: span 2;
  }

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

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

  .recommendation-actions {
    grid-template-columns: repeat(2, max-content);
  }

  .book-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px;
  }

  .form-actions {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

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

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

  .modal-backdrop {
    place-items: center;
  }

  .detail-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }

  .detail-cover {
    width: 240px;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    grid-template-columns: 300px 1fr;
  }

  .main-content {
    padding: 42px 46px 70px;
  }

  .hero-panel {
    padding: 34px;
  }

  .toolbar {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }

  .search-field {
    grid-column: span 2;
  }

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

  .year-shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .book-card {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 16px;
  }

  .book-card img {
    width: 76px;
    height: 112px;
  }
}

.year-download-action {
  min-width: 220px;
}

@media (max-width: 767px) {
  .year-overview-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .year-download-action {
    width: 100%;
  }
}

.story-download-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid rgba(222, 210, 196, 0.72);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.92);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(59, 48, 38, 0.08);
}

.story-download-panel h2 {
  font-size: 1.55rem;
}

.story-download-panel p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.story-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .story-download-grid {
    grid-template-columns: 1fr;
  }
}


.all-books-export-panel {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(222, 210, 196, 0.86);
  padding-top: 16px;
}

.all-books-export-panel h3 {
  font-size: 1.3rem;
}

.all-books-export-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.share-controls,
.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.share-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.share-preview-canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(59, 48, 38, 0.1);
}

@media (max-width: 620px) {
  .share-controls,
  .share-actions {
    grid-template-columns: 1fr;
  }
}


.wishlist-list {
  display: grid;
  gap: 12px;
}

.wishlist-list-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(222, 210, 196, 0.72);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 12px 32px rgba(59, 48, 38, 0.08);
}

.wishlist-list-item img {
  width: 72px;
  height: 104px;
  border-radius: 7px;
  object-fit: contain;
  background: var(--beige);
}

.wishlist-list-copy {
  min-width: 0;
}

.wishlist-list-copy h3 {
  margin: 0;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.wishlist-list-copy p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-weight: 700;
}

.wishlist-list-copy > span {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e2e8da;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.wishlist-list-copy .wishlist-reason {
  margin-top: 9px;
  color: var(--sage-dark);
}

.wishlist-remove {
  min-width: 112px;
  min-height: 46px;
}

@media (max-width: 767px) {
  .wishlist-list-item {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .wishlist-list-item img {
    width: 66px;
    height: 96px;
  }

  .wishlist-remove {
    grid-column: 1 / -1;
    width: 100%;
  }
}
