:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #68716f;
  --line: #dce2df;
  --soft: #f3f6f4;
  --paper: #ffffff;
  --panel: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.96);
  --grid-bg: #f7faf8;
  --green: #0f6b5b;
  --green-dark: #094d41;
  --green-soft: #dcefe9;
  --yellow: #f5c84c;
  --coral: #e6644a;
  --coral-soft: #fce7e2;
  --shadow: 0 16px 45px rgba(21, 43, 36, 0.1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf4f1;
  --muted: #a9b7b3;
  --line: #31413d;
  --soft: #182522;
  --paper: #0d1513;
  --panel: #111c19;
  --header-bg: rgba(13, 21, 19, 0.94);
  --grid-bg: #101b18;
  --green: #2ab89d;
  --green-dark: #8fe4d1;
  --green-soft: #163b34;
  --yellow: #f5c84c;
  --coral: #ee735b;
  --coral-soft: #3d201b;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 107, 91, 0.25);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 126px;
  height: auto;
}

.brand-logo-dark {
  display: none;
}

[data-theme="dark"] .brand-logo-light {
  display: none;
}

[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-text-button,
.account-button,
.icon-button,
.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-text-button,
.account-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.support-button {
  color: var(--green-dark);
  border: 1px solid #b8d3cb;
  background: var(--green-soft);
  text-decoration: none;
}

.account-button {
  color: #fff;
  background: var(--ink);
}

.icon-text-button:hover {
  background: var(--soft);
}

.account-button:hover {
  background: var(--green-dark);
}

.icon-text-button svg,
.account-button svg {
  width: 19px;
}

.count-badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: var(--green-dark);
  border-radius: 10px;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 700;
}

.search-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(540px, 1.2fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  min-height: 590px;
  padding: 72px max(5vw, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(90deg, rgba(15, 107, 91, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(15, 107, 91, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--grid-bg);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.search-intro h1 {
  max-width: 610px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.8vw, 78px);
  line-height: 0.96;
  font-weight: 700;
}

.intro-copy {
  max-width: 480px;
  margin: 24px 0 0;
  color: #53605d;
  font-size: 18px;
  line-height: 1.55;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > span:first-child,
.field legend {
  color: #3e4946;
  font-size: 13px;
  font-weight: 700;
}

.field-wide {
  grid-column: 1 / -1;
}

.input-shell {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #cfd7d3;
  border-radius: 5px;
  background: var(--panel);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-shell:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 107, 91, 0.12);
}

.input-shell-large {
  min-height: 58px;
}

.input-shell svg {
  flex: 0 0 auto;
  width: 19px;
  color: var(--muted);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.select-shell select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.input-shell input::placeholder {
  color: #929a98;
}

.currency-symbol {
  color: var(--green);
  font-weight: 700;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 48px;
  padding: 4px;
  border: 1px solid #cfd7d3;
  border-radius: 5px;
  background: var(--soft);
}

.segmented-control label {
  min-width: 0;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
}

.segmented-control span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.segmented-control input:checked + span {
  color: #fff;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(15, 107, 91, 0.22);
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 36px;
  align-items: center;
}

.check-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.check-control input {
  position: absolute;
  opacity: 0;
}

.check-control > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid #b9c4bf;
  border-radius: 3px;
  background: var(--panel);
}

.check-control svg {
  width: 15px;
  opacity: 0;
}

.check-control input:checked + span {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.check-control input:checked + span svg {
  opacity: 1;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  color: #fff;
  border: 0;
  border-radius: 5px;
  background: var(--coral);
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.search-panel > .primary-button {
  grid-column: 1 / -1;
}

.primary-button:hover {
  background: #cf4f38;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.primary-button svg {
  width: 19px;
}

.content-section {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.empty-state h2,
.modal h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
}

.quiet-status,
.results-meta,
.fallback-heading p,
.empty-state p {
  color: var(--muted);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.book-choice {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 14px;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.book-choice:hover {
  border-color: var(--green);
  box-shadow: 0 8px 22px rgba(20, 51, 42, 0.08);
  transform: translateY(-2px);
}

.book-choice img,
.book-cover-fallback {
  width: 78px;
  height: 112px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--green-soft);
}

.book-choice-text {
  min-width: 0;
}

.book-choice h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 5px;
  font-size: 15px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.book-choice p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.book-choice .book-year {
  margin-top: 8px;
  color: var(--green);
  font-weight: 700;
}

.results-section {
  padding-top: 58px;
}

.results-meta {
  margin: 8px 0 0;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.sort-control select {
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.selected-book {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: var(--soft);
}

.selected-book img,
.selected-book .book-cover-fallback {
  width: 92px;
  height: 132px;
  object-fit: cover;
  border-radius: 3px;
}

.selected-book h3 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.selected-book p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.isbn-line {
  font-variant-numeric: tabular-nums;
}

.notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 22px 0;
  padding: 14px 16px;
  color: #674316;
  border: 1px solid #ecd391;
  border-radius: 5px;
  background: #fff8df;
}

.notice svg {
  width: 19px;
}

.notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.deal-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.deal-row {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 0.5fr 0.55fr auto auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.deal-row-unpriced {
  border-style: dashed;
}

.deal-row-unpriced .deal-stat.total strong {
  color: var(--muted);
  font-size: 14px;
}

.deal-retailer {
  min-width: 0;
}

.deal-retailer strong,
.deal-retailer span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-retailer strong {
  margin-bottom: 3px;
}

.deal-retailer span,
.deal-stat span {
  color: var(--muted);
  font-size: 12px;
}

.deal-stat strong,
.deal-stat span {
  display: block;
}

.deal-stat strong {
  margin-top: 2px;
  font-size: 14px;
}

.deal-stat.total strong {
  color: var(--green);
  font-size: 20px;
}

.save-button,
.visit-button,
.retailer-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.save-button {
  width: 42px;
  padding: 0;
  color: var(--green);
  border: 1px solid #a9c8c0;
  background: var(--panel);
  cursor: pointer;
}

.save-button:hover,
.save-button.saved {
  background: var(--green-soft);
}

.visit-button {
  color: #fff;
  background: var(--ink);
}

.visit-button:hover {
  background: var(--green-dark);
}

.save-button svg,
.visit-button svg,
.retailer-link svg {
  width: 17px;
}

.retailer-fallback {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.fallback-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.fallback-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.fallback-heading p {
  margin: 0;
  font-size: 14px;
}

.retailer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.retailer-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.retailer-card strong,
.retailer-card span {
  display: block;
}

.retailer-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.retailer-link {
  flex: 0 0 auto;
  color: var(--green-dark);
  border: 1px solid #a9c8c0;
  background: var(--panel);
}

.empty-state {
  display: grid;
  grid-template-columns: minmax(300px, 1.3fr) minmax(260px, 0.7fr);
  gap: 54px;
  align-items: center;
  min-height: 360px;
}

.empty-state h2 {
  font-size: clamp(40px, 5vw, 62px);
}

.empty-state p:last-child {
  max-width: 400px;
  font-size: 17px;
  line-height: 1.55;
}

.shelf-preview {
  position: relative;
  display: flex;
  min-width: 0;
  height: 250px;
  align-items: end;
  justify-content: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 12px solid #26312e;
}

.cover-placeholder {
  width: min(105px, 16%);
  height: 185px;
  border-radius: 3px 6px 6px 3px;
  box-shadow: 8px 10px 18px rgba(23, 33, 31, 0.14);
  transform-origin: bottom;
}

.cover-one {
  height: 170px;
  background: #e6644a;
  transform: rotate(-4deg);
}

.cover-two {
  height: 205px;
  background: #174e68;
  transform: rotate(2deg);
}

.cover-three {
  height: 220px;
  background: #f5c84c;
  transform: rotate(-1deg);
}

.cover-four {
  height: 190px;
  background: #0f6b5b;
  transform: rotate(3deg);
}

.cover-five {
  height: 175px;
  background: #8f5aa8;
  transform: rotate(-2deg);
}

.modal {
  width: min(520px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 28px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(9, 26, 21, 0.52);
  backdrop-filter: blur(3px);
}

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

.modal-header h2 {
  font-size: 42px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--soft);
}

.icon-button svg {
  width: 21px;
}

.guest-message {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 5px;
  background: var(--green-soft);
}

.guest-message svg {
  width: 21px;
  color: var(--green);
}

.guest-message p {
  margin: 0;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.5;
}

#authForm {
  display: grid;
  gap: 16px;
}

.modal-submit {
  width: 100%;
  margin-top: 4px;
}

.text-button {
  width: 100%;
  margin-top: 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.danger-text {
  color: #b64232;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: #b64232;
  font-size: 13px;
}

.saved-modal {
  width: min(720px, calc(100vw - 28px));
}

.saved-list {
  display: grid;
  gap: 10px;
  max-height: 540px;
  overflow: auto;
}

.saved-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.saved-item strong,
.saved-item span {
  display: block;
}

.saved-item span {
  color: var(--muted);
  font-size: 12px;
}

.saved-item a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border-radius: 4px;
  background: var(--ink);
}

.saved-item a svg,
.saved-item button svg {
  width: 17px;
}

.saved-item button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #b64232;
  border: 1px solid #efc0b7;
  border-radius: 4px;
  background: var(--panel);
  cursor: pointer;
}

.saved-empty {
  padding: 42px 20px;
  color: var(--muted);
  border: 1px dashed #cbd5d1;
  border-radius: 5px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 16px;
  color: #fff;
  border-radius: 5px;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed #cbd5d1;
  border-radius: 5px;
}

.learning-band {
  padding: 72px 5vw;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.learning-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(42px, 7vw, 100px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.learning-heading h2 {
  max-width: 520px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1;
}

.learning-heading > p:last-child {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.learning-links {
  border-top: 1px solid var(--line);
}

.learning-links a {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}

.learning-links a:hover {
  color: var(--green);
}

.learning-links svg {
  width: 19px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: #8f9996;
  border-top: 1px solid var(--line);
  background: #17211f;
  font-size: 12px;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

footer a {
  color: #c7d2ce;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1020px) {
  .search-band {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 56px;
  }

  .search-intro h1 {
    max-width: 760px;
  }

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

  .deal-row {
    grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(80px, 0.5fr)) auto;
  }

  .deal-row .save-button {
    grid-column: 5;
    grid-row: 1;
  }

  .deal-row .visit-button {
    grid-column: 1 / -1;
  }

  .learning-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand-logo {
    width: 94px;
  }

  .icon-text-button span:not(.count-badge),
  .account-button span {
    display: none;
  }

  .icon-text-button,
  .account-button {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .icon-text-button {
    position: relative;
  }

  .count-badge {
    position: absolute;
    top: -3px;
    right: -4px;
  }

  .search-band {
    min-height: auto;
    padding: 42px 16px 48px;
    background-size: 36px 36px;
  }

  .search-intro h1 {
    font-size: 47px;
  }

  .intro-copy {
    margin-top: 18px;
    font-size: 16px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 20px;
  }

  .field-wide,
  .search-panel > .primary-button {
    grid-column: 1;
  }

  .segmented-control span {
    font-size: 12px;
  }

  .check-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }

  .check-control:last-child {
    grid-column: 1 / -1;
  }

  .content-section {
    width: calc(100vw - 32px);
    padding: 48px 0;
  }

  .section-heading,
  .fallback-heading {
    align-items: start;
    flex-direction: column;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-choice {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .book-choice img,
  .book-cover-fallback {
    width: 70px;
    height: 101px;
  }

  .results-heading {
    margin-bottom: 20px;
  }

  .sort-control {
    width: 100%;
  }

  .sort-control select {
    flex: 1;
  }

  .selected-book {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
  }

  .selected-book img,
  .selected-book .book-cover-fallback {
    width: 72px;
    height: 104px;
  }

  .selected-book h3 {
    font-size: 22px;
  }

  .deal-row {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }

  .deal-retailer {
    grid-column: 1 / -1;
  }

  .deal-row .save-button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .deal-row .visit-button {
    grid-column: 2;
  }

  .retailer-grid {
    grid-template-columns: 1fr;
  }

  .empty-state {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .learning-band {
    padding: 52px 16px;
  }

  .shelf-preview {
    height: 210px;
    order: 2;
  }

  .cover-placeholder {
    height: 150px;
  }

  .cover-two {
    height: 170px;
  }

  .cover-three {
    height: 185px;
  }

  .cover-four {
    height: 160px;
  }

  .modal {
    padding: 22px;
  }

  .saved-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .saved-item button {
    grid-column: 2;
  }

  footer {
    flex-direction: column;
  }
}
