/* מעקב הגשות — עיצוב "Workspace": סרגל צד, פיד לפי עדיפות ורשימה ברוחב מלא.
   אינדיגו לפעולות; צבע לכל סטטוס תמיד יחד עם תווית; כל זוגות הטקסט/רקע עומדים ב-AA בשני המצבים. */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f2f4f7; --surface-3: #eaecf0;
  --border: #e4e7ec; --border-strong: #d0d5dd;
  --text: #101828; --text-2: #475467; --text-3: #5d6679;
  --primary: #4f46e5; --primary-hover: #4338ca; --primary-ink: #ffffff; --primary-soft: #eef0ff; --primary-text: #4338ca;
  --focus: #6366f1; --link: #4338ca;
  --new: #6d28d9; --new-bg: #f3efff;
  --w-dot: #f59e0b; --w-bg: #fff8e6; --w-text: #9a4a05; --w-bd: #fde3a7;
  --p-dot: #2f80ed; --p-bg: #ecf4ff; --p-text: #1d4ed8; --p-bd: #c7dcfc;
  --o-dot: #12b76a; --o-bg: #e9fbf1; --o-text: #05603a; --o-bd: #b5ead0;
  --r-dot: #f04438; --r-bg: #fef2f1; --r-text: #b42318; --r-bd: #fbcdc9;
  --warn-bg: #fffaeb; --warn-text: #93370d; --warn-bd: #fedf89;
  --err-bg: #fef3f2; --err-text: #b42318;
  --sample: #6d28d9; --sample-bg: #f3efff;
  --hot: #d92d20;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, .10), 0 2px 4px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 40px -8px rgba(16, 24, 40, .22), 0 6px 12px -4px rgba(16, 24, 40, .10);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: system-ui, -apple-system, 'Segoe UI', 'Noto Sans Hebrew', Roboto, Arial, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --surface: #12151c; --surface-2: #171b23; --surface-3: #1f2430;
  --border: #242a36; --border-strong: #323a49;
  --text: #f2f4f7; --text-2: #c4cad6; --text-3: #9aa3b4;
  --primary: #5a50e6; --primary-hover: #6a61f2; --primary-ink: #ffffff; --primary-soft: #1e1d3d; --primary-text: #b4b0ff;
  --focus: #8b85ff; --link: #b4b0ff;
  --new: #c4b5fd; --new-bg: #2a2147;
  --w-dot: #fbbf24; --w-bg: #2b2111; --w-text: #fcd38d; --w-bd: #4d3a14;
  --p-dot: #5b9dff; --p-bg: #13223d; --p-text: #a8c8ff; --p-bd: #22406e;
  --o-dot: #32d583; --o-bg: #0f2a1d; --o-text: #8ae6b5; --o-bd: #1c4d34;
  --r-dot: #f97066; --r-bg: #331717; --r-text: #ffaaa3; --r-bd: #5c2523;
  --warn-bg: #2d2412; --warn-text: #fdd48b; --warn-bd: #574217;
  --err-bg: #331717; --err-text: #ffaaa3;
  --sample: #c4b5fd; --sample-bg: #2a2147;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, .65);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --surface: #12151c; --surface-2: #171b23; --surface-3: #1f2430;
    --border: #242a36; --border-strong: #323a49;
    --text: #f2f4f7; --text-2: #c4cad6; --text-3: #9aa3b4;
    --primary: #5a50e6; --primary-hover: #6a61f2; --primary-ink: #ffffff; --primary-soft: #1e1d3d; --primary-text: #b4b0ff;
    --focus: #8b85ff; --link: #b4b0ff;
    --new: #c4b5fd; --new-bg: #2a2147;
    --w-dot: #fbbf24; --w-bg: #2b2111; --w-text: #fcd38d; --w-bd: #4d3a14;
    --p-dot: #5b9dff; --p-bg: #13223d; --p-text: #a8c8ff; --p-bd: #22406e;
    --o-dot: #32d583; --o-bg: #0f2a1d; --o-text: #8ae6b5; --o-bd: #1c4d34;
    --r-dot: #f97066; --r-bg: #331717; --r-text: #ffaaa3; --r-bd: #5c2523;
    --warn-bg: #2d2412; --warn-text: #fdd48b; --warn-bd: #574217;
    --err-bg: #331717; --err-text: #ffaaa3;
    --sample: #c4b5fd; --sample-bg: #2a2147;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, .65);
    color-scheme: dark;
  }
}

/* ---------- בסיס ---------- */
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, [role="button"] { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-soft); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ico-slot { display: inline-flex; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--text-3); }
.missing { color: var(--text-3); font-style: italic; }
.hidden, [hidden] { display: none !important; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; direction: ltr; unicode-bidi: isolate; }
kbd { font: 500 12px/1 var(--mono); border: 1px solid var(--border-strong); border-radius: 5px; padding: 3px 6px; background: var(--surface-2); color: var(--text-3); }

/* ---------- מבנה ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-inline-end: 1px solid var(--border); padding: 16px 12px; overflow-y: auto; }
/* התוכן ממלא את כל הרוחב לצד הסרגל, בשוליים מתונים ועקביים */
.main { min-width: 0; padding: 24px clamp(20px, 2.4vw, 40px) 96px; outline: none; }
.mobilebar, .tabbar, .fab { display: none; }

/* ---------- סרגל צד ---------- */
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; min-width: 0; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark .ico { width: 17px; height: 17px; stroke-width: 2.2; vertical-align: 0; }
.brand-name { font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2); cursor: pointer; text-align: start; font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.nav-item:active { transform: scale(.98); }
.nav-item[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); }
.nav-item .count { margin-inline-start: auto; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nav-item[aria-current="page"] .count { color: var(--primary-text); }
.nav-item .count.hot { background: var(--hot); color: #fff; border-radius: 999px; padding: 0 7px; font-weight: 600; min-width: 22px; text-align: center; }
.nav-label { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 16px 10px 4px; }
.sync { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; background: transparent; border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: start; min-height: 34px; }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.sync.ok .dot { background: var(--o-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--o-dot) 22%, transparent); }
.sync.run .dot { background: var(--p-dot); animation: pulse 1s infinite alternate; }
.sync.err { color: var(--err-text); }
.sync.err .dot { background: var(--r-dot); }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.prefs { display: flex; flex-direction: column; gap: 6px; }
.prefs .seg { width: 100%; }
.account { display: flex; align-items: center; gap: 8px; padding: 2px 4px; font-size: 13px; color: var(--text-2); min-width: 0; }
.account .user-chip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- בורר מקטעים (שפה / ערכת צבעים) ---------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; }
.seg-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 4px 10px;
  border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.seg-btn .ico { width: 15px; height: 15px; vertical-align: 0; }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg-btn[aria-pressed="true"] { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-btn[aria-pressed="true"] { background: var(--surface-3); } }

/* ---------- כפתורים ושדות ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 140ms var(--ease-out), box-shadow 150ms ease;
}
.btn:active { transform: scale(.97); }
.btn .ico { vertical-align: 0; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-sm); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.danger { color: var(--r-text); }
.btn.danger-solid { background: var(--hot); border-color: var(--hot); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 38px; padding: 0; }
.btn.small.icon-btn { width: 32px; }
.link-btn { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font-size: inherit; text-align: start; text-decoration: underline; text-underline-offset: 3px; }
/* כותרת מייל לחיצה: נראית כקישור (קו תחתון עדין), מתחזקת במעבר עכבר, טבעת מיקוד במקלדת, ואזור מגע מורחב בלי להזיז את השורה */
.subj-link { display: inline; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .subj-link:hover { color: var(--link); text-decoration-color: currentColor; } }
.subj-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; color: var(--link); }
@media (pointer: coarse) { .subj-link { padding-block: 12px; margin-block: -12px; } }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--surface-2); }
  .btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
  .btn.ghost:hover { background: var(--surface-2); color: var(--text); }
  .nav-item:hover:not([aria-current="page"]) { background: var(--surface-2); color: var(--text); }
  .sync:hover { background: var(--surface-2); }
  .seg-btn:hover:not([aria-pressed="true"]) { color: var(--text); }
}
input[type="text"], input[type="search"], input[type="url"], input[type="email"], input:not([type]), select, textarea {
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 8px; padding: 7px 10px; min-width: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
textarea { resize: vertical; }

/* ---------- כותרת העמוד ---------- */
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--warn-bd); background: var(--warn-bg); color: var(--warn-text); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.banner.info { border-color: var(--p-bd); background: var(--p-bg); color: var(--p-text); }
.banner.sample { border-color: transparent; background: var(--sample-bg); color: var(--sample); }
.banner .grow { flex: 1; min-width: 200px; }
.pagehead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagehead .grow { flex: 1; min-width: 220px; }
.pagehead h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.pagehead .sub { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.search { position: relative; display: flex; align-items: center; width: min(360px, 100%); }
.search .ico-slot { position: absolute; inset-inline-start: 11px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 40px; border-radius: 10px; font-size: 14.5px; }
.search kbd { position: absolute; inset-inline-end: 9px; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }

/* ---------- פיד "דורש את תשומת לבך" — לפי עדיפות ---------- */
.overview { margin-bottom: 28px; }
.feed-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.feed-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
.feed-head .meta { font-size: 12.5px; color: var(--text-3); }
.feed-head .feed-more { margin-inline-start: auto; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); font-variant-numeric: tabular-nums; }
.badge.attn { background: var(--warn-bg); color: var(--warn-text); }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.feed.collapsed .fitem.over { display: none; }
.fitem { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow 150ms ease, transform 160ms var(--ease-out); }
.intro .fitem { animation: rise 380ms var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 6) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.fitem .kind { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: flex-start; height: 24px; line-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.fitem .kind .ico { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 6px; }
.k-review { background: var(--warn-bg); color: var(--warn-text); }
.k-rejection { background: var(--r-bg); color: var(--r-text); }
.k-offer { background: var(--o-bg); color: var(--o-text); }
.k-interview, .k-assignment, .k-upcoming, .k-status_change { background: var(--p-bg); color: var(--p-text); }
.k-applied, .k-confirmation { background: var(--w-bg); color: var(--w-text); }
.fitem .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fitem .txt { min-width: 0; flex: 1; }
.fitem .t1 { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem .t2 { display: block; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem button.t1 { border: 0; background: none; padding: 0; color: var(--text); cursor: pointer; width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.fitem .open-link::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.fitem .open-link:focus-visible { outline: none; }
.fitem:has(.open-link:focus-visible) { box-shadow: 0 0 0 2px var(--focus); }
@media (hover: hover) and (pointer: fine) { .fitem:has(.open-link):hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } }
.fitem .why { margin: 0; font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.fitem .meta-line { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); min-width: 0; margin-top: auto; }
.fitem .meta-line .ico { width: 14px; height: 14px; vertical-align: 0; }
.fitem .meta-line .from { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fitem .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.m-open { display: none; }
.first-hint { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); background: var(--primary-soft); color: var(--text); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; }
.first-hint p { margin: 0; flex: 1; }
.first-hint .tip { color: var(--text-2); }
.empty-note { margin: 0; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--text-2); font-size: 13.5px; background: var(--surface); }
[dir="rtl"] :is(.fitem .t1, .fitem .t2) { text-align: right; } [dir="ltr"] :is(.fitem .t1, .fitem .t2) { text-align: left; }

/* ---------- סטטוס ---------- */
.s-WAITING { --dot: var(--w-dot); --bg-s: var(--w-bg); --fg: var(--w-text); --bd: var(--w-bd); }
.s-IN_PROCESS { --dot: var(--p-dot); --bg-s: var(--p-bg); --fg: var(--p-text); --bd: var(--p-bd); }
.s-OFFER { --dot: var(--o-dot); --bg-s: var(--o-bg); --fg: var(--o-text); --bd: var(--o-bd); }
.s-REJECTED { --dot: var(--r-dot); --bg-s: var(--r-bg); --fg: var(--r-text); --bd: var(--r-bd); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--bd); background: var(--bg-s); color: var(--fg); font-size: 12.5px; font-weight: 600; white-space: nowrap; flex: none; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: none; }
.status-btn { display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; padding: 4px; margin: -4px; border-radius: 999px; cursor: pointer; position: relative; z-index: 1; min-height: 34px; }
.status-btn .ico { width: 15px; height: 15px; color: var(--text-3); vertical-align: 0; }
@media (hover: hover) and (pointer: fine) { .status-btn:hover .pill { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent); } }
.status-menu { position: absolute; z-index: 80; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); animation: pop 150ms var(--ease-out); transform-origin: var(--origin, top); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.status-menu [role="menuitemradio"] { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: start; }
.status-menu [role="menuitemradio"]:focus { outline: none; background: var(--surface-2); }
.status-menu [role="menuitemradio"]:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.status-menu .cur { margin-inline-start: auto; font-size: 12px; color: var(--text-3); }

/* ---------- רשימה ---------- */
.listhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.listhead h2 { margin: 0; font-size: 16px; font-weight: 650; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-f { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out); }
.chip-f:active { transform: scale(.97); }
.chip-f .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.chip-f .n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip-f[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }
.chip-f[aria-pressed="true"] .n { color: color-mix(in srgb, var(--surface) 72%, transparent); }
.list-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
#fToggle[aria-expanded="true"] { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-text); }
.fcount { background: var(--primary); color: #fff; border-radius: 999px; font-size: 11.5px; font-weight: 650; padding: 0 6px; min-width: 18px; text-align: center; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.sort select { height: 32px; padding: 0 8px; }
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 12px; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }
.fp-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); min-width: 0; }
.fp-field input, .fp-field select { font-size: 14px; font-weight: 400; color: var(--text); width: 100%; }
.fp-foot { display: flex; gap: 8px; margin-top: 12px; }
#fWeek[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-text); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.active-filters:empty { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--p-bd); background: var(--p-bg); color: var(--p-text); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 13px; }
[dir="rtl"] .fchip { padding: 2px 10px 2px 4px; }
.fchip button { border: 0; background: none; padding: 3px; cursor: pointer; display: inline-flex; border-radius: 999px; color: inherit; }
.fchip button .ico { width: 14px; height: 14px; vertical-align: 0; }

.table { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
/* רוחב העמודות לפי התוכן: חברה ותפקיד וראיה מהמייל מקבלים את רוב המקום */
.thead, .row { display: grid; grid-template-columns: 20px minmax(240px, 2.2fr) minmax(140px, .9fr) minmax(150px, 1fr) minmax(260px, 3fr) minmax(110px, .8fr); align-items: center; column-gap: clamp(14px, 1.6vw, 28px); padding: 0 18px; }
.thead { min-height: 40px; font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.thead input { margin: 0; }
/* כותרת "תאריך רלוונטי" ממיינת: החץ מראה את הכיוון הפעיל; בלי מיון פעיל — סימן מעומעם */
.sort-btn { display: inline-flex; align-items: center; gap: 4px; margin: -6px -8px; padding: 6px 8px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; text-align: start; transition: background-color 150ms ease, color 150ms ease; }
.sort-btn .sort-ico { display: inline-flex; }
.sort-btn .ico { width: 14px; height: 14px; vertical-align: 0; opacity: .55; }
.sort-btn.on { color: var(--text); }
.sort-btn.on .ico { opacity: 1; color: var(--primary-text); }
.sort-btn:active { background: var(--surface-3); }
@media (hover: hover) and (pointer: fine) { .sort-btn:hover { background: var(--surface-3); color: var(--text); } .sort-btn:hover .ico { opacity: 1; } }
.rows { list-style: none; margin: 0; padding: 0; }
.row { position: relative; min-height: 64px; padding-block: 10px; border-bottom: 1px solid var(--border); transition: background-color 150ms ease; }
.row:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) { .row:hover { background: var(--surface-2); } }
.row.flash { animation: flash 1.1s ease-out; }
@keyframes flash { from { background: var(--primary-soft); } }
.row .sel { position: relative; z-index: 1; display: flex; }
.row .sel input, .thead input { width: 16px; height: 16px; cursor: pointer; }
.co { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; font-weight: 650; font-size: 13px; letter-spacing: .02em; background: var(--av-bg, var(--primary-soft)); color: var(--av-fg, var(--primary-text)); }
.av .ico { vertical-align: 0; }
.co-txt { min-width: 0; flex: 1; }
.co-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; row-gap: 3px; }
.row-open { border: 0; background: none; padding: 0; color: var(--text); font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: start; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.row-open::after { content: ''; position: absolute; inset: 0; }
.row-open:focus-visible { outline: none; }
.row:has(.row-open:focus-visible) { box-shadow: inset 0 0 0 2px var(--focus); }
.co-role { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] :is(.co-role, .row-open) { text-align: right; } [dir="ltr"] :is(.co-role, .row-open) { text-align: left; }
.tag { flex: 0 1 auto; max-width: 100%; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 20px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 650; }
.tag .ico { width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 4px; }
.tag.new { background: var(--new-bg); color: var(--new); }
.tag.warn { background: var(--warn-bg); color: var(--warn-text); }
.tag.sample { background: var(--sample-bg); color: var(--sample); }
.tag.next { background: var(--p-bg); color: var(--p-text); }
.rel { font-size: 13px; }
.rel .main-d { display: block; color: var(--text); font-weight: 550; font-variant-numeric: tabular-nums; }
.rel .main-d.up { color: var(--p-text); }
.rel .main-d .ico { width: 15px; height: 15px; vertical-align: -3px; }
.rel .sub { display: block; color: var(--text-3); font-size: 12.5px; }
.ev { position: relative; z-index: 1; min-width: 0; font-size: 13px; }
.ev-top { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-2); }
.ev-top .ico { width: 15px; height: 15px; color: var(--text-3); vertical-align: 0; }
.ev-from { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ev-when { color: var(--text-3); white-space: nowrap; flex: none; }
.ev-snip { display: flex; gap: 6px; align-items: baseline; color: var(--text-2); margin-top: 2px; }
.ev-snip .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.ev-snip.open .txt { white-space: normal; overflow-wrap: anywhere; }
.ev-more { border: 0; background: none; padding: 6px 4px; margin: -6px -4px; color: var(--primary-text); font-size: 12.5px; font-weight: 600; cursor: pointer; flex: none; }
.ev-none { color: var(--text-3); }
.feedback { color: var(--text-2); font-style: italic; border-inline-start: 2px solid var(--r-bd); padding-inline-start: 8px; margin-top: 3px; overflow-wrap: anywhere; }
.src { font-size: 13px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.av[data-h="0"] { --av-bg: #e0e7ff; --av-fg: #3730a3; } .av[data-h="1"] { --av-bg: #dcfce7; --av-fg: #166534; }
.av[data-h="2"] { --av-bg: #fee2e2; --av-fg: #991b1b; } .av[data-h="3"] { --av-bg: #fef3c7; --av-fg: #92400e; }
.av[data-h="4"] { --av-bg: #e0f2fe; --av-fg: #075985; } .av[data-h="5"] { --av-bg: #fae8ff; --av-fg: #86198f; }
.av[data-h="6"] { --av-bg: #ccfbf1; --av-fg: #115e59; } .av[data-h="7"] { --av-bg: #ffedd5; --av-fg: #9a3412; }
:root[data-theme="dark"] .av { background: color-mix(in srgb, var(--av-fg) 35%, #12151c); color: #f2f4f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av { background: color-mix(in srgb, var(--av-fg) 35%, #12151c); color: #f2f4f7; } }
.empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 14px; }
.empty .ico-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { margin: 0 0 6px; font-size: 17px; }
.empty p { margin: 0 auto 16px; max-width: 48ch; color: var(--text-2); }
.empty .actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.bulk-bar { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(50%); z-index: 50; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 14px; padding: 10px 14px; max-width: calc(100vw - 24px); }
[dir="ltr"] .bulk-bar { transform: translateX(-50%); }
body:has(.bulk-bar) .main { padding-bottom: 200px; }
.bulk-bar select { height: 32px; }

/* ---------- דורש בדיקה ---------- */
.review-sec + .review-sec { margin-top: 24px; }
.review-sec .sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.review-sec .sec-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.review-sec .sec-head .aside { background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 10px; }
.card.muted { color: var(--text-2); }
.card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 650; unicode-bidi: plaintext; }
[dir="rtl"] .card h4 { text-align: right; } [dir="ltr"] .card h4 { text-align: left; }
.card .meta { font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* תור הבדיקה: פריט לכל שרשור, בחירה מרובה ואזור "לא קשור" */
.rv-switch { margin-bottom: 14px; }
.rv-switch .num { color: var(--text-3); margin-inline-start: 4px; }
.rv-note { font-size: 13.5px; margin: -2px 0 12px; }
.rv-card { position: relative; padding-inline-start: 46px; }
.rv-sel { position: absolute; inset-inline-start: 6px; top: 8px; display: grid; place-items: center; width: 36px; height: 36px; cursor: pointer; }
.rv-sel input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
.chip.cat-unrelated { background: var(--surface-3); color: var(--text-2); }
.rv-thread { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 6px; }
.rv-thread summary { cursor: pointer; font-size: 13px; color: var(--text-2); padding: 6px 0; list-style-position: inside; }
.rv-thread ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.rv-thread li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--text-2); padding: 4px 0; border-bottom: 1px dashed var(--border); }
.rv-thread li:last-child { border-bottom: 0; }
.rv-thread .rv-who { color: var(--text); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-thread .rv-subj { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.rv-thread li .btn { margin-inline-start: auto; }
.rv-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.rv-quick-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.rv-opt { flex-direction: column; align-items: flex-start; height: auto; min-height: 40px; padding: 5px 11px; gap: 1px; text-align: start; white-space: normal; max-width: 280px; }
.rv-opt-role { font-weight: 600; font-size: 13px; color: var(--text); }
.rv-opt-meta { font-size: 12px; color: var(--text-2); font-weight: 400; }
.cf-note { font-size: 13px; margin: 10px 0 0; }
.cf-similar, .cf-evidence { margin-top: 16px; }
.cf-similar h3, .cf-evidence h3 { font-size: 14px; font-weight: 650; margin: 0 0 8px; }
.cf-similar { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-similar h3 { flex-basis: 100%; }
.cf-evidence ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow: auto; overscroll-behavior: contain; }
.cf-evidence li { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: grid; gap: 4px; }
.cf-evidence .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--text-3); }
.cf-subj { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.cf-evidence li .btn { justify-self: start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: 13.5px; margin-top: 8px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.quote { border-inline-start: 2px solid var(--border-strong); padding: 1px 10px; margin: 6px 0; color: var(--text-2); font-size: 13.5px; font-style: italic; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; height: 22px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip .ico { width: 13px; height: 13px; vertical-align: 0; }
.chip.sample { background: var(--sample-bg); color: var(--sample); font-weight: 600; }
.chip.warn { background: var(--warn-bg); color: var(--warn-text); font-weight: 600; }
.chip.auto { background: var(--p-bg); color: var(--p-text); }
.chip.manual { background: var(--surface-3); color: var(--text); }
.chip.cat-rejection { background: var(--r-bg); color: var(--r-text); }
.chip.cat-offer { background: var(--o-bg); color: var(--o-text); }
.chip.cat-interview, .chip.cat-assignment { background: var(--p-bg); color: var(--p-text); }
.chip.cat-confirmation { background: var(--w-bg); color: var(--w-text); }

/* ---------- מגירת פרטים ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(16, 24, 40, .35); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.scrim.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 60; width: min(600px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 280ms var(--ease-drawer); }
[dir="ltr"] .sheet { transform: translateX(100%); }
.sheet.open { transform: none; }
.sheet[hidden] { display: none; }
.sheet-inner { overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 36px; flex: 1; }
.d-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 18px 0 14px; border-bottom: 1px solid var(--border); }
.d-head .title-row { display: flex; gap: 12px; align-items: flex-start; }
.d-head h2 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.d-head h2:focus { outline: none; }
.d-head .sub { color: var(--text-2); overflow-wrap: anywhere; unicode-bidi: plaintext; }
[dir="rtl"] :is(.d-head h2, .d-head .sub) { text-align: right; } [dir="ltr"] :is(.d-head h2, .d-head .sub) { text-align: left; }
.d-head .controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.d-sec { padding: 16px 0; border-bottom: 1px solid var(--border); }
.d-sec:last-child { border-bottom: 0; }
.d-sec h3 { margin: 0 0 10px; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.d-sec h3 .btn { margin-inline-start: auto; }
.d-sec h3 .ico { color: var(--warn-text); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.fields .f { min-width: 0; }
.fields .f.wide { grid-column: 1 / -1; }
.fields .k { font-size: 12px; color: var(--text-3); display: flex; gap: 6px; align-items: center; font-weight: 600; }
.fields .v { overflow-wrap: anywhere; }
.conflict { border: 1px solid var(--warn-bd); background: var(--warn-bg); color: var(--text); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.conflict .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-inline-start: 22px; padding-bottom: 14px; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.timeline li::after { content: ''; position: absolute; inset-inline-start: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: 12px; color: var(--text-3); }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.items li:first-child { border-top: 0; }
.items .grow { flex: 1; min-width: 0; }
.items .done { text-decoration: line-through; color: var(--text-3); }
.email-body { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; max-height: 320px; overflow: auto; margin-top: 6px; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
.inline-form { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.inline-form .wide { grid-column: 1 / -1; }
.inline-form .actions { grid-column: 1 / -1; display: flex; gap: 8px; }

/* ---------- חלונות ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(660px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(16, 24, 40, .45); }
dialog[open] { animation: rise 220ms var(--ease-out); }
.m-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.m-head h2 { margin: 0; font-size: 18px; font-weight: 650; }
.m-head .btn { margin-inline-start: auto; }
.m-body { padding: 16px 20px; }
.m-foot { display: flex; gap: 8px; justify-content: flex-start; padding: 12px 20px 18px; flex-wrap: wrap; }
dialog.confirm { width: min(460px, calc(100vw - 24px)); }
.confirm .m-body p { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--sample); }
.field.suggested input, .field.suggested select { border-color: var(--sample); background: var(--sample-bg); }
.url-row { display: flex; gap: 8px; }
.url-row input { flex: 1; }
.steps { padding-inline-start: 20px; margin: 8px 0; }
.steps li { margin-bottom: 6px; }
.set-sec { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.set-sec h3 { margin: 0 0 8px; font-size: 15px; font-weight: 650; display: flex; gap: 8px; align-items: center; }
.runs { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.runs td, .runs th { text-align: start; padding: 5px 6px; border-top: 1px solid var(--border); }
.runs th { color: var(--text-3); font-weight: 600; }
.pick-list { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; }
.pick { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--border); cursor: pointer; }
.pick:first-child { border-top: 0; }
.pick:hover, .pick.sel { background: var(--surface-2); }
.pick.suggest { background: var(--primary-soft); }
#pickQ { width: 100%; }
.merge-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.merge-table td, .merge-table th { padding: 6px; border-top: 1px solid var(--border); text-align: start; vertical-align: top; }
.merge-table label { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; background: var(--primary); transition: width .3s; }
details.tech { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
details.tech summary { cursor: pointer; }
details.tech div { text-align: left; font-family: var(--mono); overflow-wrap: anywhere; margin-top: 4px; }

/* ---------- הודעה קופצת ---------- */
.toast { position: fixed; z-index: 95; inset-inline-start: 50%; bottom: 28px; transform: translate(50%, 140%); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; border-radius: 12px; background: #101828; color: #f9fafb; box-shadow: var(--shadow-lg); font-size: 14px; transition: transform 320ms var(--ease-out), opacity 200ms ease; }
[dir="rtl"] .toast { padding: 10px 16px 10px 10px; }
[dir="ltr"] .toast { transform: translate(-50%, 140%); }
.toast.show { opacity: 1; transform: translate(50%, 0); pointer-events: auto; }
[dir="ltr"] .toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--hot); color: #fff; }
.toast .undo { display: inline-flex; gap: 6px; align-items: center; border: 0; background: rgba(255, 255, 255, .14); color: inherit; font-weight: 650; padding: 6px 12px; border-radius: 8px; cursor: pointer; min-height: 32px; }
.toast .undo .ico { width: 15px; height: 15px; vertical-align: 0; }
:root[data-theme="dark"] .toast:not(.err) { background: #f2f4f7; color: #101828; }
:root[data-theme="dark"] .toast:not(.err) .undo { background: rgba(16, 24, 40, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast:not(.err) { background: #f2f4f7; color: #101828; } :root:not([data-theme="light"]) .toast:not(.err) .undo { background: rgba(16, 24, 40, .1); } }

/* ---------- כניסה ---------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 28px 24px; text-align: center; }
.login-card .brand { justify-content: center; padding: 0 0 6px; }
.login-card h1 { font-size: 22px; margin: 0; font-weight: 650; }
.login-btn { width: 100%; min-height: 44px; font-size: 15.5px; margin: 10px 0 14px; }
.login-msg:empty { display: none; }
.login-msg { background: var(--err-bg); color: var(--err-text); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 10px 0; }
.login-prefs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ---------- dd/mm/yyyy ---------- */
.dmy { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.dmy .dmy-text { width: 132px; direction: ltr; font-variant-numeric: tabular-nums; padding: 7px 34px 7px 10px; }
[dir="rtl"] .dmy .dmy-text { text-align: right; }
.dmy .dmy-btn { position: absolute; right: 4px; border: 0; background: none; cursor: pointer; padding: 4px; line-height: 1; color: var(--text-3); display: inline-flex; border-radius: 6px; }
.dmy .dmy-btn .ico { vertical-align: 0; }
.dmy .dmy-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.dmy.invalid .dmy-text { border-color: var(--r-dot); background: var(--err-bg); }
.field .dmy, .field .dmy .dmy-text, .fp-field .dmy, .fp-field .dmy .dmy-text, .url-row .dmy, .url-row .dmy .dmy-text { width: 100%; }
.url-row .dmy { flex: 1; }

/* ---------- טאבלט ---------- */
@media (max-width: 1180px) {
  .thead, .row { grid-template-columns: 20px minmax(200px, 2fr) minmax(130px, .9fr) minmax(140px, 1fr) minmax(220px, 2.6fr); }
  .thead .h-src, .row .src { display: none; }
}

/* ---------- נייד ---------- */
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobilebar { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .mobilebar .brand { padding: 0; flex: 1; }
  .mb-btn { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); cursor: pointer; font-weight: 600; font-size: 13px; padding: 0 10px; }
  .mb-btn:active { transform: scale(.96); }
  .mb-btn .ico { vertical-align: 0; }
  .main { padding: 14px 14px 132px; }
  .pagehead { margin-bottom: 14px; gap: 10px; }
  .pagehead h1 { font-size: 20px; }
  .pagehead .sub { font-size: 13px; }
  .new-btn { display: none; }
  .fab { display: inline-flex; position: fixed; z-index: 45; inset-inline-end: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--primary); color: #fff; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); cursor: pointer; }
  .fab:active { transform: scale(.96); }
  .fab .ico { width: 24px; height: 24px; vertical-align: 0; }
  .search { width: 100%; }
  .search input, input[type="text"], input[type="search"], input[type="url"], input[type="email"], input:not([type]), select, textarea { font-size: 16px; }
  .search input { height: 44px; }
  .search kbd { display: none; }
  .overview { margin-bottom: 14px; }
  .feed-head { margin-bottom: 8px; }
  .feed-head .meta, .feed-head .feed-more { display: none; }
  .feed, .feed.collapsed { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; }
  .feed::-webkit-scrollbar { display: none; }
  .feed.collapsed .fitem.over { display: flex; }
  .fitem { flex: 0 0 72%; scroll-snap-align: start; padding: 9px 11px; gap: 6px; }
  .fitem .why, .fitem .acts, .fitem .meta-line { display: none; }
  .fitem .kind { height: 22px; line-height: 22px; font-size: 11.5px; }
  .fitem .av { width: 32px; height: 32px; font-size: 12px; }
  .fitem button.t1 { -webkit-line-clamp: 1; }
  .m-open { display: block; position: absolute; inset: 0; border: 0; background: transparent; border-radius: 14px; cursor: pointer; }
  .first-hint .tip { display: none; }
  .listhead { row-gap: 10px; }
  .list-tools { margin-inline-start: auto; }
  .listhead .chips { order: 3; flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px; width: calc(100% + 28px); scrollbar-width: none; }
  .chip-f { height: 40px; flex: none; }
  .sort > span { display: none; }
  .sort select, .btn.small, #fToggle { min-height: 40px; }
  .thead { display: none; }
  .row { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: 'sel co co' '. st rel' '. ev ev'; row-gap: 8px; column-gap: 10px; padding: 14px 12px; }
  .row .sel { grid-area: sel; align-self: start; padding-top: 10px; }
  .row .co { grid-area: co; align-items: flex-start; }
  .row .st { grid-area: st; align-self: center; margin-inline-start: -6px; }
  .row .rel { grid-area: rel; display: flex; flex-direction: column; gap: 1px; align-self: center; min-width: 0; }
  .row .rel .main-d { display: block; white-space: nowrap; }
  .row .rel .sub { display: block; white-space: normal; }
  .row .ev { grid-area: ev; }
  .row .src { display: none; }
  .row-open, .co-role { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .status-btn { min-height: 44px; min-width: 44px; }
  .ev-more { padding: 12px 8px; margin: -12px -8px; min-width: 44px; }
  .row .sel { padding: 10px; margin: -10px; }
  .row .sel input { width: 20px; height: 20px; }
  .rv-card { padding-inline-start: 50px; }
  .rv-sel { width: 44px; height: 44px; inset-inline-start: 4px; top: 4px; }
  .rv-sel input { width: 20px; height: 20px; }
  .rv-thread summary { min-height: 44px; display: flex; align-items: center; }
  .tabbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar .nav-item { flex: 1; flex-direction: column; gap: 2px; min-height: 54px; font-size: 12px; justify-content: center; text-align: center; padding: 4px 2px; }
  .tabbar .nav-item .count { margin: 0; font-size: 11.5px; }
  .tabbar .nav-item .count.hot { position: absolute; top: 2px; inset-inline-start: calc(50% + 4px); }
  .sheet { width: 100vw; }
  .sheet-inner { padding: 0 14px 40px; }
  .fields, .form-grid, .inline-form { grid-template-columns: minmax(0, 1fr); }
  .fp-grid { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .bulk-bar, [dir="ltr"] .bulk-bar { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); inset-inline: 12px; transform: none; justify-content: center; }
  .bulk-bar .btn { min-height: 44px; }
  .rv-switch .seg-btn { min-height: 44px; }
  .btn.small { min-height: 44px; }
}

/* תנועה מופחתת: בלי תנועה במרחב; שקיפות וצבע נשארים כדי שהמעבר יהיה מובן */
/* מסך נמוך (זום 200%, נייד לרוחב): הסרגלים הקבועים לא יתפסו שליש מהגובה */
@media (max-width: 760px) and (max-height: 520px) {
  .mobilebar { position: static; }
  .tabbar { padding-top: 2px; padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px)); }
  .tabbar .nav-item { flex-direction: row; min-height: 44px; gap: 6px; }
  .tabbar .nav-item .count.hot { position: static; }
  .fab { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, [dir="ltr"] .sheet { transform: none; opacity: 0; transition: opacity 180ms ease; }
  .sheet.open { opacity: 1; }
  .toast, [dir="ltr"] .toast, .toast.show, [dir="ltr"] .toast.show { transition: opacity 180ms ease; transform: translate(50%, 0); }
  [dir="ltr"] .toast, [dir="ltr"] .toast.show { transform: translate(-50%, 0); }
  .intro .fitem, .row.flash, dialog[open], .status-menu { animation: none; }
  .btn:active, .chip-f:active, .nav-item:active, .fab:active, .mb-btn:active, .fitem:hover { transform: none !important; }
  .sync.run .dot { animation: none; }
}
