/* Τιμοσκόπιο — design system (mobile first) */

:root {
  --bg: #f4f6f4;
  --bg-soft: #ecefeb;
  --card: #ffffff;
  --text: #101614;
  --muted: #66736d;
  --line: #e3e8e4;
  --accent: #0f7a4f;
  --accent-soft: #e6f4ec;
  --accent-ink: #0a5a3a;
  --danger: #b3392f;
  --warn: #b26a00;
  --shadow-sm: 0 1px 2px rgba(16, 22, 20, .05), 0 1px 3px rgba(16, 22, 20, .04);
  --shadow-md: 0 6px 24px -8px rgba(16, 22, 20, .18), 0 2px 6px rgba(16, 22, 20, .04);
  --shadow-lg: 0 24px 60px -20px rgba(16, 22, 20, .32);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --nav-h: 0px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f0d;
    --bg-soft: #111815;
    --card: #131b18;
    --text: #e9f1ed;
    --muted: #93a29b;
    --line: #1f2a25;
    --accent: #3ddc97;
    --accent-soft: #14261f;
    --accent-ink: #7ff0c0;
    --danger: #ff7a6e;
    --warn: #f0b45e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 8px 28px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior-y: contain;
}

h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }

/* ---------------- topbar ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 12px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .2px; text-transform: uppercase; margin-top: 2px; }

.icon-btn {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.busy svg { animation: spin .8s linear infinite; }
.icon-btn:disabled { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

.search {
  position: relative; display: flex; align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.search-icon { width: 20px; height: 20px; margin-left: 13px; color: var(--muted); flex: 0 0 auto; }
.search input {
  flex: 1 1 auto; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 13px 8px 13px 10px;
  font-size: 15.5px; font-weight: 600; color: var(--text);
}
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search input::-webkit-search-cancel-button { display: none; }
.clear { width: 34px; height: 34px; margin-right: 4px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 50%; }
.clear svg { width: 16px; height: 16px; }

/* ---------------- layout ---------------- */

main { max-width: 620px; margin: 0 auto; padding: 16px 14px 40px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 12px; }
.section-head h2 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.muted { color: var(--muted); font-size: 12.5px; font-weight: 600; }

.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); position: relative; transition: background .18s ease, border-color .18s ease; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-sm); transition: transform .18s cubic-bezier(.4, 0, .2, 1); }
.switch input:checked { background: var(--accent); border-color: transparent; }
.switch input:checked::after { transform: translateX(14px); }

/* ---------------- favorites grid ---------------- */

.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 4px 12px;
  animation: rise .28s cubic-bezier(.2, .7, .3, 1) both;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:active { transform: scale(.995); }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-md); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.thumb {
  width: 76px; height: 76px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; display: block; }
.thumb.ph { background: var(--bg-soft); color: var(--muted); font-size: 22px; font-weight: 800; }

.card-main { min-width: 0; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.3; margin: 0 26px 3px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.best { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.best-price { font-size: 21px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.best-at { font-size: 11.5px; font-weight: 700; color: var(--muted); }

.offers { grid-column: 1 / -1; margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.offer { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 9px; font-size: 12.5px; }
.offer.best-row { background: var(--accent-soft); }
.offer .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex: 0 0 auto; }
.offer.best-row .dot { background: var(--accent); }
.offer .oname { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer.best-row .oname { color: var(--accent-ink); font-weight: 700; }
.offer .oprice { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.offer .delta { font-size: 11px; font-weight: 800; padding: 1px 5px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); }
.offer .delta.up { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.offer .more { justify-content: center; }

.card-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.save-badge { font-size: 11px; font-weight: 800; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; letter-spacing: -.1px; }
.stamp { font-size: 11px; color: var(--muted); font-weight: 600; }

.del {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
  opacity: .55; transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.del svg { width: 14px; height: 14px; }
.del:hover { opacity: 1; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }

/* ---------------- results ---------------- */

.results { display: flex; flex-direction: column; gap: 8px; }
.result {
  display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 9px; box-shadow: var(--shadow-sm);
  animation: rise .22s ease both;
}
.result .thumb { width: 54px; height: 54px; border-radius: 11px; }
.result .thumb img { padding: 4px; }
.r-name { font-size: 13.5px; font-weight: 700; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-meta { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.r-meta b { color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.pill { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.pill.on { background: var(--accent-soft); color: var(--accent-ink); }

.add {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
[data-theme="dark"] .add { color: #04231a; }
.add svg { width: 18px; height: 18px; }
.add:active { transform: scale(.92); }
.add.done { background: var(--accent-soft); color: var(--accent-ink); }
.add[disabled] { opacity: .7; }
.spin-sm { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------------- empty / skeleton ---------------- */

.empty { text-align: center; padding: 42px 18px 20px; color: var(--muted); }
.empty-art { width: 118px; margin: 0 auto 14px; color: var(--accent); }
.empty-art svg { width: 100%; height: auto; }
.empty h3 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -.2px; }
.empty p { font-size: 13px; max-width: 330px; margin: 0 auto; line-height: 1.5; }

.sk { background: linear-gradient(90deg, var(--bg-soft) 25%, color-mix(in srgb, var(--bg-soft) 60%, var(--card)) 37%, var(--bg-soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-card { height: 118px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.sk-row { height: 62px; }

/* ---------------- sheet ---------------- */

.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 12, 10, .5); backdrop-filter: blur(2px); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel {
  position: relative; width: 100%; max-width: 620px; margin: 0 auto;
  background: var(--card); border-radius: 24px 24px 0 0;
  max-height: 88vh; overflow: auto;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
  animation: up .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.sheet-grip { width: 42px; height: 4px; border-radius: 99px; background: var(--line); margin: 6px auto 12px; }

.sheet-head { display: flex; gap: 12px; margin-bottom: 14px; }
.sheet-head .thumb { width: 84px; height: 84px; }
.sheet-title { font-size: 15.5px; font-weight: 800; line-height: 1.3; letter-spacing: -.2px; }
.sheet-sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.sheet-rows { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.sheet-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; }
.sheet-row.best { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.sheet-row .oname { flex: 1 1 auto; font-weight: 700; font-size: 13.5px; }
.sheet-row .unit { font-size: 11px; color: var(--muted); font-weight: 600; }
.sheet-row .oprice { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.badge-best { font-size: 10px; font-weight: 800; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 999px; }
[data-theme="dark"] .badge-best { color: #04231a; }
.sheet-actions { display: flex; gap: 8px; margin-top: 6px; }
.btn { flex: 1 1 auto; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
[data-theme="dark"] .btn.primary { color: #04231a; }
.btn.ghost { color: var(--danger); }
.btn:active { transform: scale(.985); }

/* ---------------- toast ---------------- */

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px); z-index: 80;
  background: #101614; color: #f2f7f4;
  padding: 11px 16px; border-radius: 13px;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.foot { text-align: center; font-size: 11px; color: var(--muted); padding: 0 20px 26px; font-weight: 600; }
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* chain wordmark logos */
.rlogo { height: 14px; width: auto; max-width: 70px; object-fit: contain; display: inline-block; vertical-align: -2px; opacity: .92; }
.rlogo.sm { height: 12px; max-width: 58px; }
.sheet-row .oname { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sheet-row .oname span { font-size: 13px; }

/* logos σε σκούρο φόντο */
.rlogo { background: #fff; border-radius: 4px; padding: 1px 3px; }
@media (prefers-color-scheme: light) { .rlogo { background: transparent; padding: 0; } }

/* ============ v2: προβολές, φίλτρο αλυσίδων, auto-sync ============ */

.section-head .sh-left { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.section-head .sh-left h2 { line-height: 1.2; }

/* view switcher */
.viewbar { display: flex; gap: 2px; padding: 3px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; flex: 0 0 auto; }
.viewbar button { width: 34px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease; }
.viewbar button.active { background: var(--card); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.viewbar svg { width: 17px; height: 17px; }

/* filter button */
.icon-btn { position: relative; }
.icon-btn.on { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); color: var(--accent-ink); background: var(--accent-soft); }
.icon-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
@media (prefers-color-scheme: dark) { .icon-badge { color: #04231a; } }

/* cards (default) */
.grid.view-cards { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid.view-cards { grid-template-columns: 1fr 1fr; } }

/* grid: δύο μικρά σε κάθε γραμμή */
.grid.view-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .grid.view-grid { grid-template-columns: repeat(3, 1fr); } }

.mcard {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 9px 10px; box-shadow: var(--shadow-sm);
  animation: rise .26s cubic-bezier(.2, .7, .3, 1) both;
}
.mcard:active { transform: scale(.99); }
.mcard .del { top: 4px; right: 4px; width: 22px; height: 22px; }
.mcount { position: absolute; top: 7px; left: 7px; z-index: 1; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.mcard .thumb.wide { width: 100%; height: 84px; border-radius: 11px; background: #fff; }
.mcard .thumb.wide img { padding: 5px; }
.mtitle { font-size: 12.5px; font-weight: 700; line-height: 1.28; min-height: 2.55em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.mprice { font-size: 16.5px; font-weight: 800; letter-spacing: -.4px; color: var(--accent-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.mchain { font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* list: μικρές γραμμές με λίγες λεπτομέρειες */
.grid.view-list { display: flex; flex-direction: column; gap: 8px; }
.lrow {
  position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 20px;
  align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 8px 10px; box-shadow: var(--shadow-sm);
}
.lrow:active { transform: scale(.995); }
.lrow .thumb.sm { width: 46px; height: 46px; border-radius: 9px; }
.lrow .thumb.sm img { padding: 3px; }
.ltitle { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lsub { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.lprice { font-size: 15px; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lrow .del { position: static; width: 20px; height: 20px; opacity: .38; }

.dim { opacity: .6; }

/* λίστα αλυσίδων στο φίλτρο */
.rlist { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; max-height: 54vh; overflow: auto; }
.rrow {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer; text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.rrow.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.rcheck { width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.rrow.on .rcheck { background: var(--accent); border-color: transparent; }
@media (prefers-color-scheme: dark) { .rrow.on .rcheck { color: #04231a; } }
.rcheck svg { width: 13px; height: 13px; }
.rname { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .rlogo { height: 15px; max-width: 76px; opacity: .85; flex: 0 0 auto; }
.rlo-hide { display: none; }

.linkbtn { background: none; border: 0; padding: 4px 2px 8px; color: var(--accent-ink); font-family: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* εξαγωγή / επαναφορά */
.dataio { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 2px 2px; border-top: 1px dashed var(--line); margin-bottom: 10px; }
.dataio-label { font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.dataio-sep { color: var(--muted); font-size: 12px; }
.dataio .linkbtn { padding: 2px 0; }

/* ---------------- αποτελέσματα: προβολή σε κάρτες / μικρά ---------------- */

.results.view-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.results.view-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.rcard {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 8px; box-shadow: var(--shadow-sm);
  cursor: pointer; display: flex; flex-direction: column; gap: 5px;
  animation: rise .22s ease both;
}
.rcard:active { transform: scale(.99); }
.rcard .rcard-thumb { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 10px;
  background: var(--bg-soft); overflow: hidden; }
.rcard .rcard-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rcard .rtitle { font-size: 12px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.rcard .rprice { font-size: 14.5px; font-weight: 800; color: var(--accent-ink);
  display: flex; align-items: center; gap: 5px; }
.rcard .rpill { font-size: 9.5px; font-weight: 800; color: var(--accent-ink);
  background: var(--accent-soft); border-radius: 5px; padding: 1px 5px; }
.rcard .rchain { font-size: 10px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .add { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; }
.rcard .add svg { width: 15px; height: 15px; }
.rcard .add.sm { width: 28px; height: 28px; }

.results.view-grid .rcard { padding: 6px; gap: 4px; }
.results.view-grid .rtitle { font-size: 10.5px; }
.results.view-grid .rprice { font-size: 11.5px; }
.results.view-grid .rchain { display: none; }
.results.view-grid .add.sm { width: 22px; height: 22px; border-radius: 7px; }
.results.view-grid .add.sm svg { width: 12px; height: 12px; }

@media (min-width: 700px) { .results.view-cards { grid-template-columns: repeat(3, 1fr); } }
