:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #6b6258;
  --line: #e4d8c7;
  --surface: #fffdfa;
  --soft: #fff3df;
  --cream: #fff7e8;
  --charcoal: #202833;
  --red: #f04452;
  --yellow: #ffc947;
  --teal: #00a6a6;
  --blue: #2e6cff;
  --green: #168a55;
  --violet: #7c4dff;
  --shadow: 0 18px 45px rgba(64, 42, 18, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(255, 253, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  background: #f8d877;
  object-fit: cover;
  object-position: 48% 42%;
  box-shadow: 0 4px 0 rgba(32, 40, 51, 0.12);
  transition: width 0.2s ease, height 0.2s ease, transform 0.2s ease;
}

.brand-logo-cry {
  display: none;
  object-position: center;
}

.evolving-cries-mode .brand-logo:not(.brand-logo-cry) {
  display: none;
}

.evolving-cries-mode .brand-logo-cry {
  display: block;
  width: 64px;
  height: 64px;
  transform: rotate(-5deg) scale(1.06);
  animation: mascotCry 0.58s ease-in-out infinite alternate;
}

@keyframes mascotCry {
  from {
    transform: rotate(-5deg) translateY(0) scale(1.04);
  }

  to {
    transform: rotate(4deg) translateY(2px) scale(1.1);
  }
}

.mayo-mascot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 38px;
  transform: rotate(-4deg);
}

.jar-lid {
  position: absolute;
  top: 0;
  width: 27px;
  height: 8px;
  border: 2px solid var(--charcoal);
  border-radius: 6px 6px 3px 3px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 4px, #69d5d1 4px 7px);
}

.jar-face {
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 31px;
  border: 2px solid var(--charcoal);
  border-radius: 8px 8px 10px 10px;
  background: linear-gradient(145deg, #fffef7, #ffe9a6);
  box-shadow: inset 6px 0 0 rgba(255, 255, 255, 0.72), 0 3px 0 rgba(32, 40, 51, 0.12);
}

.jar-face::before {
  content: "M";
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  color: var(--red);
  font-size: 9px;
  font-weight: 950;
}

.eye {
  position: absolute;
  top: 15px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: var(--charcoal);
}

.eye.left {
  left: 8px;
}

.eye.right {
  right: 8px;
}

.smile {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 10px;
  height: 5px;
  transform: translateX(-50%);
  border-bottom: 2px solid var(--charcoal);
  border-radius: 0 0 999px 999px;
}

.mayo-mascot::before,
.mayo-mascot::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

.mayo-mascot::before {
  left: -1px;
  transform: rotate(28deg);
}

.mayo-mascot::after {
  right: -1px;
  transform: rotate(-28deg);
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.nav a.active {
  color: var(--ink);
}

.account-pill,
.secondary-button,
.filter-heading button,
.view-toggle button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  font-weight: 800;
  padding: 0 12px;
  cursor: pointer;
}

.search-hero {
  position: relative;
  min-height: clamp(460px, 62vh, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.search-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 28, 32, 0.9), rgba(24, 28, 32, 0.55) 45%, rgba(24, 28, 32, 0.15));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 38px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 10px;
  max-width: 960px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.95);
  box-shadow: var(--shadow);
}

label,
.range-row {
  display: grid;
  gap: 5px;
}

.search-panel span,
.account-card span,
#reviewForm span,
.range-row label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.primary-button {
  align-self: end;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--violet));
  color: #fff;
  font-weight: 900;
  padding: 0 24px;
  cursor: pointer;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.market-strip div {
  display: grid;
  gap: 3px;
  padding: 18px clamp(16px, 4vw, 48px);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.metric {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.small-metric {
  font-size: 0.94rem;
  line-height: 1.25;
}

.account-band,
.member-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  width: min(1440px, calc(100% - 32px));
  margin: 24px auto;
}

.page-panel {
  min-height: calc(100vh - 96px);
  align-content: start;
  padding-top: 32px;
}

body[data-page="home"] .page-panel,
body[data-page="deals"] .home-page,
body[data-page="deals"] .account-band,
body[data-page="deals"] .membership-page,
body[data-page="deals"] .admin-page,
body[data-page="deals"] .content-page,
body[data-page="admin"] .home-page,
body[data-page="admin"] .account-band,
body[data-page="admin"] .membership-page,
body[data-page="admin"] .daily-deals,
body[data-page="admin"] .content-page,
body[data-page="account"] .home-page,
body[data-page="account"] .daily-deals,
body[data-page="account"] .admin-page,
body[data-page="account"] .content-page,
body[data-page="account"] .membership-page,
body[data-page="membership"] .home-page,
body[data-page="membership"] .account-band,
body[data-page="membership"] .daily-deals,
body[data-page="membership"] .admin-page,
body[data-page="membership"] .content-page,
body[data-page="about"] .home-page,
body[data-page="about"] .account-band,
body[data-page="about"] .membership-page,
body[data-page="about"] .daily-deals,
body[data-page="about"] .admin-page,
body[data-page="privacy"] .home-page,
body[data-page="privacy"] .account-band,
body[data-page="privacy"] .membership-page,
body[data-page="privacy"] .daily-deals,
body[data-page="privacy"] .admin-page,
body[data-page="terms"] .home-page,
body[data-page="terms"] .account-band,
body[data-page="terms"] .membership-page,
body[data-page="terms"] .daily-deals,
body[data-page="terms"] .admin-page,
body[data-page="partner"] .home-page,
body[data-page="partner"] .account-band,
body[data-page="partner"] .membership-page,
body[data-page="partner"] .daily-deals,
body[data-page="partner"] .admin-page,
body[data-page="contact"] .home-page,
body[data-page="contact"] .account-band,
body[data-page="contact"] .membership-page,
body[data-page="contact"] .daily-deals,
body[data-page="contact"] .admin-page {
  display: none;
}

body[data-page="deals"] .daily-deals,
body[data-page="admin"] .admin-page,
body[data-page="account"] .account-band,
body[data-page="membership"] .membership-page,
body[data-page="about"] #about,
body[data-page="privacy"] #privacy,
body[data-page="terms"] #terms,
body[data-page="partner"] #partner,
body[data-page="contact"] #contact {
  display: grid;
}

.account-band.page-panel {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
}

.membership-page {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 32px;
}

.daily-deals {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 40px;
  gap: 18px;
}

.admin-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 40px;
  gap: 18px;
}

.content-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 40px;
}

.daily-deals-header,
.daily-deal-card,
.admin-header,
.admin-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(64, 42, 18, 0.07);
}

.daily-deals-header,
.admin-header {
  padding: 22px;
}

.daily-deals-header h2,
.admin-header h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

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

.admin-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.admin-card h3 {
  margin: 0;
}

.admin-card input,
.admin-card select {
  width: 100%;
}

.content-card {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  line-height: 1.65;
}

.content-card h1,
.content-card h2 {
  margin: 0;
  color: var(--ink);
}

.content-card h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.content-card h2 {
  margin-top: 12px;
  font-size: 1.2rem;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card ul {
  margin: 0;
  padding-left: 22px;
}

.content-card a,
.site-footer a {
  color: #0c5aa6;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  width: min(1480px, calc(100% - 32px));
  margin: 28px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 10px 28px rgba(64, 42, 18, 0.07);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  max-width: 760px;
  margin: 8px 0 0;
}

.site-footer nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-managed-filter {
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.daily-deals-grid {
  display: grid;
  gap: 12px;
}

.daily-deal-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 14px 54px;
}

.deal-rank {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
  font-size: 0.82rem;
}

.daily-deal-card .pack-image,
.daily-deal-card .pack-art {
  width: 72px;
  height: 72px;
}

.daily-deal-copy {
  display: grid;
  gap: 5px;
}

.deal-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
  font-weight: 800;
}

.account-card,
.membership-card,
.member-tools > div,
#reviewForm,
#suggestSiteForm,
.filters,
.results-area {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(64, 42, 18, 0.07);
}

.account-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(170px, 220px) minmax(170px, 220px) minmax(150px, 180px) auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.account-card.signed-in {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.account-card.signed-in > :not(.signed-in-summary):not(.account-settings):not(.account-actions):not(#accountMessage) {
  display: none;
}

.account-card.signed-in button[data-action] {
  display: none;
}

.signed-in-summary {
  display: grid;
  gap: 4px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 8px;
  border-radius: 999px;
  background: #e9f8ef;
  color: var(--green);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.secure-badge::before {
  content: "";
  width: 10px;
  height: 8px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: 0 -6px 0 -3px currentColor;
}

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.human-check input {
  max-width: 132px;
}

.signup-protection {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 220px) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b8dfd8;
  border-radius: 8px;
  background: #f1fffb;
}

.captcha-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 900;
}

.security-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.account-settings,
.account-recovery {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.account-settings {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 220px) minmax(170px, 240px) auto;
  align-items: end;
  gap: 10px;
}

.account-settings h3 {
  margin: 0;
  font-size: 1rem;
}

.account-recovery summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.recovery-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 220px) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.retailer-disclaimer {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 10px;
  border: 1px solid #efd49a;
  border-radius: 8px;
  background: #fffaf0;
}

.disclaimer-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 900;
}

.retailer-disclaimer summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.disclaimer-copy {
  max-height: 210px;
  margin-top: 10px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.disclaimer-copy h3 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 0.9rem;
}

.disclaimer-copy h3:first-child {
  margin-top: 0;
}

.disclaimer-copy p {
  margin: 0 0 8px;
}

.membership-card {
  padding: 18px;
}

.membership-page .membership-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
}

.membership-card ul {
  margin: 12px 0 18px;
  padding-left: 18px;
  color: var(--muted);
}

.membership-price {
  color: var(--red);
  font-size: 2.15rem;
  font-weight: 950;
}

.membership-price span {
  color: var(--muted);
  font-size: 1rem;
}

.workspace {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  grid-template-areas:
    "filters results"
    "ads results"
    "right-ads results";
  gap: 18px;
  width: min(1480px, calc(100% - 32px));
  margin: 24px auto 48px;
  align-items: start;
}

.filters {
  grid-area: filters;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.filters {
  padding: 18px;
}

.mobile-filter-menu {
  display: contents;
}

.mobile-filter-menu > summary {
  display: none;
}

.filter-panel {
  display: grid;
  gap: 0;
}

.filters::-webkit-scrollbar,
.set-list::-webkit-scrollbar {
  width: 10px;
}

.filters::-webkit-scrollbar-track,
.set-list::-webkit-scrollbar-track {
  background: #fff3df;
  border-radius: 999px;
}

.filters::-webkit-scrollbar-thumb,
.set-list::-webkit-scrollbar-thumb {
  border: 2px solid #fff3df;
  border-radius: 999px;
  background: #d0a75d;
}

.ad-rail {
  grid-area: ads;
  display: grid;
  gap: 14px;
  position: static;
}

.right-ads {
  grid-area: right-ads;
}

.plus-active .ad-rail {
  display: none;
}

.plus-active .workspace {
  grid-template-columns: 284px minmax(0, 1fr);
  grid-template-areas: "filters results";
  max-width: 1440px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1px dashed #d0a75d;
  border-radius: 8px;
  background: #fffaf0;
  color: var(--muted);
  text-align: center;
}

.adsbygoogle {
  display: block;
  width: 100%;
  min-height: 250px;
}

.ad-slot.tall .adsbygoogle {
  min-height: 520px;
}

.adsbygoogle[data-adsbygoogle-status="done"] + span,
.adsbygoogle[data-adsbygoogle-status="done"] + span + strong {
  display: none;
}

.ads-demo-mode .adsbygoogle {
  display: none;
}

.ads-demo-mode .ad-slot span::after {
  content: " setup needed";
  color: var(--red);
  font-weight: 900;
}

.ads-demo-mode .ad-slot strong::after {
  content: "Configure AdSense publisher and slot IDs, then host the site on an approved domain.";
  display: block;
  max-width: 220px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.ad-slot::after {
  content: "Ad-free with MayoSearch Plus";
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.ad-slot.tall {
  min-height: 520px;
}

.ad-slot strong {
  color: var(--ink);
}

.filter-heading,
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}

fieldset {
  margin: 18px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

legend {
  color: var(--ink);
  font-weight: 900;
  padding: 0;
}

.legend-note {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: var(--muted);
  font-size: 0.94rem;
}

.set-era-filter details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  overflow: hidden;
}

.set-era-filter summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.set-era-filter summary::-webkit-details-marker {
  display: none;
}

.set-era-filter summary::before {
  content: ">";
  color: var(--teal);
  font-weight: 900;
  transition: transform 0.18s ease;
}

.set-era-filter details[open] summary::before {
  transform: rotate(90deg);
}

.set-era-filter summary label {
  color: var(--ink);
  font-weight: 900;
}

.set-era-filter summary span {
  justify-self: end;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.set-list {
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px 10px 12px 28px;
  border-top: 1px solid var(--line);
}

.set-list label {
  min-height: 28px;
  font-size: 0.86rem;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.wide {
  width: 100%;
  margin-top: 8px;
}

.results-area {
  grid-area: results;
  min-width: 0;
  overflow: hidden;
}

.results-toolbar {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.results-toolbar .eyebrow {
  color: var(--red);
}

.feed-status {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.view-toggle button {
  border: 0;
}

.view-toggle .active {
  background: var(--charcoal);
  color: #fff;
}

.results-table {
  overflow-x: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 0;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

th:nth-child(1),
td:nth-child(1) {
  width: 28%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 9%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 14%;
}

th:nth-child(4),
td:nth-child(4),
th:nth-child(5),
td:nth-child(5) {
  width: 8%;
}

th:nth-child(6),
td:nth-child(6) {
  width: 12%;
}

th:nth-child(7),
td:nth-child(7) {
  width: 9%;
}

th:nth-child(8),
td:nth-child(8) {
  width: 12%;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pack-art,
.pack-image {
  flex: 0 0 52px;
  width: 46px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: #fff4bf;
  object-fit: cover;
}

.mascot-fallback {
  display: inline-block;
  border: 1px solid #eadb95;
  background-color: #fff4bf;
  background-image:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.72) 0 24%, transparent 25%),
    url("assets/mayosearch-logo-optimized.jpg");
  background-repeat: no-repeat;
  background-position: center, 50% 28%;
  background-size: 72%, 150%;
}

.pack-image {
  border: 1px solid var(--line);
  background: var(--soft);
}

.product-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 900;
}

.product-meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.seller-rating,
.deal-badge,
.warning-badge,
.out-stock-badge,
.international-badge,
.location-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.seller-rating {
  background: #e9f8ef;
  color: var(--green);
}

.deal-badge {
  background: #fff1bc;
  color: #8a6417;
}

.warning-badge {
  background: #ffe3df;
  color: #ab2131;
}

.out-stock-badge {
  background: #eeeeee;
  color: #5b5f66;
}

.out-stock-row {
  opacity: 0.74;
}

tr.out-stock-row td {
  background: #f8f5ee;
}

.out-stock-link {
  background: #777b82;
}

.tcg-button {
  background: #2764b3;
}

.retailer-watch-row {
  border-left: 3px solid #b8a58b;
}

.international-badge {
  width: fit-content;
  max-width: 180px;
  margin-top: 8px;
  background: #e4f5ff;
  color: #17627f;
  white-space: normal;
  line-height: 1.25;
}

.location-badge {
  width: fit-content;
  margin-top: 8px;
  background: #eef8e9;
  color: var(--green);
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 900;
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.listing-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 96px;
}

.save-retailer {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ec;
  color: var(--charcoal);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 9px;
  cursor: pointer;
}

.market-listings-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #198a78;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 9px;
  cursor: pointer;
}

.price {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 950;
}

.muted {
  color: var(--muted);
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(6, 6px);
  align-items: end;
  gap: 3px;
  min-width: 54px;
  min-height: 50px;
}

.market-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 26, 31, 0.56);
}

.market-modal.hidden {
  display: none;
}

.market-dialog {
  width: min(760px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 24px 80px rgba(30, 24, 14, 0.28);
}

.market-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
}

.market-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.market-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.market-api-status {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff4bf;
  color: var(--ink);
  font-weight: 800;
}

.market-price {
  color: var(--blue);
  font-weight: 950;
}

.market-listing {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.market-listing img,
.market-listing .pack-art {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-chart span {
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}

.mini-chart small {
  grid-column: 1 / -1;
  align-self: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.68rem;
  line-height: 1.1;
}

.locked-chart {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ec;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.72rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
  padding: 18px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.pagination button {
  min-width: 98px;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.product-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-card .pack-art,
.product-card .pack-image {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-tools {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 48px;
}

.member-tools > div,
#reviewForm,
#suggestSiteForm {
  padding: 18px;
}

.tool-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.tool-list span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

.empty-state {
  margin: 0;
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.fallback-listings {
  display: grid;
  gap: 10px;
  width: min(620px, 100%);
  margin: 18px auto 0;
  text-align: left;
}

.fallback-listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.fallback-listing strong {
  color: var(--ink);
}

.warning-text {
  color: #a64618;
  font-weight: 800;
}

.marketplace-search-row {
  background: color-mix(in srgb, var(--cream) 72%, #ffffff);
}

tr.marketplace-search-row td {
  border-top: 1px dashed var(--line);
}

.product-card.marketplace-search-row {
  border-style: dashed;
}

.hidden {
  display: none;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 284px minmax(0, 1fr);
  }

  .ad-rail {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    overflow-x: hidden;
  }

  .nav {
    display: none;
  }

  .topbar {
    gap: 10px;
    min-height: 64px;
    padding: 8px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .evolving-cries-mode .brand-logo-cry {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .account-pill {
    max-width: 38vw;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search-hero {
    min-height: 430px;
  }

  .hero-content {
    width: min(100% - 24px, 720px);
    padding-bottom: 20px;
  }

  .hero-content h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 11vw, 3.2rem);
    line-height: 0.98;
  }

  .search-panel {
    gap: 10px;
    padding: 12px;
  }

  .search-panel,
  .workspace,
  .market-strip,
  .account-band,
  .member-tools,
  .account-card {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-areas:
      "filters"
      "results";
    width: min(100% - 24px, 720px);
    gap: 16px;
    margin-top: 18px;
  }

  .primary-button {
    width: 100%;
  }

  .filters {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .mobile-filter-menu {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(64, 42, 18, 0.07);
    overflow: hidden;
  }

  .mobile-filter-menu > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    cursor: pointer;
    color: var(--ink);
    font-weight: 950;
    list-style: none;
  }

  .mobile-filter-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-filter-menu > summary::after {
    content: "+";
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 950;
  }

  .mobile-filter-menu[open] > summary::after {
    content: "-";
  }

  .filter-summary-note {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .filter-panel {
    padding: 14px;
    border-top: 1px solid var(--line);
  }

  .results-area {
    border-radius: 8px;
  }

  .results-toolbar {
    gap: 12px;
  }

  .results-toolbar h2 {
    font-size: 1.25rem;
  }

  .view-toggle {
    display: none;
  }

  .results-table {
    display: none;
  }

  .product-grid {
    display: grid;
    padding: 12px;
  }

  .product-grid.hidden {
    display: none;
  }

  .product-card {
    gap: 12px;
    padding: 14px;
  }

  .product-card .pack-image,
  .product-card .pack-art {
    width: 72px;
    height: 72px;
  }

  .product-card .product-name {
    font-size: 0.98rem;
  }

  .listing-actions {
    justify-content: stretch;
    gap: 8px;
  }

  .listing-actions a,
  .listing-actions button {
    min-height: 38px;
    text-align: center;
  }

  .signup-protection {
    grid-template-columns: 1fr;
  }

  .account-settings,
  .recovery-grid {
    grid-template-columns: 1fr;
  }

  .account-band,
  .member-tools {
    width: min(100% - 20px, 720px);
    gap: 12px;
    margin: 14px auto;
  }

  .account-card {
    gap: 10px;
    padding: 14px;
  }

  .account-actions,
  .listing-actions,
  .fallback-listing,
  .daily-deal-card,
  .card-row {
    width: 100%;
  }

  .daily-deals {
    width: min(100% - 24px, 720px);
    gap: 12px;
    margin-top: 14px;
  }

  .admin-page {
    width: min(100% - 24px, 720px);
    gap: 12px;
    margin-top: 14px;
  }

  .content-page {
    width: min(100% - 24px, 720px);
    margin-top: 14px;
  }

  .content-card {
    padding: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 720px);
    padding: 18px;
  }

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

  .daily-deal-card {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 14px;
  }

  .daily-deal-card .listing-actions {
    grid-column: 1 / -1;
  }

  .deal-rank {
    position: static;
    grid-column: 1 / -1;
    width: fit-content;
    padding: 0 10px;
  }

  .daily-deal-card .pack-image,
  .daily-deal-card .pack-art {
    width: 62px;
    height: 62px;
  }

  .fallback-listing {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .account-actions button,
  .listing-actions a,
  .listing-actions button,
  .fallback-listing .buy-button {
    flex: 1 1 120px;
  }

  .member-tools {
    margin-bottom: 28px;
  }

  .market-strip div {
    padding: 12px 14px;
  }

  .results-toolbar {
    padding: 14px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .product-card {
    padding: 14px;
  }

  .product-card .pack-image,
  .product-card .pack-art {
    max-height: 180px;
    object-fit: contain;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 60px;
  }

  .search-hero {
    min-height: 500px;
  }

  .search-hero::after {
    background: linear-gradient(180deg, rgba(24, 28, 32, 0.36), rgba(24, 28, 32, 0.9));
  }

  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.08;
  }

  .hero-content {
    width: min(100% - 20px, 520px);
    margin-bottom: 20px;
  }

  .search-panel {
    gap: 8px;
    padding: 8px;
  }

  input,
  select {
    min-height: 42px;
  }

  .results-toolbar,
  .filter-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-toggle,
  .view-toggle button {
    width: 100%;
  }

  .view-toggle button {
    flex: 1;
  }

  .view-toggle button[data-view="table"] {
    display: none;
  }

  .results-table {
    display: none;
  }

  .feed-status {
    font-size: 0.82rem;
  }

  fieldset {
    margin-top: 14px;
    padding-top: 14px;
  }

  .disclaimer-copy {
    max-height: 150px;
  }
}
