/* אתר הניהול של קול דודי - כל הצבעים והגופנים כאן, ב-:root */
:root {
  --bg: #f5f2eb; --surface: #ffffff; --surface-2: #faf8f3; --ink: #1c2230; --ink-2: #3a4152; --muted: #737784; --faint: #a3a6af;
  --line: #e7e1d5; --line-2: #efeae0;
  --wine: #6b2232; --wine-2: #8c3445; --wine-soft: #f4e8ea; --gold: #b8893c; --gold-soft: #f6eedd;
  --green: #3c8458; --green-soft: #e6f2ea; --amber: #c3842b; --amber-soft: #fbf0de; --red: #b3483a;
  --r: 14px; --r-sm: 9px;
  --shadow: 0 1px 2px rgba(28, 34, 48, .05), 0 6px 22px rgba(28, 34, 48, .05);
  --head: 'Frank Ruhl Libre', 'David Libre', serif; --ui: 'Assistant', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--ui); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- מבנה ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: linear-gradient(185deg, #5e1c2b 0%, #42131f 100%); color: #f3e9e3; padding: 26px 18px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand .mark { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(232, 200, 140, .35); display: grid; place-items: center; }
.brand .mark.logo { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 0; padding: 3px; flex: none; }
.brand .mark.logo img { width: 100%; height: 100%; display: block; }
.brand b { display: block; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: .3px; line-height: 1.1; }
.brand small { color: rgba(243, 233, 227, .6); font-size: 12.5px; }
.nav { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.nav .grp { color: rgba(243, 233, 227, .42); font-size: 11.5px; letter-spacing: .6px; padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: rgba(243, 233, 227, .82); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: rgba(255, 255, 255, .11); color: #fff; box-shadow: inset -3px 0 0 #d9b26a; }
.nav a.on svg { opacity: 1; }
.nav a .cnt { margin-inline-start: auto; background: #d9b26a; color: #3e1420; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 19px; }
.side .foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(243, 233, 227, .62); display: flex; align-items: center; gap: 10px; }
.side .foot .av { width: 32px; height: 32px; border-radius: 50%; background: rgba(217, 178, 106, .2); color: #ecd29e; display: grid; place-items: center; font-weight: 700; }

.main { min-width: 0; }
tr[id], :target { scroll-margin-top: 104px; }     /* קפיצה לשורה (#f013) עוצרת מתחת לפס העליון הקבוע */
.top { display: flex; align-items: center; gap: 16px; padding: 18px 38px; border-bottom: 1px solid var(--line); background: rgba(245, 242, 235, .9); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.seg { display: inline-flex; background: #ebe5d9; border-radius: 11px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 16px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--surface); color: var(--wine); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 8px 13px; color: var(--faint); font-size: 14px; }
.search kbd { margin-inline-start: auto; font-family: var(--ui); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--surface-2); }
.status { margin-inline-start: auto; display: flex; align-items: center; gap: 18px; font-size: 13.5px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); color: var(--green); font-weight: 600; border-radius: 99px; padding: 4px 12px 4px 11px; font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.live .dot { box-shadow: 0 0 0 0 rgba(60, 132, 88, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(60, 132, 88, .45); } 70% { box-shadow: 0 0 0 7px rgba(60, 132, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 132, 88, 0); } }

.page { padding: 30px 38px 60px; }
.ph { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.ph h1 { font-family: var(--head); font-weight: 700; font-size: 30px; margin: 0; line-height: 1.15; letter-spacing: .2px; }
.ph .sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.ph .acts { margin-inline-start: auto; display: flex; gap: 10px; }
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px 15px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.btn svg { width: 16px; height: 16px; }
.btn.pri { background: var(--wine); border-color: var(--wine); color: #fff; box-shadow: 0 2px 8px rgba(107, 34, 50, .22); }
.btn.pri:hover { background: var(--wine-2); }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.card > header { display: flex; align-items: baseline; gap: 10px; padding: 18px 22px 0; }
.card > header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.card > header .hint { color: var(--muted); font-size: 13px; }
.card > header .more { margin-inline-start: auto; color: var(--wine); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.view { display: none; }
.view.on { display: block; }

/* לשוניות בתוך דף (הקו, סטטיסטיקות, הגדרות) */
.ltabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.ltabs a { padding: 9px 16px 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.ltabs a:hover { color: var(--ink); }
.ltabs a.on { color: var(--wine); border-bottom-color: var(--wine); }
.ltabs a small { color: var(--faint); font-weight: 600; margin-inline-start: 4px; }
.ltabs { overflow-x: auto; scrollbar-width: none; }
.ltabs a { white-space: nowrap; }
.sech { font-family: var(--head); font-weight: 700; font-size: 30px; margin: 0 0 12px; line-height: 1.15; }

/* ---------- סקירה ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { padding: 18px 20px 16px; position: relative; overflow: hidden; }
.kpi .lbl { color: var(--muted); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .val { font-size: 34px; font-weight: 700; letter-spacing: -.5px; margin-top: 6px; line-height: 1.1; }
.kpi .val small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-inline-start: 4px; }
.kpi .delta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.kpi .delta b { color: var(--green); font-weight: 700; }
.kpi .spark { position: absolute; left: 14px; bottom: 14px; width: 120px; height: 40px; }
.grid2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid2b { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart { padding: 10px 18px 16px; }
.legend { display: flex; gap: 16px; margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.list { padding: 8px 10px 12px; }
.row { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px; }
.row:hover { background: var(--surface-2); }
.row .rk { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.row .tt { flex: 1; min-width: 0; }
.row .tt b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tt small { color: var(--muted); font-size: 12.5px; }
.row .n { font-weight: 700; font-size: 14px; min-width: 52px; text-align: left; }
.bar { width: 74px; height: 6px; border-radius: 9px; background: var(--line-2); overflow: hidden; flex: none; }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--gold); }
.keys { display: inline-flex; align-items: center; gap: 4px; direction: rtl; }
.k { min-width: 21px; height: 21px; padding: 0 5px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); display: inline-grid; place-items: center; }
.keys .sep { color: var(--faint); font-size: 11px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.g { background: var(--green-soft); border-color: transparent; color: var(--green); }
.chip.w { background: var(--wine-soft); border-color: transparent; color: var(--wine); }
.chip.a { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.checks { padding: 6px 22px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; font-size: 13.5px; }
.checks div { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.checks svg { width: 15px; height: 15px; color: var(--green); flex: none; }
.big-ok { display: flex; align-items: center; gap: 14px; padding: 16px 22px 10px; }
.big-ok .ring { width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.big-ok b { font-size: 17px; }
.big-ok small { display: block; color: var(--muted); font-size: 13px; }

/* ---------- קטלוג ---------- */
.cat { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.tree { padding: 12px 10px 14px; position: sticky; top: 96px; }
.tree .t { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.tree .t:hover { background: var(--surface-2); }
.tree .t .k { flex: none; }
.tree .t span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree .t em { font-style: normal; color: var(--faint); font-size: 12.5px; }
.tree .t.open { color: var(--ink); font-weight: 600; }
.tree .t.sel { background: var(--wine-soft); color: var(--wine); font-weight: 700; }
.tree .t.sel .k { border-color: rgba(107, 34, 50, .25); color: var(--wine); }
.tree .kids { padding-inline-start: 10px; border-inline-start: 1px dashed var(--line); margin-inline-start: 18px; }
.tree .t.dim { color: var(--muted); }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.crumbs .k { font-size: 11.5px; min-width: 19px; height: 19px; }
.crumbs i { font-style: normal; color: var(--faint); }
.series-head { padding: 22px 24px 18px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; border-bottom: 1px solid var(--line-2); }
.series-head h2 { font-family: var(--head); font-size: 25px; margin: 0 0 4px; }
.series-head .meta { color: var(--muted); font-size: 14px; }
.series-head .chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.series-head .acts { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 8px; }
/* בחירת מקום בקו בחיפוש (picker.js) */
.placepick { position: relative; }
.pick-sel:empty { display: none; }
.pick-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 7px 8px 7px 11px; margin: 0 0 6px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.pick-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 3px; }
.pick-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-name b { font-weight: 600; }
.pick-name small { color: var(--muted); font-size: 12.5px; margin-inline-start: 8px; }
.pick-list { position: absolute; inset-inline: 0; top: 100%; z-index: 30; margin-top: 4px; max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(28, 34, 48, .18); }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line-2); font-size: 14px; cursor: pointer; }
.pick-row:hover, .pick-row.on { background: var(--surface-2); }
.pick-note { padding: 8px 12px; font-size: 12.5px; color: var(--muted); }
.pick-note + .pick-row { border-top: 0; }
.in.bad { border-color: var(--red); }
.cat > * { min-width: 0; }      /* טבלה רחבה לא מותחת את העמודה מעבר למסך - היא נגללת בתוך הכרטיס */
.tblx { overflow-x: auto; }
.stats3 { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-2); }
.stats3 div { padding: 14px 24px; border-inline-start: 1px solid var(--line-2); }
.stats3 div:first-child { border-inline-start: 0; }
.stats3 b { display: block; font-size: 21px; font-weight: 700; }
.stats3 small { color: var(--muted); font-size: 12.5px; }
table.ls { width: 100%; border-collapse: collapse; }
table.ls th { text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 14px 8px; border-bottom: 1px solid var(--line-2); letter-spacing: .3px; }
table.ls td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: middle; }
table.ls tr:last-child td { border-bottom: 0; }
table.ls tr:hover td { background: var(--surface-2); }
table.ls tr.sel td { background: #fbf6ec; }
table.ls tr.sel td:first-child { box-shadow: inset -3px 0 0 var(--gold); }
table.ls .fn { color: var(--faint); font-weight: 600; font-size: 12.5px; width: 52px; }
table.ls .ti b { font-weight: 600; }
table.ls .ti small { display: block; color: var(--muted); font-size: 12.5px; }
table.ls .c { color: var(--ink-2); white-space: nowrap; }
.cmpl { display: flex; align-items: center; gap: 9px; }
.cmpl span { font-size: 12.5px; color: var(--muted); min-width: 30px; }
.play { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--wine); }
.play svg { width: 12px; height: 12px; }
.drawer { margin-top: 18px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }

/* ---------- העלאה ---------- */
.up { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.drop { margin: 18px 22px 0; border: 1.5px dashed #d8cdb8; border-radius: 12px; background: var(--surface-2); padding: 16px 18px; display: flex; align-items: center; gap: 16px; }
.drop .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; flex: none; }
.drop b { display: block; font-size: 15px; }
.drop small { color: var(--muted); font-size: 13px; }
.drop .wave { margin-inline-start: auto; width: 220px; height: 38px; }
.form { padding: 18px 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.f label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.f .in { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); font-size: 14.5px; min-height: 41px; display: flex; align-items: center; gap: 8px; }
.f .in small { color: var(--muted); margin-inline-start: auto; font-size: 12.5px; }
.f.wide { grid-column: 1 / -1; }
.f .in.path { gap: 6px; flex-wrap: wrap; }
.opts { border-top: 1px solid var(--line-2); padding: 6px 22px 8px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.opt:last-child { border-bottom: 0; }
.opt .tt b { display: block; font-weight: 600; font-size: 14.5px; }
.opt .tt small { color: var(--muted); font-size: 13px; }
.sw { margin-inline-start: auto; width: 40px; height: 23px; border-radius: 99px; background: #d9d3c6; position: relative; flex: none; }
.sw::after { content: ''; position: absolute; top: 3px; right: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: .2s; }
.sw.on { background: var(--wine); }
.sw.on::after { right: 20px; }
.submit { display: flex; gap: 10px; padding: 0 22px 22px; }
.flow { padding: 18px 22px 22px; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; right: 13px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.step:last-child::before { display: none; }
.step .no { width: 27px; height: 27px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.step b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }
.say { margin-top: 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- טלפון (2026-11-22)
   תפריט הצד נפתח מכפתור בפס העליון, הכרטיסים בטור אחד, וטבלה רחבה נגללת לצד בתוך הכרטיס שלה - לא כל הדף. */
.menubtn, .scrim { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; right: 0; bottom: 0; width: 272px; max-width: 86vw; height: 100%; z-index: 60; transform: translateX(105%);
          transition: transform .22s ease; overflow-y: auto; box-shadow: -12px 0 40px rgba(28, 34, 48, .25); }
  body.menu-open .side { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(28, 34, 48, .42); z-index: 55; }
  body.menu-open .scrim { display: block; }
  .menubtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); flex: none; }
  .menubtn svg { width: 20px; height: 20px; }
  .top { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .top .status { gap: 8px; }
  .page { padding: 18px 16px 48px; }
  .ph { flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .ph h1 { font-size: 25px; }
  .ph .acts { margin-inline-start: 0; flex-wrap: wrap; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid2, .grid2b, .cat, .form, .up { grid-template-columns: 1fr; }
  .up > * { min-width: 0; }
  .f.wide { grid-column: auto; }
  .stats3 { grid-template-columns: repeat(2, 1fr); }
  .stats3 div:nth-child(3) { border-inline-start: 0; }
  .tree { position: static; }
  table.ls { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.ls td, table.ls th { white-space: nowrap; }
  table.ls .ti { white-space: normal; min-width: 180px; }
  .card > header { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .top .status .num { display: none; }
  .kpis { gap: 10px; }
}
@media (max-width: 900px) {
  .cat > *, .grid2 > *, .grid2b > *, .kpis > * { min-width: 0; }   /* בלי זה תוכן ארוך (עץ, תרשים) מותח את הכרטיס מעבר למסך */
  .chart, .chart svg { max-width: 100%; }
  .chart svg { height: auto; }
}
.pill { white-space: nowrap; }

/* ---------------------------------------------------------------- שתי המערכות (2026-11-26)
   ימות = יין (כמו תמיד). טכנוליין = כחול-ירוק עמוק. צבע תפריט הצד והכפתור הראשי אומרים בכל רגע באיזו מערכת עובדים. */
:root { --side-a: #5e1c2b; --side-b: #42131f; --focus: rgba(107, 34, 50, .18); }
html.sys-tl { --wine: #14535f; --wine-2: #1d6e7c; --wine-soft: #e2f0f1; --side-a: #165866; --side-b: #0b3039; --focus: rgba(20, 83, 95, .2); }
.side { background: linear-gradient(185deg, var(--side-a) 0%, var(--side-b) 100%); }
html.sys-tl .btn.pri { box-shadow: 0 2px 8px rgba(20, 83, 95, .24); }
.sysw { display: flex; gap: 3px; margin: 14px 4px 0; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, .22); }
.sysw button { flex: 1; border: 0; background: none; color: rgba(243, 233, 227, .7); font-weight: 600; font-size: 13.5px; padding: 6px 4px; border-radius: 8px; }
.sysw button:hover { color: #fff; }
.sysw button.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(217, 178, 106, .45); }
.sysw button:focus-visible, .nav a:focus-visible, .side .foot button:focus-visible { outline: 2px solid #e7c78b; outline-offset: 1px; }
.btn:focus-visible, .seg button:focus-visible, .ltabs a:focus-visible { outline: 2px solid var(--wine-2); outline-offset: 2px; }

/* דף הבחירה בכניסה */
body.pick { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(900px 420px at 82% -170px, rgba(184, 137, 60, .17), transparent 70%), radial-gradient(700px 380px at 12% -200px, rgba(20, 83, 95, .09), transparent 70%), var(--bg); }
.pk-head { display: flex; align-items: center; gap: 12px; padding: 22px 34px; }
.pk-head .mark.logo { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: var(--shadow); flex: none; }
.pk-head .mark.logo img { width: 100%; height: 100%; display: block; }
.pk-brand b { display: block; font-family: var(--head); font-size: 22px; line-height: 1.1; }
.pk-brand small { color: var(--muted); font-size: 12.5px; }
.pk-head form { margin: 0; margin-inline-start: auto; }
.pk-out { border: 1px solid var(--line); background: var(--surface); color: var(--muted); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.pk-out:hover { color: var(--ink); }
.pk { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 24px 90px; }
.pk h1 { font-family: var(--head); font-size: 34px; margin: 0 0 30px; text-align: center; letter-spacing: .2px; }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 390px)); gap: 26px; width: 100%; justify-content: center; }
.pk-card { margin: 0; animation: pk-rise .5s cubic-bezier(.2, .7, .2, 1) backwards; }
.pk-card + .pk-card { animation-delay: .08s; }
@keyframes pk-rise { from { opacity: 0; transform: translateY(14px); } }
.pk-ym { --pk-a: #6a2031; --pk-b: #42131f; --pk-ring: rgba(107, 34, 50, .35); }
.pk-tl { --pk-a: #1a6876; --pk-b: #0b3039; --pk-ring: rgba(20, 83, 95, .35); }
.pk-card button { width: 100%; text-align: start; border: 1px solid var(--line-2); background: var(--surface); border-radius: 22px; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  color: var(--ink); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.pk-card button:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(28, 34, 48, .05), 0 26px 46px -20px rgba(28, 34, 48, .32); }
.pk-card button:focus-visible { outline: none; transform: translateY(-4px); box-shadow: 0 0 0 4px var(--pk-ring), 0 26px 46px -20px rgba(28, 34, 48, .32); }
.pk-top { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; align-items: center; padding: 26px 26px 24px; color: #fff; background: linear-gradient(160deg, var(--pk-a), var(--pk-b)); }
.pk-ico { grid-row: span 2; width: 58px; height: 58px; border-radius: 17px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(232, 200, 140, .42); display: grid; place-items: center; color: #f1d9a8; }
.pk-ico svg { width: 28px; height: 28px; }
.pk-name { font-family: var(--head); font-size: 28px; font-weight: 700; line-height: 1.1; align-self: end; }
.pk-live { font-size: 13.5px; color: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; gap: 7px; align-self: start; }
.pk-live i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); flex: none; }
.pk-live.on { color: #fff; }
.pk-live.on i { background: #7fe0a0; animation: pulse 2s infinite; }
.pk-nums { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 14px 4px; }
.pk-nums > span { padding: 0 12px; border-inline-start: 1px solid var(--line-2); min-width: 0; }
.pk-nums > span:first-child { border: 0; }
.pk-nums b { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
.pk-nums em { font-style: normal; font-size: 12px; color: var(--muted); display: block; margin-top: -1px; }
.pk-nums small { color: var(--muted); font-size: 13px; display: block; }
.pk-go { margin: 18px 26px 24px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; background: var(--pk-a); border-radius: 12px; padding: 10px 20px; }
.pk-go svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .pk-grid { grid-template-columns: minmax(0, 430px); gap: 18px; } .pk h1 { font-size: 27px; margin-bottom: 22px; } .pk { justify-content: flex-start; padding-top: 14px; } .pk-head { padding: 16px 18px; } }
@media (prefers-reduced-motion: reduce) { .pk-card, .pk-card button { animation: none; transition: none; } }

/* ---------------------------------------------------------------- הדפים החזותיים (2026-11-26): סקירה, שיחות, נתונים לפי שלוחה.
   אותו סגנון של האתר, עם יותר אוויר ועומק: אור עדין ברקע, כרטיסים רכים, כניסה רכה של התוכן, אריח קטן לסמל בכל כרטיס מספר. */
:root { --shadow-up: 0 2px 4px rgba(28, 34, 48, .05), 0 22px 40px -22px rgba(28, 34, 48, .28); --r: 16px; }
body:not(.pick) { background: radial-gradient(900px 420px at 30% -160px, rgba(184, 137, 60, .10), transparent 72%), var(--bg); background-attachment: fixed; }
html.sys-tl body:not(.pick) { background: radial-gradient(900px 420px at 30% -160px, rgba(20, 83, 95, .09), transparent 72%), var(--bg); background-attachment: fixed; }
.skip { position: fixed; top: -60px; right: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; outline: 2px solid var(--gold); }
#main:focus { outline: none; }
@keyframes ui-rise { from { opacity: 0; transform: translateY(9px); } }
.page > * { animation: ui-rise .4s cubic-bezier(.2, .7, .2, 1) backwards; }
.page > :nth-child(2) { animation-delay: .04s; }
.page > :nth-child(3) { animation-delay: .08s; }
.page > :nth-child(4) { animation-delay: .12s; }
.page > :nth-child(n+5) { animation-delay: .15s; }
.nav a, .btn, .card { transition: background .15s, color .15s, box-shadow .18s, transform .18s, border-color .15s; }
.btn:hover { border-color: var(--faint); }
.btn.pri:hover { border-color: var(--wine-2); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
a.btn { text-decoration: none; }
.per { display: inline-flex; background: #ebe5d9; border-radius: 11px; padding: 3px; }
.per a { padding: 6px 14px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.per a.on { background: var(--surface); color: var(--wine); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.per a:focus-visible { outline: 2px solid var(--wine-2); outline-offset: 1px; }

/* כרטיסי המספרים של הסקירה */
.kx .kpi { padding: 18px 20px 16px; min-height: 132px; }
.kx .kpi .ic { position: absolute; top: 16px; left: 16px; width: 38px; height: 38px; border-radius: 12px; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; }
.kx .kpi .ic svg { width: 20px; height: 20px; }
.kx .kpi .ic.on { background: var(--green-soft); color: var(--green); animation: pulse 2s infinite; }
.kx .kpi .spark { left: 14px; bottom: 12px; width: 120px; height: 40px; opacity: .95; pointer-events: none; }
.kx .kpi.livebtn { cursor: pointer; }
.kx .kpi.livebtn:hover, .kx .kpi.livebtn:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-up); outline: none; }
.kx .kpi.livebtn:focus-visible { box-shadow: 0 0 0 3px var(--focus), var(--shadow-up); }
.trendc { margin-bottom: 18px; }
.trendc > header { flex-wrap: wrap; row-gap: 10px; }
.trendc > header .legend { margin-inline-start: auto; }
.grid3b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid3b > *, .grid2 > *, .grid2b > * { min-width: 0; }
.tlst { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 10px 12px; }
.tlst div { padding: 4px 12px; border-inline-start: 1px solid var(--line-2); }
.tlst div:first-child { border: 0; }
.tlst b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.3px; }
.tlst small { color: var(--muted); font-size: 12.5px; }

/* עמודות אופקיות: המדורים הנשמעים */
.hb { padding: 6px 10px 12px; }
.hbr { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.hbr:hover { background: var(--surface-2); }
.hbr .k { flex: none; }
.hbt { flex: 1; min-width: 0; }
.hbt b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbl { display: block; height: 7px; border-radius: 9px; background: var(--line-2); margin-top: 7px; overflow: hidden; }
.hbl i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--wine-2), var(--wine)); min-width: 3px; }
.hbn { font-weight: 700; font-size: 15px; text-align: left; min-width: 64px; flex: none; }
.hbn small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }

/* שיחות: מי בקו עכשיו */
.wallh { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.wallh .pill { font-size: 15px; padding: 7px 16px 7px 15px; }
.wallh .pill.off { background: #ebe5d9; color: var(--muted); }
.wallh .pill.off .dot { animation: none; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.wc { padding: 16px 18px 15px; border-inline-start: 4px solid var(--green); animation: ui-rise .3s ease-out backwards; }
.wct { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.wct b { font-size: 15.5px; unicode-bidi: isolate; }
.wcs { margin-inline-start: auto; color: var(--green); font-weight: 700; font-size: 14px; background: var(--green-soft); border-radius: 99px; padding: 1px 10px; }
.wcl { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.wc small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.empty.big { padding: 46px 22px; font-size: 15.5px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty.big svg { width: 44px; height: 44px; color: var(--faint); }

/* שיחות: מה היה */
.filt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.filt .srch { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; min-height: 38px; color: var(--faint); }
.filt .srch:focus-within { border-color: var(--wine-2); outline: 2px solid var(--focus); }
.filt .srch svg { width: 16px; height: 16px; flex: none; }
.filt .srch input { border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); width: 150px; direction: ltr; text-align: right; }
.filt .sum { margin-inline-start: auto; font-size: 13.5px; color: var(--muted); }
.filt .sum b { color: var(--ink); }
.tgl { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.tgl i { width: 34px; height: 20px; border-radius: 99px; background: #d9d2c4; position: relative; transition: background .15s; flex: none; }
.tgl i::after { content: ''; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.tgl.on i { background: var(--wine); }
.tgl.on i::after { transform: translateX(-14px); }
.tgl:focus-visible { outline: 2px solid var(--wine-2); outline-offset: 3px; border-radius: 6px; }
.vlist { display: grid; gap: 10px; }
.vis > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 96px minmax(150px, 1fr) minmax(0, 2fr) 76px 22px; gap: 14px; align-items: center; padding: 13px 20px; border-radius: var(--r); }
.vis > summary::-webkit-details-marker { display: none; }
.vis > summary:hover { background: var(--surface-2); }
.vis > summary:focus-visible { outline: 2px solid var(--wine-2); outline-offset: -2px; }
.vis summary b { display: block; font-weight: 600; font-size: 14.5px; }
.vis summary small { display: block; color: var(--muted); font-size: 12.5px; }
.vis .vt b { font-size: 16px; font-weight: 700; }
.vis .vp b { unicode-bidi: isolate; text-align: right; }
.vis .vl { min-width: 0; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis .vl small { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.vis .vd { font-weight: 700; font-size: 15px; text-align: left; }
.vis .chev { width: 18px; height: 18px; color: var(--faint); transition: transform .18s; }
.vis[open] .chev { transform: rotate(180deg); }
.vis[open] > summary { border-bottom: 1px solid var(--line-2); border-radius: var(--r) var(--r) 0 0; }
.vb { padding: 8px 10px 12px; }
.vpart { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.vpart:hover { background: var(--surface-2); }
.vpart .at { color: var(--muted); font-size: 13px; width: 44px; flex: none; }
.vpart .tt { flex: 1; min-width: 0; }
.vpart .tt b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vpart .tt small { color: var(--muted); font-size: 12.5px; }
.vpart .n { font-weight: 700; font-size: 13.5px; min-width: 50px; text-align: left; }
.vpath { padding: 8px 12px 2px; }
.steps { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; }
.steps li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.steps li small { color: var(--muted); font-size: 12px; }
.steps li + li::before { content: '‹'; color: var(--faint); margin-inline-start: -16px; margin-inline-end: 6px; position: relative; right: -4px; }

/* שיחות: חודש אחרי חודש */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.mcard { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.mh b { font-family: var(--head); font-size: 20px; display: block; line-height: 1.15; }
.mh small { color: var(--muted); font-size: 13px; }
.mv b { font-size: 34px; font-weight: 700; letter-spacing: -.5px; line-height: 1.05; display: block; }
.mv small { color: var(--muted); font-size: 13px; }
.mbar { height: 7px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--wine-2), var(--wine)); min-width: 3px; }
.ms { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); }
.ms b { color: var(--ink); }
.mcard .btn { align-self: flex-start; }
.hb.wide .hbn { min-width: 76px; }
@media (max-width: 1100px) { .grid3b { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .vis > summary { grid-template-columns: 70px 1fr 64px 20px; row-gap: 4px; padding: 12px 14px; }
  .vis .vl { grid-column: 1 / -1; grid-row: 2; }
  .filt .sum { margin-inline-start: 0; flex-basis: 100%; }
  .trendc > header .legend { margin-inline-start: 0; }
  .kx .kpi .spark { display: none; }
}
@media (prefers-reduced-motion: reduce) { .page > *, .wc, .kx .kpi .ic.on { animation: none !important; } .nav a, .btn, .card { transition: none; } }
.stack { display: grid; gap: 18px; align-content: start; }
.vis .nol { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .kx .kpi .ic { display: none; } .kx .kpi { min-height: 0; } }
.key .notl { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 99px; padding: 1px 9px; white-space: nowrap; flex: none; align-self: center; }

/* נגישות (2026-11-26): טקסט משני כהה יותר (ניגודיות 4.5 ומעלה גם על רקע הדף), וסימון ברור לכל מה שמקבל מיקוד מהמקלדת */
:root { --muted: #676b78; --faint: #777b86; --green: #2f7049; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input[type=file]:focus-visible + span { outline: 2px solid var(--wine-2); outline-offset: 2px; }
.side a:focus-visible, .side button:focus-visible { outline-color: #e7c78b; }
.key:focus-visible { outline-offset: 0; }
