:root {
  --bg-top: #f4e5bf;
  --bg-mid: #e8dcc1;
  --bg-bottom: #d8e4cf;
  --sun-wash: rgba(255, 243, 210, 0.92);
  --mist-wash: rgba(184, 223, 206, 0.7);
  --resin-glow: rgba(222, 160, 82, 0.34);
  --accent-soft: rgba(46, 123, 89, 0.16);
  --accent-glow: rgba(46, 123, 89, 0.28);
  --leaf-pattern-opacity: 0.065;
  --leaf-pattern-blend: multiply;
  --panel: rgba(255, 249, 239, 0.84);
  --panel-strong: rgba(255, 252, 246, 0.94);
  --panel-border: rgba(98, 113, 95, 0.16);
  --panel-alt: rgba(255, 255, 255, 0.52);
  --ink: #203128;
  --muted: #5b6b61;
  --line: rgba(92, 107, 97, 0.14);
  --accent: #2e7b59;
  --accent-strong: #205b42;
  --green: var(--accent);
  --green-dark: var(--accent-strong);
  --amber: #b46b20;
  --red: #a84235;
  --blue: #356f91;
  --shadow: 0 14px 36px rgba(29, 42, 32, 0.14);
  --shadow-lg: 0 22px 60px rgba(29, 42, 32, 0.18);
  --shadow-md: 0 14px 36px rgba(29, 42, 32, 0.14);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --card-radius: 16px;
  --card-padding: 16px;
  --card-bg: rgba(255, 255, 255, 0.64);
  --card-border: rgba(92, 107, 97, 0.1);
  --card-shadow: 0 14px 34px rgba(29, 42, 32, 0.08);
  --glass-panel: rgba(255, 249, 239, 0.72);
  --floating-toggle-clearance: calc(max(24px, env(safe-area-inset-top)) + 58px);
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 18%, var(--sun-wash), transparent 32%),
    radial-gradient(circle at 82% 14%, var(--mist-wash), transparent 24%),
    radial-gradient(circle at 50% 112%, var(--accent-soft), transparent 36%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 42%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(14px);
  opacity: 0.65;
  z-index: 0;
}

body::before {
  width: 34vw;
  height: 34vw;
  left: -8vw;
  bottom: -12vw;
  background: radial-gradient(circle, var(--resin-glow) 0%, transparent 70%);
}

body::after {
  width: 28vw;
  height: 28vw;
  right: -6vw;
  top: -7vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 72%);
}

.atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.atmosphere-leaves,
.smoke-plume {
  position: absolute;
  inset: -12%;
}

.atmosphere-leaves {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 96 96%27%3E%3Cg fill=%27%23205b42%27%3E%3Cpath d=%27M48 8 C43 22 42 34 48 54 C54 34 53 22 48 8Z%27/%3E%3Cpath d=%27M34 16 C32 31 36 42 47 57 C49 39 44 27 34 16Z%27/%3E%3Cpath d=%27M62 16 C64 31 60 42 49 57 C47 39 52 27 62 16Z%27/%3E%3Cpath d=%27M21 29 C25 43 34 52 47 62 C43 45 34 35 21 29Z%27/%3E%3Cpath d=%27M75 29 C71 43 62 52 49 62 C53 45 62 35 75 29Z%27/%3E%3Cpath d=%27M13 48 C25 57 36 62 47 66 C38 52 27 47 13 48Z%27/%3E%3Cpath d=%27M83 48 C71 57 60 62 49 66 C58 52 69 47 83 48Z%27/%3E%3Cpath d=%27M46.5 55 H49.5 V86 H46.5Z%27/%3E%3C/g%3E%3C/svg%3E");
  background-size: 188px 188px;
  background-position: center center;
  opacity: var(--leaf-pattern-opacity, 0.065);
  mix-blend-mode: var(--leaf-pattern-blend, multiply);
  transform: rotate(-5deg) scale(1.08);
  animation: leafFloat 26s ease-in-out infinite alternate;
}

.smoke-plume {
  --smoke-scale-start: 1;
  --smoke-scale-mid: 1.06;
  --smoke-scale-end: 1.12;
  --smoke-offset-x: 0vw;
  filter: blur(32px);
  opacity: 0.18;
  background:
    radial-gradient(circle at 20% 78%, rgba(255, 255, 255, 0.22), transparent 16%),
    radial-gradient(circle at 38% 62%, rgba(255, 255, 255, 0.18), transparent 14%),
    radial-gradient(circle at 58% 72%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 82% 84%, rgba(255, 255, 255, 0.16), transparent 15%);
  animation: smokeLift 24s ease-in-out infinite;
  transform-origin: center;
}

.smoke-plume-one {
  animation-duration: 22s;
  animation-delay: -6s;
  opacity: 0.18;
}

.smoke-plume-two {
  animation-duration: 30s;
  animation-delay: -14s;
  opacity: 0.14;
  --smoke-scale-start: 1.08;
  --smoke-scale-mid: 1.14;
  --smoke-scale-end: 1.2;
  --smoke-offset-x: 4vw;
}

.smoke-plume-three {
  animation-duration: 34s;
  animation-delay: -19s;
  opacity: 0.12;
  --smoke-scale-start: 1.16;
  --smoke-scale-mid: 1.22;
  --smoke-scale-end: 1.28;
  --smoke-offset-x: -5vw;
}

@keyframes smokeLift {
  0% {
    transform: translate3d(calc(var(--smoke-offset-x) - 1vw), 4vh, 0) scale(var(--smoke-scale-start));
  }
  50% {
    transform: translate3d(calc(var(--smoke-offset-x) + 1vw), -2vh, 0) scale(var(--smoke-scale-mid));
  }
  100% {
    transform: translate3d(calc(var(--smoke-offset-x) - 2vw), -8vh, 0) scale(var(--smoke-scale-end));
  }
}

@keyframes leafFloat {
  0% {
    transform: rotate(-5deg) scale(1.08) translate3d(0, 0, 0);
  }
  100% {
    transform: rotate(-1deg) scale(1.12) translate3d(0, -2vh, 0);
  }
}

@media (max-width: 767px), (orientation: landscape) and (max-height: 560px) and (pointer: coarse) {
  .atmosphere-leaves {
    background-size: 148px 148px;
    opacity: 0.045;
  }

  .smoke-plume {
    filter: blur(26px);
    opacity: 0.11;
  }
}

/* Search-first database experience */
.page-shell {
  width: min(1040px, calc(100% - 32px));
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: 112px;
}

.topbar {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.topbar .brand {
  max-width: 720px;
}

.topbar .brand h1 {
  margin-top: 8px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.topbar .intro-copy {
  max-width: 620px;
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
}

.database-search-panel {
  position: static;
  width: min(880px, 100%);
  margin: clamp(22px, 4vw, 38px) auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.database-search-panel:focus-within {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.database-search-head {
  margin-bottom: 12px;
}

.database-search-title {
  display: block;
}

.database-search-title strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.database-search-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.database-search-field {
  position: relative;
  display: block;
  padding: 0;
}

.database-search-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.database-search-field input {
  width: 100%;
  min-height: 68px;
  padding: 0 58px 0 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 96%, white), color-mix(in srgb, var(--panel-strong) 94%, transparent));
  color: var(--ink);
  font-size: clamp(17px, 2.2vw, 21px);
  box-shadow: 0 18px 50px rgba(26, 43, 34, 0.1);
}

.database-search-input {
  position: relative;
}

.database-search-input::after {
  content: "⌕";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--accent-strong);
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
}

.database-search-field input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 17%, transparent),
    0 20px 54px rgba(26, 43, 34, 0.13);
}

.database-quick-chips,
.database-search-field > .field-note {
  display: none;
}

.search-scope-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.search-scope-row > span { color: var(--muted); font-size: 13px; font-weight: 800; }
.search-scope-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--panel-alt);
  font-weight: 800;
}
.search-scope-row button.is-active { color: #fff; border-color: var(--accent); background: var(--accent); }

.discovery-suggestions,
.discovery-results {
  width: min(880px, 100%);
  margin: 30px auto 0;
}

.discovery-suggestions[hidden],
.discovery-results[hidden] {
  display: none !important;
}

.discovery-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.discovery-group + .discovery-group {
  margin-top: 32px;
}

.discovery-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.discovery-group-head h2,
.discovery-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.discovery-group-head span {
  color: var(--muted);
  font-size: 12px;
}

.discovery-browser-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel-strong));
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.discovery-browser-link:hover,
.discovery-browser-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 17%, var(--panel-strong));
  outline: none;
}

html[data-budfinder-mode="dark"] .discovery-browser-link {
  border-color: color-mix(in srgb, var(--accent) 58%, white 18%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, white), color-mix(in srgb, var(--accent-strong) 62%, #f5d67a));
  color: #10150f;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 20%, transparent);
}

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

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

.discovery-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  min-height: 86px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(30, 50, 40, 0.06);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.discovery-card:hover,
.discovery-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  box-shadow: 0 14px 34px rgba(30, 50, 40, 0.11);
  outline: none;
}

.discovery-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.discovery-card-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-card-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.discovery-card .shop-art,
.discovery-card .strain-art {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
}

.discovery-card .strain-art img,
.discovery-card .shop-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discovery-area-icon {
  display: grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 15%, var(--panel-strong));
  color: var(--accent-strong);
  font-size: 21px;
  font-weight: 800;
}

.discovery-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.discovery-type-row span {
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--panel-strong));
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.discovery-empty {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.discovery-browser {
  width: min(1040px, 100%);
  margin: 26px auto 0;
}

.discovery-browser[hidden] {
  display: none !important;
}

.discovery-browser-topbar,
.discovery-browser-heading,
.discovery-browser-results-head,
.discovery-browser-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.discovery-browser-topbar {
  margin-bottom: 18px;
}

.discovery-browser-back {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.discovery-browser-heading {
  align-items: flex-end;
  margin-bottom: 16px;
}

.discovery-browser-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.discovery-browser-heading p,
.discovery-browser-results-head {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.discovery-browser-search {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.discovery-browser-search label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discovery-browser-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 16px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.discovery-browser-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
}

.discovery-browser-filter {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discovery-browser-filter select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.discovery-browser-filter-reset {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.discovery-browser-filter-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.discovery-browser-results-head {
  margin-bottom: 10px;
}

@media (max-width: 860px) {
  .discovery-browser-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .discovery-browser-filter-reset {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .discovery-browser-filters {
    grid-template-columns: 1fr;
  }

  .discovery-browser-filter-reset,
  .discovery-browser-filter-status {
    grid-column: 1;
  }
}

.discovery-browser-more {
  justify-content: center;
  margin-top: 18px;
}

.discovery-browser-more[hidden] {
  display: none !important;
}

.discovery-browser-more button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

#database-layout,
.result-toolbar,
.workflow-strip,
#jump-top {
  display: none !important;
}

#status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.database-detail {
  width: min(920px, 100%);
  margin: 24px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.database-detail .detail-header,
.database-detail .detail-section {
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 14px 38px rgba(30, 50, 40, 0.08);
}

.database-detail .detail-section {
  padding: clamp(16px, 3vw, 24px);
}

.database-detail .detail-header-main .shop-art {
  width: 82px;
  height: 82px;
  min-width: 82px;
  border-radius: 20px;
}

.menu-listing-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-listing-main .strain-art {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
}

.average-comparison.is-below {
  color: #145b33;
  background: #dff5e7;
  border-color: #94d1aa;
}

.average-comparison.is-above {
  color: #7b2d25;
  background: #fbe5e2;
  border-color: #e6a7a0;
}

.average-comparison.is-average {
  color: #604b16;
  background: #f8f0d3;
  border-color: #ddc675;
}

body.database-detail-open .topbar,
body.database-detail-open .database-search-panel,
body.database-detail-open .discovery-suggestions,
body.database-detail-open .discovery-results,
body.database-detail-open .discovery-browser {
  display: none !important;
}

body.database-browser-open .topbar,
body.database-browser-open .database-search-panel {
  display: none !important;
}

body.database-browser-open .page-shell {
  padding-top: 34px;
}

body.database-detail-open .page-shell {
  padding-top: 34px;
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
    padding-top: 18px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .topbar .brand h1 {
    margin-top: 6px;
    font-size: clamp(34px, 12vw, 50px);
  }

  .topbar .intro-copy {
    margin-top: 12px;
    font-size: 15px;
  }

  .database-search-panel {
    margin-top: 20px;
  }

  .database-search-head {
    margin-bottom: 9px;
  }

  .database-search-field input {
    min-height: 58px;
    padding: 0 50px 0 18px;
    border-radius: 18px;
    font-size: 17px;
  }

  .database-search-input::after {
    right: 17px;
    font-size: 26px;
  }

  .discovery-suggestions,
  .discovery-results {
    margin-top: 24px;
  }

  .discovery-group + .discovery-group {
    margin-top: 26px;
  }

  .discovery-group-head,
  .discovery-browser-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .discovery-grid,
  .discovery-grid.is-results {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .discovery-card {
    min-height: 78px;
    padding: 12px;
    border-radius: 16px;
  }

  .discovery-card .shop-art,
  .discovery-card .strain-art,
  .discovery-area-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .database-detail {
    margin-top: 0;
  }

  .database-detail .detail-header,
  .database-detail .detail-section {
    border-radius: 18px;
  }

  .database-detail .detail-header-main {
    align-items: flex-start;
  }

  .database-detail .detail-header-main .shop-art {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 17px;
  }

  body.database-detail-open .page-shell {
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere-leaves,
  .smoke-plume {
    animation: none;
  }

  .smoke-plume {
    opacity: 0.1;
  }
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

#status.is-visible {
  position: static;
  width: min(880px, 100%);
  height: auto;
  margin: 18px auto;
  padding: 14px 18px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 1px solid var(--line);
}

#status button {
  min-height: 44px;
  margin: 8px 0 0;
  display: block;
}

#status .error {
  color: var(--ink);
  font-weight: 900;
}

button,
.nav-link {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text, #fff9f0);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 26px rgba(32, 91, 66, 0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

button:hover,
.nav-link:hover {
  transform: translateY(-1px);
}

.app-mode-toggle {
  position: fixed;
  top: max(24px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  z-index: 1007;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(244, 255, 248, 0.16);
  background: rgba(6, 14, 13, 0.88);
  color: #f4fff8;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.app-mode-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(244, 255, 248, 0.82);
  font-weight: 800;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.app-mode-toggle a:hover {
  background: rgba(244, 255, 248, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.app-mode-toggle a.is-active {
  background: linear-gradient(135deg, #4df49a, #f0b854);
  color: #06100e;
  box-shadow: 0 8px 22px rgba(77, 244, 154, 0.24);
}

.global-vibe-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 6px 0 12px;
  border-left: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-vibe-control select {
  min-height: 30px;
  max-width: 150px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0 26px 0 10px;
  color: var(--control-text, var(--ink));
  background: var(--control-bg, rgba(255, 255, 255, 0.58));
  color-scheme: var(--control-color-scheme, light);
  font-weight: 800;
}

@media (max-width: 520px) {
  .global-vibe-control {
    padding-left: 8px;
  }

  .global-vibe-control span {
    display: none;
  }

  .global-vibe-control select {
    max-width: 118px;
    min-height: 44px;
    height: 44px;
  }
}

button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text, #fff);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 20px 212px 20px 22px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: var(--glass-panel);
  box-shadow: 0 16px 40px rgba(29, 42, 32, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kicker::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 96 96%27%3E%3Cg fill=%27%23205b42%27%3E%3Cpath d=%27M48 8 C43 22 42 34 48 54 C54 34 53 22 48 8Z%27/%3E%3Cpath d=%27M34 16 C32 31 36 42 47 57 C49 39 44 27 34 16Z%27/%3E%3Cpath d=%27M62 16 C64 31 60 42 49 57 C47 39 52 27 62 16Z%27/%3E%3Cpath d=%27M21 29 C25 43 34 52 47 62 C43 45 34 35 21 29Z%27/%3E%3Cpath d=%27M75 29 C71 43 62 52 49 62 C53 45 62 35 75 29Z%27/%3E%3Cpath d=%27M13 48 C25 57 36 62 47 66 C38 52 27 47 13 48Z%27/%3E%3Cpath d=%27M83 48 C71 57 60 62 49 66 C58 52 69 47 83 48Z%27/%3E%3Cpath d=%27M46.5 55 H49.5 V86 H46.5Z%27/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.86;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 14px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 0.98;
}

.intro-copy {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: balance;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
  background: var(--control-bg, rgba(255, 255, 255, 0.52));
  color: var(--control-text, var(--ink));
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  box-shadow: none;
}

.status {
  min-height: 22px;
  margin: 18px 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--control-border, rgba(255, 255, 255, 0.32));
  border-radius: 18px;
  background: var(--control-bg, rgba(255, 255, 255, 0.44));
  color: var(--control-muted, var(--muted));
  font-size: 13px;
  backdrop-filter: blur(14px);
}

.database-search-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: var(--glass-panel);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
}

.database-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.database-search-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.database-search-title strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.database-search-title span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.database-search-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.database-search-field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.database-search-field input {
  min-height: 58px;
  border-width: 2px;
  border-color: rgba(77, 244, 154, 0.34);
  border-radius: 16px;
  padding-inline: 18px;
  background: var(--control-bg, rgba(255, 255, 255, 0.78));
  font-size: 18px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 0 0 4px rgba(77, 244, 154, 0.08);
}

.database-search-field input:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 0 0 4px rgba(77, 244, 154, 0.18);
}

.database-search-field input::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-4);
}

.workflow-step,
.trust-note {
  border: 1px solid var(--control-border, rgba(255, 255, 255, 0.34));
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.workflow-step {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

.workflow-step span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-step strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.workflow-step p,
.trust-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.trust-note {
  margin: 0 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 314px);
  gap: var(--space-4);
  align-items: start;
}

.panel,
.metric,
.strain-card,
.shop-card,
.comparison-card {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.panel {
  padding: var(--card-padding);
  border-color: var(--panel-border);
  border-radius: var(--radius-xl);
  background: var(--glass-panel);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
}

.side-panel {
  order: 2;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.research-disclosure,
.saved-disclosure,
.launch-notes {
  margin-top: var(--space-3);
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.research-disclosure summary,
.saved-disclosure summary,
.launch-notes summary {
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  color: var(--control-text, var(--ink));
  font-weight: 900;
  cursor: pointer;
  list-style-position: inside;
}

.research-disclosure > .field,
.research-disclosure > .filter-grid,
.research-disclosure > .price-band,
.saved-disclosure > .field,
.saved-disclosure > button,
.launch-notes > .workflow-step,
.launch-notes > .trust-note {
  margin-inline: var(--space-3);
}

.research-disclosure > .field:first-of-type,
.saved-disclosure > .field:first-of-type,
.launch-notes > .workflow-step:first-of-type {
  margin-top: var(--space-2);
}

.research-disclosure > .price-band,
.saved-disclosure > .field:last-of-type,
.launch-notes > .trust-note {
  margin-bottom: var(--space-3);
}

.field {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.field label,
.filter-label {
  color: var(--control-text, var(--ink));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
  cursor: pointer;
}

.text-button:focus-visible {
  outline: 3px solid rgba(51, 133, 99, 0.28);
  outline-offset: 3px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.14));
  border-radius: var(--radius-md);
  padding: 0 14px;
  background: var(--control-bg, rgba(255, 255, 255, 0.66));
  color: var(--control-text, var(--ink));
  color-scheme: var(--control-color-scheme, light);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

input::placeholder {
  color: var(--control-muted, var(--muted));
  opacity: 0.82;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.segmented button {
  padding: 0 8px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
}

.segmented button:not(.is-active),
.browse-mode-grid button:not(.is-active),
.family-filter-grid button:not(.is-active),
.card-actions button:not(.is-active),
.strain-more-row button,
#clear-selected,
.selected-pill button {
  background: var(--control-bg, rgba(255, 255, 255, 0.52));
  color: var(--control-text, var(--ink));
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  box-shadow: none;
}

.browse-mode-grid,
.family-filter-grid {
  display: grid;
  gap: var(--space-2);
}

.browse-mode-grid {
  grid-template-columns: 1fr 1fr;
}

.browse-mode-grid button,
.family-filter-grid button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.family-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 230px;
  overflow: auto;
  padding-right: 3px;
}

.family-filter-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.family-filter-grid span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-filter-grid small {
  color: inherit;
  opacity: 0.72;
  font-size: 11px;
}

.selected-list {
  display: grid;
  gap: 8px;
  min-height: 48px;
  margin-top: 8px;
}

#selected-shop-list {
  max-height: 330px;
  overflow: auto;
  padding-right: 3px;
}

.selected-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 9px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.selected-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.selected-pill-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.selected-pill button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  line-height: 1;
}

.selected-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}

.side-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.side-action-row button {
  padding-inline: 10px;
}

.selected-shop-pill {
  border-color: rgba(46, 123, 89, 0.22);
  background: rgba(234, 248, 239, 0.58);
}

.price-band {
  margin: var(--space-1) 0 var(--space-4);
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.price-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.price-band-value {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.range-stack {
  display: grid;
  gap: 8px;
}

input[type="range"] {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

.main-stack {
  display: grid;
  gap: var(--space-4);
  order: 1;
}

.result-toolbar {
  flex: 0 1 620px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: min(100%, 360px);
  margin: var(--space-5) 0 var(--space-3);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.result-context {
  min-width: 0;
  color: var(--control-text, var(--ink));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-toolbar-actions {
  display: flex;
  gap: var(--space-2);
  flex: 0 0 auto;
}

.result-toolbar-actions button,
.result-toolbar-actions a,
.quick-answer-actions button,
.quick-answer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.result-toolbar-actions button,
.quick-answer-actions button,
.quick-answer-actions a.secondary {
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  background: rgba(255, 252, 246, 0.88);
  color: #203128;
  box-shadow: none;
}

.result-toolbar-actions a,
.quick-answer-actions a:not(.secondary) {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text, #fff9f0);
  box-shadow: 0 12px 24px rgba(32, 91, 66, 0.14);
}

.quick-answer {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.quick-answer[hidden] {
  display: none;
}

.quick-answer.is-empty {
  color: var(--muted);
}

.quick-answer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quick-answer-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-answer h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
}

.quick-answer-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quick-answer-price {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(188, 139, 31, 0.22);
  background: rgba(255, 240, 190, 0.9);
  color: #8b5615;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.quick-answer-list {
  display: grid;
  gap: 8px;
}

.quick-answer-row,
.cheapest-shop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.1));
  border-radius: 12px;
  background: var(--control-bg, rgba(255, 255, 255, 0.56));
}

button.quick-answer-row,
button.cheapest-shop-row {
  width: 100%;
  color: var(--control-text, var(--ink));
  font-weight: inherit;
  letter-spacing: 0;
  text-align: left;
  box-shadow: none;
}

button.quick-answer-row:hover,
button.cheapest-shop-row:hover {
  border-color: var(--control-selected-border, rgba(46, 123, 89, 0.28));
  background: var(--control-bg-hover, rgba(244, 252, 246, 0.76));
}

button.quick-answer-row.is-active,
button.cheapest-shop-row.is-active {
  border-color: var(--control-selected-border, rgba(46, 123, 89, 0.34));
  background: var(--control-selected-bg, rgba(232, 247, 235, 0.84));
  color: var(--control-text, var(--ink));
}

.quick-answer-row strong,
.cheapest-shop-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-answer-row span,
.cheapest-shop-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quick-answer-row-price,
.cheapest-shop-row-price {
  color: var(--accent-strong);
  font-weight: 900;
  white-space: nowrap;
}

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

.cheapest-shop-list {
  display: grid;
  gap: 6px;
}

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

#quick-answer { order: -1; }
#strains-view { order: 1; }
#shops-view { order: 2; }
#compare-view { order: 3; }

.metric {
  padding: 12px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: none;
}

button.metric {
  cursor: pointer;
}

button.metric:hover,
button.metric:focus-visible {
  border-color: var(--control-selected-border);
  background: var(--control-bg-hover);
  transform: translateY(-1px);
}

.metric-value {
  display: block;
  margin-bottom: 2px;
  font-size: clamp(18px, 2vw, 26px);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section-head h2 {
  margin-bottom: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.browse-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

.browse-summary .chip {
  background: rgba(255, 250, 239, 0.74);
  color: var(--ink);
}

.price-guide-panel,
.shop-menu-browser {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.price-guide-hero,
.shop-menu-hero {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--control-border, rgba(255, 255, 255, 0.36));
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--control-bg-strong, rgba(255, 255, 255, 0.74)), var(--control-bg, rgba(255, 255, 255, 0.5))),
    var(--control-bg, rgba(255, 255, 255, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.price-guide-head,
.shop-menu-hero-head,
.listing-card-head,
.menu-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price-guide-head h3,
.shop-menu-hero-head h3,
.listing-section h3,
.menu-category-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.05;
}

.menu-category-head h3 {
  text-transform: capitalize;
}

.price-guide-head p,
.shop-menu-hero-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-stat-grid,
.shop-menu-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.price-stat,
.shop-menu-summary-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  border-radius: 14px;
  background: var(--control-bg, rgba(255, 255, 255, 0.56));
  color: var(--control-text, var(--ink));
}

.price-stat span,
.shop-menu-summary-item span {
  color: var(--control-muted, var(--muted));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-stat strong,
.shop-menu-summary-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.2;
}

.price-stat small,
.shop-menu-summary-item small {
  color: var(--control-muted, var(--muted));
  font-size: 11px;
  line-height: 1.25;
}

.price-guide-actions,
.listing-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-guide-actions button,
.listing-card-actions button,
.listing-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.price-guide-actions button,
.listing-card-actions button,
.listing-card-actions a {
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  background: var(--control-bg, rgba(255, 255, 255, 0.56));
  color: var(--control-text, var(--ink));
  box-shadow: none;
}

.listing-sections {
  display: grid;
  gap: 12px;
}

.listing-section {
  display: grid;
  gap: 10px;
}

.listing-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.listing-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.listing-grid,
.menu-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.listing-card,
.menu-listing-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  border-radius: 16px;
  background: var(--control-bg, rgba(255, 255, 255, 0.58));
  color: var(--control-text, var(--ink));
  box-shadow: none;
}

.listing-card strong,
.menu-listing-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.listing-map-link,
.shop-menu-map-link,
.shop-logo-map-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--control-text, var(--ink));
  text-decoration: none;
  border-radius: 14px;
}

.listing-map-link:hover,
.listing-map-link:focus-visible,
.shop-menu-map-link:hover,
.shop-menu-map-link:focus-visible,
.shop-logo-map-link:hover,
.shop-logo-map-link:focus-visible {
  color: var(--accent-strong);
  outline: 3px solid rgba(51, 133, 99, 0.24);
  outline-offset: 3px;
}

.shop-logo-map-link {
  flex: 0 0 auto;
  border-radius: 14px;
}

.listing-card-meta,
.menu-listing-meta {
  color: var(--control-muted, var(--muted));
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.listing-card-price,
.menu-listing-price {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.listing-note {
  margin: 0;
  color: var(--control-muted, var(--muted));
  font-size: 12px;
  line-height: 1.4;
}

.age-badge,
.price-judgement {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  background: var(--control-bg-strong, rgba(255, 255, 255, 0.72));
  color: var(--control-text, var(--ink));
  font-size: 11px;
  font-weight: 900;
}

.age-fresh,
.price-great {
  border-color: rgba(39, 126, 83, 0.2);
  background: rgba(214, 244, 226, 0.88);
  color: #205b42;
}

.age-recent,
.price-good {
  border-color: rgba(64, 137, 87, 0.18);
  background: rgba(229, 246, 219, 0.86);
  color: #2f6c36;
}

.age-older,
.price-typical {
  border-color: rgba(188, 139, 31, 0.2);
  background: rgba(255, 240, 190, 0.82);
  color: #8b5615;
}

.age-stale,
.price-high,
.price-premium {
  border-color: rgba(168, 66, 53, 0.18);
  background: rgba(245, 224, 219, 0.86);
  color: #9b3529;
}

.age-unknown,
.price-unknown {
  border-color: var(--control-border, rgba(92, 107, 97, 0.12));
  background: var(--control-bg, rgba(255, 255, 255, 0.58));
  color: var(--control-muted, var(--muted));
}

.shop-browser-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(190px, 1.2fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--control-border, rgba(255, 255, 255, 0.34));
  border-radius: 18px;
  background: var(--control-bg, rgba(255, 255, 255, 0.44));
}

.shop-browser-controls .field {
  margin-bottom: 0;
}

.shop-browser-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  border-radius: var(--radius-md);
  background: var(--control-bg, rgba(255, 255, 255, 0.56));
  color: var(--control-text, var(--ink));
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.shop-browser-check input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.menu-category-group {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
}

.menu-category-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.strain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.strain-grid.is-fresh-scan {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.strain-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(92, 107, 97, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.strain-card:hover,
.strain-card:focus-visible {
  border-color: rgba(46, 123, 89, 0.28);
  box-shadow: inset 0 0 0 1px rgba(46, 123, 89, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.strain-card.is-selected {
  border-color: rgba(46, 123, 89, 0.36);
  background: rgba(245, 255, 248, 0.84);
  box-shadow: inset 0 0 0 1px rgba(46, 123, 89, 0.22);
}

.strain-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.strain-card-main,
.comparison-card-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.strain-art {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 243, 210, 0.9), transparent 38%),
    linear-gradient(145deg, rgba(46, 123, 89, 0.16), rgba(222, 160, 82, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

.strain-art-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.strain-card-copy,
.comparison-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.strain-card h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chip.type-sativa { background: #e8f3df; color: #3c6b29; }
.chip.type-indica { background: #eee7f4; color: #60437a; }
.chip.type-hybrid { background: #e8f0f7; color: #356f91; }
.chip.type-hash { background: #f4eadc; color: #805319; }
.chip.type-kush { background: #e7f0e6; color: #2f6c50; }
.chip.cali { background: #f8eadf; color: #9d4a20; }
.chip.deal-chip {
  border-color: rgba(188, 139, 31, 0.2);
  background: rgba(255, 240, 190, 0.78);
  color: #8b5615;
}

.similar-strains {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.similar-strains > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.similar-strain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(92, 107, 97, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-decoration: none;
}

.similar-strain-row b {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-strain-row span {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

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

.card-actions button,
.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 8px;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.card-actions a {
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  background: var(--control-bg, rgba(255, 255, 255, 0.52));
  color: var(--control-text, var(--ink));
}

.strain-more-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.strain-more-row[hidden] {
  display: none;
}

.strain-more-row button {
  min-width: 180px;
  font-weight: 800;
}

.jump-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 107, 97, 0.12);
  background: rgba(255, 252, 246, 0.9);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.comparison-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(92, 107, 97, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.comparison-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.comparison-card .strain-art {
  width: 72px;
  height: 72px;
}

.comparison-lines {
  display: grid;
  gap: 7px;
  margin: 0;
}

.comparison-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(217, 223, 214, 0.7);
  padding-bottom: 6px;
  font-size: 13px;
}

.comparison-lines dt {
  color: var(--muted);
  font-weight: 700;
}

.comparison-lines dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.common-shops {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.common-shop-board {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(247, 241, 227, 0.46)),
    rgba(255, 255, 255, 0.5);
}

.route-plan-board {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(46, 123, 89, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(244, 252, 246, 0.78), rgba(255, 249, 239, 0.48)),
    rgba(255, 255, 255, 0.52);
}

.route-plan-head,
.route-plan-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.route-plan-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
}

.route-plan-head p,
.route-plan-row-head span {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.route-plan-total {
  flex: 0 0 auto;
  min-width: 128px;
  text-align: right;
}

.route-plan-total strong {
  display: block;
  color: var(--accent-strong);
  font-size: 18px;
}

.route-plan-row {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  border-radius: 16px;
  background: var(--control-bg, rgba(255, 255, 255, 0.68));
}

.route-plan-row h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.route-plan-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 150px;
  overflow: auto;
  padding-right: 3px;
}

.route-plan-option {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  background: var(--control-bg, rgba(255, 255, 255, 0.58));
  color: var(--control-text, var(--ink));
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.route-plan-option.is-active {
  border-color: var(--control-selected-border, rgba(46, 123, 89, 0.36));
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text, #fff9f0);
}

.common-shop-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.common-shop-board-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
}

.common-shop-board-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.common-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.common-shop-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(92, 107, 97, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.common-shop-card:hover,
.common-shop-card:focus-visible {
  border-color: rgba(46, 123, 89, 0.28);
  box-shadow: inset 0 0 0 1px rgba(46, 123, 89, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.common-shop-card.is-selected {
  border-color: rgba(46, 123, 89, 0.36);
  box-shadow: inset 0 0 0 1px rgba(46, 123, 89, 0.24);
}

.common-shop-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.common-shop-card .shop-art {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.common-shop-card-title strong {
  display: block;
  line-height: 1.2;
}

.common-shop-card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.common-shop-card-actions,
.shop-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  cursor: auto;
}

.common-shop-card-actions button,
.common-shop-card-actions a,
.shop-row-actions button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 14px;
}

.common-shop-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  background: var(--control-bg, rgba(255, 255, 255, 0.52));
  color: var(--control-text, var(--ink));
  font-weight: 700;
  text-decoration: none;
}

.common-shops-title {
  margin: 0;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.common-shop-group {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--control-border, rgba(255, 255, 255, 0.36));
  border-radius: 16px;
  background: var(--control-bg, rgba(255, 255, 255, 0.44));
}

.common-shop-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.common-shop-group-head span:last-child {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.common-shop-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.common-shop-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 5px 6px 5px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.common-shop-list li[data-partial-shop-card]:hover,
.common-shop-list li[data-partial-shop-card]:focus-visible {
  border-color: var(--control-selected-border, rgba(46, 123, 89, 0.24));
  background: var(--control-bg-hover, rgba(255, 255, 255, 0.62));
  outline: none;
  transform: translateY(-1px);
}

.common-shop-list li.is-selected {
  border-color: var(--control-selected-border, rgba(46, 123, 89, 0.32));
  background: var(--control-selected-bg, rgba(234, 248, 239, 0.62));
}

.common-shop-list strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.common-shop-list-meta {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.common-shop-list a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.common-shop-list button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
}

.shop-list {
  display: grid;
  gap: 12px;
  max-height: 640px;
  overflow: auto;
  padding-right: 3px;
}

.shop-list.is-fresh-scan {
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.fresh-shop-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.6fr) minmax(180px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.14));
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.fresh-shop-row.is-selected {
  border-color: var(--control-selected-border, rgba(46, 123, 89, 0.34));
  background: var(--control-selected-bg, rgba(245, 255, 248, 0.84));
}

.fresh-shop-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fresh-shop-copy,
.fresh-shop-date,
.fresh-shop-menu-preview {
  min-width: 0;
}

.fresh-shop-name {
  display: block;
  overflow: hidden;
  color: var(--control-text, var(--ink));
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fresh-shop-meta,
.fresh-shop-date span,
.fresh-shop-menu-preview span {
  display: block;
  overflow: hidden;
  color: var(--control-muted, var(--muted));
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fresh-shop-date strong,
.fresh-shop-menu-preview strong {
  display: block;
  overflow: hidden;
  color: var(--control-text, var(--ink));
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fresh-shop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.fresh-shop-actions button,
.fresh-shop-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.fresh-shop-row.is-strain-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.56fr) minmax(220px, 1fr) auto;
}

@media (max-width: 920px) {
  .fresh-shop-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .fresh-shop-actions {
    justify-content: flex-start;
  }
}

.shop-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.14));
  background: var(--control-bg-strong, rgba(255, 255, 255, 0.78));
  box-shadow: none;
}

.shop-card.is-selected {
  border-color: var(--control-selected-border, rgba(46, 123, 89, 0.34));
  background: var(--control-selected-bg, rgba(245, 255, 248, 0.84));
}

.shop-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.shop-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.shop-art {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: hidden;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(92, 107, 97, 0.14);
  background: #fff;
  color: transparent;
  font-size: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.shop-art img {
  position: absolute;
  inset: 6px;
  z-index: 1;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(31, 42, 36, 0.16));
}

.shop-card-copy {
  min-width: 0;
}

.shop-card-copy strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.shop-card-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.shop-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.shop-card-reason {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.shop-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.shop-card-actions button,
.shop-card-actions a {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 14px;
}

.shop-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  background: var(--control-bg, rgba(255, 255, 255, 0.52));
  color: var(--control-text, var(--ink));
  font-weight: 700;
  text-decoration: none;
}

.shop-menu {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 107, 97, 0.1);
}

.shop-deals {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(188, 139, 31, 0.16);
  border-radius: 16px;
  background: rgba(255, 244, 211, 0.48);
}

.strain-deal {
  padding: 9px;
}

.shop-deals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8b5615;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-deal-chip {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 42px;
  border-color: rgba(188, 139, 31, 0.2);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.shop-deal-chip strong {
  line-height: 1.15;
}

.shop-deal-chip span {
  color: #8b5615;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.shop-menu-label {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-menu-more {
  display: grid;
  gap: 8px;
}

.shop-menu-more summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.shop-menu-more summary::-webkit-details-marker {
  display: none;
}

.shop-menu-more summary::before {
  content: '+ ';
}

.shop-menu-more[open] summary::before {
  content: '− ';
}

.shop-row-actions a {
  min-height: 34px;
}

.availability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip.is-fresh {
  background: rgba(213, 239, 225, 0.86);
  border-color: rgba(32, 91, 66, 0.18);
  color: #205b42;
}

.chip.is-likely {
  background: rgba(255, 239, 199, 0.86);
  border-color: rgba(180, 107, 32, 0.18);
  color: #8b5615;
}

.chip.is-old-intel,
.chip.is-price-unknown {
  background: rgba(245, 224, 219, 0.86);
  border-color: rgba(168, 66, 53, 0.16);
  color: var(--red);
}

.availability-tags .strain-menu-chip {
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.availability-tags .strain-menu-chip.has-detail {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  max-width: 100%;
  border-radius: 16px;
  text-align: left;
  white-space: normal;
}

.strain-chip-name {
  line-height: 1.15;
}

.strain-chip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0.78;
}

.availability-tags .strain-menu-chip:hover,
.availability-tags .strain-menu-chip:focus-visible {
  border-color: rgba(46, 123, 89, 0.28);
  color: var(--accent-strong);
  transform: translateY(-1px);
  outline: none;
}

.availability-tags .strain-menu-chip.is-active {
  border-color: var(--control-selected-border, rgba(46, 123, 89, 0.36));
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text, #fff9f0);
}

.empty {
  padding: 18px;
  border: 1px solid var(--control-border, rgba(255, 255, 255, 0.34));
  border-radius: 16px;
  background: var(--control-bg, rgba(255, 255, 255, 0.54));
  color: var(--control-muted, var(--muted));
  text-align: center;
}

/* Polished product hierarchy: calm surfaces, clear buttons, consistent badges. */
button,
.nav-link,
.quick-answer-actions a,
.listing-card-actions a,
.common-shop-card-actions a,
.shop-card-actions a {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(46, 123, 89, 0.24);
  outline-offset: 3px;
}

.database-search-panel,
.panel,
.quick-answer,
.price-guide-hero,
.shop-menu-hero {
  border-color: rgba(98, 113, 95, 0.12);
}

.database-search-panel:focus-within {
  border-color: rgba(46, 123, 89, 0.32);
  box-shadow: 0 0 0 3px rgba(46, 123, 89, 0.14), var(--card-shadow);
}

.metric,
.strain-card,
.comparison-card,
.common-shop-card,
.shop-card,
.listing-card,
.menu-listing-card,
.price-stat,
.shop-menu-summary-item {
  border-radius: var(--card-radius);
  border-color: var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.strain-card:hover,
.strain-card:focus-visible,
.common-shop-card:hover,
.common-shop-card:focus-visible,
.shop-card:hover,
.listing-card:hover,
.menu-listing-card:hover {
  border-color: rgba(46, 123, 89, 0.22);
  box-shadow: 0 16px 38px rgba(29, 42, 32, 0.1);
  transform: translateY(-1px);
}

#show-wanted-map,
#show-selected-shops-map,
.quick-answer-actions a:not(.secondary),
.price-guide-actions button,
.listing-card-actions a:first-of-type,
.shop-card-actions a,
.common-shop-card-actions a {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text, #fff9f0);
  box-shadow: 0 12px 24px rgba(32, 91, 66, 0.14);
}

.result-toolbar-actions button,
.quick-answer-actions button,
.quick-answer-actions a.secondary,
.listing-card-actions button,
.common-shop-card-actions button,
.shop-card-actions button,
.segmented button:not(.is-active),
.browse-mode-grid button:not(.is-active),
.family-filter-grid button:not(.is-active) {
  background: rgba(255, 252, 246, 0.88);
  color: #203128;
  border-color: rgba(92, 107, 97, 0.1);
  box-shadow: none;
}

#clear-selected,
#clear-selected-shops,
.selected-pill button,
.strain-more-row button {
  background: rgba(255, 252, 246, 0.72);
  color: #203128;
  border-color: rgba(92, 107, 97, 0.1);
  box-shadow: none;
}

button:hover,
.nav-link:hover,
.quick-answer-actions a:hover,
.listing-card-actions a:hover,
.common-shop-card-actions a:hover,
.shop-card-actions a:hover {
  transform: translateY(-1px);
}

.chip,
.age-badge,
.price-judgement,
.mini-badge {
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  border-color: rgba(92, 107, 97, 0.1);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
}

.empty {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.42);
  text-align: left;
  line-height: 1.45;
}

.error {
  color: var(--red);
  font-weight: 800;
}

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

  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    order: 2;
    max-height: none;
    overflow: visible;
  }

  .main-stack {
    order: 1;
  }

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

  .price-stat-grid,
  .shop-menu-summary-grid,
  .shop-browser-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding-right: 212px;
  }

  .result-toolbar {
    flex-basis: auto;
    width: 100%;
  }
}

.database-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.database-quick-chips button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--control-border, rgba(92, 107, 97, 0.12));
  background: rgba(255, 252, 246, 0.86);
  color: #203128;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

html[data-budfinder-mode="dark"] body {
  --panel: rgba(8, 15, 14, 0.88);
  --panel-strong: rgba(10, 19, 18, 0.96);
  --panel-alt: rgba(255, 255, 255, 0.08);
  --glass-panel: rgba(8, 15, 14, 0.82);
  --card-bg: rgba(11, 20, 19, 0.92);
  --card-border: rgba(236, 255, 244, 0.16);
  --card-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --line: rgba(236, 255, 244, 0.14);
  --ink: #f5fff8;
  --muted: #c7d9d0;
  --control-bg: rgb(21, 32, 30);
  --control-bg-strong: rgb(25, 38, 35);
  --control-bg-hover: rgb(32, 50, 46);
  --control-border: rgba(236, 255, 244, 0.2);
  --control-text: #f8fff9;
  --control-muted: #c7d9d0;
  --control-selected-bg: color-mix(in srgb, var(--accent) 24%, rgb(20, 31, 29));
  --control-selected-border: color-mix(in srgb, var(--accent) 58%, rgba(236, 255, 244, 0.18));
}

html[data-budfinder-mode="dark"] .database-search-panel,
html[data-budfinder-mode="dark"] .panel,
html[data-budfinder-mode="dark"] .quick-answer,
html[data-budfinder-mode="dark"] .price-guide-hero,
html[data-budfinder-mode="dark"] .shop-menu-hero {
  background: var(--glass-panel);
  border-color: var(--card-border);
  color: var(--ink);
}

html[data-budfinder-mode="dark"] .kicker,
html[data-budfinder-mode="dark"] .price-band,
html[data-budfinder-mode="dark"] .jump-top-btn,
html[data-budfinder-mode="dark"] .research-disclosure,
html[data-budfinder-mode="dark"] .saved-disclosure,
html[data-budfinder-mode="dark"] .launch-notes,
html[data-budfinder-mode="dark"] .workflow-step,
html[data-budfinder-mode="dark"] .trust-note {
  background: var(--control-bg-strong);
  border-color: var(--control-border);
  color: var(--control-text);
}

html[data-budfinder-mode="dark"] .kicker::before {
  filter: brightness(0) invert(1);
}

html[data-budfinder-mode="dark"] .price-band-value,
html[data-budfinder-mode="dark"] .text-button,
html[data-budfinder-mode="dark"] .workflow-step span {
  color: var(--control-text);
}

html[data-budfinder-mode="dark"] .metric,
html[data-budfinder-mode="dark"] .strain-card,
html[data-budfinder-mode="dark"] .comparison-card,
html[data-budfinder-mode="dark"] .common-shop-card,
html[data-budfinder-mode="dark"] .shop-card,
html[data-budfinder-mode="dark"] .listing-card,
html[data-budfinder-mode="dark"] .menu-listing-card,
html[data-budfinder-mode="dark"] .price-stat,
html[data-budfinder-mode="dark"] .shop-menu-summary-item,
html[data-budfinder-mode="dark"] .fresh-shop-row,
html[data-budfinder-mode="dark"] .empty {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--ink);
}

html[data-budfinder-mode="dark"] input,
html[data-budfinder-mode="dark"] select,
html[data-budfinder-mode="dark"] .database-quick-chips button,
html[data-budfinder-mode="dark"] .result-toolbar-actions button,
html[data-budfinder-mode="dark"] .quick-answer-actions button,
html[data-budfinder-mode="dark"] .quick-answer-actions a.secondary,
html[data-budfinder-mode="dark"] .listing-card-actions button,
html[data-budfinder-mode="dark"] .common-shop-card-actions button,
html[data-budfinder-mode="dark"] .shop-card-actions button,
html[data-budfinder-mode="dark"] .fresh-shop-actions button,
html[data-budfinder-mode="dark"] .segmented button:not(.is-active),
html[data-budfinder-mode="dark"] .browse-mode-grid button:not(.is-active),
html[data-budfinder-mode="dark"] .family-filter-grid button:not(.is-active),
html[data-budfinder-mode="dark"] #clear-selected,
html[data-budfinder-mode="dark"] #clear-selected-shops,
html[data-budfinder-mode="dark"] .selected-pill button,
html[data-budfinder-mode="dark"] .strain-more-row button {
  background: var(--control-bg-strong);
  border-color: var(--control-border);
  color: var(--control-text);
}

html[data-budfinder-mode="dark"] input::placeholder {
  color: color-mix(in srgb, var(--control-muted) 78%, transparent);
}

html[data-budfinder-mode="dark"] .chip,
html[data-budfinder-mode="dark"] .age-badge,
html[data-budfinder-mode="dark"] .price-judgement,
html[data-budfinder-mode="dark"] .mini-badge,
html[data-budfinder-mode="dark"] .destination-card-chip {
  background: rgba(245, 255, 248, 0.1);
  border-color: rgba(236, 255, 244, 0.16);
  color: var(--control-text);
}

html[data-budfinder-mode="dark"] .database-search-panel:focus-within,
html[data-budfinder-mode="dark"] .strain-card:hover,
html[data-budfinder-mode="dark"] .strain-card:focus-visible,
html[data-budfinder-mode="dark"] .common-shop-card:hover,
html[data-budfinder-mode="dark"] .common-shop-card:focus-visible,
html[data-budfinder-mode="dark"] .shop-card:hover,
html[data-budfinder-mode="dark"] .listing-card:hover,
html[data-budfinder-mode="dark"] .menu-listing-card:hover,
html[data-budfinder-mode="dark"] .fresh-shop-row:hover {
  border-color: var(--control-selected-border);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

@media (max-width: 680px) {
  .app-mode-toggle {
    position: sticky;
    top: 0;
    z-index: 30;
    width: calc(100vw - 20px);
    margin: max(8px, env(safe-area-inset-top)) auto 0;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .app-mode-toggle a {
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .page-shell {
    width: min(100vw - 14px, 1440px);
    padding-top: 8px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    margin: 0;
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.08;
  }

  .kicker {
    display: none;
  }

  .topbar .intro-copy {
    display: none;
  }

  .database-search-panel {
    position: sticky;
    top: 60px;
    z-index: 20;
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .database-search-title strong {
    font-size: 15px;
  }

  .database-search-title {
    display: none;
  }

  .database-search-title span {
    display: none;
  }

  .database-search-field {
    gap: 6px;
  }

  .database-search-field label,
  .field-note {
    display: none;
  }

  .database-search-field input {
    min-height: 46px;
    border-radius: 12px;
    padding-inline: 12px;
    font-size: 16px;
  }

  .database-quick-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .database-quick-chips::-webkit-scrollbar {
    display: none;
  }

  .database-quick-chips button {
    min-height: 36px;
    flex: 0 0 auto;
  }

  .filter-grid,
  .card-actions,
  .browse-mode-grid,
  .family-filter-grid,
  .price-stat-grid,
  .shop-menu-summary-grid,
  .shop-browser-controls,
  .listing-grid,
  .menu-listing-grid {
    grid-template-columns: 1fr;
  }

  .layout,
  .main-stack {
    gap: 10px;
  }

  .panel {
    padding: 10px;
    border-radius: 14px;
  }

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

  .section-head {
    margin-bottom: 8px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .section-head p {
    font-size: 12px;
    line-height: 1.35;
  }

  .price-guide-panel,
  .shop-menu-browser {
    gap: 8px;
    margin-bottom: 8px;
  }

  .price-guide-hero,
  .shop-menu-hero {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .price-guide-hero .price-stat-grid {
    display: none;
  }

  .shop-menu-hero .shop-menu-summary-grid {
    display: none;
  }

  #shops-view:not([hidden]) {
    display: grid;
    gap: 8px;
  }

  #shops-view .section-head {
    order: 0;
  }

  #shop-menu-browser {
    order: 1;
  }

  #shop-list {
    order: 2;
  }

  .shop-browser-controls {
    order: 3;
  }

  .price-guide-head,
  .shop-menu-hero-head,
  .listing-section-head {
    gap: 6px;
  }

  .price-guide-head h3,
  .shop-menu-hero-head h3,
  .listing-section-head h3 {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.1;
  }

  .price-guide-head p,
  .shop-menu-hero-head p,
  .listing-section-head p,
  .price-guide-actions {
    display: none;
  }

  .browse-summary {
    gap: 6px;
    margin-bottom: 8px;
  }

  input,
  select,
  button,
  .nav-link,
  .segmented button,
  .browse-mode-grid button,
  .family-filter-grid button,
  .card-actions button,
  .card-actions a,
  .side-action-row button,
  #show-wanted-map,
  #clear-selected,
  .quick-answer-actions button,
  .quick-answer-actions a,
  .common-shop-card-actions button,
  .common-shop-card-actions a,
  .shop-card-actions button,
  .shop-card-actions a,
  button.quick-answer-row,
  button.cheapest-shop-row,
  .availability-tags .strain-menu-chip {
    min-height: 44px;
  }

  .browse-mode-grid,
  .family-filter-grid,
  .segmented,
  .side-action-row,
  .card-actions,
  .shop-card-actions,
  .common-shop-card-actions,
  .quick-answer-actions,
  .price-guide-actions,
  .listing-card-actions {
    gap: 10px;
  }

  .family-filter-grid {
    max-height: none;
  }

  .selected-pill {
    grid-template-columns: minmax(0, 1fr) 44px;
    padding: 10px 10px 10px 13px;
  }

  .selected-pill button {
    width: 44px;
    min-height: 44px;
  }

  .result-toolbar,
  .quick-answer-head,
  .price-guide-head,
  .shop-menu-hero-head,
  .listing-section-head,
  .listing-card-head,
  .menu-category-head {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-browser-check {
    justify-content: flex-start;
  }

  .result-context {
    white-space: normal;
  }

  .result-toolbar-actions,
  .quick-answer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-answer-actions {
    grid-template-columns: 1fr 1fr;
  }

  .quick-answer-row,
  .cheapest-shop-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 13px;
  }

  .quick-answer-row-price,
  .cheapest-shop-row-price {
    justify-self: start;
  }

  .chip {
    min-height: 32px;
    padding: 5px 10px;
  }

  .strain-grid {
    gap: 8px;
  }

  .strain-card,
  .fresh-shop-row,
  .listing-card,
  .menu-listing-card {
    padding: 10px;
  }

  .availability-tags {
    gap: 8px;
  }

  .availability-tags .strain-menu-chip.has-detail {
    min-height: 46px;
  }

  .shop-card-head {
    grid-template-columns: 1fr;
  }

  .shop-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
}
.database-detail {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.database-detail[hidden] {
  display: none;
}

.detail-topbar,
.detail-actions,
.detail-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-topbar {
  justify-content: space-between;
}

.detail-back-button,
.detail-actions button,
.detail-actions a,
.menu-listing-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--control-bg-strong, rgba(255, 255, 255, 0.12));
  color: var(--control-text, var(--ink));
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.detail-back-button:hover,
.detail-actions button:hover,
.detail-actions a:hover,
.menu-listing-title:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.detail-eyebrow {
  margin: 0 0 5px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-header {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel-alt);
}

.detail-header h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.detail-header-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.detail-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.detail-strain-art {
  flex: 0 0 auto;
  width: clamp(92px, 15vw, 170px);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-md);
}

.detail-strain-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-header p {
  max-width: 75ch;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.detail-section {
  display: grid;
  gap: 12px;
}

.detail-section h3 {
  margin: 0;
  font-size: 22px;
}

.detail-load-more-row {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.detail-load-more-row button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--control-bg-strong, rgba(255, 255, 255, 0.12));
  color: var(--control-text, var(--ink));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.menu-listing-title {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: inherit;
  text-align: left;
}

.menu-listing-title:hover {
  color: var(--accent);
  transform: none;
}

@media (max-width: 680px) {
  .database-detail {
    margin-top: 10px;
  }

  .detail-topbar {
    align-items: stretch;
  }

  .detail-back-button {
    width: 100%;
  }

  .detail-actions > * {
    flex: 1 1 140px;
  }

  .detail-header-main {
    gap: 14px;
  }

  .detail-strain-art {
    width: 92px;
    border-radius: 14px;
  }
}
