/* Buyloom design — Liin4 tokens, layout, components. Edit here for any visual change. */
/* Layout: sticky header (title, refresh status, search, tabs) → view; prices set like shelf tags: grey "before", yellow sticker "predicted*", green/red "actual" */
:root {
  /* Liin4 brand: deep teal, sea teal, gold line, ivory ground */
  --bg: #f8f5ee;
  --surface: #ffffff;
  --sunk: #edf1ee;
  --ink: #0b3a44;
  --muted: #3c5f66;
  --line: #dce3e0;
  --accent: #0e7c86;
  --accent-ink: #ffffff;
  --sticker: #d4b062;
  --sticker-ink: #0b3a44;
  --teal: #0b3a44;
  --gold: #d4b062;
  --gold-ink: #9a7420;
  --aqua: #9fd9d2;
  --good: #16704a;
  --good-bg: #ddf0e5;
  --warn: #8a5a00;
  --warn-bg: #f6ebcf;
  --bad: #a3301e;
  --bad-bg: #f8e1dc;
  --f-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-body: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
::placeholder {
  color: var(--muted);
  opacity: 1;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--teal);
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
header.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--teal);
  color: #f8f5ee;
  border-bottom: 3px solid var(--gold);
}
header.top .status {
  color: #c9deda;
}
header.top .status b {
  color: #ffffff;
}
header.top .brand h1 {
  color: #f8f5ee;
}
header.top .brand h1 .tagline {
  color: var(--aqua);
}
header.top nav.tabs {
  background: rgba(255, 255, 255, 0.08);
}
header.top nav.tabs a {
  color: #c9deda;
}
header.top nav.tabs a[aria-current="page"] {
  background: #f8f5ee;
  color: var(--teal);
}
header.top .lang {
  background: rgba(255, 255, 255, 0.08);
}
header.top .lang button {
  color: #c9deda;
}
header.top .lang button[aria-pressed="true"] {
  background: #f8f5ee;
  color: var(--teal);
}
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 10px;
}
.brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  min-width: 0;
}
.brand h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.55rem;
  margin: 0;
  letter-spacing: 0;
}
.status {
  font-size: 0.8rem;
  color: var(--muted);
}
.status b {
  color: var(--ink);
}
.status .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  margin-right: 5px;
  vertical-align: 1px;
}
.status .dot.on {
  background: var(--good);
}
.globalbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 700px) {
  header.top {
    position: static;
  }
}
@media (max-width: 700px) {
  #gcats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  #gcats .chip {
    flex: none;
    white-space: nowrap;
  }
}
.gsearch {
  display: flex;
  gap: 8px;
}
.gsearch input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: var(--surface);
  color: var(--ink);
}
nav.tabs {
  display: flex;
  gap: 4px;
  background: var(--sunk);
  padding: 4px;
  border-radius: 999px;
  overflow-x: auto;
  max-width: 100%;
}
nav.tabs a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
nav.tabs a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
nav.tabs .count {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--aqua);
  color: var(--teal);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 5px;
  min-width: 20px;
  display: inline-block;
  text-align: center;
}
nav.tabs a[aria-current="page"] .count {
  background: var(--teal);
  color: #f8f5ee;
}
.count.bump {
  animation: bump 0.5s ease;
}
@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}
main {
  padding-block: 20px 60px;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}
.intro.one {
  grid-template-columns: minmax(0, 1fr);
}
.intro h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.08;
  margin: 0 0 8px;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
.intro p {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
}
.stat .n {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1.25rem;
}
.stat .l {
  font-size: 0.78rem;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip .k {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  opacity: 1;
  margin-left: 4px;
  color: var(--muted);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.search {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
}
.search input {
  width: 100%;
  font: inherit;
  padding: 9px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
label.tog {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}
select {
  font: inherit;
  padding: 8px 10px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.ch {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.mono {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--gold);
  background: var(--teal);
}
.ch .nm {
  min-width: 0;
  flex: 1;
}
.ch h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ch .dom {
  font-size: 0.78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.tag {
  font-family: var(--f-mono);
  font-weight: 600;
  background: var(--sticker);
  color: var(--sticker-ink);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.84rem;
  white-space: nowrap;
  align-self: flex-start;
  transform: rotate(-1.5deg);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.pill {
  font-size: 0.76rem;
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--sunk);
  color: var(--ink);
  white-space: nowrap;
}
.pill.good {
  background: var(--good-bg);
  color: var(--good);
}
.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.pill.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.ship {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  border-top: 1px dashed var(--line);
  padding-top: 9px;
}
.ship .ic {
  width: 18px;
  height: 18px;
  flex: none;
}
.ship.good {
  color: var(--good);
}
.ship.warn {
  color: var(--warn);
}
.ship.none {
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn.primary {
  background: var(--teal);
  color: #f8f5ee;
  border-color: var(--teal);
}
.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  filter: none;
}
.btn.code {
  font-family: var(--f-mono);
  border-style: dashed;
}
.btn.on {
  background: var(--good-bg);
  color: var(--good);
  border-color: transparent;
}
.btn.small {
  padding: 5px 10px;
  font-size: 0.8rem;
}
.btn:hover {
  filter: brightness(0.97);
}
.more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
section.block {
  margin-bottom: 28px;
}
section.block > h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 4px;
}
section.block > p.sub {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 78ch;
}
.tbl {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  background: var(--sunk);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mutedtxt {
  color: var(--muted);
}
.mk {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.mkc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mkc h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.rl {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--muted);
}
.mkrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  gap: 4px 8px;
  align-items: center;
  font-size: 0.84rem;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.mkrow.hd {
  border-top: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.mkrow a {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.star {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}
.star:hover {
  background: var(--sunk);
}
.star.on {
  color: var(--warn);
}
.insight {
  background: var(--warn-bg);
  color: var(--ink);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.insight b {
  color: var(--warn);
}
.note {
  font-size: 0.8rem;
  color: var(--muted);
}
.basket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.bshop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bshop + .bshop {
  margin-top: 12px;
}
.bh {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.bh h3 {
  margin: 0;
  font-size: 1rem;
}
.items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  font-size: 0.87rem;
}
.item .x,
.x {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.05rem;
  padding: 2px 6px;
}
.addrow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.addrow input {
  font: inherit;
  font-size: 0.87rem;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.addrow input.t {
  flex: 1 1 200px;
}
.addrow input.p {
  width: 100px;
}
.prog {
  height: 8px;
  border-radius: 4px;
  background: var(--sunk);
  overflow: hidden;
}
.prog > i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.prog.done > i {
  background: var(--good);
}
.bmsg {
  font-size: 0.86rem;
}
.bmsg.good {
  color: var(--good);
}
.bmsg.warn {
  color: var(--warn);
}
.summary {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 130px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.15rem;
}
.sl {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
}
.sl.tot {
  font-weight: 600;
  font-size: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.prodgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.prod {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.prod .pt {
  font-size: 0.88rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.prod .ps {
  font-size: 0.78rem;
  color: var(--muted);
}
.prod .actions {
  margin-top: auto;
}
.watch {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.witem {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 2fr) auto;
  gap: 10px 16px;
  align-items: center;
}
.witem .wt {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.witem .ws {
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.addbox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.foot {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 84ch;
  margin-top: 30px;
  border-top: 3px solid var(--gold) !important;
  padding-top: 14px;
}
.foot p {
  margin: 0 0 6px;
}
.bfbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  background: var(--teal);
  color: #f8f5ee;
  border-radius: var(--r);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.bfbar b {
  font-family: var(--f-display);
  font-size: 1rem;
}
.bfbar .btn {
  margin-left: auto;
  background: #f8f5ee;
  color: var(--teal);
  border-color: #f8f5ee;
}
.bf {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 22px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
.bf h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.bf p {
  margin: 0;
  color: var(--muted);
}
.bf form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bf .row2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bf input[type="email"] {
  flex: 1 1 220px;
  font: inherit;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
.bf .checks {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.bf .checks label,
.bf .consent {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
}
.bf .checks label {
  color: var(--ink);
  font-size: 0.9rem;
}
.bf .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.bfmsg {
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 10px 12px;
}
.bfmsg.ok {
  background: var(--good-bg);
}
.bfmsg.err {
  background: var(--bad-bg);
}
.bfmsg .share {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bfmsg .share input {
  flex: 1 1 200px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
@media (max-width: 820px) {
  .bf {
    grid-template-columns: 1fr;
  }
}
.brand h1 .tagline {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}
@media (max-width: 520px) {
  .brand h1 .tagline {
    display: block;
    margin: 2px 0 0;
  }
}
.bf.soon {
  border-color: var(--line);
  border-style: dashed;
  margin-top: 16px;
}
.soonpill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--sticker);
  color: var(--sticker-ink);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.passprice {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
}
.feat {
  margin: 0 0 14px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--ink);
}
.lang {
  display: flex;
  background: var(--sunk);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.madeby {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.l4 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--teal);
}
.l4 sup {
  color: var(--gold-ink);
  font-size: 0.7em;
}
/* sign-up pop-up */
dialog#joinDlg {
  border: 0;
  border-radius: 18px;
  padding: 26px 24px 22px;
  max-width: min(520px, calc(100vw - 32px));
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(11, 58, 68, 0.45);
}
dialog#joinDlg::backdrop {
  background: rgba(11, 58, 68, 0.55);
}
dialog#joinDlg h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 6px;
}
dialog#joinDlg form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
dialog#joinDlg .row2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
dialog#joinDlg input[type="email"] {
  flex: 1 1 220px;
  font: inherit;
  padding: 12px 14px;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
}
dialog#joinDlg .checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
dialog#joinDlg .checks label,
dialog#joinDlg .consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9rem;
}
dialog#joinDlg .consent {
  color: var(--muted);
  font-size: 0.84rem;
}
dialog#joinDlg .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.dlgx {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
}
.dlgx:hover {
  background: var(--sunk);
}
.bfcta {
  display: flex;
  align-items: center;
}
.btn.big {
  padding: 13px 24px;
  font-size: 1rem;
}
@media (max-width: 700px) {
  .btn {
    min-height: 44px;
    padding: 10px 14px;
  }
  .chip {
    min-height: 38px;
  }
  .lang button {
    min-height: 36px;
  }
  nav.tabs a {
    padding: 10px 14px;
  }
}
.pimg {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.lockic {
  vertical-align: -2px;
  margin-left: 2px;
}
.santa {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--r);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.santa h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0;
  line-height: 1.05;
}
.santa-lead {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}
.lockbadge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--teal);
  color: #f8f5ee;
  border-radius: 999px;
  padding: 5px 12px;
}
.santa-preview {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  filter: blur(1.5px);
  opacity: 0.75;
  user-select: none;
}
.santa-ex {
  position: absolute;
  top: -10px;
  right: 12px;
  filter: none;
  background: var(--sunk);
  font-size: 0.72rem;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--muted);
}
.srow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  font-size: 0.92rem;
}
.santa-price {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.santa .btn.big {
  align-self: flex-start;
}
.cartitem {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  row-gap: 4px;
}
.cartitem a {
  color: var(--ink);
}
.cartitem .itemlink {
  grid-column: 1/-1;
  justify-self: start;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qb {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.lead-short {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
details.how {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 70ch;
}
details.how summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  padding: 6px 0;
  list-style-position: inside;
}
details.how p {
  margin: 6px 0 0;
}
#offersIntro {
  margin-bottom: 14px;
}
#offersIntro h2 {
  margin-bottom: 2px;
}
#offersIntro details.how {
  margin: 0 0 6px;
}
#gcats.catsbelow {
  margin: 4px 0 14px;
}
.sfilter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.shopfilter {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}
.sflabel {
  font-weight: 600;
  font-size: 0.86rem;
  padding-top: 8px;
  flex: none;
}
.shopchips {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  min-width: 0;
  scrollbar-width: thin;
}
.shopchips .chip {
  flex: none;
  white-space: nowrap;
}
.linkbtn {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.reqlink {
  margin-top: 16px;
}
.gcard {
  gap: 6px;
}
.gcard h3 {
  font-size: 1rem;
}
.grow {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 84px;
  gap: 4px 8px;
  align-items: center;
  font-size: 0.84rem;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.grow.hd {
  border-top: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 2px 0;
}
.gshop {
  min-width: 0;
  overflow-wrap: anywhere;
}
.gshop a {
  color: var(--ink);
  font-weight: 600;
}
.gdisc {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}
.gvar {
  font-size: 0.74rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mk:has(.gcard) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
}
.gact {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
}
.cartbtn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--teal);
  border-radius: 50%;
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.cartbtn:hover {
  background: var(--gold);
}
.gmore {
  margin-top: 6px;
  align-self: flex-start;
}
.wshops {
  grid-column: 1/-1;
}
.wshops .gcard {
  border: 0;
  padding: 6px 0 0;
  background: none;
}
@media (max-width: 560px) {
  .grow {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 80px;
  }
  .grow .gshop {
    grid-column: 1/-1;
  }
  .grow.hd {
    display: none;
  }
  .grow .gp::before {
    content: attr(data-lb);
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-family: var(--f-body);
  }
}
.srcnote {
  display: block;
  font-family: var(--f-body);
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
}
.plist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 14px;
}
.plrow {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(150px, 1.2fr) 84px 88px;
  gap: 6px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.plrow.hd {
  border-top: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 0 6px;
}
.plt {
  min-width: 0;
}
.plt a {
  color: var(--ink);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pls {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}
.plshops {
  font-size: 0.8rem;
  color: var(--muted);
}
.plexp {
  border-top: 1px dashed var(--line);
  padding: 4px 0 10px;
}
.plexp .gcard {
  border: 0;
  padding: 6px 0;
  background: none;
}
@media (max-width: 760px) {
  .plrow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 10px;
  }
  .plrow .plt {
    grid-column: 1/-1;
  }
  .plrow.hd {
    display: none;
  }
  .plrow .gp::before {
    content: attr(data-lb);
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-family: var(--f-body);
  }
  .plrow .plshops {
    grid-column: 1/2;
    align-self: center;
  }
  .plrow .gact {
    grid-column: 2/-1;
    justify-content: flex-end;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 20;
  max-width: calc(100% - 32px);
}
@media (max-width: 820px) {
  .intro {
    grid-template-columns: 1fr;
  }
  .basket {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .witem {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .grid,
  .mk,
  .prodgrid {
    grid-template-columns: 1fr;
  }
  .mkc {
    padding: 12px;
  }
  .mkrow {
    grid-template-columns: minmax(0, 1fr) 64px 70px 70px 24px;
    font-size: 0.8rem;
  }
  .stat .n {
    font-size: 1.05rem;
  }
}
/* calmer layout (Nov 2026): one badge, gold only for discounts, fewer lines before the shops */
.brand {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
}
.chip[aria-pressed="true"] .k {
  color: inherit;
  opacity: 0.85;
}
.chip.catmore {
  border-style: dashed;
  color: var(--accent);
  font-weight: 600;
}
details.how .stats {
  margin-top: 10px;
  max-width: 460px;
}
.filters .row {
  gap: 8px 14px;
}
.fopts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.ftoggle {
  display: none;
}
.ftoggle .fn {
  font-family: var(--f-mono);
  background: var(--teal);
  color: #f8f5ee;
  border-radius: 999px;
  padding: 0 7px;
  margin-left: 4px;
}
.gridnote {
  margin: 0 0 10px;
}
.btn.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}
.btn.quiet:hover {
  background: var(--sunk);
}
.sitefoot {
  padding-block: 0 40px;
}
.pv {
  font-family: var(--f-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pv.up {
  color: var(--bad);
}
.pv.down {
  color: var(--good);
}
.ptag {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
  vertical-align: 1px;
}
.ptag.down {
  background: var(--good-bg);
  color: var(--good);
}
.ptag.up {
  background: var(--bad-bg);
  color: var(--bad);
}
.ptag.best {
  background: var(--sunk);
  color: var(--ink);
}
.pone {
  font-size: 0.95rem;
}
@media (max-width: 560px) {
  .grow {
    grid-template-columns: minmax(0, 1fr) 80px;
  }
  .grow .gshop {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .plrow {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .plrow .plt {
    grid-column: 1/-1;
  }
  .plrow .plshops {
    grid-column: 1/2;
  }
  .plrow .gact {
    grid-column: 2/-1;
  }
}
@media (max-width: 420px) {
  .mkrow {
    grid-template-columns: minmax(0, 1fr) auto 24px;
  }
}
.poplist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 6px 18px;
}
.poprow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.poprow .pt {
  grid-column: 1/-1;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.poprow .pt:hover {
  text-decoration: underline;
}
.poprow .sn {
  color: var(--muted);
  font-size: 0.8rem;
}
.poprow .tp {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}
.poprow s {
  color: var(--muted);
}
.poprow .pct {
  color: var(--good);
  font-weight: 600;
}
@media (max-width: 700px) {
  .poplist {
    grid-template-columns: 1fr;
  }
}
.tops {
  font-size: 0.86rem;
}
.tops summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  padding: 4px 0;
}
.tops ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tops li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.tops li a {
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tops li a:hover {
  text-decoration: underline;
}
.tops .tp {
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 0.82rem;
}
.tops s {
  color: var(--muted);
}
.tops .pct {
  color: var(--good);
  font-weight: 600;
}
@media (max-width: 700px) {
  .tops summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
.accgrp {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 10px 14px;
}
.accgrp summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 0;
}
.accgrp .mk {
  margin-top: 10px;
}
.ends {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--ink);
}
.ends .ic {
  width: 16px;
  height: 16px;
  flex: none;
}
.ends.unk {
  color: var(--muted);
}
@media (max-width: 700px) {
  .ftoggle {
    display: inline-flex;
  }
  .fopts {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .filters.open .fopts {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
