/* Handyman admin. Light, calm surfaces; deep blue for action, amber for the deals themselves.
   Tokens first; components only ever use tokens. RTL throughout. */
@import url("/static/fonts/fonts.css");

:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #F1F4F9;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5E6B7E;
  --line: #E3E8F0;
  --line-2: #D5DCE7;
  --primary: #1E40AF;
  --primary-2: #2650D6;
  --primary-soft: #EAF0FE;
  --on-primary: #FFFFFF;
  --accent: #B45309;
  --accent-soft: #FFF4E2;
  --gold: #D97706;
  --success: #15803D;
  --success-soft: #E7F6EC;
  --danger: #B91C1C;
  --danger-soft: #FCEBEB;
  --warn-soft: #FFF7E6;
  --ring: #2650D6;

  --font: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --pill: 999px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --sh-2: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 140ms; --t: 220ms; --t-slow: 360ms;
  --side: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font);
  direction: rtl; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.num, td.num, .price { font-family: var(--mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.icon, .icon-lg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 22px; height: 22px; stroke-width: 1.75; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px;
  border-radius: var(--r-sm); z-index: 100; transition: top var(--t) var(--ease); }
.skip:focus { top: 12px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; background: var(--surface); border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 6px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }  /* 22 pages: taller than a screen (12.10) */
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, #4F7BF7 100%); box-shadow: var(--sh-1); }
.brand b { display: block; font-size: 15px; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; position: relative; transition: background var(--t-fast) var(--ease), color var(--t-fast); }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.on { background: var(--primary-soft); color: var(--primary); }
.nav a.on::before { content: ""; position: absolute; inset-inline-start: -14px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 3px; background: var(--primary); }
.nav .count { margin-inline-start: auto; font: 600 12px/1 var(--mono); background: var(--accent); color: #fff;
  padding: 4px 7px; border-radius: var(--pill); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center;
  color: var(--ink-2); font-weight: 600; }
.side-foot form { margin-inline-start: auto; }

.main { min-width: 0; padding: 26px clamp(16px, 3vw, 36px) 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.top p { margin: 4px 0 0; color: var(--muted); }
.btn.menu-btn { display: none; }

/* ---------- helpers ---------- */
.gap-top { margin-top: 16px; }
.gap-sm { margin-top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid-2 { grid-template-columns: 1.4fr 1fr; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font: 600 28px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.kpi.hot .value { color: var(--accent); }
.kpi-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi.hot .kpi-ico { background: var(--accent-soft); color: var(--accent); }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); }

/* ---------- controls ---------- */
/* Buttons: one solid primary per area; everything else soft-tinted by meaning. Every button carries its icon
   in a tinted round chip (.bi) — the chip takes the button's own ink at low opacity, so it always matches. */
.btn { --b: var(--surface); --c: var(--ink-2); --bh: var(--surface-2); --bd: var(--line-2);
  appearance: none; position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 42px;
  padding: 0 14px 0 16px; border-radius: 12px; border: 1px solid var(--bd); background: var(--b); color: var(--c);
  font: 600 14px/1 var(--font); letter-spacing: .005em; cursor: pointer; text-decoration: none; white-space: nowrap;
  touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t-fast), color var(--t-fast); }
.btn:hover { background: var(--bh); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: 80ms; }
.btn .bi { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  margin-inline-start: -6px; background: color-mix(in srgb, currentColor 13%, transparent);
  transition: transform var(--t) var(--ease), background var(--t-fast); }
.btn .bi .icon { width: 15px; height: 15px; stroke-width: 2.25; }
.btn:hover .bi { transform: scale(1.08); }
.btn[disabled], .btn.is-busy { opacity: .5; cursor: progress; transform: none; pointer-events: none; }
.btn.is-busy .bi .icon { animation: spin 900ms linear infinite; }

.btn-primary { --b: linear-gradient(135deg, #3461E8 0%, var(--primary) 100%); --c: #fff; --bd: transparent;
  --bh: linear-gradient(135deg, #3D6BF0 0%, #2347BF 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 22px -12px rgba(30, 64, 175, .75); }
.btn-primary .bi { background: rgba(255, 255, 255, .2); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 14px 26px -12px rgba(30, 64, 175, .85); }
.btn-go { --b: linear-gradient(135deg, #1D9A4E 0%, var(--success) 100%); --c: #fff; --bd: transparent;
  --bh: linear-gradient(135deg, #22A857 0%, #146C35 100%); box-shadow: 0 10px 22px -12px rgba(21, 128, 61, .75); }
.btn-go .bi { background: rgba(255, 255, 255, .2); }
.btn-soft { --b: var(--primary-soft); --bh: #DCE6FE; --c: var(--primary); --bd: transparent; }
.btn-soft-green { --b: var(--success-soft); --bh: #D6F0DF; --c: var(--success); --bd: transparent; }
.btn-soft-amber { --b: var(--accent-soft); --bh: #FFE9C7; --c: #9A4A06; --bd: transparent; }
.btn-soft-red { --b: var(--danger-soft); --bh: #F8DADA; --c: var(--danger); --bd: transparent; }
.btn-soft-slate { --b: #EEF2F7; --bh: #E3E9F1; --c: var(--ink-2); --bd: transparent; }
.btn-ghost { --b: transparent; --bh: var(--surface-2); --bd: transparent; --c: var(--ink-2); }
.btn-sm { min-height: 36px; padding: 0 12px 0 13px; font-size: 13px; gap: 7px; border-radius: 10px; }
.btn-sm .bi { width: 22px; height: 22px; margin-inline-start: -5px; }
.btn-sm .bi .icon { width: 13px; height: 13px; }
.btn-icon { padding: 0; width: 42px; justify-content: center; border-radius: 12px; }
.btn-icon .bi { margin: 0; }
.btn-block { width: 100%; justify-content: center; }
/* the old names keep working */
.btn-good { --b: linear-gradient(135deg, #1D9A4E 0%, var(--success) 100%); --c: #fff; --bd: transparent; --bh: linear-gradient(135deg, #22A857 0%, #146C35 100%); }
.btn-danger { --b: var(--danger-soft); --bh: #F8DADA; --c: var(--danger); --bd: transparent; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label { font-weight: 500; font-size: 14px; color: var(--ink-2); display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.help { font-size: 13px; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=password], input[type=search], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 4px rgba(38, 80, 214, .15); }
textarea { min-height: 260px; resize: vertical; line-height: 1.7; }
input.code { font: 600 26px/1 var(--mono); letter-spacing: .4em; text-align: center; direction: ltr; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 150px; }
.filters .grow { flex: 1 1 240px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); padding: 3px; border-radius: 11px; gap: 2px; }
.seg a { padding: 7px 14px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.seg { flex-wrap: wrap; }
.seg a:hover { text-decoration: none; }

.seg button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--font);
  padding: 0 14px; min-height: 36px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--primary); box-shadow: var(--sh-1); font-weight: 600; }
.seg form { display: contents; }

/* ---------- chips & status ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px;
  border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.record { background: #FFF1D6; color: #8A4B05; }
.chip.good { background: var(--success-soft); color: var(--success); }
.chip.expensive { background: var(--danger-soft); color: var(--danger); }
.chip.ok { background: var(--success-soft); color: var(--success); }
.chip.wait { background: var(--warn-soft); color: var(--accent); }
.dot-st { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px;
  background: var(--surface-2); border-radius: 10px; }

/* ---------- deal cards ---------- */
.deals { display: grid; gap: 12px; }
.deal { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-1);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t); }
.deal:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.deal.record { border-inline-start: 4px solid var(--gold); }
.deal.good { border-inline-start: 4px solid var(--success); }
.thumb { width: 88px; height: 88px; border-radius: 12px; background: var(--surface-2); object-fit: contain; border: 1px solid var(--line); }
.thumb-ph { width: 88px; height: 88px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.deal > div { min-width: 0; }
.deal-t { overflow-wrap: anywhere; font-weight: 600; font-size: 15.5px; line-height: 1.4; margin-bottom: 6px; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; align-items: center; }
.deal-meta .price { color: var(--ink); font-size: 17px; font-weight: 600; }
.deal-why { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.deal-act { display: flex; flex-direction: column; gap: 8px; width: 128px; }
.deal-act form { display: block; }
.deal-act .btn { width: 100%; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: start; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 12px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
/* every column reads from the right (Noy 11.10): numbers (.num is ltr) and Latin cells used to sit on the left */
th, td { text-align: right; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: #F8FAFE; }
td .mini { width: 44px; height: 44px; border-radius: 9px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); }
.t-title { font-weight: 500; max-width: 46ch; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* ---------- draft editor ---------- */
.editor { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.tg { background: #DCE7D3; background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 14px 14px;
  border-radius: var(--r-lg); padding: 18px; position: sticky; top: 20px; }
.tg-msg { background: #fff; border-radius: 14px 14px 14px 4px; padding: 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); overflow: hidden; }
.tg-msg img { border-radius: 10px; width: 100%; max-height: 260px; object-fit: contain; background: #f5f5f5; margin-bottom: 8px; }
.ai-wait { margin: .5rem 0 0; font-weight: 600; color: var(--accent); }
.steps { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .2rem; font-size: .92rem; }
.steps li { line-height: 1.5; }
.shop-now { border-top: 1px solid var(--line); padding-block: .7rem; display: grid; gap: .35rem; }
.shop-now:first-of-type { border-top: 0; }
.shop-now.gone { opacity: .7; }
.shop-now-h { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.target { margin: 0; }
.tg-live { font-size: 12.5px; font-weight: 600; color: var(--accent); margin: -2px 0 8px; }
.tg-live.bad { color: var(--danger); }
.tg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; padding: 0 4px; }
.tg-btn { margin-top: 6px; background: rgba(255, 255, 255, .65); backdrop-filter: blur(6px); text-align: center; padding: 9px; border-radius: 10px;
  font-weight: 600; color: #2b6cb0; font-size: 14px; }
.counter { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.counter.over { color: var(--danger); }
.problems { background: var(--warn-soft); border: 1px solid #F4D9A8; color: #7A3E06; border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; }
.problems li { margin: 2px 0; }

/* ---------- product page ---------- */
.p-head { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
.p-head img, .p-head .thumb-ph { width: 140px; height: 140px; border-radius: 16px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.fact { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.fact span { display: block; font-size: 12.5px; color: var(--muted); }
.fact b { font: 600 17px/1.3 var(--mono); }
.fact b.text { font-family: var(--font); font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.lg-post { background: var(--primary); } .lg-ksp { background: var(--success); } .lg-amz { background: var(--gold); } .lg-zap { background: var(--danger); border-radius: 0; height: 2px !important; }
.features li { margin-bottom: 6px; direction: ltr; text-align: left; color: var(--ink-2); }

/* ---------- charts ---------- */
.spark { width: 100%; height: auto; }
.spark .bar-all { fill: #E3E9F5; } .spark .bar-strong { fill: var(--primary); }
.chart { width: 100%; height: auto; }
.chart .grid { stroke: #EDF1F7; stroke-width: 1; }
.chart .axis, .spark .axis { fill: var(--muted); font: 11px var(--mono); }
.chart .zap { stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart .zap-label { fill: var(--danger); font-family: var(--font); }
.chart .line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s-ksp { stroke: var(--success); } .chart .line.s-amz { stroke: var(--gold); }
.chart .dot { stroke: #fff; stroke-width: 1.5; }
.chart .dot.s-post { fill: var(--primary); } .chart .dot.s-ksp { fill: var(--success); } .chart .dot.s-amz { fill: var(--gold); }
.chart .dot.is-best { stroke: var(--gold); stroke-width: 3; }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 85% -10%, #DCE6FF 0%, transparent 60%), radial-gradient(900px 500px at 0% 110%, #FFEFD6 0%, transparent 55%), var(--bg); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-2); padding: 30px 28px; }
.auth-card .brand { justify-content: center; padding-bottom: 8px; }
.auth-card h1 { text-align: center; font-size: 21px; margin: 6px 0 4px; }
.auth-card .lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
.auth-card .btn:not(.btn-icon) { width: 100%; justify-content: center; min-height: 46px; }
.err { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.qr { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; }
.qr svg { width: min(240px, 100%); height: auto; shape-rendering: crispEdges; }  /* scaled whole, by its viewBox */
.secret { font: 600 14px/1.6 var(--mono); background: var(--surface-2); padding: 8px 10px; border-radius: 8px; word-break: break-all; text-align: center; direction: ltr; }
.pw-wrap { position: relative; }
.pw-wrap .btn-icon { position: absolute; inset-inline-end: 4px; top: 2px; width: 40px; min-height: 40px; padding: 0;
  justify-content: center; }
.pw-wrap .btn-icon:hover { transform: none; }
.pw-wrap input { padding-inline-end: 48px; }  /* the typed password never runs under the eye */

/* ---------- toast ---------- */
.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 50%; transform: translate(50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--sh-2); display: flex; gap: 10px;
  align-items: center; opacity: 0; z-index: 60; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.toast.show { opacity: 1; transform: translate(50%, 0); }
[dir=ltr] .toast { transform: translate(-50%, 20px); }

/* ---------- dialog ---------- */
dialog { border: 0; border-radius: 18px; padding: 22px; width: min(420px, calc(100% - 32px)); box-shadow: var(--sh-2); color: var(--ink); }
dialog::backdrop { background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
dialog[open] { animation: pop var(--t) var(--ease); }
dialog p { color: var(--ink-2); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes leave { to { opacity: 0; transform: translateX(-24px); } }
.rise > * { animation: rise var(--t-slow) var(--ease) both; }
.rise > *:nth-child(2) { animation-delay: 40ms; } .rise > *:nth-child(3) { animation-delay: 80ms; }
.rise > *:nth-child(4) { animation-delay: 120ms; } .rise > *:nth-child(5) { animation-delay: 160ms; }
.rise > *:nth-child(6) { animation-delay: 200ms; } .rise > *:nth-child(n+7) { animation-delay: 230ms; }
.is-leaving { animation: leave 200ms var(--ease) forwards; }
.spin { animation: spin 800ms linear infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-2, .editor { grid-template-columns: 1fr; }
  .tg { position: static; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(290px, 86vw); z-index: 50; transform: translateX(110%);
    transition: transform var(--t) var(--ease); box-shadow: var(--sh-2); }
  .side.open { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .deal { grid-template-columns: 64px minmax(0, 1fr); }
  .main { overflow-x: clip; }
  .top h1 { font-size: 21px; }
  .deal .thumb, .deal .thumb-ph { width: 64px; height: 64px; }
  .deal-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; width: auto; }
  .deal-act .btn { width: auto; }
  .p-head { grid-template-columns: 1fr; }
}

/* =====================================================================================
   Soft UI + light glass layer (ui-ux-pro-max: "Soft UI Evolution", glass accents).
   A calm gradient field behind frosted, softly layered surfaces; 3D icons from ChatGPT on actions and nav.
   ===================================================================================== */
:root {
  --glass: rgba(255, 255, 255, .74);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-line: rgba(214, 222, 236, .85);
  --soft-1: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px -10px rgba(30, 64, 175, .14);
  --soft-2: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px -18px rgba(30, 64, 175, .26);
}
body { background: #F5F7FC; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 100% -5%, #DDE6FF 0%, rgba(221, 230, 255, 0) 60%),
    radial-gradient(760px 520px at -5% 105%, #FFEFD9 0%, rgba(255, 239, 217, 0) 58%),
    radial-gradient(640px 420px at 55% 45%, #EEF3FF 0%, rgba(238, 243, 255, 0) 70%),
    #F5F7FC; }
.card, .deal, .table-wrap, .auth-card { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--soft-1);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.card:hover { box-shadow: var(--soft-2); }
.deal:hover { box-shadow: var(--soft-2); transform: translateY(-2px); }
.side { background: rgba(255, 255, 255, .66); border-inline-start-color: var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
th { background: rgba(241, 244, 250, .8); }
tbody tr:hover { background: rgba(234, 240, 254, .55); }
.status-row { background: rgba(241, 244, 250, .7); }
.fact { background: rgba(241, 244, 250, .75); }
.empty { background: rgba(241, 244, 250, .6); }
.seg { background: rgba(232, 237, 246, .7); }

/* 3D icons */
.b3d { width: 28px; height: 28px; flex: none; margin-inline-start: -7px; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .16)); transition: transform var(--t) var(--ease); }
.btn-sm .b3d { width: 24px; height: 24px; margin-inline-start: -6px; }
.btn-icon .b3d { margin: 0; }
.btn:hover .b3d { transform: translateY(-1px) rotate(-6deg) scale(1.08); }
.btn:active .b3d { transform: scale(.94); }
.nav .n3d { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .14));
  transition: transform var(--t) var(--ease); }
.nav a:hover .n3d { transform: scale(1.1) rotate(-4deg); }
.nav a.on .n3d { transform: scale(1.06); }
.kpi-ico.k3d { width: 44px; height: 44px; background: none; }
.kpi-ico.k3d img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .16)); }
.kpi .label { align-items: center; gap: 10px; }
.kpi:hover .kpi-ico.k3d img { transform: translateY(-2px) scale(1.05); transition: transform var(--t) var(--ease); }
.brand-mark { box-shadow: 0 8px 18px -8px rgba(30, 64, 175, .55); }

/* soft entrance for the KPI numbers (JS counts them up; without JS they simply show) */
.kpi .value { transition: color var(--t); }

/* weekly report: the exact text the bot sends */
.report { white-space: pre-wrap; font: inherit; font-size: 0.95rem; line-height: 1.7; margin: 0; padding: 14px 16px; background: var(--surface-2); border-radius: 12px; }

/* the site admin's preview of a deal */
.site-shot { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }

/* seller check */
.seller-res { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); }
.seller-res.ok { border-color: #BFE5CF; background: #F3FBF6; }
.seller-res.warn { border-color: #F5D9A8; background: #FFF9EE; }
.seller-res.bad { border-color: #F2C2C2; background: #FFF5F5; }
.seller-head { display: flex; gap: 12px; align-items: flex-start; }
.seller-verdict { font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.seller-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.seller-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.seller-facts dt { color: var(--muted); font-size: 12.5px; }
.seller-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.seller-why { margin: 10px 0 0; padding-inline-start: 18px; }
@media (max-width: 560px) { .seller-facts { grid-template-columns: 1fr; } }

/* insights: one row per group, a meter for the view index */
.ins-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ins-row { display: grid; grid-template-columns: minmax(90px, 9rem) minmax(0, 1fr) 3.2rem 5.5rem; gap: 10px; align-items: center; }
.ins-k { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-row meter { width: 100%; height: 14px; }
.ins-v { text-align: end; }
@media (max-width: 560px) { .ins-row { grid-template-columns: 6.5rem minmax(0, 1fr) 2.8rem; } .ins-row .small { display: none; } }

/* the finder bot's card, shown as is (one source for the bot and the site) */
.tgcard { white-space: pre-line; font-size: 14px; line-height: 1.65; color: var(--ink); margin-top: 6px; }
.tgcard b { font-weight: 600; }
.tgcard i { color: var(--muted); font-style: normal; }
.tgcard code { font-family: var(--mono); background: var(--primary-soft); border-radius: 6px; padding: 0 5px; }
.tgcard blockquote { margin: 8px 0; padding: 6px 12px; border-inline-start: 3px solid var(--line);
  background: var(--bg); border-radius: var(--r-sm); color: var(--ink); }
.tgcard a { color: var(--primary); }
.tgcard pre { font: 12.5px/1.45 var(--mono); direction: ltr; text-align: left; white-space: pre; overflow-x: auto;
  background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; margin: 6px 0; }
.why-no { position: relative; }
.why-no > summary { list-style: none; cursor: pointer; width: 100%; }
.why-no > summary::-webkit-details-marker { display: none; }
.why-no-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

/* the bots' screens on the site (deals, check, coupons, draft editor) */
.tgcard .spoiler, .tg-text .spoiler { background: var(--ink-2); color: transparent; border-radius: 4px; }
.tgcard .spoiler:hover, .tg-text .spoiler:hover { background: none; color: inherit; }
.tg-text b { font-weight: 600; }
.tg-text blockquote { margin: 6px 0; padding: 4px 10px; border-inline-start: 3px solid #5B9BD5; background: rgba(91, 155, 213, .08); border-radius: 6px; }
.tg-text code { font-family: var(--mono); background: rgba(0, 0, 0, .05); border-radius: 4px; padding: 0 4px; }
.tg-cap { font-size: 12.5px; color: #4B5B3F; font-weight: 600; margin: 0 0 8px; }
a.tg-btn { display: block; color: #2A6CB3; font-weight: 600; }
a.tg-btn:hover { text-decoration: none; background: rgba(255, 255, 255, .85); }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 16px; }
.banner p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.banner.wait { background: var(--warn-soft); border-color: #F4D9A8; }
.banner.ok { background: var(--success-soft); border-color: #BFE5CC; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.presets form { display: contents; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.inline-form label:not(.sr) { margin: 0; flex-basis: 100%; }
.inline-form input[type=url], .inline-form input[type=text] { flex: 1 1 260px; width: auto; }
.inline-form input[type=datetime-local] { min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px;
  font: 400 15px/1.5 var(--font); background: var(--surface); color: var(--ink); }
.inline-form select { width: auto; }
details.more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸"; color: var(--muted); transition: transform var(--t-fast); }
details.more[open] > summary::before { transform: rotate(90deg); }
.check-card { display: flex; gap: 16px; align-items: flex-start; }
.check-card .tgcard { flex: 1; min-width: 0; margin: 0; }
@media (max-width: 560px) { .check-card { flex-direction: column; } }

/* 🧩 a post with several products: one card per product */
.item-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-top: 12px; background: var(--surface-2); }
.item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.item-head img { border-radius: 8px; object-fit: cover; background: #fff; }
textarea.short { min-height: 88px; }

/* the public site's traffic chart */
.spark.traffic { width: 100%; height: auto; }
.lg-all { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--line-2); margin-inline-end: 4px; }

.kpi .up { color: var(--success); } .kpi .down { color: var(--danger); }

/* =====================================================================================
   The phone (Noy 11.10, before Eilat: "שהאתר יהיה נוח בפלאפון ויהיה קל ומותאם מאוד").
   ui-ux-pro-max: 44px touch targets 8px apart, 16px inputs (iOS doesn't zoom in), no sideways scroll,
   a bottom tab bar of five with labels, wide tables as cards, lift-on-hover only where there is a mouse.
   ===================================================================================== */
.tabbar, .scrim, .jump { display: none; }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* a finger "hovers" on tap and leaves things lifted: no lift without a mouse */
@media (hover: none) {
  .btn:hover, .deal:hover { transform: none; }
  .btn:hover .bi, .btn:hover .b3d, .nav a:hover .n3d { transform: none; }
  .card:hover, .deal:hover { box-shadow: var(--soft-1); }
  .btn:active { transform: scale(.97); }
}

/* fingers: every control at least 44px, inputs at 16px (also by width: not every phone browser says "coarse") */
@media (pointer: coarse), (max-width: 860px) {
  .btn, .btn-sm { min-height: 44px; }
  .btn-icon { width: 44px; }
  .seg a, .seg button { min-height: 44px; }
  .check { min-height: 44px; }
  .check input { width: 22px; height: 22px; }
  input[type=text], input[type=password], input[type=search], input[type=url], input[type=number], select, textarea,
  .inline-form input[type=datetime-local] { font-size: 16px; }
  input.code { font-size: 26px; }
  details.more > summary { min-height: 48px; }
  .card-h a, .pager a { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 860px) {
  :root { --tabbar: 64px; }
  .main { padding-top: 18px; padding-bottom: calc(var(--tabbar) + 28px + env(safe-area-inset-bottom, 0px)); }
  .top { margin-bottom: 16px; gap: 10px; }
  .top p { font-size: 14px; }

  /* the tab bar: home, alerts, deals, drafts, and the full menu */
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    border-top: 1px solid var(--glass-line); box-shadow: 0 -8px 24px -18px rgba(15, 23, 42, .35); }
  .tabbar a, .tabbar button { appearance: none; border: 0; background: none; color: var(--muted); font: 600 11.5px/1.2 var(--font);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px;
    cursor: pointer; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tab-i { width: 52px; height: 28px; border-radius: var(--pill); display: grid; place-items: center;
    transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
  .tab-i .icon { width: 21px; height: 21px; }
  .tabbar a.on, .tabbar button[aria-expanded=true] { color: var(--primary); }
  .tabbar a.on .tab-i, .tabbar button[aria-expanded=true] .tab-i { background: var(--primary-soft); }
  .tabbar a:active .tab-i, .tabbar button:active .tab-i { transform: scale(.92); }

  /* the menu: a drawer that scrolls (19 pages are taller than a phone), over a scrim, clear of the tab bar */
  .side { overflow-y: auto; overscroll-behavior: contain; background: rgba(255, 255, 255, .97);
    padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom, 0px)); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(15, 23, 42, .4); animation: fade var(--t) var(--ease); }
  body.menu-open { overflow: hidden; }
  .toast { bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom, 0px)); }

  /* segmented filters: whole words, wrapping to a second row instead of squeezing */
  .seg { display: flex; flex-wrap: wrap; }
  .seg a, .seg button { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding-inline: 12px; }

  /* deal cards: the picture beside the name, then everything else the full width of the card */
  .deal { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
  .deal .thumb, .deal .thumb-ph { width: 56px; height: 56px; grid-column: 1; grid-row: 1; }
  .deal > div:not(.deal-act) { display: contents; }
  .deal > div:not(.deal-act) > * { grid-column: 1 / -1; min-width: 0; margin: 0; }
  .deal > div:not(.deal-act) > .deal-t { grid-column: 2; grid-row: 1; align-self: center; }
  .deal-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; width: auto; gap: 8px; margin-top: 4px; }
  .deal-act > * { flex: 1 1 auto; }
  .deal-act .btn, .deal-act .why-no > summary { width: 100%; justify-content: center; }
  .deal-act details[open] { flex-basis: 100%; }

  .status-row { flex-wrap: wrap; }
  .status-row .chip { white-space: normal; }
  .filters .field { flex: 1 1 140px; min-width: 0; }
  .filters > .btn { flex: 1 1 100%; justify-content: center; }
}

/* the draft editor in one column: the post itself right before publishing, and a jump bar between them */
@media (max-width: 1100px) {
  .jump { display: flex; gap: 4px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; margin-bottom: 14px; padding: 5px;
    background: rgba(245, 247, 252, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: var(--soft-1); }
  .jump a { flex: 1 1 0; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
    color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; touch-action: manipulation; }
  .jump a:hover { text-decoration: none; background: var(--surface); }
  .jump a:active { background: var(--primary-soft); color: var(--primary); }
  .editor { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .editor > .grid { display: contents; }
  .editor > .tg { order: 1; }
  .editor > .grid > .pub { order: 2; }
  #h-fields, #h-pub, #preview { scroll-margin-top: 72px; }
}

/* wide tables (five columns and up, marked by app.js): a card per row, each value under its column's name */
@media (max-width: 640px) {
  table.stack, table.stack tbody { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 14px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; flex: 1 1 calc(50% - 14px); min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); display: block; margin-bottom: 1px; direction: rtl; text-align: right;
    font: 500 12px/1.4 var(--font); color: var(--muted); }
  table.stack td.main { flex: 1 1 calc(100% - 72px); max-width: none; font-weight: 600; }
  table.stack td.img { flex: 0 0 auto; }
  table.stack td.wide { flex-basis: 100%; }
  table.stack td.blank { display: none; }
  table.stack td.main::before, table.stack td.img::before, table.stack td[data-label=""]::before, table.stack td:not([data-label])::before { display: none; }
}

/* ---------- 🕵️ competitor analysis (/insights, 12.10): server-drawn SVG, colors by class (the CSP) ---------- */
:root { --c-amz: #D97706; --c-ali: #E0533D; --c-ksp: #1E40AF; --c-il: #15803D; --c-none: #CBD5E1; --c-us: #B45309;
  --h1: #E3EBFD; --h2: #BFD0FA; --h3: #8FAAF2; --h4: #5479E2; --h5: #1E40AF; }
.cm-bottom { border-color: #D6E0F8; background: linear-gradient(180deg, #FBFCFF 0%, var(--surface) 60%); }
.cm-find { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; gap: 12px; }
.cm-find li { counter-increment: f; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start;
  line-height: 1.7; max-width: 78ch; }
.cm-find li::before { content: counter(f); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font: 600 13px/1 var(--mono); margin-top: 1px; }
.cm-chans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cm-chan { display: flex; flex-direction: column; gap: 12px; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.cm-chan:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.cm-chan.us { border-color: #F2C98A; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 55%); }
.cm-chan-h { display: flex; flex-direction: column; gap: 2px; }
.cm-chan-h h2 { font-size: 19px; }
.cm-chan-h .chip { align-self: flex-start; }
.cm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.cm-stats dt { font-size: 12.5px; color: var(--muted); }
.cm-stats dd { margin: 0; font: 600 19px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.cm-mix { display: grid; gap: 8px; margin-top: auto; }
.cm-peak { display: flex; align-items: center; gap: 6px; margin: 0; }
.cm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.cm-legend span, .cm-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c-none); }
.dot.f-amazon { background: var(--c-amz); } .dot.f-aliexpress { background: var(--c-ali); } .dot.f-ksp { background: var(--c-ksp); }
.dot.f-il { background: var(--c-il); } .dot.f-us { background: var(--c-us); } .dot.them { background: var(--primary); }
.hb { display: block; width: 100%; height: 10px; border-radius: var(--pill); overflow: hidden; background: var(--surface-2); }
.hb.stack { height: 14px; }
.hb-fill { fill: var(--primary); transform-box: fill-box; transform-origin: right center; animation: cm-grow 700ms var(--ease) both; }
.hb.stack .hb-fill { animation-duration: 900ms; }
.hb-fill.f-amazon { fill: var(--c-amz); } .hb-fill.f-aliexpress { fill: var(--c-ali); } .hb-fill.f-ksp { fill: var(--c-ksp); }
.hb-fill.f-il { fill: var(--c-il); } .hb-fill.f-none { fill: var(--c-none); } .hb-fill.f-us { fill: var(--c-us); }
.hb-fill.f-idx { fill: #94A3B8; } .hb-fill.f-idx.hi { fill: var(--success); } .hb-fill.f-idx.lo { fill: #E58A8A; }
@keyframes cm-grow { from { transform: scaleX(0); } }
.cm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cm-row { display: grid; grid-template-columns: minmax(84px, 9.5rem) minmax(0, 1fr) 3.4rem; gap: 6px 12px; align-items: center; }
.cm-row .k { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-row .v { text-align: end; font-size: 13px; }
.cm-row .cm-split { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: -3px; }
.cm-row .pair { display: grid; gap: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--pill); background: var(--surface-2);
  border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.tag.us { background: var(--accent-soft); border-color: #F2C98A; color: var(--accent); }
.tag code { font: 600 12px var(--mono); color: var(--ink); direction: ltr; }
.cm-codes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cm-hooks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-hooks li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 8px; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surface-2); line-height: 1.55; }
.cm-hooks .num { color: var(--primary); font-weight: 600; }
.cm-table th.num-h { text-align: end; }
.heat-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.heat { display: block; width: 100%; min-width: 520px; height: auto; }
.heat .axis { fill: var(--muted); font: 11px var(--mono); }
.heat .day { fill: var(--ink-2); font: 500 12px var(--font); }
.heat rect { fill: var(--surface-2); transition: opacity var(--t-fast); }
.heat rect:hover { opacity: .8; }
.heat .h1, .cm-heat-legend .h1 { fill: var(--h1); background: var(--h1); } .heat .h2, .cm-heat-legend .h2 { fill: var(--h2); background: var(--h2); }
.heat .h3, .cm-heat-legend .h3 { fill: var(--h3); background: var(--h3); } .heat .h4, .cm-heat-legend .h4 { fill: var(--h4); background: var(--h4); }
.heat .h5, .cm-heat-legend .h5 { fill: var(--h5); background: var(--h5); }
.cm-heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.cm-heat-legend i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.cm-peaks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.cm-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 44px; }
.cm-more > summary::-webkit-details-marker { display: none; }
.cm-more > summary h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-more > summary::after { content: "▾"; margin-inline-start: auto; color: var(--muted); transition: transform var(--t-fast); }
.cm-more[open] > summary::after { transform: rotate(180deg); }
.cm-page .card-h h2 { display: flex; align-items: center; gap: 8px; }
@media (max-width: 640px) {
  .cm-row { grid-template-columns: minmax(72px, 7.5rem) minmax(0, 1fr) 3rem; }
  .cm-stats dd { font-size: 17px; }
  .cm-find li { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
  .cm-find li::before { width: 24px; height: 24px; font-size: 12px; }
}

/* ---------- 📣 the ads page in the site's own design (/ads, 12.10) ---------- */
.up { color: var(--success); } .down { color: var(--danger); }
.camps-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.camps-fresh { display: flex; align-items: center; gap: 8px; }
.camps-fresh form { display: contents; }
.camps-toast { animation: pop var(--t-slow) var(--ease) both; }
.camps-toast > div { line-height: 1.6; }
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  animation: camps-ping 1.8s var(--ease) infinite; }
@keyframes camps-ping { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.camp-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: var(--pill); font-size: 12.5px;
  font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.camp-pill.st-review { background: var(--warn-soft); color: var(--accent); }
.camp-pill.st-active { background: var(--success-soft); color: var(--success); }
.camp-pill.st-declined { background: var(--danger-soft); color: var(--danger); }
.camp-pill.paused { background: #EEF1F6; color: var(--muted); }
.camps-now p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pairs { display: grid; gap: 12px; margin-top: 14px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px;
  border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); }
.pair-ad { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pair-link { color: var(--muted); display: grid; place-items: center; }
.pair-note { grid-column: 1 / -1; margin: 0; }
.lg-strong { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); margin-inline-end: 4px; }
.lg-spend { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--accent); margin-inline-end: 4px; vertical-align: middle; }
.chart.camps-days, .chart.hour-bars { display: block; width: 100%; height: auto; }
.chart .bar-strong { fill: var(--primary); } .chart .bar-all { fill: #E3E9F5; }
.chart .hit { fill: transparent; }
.chart .hit:hover { fill: rgba(30, 64, 175, .06); }
.camps-spend { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: camps-draw 1.1s var(--ease) .2s forwards; }
.camps-spend-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
@keyframes camps-draw { to { stroke-dashoffset: 0; } }
.chart .grow { transform-box: fill-box; transform-origin: center bottom; animation: camps-rise .7s var(--ease) both; }
@keyframes camps-rise { from { transform: scaleY(0); } }
.camps-mini, .race-mini, .camps-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.camps-mini li { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); display: grid; gap: 3px; }
.camps-mini-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.camps-mini-n { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
.race-mini li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); }
.race-mini li.ours { background: var(--primary-soft); font-weight: 600; }
.camp-card { display: grid; gap: 16px; }
.camp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; }
.camp-head p { margin: 4px 0 0; }
.camp-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.camp-body { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.camp-preview { position: relative; display: grid; gap: 6px; padding: 14px 14px 12px; border-radius: 14px; background: #EEF3FB;
  border: 1px solid #DCE5F5; box-shadow: var(--sh-1); }
.camp-preview-k { font-size: 11.5px; font-weight: 600; color: var(--primary); letter-spacing: .02em; }
.camp-preview b { font-size: 15px; line-height: 1.4; }
.camp-preview p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.camp-preview-btn { margin-top: 6px; text-align: center; padding: 8px; border-radius: 10px; background: var(--surface);
  color: var(--primary); font-weight: 600; font-size: 14px; border: 1px solid #DCE5F5; }
.camp-info { display: grid; gap: 14px; }
.camp-aud { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.funnel { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.funnel li { flex: 1 1 80px; display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: var(--r);
  background: var(--surface-2); text-align: center; }
.funnel li b { font-size: 20px; }
.funnel li span { font-size: 12.5px; color: var(--muted); }
.funnel li.step { flex: 0 0 auto; background: none; padding: 0 2px; align-content: center; }
.funnel li.step span { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--mono); color: var(--ink-2); }
.funnel li.step span::before { content: "←"; color: var(--line-2); font-family: var(--font); }
.funnel li.hit { background: var(--success-soft); }
.funnel li.hit b { color: var(--success); }
.camp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 16px; margin: 0; }
.camp-stats dt { font-size: 12.5px; color: var(--muted); }
.camp-stats dd { margin: 0; font-weight: 600; }
.camp-meter { display: grid; gap: 6px; }
.camp-meter-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.hb-fill.f-ad { fill: var(--primary); } .hb-fill.f-ad.full { fill: var(--accent); }
.camp-manage { border-top: 1px solid var(--line); padding-top: 4px; }
.camp-manage > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--primary); }
.camp-manage > summary::-webkit-details-marker { display: none; }
.camp-manage > summary::after { content: "▾"; color: var(--muted); transition: transform var(--t-fast); }
.camp-manage[open] > summary::after { transform: rotate(180deg); }
.camp-manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-top: 6px;
  animation: rise var(--t) var(--ease) both; }
.camp-manage-grid section { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.camp-manage-grid h3 { margin-bottom: 4px; }
.best-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.best-hours li { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.best-hours li:first-child { background: var(--accent-soft); }
.best-hours b { font-size: 22px; }
.rot-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.rot-steps li { flex: 1 1 110px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--pill);
  background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.rot-steps .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.rot-steps li.done { color: var(--success); } .rot-steps li.done .dot { background: var(--success); }
.rot-steps li.now { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.rot-steps li.now .dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(30, 64, 175, .15); }
.rot-ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rot-ad { display: grid; gap: 4px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); }
.rot-ad.on { border-color: #BFE5CC; background: var(--success-soft); }
.race-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.race-card { display: grid; gap: 8px; }
.race-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.race-card h2 { font-size: 16px; overflow-wrap: anywhere; }
.race-card.ours { border-color: #C9D6FB; background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 60%); }
.race-now { margin: 0; font: 600 28px/1.1 var(--mono); }
.race-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.race-card dt { font-size: 12.5px; color: var(--muted); } .race-card dd { margin: 0; font-weight: 600; font-size: 17px; }
.spark-mini { display: block; width: 100%; height: 36px; }
.spark-line { fill: none; stroke: #94A3B8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-line.ours { stroke: var(--primary); stroke-width: 2.5; }
.sim-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.sim-form .field { flex: 1 1 220px; margin: 0; }
.sim-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sim-box { padding: 14px; border-radius: var(--r); background: var(--surface-2); display: grid; gap: 6px; }
.sim-box p { margin: 0; }
.sim-box.hl { background: var(--primary-soft); }
.camps-log li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto 1.5rem; gap: 10px; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid var(--line); }
.camps-log li:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .camp-body { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .pair-link { transform: rotate(90deg); }
  .camps-log li { grid-template-columns: 1fr auto; }
  .camps-log li > :nth-child(3) { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } .camps-spend { stroke-dashoffset: 0; } }
.camps-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.camps-kpis .value bdi { unicode-bidi: isolate; }
.presets .btn, .camps-fresh .btn { unicode-bidi: plaintext; }  /* "+1 TON" reads left to right, Hebrew labels right to left */

/* ---------- 🎯 our audience (/audience, 12.10) ---------- */
.live-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill);
  background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 600; }
.aud-page { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.aud-page.swap-out { opacity: .25; transform: translateY(4px); }
.aud-h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 4px 2px 0; }
.cm-row.hl { background: var(--success-soft); border-radius: var(--r-sm); padding: 2px 6px; margin: 0 -6px; }
.cm-row.hl .k { color: var(--success); font-weight: 600; }
.chart .bar-mid { fill: #9DB4EE; }
.chart.trend-bars { display: block; width: 100%; height: auto; }
.chart .axis.val { fill: var(--ink-2); font-weight: 600; }
.join-hours { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.join-hours li { display: inline-flex; gap: 8px; align-items: center; padding: 4px 10px; border-radius: var(--pill);
  background: var(--surface-2); font-size: 13px; }
.buy-split { display: grid; gap: 8px; margin-bottom: 14px; }
.buy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.buy-list li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto auto; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.buy-list .qty { color: var(--primary); font-weight: 600; }
.buy-list .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; unicode-bidi: plaintext; }
.who { display: grid; gap: 8px; max-width: 520px; }
@media (max-width: 640px) {
  .buy-list li { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .buy-list li .tag { display: none; }
}

/* ---------- the brand: the channel's own logo (12.10) ---------- */
a.brand { color: inherit; text-decoration: none; border-radius: var(--r); transition: background var(--t-fast); }
a.brand:hover { background: var(--surface-2); text-decoration: none; }
.brand-logo { width: 48px; height: 48px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .18)); }
.auth-brand { display: grid; justify-items: center; gap: 6px; padding-bottom: 10px; }
.auth-logo { width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(15, 23, 42, .22));
  animation: pop var(--t-slow) var(--ease) both; }
.auth-brand span { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ================= design, step 1 (12.10): one clean line icon style, a grouped menu, calm buttons ================= */
.nav { gap: 1px; }
.nav-h { display: block; padding: 16px 12px 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.nav a { min-height: 40px; padding: 8px 12px; gap: 11px; font-size: 14.5px; }
.nav a .icon { width: 19px; height: 19px; color: var(--muted); stroke-width: 1.9; flex: none; transition: color var(--t-fast); }
.nav a:hover .icon { color: var(--ink-2); }
.nav a.on { font-weight: 600; }
.nav a.on .icon { color: var(--primary); }
/* buttons: the icon sits in the text line (no round chip), one height per size, a solid colour only for the main action */
.btn { min-height: 40px; padding: 0 16px; gap: 8px; border-radius: 10px; }
.btn:hover { transform: none; }
.btn .bi { width: auto; height: auto; margin: 0; background: none; border-radius: 0; }
.btn .bi .icon, .btn > .icon { width: 18px; height: 18px; stroke-width: 2; }
.btn:hover .bi { transform: none; }
.btn-sm { min-height: 34px; padding: 0 12px; gap: 6px; border-radius: 9px; font-size: 13px; }
.btn-sm .bi { margin: 0; }
.btn-sm .bi .icon, .btn-sm > .icon { width: 16px; height: 16px; }
.btn-icon { width: 40px; padding: 0; justify-content: center; }
.btn-primary { --b: var(--primary); --bh: var(--primary-2); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 8px 18px -10px rgba(30, 64, 175, .7); }
.btn-primary:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 10px 22px -10px rgba(30, 64, 175, .85); }
.btn-go, .btn-good { --b: var(--success); --bh: #166B34; box-shadow: 0 8px 18px -10px rgba(21, 128, 61, .7); }
.btn-primary .bi, .btn-go .bi, .btn-good .bi { background: none; }
.btn .icon:last-child:not(:first-child) { margin-inline-start: -2px; }
/* the dashboard (12.10) */
.dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1280px) { .dash-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.kpi-link { color: inherit; text-decoration: none; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  align-items: center; gap: 6px 10px; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t-fast); }
a.kpi-link:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); text-decoration: none; }
a.kpi-link .kpi-ico { grid-row: 1; width: 34px; height: 34px; border-radius: 10px; }
a.kpi-link .kpi-ico .icon { width: 18px; height: 18px; }
a.kpi-link .label { grid-row: 1; font-size: 13px; color: var(--muted); }
a.kpi-link .value { grid-column: 1 / -1; font: 600 28px/1.1 var(--mono); }
a.kpi-link.hot .kpi-ico { background: var(--accent-soft); color: var(--accent); }
a.kpi-link.hot .value { color: var(--accent); }
.dash-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-side { display: grid; gap: 16px; }
.dash-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dash-main { grid-template-columns: 1fr; } .dash-trio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .dash-trio { grid-template-columns: 1fr; } }
.card-h h2 { display: flex; align-items: center; gap: 8px; }
.card-h h2 .icon { width: 19px; height: 19px; color: var(--primary); }
.link-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.link-more .icon { width: 15px; height: 15px; }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.q-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: var(--r); background: var(--surface-2); }
.q-time { font-size: 13px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 4px 8px; border-radius: 8px; }
.q-t { font-size: 14px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.mini-stats > div { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); }
.mini-stats dt { font-size: 12.5px; color: var(--muted); }
.mini-stats dd { margin: 2px 0 0; font-size: 21px; font-weight: 600; }
.mini-stats dd.hl { color: var(--accent); }
.chips-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.small-h { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.kv-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.kv-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv-list li:last-child { border-bottom: 0; }
.kv-list li span { color: var(--ink-2); }
.ok-line { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r);
  background: var(--success-soft); color: var(--success); font-weight: 600; font-size: 14px; }
.ok-line .icon { width: 18px; height: 18px; }
.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.issue-list li { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r);
  background: var(--danger-soft); color: var(--danger); font-size: 14px; }
.issue-list .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ================= design, step 1b (12.10, Noy's notes on the dashboard) ================= */
:root { --font: "Rubik", "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif; --mono: "Rubik", "Segoe UI", Arial, sans-serif;
  --t-amber: #B45309; --t-amber-bg: #FFF1DD; --t-blue: #1E40AF; --t-blue-bg: #E6EDFD; --t-violet: #6D28D9; --t-violet-bg: #F0E9FE;
  --t-green: #15803D; --t-green-bg: #E3F5E9; --t-slate: #475569; --t-slate-bg: #EDF1F6; --t-teal: #0F766E; --t-teal-bg: #DFF4F1; }
body { font-family: var(--font); }
.num, td.num, .price { font-family: var(--font); font-variant-numeric: tabular-nums; }
code, kbd { font-family: "IBM Plex Mono", Consolas, monospace; }
/* numbers in a block read from the right like the rest of the line (they were left: "num" sets ltr) */
dd.num, .mini-stats dd, .cm-stats dd, .camp-stats dd, .race-card dd, .race-now, .kpi .value, a.kpi-link .value { text-align: right; }

/* the side menu: compact rows, groups that fold, their headers in the logo's orange */
.side { padding: 14px 12px; gap: 2px; }
.brand { padding: 2px 6px 10px; }
.brand-logo { width: 44px; height: 44px; }
.nav a { min-height: 34px; padding: 6px 10px; gap: 10px; font-size: 14px; border-radius: 9px; }
.nav a .icon { width: 18px; height: 18px; }
.nav a.on::before { inset-inline-start: -12px; top: 8px; bottom: 8px; }
.nav-g { margin: 2px 0; }
.nav-g > summary { list-style: none; }
.nav-g > summary::-webkit-details-marker { display: none; }
.nav-h { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 8px 10px 4px;
  font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .01em; border-radius: 8px; user-select: none; }
.nav-h:hover { background: var(--accent-soft); }
.nav-chev { width: 15px !important; height: 15px !important; color: var(--accent); transition: transform var(--t) var(--ease); }
.nav-g:not([open]) .nav-chev { transform: rotate(90deg); }
.nav-g[open] > a { animation: rise var(--t) var(--ease) both; }
.side-foot { padding-top: 10px; }

/* buttons: quiet and modern; solid colour only for the one main action */
.btn { font: 500 14px/1 var(--font); min-height: 38px; padding: 0 14px; gap: 7px; border-radius: 10px; letter-spacing: 0; }
.btn .bi .icon, .btn > .icon { width: 17px; height: 17px; stroke-width: 2; }
.btn-primary { --b: var(--primary); --bh: #1A3796; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.btn-primary:hover { box-shadow: 0 4px 12px -4px rgba(30, 64, 175, .55); }
.btn-line { --b: var(--surface); --bh: var(--surface-2); --c: var(--ink); --bd: var(--line-2); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.btn-line:hover { --bd: #C3CCDA; }
.btn-quiet { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 12px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 500 13px/1 var(--font);
  text-decoration: none; white-space: nowrap; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
.btn-quiet .icon { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); }
.btn-quiet:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.btn-quiet:hover .icon { transform: translateX(-2px); }

/* the dashboard's number cards: an icon and a colour for each */
a.kpi-link { padding: 16px; gap: 10px 12px; }
a.kpi-link .kpi-ico { width: 40px; height: 40px; border-radius: 12px; }
a.kpi-link .kpi-ico .icon { width: 20px; height: 20px; stroke-width: 1.9; }
a.kpi-link .label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; line-height: 1.3; }
a.kpi-link .value { font: 600 30px/1.05 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.t-amber .kpi-ico { background: var(--t-amber-bg); color: var(--t-amber); }
.t-blue .kpi-ico { background: var(--t-blue-bg); color: var(--t-blue); }
.t-violet .kpi-ico { background: var(--t-violet-bg); color: var(--t-violet); }
.t-green .kpi-ico { background: var(--t-green-bg); color: var(--t-green); }
.t-slate .kpi-ico { background: var(--t-slate-bg); color: var(--t-slate); }
.t-teal .kpi-ico { background: var(--t-teal-bg); color: var(--t-teal); }
a.kpi-link.hot .value { color: var(--t-amber); }
.mini-stats dd { font: 600 22px/1.15 var(--font); font-variant-numeric: tabular-nums; }
.kv-list b { font-weight: 600; }
.q-time { font-family: var(--font); }

/* ================= design, round 3 (12.10) ================= */
/* the menu's group headers: a calm blue, normal weight (the orange and the bold were too loud) */
.nav-h { color: #4A5B8C; font-weight: 500; font-size: 12.5px; letter-spacing: 0; padding: 8px 10px 4px; }
.nav-h:hover { background: var(--primary-soft); color: var(--primary); }
.nav-chev { color: #93A3C8; }
/* "לטיפול": as wide as its words, held to the side */
.deal-act:has(.btn-quiet) { width: auto; align-items: flex-end; justify-content: center; }
.btn-quiet { align-self: flex-end; padding: 0 9px 0 12px; }
/* the page's main button: quiet too, only its words in blue */
.btn-line.is-main { --c: var(--primary); --bd: #CAD6F4; }
.btn-line.is-main:hover { --b: var(--primary-soft); --bd: #B5C6F0; }
/* key and value rows: the value right after its label, read from the right */
.kv-list li { display: grid; grid-template-columns: minmax(7.5rem, 46%) minmax(0, 1fr); gap: 12px; align-items: baseline; }
.kv-list li b { text-align: right; }
.chart-note { margin: -6px 0 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.chart-note b { color: var(--ink-2); font-weight: 600; }
.chart-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.chart-sum span { display: inline-flex; align-items: center; gap: 6px; }
.lg-post { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); }

/* ================= design, round 4 (12.10) ================= */
/* the menu's group headers in the brand blue, clearly apart from the grey items under them */
.nav-h { color: var(--primary); font-weight: 600; }
.nav-h:hover { background: var(--primary-soft); color: var(--primary-2); }
.nav-chev { color: var(--primary); opacity: .7; }
/* "מצב המערכת": the card ends where its values end (labels in one column, values in the next, nothing empty after them) */
@media (min-width: 1101px) {
  .dash-trio.trio-fit { grid-template-columns: fit-content(420px) minmax(0, 1.3fr) minmax(0, 1fr); }
  .card-fit .kv-list { grid-template-columns: max-content max-content; column-gap: 28px; }
  .card-fit .kv-list li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: 0 28px; }
}

/* round 5 (12.10): the channels card fits its content too; the chart between them takes the room that is left */
@media (min-width: 1101px) {
  .dash-trio.trio-fit { grid-template-columns: fit-content(420px) minmax(0, 1fr) fit-content(420px); }
  /* when the title is wider than the rows, the row lines still run the card's full width */
  .card-fit .kv-list { grid-template-columns: max-content minmax(max-content, 1fr); }
}

/* ================= design, round 6 (12.10): one header on every page, the filter bar, the alert cards ================= */
/* the page header, after Galilim's: a soft band, the page's icon on a blue tile, its name in a blue gradient */
.page-hero { position: relative; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 18px; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .9); background: linear-gradient(105deg, #EDF2FF 0%, #F3F1FF 50%, #FFF7E2 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 30px -20px rgba(30, 64, 175, .45); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -70px; top: -90px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 205, 80, .32), transparent); pointer-events: none; }
.ph-ic { position: relative; z-index: 1; flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #5B86F8 0%, var(--primary) 100%);
  box-shadow: 0 10px 20px -10px rgba(30, 64, 175, .8), inset 0 1px 0 rgba(255, 255, 255, .25); animation: ph-pop 460ms var(--ease) both; }
.ph-ic .icon { width: 26px; height: 26px; stroke-width: 1.9; }
.ph-text { position: relative; z-index: 1; flex: 1 1 320px; min-width: 0; }
.page-hero h1 { margin: 0; width: fit-content; max-width: 100%; font-size: 26px; font-weight: 700; line-height: 1.3;
  letter-spacing: -.01em; color: var(--primary); text-wrap: balance; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-hero h1 { background: linear-gradient(to left, #1E3A8A 0%, #2650D6 55%, #6366F1 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.page-hero .ph-text p { margin: 6px 0 0; max-width: 80ch; font-size: 14px; line-height: 1.65; color: var(--muted); }
.page-hero .ph-text p b { color: var(--ink-2); font-weight: 600; }
.page-hero .actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.page-hero .actions .btn-line { background: rgba(255, 255, 255, .88); }
@keyframes ph-pop { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .page-hero { padding: 14px 16px; gap: 12px; border-radius: 18px; }
  .ph-ic { width: 42px; height: 42px; border-radius: 13px; }
  .ph-ic .icon { width: 22px; height: 22px; }
  .page-hero h1 { font-size: 21px; }
  .page-hero .ph-text p { font-size: 13.5px; }
}

/* the status tabs: a pill each, with its count */
.ftabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ftab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.ftab .icon { width: 18px; height: 18px; color: var(--muted); transition: color var(--t-fast); }
.ftab:hover { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--ink); text-decoration: none; }
.ftab.on { background: var(--surface); border-color: var(--line); color: var(--primary); font-weight: 600; box-shadow: var(--sh-1); }
.ftab.on .icon { color: var(--primary); }
.fcnt { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: rgba(15, 23, 42, .06); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1; }
.ftab.on .fcnt { background: var(--primary-soft); color: var(--primary); }

/* the filter bar: search and shop on top, the other choices as quiet chips under them */
.fbar { display: grid; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--sh-1); }
.fbar-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fsearch { position: relative; flex: 1 1 280px; display: flex; align-items: center; margin: 0; }
.fsearch > .icon { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none;
  transition: color var(--t-fast); }
.fsearch input { width: 100%; height: 44px; padding-inline: 42px 14px; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface-2); font: 400 15px var(--font); transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.fsearch input:hover { border-color: var(--line-2); }
.fsearch input:focus { background: var(--surface); border-color: var(--ring); }
.fsearch:focus-within > .icon { color: var(--primary); }
.fstores { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.fpill { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 9px;
  color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; user-select: none;
  transition: background var(--t) var(--ease), color var(--t-fast), box-shadow var(--t) var(--ease); }
.fpill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.fpill:hover { color: var(--ink); }
.fpill:has(input:checked) { background: var(--surface); color: var(--primary); font-weight: 600; box-shadow: var(--sh-1); }
.fpill:has(input:focus-visible) { outline: 2px solid var(--ring); outline-offset: 1px; }
@supports not selector(:has(*)) { .fpill.on { background: var(--surface); color: var(--primary); font-weight: 600; box-shadow: var(--sh-1); } }
.fpill .fcnt { height: 20px; min-width: 22px; font-size: 11.5px; }
.sdot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sdot.s-amazon { background: #F59E0B; } .sdot.s-ksp { background: #2563EB; } .sdot.s-aliexpress { background: #E11D48; }
.fbar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fsel { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; margin: 0; padding-inline: 12px 10px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: 13.5px;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
.fsel:hover { border-color: #BAC5D6; }
.fsel:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(38, 80, 214, .15); }
.fsel > .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.fsel-k { color: var(--muted); font-weight: 500; white-space: nowrap; }
.fsel select { appearance: none; -webkit-appearance: none; width: auto; min-width: 0; height: 100%; min-height: 0; margin: 0;
  padding: 0; padding-inline-end: 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font: 600 13.5px/1 var(--font); color: var(--ink); cursor: pointer; }
.fsel select:focus { outline: none; border: 0; box-shadow: none; }
.fsel .fsel-caret { position: absolute; inset-inline-end: 10px; width: 14px; height: 14px; color: var(--muted); pointer-events: none; }
.fsel.is-set { border-color: #C3D2F6; background: var(--primary-soft); }
.fsel.is-set > .icon, .fsel.is-set .fsel-k, .fsel.is-set select, .fsel.is-set .fsel-caret { color: var(--primary); }
.js .fgo { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0; }
.fclear { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px;
  color: var(--danger); font-size: 13.5px; font-weight: 500; transition: background var(--t-fast); }
.fclear:hover { background: var(--danger-soft); text-decoration: none; }
.fclear .icon { width: 16px; height: 16px; }
.fsum { margin: 14px 2px 10px; font-size: 13.5px; color: var(--muted); }
.fsum b { color: var(--ink); font-weight: 600; }
.fsum-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.fsum-line .fsum { margin-bottom: 4px; }
.tier-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 2px 4px; font-size: 12.5px; color: var(--muted); }
.tier-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tier-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
[data-results].is-loading { opacity: .45; transition: opacity var(--t) var(--ease); }
.is-filtered { display: none !important; }
.pop-in { animation: rise var(--t) var(--ease) both; }

/* the deal score: a number, a short bar and its name, one colour per level */
.s-great { --c: #0E9F6E; } .s-good { --c: #2563EB; } .s-fair { --c: #D97706; } .s-weak, .s-none { --c: #94A3B8; }
.score { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.score-n { font-size: 12px; color: var(--muted); }
.score-n b { font-size: 15px; font-weight: 700; color: var(--c); }
.score-bar { width: 64px; height: 6px; border-radius: 999px; background: #EDF1F7; overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); transform-origin: right center;
  animation: cm-grow 700ms var(--ease) both; }
.score-bar i.w0 { width: 4%; } .score-bar i.w1 { width: 10%; } .score-bar i.w2 { width: 20%; } .score-bar i.w3 { width: 30%; } .score-bar i.w4 { width: 40%; } .score-bar i.w5 { width: 50%; } .score-bar i.w6 { width: 60%; } .score-bar i.w7 { width: 70%; } .score-bar i.w8 { width: 80%; } .score-bar i.w9 { width: 90%; } .score-bar i.w10 { width: 100%; }
.score-l { font-weight: 600; color: var(--c); }

/* the alert cards: two in a row, the main facts in four boxes, the bot's full card one tap away */
.agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 1180px) { .agrid { grid-template-columns: minmax(0, 1fr); } }
.acard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t-fast); }
.acard:hover { box-shadow: var(--sh-2); border-color: var(--line-2); transform: translateY(-2px); }
.acard::before, .dcard::before { content: ""; position: absolute; inset-inline-start: -1px; top: 18px; bottom: 18px; width: 3px;
  border-radius: 3px; background: var(--c, transparent); }
.acard.t-great, .dcard.t-great { --c: #0E9F6E; } .acard.t-good, .dcard.t-good { --c: #2563EB; }
.acard.t-fair, .dcard.t-fair { --c: #D97706; } .acard.t-weak, .acard.t-none, .dcard.t-weak { --c: #CBD5E1; }
.acard:has(.why-no[open]) { z-index: 6; }
.acard-top { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.acard .thumb, .acard .thumb-ph { width: 72px; height: 72px; border-radius: 14px; }
.acard-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.acard-tags .chip { padding: 3px 9px; font-size: 12px; }
.stag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.acard-t { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.acard-t a { color: var(--ink); }
.acard-t a:hover { color: var(--primary); text-decoration: none; }
.acard-src { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.astats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0; }
.astats > div { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); }
.astats dt { font-size: 12px; color: var(--muted); }
.astats dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.astats .main { background: var(--primary-soft); }
.astats .main dt { color: #4B62A8; }
.astats .main dd { font-size: 18px; color: var(--primary); }
.astats dd.down { color: var(--success); }
.awhy { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.awhy .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.awhy.ok .icon { color: var(--success); }
.amore { padding-top: 8px; border-top: 1px dashed var(--line); }
.amore > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  font-weight: 500; color: var(--primary); }
.amore > summary::-webkit-details-marker { display: none; }
.amore > summary .icon { width: 15px; height: 15px; transition: transform var(--t) var(--ease); }
.amore[open] > summary .icon { transform: rotate(180deg); }
.amore .tgcard { font-size: 13.5px; animation: rise var(--t) var(--ease) both; }
.aact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.aact form { display: block; }
.aact .why-no { position: relative; }
.aact .why-no > summary { width: auto; }
.aact .why-no-list { position: absolute; z-index: 20; top: calc(100% + 6px); inset-inline-start: 0; min-width: 220px; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); animation: pop var(--t-fast) var(--ease) both; }
.aact .why-no-list .btn { width: 100%; justify-content: flex-start; }
.astate { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.empty-box { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 40px 20px; border: 1px dashed var(--line-2);
  border-radius: 18px; color: var(--muted); text-align: center; }
.empty-box .icon-lg { width: 30px; height: 30px; }
.empty-box p { margin: 0; }

/* /deals: the same score and stripe, the buttons quiet */
.dcard { position: relative; border-radius: 18px; }
.deal.dcard .deal-meta { gap: 6px 12px; }
.deal-act.dact { width: 136px; gap: 6px; }
.dchecked { display: flex; align-items: center; gap: 6px; }
.dchecked .icon { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .ph-ic, .score-bar i, .pop-in, .amore .tgcard { animation: none; } }
/* round 6b: "55/100" reads left to right; a select is as wide as its chosen value (where the browser can) */
.score-n { direction: ltr; unicode-bidi: isolate; }
.fsel select { field-sizing: content; }
/* round 6c, the phone: the status tabs and the shops two by two, nothing alone on a row */
@media (max-width: 640px) {
  .ftabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftab { justify-content: center; padding: 0 10px; }
  .fstores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .fpill { justify-content: center; }
}


/* drafts page (18.10) */
.dtop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1100px) { .dtop { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.dtop .card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.dtop h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.dtop h2 .icon { width: 20px; height: 20px; color: var(--primary); }
.dtop .help { margin: 0; }
.dtop form { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.dtop textarea { min-height: 64px; resize: vertical; }
.dnew-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.dnew-row .fpill .icon { width: 16px; height: 16px; }
.dmc form .btn { align-self: flex-start; }
.dgrid .dday { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; font-size: 14.5px;
  font-weight: 600; color: var(--ink-2); }
.dgrid .dday:first-child { margin-top: 0; }
.dgrid .dday .icon { width: 18px; height: 18px; color: var(--primary); }
.acard.t-bad { --c: var(--danger); }
.dcard-d { gap: 10px; padding: 14px 16px; }
.dcard-d .acard-top { grid-template-columns: 64px minmax(0, 1fr); }
.dcard-d .thumb, .dcard-d .thumb-ph { width: 64px; height: 64px; }
.dfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.dprice { font-size: 18px; font-weight: 700; color: var(--primary); }
.dwhen { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px;
  background: var(--surface-2); color: var(--ink-2); }
.dwhen .icon { width: 15px; height: 15px; color: var(--muted); }
.dwhen b { font-weight: 600; color: var(--ink); }
.dfoot .btn { margin-inline-start: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dtabs .ftab, .dnew-row .fpill { white-space: nowrap; }
@media (max-width: 640px) {
  .ftabs.dtabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ftabs.dtabs::-webkit-scrollbar { display: none; }
  .ftabs.dtabs .ftab { flex: 0 0 auto; }
  .dtop .help { display: none; }
  .dnew-row .fstores { display: flex; width: 100%; }
  .dnew-row .fpill { flex: 1; justify-content: center; padding: 0 8px; }
  .dnew-row .btn { width: 100%; justify-content: center; }
}

/* the AliExpress search's progress (18.10) */
.jobcard { display: grid; gap: 12px; max-width: 720px; margin: 18px auto 0; padding: 22px 24px; }
.job-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.job-head b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.job-spin .icon { width: 22px; height: 22px; color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.job-pct { font-weight: 700; color: var(--primary); }
.jobcard progress { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); appearance: none; }
.jobcard progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.jobcard progress::-webkit-progress-value { background: linear-gradient(90deg, #4F7DF3, var(--primary)); border-radius: 999px; transition: width .5s ease; }
.jobcard progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.job-stage { margin: 0; color: var(--ink-2); font-size: 14px; min-height: 1.5em; }
.job-steps { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; list-style: none; }
.job-steps li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); font-size: 13px; transition: background .3s, color .3s; }
.job-steps li .icon { width: 14px; height: 14px; opacity: 0; transition: opacity .3s; }
.job-steps li.is-now { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.job-steps li.is-done { background: var(--success-soft); color: var(--success); }
.job-steps li.is-done .icon { opacity: 1; }
.jobcard .help { margin: 0; }
@media (prefers-reduced-motion: reduce) { .job-spin .icon { animation: none; } }

/* the charts' tooltip (18.10) */
.ctip { position: absolute; z-index: 60; max-width: min(320px, calc(100vw - 16px)); padding: 7px 11px; border-radius: 10px;
  background: #0F172A; color: #fff; font-size: 13px; line-height: 1.45; box-shadow: var(--sh-2); pointer-events: none; }
.chart [data-tip], .spark [data-tip] { cursor: pointer; outline: none; }
.spark .hit { fill: transparent; }
.chart rect[data-tip].is-on, .chart rect[data-tip]:focus-visible, .spark rect[data-tip].is-on, .spark rect[data-tip]:focus-visible { fill: rgba(30, 64, 175, .09); }

/* the new-post page and the dashboard's quick box (18.10) */
.np-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .np-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
.np-main, .np-side .card { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.np-side { display: grid; gap: 16px; }
.np-grid h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.np-grid h2 .icon { width: 20px; height: 20px; color: var(--primary); }
.np-form { display: grid; gap: 14px; }
.np-form textarea { min-height: 120px; font-size: 15px; line-height: 1.7; resize: vertical; }
.np-stores { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.np-stores .help { margin: 0; }
.np-mode { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.np-mode legend { padding: 0; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.np-mode .fpill .icon { width: 16px; height: 16px; }
.np-go { justify-self: start; min-width: 200px; justify-content: center; height: 46px; font-size: 15.5px; }
.np-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 4px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--line); list-style: none; }
.np-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; align-items: center; }
.np-steps b { font-size: 14px; }
.np-steps li > span:last-child { grid-column: 2; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.np-n { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; }
.np-mc { display: grid; gap: 8px; }
.np-mc label { font-size: 13px; color: var(--ink-2); }
.np-mc .btn { justify-self: start; }
.np-recent { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.np-recent a { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 10px; align-items: center;
  padding: 6px 8px; border-radius: 12px; color: var(--ink); }
.np-recent a:hover { background: var(--surface-2); text-decoration: none; }
.np-recent .thumb, .np-recent .thumb-ph { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; }
.np-r-t { font-size: 13.5px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.np-r-m { font-size: 12px; color: var(--muted); }
.dbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.quickpost { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 14px 16px; margin: 0; }
.quickpost h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; white-space: nowrap; }
.quickpost h2 .icon { width: 20px; height: 20px; color: var(--primary); }
.quickpost input[type=url] { flex: 1 1 280px; min-width: 0; height: 44px; }
.quickpost .link-more { font-size: 13px; }
@media (max-width: 640px) { .quickpost .btn { flex: 1 1 100%; justify-content: center; } .np-go { width: 100%; } }

/* the coupons page (18.10) */
.cp-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 6px; }
.cp-h h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16.5px; }
.cp-h h2 > .icon { width: 20px; height: 20px; color: var(--primary); }
.cp-h .chip .icon { width: 14px; height: 14px; }
.cp-sec > .help, .card > .help { margin: 0 0 12px; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ticket { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-1); overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.ticket:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.ticket-off { display: grid; place-content: center; justify-items: center; gap: 0; padding: 12px 6px;
  background: linear-gradient(160deg, #EEF2FF, #DBE4FF); color: var(--primary); border-inline-end: 2px dashed #C7D2FE; position: relative; }
.ticket-off::before, .ticket-off::after { content: ""; position: absolute; inset-inline-end: -9px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg, #F5F7FB); border: 1px solid var(--line); }
.ticket-off::before { top: -9px; } .ticket-off::after { bottom: -9px; }
.ticket-off b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.ticket-off span { font-size: 12px; font-weight: 600; }
.ticket-off small { font-size: 12px; color: #4B62A8; }
.ticket-body { display: grid; gap: 8px; padding: 12px 14px; align-content: center; }
.ticket-min { font-size: 13.5px; color: var(--ink-2); }
.ticket-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-code code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 15px; font-weight: 700;
  letter-spacing: .04em; padding: 5px 10px; border-radius: 9px; background: var(--surface-2); border: 1px dashed var(--line-2); color: var(--ink); }
.ticket-code .btn.is-copied { background: var(--success-soft); color: var(--success); }
.cp-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cp-store { display: grid; gap: 10px; margin: 0; padding: 14px 16px; }
.cp-store-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cp-what { font-size: 13.5px; color: var(--ink-2); }
.cp-what b { color: var(--success); }
.cp-items { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cp-items a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px; border-radius: 10px; color: var(--ink); font-size: 13px; }
.cp-items a:hover { background: var(--surface-2); text-decoration: none; }
.cp-items a span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cp-items .thumb, .cp-items .thumb-ph, .cp-amz .thumb, .cp-amz .thumb-ph { width: 36px; height: 36px; border-radius: 8px; }
.cp-foot { border-top: 1px solid var(--line); padding-top: 8px; }
.cp-two { display: grid; gap: 14px; }
@media (min-width: 1000px) { .cp-two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.cp-two .card { margin: 0; }
.cp-amz { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cp-amz li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.cp-amz li a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.cp-amz .chip .icon { width: 13px; height: 13px; }
.cp-ksp { padding: 24px 16px; }

/* the product check (18.10): one narrow column */
.ck-wrap { display: grid; gap: 14px; max-width: 760px; margin-inline: auto; }
.ck-steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.ck-steps li { flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: 140px; padding: 8px 12px; border-radius: 12px;
  background: var(--surface-2); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.ck-steps li.now { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.ck-steps li.done { background: var(--success-soft); color: var(--success); }
.ck-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); font-size: 12.5px; font-weight: 700; flex: none; }
.ck-n .icon { width: 14px; height: 14px; }
.ck-card { display: grid; gap: 12px; margin: 0; }
.ck-card h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.ck-card h2 .icon { width: 20px; height: 20px; color: var(--primary); }
.ck-form { margin: 0; }
.ck-field { display: flex; align-items: center; gap: 8px; padding: 5px; padding-inline-start: 14px; border: 1px solid var(--line-2);
  border-radius: 14px; background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.ck-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ck-field > .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ck-field input { flex: 1; min-width: 0; border: 0; background: transparent; height: 40px; padding: 0; box-shadow: none; font-size: 15px; }
.ck-field input:focus { outline: none; box-shadow: none; }
.ck-field .btn { flex: none; height: 42px; }
.ck-field.sm input { height: 34px; font-size: 14px; }
.ck-field.sm .btn { height: 36px; }
.ck-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.ck-help .sdot { margin-inline-start: 6px; }
.ck-found { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.ck-img { width: 120px; height: 120px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ck-tg { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.75; }
.ck-act { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-more { border-top: 1px solid var(--line); padding-top: 10px; }
.ck-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; color: var(--primary); font-weight: 500; }
.ck-more summary .icon { width: 15px; height: 15px; }
.ck-more[open] summary { margin-bottom: 10px; }
.ck-verdict { border-color: #C7D2FE; box-shadow: 0 0 0 3px var(--primary-soft), var(--sh-1); }
@media (max-width: 640px) {
  .ck-found { grid-template-columns: 1fr; }
  .ck-img { width: 96px; height: 96px; }
  .ck-steps li { min-width: 0; padding: 7px 9px; font-size: 12.5px; }
  .ck-field { flex-wrap: wrap; padding: 8px; }
  .ck-field .btn { width: 100%; justify-content: center; }
}

/* /products: sortable headers (18.10) */
th.sth { padding: 0; }
th.sth a { display: inline-flex; align-items: center; gap: 5px; padding: 10px 12px; color: inherit; white-space: nowrap; border-radius: 8px; }
th.sth a:hover { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
th.sth .sth-i { font-size: 10px; opacity: .45; }
th.sth.on a { color: var(--primary); }
th.sth.on .sth-i { opacity: 1; }

/* /radar (18.10): picture cards */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--sh-1); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.rcard-img { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 100%; background: #fff; border-bottom: 1px solid var(--line); }
.rcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.rcard-ph { display: grid; place-items: center; height: 100%; color: var(--muted); background: var(--surface-2); }
.rcard-price { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; padding: 4px 11px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 6px 14px -6px rgba(30, 64, 175, .7); }
.rcard-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.rcard-body .acard-tags { margin: 0; }
.rcard-body .chip .icon { width: 13px; height: 13px; }
.rcard-t { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-t a { color: var(--ink); }
.rcard-t a:hover { color: var(--primary); text-decoration: none; }
.rcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.rcard-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.rcard.is-sent { opacity: .82; }
.t-title { min-width: 240px; }

/* /sales (18.10) */
.sl-periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sl-period { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 16px 18px; }
.sl-period.is-main { background: linear-gradient(160deg, #F3F6FF, #fff 60%); border-color: #D6DEFA; }
.sl-p-h { display: flex; align-items: center; gap: 8px; }
.sl-p-h h2 { margin: 0; font-size: 15px; flex: 1; }
.sl-p-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.sl-p-ic .icon { width: 17px; height: 17px; }
.sl-p-n { font-size: 12.5px; color: var(--muted); }
.sl-p-total { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.sl-p-total.up { color: var(--success); } .sl-p-total.down { color: var(--danger); }
.sl-stores { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sl-stores li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; font-size: 13.5px; }
.sl-s-name { font-weight: 500; }
.sl-s-bar, .sl-d-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.sl-s-bar i, .sl-d-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6D8DF6, var(--primary));
  transform-origin: right center; animation: cm-grow 800ms var(--ease) both; }
.sl-s-v { font-weight: 700; }
.sl-s-bar i.w0, .sl-d-bar i.w0 { width: 3%; } .sl-s-bar i.w1, .sl-d-bar i.w1 { width: 10%; } .sl-s-bar i.w2, .sl-d-bar i.w2 { width: 20%; } .sl-s-bar i.w3, .sl-d-bar i.w3 { width: 30%; } .sl-s-bar i.w4, .sl-d-bar i.w4 { width: 40%; } .sl-s-bar i.w5, .sl-d-bar i.w5 { width: 50%; } .sl-s-bar i.w6, .sl-d-bar i.w6 { width: 60%; } .sl-s-bar i.w7, .sl-d-bar i.w7 { width: 70%; } .sl-s-bar i.w8, .sl-d-bar i.w8 { width: 80%; } .sl-s-bar i.w9, .sl-d-bar i.w9 { width: 90%; } .sl-s-bar i.w10, .sl-d-bar i.w10 { width: 100%; }
.sl-s-c { grid-column: 2 / -1; }
.sl-kv { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sl-kv li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.sl-kv li > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.sl-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.sl-order { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: box-shadow var(--t) var(--ease), border-color var(--t); }
.sl-order:hover { box-shadow: var(--sh-1); border-color: var(--line-2); }
.sl-order[open] { box-shadow: var(--sh-2); border-color: #C7D2FE; }
.sl-order summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.sl-order summary::-webkit-details-marker { display: none; }
.sl-order .thumb, .sl-order .thumb-ph { width: 48px; height: 48px; border-radius: 10px; }
.sl-o-main { display: grid; gap: 2px; min-width: 0; }
.sl-o-t { text-align: start; font-size: 13.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sl-o-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sl-o-side { display: grid; justify-items: end; gap: 3px; }
.sl-o-com { font-size: 15px; color: var(--success); }
.sl-o-side .chip { font-size: 11.5px; padding: 1px 8px; }
.sl-order.t-bad .sl-o-com { color: var(--muted); text-decoration: line-through; }
.sl-o-d { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0; padding: 4px 12px 10px; animation: rise var(--t) var(--ease) both; }
.sl-o-d > div { padding: 7px 10px; border-radius: 10px; background: var(--surface-2); }
.sl-o-d dt { font-size: 11.5px; color: var(--muted); }
.sl-o-d dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.sl-o-act { display: flex; gap: 6px; padding: 0 12px 12px; }
.sl-days-h { margin-bottom: 10px; }
.sl-days { display: grid; gap: 8px; }
.sl-day { margin: 0; padding: 0; overflow: hidden; }
.sl-day summary { display: grid; grid-template-columns: 110px minmax(80px, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.sl-day summary::-webkit-details-marker { display: none; }
.sl-day summary:hover { background: var(--surface-2); }
.sl-d-date { display: grid; line-height: 1.3; }
.sl-d-date b { font-size: 16px; }
.sl-d-date span { font-size: 12px; color: var(--muted); }
.sl-d-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.sl-d-earn { font-size: 16px; font-weight: 800; color: var(--success); min-width: 70px; text-align: left; }
.sl-d-rows { display: grid; gap: 0; margin: 0; padding: 0 16px 10px; list-style: none; border-top: 1px solid var(--line); animation: rise var(--t) var(--ease) both; }
.sl-d-rows li { display: grid; grid-template-columns: minmax(150px, 1.3fr) 1fr 1fr auto; gap: 10px; align-items: center; padding: 9px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.sl-d-rows li:last-child { border-bottom: 0; }
.sl-d-store { display: inline-flex; align-items: center; gap: 6px; }
.sl-d-com { color: var(--success); min-width: 64px; text-align: left; }
.sl-week { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sl-w { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.sl-w span { font-size: 12.5px; color: var(--muted); }
.sl-w b { font-size: 22px; font-weight: 800; }
.sl-w small { font-size: 12px; color: var(--ink-2); }
.sl-line { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; }
.sl-line .icon { width: 17px; height: 17px; color: var(--primary); flex: none; margin-top: 3px; }
@media (max-width: 640px) {
  .sl-orders { grid-template-columns: 1fr; }
  .sl-day summary { grid-template-columns: 80px 1fr; }
  .sl-d-bar { display: none; }
  .sl-d-rows li { grid-template-columns: 1fr auto; }
  .sl-d-rows li > span:nth-child(2), .sl-d-rows li > span:nth-child(3) { grid-column: 1; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .sl-s-bar i, .sl-d-bar i, .sl-o-d, .sl-d-rows { animation: none; } }

/* /costs (18.10): the running costs as rows; date fields like the rest */
input[type=date] { text-align: right; font-variant-numeric: tabular-nums; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.run-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.run-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: 14px; background: var(--surface-2); }
.run-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--primary); box-shadow: var(--sh-1); }
.run-ic .icon { width: 19px; height: 19px; }
.run-t { display: grid; gap: 1px; min-width: 0; }
.run-t b { font-size: 14px; }
.run-t small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.run-v { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px; font-size: 13.5px; color: var(--ink-2); text-align: end; }
.run-v b bdi { font-size: 16px; font-weight: 800; color: var(--ink); }
.run-sep { color: var(--line-2); margin-inline: 4px; }
.run-free { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.run-free b { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.run-free .icon { width: 16px; height: 16px; }
@media (max-width: 640px) { .run-list li { grid-template-columns: 40px minmax(0, 1fr); } .run-v { grid-column: 2; justify-content: flex-start; text-align: start; } }

/* round 9 (18.10) */
.dfoot-del { margin-inline-start: auto; }
.dfoot-del + .btn { margin-inline-start: 0; }
.btn-del:hover { color: var(--danger); background: var(--danger-soft); }
.chart .bar-future { fill: var(--surface-2); }
.chart .axis.now { fill: var(--primary); font-weight: 700; }
.chart .axis.val { font-size: 11px; font-weight: 700; fill: var(--primary); }
.hour-bars .camps-spend { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }

/* the pages' 3D icons (18.10): the picture itself, no blue tile behind it */
.ph-ic.ph-3d { width: 64px; height: 64px; background: none; box-shadow: none; border-radius: 0; }
.ph-ic.ph-3d img { width: 64px; height: 64px; filter: drop-shadow(0 8px 12px rgba(30, 64, 175, .22)); }
@media (max-width: 640px) { .ph-ic.ph-3d, .ph-ic.ph-3d img { width: 50px; height: 50px; } }
.ticket-min bdi { white-space: nowrap; display: inline-block; }

/* /audience (18.10): the index in words, separate cards */
.idxv { font-weight: 700; font-size: 13px; white-space: nowrap; }
.idxv.up { color: var(--success); } .idxv.down { color: var(--danger); }
.cm-row { grid-template-columns: minmax(84px, 9.5rem) minmax(0, 1fr) 4rem; }
.idx-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px;
  background: var(--primary-soft); color: #33437A; font-size: 13px; line-height: 1.6; }
.idx-note .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--primary); }
.idx-note .up { color: var(--success); } .idx-note .down { color: var(--danger); }
.aud-what { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 14px; }
.st-table td, .st-table th { padding-block: 7px; }
.aud-what .card { margin: 0; }
.aud-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: var(--primary); }
.aud-h3 .icon { width: 18px; height: 18px; }

.buy-list .t a { color: var(--ink); }
.buy-links { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: -2px; }
.buy-links .chip { font-size: 12px; padding: 2px 9px; }
.buy-links .chip .icon { width: 13px; height: 13px; }
/* /insights (18.10): the shops table and the heat grid */
.st-table th, .st-table td { text-align: center; vertical-align: middle; }
.st-table thead th:first-child, .st-table tbody th { text-align: start; }
.st-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.st-table td b { display: block; font-size: 15px; }
.st-p { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.st-bar { width: 40px; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.st-bar i.w0 { width: 4%; } .st-bar i.w1 { width: 10%; } .st-bar i.w2 { width: 20%; } .st-bar i.w3 { width: 30%; } .st-bar i.w4 { width: 40%; } .st-bar i.w5 { width: 50%; } .st-bar i.w6 { width: 60%; } .st-bar i.w7 { width: 70%; } .st-bar i.w8 { width: 80%; } .st-bar i.w9 { width: 90%; } .st-bar i.w10 { width: 100%; }
.st-table .us-col { background: var(--primary-soft); }
.heatgrid { display: grid; gap: 4px; max-width: 760px; margin-inline: auto; direction: rtl; }
.hg-row { display: grid; grid-template-columns: 56px repeat(18, minmax(0, 1fr)); gap: 4px; align-items: center; direction: ltr; }
.hg-row > .hg-day { order: 99; text-align: right; font-size: 13px; font-weight: 500; color: var(--ink-2); padding-inline-end: 4px; }
.hg-row { grid-template-columns: repeat(18, minmax(0, 1fr)) 56px; }
.hg-head .hg-h { font-size: 11px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.hg-c { aspect-ratio: 1; max-height: 30px; border-radius: 6px; background: var(--surface-2); cursor: pointer; transition: transform var(--t-fast); }
.hg-c:hover, .hg-c.is-on, .hg-c:focus-visible { transform: scale(1.12); outline: 2px solid var(--primary); outline-offset: 1px; }
.hg-c.h1 { background: var(--h1); } .hg-c.h2 { background: var(--h2); } .hg-c.h3 { background: var(--h3); }
.hg-c.h4 { background: var(--h4); } .hg-c.h5 { background: var(--h5); }
@media (max-width: 640px) { .hg-row { grid-template-columns: repeat(18, minmax(0, 1fr)) 40px; gap: 2px; } .hg-row > .hg-day { font-size: 11px; } .hg-c { border-radius: 3px; } }

/* ---- round 10 (18.10) ---- */
/* the filter dropdowns: our menu */
.fsel.is-js { position: relative; }
.fsel.is-js .fsel-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 1px; }
.fsel-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.fsel.is-js .fsel-caret { transition: transform var(--t) var(--ease); pointer-events: none; }
.fsel.is-open { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.fsel.is-open .fsel-caret { transform: rotate(180deg); }
.fsel-menu { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline-start: 0; min-width: 100%; max-height: 320px; overflow: auto;
  margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .28); animation: pop var(--t-fast) var(--ease) both; transform-origin: top; }
.fsel-menu li { padding: 8px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; outline: none; }
.fsel-menu li:hover, .fsel-menu li:focus { background: var(--surface-2); color: var(--ink); }
.fsel-menu li[aria-selected="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
/* /settings */
.set-layout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1000px) { .set-layout { grid-template-columns: 200px minmax(0, 1fr); } }
.set-nav { display: flex; flex-wrap: wrap; gap: 4px; }
@media (min-width: 1000px) { .set-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); flex-direction: column; } }
.set-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 11px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.set-nav a:hover { background: var(--surface); color: var(--primary); text-decoration: none; box-shadow: var(--sh-1); }
.set-nav .icon { width: 17px; height: 17px; color: var(--primary); }
.set-main, .set-form { display: grid; gap: 14px; min-width: 0; }
.set-sec { margin: 0; padding: 18px 20px; scroll-margin-top: 16px; }
.set-sec h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; font-size: 16.5px; }
.set-sec h2 .icon { width: 20px; height: 20px; color: var(--primary); }
.set-sec > .help { margin: 0 0 4px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.set-sec h2 + .set-row, .set-sec .help + .set-row { border-top: 0; }
.set-t { display: grid; gap: 2px; cursor: pointer; }
.set-t b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.set-t small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.set-num, .set-range { display: inline-flex; align-items: center; gap: 8px; }
.set-num input, .set-range input { width: 96px; min-height: 40px; text-align: center; font-weight: 600; }
.set-range span { color: var(--muted); font-size: 13px; }
.set-unit { min-width: 34px; color: var(--muted); font-size: 13px; }
.set-wide { grid-template-columns: minmax(0, 1fr); }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #CBD5E1; transition: background var(--t) var(--ease); }
.switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform var(--t) var(--ease); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(-20px); }
.switch input:focus-visible + i { outline: 2px solid var(--ring); outline-offset: 2px; }
.set-save { position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.set-save .btn { margin-inline-start: auto; }
.set-dirty { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.set-dirty .icon { width: 16px; height: 16px; }
.set-form.is-dirty .set-save { border-color: #FCD9A8; box-shadow: 0 0 0 3px #FFF4E5, var(--sh-2); }
.set-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--primary); font-weight: 500; font-size: 14px; margin-top: 6px; }
.set-more summary .icon { width: 15px; height: 15px; }
.set-info { display: grid; gap: 12px; margin-top: 12px; }
.set-info .btn { justify-self: start; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.set-int { display: grid; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; }
.set-int li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.set-int small { color: var(--muted); font-size: 12.5px; }
.dot-st.on { background: var(--success); } .dot-st.off { background: var(--accent); }
.set-int .dot-st { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
/* /status */
.st-sum { display: flex; align-items: center; gap: 22px; padding: 20px 24px; margin: 0; flex-wrap: wrap; }
.st-ring { position: relative; width: 112px; height: 112px; flex: none; }
.st-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.st-ring circle { fill: none; stroke-width: 10; }
.st-ring-bg { stroke: var(--surface-2); }
.st-ring-fg { stroke: var(--success); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; animation: st-fill 1.1s var(--ease) .15s forwards; }
.is-warn .st-ring-fg { stroke: var(--accent); }
.st-ring-fg.p0 { --off: 326.7; }
.st-ring-fg.p5 { --off: 310.4; }
.st-ring-fg.p10 { --off: 294.0; }
.st-ring-fg.p15 { --off: 277.7; }
.st-ring-fg.p20 { --off: 261.4; }
.st-ring-fg.p25 { --off: 245.0; }
.st-ring-fg.p30 { --off: 228.7; }
.st-ring-fg.p35 { --off: 212.4; }
.st-ring-fg.p40 { --off: 196.0; }
.st-ring-fg.p45 { --off: 179.7; }
.st-ring-fg.p50 { --off: 163.3; }
.st-ring-fg.p55 { --off: 147.0; }
.st-ring-fg.p60 { --off: 130.7; }
.st-ring-fg.p65 { --off: 114.3; }
.st-ring-fg.p70 { --off: 98.0; }
.st-ring-fg.p75 { --off: 81.7; }
.st-ring-fg.p80 { --off: 65.3; }
.st-ring-fg.p85 { --off: 49.0; }
.st-ring-fg.p90 { --off: 32.7; }
.st-ring-fg.p95 { --off: 16.3; }
.st-ring-fg.p100 { --off: 0.0; }
@keyframes st-fill { to { stroke-dashoffset: var(--off, 0); } }
.st-ring-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.st-ring-n b { font-size: 30px; font-weight: 800; }
.st-ring-n small { font-size: 12px; color: var(--muted); }
.st-sum-t { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.st-sum-t h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; }
.st-sum-t p { margin: 0; font-size: 13.5px; }
.st-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.st-c { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 500; }
.st-c i { width: 8px; height: 8px; border-radius: 50%; }
.st-c.ok i { background: var(--success); } .st-c.warn i { background: var(--accent); } .st-c.down i { background: var(--danger); } .st-c.off i { background: #94A3B8; }
.st-refresh { align-self: flex-start; }
.st-live { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: #94A3B8; }
.st-live.ok { background: var(--success); } .st-live.warn { background: var(--accent); } .st-live.down { background: var(--danger); }
.st-live.ok::after, .st-live.warn::after, .st-live.down::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: st-ping 2.4s var(--ease) infinite; }
@keyframes st-ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.st-probs { margin: 0; border-color: #FBD5D5; background: linear-gradient(180deg, #FFF5F5, var(--surface)); }
.st-probs h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; color: var(--danger); }
.st-probs h2 .icon { width: 19px; height: 19px; }
.st-probs ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 14px; }
.st-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.st-group { margin: 0; padding: 14px 16px; }
.st-group header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.st-group h2 { margin: 0; font-size: 15px; }
.st-g-n { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.st-g-n.ok { background: var(--success-soft); color: var(--success); } .st-g-n.warn { background: var(--warn-soft); color: var(--accent); }
.st-group ul { margin: 0; padding: 0; list-style: none; display: grid; }
.st-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); }
.st-item:first-child { border-top: 0; }
.st-i-t { display: grid; min-width: 0; }
.st-i-t b { font-size: 13.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-i-t small { font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-badge { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.st-badge.warn { background: var(--warn-soft); color: var(--accent); } .st-badge.down { background: var(--danger-soft); color: var(--danger); }
.st-badge.off { background: var(--surface-2); color: var(--muted); }
.st-item.s-warn, .st-item.s-down { background: linear-gradient(90deg, transparent, var(--surface-2)); border-radius: 8px; }
/* /insights: a card per channel */
.sh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sh-card { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.sh-card.is-us { background: var(--primary-soft); border-color: #C7D2FE; }
.sh-card header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sh-card h3 { margin: 0; font-size: 15.5px; }
.sh-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sh-card li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-size: 13.5px; }
.sh-n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.sh-bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.sh-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6D8DF6, var(--primary)); transform-origin: right; animation: cm-grow .8s var(--ease) both; }
.sh-bar i.w0 { width: 3%; } .sh-bar i.w1 { width: 10%; } .sh-bar i.w2 { width: 20%; } .sh-bar i.w3 { width: 30%; } .sh-bar i.w4 { width: 40%; } .sh-bar i.w5 { width: 50%; } .sh-bar i.w6 { width: 60%; } .sh-bar i.w7 { width: 70%; } .sh-bar i.w8 { width: 80%; } .sh-bar i.w9 { width: 90%; } .sh-bar i.w10 { width: 100%; }
.sh-v { display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; }
.sh-v b { font-size: 14px; }
.sh-v small { font-size: 11.5px; color: var(--muted); }
.sh-card > p { margin: 8px 0 0; }
/* /audience: everything bought */
.few { color: var(--accent); font-weight: 600; }
.buy-table td, .buy-table th { vertical-align: middle; }
.bt-main { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.bt-main .thumb, .bt-main .thumb-ph { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.bt-t { display: grid; min-width: 0; }
.bt-t > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 460px; font-weight: 500; }
.bt-t small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.bt-qty { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }
.bt-links { white-space: nowrap; }
.bt-links .chip { font-size: 12px; padding: 2px 8px; }
.bt-links .chip .icon { width: 13px; height: 13px; }
.buy-table tr.is-filtered { display: none; }
input[dir="auto"]:placeholder-shown { text-align: right; }
.sh-bar, .sl-s-bar, .sl-d-bar, .st-bar { display: flex; flex-direction: row; } .sh-bar i, .sl-s-bar i, .sl-d-bar i, .st-bar i { flex: none; }

/* round 11 (18.10) */
.fsel.is-js .fsel-caret { position: static; inset: auto; flex: none; margin-inline-start: 2px; }
.fsel.is-js { padding-inline: 12px 10px; cursor: pointer; }
.fsel.is-js .fsel-btn { padding-inline-end: 0; }
.fsel-menu { position: fixed; }
.buy-table tr.is-paged { display: none; }
.pager-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.pg-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.pg { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 13.5px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.pg:hover { border-color: var(--line-2); background: var(--surface-2); }
.pg.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pg-gap { align-self: center; padding: 0 4px; color: var(--muted); }
input.link-in:not(:placeholder-shown) { direction: ltr; text-align: left; }

/* ---------- 🎨 the post's background (19.10) ---------- */
.cover-ctl .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-orig { display: flex; align-items: center; gap: 10px; }
.cover-orig img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); flex: none; }

/* /costs (Noy 21.10): who paid, the running costs as tiles, who spent how much */
.payer-f { margin: 0; }
.payer-sel { min-height: 36px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13.5px; color: var(--ink); }
.payer-sel.is-none { color: var(--muted); border-style: dashed; }
.run-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.run-tile { display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.run-h { display: flex; align-items: center; gap: 10px; }
.run-h b { font-size: 14.5px; }
.run-tile .run-ic { width: 34px; height: 34px; border-radius: 10px; }
.run-big { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.run-big small { font-size: 13px; font-weight: 500; color: var(--muted); }
.run-sub { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.run-tile .payer-f { margin-top: 4px; }
.who-noy { --who: #3B6FF5; } .who-tomer { --who: #E8833A; } .who-joint { --who: #22A06B; } .who-none { --who: #A3ACBA; }
.who-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); margin: 12px 0 14px; }
.who-bar i { display: block; height: 100%; background: var(--who); }
.who-bar i.w0 { width: 0%; }
.who-bar i.w1 { width: 5%; }
.who-bar i.w2 { width: 10%; }
.who-bar i.w3 { width: 15%; }
.who-bar i.w4 { width: 20%; }
.who-bar i.w5 { width: 25%; }
.who-bar i.w6 { width: 30%; }
.who-bar i.w7 { width: 35%; }
.who-bar i.w8 { width: 40%; }
.who-bar i.w9 { width: 45%; }
.who-bar i.w10 { width: 50%; }
.who-bar i.w11 { width: 55%; }
.who-bar i.w12 { width: 60%; }
.who-bar i.w13 { width: 65%; }
.who-bar i.w14 { width: 70%; }
.who-bar i.w15 { width: 75%; }
.who-bar i.w16 { width: 80%; }
.who-bar i.w17 { width: 85%; }
.who-bar i.w18 { width: 90%; }
.who-bar i.w19 { width: 95%; }
.who-bar i.w20 { width: 100%; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.who-card { border: 1px solid var(--line); border-top: 4px solid var(--who); border-radius: var(--r); padding: 12px 14px; background: var(--surface); }
.who-card header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.who-n { font-weight: 700; }
.who-card header b { margin-inline-start: auto; font-size: 18px; }
.who-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.who-card li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; font-size: 13.5px; padding-top: 6px; border-top: 1px dashed var(--line); }
.who-card li:first-child { border-top: 0; padding-top: 0; }
.run-tile .run-big { direction: rtl; text-align: start; justify-self: start; }
.run-tile .run-big bdi { unicode-bidi: isolate; }
.run-end { margin: 2px 0; font-size: 13.5px; color: var(--ink-2); }
.run-end.is-soon { color: var(--danger, #C2410C); font-weight: 700; }
.egress-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.egress-f select { min-height: 36px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 13px; }

/* ===== the admin on a phone, round 2 (Noy 22.10: "לא מותאם, מלא דברים גדולים") — phones only, the desktop as it was ===== */
@media (max-width: 640px) {
  /* every page's head: the icon beside the title, the explanation in two short lines */
  .page-hero { flex-wrap: nowrap; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 16px; }
  .page-hero::after { width: 160px; height: 160px; top: -70px; }
  .ph-ic, .ph-ic.ph-3d, .ph-ic.ph-3d img { width: 34px; height: 34px; border-radius: 10px; }
  .ph-ic .icon { width: 18px; height: 18px; }
  .ph-text { flex: 1 1 0; }
  .page-hero h1 { font-size: 18px; line-height: 1.25; }
  .page-hero .ph-text p { margin-top: 3px; font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; }
  .page-hero .actions { flex: 1 1 100%; gap: 6px; }
  .page-hero .actions .btn { min-height: 34px; padding: 0 10px; font-size: 13px; }
  .page-hero { flex-wrap: wrap; }
  .page-hero > .ph-ic { order: 0; } .page-hero > .ph-text { order: 1; flex: 1 1 calc(100% - 48px); }
  .page-hero > .actions { order: 2; }

  /* cards and numbers a size smaller */
  .card { padding: 14px; border-radius: 16px; }
  .card h2 { font-size: 16px; }
  .kpi .value, a.kpi-link .value { font-size: 21px; }
  .kpi { padding: 12px; gap: 4px; }
  .kpi .label { font-size: 12.5px; }
  .sl-p-total { font-size: 24px; }
  .run-big { font-size: 18px; }
  .grid { gap: 10px; }

  /* long words (a pasted URL, a long English search) wrap instead of pushing the page sideways */
  .grid > *, .card, .status-row > span { min-width: 0; }
  .status-row > span:first-child, .card td, .card dd, .card p { overflow-wrap: anywhere; }

  /* tabs: two per row, the name cut when long */
  .ftab { min-width: 0; min-height: 38px; font-size: 13.5px; }
  .ftab bdi, .ftab > span:not(.fcnt) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* settings: a field with a long explanation goes under it, not beside it */
  .set-row:not(.set-sw) { grid-template-columns: minmax(0, 1fr); }
  .set-row:not(.set-sw) .set-num, .set-row:not(.set-sw) .set-range { justify-self: start; }

  /* radar: a row per item (the picture small beside the text), not a full-screen picture */
  .rcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); border-radius: 14px; }
  .rcard-img { aspect-ratio: auto; height: 100%; min-height: 96px; border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .rcard-img img { position: absolute; inset: 0; padding: 6px; }
  .rcard-price { inset-block-end: 6px; inset-inline-start: 6px; padding: 2px 7px; font-size: 11.5px; }
  .rcard-body { padding: 10px 12px; gap: 6px; }
  .rcard-t { font-size: 13.5px; -webkit-line-clamp: 2; }
  .rcard-act { padding-top: 8px; }
  .rcard-act .btn { min-height: 32px; font-size: 12.5px; }
}

/* ===== 🖋 INK DEALS admin (ink.noyapps.com, 28.10) ===== */
.brand-logo.ink-logo { width: auto; height: 48px; border-radius: 0; background: none; }
.auth-logo.ink-auth-logo { width: auto; height: 132px; border-radius: 0; background: none; box-shadow: none; }
.ink-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ink-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.ink-card img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: #fff; flex: none; }
.ink-card-t { display: grid; gap: 3px; min-width: 0; }
.ink-card-t b { overflow-wrap: anywhere; }
.ink-hook { color: #dc2626; font-weight: 700; }
.ink-preview { display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: 16px; background: #fafaf9; border: 1px solid var(--line); }
.ink-preview img { width: 220px; height: 220px; object-fit: contain; border-radius: 12px; background: #fff; }
.ink-preview p { margin: 0; }
.ink-pv-t { font-size: 17px; }
.ink-pv-price { display: flex; align-items: baseline; gap: 8px; }
.ink-pv-price b { font-size: 22px; }
.ink-filter { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 640px) { .ink-filter { grid-template-columns: 1fr; } .ink-cards { grid-template-columns: 1fr; } }
