/* Layout concept: a parts spec-sheet on a print-bed grid. Hero = search console, cards = spec sheets. */

/* ===== Fonts (self-hosted – no requests to Google, see privacy policy) ===== */
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url("fonts/rubik-hebrew-500-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("fonts/rubik-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url("fonts/rubik-hebrew-800-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; font-weight: 500; font-display: swap; src: url("fonts/rubik-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("fonts/rubik-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url("fonts/rubik-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("fonts/heebo-hebrew-400-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url("fonts/heebo-hebrew-500-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url("fonts/heebo-hebrew-700-normal.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Heebo"; font-weight: 400; font-display: swap; src: url("fonts/heebo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Heebo"; font-weight: 500; font-display: swap; src: url("fonts/heebo-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Heebo"; font-weight: 700; font-display: swap; src: url("fonts/heebo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

/* ===== Design tokens ===== */
:root {
  --bg: #f2f4f6;            /* print-bed grey, slightly cool */
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #121a22;          /* ink */
  --muted: #55606c;         /* 6.3:1 on white */
  --border: #dde2e7;
  --grid: rgb(18 26 34 / 0.05);
  --accent: #c2410c;        /* filament orange, 5.2:1 on white */
  --accent-hover: #9a3412;
  --accent-text: #ffffff;
  --accent-soft: #fff1e6;
  --accent-soft-text: #7c2d12;
  --ok: #15803d;
  --ok-soft: #e7f7ec;
  --strip-bg: #121a22;
  --strip-text: #e9edf1;
  --focus: #2563eb;
  --warn-text: #b42318;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(18 26 34 / 0.06), 0 8px 24px -12px rgb(18 26 34 / 0.18);
  --maxw: 1160px;
  --font-display: "Rubik", "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --font-body: "Heebo", system-ui, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1217; --surface: #151c23; --surface-2: #1a222b; --text: #e8edf2; --muted: #9ba7b3;
    --border: #28323c; --grid: rgb(232 237 242 / 0.045);
    --accent: #fb923c; --accent-hover: #fdba74; --accent-text: #1a0e05;
    --accent-soft: #33200f; --accent-soft-text: #fdba74;
    --ok: #4ade80; --ok-soft: #12301d; --strip-bg: #1a222b; --strip-text: #d7dee5;
    --focus: #8ab4ff; --warn-text: #ffb4a8;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -14px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1217; --surface: #151c23; --surface-2: #1a222b; --text: #e8edf2; --muted: #9ba7b3;
  --border: #28323c; --grid: rgb(232 237 242 / 0.045);
  --accent: #fb923c; --accent-hover: #fdba74; --accent-text: #1a0e05;
  --accent-soft: #33200f; --accent-soft-text: #fdba74;
  --ok: #4ade80; --ok-soft: #12301d; --strip-bg: #1a222b; --strip-text: #d7dee5;
  --focus: #8ab4ff; --warn-text: #ffb4a8;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -14px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; letter-spacing: -0.01em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
code, .mono { font-family: var(--font-mono); }
.container { max-width: var(--maxw); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fine { color: var(--muted); font-size: 0.88rem; }
.strong { font-weight: 700; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-text); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 10px; color: var(--accent-text); }

/* ===== Affiliate disclosure strip (slim, always visible) ===== */
.disclosure-bar { background: var(--strip-bg); color: var(--strip-text); font-size: 0.85rem; }
.disclosure-bar p { margin: 0; padding-block: 7px; }
.disclosure-bar strong { font-weight: 700; }
.disclosure-bar a { color: inherit; text-decoration: underline; }

/* ===== Header ===== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--text); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand:hover { color: var(--text); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; color: var(--text); text-decoration: none; padding: 8px 12px;
  border-radius: 999px; font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-soft-text); }

/* ===== Hero / search console ===== */
.hero {
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--border);
}
.hero .container { padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 0; direction: ltr; text-align: right;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 800; margin: 0; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 0; font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.lede a { color: inherit; }

main { padding-block: 0 56px; }
.page-main { padding-top: 28px; }

/* Search console */
.console {
  margin-top: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; display: grid; gap: 12px;
}
.console fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.console legend { padding: 0; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto; gap: 10px; align-items: end; }
@media (max-width: 640px) { .search-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.9rem; }
.field input, .field select {
  font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 46px; width: 100%;
}
.field input:hover, .field select:hover { border-color: var(--muted); }
.field input[type="search"] { padding-inline-start: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2355606c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m16.5 16.5-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.chips-label { font-weight: 700; font-size: 0.9rem; margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: inherit; font-size: 0.88rem; font-weight: 500; min-height: 36px; padding: 6px 14px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  direction: ltr;
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn-reset {
  font: inherit; min-height: 46px; padding: 10px 16px; cursor: pointer; font-weight: 500;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.btn-reset:hover { border-color: var(--muted); background: var(--surface-2); }

/* Results */
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 26px 0 14px; }
.results-meta { margin: 0; font-weight: 700; font-family: var(--font-display); }
.list-note { margin: 0; color: var(--muted); font-size: 0.85rem; max-width: 70ch; }

.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card-media {
  aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; background: var(--surface-2);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 18px 18px; border-bottom: 1px solid var(--border);
}
.card-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card-media svg { width: 56px; height: 56px; color: var(--muted); opacity: 0.55; }
.card-media.no-img { aspect-ratio: 16 / 6; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.card h3 { margin: 0; font-size: 1.08rem; font-weight: 700; direction: ltr; text-align: right; }
.card p { margin: 0; }
.card .desc { color: var(--muted); font-size: 0.93rem; }
.seller-title {
  font-size: 0.82rem; color: var(--muted); direction: ltr; text-align: right; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.tag { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); direction: ltr; }

.spec { margin: 0; display: grid; gap: 4px; font-size: 0.86rem; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; border-bottom: 1px dashed var(--border); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; text-align: left; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-soft { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-text); }
.badge-ok { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.badge-ok::before { content: "✓ "; }

.price-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { font-family: var(--font-mono); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; direction: ltr; }
.price-time { font-size: 0.78rem; color: var(--muted); }
.no-price { margin-top: auto; padding-top: 6px; font-size: 0.86rem; color: var(--muted); }
.cta { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.btn-buy {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 46px; cursor: pointer;
  background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 700; font-family: var(--font-display);
  border: 0; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 1rem;
}
.btn-buy:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-check {
  font: inherit; font-weight: 700; font-size: 0.9rem; min-height: 46px; padding: 8px 12px; cursor: pointer; border-radius: var(--radius-sm);
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-check:hover { border-color: var(--accent); color: var(--accent); }
.aff-label { font-size: 0.75rem; color: var(--muted); text-align: center; }

.empty-state { text-align: center; padding: 48px 16px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

/* ===== Notices (calm, informative) ===== */
.notice {
  display: flex; gap: 10px; align-items: flex-start; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; font-size: 0.92rem;
}
.notice::before { content: "i"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-text); font: 700 0.8rem var(--font-mono); margin-top: 1px; }
.notice p { margin: 0; }

/* ===== Dialog ===== */
.check-dialog {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--text);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow);
}
.check-dialog::backdrop { background: rgb(13 18 23 / 0.6); }
.dialog-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface);
}
.dialog-head h2 { margin: 0; font-size: 1.15rem; direction: ltr; text-align: right; }
.dialog-close {
  font: inherit; font-size: 1.4rem; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.dialog-body { padding: 4px 16px 16px; }
.dialog-body h3 { font-size: 1rem; margin: 16px 0 6px; }
.dialog-body .price { font-size: 1.3rem; }

/* ===== Coupons ===== */
.coupon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.coupon-list.compact { grid-template-columns: 1fr; gap: 10px; }
.coupon {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; border-inline-start: 6px solid var(--accent);
}
.coupon h3, .coupon h4 { margin: 0 0 8px; font-size: 1.05rem; }
.coupon p { margin: 6px 0; }
.coupon-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coupon-code code {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em;
  background: var(--accent-soft); color: var(--accent-soft-text); padding: 5px 12px; border-radius: 6px; border: 1px dashed currentColor;
}
.btn-copy {
  font: inherit; font-size: 0.88rem; font-weight: 500; min-height: 36px; padding: 4px 12px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 6px;
}
.btn-copy:hover { border-color: var(--muted); }
.coupon-facts { margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.88rem; display: grid; gap: 2px; }
.coupon-link { font-weight: 700; display: inline-block; margin-top: 8px; }

/* ===== Legal pages ===== */
.legal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 4vw, 44px); max-width: 860px; margin-inline: auto; }
.legal h1 { margin-top: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.legal h2 { margin-top: 1.8em; font-size: 1.2rem; }
.legal p, .legal li { max-width: 72ch; }
.legal .updated { color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; }
.intro h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.intro p { margin: 0 0 6px; color: var(--muted); max-width: 70ch; }

/* ===== Footer ===== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 28px; font-size: 0.88rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 0 0 14px; }
.site-footer a { color: var(--text); }
.site-footer p { margin: 6px 0; color: var(--muted); max-width: 95ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
@media print {
  .disclosure-bar, .site-nav, .console, .skip-link { display: none; }
}

/* ===== Admin ===== */
.admin main { padding-top: 24px; }
.admin-status { min-height: 1.6em; font-weight: 700; }
.admin-status.is-error { color: var(--warn-text); }
.admin-status.is-ok { color: var(--accent); }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.admin-actions { display: flex; align-items: center; gap: 16px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--border); }
.admin-tabs [role="tab"] {
  font: inherit; font-weight: 700; min-height: 44px; padding: 8px 18px; cursor: pointer;
  background: transparent; color: var(--text); border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.admin-tabs [aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.admin-head > div { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 12px 0 20px; display: grid; gap: 12px;
}
.admin-form.narrow { max-width: 360px; }
.admin-form h3 { margin: 0; }
.admin-form textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--muted);
  border-radius: 8px; padding: 10px 12px; width: 100%;
}
.admin-form select[multiple] { min-height: 120px; }
.admin-form small { color: var(--muted); }
.admin-form fieldset { border: 0; padding: 0; margin: 0; }
.admin-form legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.check input { width: 20px; height: 20px; }
.form-actions { display: flex; gap: 8px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.admin-table th, .admin-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table thead th { background: var(--bg); }
.row-actions { white-space: nowrap; }
.row-actions .btn-reset { min-height: 36px; padding: 4px 10px; margin-inline-end: 4px; }
.btn-reset.danger, .danger-text { color: var(--warn-text); }

/* Admin: automation tabs */
.badge { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: var(--warn-text); color: var(--surface); font-size: 0.8rem; text-align: center; }
.bulk-actions, .filter-row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 12px 0; }
.filter-row .field { flex: 1 1 220px; }
.seller-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.seller-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow-wrap: anywhere; }
.checks-col { display: grid; gap: 2px; max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: var(--bg); }
.inline-input { font: inherit; width: 100%; min-width: 180px; padding: 6px 8px; border: 1px solid var(--muted); border-radius: 6px; background: var(--bg); color: var(--text); }
.sys-status { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.admin-table .wrap { overflow-wrap: anywhere; min-width: 200px; }
.admin-table .start { text-align: left; }
.admin details > summary { cursor: pointer; font-weight: 700; }
.check.strong { font-weight: 700; }
#diag-report { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8rem; }

/* ===== Guides index ===== */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guide { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; }
.guide h3 { margin: 0; font-size: 1.15rem; }
.guide p { margin: 0; }
.guide-links-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.guide-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.guide-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.guide-link:hover { border-color: var(--accent); color: var(--accent); }
.related-link { font-weight: 700; font-size: 0.92rem; justify-self: start; }
