/* גיוס אנשי מכירות · סינון מועמדים – איציק עוז ייעוץ עסקי.
   באותה שפה של "מעקב ליווי": רקע בהיר, קווים דקים, זהב רק לפעולה ולמספרים.
   Heebo לטקסט ו־Bebas Neue למספרים. ירוק, צהוב ואדום רק לסטטוס ולציון, ותמיד יחד עם מילה. */
:root {
  color-scheme: light;
  --font: 'Heebo', 'Segoe UI', Arial, sans-serif;
  --num: 'Bebas Neue', 'Heebo', Impact, sans-serif;
  --page: #fbfaf7; --surface: #ffffff; --soft: #f5f2ec; --hover: #faf8f4;
  --line: #ece7de; --line-2: #ddd5c7;
  --ink: #141414; --ink-2: #4a4740; --muted: #8a857b; --faint: #b9b3a7;
  --gold: #8a6a2f; --gold-hi: #b48a3c; --gold-soft: rgba(180, 138, 60, .09); --gold-line: rgba(180, 138, 60, .35);
  --good: #2d7a4f; --good-bg: #edf6f0; --warn: #9a6200; --warn-bg: #fdf5e3; --bad: #b3261e; --bad-bg: #fbeeed;
  --blue: #2f5d8a; --blue-bg: #edf2f8;
  --overlay: rgba(20, 20, 20, .32);
  font-family: var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--page); font-size: 14px; line-height: 1.5; min-height: 100vh;
  -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
svg.i { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.sm { width: 14px; height: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-family: var(--num); letter-spacing: .02em; font-weight: 400; }

.loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 2px solid var(--line-2); border-top-color: var(--gold-hi); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none;
  transition: border-color .15s, background .15s, color .15s; }
.btn:hover { border-color: var(--gold-hi); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--page); }
.btn.dark:hover { background: var(--gold); border-color: var(--gold); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { color: var(--bad); }
.btn.wa { color: #1f7a4d; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.icon-btn { width: 34px; padding: 0; }
.btn:focus-visible, .stat:focus-visible, .chip-btn:focus-visible, .fld:focus-visible, .rb button:focus-visible, .gb button:focus-visible,
.dtab:focus-visible, .out:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; }

/* ---------- ראש העמוד ---------- */
.top { max-width: 1520px; margin: 0 auto; padding: 18px 28px 0; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 6px; }
.brand-t { font-weight: 800; font-size: 14px; line-height: 1.15; }
.brand-s { font-size: 11.5px; color: var(--muted); }
.top-sp { flex: 1; }
.who { font-size: 12.5px; color: var(--muted); }
.who b { color: var(--ink); font-weight: 700; }
.menu-wrap { position: relative; }
.menu { position: absolute; top: 40px; left: 0; z-index: 30; min-width: 230px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); padding: 6px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 8px; text-align: start; background: none; border: 0; padding: 8px 10px;
  border-radius: 5px; font-size: 13px; font-weight: 500; }
.menu button:hover { background: var(--soft); }

.wrap { max-width: 1520px; margin: 0 auto; padding: 22px 28px 80px; }
h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

/* על הפרק */
.agenda { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold-hi); border-radius: 6px; }
.agenda .h { font-weight: 800; font-size: 12.5px; color: var(--gold); }
.agenda .it { font-size: 13px; color: var(--ink-2); }
.agenda .it b { color: var(--ink); }
.agenda .it button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-line); font-weight: 600; }

/* ---------- מספרים שהם גם סינון ---------- */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { background: none; border: 0; text-align: start; padding: 12px 14px 12px; border-inline-start: 1px solid var(--line); position: relative; }
.stat:first-child { border-inline-start: 0; padding-inline-start: 2px; }
.stat .v { font-family: var(--num); font-size: 34px; line-height: 1; display: block; color: var(--ink); }
.stat .l { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.stat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.stat:hover { background: var(--hover); }
.stat[aria-pressed="true"]::after { content: ''; position: absolute; inset-inline: 14px; bottom: -1px; height: 2px; background: var(--ink); }
.stat[aria-pressed="true"] .v { color: var(--gold); }

/* ---------- סרגל ---------- */
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 10px; }
.search { position: relative; flex: 0 1 300px; }
.search .i { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 34px; padding: 0 34px 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); }
.search input:focus { outline: none; border-color: var(--gold-hi); }
.chip-btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 17px; border: 1px solid var(--line-2);
  background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.bar .sp { flex: 1; }
.count { font-size: 12.5px; color: var(--muted); }

/* ---------- טבלה ---------- */
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; min-width: 1180px; }
.t th { position: sticky; top: 0; background: var(--surface); z-index: 1; text-align: start; font-size: 11.5px; font-weight: 700; color: var(--muted);
  padding: 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--ink); }
.t th .arr { color: var(--gold); margin-inline-start: 3px; }
.t th.grp { border-inline-start: 1px solid var(--line); }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; }
.t td.grp { border-inline-start: 1px solid var(--line); }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { cursor: pointer; transition: background .1s; }
.t tbody tr:hover { background: var(--hover); }
.t tbody tr.sel { background: var(--gold-soft); }
.t .sn { font-family: var(--num); font-size: 17px; color: var(--muted); width: 44px; }
.t .dt { color: var(--ink-2); white-space: nowrap; font-size: 12.5px; }
.t .dt small { display: block; color: var(--faint); font-size: 11px; }
.t .nm { font-weight: 700; }
.t .ph { white-space: nowrap; direction: ltr; text-align: end; font-variant-numeric: tabular-nums; }
.t .ph a { text-decoration: none; }
.t .ph a:hover { color: var(--gold); }
.t .ad { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 12.5px; }
.t .nt { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 12.5px; }
.t .act { width: 1%; white-space: nowrap; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }

/* כן / לא מהטופס */
.yn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.yn.y { color: var(--good); background: var(--good-bg); }
.yn.n { color: var(--bad); background: var(--bad-bg); }
.yn.e { color: var(--faint); background: none; padding: 0; font-weight: 500; }

/* סטטוס */
.st { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.st select { appearance: none; -webkit-appearance: none; border: 1px solid transparent; border-radius: 13px; padding: 3px 11px 3px 24px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; max-width: 210px; background-repeat: no-repeat; background-position: left 8px center;
  background-size: 9px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.4'/%3E%3C/svg%3E"); }
.st select:focus { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.s-new { color: var(--gold); background-color: var(--gold-soft); border-color: var(--gold-line) !important; }
.s-noans { color: var(--warn); background-color: var(--warn-bg); }
.s-ans { color: var(--blue); background-color: var(--blue-bg); }
.s-irr { color: var(--muted); background-color: var(--soft); }
.s-int { color: var(--good); background-color: var(--good-bg); }
.tries { font-size: 11.5px; color: var(--warn); font-weight: 700; white-space: nowrap; }

/* ציון */
.score { display: inline-flex; align-items: baseline; gap: 5px; }
.score .n { font-family: var(--num); font-size: 21px; line-height: 1; }
.score .w { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.score.good .n { color: var(--good); }
.score.mid .n { color: var(--warn); }
.score.bad .n { color: var(--bad); }
.score.none .n { color: var(--faint); }
.score.part .n { opacity: .55; }
.gate-x { font-size: 11.5px; font-weight: 800; color: var(--bad); background: var(--bad-bg); padding: 2px 7px; border-radius: 10px; white-space: nowrap; }

/* ---------- כרטיסים בנייד ---------- */
.cards { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; }
.card .r1 { display: flex; align-items: center; gap: 8px; }
.card .r1 .nm { font-weight: 800; font-size: 15px; flex: 1; }
.card .r2 { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); align-items: center; }
.card .r3 { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- לפי מודעה ---------- */
.ads { margin-top: 30px; }
.ads h2 { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.ads p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.ads table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ads th, .ads td { text-align: start; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ads th { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.ads td.n { font-family: var(--num); font-size: 18px; }
.ads tr:last-child td { border-bottom: 0; }

/* ---------- החלון הצדדי (משמאל) ---------- */
.ov { position: fixed; inset: 0; background: var(--overlay); z-index: 40; opacity: 0; transition: opacity .2s; }
.ov.on { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(660px, 100vw); background: var(--page); z-index: 41; display: flex; flex-direction: column;
  box-shadow: 8px 0 40px rgba(0, 0, 0, .12); transform: translateX(-102%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.drawer.on { transform: none; }
.dh { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 18px 0; }
.dh .row { display: flex; align-items: flex-start; gap: 10px; }
.dh .ttl { flex: 1; min-width: 0; }
.dh .ttl .k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.dh .ttl h2 { margin: 1px 0 0; font-size: 21px; font-weight: 800; line-height: 1.2; }
.dh .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.dh .meta .ph { direction: ltr; font-weight: 600; }
.dh .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.dtabs { display: flex; gap: 18px; margin-top: 12px; }
.dtab { background: none; border: 0; padding: 7px 0 9px; font-weight: 700; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.dtab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ציון חי בראש החלון */
.live { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.live .big { font-family: var(--num); font-size: 40px; line-height: .9; min-width: 52px; text-align: center; }
.live .big.good { color: var(--good); } .live .big.mid { color: var(--warn); } .live .big.bad { color: var(--bad); } .live .big.none { color: var(--faint); }
.live .rt { flex: 1; min-width: 0; }
.live .rt b { font-size: 13.5px; display: block; }
.live .rt span { font-size: 12px; color: var(--muted); }
.live .gl { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.gpill { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 9px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.gpill.yes { background: var(--good-bg); color: var(--good); }
.gpill.no { background: var(--bad-bg); color: var(--bad); }

.db { flex: 1; overflow-y: auto; padding: 16px 18px 40px; -webkit-overflow-scrolling: touch; }

/* מה כתוב בטופס */
.form-ans { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--ink-2); padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.form-ans .h { font-weight: 800; color: var(--muted); font-size: 11.5px; }
.warnbox { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: var(--bad-bg); color: #7d1c15; font-size: 13px; line-height: 1.55; }
.warnbox b { color: var(--bad); }
.gender { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.seg button { background: var(--surface); border: 0; padding: 4px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.seg button + button { border-inline-start: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--page); }

/* שלבים */
.step { margin-top: 20px; }
.step-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.step-h .no { font-family: var(--num); font-size: 22px; color: var(--gold-hi); line-height: 1; }
.step-h h3 { margin: 0; font-size: 16px; font-weight: 800; flex: 1; }
.step-h .tm { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.step .intro { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; }
.say { position: relative; margin: 10px 0 0; padding: 9px 14px 9px 12px; background: var(--surface); border: 1px solid var(--line);
  border-inline-start: 3px solid var(--ink); border-radius: 6px; border-start-start-radius: 0; border-end-start-radius: 0; font-size: 15px; line-height: 1.6; font-weight: 500; }
.say::before { content: 'אומרים'; display: block; font-size: 10.5px; font-weight: 800; color: var(--faint); letter-spacing: .02em; margin-bottom: 1px; }
.tip { margin: 8px 0 0; padding: 7px 12px; font-size: 12.5px; color: var(--ink-2); background: var(--gold-soft); border-radius: 6px; line-height: 1.55; }
.tip b { color: var(--gold); }
details.br { margin-top: 10px; border: 1px dashed var(--line-2); border-radius: 6px; background: var(--hover); }
details.br > summary { cursor: pointer; padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); list-style: none; }
details.br > summary::before { content: '+'; display: inline-block; width: 14px; color: var(--gold); font-weight: 800; }
details.br[open] > summary::before { content: '−'; }
details.br > .in { padding: 0 12px 10px; }

/* שאלה */
.q { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.q .qtag { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: .02em; margin-bottom: 4px; padding-inline-start: 26px; }
.q .qh { display: flex; gap: 8px; align-items: flex-start; }
.q .qn { font-family: var(--num); font-size: 19px; color: var(--muted); line-height: 1.2; min-width: 18px; }
.q .qs { font-size: 15px; font-weight: 600; line-height: 1.55; flex: 1; }
.q .more { margin: 6px 0 0; padding-inline-start: 26px; font-size: 13px; color: var(--ink-2); }
.q .more div::before { content: '← '; color: var(--faint); }
.q .formhint { margin: 8px 0 0 0; margin-inline-start: 26px; font-size: 12px; font-weight: 700; color: var(--blue); }
.q .listen { margin: 8px 0 0; margin-inline-start: 26px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.q .listen b { color: var(--gold); }
.q .ctl { margin-top: 10px; margin-inline-start: 26px; display: grid; gap: 8px; }
.qnote { width: 100%; margin-top: 10px; min-height: 34px; resize: none; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px;
  padding: 7px 10px; font-size: 13px; background: var(--page); line-height: 1.5; }
.q .qnote { width: calc(100% - 26px); margin-inline-start: 26px; }
.qnote:focus { outline: none; border-color: var(--gold-hi); background: var(--surface); }

/* דירוג ותנאי סף */
.rate, .gatec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rate .rl, .gatec .gl2 { font-size: 12.5px; font-weight: 700; min-width: 160px; flex: 1; }
.rate .rl small, .gatec .gl2 small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.rb, .gb { display: inline-flex; gap: 4px; }
.rb button { width: 32px; height: 30px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--num); font-size: 17px; color: var(--ink-2); }
.rb button:hover { border-color: var(--gold-hi); }
.rb button.lit { background: var(--gold-soft); border-color: var(--gold-line); }
.rb button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rate .rv { font-size: 11.5px; color: var(--muted); font-weight: 600; min-width: 62px; }
.gb button { height: 30px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 12.5px; }
.gb button[data-v="yes"][aria-pressed="true"] { background: var(--good); border-color: var(--good); color: #fff; }
.gb button[data-v="no"][aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.faq { margin-top: 10px; display: grid; gap: 6px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.faq summary { cursor: pointer; padding: 8px 12px; font-weight: 700; font-size: 13.5px; list-style: none; }
.faq summary::before { content: '?'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--soft);
  color: var(--gold); font-size: 11px; font-weight: 800; margin-inline-end: 8px; }
.faq details > div { padding: 0 12px 10px 12px; padding-inline-start: 38px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* סיכום ותוצאה */
.sum { margin-top: 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; }
.sum h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.sum .grp { margin-top: 12px; display: grid; gap: 8px; }
.sum .grp-h { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.sum textarea { width: 100%; min-height: 70px; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; resize: vertical; font-size: 13.5px; background: var(--page); }
.sum textarea:focus { outline: none; border-color: var(--gold-hi); background: var(--surface); }
.outs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.out { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 700; font-size: 13px; text-align: start; }
.out small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.out:hover { border-color: var(--gold-hi); }
.out[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.out .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.out.wide { grid-column: 1 / -1; }
.when { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--good-bg); border-radius: 7px; }
.when label { font-size: 12.5px; font-weight: 700; color: var(--good); }
.fld { height: 34px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 9px; background: var(--surface); }
.fld:focus { outline: none; border-color: var(--gold-hi); }
.wa-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* פרטים */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .fld { width: 100%; color: var(--ink); font-weight: 500; }
.form-grid textarea.fld { height: auto; min-height: 60px; padding: 8px 9px; resize: vertical; }
.hist { display: grid; gap: 8px; }
.hist .h { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 12.5px; }
.hist .h .w { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.hist .h ul { margin: 4px 0 0; padding-inline-start: 18px; color: var(--ink-2); }

/* חלון קטן */
.modal-ov { position: fixed; inset: 0; background: var(--overlay); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 10px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.modal h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.modal p { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }
.modal .linkbox { display: flex; gap: 6px; }
.modal .linkbox input { flex: 1; direction: ltr; min-width: 0; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-start; margin-top: 16px; flex-wrap: wrap; }

/* כניסה */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.gate .box { text-align: center; max-width: 380px; }
.gate .box img { width: 52px; height: 52px; border-radius: 10px; }
.gate h2 { margin: 12px 0 4px; font-size: 22px; font-weight: 800; }
.gate p { margin: 0; color: var(--muted); }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--page); padding: 10px 16px;
  border-radius: 8px; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80;
  display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast.err { background: var(--bad); }
#toast button { background: none; border: 0; color: #f3d48a; font-weight: 800; text-decoration: underline; padding: 0; }

/* ---------- נייד ---------- */
@media (max-width: 900px) {
  .top { padding: 14px 16px 0; }
  .wrap { padding: 16px 16px 70px; }
  h1 { font-size: 23px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-inline-start: 0; padding-inline-start: 2px; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .stat .v { font-size: 28px; }
  .tbl-wrap { display: none; }
  .cards { display: block; }
  .search { flex: 1 1 100%; }
  .who { display: none; }
  .drawer { width: 100vw; box-shadow: none; }
  .dh { padding: 12px 14px 0; }
  .db { padding: 14px 14px 40px; }
  .live { padding: 8px 14px; }
  .live .gl { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .outs { grid-template-columns: 1fr; }
  .rate .rl, .gatec .gl2 { min-width: 100%; }
  .q .ctl, .q .listen, .q .formhint, .q .more, .q .qtag { margin-inline-start: 0; padding-inline-start: 0; }
  .q .qnote { width: 100%; margin-inline-start: 0; }
  .ads { overflow-x: auto; }
  .ads table { min-width: 600px; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .ov, #toast { transition: none; } }
