/* ============================================================
   מדידות — עיצוב בהשראת Apple Human Interface Guidelines
   גופן מערכת, אפור #F5F5F7, כחול מערכת, זכוכית (Liquid Glass),
   פינות מעוגלות, מפרידים דקים והרבה אוויר
   ============================================================ */
:root {
  --blue: #0071e3;
  --blue-h: #0077ed;
  --blue-d: #0062c4;
  --blue-l: #e8f2fd;
  --ring: rgba(0, 113, 227, .28);

  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --fill: rgba(118, 118, 128, .12);   /* systemFill */
  --fill-2: rgba(118, 118, 128, .08);
  --line: rgba(60, 60, 67, .13);       /* separator */
  --line-2: rgba(60, 60, 67, .08);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #86868b;

  --green: #248a3d;
  --green-sys: #34c759;
  --green-l: #e9f7ee;
  --orange: #c93400;
  --warn: #b25000;
  --warn-l: #fff4e5;
  --danger: #e30000;
  --danger-l: #fff0f0;

  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-border: rgba(255, 255, 255, .6);
  --blur: saturate(180%) blur(20px);

  --r-xl: 22px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .05);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .14);
  --ease: cubic-bezier(.25, .1, .25, 1);

  /* תאימות לשמות קודמים */
  --primary: var(--blue);
  --primary-l: var(--blue-l);
  --primary-ring: var(--ring);
  --forest: var(--ink);
  --lime: var(--blue);
  --lime-d: var(--blue);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Hebrew', 'Heebo', system-ui, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
/* טקסט בתוך SVG (תוויות על התוכנית): בלי ריווח אותיות – ב-Safari / אייפון ריווח שאינו 0 מבטל את סדר הכתיבה מימין לשמאל ("מ״ר" יוצא "ר״מ") */
svg text { letter-spacing: 0; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -.022em; }
.icon { flex: none; display: block; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }
.sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.warn-text { color: var(--warn); display: inline-flex; align-items: center; gap: 4px; }
.loading { display: grid; place-items: center; height: 100vh; color: var(--muted); }
::selection { background: rgba(0, 113, 227, .2); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--fill); color: var(--ink); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), transform .1s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: rgba(118, 118, 128, .18); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary, .btn-lime { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-lime:hover { background: var(--blue-h); }
.btn-outline { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn-outline:hover { background: var(--blue-l); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.danger, .danger-text { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-danger { background: #d70015; } }
:root[data-theme="dark"] .btn-danger { background: #d70015; }
.dlg-msg { margin: 0; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
/* טקסט אדום על רקע אפור – ניגודיות ≥ 4.5 */
.btn.danger-text { color: #c00000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger-text { color: #ff8a80; } }
:root[data-theme="dark"] .btn.danger-text { color: #ff8a80; }
.btn.danger:hover { background: var(--danger-l); }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s;
}
.icon-btn:hover { background: var(--fill); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-l); }
.link { border: 0; background: none; padding: 0; color: var(--blue); cursor: pointer; font: inherit; }
.link:hover { text-decoration: underline; }
.link.strong { font-weight: 600; }

/* ---------- סרגל עליון (זכוכית) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line-2);
}
.topbar-in { max-width: 1180px; margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 22px; padding: 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff;
  background: linear-gradient(160deg, #2997ff, #0060df); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08), 0 1px 3px rgba(0, 96, 223, .35);
}
.brand.small .brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.topnav { display: flex; gap: 2px; }
.topnav a { color: var(--ink-2); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.topnav a:hover { background: var(--fill-2); text-decoration: none; }
.topnav a.on { color: var(--ink); background: none; font-weight: 600; }
.topbar-extra { margin-inline-start: auto; }
.topbar-extra:empty { display: none; }
.nav-cta { height: 30px; padding: 0 14px; font-size: 13px; }
.account-area { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.trial-pill { font-size: 12px; font-weight: 500; color: var(--blue); background: var(--blue-l); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.avatar-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(160deg, #a1a1a6, #6e6e73); color: #fff; font-weight: 600; font-size: 13px; }

/* ---------- עמוד ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 22px 22px 90px; width: 100%; }
.page-wide { max-width: 1180px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--orange); margin-bottom: 8px; letter-spacing: 0; }
.spark { display: none; }

/* Hero – תמונה עם לוח זכוכית */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 520px; margin: 0 0 22px; border-radius: 28px;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, #e9eef5, #d7e0ea);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-repeat: no-repeat; background-position: center 60%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.18) 100%); }
.hero-text {
  margin: 0 20px 26px; max-width: 640px; width: 100%; padding: 30px 32px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: 26px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.hero-text .eyebrow { color: var(--muted); font-weight: 500; }
.hero h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.035em; }
.hero .sub { font-size: 17px; color: var(--ink-2); margin-top: 10px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn-outline { background: rgba(255,255,255,.5); }
.hero-edit {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--glass-border); cursor: pointer;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: var(--ink); font-size: 13px; font-weight: 500; opacity: .9; transition: opacity .15s;
}
.hero:hover .hero-edit, .hero-edit:focus-visible { opacity: 1; }

/* כותרות מקטע */
.section-head { margin: 44px 0 16px; }
.section-head h2 { font-size: 28px; letter-spacing: -.028em; }
.section-head .eyebrow { color: var(--muted); font-weight: 500; }
.band-head { margin: 8px 0 14px; }
.band-head .eyebrow { color: var(--muted); font-weight: 500; }
.band-head h2 { font-size: 28px; letter-spacing: -.028em; }
.dark-band { margin-top: 36px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--panel); border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; min-height: 132px; }
.kpi-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--blue-l); color: var(--blue); }
.kpi-val { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; margin-top: auto; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 13px; color: var(--green); font-weight: 500; }

/* סרגל סינון */
.filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filterbar select {
  height: 34px; border: 0; border-radius: 999px; background: var(--panel); padding: 0 14px; color: var(--ink);
  cursor: pointer; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-2);
}
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 10px; padding: 0 11px; height: 34px; color: var(--muted); transition: box-shadow .15s; }
.search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; color: var(--ink); font-size: 14px; }
.search:focus-within { box-shadow: 0 0 0 3px var(--ring); }
.small-search { flex: 0 1 260px; min-width: 160px; }

/* בקרה מקטעית (Segmented control) */
.pill-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 13px; white-space: nowrap; transition: background .2s var(--ease); }
.pill-tabs a:hover { text-decoration: none; background: rgba(255,255,255,.4); }
.pill-tabs a.on { background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.pill-tabs.center { display: flex; width: fit-content; margin-inline: auto; }
.count { font-size: 11.5px; font-weight: 600; background: var(--fill); color: var(--ink-2); border-radius: 999px; padding: 0 7px; line-height: 18px; min-width: 20px; text-align: center; }
.pill-tabs a.on .count { background: var(--blue); color: #fff; }

.seg { display: inline-flex; background: var(--fill); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 13px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .2s var(--ease); }
.seg button.on { background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.seg-sm button { padding: 3px 9px; font-size: 12.5px; }
.seg-wrap { flex-wrap: wrap; }

/* ---------- כרטיסי פרויקט ---------- */
.project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.project-card { background: var(--panel); border-radius: var(--r-xl); padding: 16px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.project-card:hover { transform: translateY(-3px) scale(1.005); box-shadow: var(--shadow-lg); }
.pc-top { display: flex; align-items: flex-start; gap: 8px; padding: 2px 4px 0; }
.pc-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-name { font-size: 17px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.02em; }
.pc-name:hover { text-decoration: none; color: var(--blue); }
.pc-client { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.pc-ic:hover { text-decoration: none; }
.pc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 4px; }
.pc-plans { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; font-size: 12.5px; color: var(--muted); }
.pc-plans:hover { text-decoration: none; }
.pc-plans > span { background: var(--panel-2); border-radius: 999px; padding: 3px 10px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-plans > .pc-empty { display: inline-flex; align-items: center; gap: 5px; max-width: none; color: var(--blue); }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border-radius: 12px; overflow: hidden; }
.pc-stats div { background: var(--panel-2); padding: 10px 12px; display: flex; flex-direction: column; }
.pc-stats b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pc-stats span { font-size: 12px; color: var(--muted); }
.pc-progress { padding: 0 4px; }
.pc-progress-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pc-progress-row b { color: var(--ink); font-weight: 600; }
.meter, .bar { height: 5px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.meter i, .bar i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }

.status { --c: var(--green-sys); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-weight: 500; font-size: 12px; white-space: nowrap; color: var(--ink); background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.labels { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--fill-2); color: var(--ink-2); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 500; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 2px; }
.chip-add input { border: 0; border-radius: 999px; padding: 3px 12px; width: 120px; font-size: 12.5px; outline: 0; background: var(--fill-2); }
.chip-add input:focus { box-shadow: 0 0 0 3px var(--ring); }

.empty { text-align: center; padding: 64px 20px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--panel); border-radius: var(--r-xl); }
.empty h2 { font-size: 22px; color: var(--ink); }
.empty p { margin: 0 0 8px; color: var(--muted); }
.empty-art { width: 72px; height: 72px; border-radius: 20px; background: var(--blue-l); display: grid; place-items: center; color: var(--blue); margin-bottom: 4px; }

/* ---------- תפריט (חלונית זכוכית) ---------- */
.menu-wrap { position: relative; display: inline-block; }
.menu {
  position: absolute; top: calc(100% + 6px); z-index: 60; padding: 5px; min-width: 220px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), var(--shadow-lg);
  animation: menu-in .2s cubic-bezier(.2, .9, .3, 1);
}
/* התפריט גדל מהכפתור שפתח אותו – לא מהמרכז */
.menu-start { inset-inline-start: 0; transform-origin: top left; }
.menu-end { inset-inline-end: 0; transform-origin: top right; }
[dir="rtl"] .menu-start { transform-origin: top right; }
[dir="rtl"] .menu-end { transform-origin: top left; }
@keyframes menu-in { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; border: 0; background: none; padding: 7px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; font-size: 14px; color: var(--ink); }
.menu button:hover { background: var(--blue); color: #fff; }
.menu button.danger { color: var(--danger); }
.menu button.danger:hover { background: var(--danger); color: #fff; }
.menu-head { display: flex; flex-direction: column; padding: 7px 10px 9px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }
.menu-head span { color: var(--muted); font-size: 12px; }

/* ---------- חלון (Sheet) ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .2s var(--ease); }
.modal { background: var(--panel); border-radius: 22px; width: 100%; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
.modal-head { display: flex; align-items: center; padding: 20px 22px 4px; }
@media (pointer: fine) { .modal-head { cursor: move; } .modal-head button { cursor: pointer; } }
.modal-head h2 { font-size: 20px; flex: 1; letter-spacing: -.02em; }
.modal-head .icon-btn { background: var(--fill); width: 28px; height: 28px; }
.title-with-icon { display: inline-flex; align-items: center; gap: 10px; }
.modal-body { padding: 10px 22px 22px; overflow: auto; }
.modal-body > p { margin: 0 0 14px; color: var(--ink-2); }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal-foot.inline { position: sticky; bottom: -22px; z-index: 2; margin: 22px -22px -22px; padding: 12px 22px; border-top: 1px solid var(--line-2); background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

/* ---------- טפסים ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), .field select, .field textarea, .ratio-input input {
  height: 40px; border: 0; border-radius: 10px; padding: 0 12px; background: var(--fill-2); outline: 0; width: 100%;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #aeaeb2; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .ratio-input input:focus { background: #fff; box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 3px var(--ring); }
.hint { color: var(--muted); font-size: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); cursor: pointer; padding: 0; position: relative; transition: transform .15s var(--ease); }
.swatch:hover { transform: scale(1.1); }
.swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.swatch.custom { background: conic-gradient(#ff3b30, #ffcc00, #34c759, #007aff, #af52de, #ff3b30); overflow: hidden; }
.swatch.custom input { opacity: 0; position: absolute; inset: 0; cursor: pointer; }
.symbols { display: flex; gap: 8px; flex-wrap: wrap; }
.sym { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--fill-2); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.sym:hover { background: var(--fill); }
.sym.on { background: var(--blue-l); box-shadow: inset 0 0 0 2px var(--blue); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font-size: 14px; }
.check input, .range { accent-color: var(--blue); }
.check input { width: 17px; height: 17px; }
.range { width: 100%; }
.ratio-input { display: flex; align-items: center; gap: 8px; direction: ltr; }
.ratio-input span { font-weight: 600; color: var(--ink-2); flex: none; white-space: nowrap; }
.quick-ratios { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { border: 0; background: var(--fill-2); border-radius: 999px; padding: 5px 13px; cursor: pointer; font-size: 13px; direction: ltr; color: var(--ink); transition: background .15s; }
.chip-btn:hover { background: var(--fill); }
.chip-btn.on { background: var(--blue); color: #fff; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 20px 0 14px; font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.note { padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.note.ok { background: var(--green-l); color: var(--green); }
.note.err { background: var(--danger-l); color: #c20000; }
.note.warn { background: var(--warn-l); color: var(--warn); }

/* ---------- כותרת פרויקט ---------- */
.proj-head-in { max-width: 1180px; margin: 0 auto; padding: 18px 22px 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-size: 14px; margin-bottom: 6px; }
.proj-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.proj-title h1 { font-size: 32px; letter-spacing: -.03em; }

/* ---------- כרטיסים ורשימות ---------- */
.card { background: var(--panel); border-radius: var(--r-xl); padding: 22px 24px; }
.card-flush { padding: 0; overflow: hidden; position: relative; }
.card-head { margin-bottom: 16px; }
.pad-head { padding: 18px 20px 0; margin-bottom: 10px; }
.card-title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 18px; }
.overview-side { display: flex; flex-direction: column; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats .kpi { min-height: 110px; }
.stats .kpi-val { font-size: 32px; }
.activity { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.activity li span { flex: 1; }
.activity time { color: var(--muted); white-space: nowrap; font-size: 12.5px; }

/* ---------- תוכניות ---------- */
.toolbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.h2 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.dropzone { border: 2px dashed rgba(0, 113, 227, .35); border-radius: var(--r-xl); background: var(--panel); padding: 64px 20px; text-align: center; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: background .2s, border-color .2s; }
.dropzone .icon { color: var(--blue); background: var(--blue-l); border-radius: 18px; padding: 16px; width: 68px; height: 68px; margin-bottom: 6px; }
.dropzone h3 { color: var(--ink); font-size: 18px; }
.dropzone p { margin: 0; }
.dropzone:hover, .dropzone.on { border-color: var(--blue); background: #f8fbff; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.plan-grid.drag { outline: 2px dashed var(--blue); outline-offset: 8px; border-radius: var(--r-xl); }
.plan-tile { background: var(--panel); border-radius: var(--r-xl); padding: 10px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pt-img { display: block; aspect-ratio: 4/3; background: var(--panel-2); border-radius: 14px; position: relative; overflow: hidden; }
.pt-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pt-done { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--green); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; display: inline-flex; gap: 4px; align-items: center; }
.skeleton { width: 100%; height: 100%; background: linear-gradient(90deg, #ededf0, #f7f7f9, #ededf0); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.pt-body { display: flex; align-items: center; gap: 6px; padding: 12px 6px 2px; }
.pt-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pt-name:hover { color: var(--blue); text-decoration: none; }
.pt-meta { display: flex; justify-content: space-between; padding: 0 6px 6px; font-size: 12.5px; color: var(--muted); }
.pt-meta span { display: inline-flex; align-items: center; gap: 5px; }
.progress { background: var(--panel); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }

/* ---------- טבלאות (רשימה מקובצת) ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); font-size: 14px; }
.plans > .table { border-radius: var(--r-xl); } /* בלי overflow:hidden – אחרת תפריט השורה (⌄) נחתך; הפינות מעוגלות בתאים */
.plans > .table thead th:first-child { border-start-start-radius: var(--r-xl); }
.plans > .table thead th:last-child { border-start-end-radius: var(--r-xl); }
.plans > .table tbody tr:last-child td:first-child { border-end-start-radius: var(--r-xl); }
.plans > .table tbody tr:last-child td:last-child { border-end-end-radius: var(--r-xl); }
.table th { text-align: start; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #fafafc; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table a { color: var(--ink); font-weight: 500; }
.table a:hover { color: var(--blue); text-decoration: none; }
.m-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; white-space: nowrap; }
.m-extra { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.row-actions { white-space: nowrap; text-align: end; width: 1%; }
.adj { width: 96px; height: 32px; border: 0; border-radius: 8px; padding: 0 10px; text-align: end; background: var(--fill-2); }
.adj:focus { outline: 0; box-shadow: 0 0 0 3px var(--ring); background: #fff; }
.stage-card { padding: 0; margin-bottom: 18px; overflow-x: auto; position: relative; }
.stage-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; flex-wrap: wrap; }
.stage-head h3 { font-size: 19px; }
.add-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mult { background: var(--warn-l); color: var(--warn); font-weight: 600; font-size: 12px; border-radius: 999px; padding: 1px 8px; direction: ltr; }
.pad { padding: 4px 20px 18px; margin: 0; }
.quantities { overflow-x: auto; position: relative; }
.plan-mults { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; background: var(--line-2); border-radius: 12px; overflow: hidden; }
.plan-mult { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--panel-2); padding: 7px 12px; font-size: 14px; }
.plan-mult span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-mult input { width: 90px; height: 30px; border: 0; border-radius: 8px; padding: 0 8px; background: #fff; }

/* כרטיסי כמויות */
.q-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 22px; }
.q-card { --c: var(--blue); background: var(--panel); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.q-card-top { display: flex; align-items: center; gap: 10px; }
.q-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 12%, #fff); flex: none; }
.q-titles { display: flex; flex-direction: column; min-width: 0; }
.q-titles b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-titles span { font-size: 12px; color: var(--muted); }
.q-val { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.q-val b { font-size: 34px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.q-val span { color: var(--muted); font-weight: 500; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 600; background: var(--blue-l); color: var(--blue); border-radius: 999px; padding: 1px 8px; }
.tag.warn { background: var(--warn-l); color: var(--warn); }
.q-bar { height: 4px; border-radius: 999px; background: var(--c); opacity: .85; }
.q-foot { font-size: 12px; color: var(--muted); }
.q-table { min-width: 560px; }

/* ---------- עורך ---------- */
.editor { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.ed-top { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 16px; flex: none; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line-2); }
.ed-proj { color: var(--ink); font-weight: 600; font-size: 15px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-proj:hover { color: var(--blue); text-decoration: none; }
.ed-tabs { display: flex; gap: 2px; padding: 2px; background: var(--fill); border-radius: 9px; }
.ed-tabs a { color: var(--ink); padding: 4px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; }
.ed-tabs a:hover { background: rgba(255,255,255,.6); text-decoration: none; }
.plan-switch { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; background: var(--fill); border-radius: 10px; padding: 2px; }
.plan-switch select { height: 28px; border-radius: 8px; border: 0; background: #fff; color: var(--ink); padding: 0 10px; max-width: 300px; font-weight: 500; font-size: 13px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ed-body { flex: 1; display: flex; min-height: 0; gap: 12px; padding: 12px; }
.ed-side { width: 300px; flex: none; background: var(--panel); border-radius: var(--r-xl); display: flex; flex-direction: column; min-height: 0; overflow: hidden; box-shadow: var(--shadow-sm); }
.ed-side.closed { display: none; }
.ed-side-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px; }
.ed-stages { overflow: auto; flex: 1; padding: 0 0 20px; }
.side-empty { margin: 8px 12px; padding: 22px 16px; color: var(--muted); font-size: 14px; text-align: center; background: var(--panel-2); border-radius: 14px; }
.stage { padding: 4px 0 6px; }
.stage + .stage { border-top: 1px solid var(--line-2); }
.stage-row { display: flex; align-items: center; padding: 4px 8px 2px 6px; gap: 2px; }
.stage-toggle { flex: 1; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 4px; cursor: pointer; text-align: start; color: var(--ink); font-size: 13px; min-width: 0; }
.stage-toggle b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); text-transform: none; }
.chev { transition: transform .2s var(--ease); color: var(--muted); display: inline-flex; }
.chev.open { transform: rotate(-90deg); }
[dir="ltr"] .chev.open { transform: rotate(90deg); }
.m-list { padding: 2px 8px 4px; display: flex; flex-direction: column; gap: 2px; }
.m-row { --c: #999; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.m-row:hover { background: var(--fill-2); }
.m-row.active { background: var(--blue); color: #fff; }
.m-row.active .m-vals, .m-row.active .m-vals b, .m-row.active .muted { color: rgba(255,255,255,.85); }
.m-row.active .icon-btn { color: #fff; }
.m-row.active .icon-btn:hover { background: rgba(255,255,255,.2); }
.m-row.active svg path[stroke], .m-row.active svg circle, .m-row.active svg rect { filter: drop-shadow(0 0 1px rgba(255,255,255,.9)); }
.m-row.hidden { opacity: .45; }
.m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.m-vals { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-vals b { font-variant-numeric: tabular-nums; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.m-actions { display: flex; opacity: 0; transition: opacity .12s; }
.m-row:hover .m-actions, .m-row.active .m-actions, .m-actions:focus-within { opacity: 1; }
.m-empty { display: flex; gap: 6px; padding: 2px 0 4px; }
.m-empty button { flex: 1; border: 0; background: var(--fill-2); border-radius: 10px; padding: 8px 0; cursor: pointer; color: var(--blue); font-size: 13px; font-weight: 500; transition: background .15s; }
.m-empty button:hover { background: var(--blue-l); }

.ed-main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; background: var(--panel); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
/* כשאין מקום (טאבלט לאורך, הרבה כלים) הסרגל נשבר לשורה נוספת במקום שחלק ממנו ייעלם */
.ed-toolbar { min-height: 52px; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; row-gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line-2); }
.ed-toolbar::-webkit-scrollbar { display: none; }
.tool { height: 32px; min-width: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 13px; white-space: nowrap; transition: background .15s; flex: none; }
.tool:hover:not(:disabled) { background: var(--fill-2); }
.tool.on { background: var(--blue-l); color: var(--blue); }
.tool.on.ok { background: var(--green-l); color: var(--green); }
.tool:disabled { opacity: .3; cursor: default; }
.scale-btn { background: var(--fill-2); }
.scale-btn.warn { background: var(--warn-l); color: var(--warn); }
.tb-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; flex: none; }
.active-pill { --c: #999; margin-inline-start: auto; flex: none; display: flex; align-items: center; gap: 8px; padding: 3px 5px 3px 12px; border-radius: 999px; background: var(--fill-2); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
.active-pill b { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }

.viewport { flex: 1; position: relative; overflow: hidden; background: #f2f2f5; touch-action: none; user-select: none; -webkit-user-select: none;
  background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px); background-size: 22px 22px; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: 0 8px 40px rgba(0,0,0,.12); background: #fff; }
.world img { display: block; pointer-events: none; }
.plan-loading { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 40px; }
.pdf-sharp { position: absolute; pointer-events: none; }
.overlay { position: absolute; left: 0; top: 0; overflow: visible; }
.shape { cursor: pointer; }
.shape .hit { fill: none; stroke: transparent; stroke-width: 14px; vector-effect: non-scaling-stroke; }
.shape.dim { opacity: .45; }
.shape.sel { filter: drop-shadow(0 0 4px rgba(0, 113, 227, .7)); }
.lbl { font-family: var(--lbl-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Heebo', sans-serif); font-weight: var(--lbl-weight, 600); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-opacity: .95; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; font-variant-numeric: tabular-nums; }
/* בעברית היחידה משמאל למספר ("מ״ר 12.5"), באנגלית מימין – לפי כיוון הממשק ולא לפי שכבת השרטוט (שהיא LTR) */
html[dir="rtl"] .lbl { direction: rtl; }
.lbl.bg-none, .lbl.bg-chip { stroke: none; }
.lbl .unit { font-weight: 400; opacity: .72; }
.lbl-chip { pointer-events: none; }
.lbl.bg-box { stroke: none; filter: url(#lblbox); }
.labels-layer { pointer-events: none; }
.draft { stroke-width: var(--draft-w, 2.5px); stroke-dasharray: var(--draft-dash, 7 5); pointer-events: none; }
.cal-line { stroke: #ff3b30; stroke-width: 2.5px; stroke-dasharray: 8 5; pointer-events: none; }
.cal-pt { fill: #fff; stroke: #ff3b30; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.handle { fill: #fff; stroke: var(--blue); stroke-width: 2px; vector-effect: non-scaling-stroke; cursor: move; }
.handle:hover { fill: var(--blue); }
.handle.arc { stroke: #f76b15; }
.handle-mid { fill: #fff; fill-opacity: .9; stroke: var(--blue); stroke-width: 1.5px; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; cursor: copy; }
.handle-mid:hover { fill: var(--blue); }
.snap-mark { fill: none; stroke: #ff3b30; stroke-width: 2px; pointer-events: none; }
.ruler-line { fill: none; stroke: #ff9500; stroke-width: 2.5px; stroke-dasharray: 10 4; pointer-events: none; }
.ruler-pt { fill: #fff; stroke: #ff9500; stroke-width: 2px; vector-effect: non-scaling-stroke; pointer-events: none; }
.ruler-lbl { fill: #b45309; text-anchor: start; }
.lbl.num { text-anchor: start; }
.lbl.edge-lbl { fill: #14231f; } /* על התוכנית (נייר לבן) – כהה גם במצב כהה */
.section-box { pointer-events: none; }
.section-box rect { fill: rgba(88, 86, 214, .05); stroke: #5856d6; stroke-width: 1.5px; stroke-dasharray: 10 6; }
.section-box text { direction: rtl; unicode-bidi: plaintext; text-anchor: end; fill: #5856d6; font-weight: 700; font-family: -apple-system, BlinkMacSystemFont, 'Heebo', sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.section-draft { fill: rgba(88, 86, 214, .08); stroke: #5856d6; stroke-width: 2px; stroke-dasharray: 6 4; pointer-events: none; }
.status-live-ruler, .ed-status .live.ruler { background: #fff4e5; color: #8a4b00; }
.sections-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line, rgba(0,0,0,.1)); }
.sections-box h3 { font-size: 15px; margin: 0 0 4px; }
.section-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.sel-drop select { max-width: 150px; height: 30px; border: 0; border-radius: 8px; padding: 0 6px; background: #fff; font: inherit; }

/* חלונית בחירה – זכוכית */
.sel-card { position: absolute; top: 14px; right: 14px; width: 284px; padding: 14px; font-size: 14px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: 18px; box-shadow: 0 0 0 .5px rgba(0,0,0,.1), var(--shadow-lg); }
.sel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sel-head b { font-weight: 600; }
.sel-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.sel-vals div { background: rgba(118,118,128,.1); border-radius: 12px; padding: 8px 11px; display: flex; flex-direction: column; }
.sel-vals span { font-size: 11.5px; color: var(--muted); }
.sel-vals b { font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.sel-drop { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 12px; color: var(--ink-2); font-size: 13px; }
.sel-drop input { width: 84px; height: 30px; border: 0; border-radius: 8px; padding: 0 9px; background: #fff; }
.sel-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sel-card p { margin: 10px 0 0; }

.ed-status { height: 42px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.ed-status .hint { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.live { background: var(--ink); color: #fff; font-weight: 600; border-radius: 999px; padding: 3px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zoom { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-2); direction: ltr; font-weight: 500; }

/* ---------- הודעות (HUD) ---------- */
.toasts { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: rgba(29, 29, 31, .86); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 500; font-size: 14px; animation: pop .25s var(--ease); }
.toast.error { background: rgba(215, 0, 21, .92); }
.toast.warn { background: rgba(178, 80, 0, .92); }

/* ---------- החלפת תמונת באנר ---------- */
.hero-preview { height: 190px; border-radius: 16px; margin-bottom: 16px; position: relative; overflow: hidden; background: #e9eef5 center / cover no-repeat; }
.hero-preview span { position: absolute; bottom: 10px; inset-inline-start: 10px; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--ink-2); }
.hero-drop { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 18px; cursor: pointer; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--ink-2); font-size: 14px; background: var(--fill-2); transition: all .15s; }
.hero-drop:hover, .hero-drop.on { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preset { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--fill-2); text-align: start; transition: transform .2s var(--ease); }
.preset:hover { transform: scale(1.02); }
.preset.on { box-shadow: 0 0 0 3px var(--blue); }
.preset img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.preset span { display: block; padding: 6px 9px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preset-check { position: absolute; top: 7px; inset-inline-start: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }

/* ============ התחברות ומנוי ============ */
/* מסך כניסה: כרטיס במרכז עם פס עליון של המותג */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: var(--panel); border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08); overflow: hidden; }
.auth-band { display: flex; align-items: center; gap: 8px; padding: 16px 20px; background: #0a3d8f; }
.auth-band .brand, .auth-band .brand span { color: #fff; }
.auth-band .theme-toggle { background: transparent; color: #fff; }
@media (hover: hover) and (pointer: fine) { .auth-band .theme-toggle:hover { background: rgba(255,255,255,.14); } }
.auth-body { padding: 26px 28px 28px; }
.auth-card h1 { font-size: 24px; letter-spacing: -.02em; text-align: center; margin: 0 0 6px; }
.auth-body > .sub { text-align: center; margin: 0 0 22px; font-size: 14.5px; }
.auth-form { gap: 14px; }
.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.link.small { font-size: 13px; }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-inline-end: 44px !important; }
.pw-eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pw-eye:hover { color: var(--ink); background: var(--fill); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }
.btn-google { background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.06); gap: 10px; font-weight: 500; }
.btn-google:hover { background: var(--fill); }
.auth-legal { text-align: center; margin: 10px 0 0; line-height: 1.5; }
.auth-legal a { text-decoration: underline; text-underline-offset: 3px; }
.auth-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--ink-2); }

.paywall { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; align-items: center; padding: 16px 16px 60px; }
.paywall-top { width: 100%; max-width: 980px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.paywall-card { width: 100%; max-width: 440px; background: var(--panel); border-radius: 28px; box-shadow: var(--shadow); padding: 36px 30px; text-align: center; }
.paywall-card h1 { font-size: 34px; letter-spacing: -.035em; }
.paywall-card .eyebrow { color: var(--orange); }
.paywall-card .pill-tabs { margin: 22px auto 18px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.price b { font-size: 52px; letter-spacing: -.045em; font-weight: 600; }
.price span { color: var(--muted); }
.price-note { color: var(--green); font-size: 13px; margin: 4px 0 0; font-weight: 500; }
.price-list { list-style: none; padding: 0; margin: 22px 0; text-align: start; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.price-list li { display: flex; gap: 8px; align-items: center; }
.price-list .icon { color: var(--blue); }
.paywall-card .muted { margin-top: 16px; }

/* ---------- מסכים קטנים ---------- */
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .overview { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .auth-body { padding: 22px 18px 24px; }
  .trial-pill { display: none; }
}
@media (max-width: 700px) {
  /* סרגל הכלים של העורך נשבר לשתי שורות במקום להיחתך */
  .ed-toolbar { height: auto; min-height: 52px; flex-wrap: wrap; row-gap: 6px; padding: 6px 10px; overflow: visible; }
  .ed-toolbar .tb-sep { display: none; }
  .ed-toolbar .active-pill { margin-inline-start: 0; flex: 1 1 100%; max-width: 100%; flex-wrap: wrap; row-gap: 6px; border-radius: 16px; padding: 5px 8px; }
  .topbar-in, .proj-head-in { padding-inline: 16px; }
  .topbar-in { gap: 10px; }
  .topnav a { padding: 6px 9px; }
  .nav-cta { font-size: 0; gap: 0; width: 30px; padding: 0; }
  .page { padding: 14px 16px 60px; }
  .hero { min-height: 460px; border-radius: 22px; }
  .hero-text { margin: 0 12px 12px; padding: 22px 18px; }
  .hero h1 { font-size: 30px; }
  .kpi { padding: 14px; min-height: 110px; }
  .kpi-val { font-size: 30px; }
  .row2 { grid-template-columns: 1fr; }
  .project-list { grid-template-columns: 1fr; }
  .proj-title h1 { font-size: 26px; }
  .stats .kpi-val { font-size: 24px; }
  .section-head h2, .band-head h2 { font-size: 24px; }
  .ed-tabs { display: none; }
  .ed-body { padding: 8px; gap: 8px; }
  .ed-side { position: absolute; z-index: 30; top: 60px; bottom: 8px; inset-inline-start: 8px; box-shadow: var(--shadow-lg); }
  .ed-proj { max-width: 140px; }
  .plan-switch select { max-width: 150px; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  /* טלפון: הסרגל העליון נכנס בשורה אחת – בלי השם ליד הלוגו ועם רווחים צפופים יותר */
  .topbar-in { gap: 6px; padding-inline: 12px; }
  .topbar .brand > span:not(.brand-mark) { display: none; }
  .topnav a { padding: 6px 7px; }
  .account-area { gap: 6px; }
  .topbar .theme-toggle { width: 30px; height: 30px; }
}

/* ---------- מצב כהה (לפי הגדרות המערכת) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #2997ff; --blue-h: #47a6ff; --blue-l: rgba(41, 151, 255, .16); --ring: rgba(41, 151, 255, .4);
    --bg: #000; --panel: #1c1c1e; --panel-2: #2c2c2e;
    --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .16);
    --line: rgba(84, 84, 88, .65); --line-2: rgba(84, 84, 88, .4);
    --ink: #f5f5f7; --ink-2: #d1d1d6; --muted: #98989d;
    --green: #30d158; --green-l: rgba(48, 209, 88, .15); --orange: #ff9f0a;
    --warn: #ffb340; --warn-l: rgba(255, 159, 10, .15); --danger: #ff453a; --danger-l: rgba(255, 69, 58, .15);
    --glass: rgba(30, 30, 32, .66); --glass-strong: rgba(36, 36, 38, .84); --glass-border: rgba(255, 255, 255, .12);
  }
  :root:not([data-theme="light"]) .pill-tabs a.on, :root:not([data-theme="light"]) .seg button.on { background: #636366; box-shadow: none; }
  :root:not([data-theme="light"]) .plan-switch select, :root:not([data-theme="light"]) .sel-drop input, :root:not([data-theme="light"]) .sel-drop select, :root:not([data-theme="light"]) .plan-mult input { background: #3a3a3c; }
  :root:not([data-theme="light"]) .viewport { background: #111; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); }
  :root:not([data-theme="light"]) .table tbody tr:hover { background: #242426; }
  :root:not([data-theme="light"]) .field input:focus, :root:not([data-theme="light"]) .field select:focus, :root:not([data-theme="light"]) .field textarea:focus, :root:not([data-theme="light"]) .adj:focus { background: #2c2c2e; }
  :root:not([data-theme="light"]) .pc-thumb img, :root:not([data-theme="light"]) .pt-img img { mix-blend-mode: normal; }
  :root:not([data-theme="light"]) .dropzone:hover, :root:not([data-theme="light"]) .dropzone.on { background: #1f2a36; }
  :root:not([data-theme="light"]) .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%); }
  :root:not([data-theme="light"]) .hero-actions .btn-outline { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
  :root:not([data-theme="light"]) .hero-actions .btn-outline:hover { background: rgba(255,255,255,.16); }
}
:root[data-theme="dark"] {
    --blue: #2997ff; --blue-h: #47a6ff; --blue-l: rgba(41, 151, 255, .16); --ring: rgba(41, 151, 255, .4);
    --bg: #000; --panel: #1c1c1e; --panel-2: #2c2c2e;
    --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .16);
    --line: rgba(84, 84, 88, .65); --line-2: rgba(84, 84, 88, .4);
    --ink: #f5f5f7; --ink-2: #d1d1d6; --muted: #98989d;
    --green: #30d158; --green-l: rgba(48, 209, 88, .15); --orange: #ff9f0a;
    --warn: #ffb340; --warn-l: rgba(255, 159, 10, .15); --danger: #ff453a; --danger-l: rgba(255, 69, 58, .15);
    --glass: rgba(30, 30, 32, .66); --glass-strong: rgba(36, 36, 38, .84); --glass-border: rgba(255, 255, 255, .12);
  }
:root[data-theme="dark"] .pill-tabs a.on, :root[data-theme="dark"] .seg button.on { background: #636366; box-shadow: none; }
:root[data-theme="dark"] .plan-switch select, :root[data-theme="dark"] .sel-drop input, :root[data-theme="dark"] .sel-drop select, :root[data-theme="dark"] .plan-mult input { background: #3a3a3c; }
:root[data-theme="dark"] .viewport { background: #111; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); }
:root[data-theme="dark"] .table tbody tr:hover { background: #242426; }
:root[data-theme="dark"] .field input:focus, :root[data-theme="dark"] .field select:focus, :root[data-theme="dark"] .field textarea:focus, :root[data-theme="dark"] .adj:focus { background: #2c2c2e; }
:root[data-theme="dark"] .pc-thumb img, :root[data-theme="dark"] .pt-img img { mix-blend-mode: normal; }
:root[data-theme="dark"] .dropzone:hover, :root[data-theme="dark"] .dropzone.on { background: #1f2a36; }
:root[data-theme="dark"] .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%); }
:root[data-theme="dark"] .hero-actions .btn-outline { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
:root[data-theme="dark"] .hero-actions .btn-outline:hover { background: rgba(255,255,255,.16); }


@media print {
  .topbar, .pill-tabs, .toolbar-row button { display: none !important; }
  body { background: #fff; }
}

/* ---------- מנוי ותשלומים ---------- */
.billing-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.bill-status { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.bill-list { margin: 0; display: flex; flex-direction: column; }
.bill-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.bill-list > div:last-child { border-bottom: 0; }
.bill-list dt { color: var(--muted); flex-shrink: 0; }
.bill-list dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; text-align: end; }
.bill-list .inline-edit { margin-inline-start: 8px; padding: 2px 10px; font-weight: 500; }
.bill-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.upgrade { text-align: center; }
.center-text { text-align: center; margin-top: 12px; }
.trial-pill:hover { text-decoration: none; filter: brightness(.97); }
.trial-pill.warn { background: var(--warn-l); color: var(--warn); }
@media (max-width: 900px) { .billing-grid { grid-template-columns: 1fr; } }

/* ============================================================
   צבעים: לבן וכחול (מצב יום), שחור וכחול (מצב לילה)
   שמות המשתנים --forest / --lime נשארו מהעיצוב הקודם:
   --forest = כחול הפעולה הראשי, --lime = הדגשה (במצב יום: כחול בהיר)
   ============================================================ */
:root {
  --forest: #0a3d8f;
  --forest-2: #0c4aa8;
  --forest-3: #0c4aa8;
  --lime: #ffffff;
  --lime-2: #e6edf8;
  --lime-d: #0a3d8f;
  --lime-l: #e6edf8;

  --blue: #0a3d8f;          /* צבע הפעולה הראשי */
  --blue-h: #0c4aa8;
  --blue-d: #082f6e;
  --blue-l: #e6edf8;        /* רקע הדגשה – כחול בהיר */
  --ring: rgba(10, 61, 143, .35);

  --bg: #f5f8fc;
  --panel: #ffffff;
  --panel-2: #f5f8fc;
  --ink: #0f1722;
  --ink-2: #3a4554;
  --muted: #6b7686;
  --green: #1f7a3d;
  --orange: #0a3d8f;
  --glass: rgba(255, 255, 255, .74);
  --glass-strong: rgba(255, 255, 255, .88);
}

.brand-mark { background: var(--blue); color: #fff; box-shadow: none; }
.btn-primary, .btn-lime { background: var(--blue); color: #fff; font-weight: 600; }
.btn-primary:hover, .btn-lime:hover { background: var(--blue-h); }
.btn-outline { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn-outline:hover { background: var(--blue-l); }

a, .link, .crumb, .pc-empty, .dropzone .icon, .m-empty button { color: var(--blue); }
.link:hover, .crumb:hover, .pc-name:hover, .pt-name:hover, .table a:hover, .ed-proj:hover { color: var(--blue-h); }

.eyebrow, .section-head .eyebrow, .band-head .eyebrow { color: var(--blue); font-weight: 600; }
.kpi-icon, .empty-art, .dropzone .icon { background: var(--blue-l); color: var(--blue); }
.kpi-note, .price-note { color: var(--blue); }
.trial-pill { background: var(--blue-l); color: var(--blue-d); font-weight: 600; }

.pill-tabs a.on .count { background: var(--blue); color: #fff; }
.meter i, .bar i { background: var(--blue); }
.chip-btn.on, .preset-check { background: var(--blue); color: #fff; }
.preset.on { box-shadow: 0 0 0 3px var(--blue); }
.swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.sym.on { background: var(--blue-l); box-shadow: inset 0 0 0 2px var(--blue); }
.check input, .range { accent-color: var(--blue); }
.menu button:hover { background: var(--blue); color: #fff; }

/* עורך */
.tool.on { background: var(--blue); color: #fff; }
.tool.on.ok { background: var(--green); color: #fff; }
.m-row.active { background: var(--blue); color: #fff; }
.m-row.active .m-vals, .m-row.active .m-vals b { color: #fff; }
.live { background: var(--blue); color: #fff; }
.handle { stroke: var(--blue); }
.handle:hover { fill: var(--blue-l); }
.shape.sel { filter: drop-shadow(0 0 4px rgba(10, 61, 143, .6)); }
.auth-band { background: #0a3d8f; } /* קבוע – גם במצב לילה (ניגודיות לטקסט הלבן) */

/* מסך התחברות ומנוי */
.price-list .icon { color: var(--blue); }
.paywall-card .eyebrow { color: var(--blue); }

/* מצב לילה: שחור וכחול */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #2563c9; --blue-h: #3573d6; --blue-d: #1b4fae; --blue-l: rgba(37, 99, 201, .2); --ring: rgba(53, 115, 214, .45);
    --forest: #2563c9; --lime-d: #6f9be6;
    --bg: #000000; --panel: #111418; --panel-2: #1a1e25;
    --ink: #f2f5f9; --ink-2: #c7cfda; --muted: #96a1b0;
    --green: #30d158;
    --glass: rgba(17, 20, 24, .7); --glass-strong: rgba(22, 26, 32, .88);
  }
  :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-lime { background: #1b4fae; color: #fff; }
  :root:not([data-theme="light"]) .btn-primary:hover, :root:not([data-theme="light"]) .btn-lime:hover { background: #2563c9; }
  :root:not([data-theme="light"]) a, :root:not([data-theme="light"]) .link, :root:not([data-theme="light"]) .crumb, :root:not([data-theme="light"]) .pc-empty, :root:not([data-theme="light"]) .m-empty button,
  :root:not([data-theme="light"]) .eyebrow, :root:not([data-theme="light"]) .kpi-note, :root:not([data-theme="light"]) .price-note { color: #6f9be6; }
  :root:not([data-theme="light"]) .btn-outline { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) .trial-pill:not(.warn) { color: #a3bff0; }
  :root:not([data-theme="light"]) .tag:not(.warn):not(.ok), :root:not([data-theme="light"]) .m-row:not(.active) .m-mult { color: #a3bff0; }
  :root:not([data-theme="light"]) .tool.on, :root:not([data-theme="light"]) .m-row.active, :root:not([data-theme="light"]) .live,
  :root:not([data-theme="light"]) .chip-btn.on, :root:not([data-theme="light"]) .menu button:hover, :root:not([data-theme="light"]) .pill-tabs a.on .count { background: #1b4fae; color: #fff; }
}
:root[data-theme="dark"] {
  --blue: #2563c9; --blue-h: #3573d6; --blue-d: #1b4fae; --blue-l: rgba(37, 99, 201, .2); --ring: rgba(53, 115, 214, .45);
  --forest: #2563c9; --lime-d: #6f9be6;
  --bg: #000000; --panel: #111418; --panel-2: #1a1e25;
  --ink: #f2f5f9; --ink-2: #c7cfda; --muted: #96a1b0;
  --green: #30d158;
  --glass: rgba(17, 20, 24, .7); --glass-strong: rgba(22, 26, 32, .88);
}
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-lime { background: #1b4fae; color: #fff; }
:root[data-theme="dark"] .btn-primary:hover, :root[data-theme="dark"] .btn-lime:hover { background: #2563c9; }
:root[data-theme="dark"] a, :root[data-theme="dark"] .link, :root[data-theme="dark"] .crumb, :root[data-theme="dark"] .pc-empty, :root[data-theme="dark"] .m-empty button,
:root[data-theme="dark"] .eyebrow, :root[data-theme="dark"] .kpi-note, :root[data-theme="dark"] .price-note { color: #6f9be6; }
:root[data-theme="dark"] .btn-outline { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .trial-pill:not(.warn) { color: #a3bff0; }
:root[data-theme="dark"] .tag:not(.warn):not(.ok), :root[data-theme="dark"] .m-row:not(.active) .m-mult { color: #a3bff0; }
:root[data-theme="dark"] .tool.on, :root[data-theme="dark"] .m-row.active, :root[data-theme="dark"] .live,
:root[data-theme="dark"] .chip-btn.on, :root[data-theme="dark"] .menu button:hover, :root[data-theme="dark"] .pill-tabs a.on .count { background: #1b4fae; color: #fff; }


/* ============ נגישות (ת"י 5568 / WCAG 2.1 AA) ============ */
:root { --muted: #5f6b7b; --lime-text: #0a3d8f; }
.eyebrow, .section-head .eyebrow, .band-head .eyebrow, .hero-text .eyebrow, .paywall-card .eyebrow,
.kpi-note, .price-note, .link:hover, .crumb:hover, .pc-name:hover, .pt-name:hover, .table a:hover { color: var(--lime-text); }
.dropzone h2, .h3 { color: var(--ink); font-size: 18px; margin: 0; }
.stage-head h2 { font-size: 19px; }

/* דילוג לתוכן */
.skip-link { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 1000; transform: translateY(-160%); background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: transform .15s; }
.skip-link:focus { transform: none; text-decoration: none; }

/* טקסט לקוראי מסך בלבד */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* כותרת הפרויקט בתוך אזור התוכן הראשי */
.page .proj-head-in { padding-inline: 0; padding-top: 0; max-width: none; }

/* הפחתת תנועה לפי הגדרות המערכת */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --muted: #96a1b0; --lime-text: #6f9be6; }
}
:root[data-theme="dark"] { --muted: #96a1b0; --lime-text: #6f9be6; }


/* מצב תצוגה ידני (כפתור בהיר/כהה) */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
.theme-toggle { width: 32px; height: 32px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--fill); color: var(--ink); transition: background .15s; flex: none; }
.theme-toggle:hover { background: rgba(118,118,128,.2); }
.lang-toggle { font-size: 12px; font-weight: 700; letter-spacing: .02em; font-family: inherit; }
.auth-card { position: relative; }

/* ---------- פוטר, מסמכים משפטיים, פרטיות ---------- */
.site-footer { max-width: 1180px; margin: 10px auto 0; padding: 22px 22px 36px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-2); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }
.auth-page .site-footer, .paywall .site-footer { border: 0; padding: 26px 0 0; margin: 0; justify-content: center; }
.legal-page { min-height: 100vh; background: var(--bg); padding: 16px 16px 0; }
.legal-top { max-width: 820px; margin: 0 auto 18px; display: flex; align-items: center; gap: 10px; }
.legal-card { max-width: 820px; margin: 0 auto; background: var(--panel); border-radius: 24px; padding: 34px 38px; line-height: 1.7; }
.legal-card h1 { font-size: 32px; }
.legal-card h2 { font-size: 19px; margin: 28px 0 8px; }
.legal-card ul { padding-inline-start: 22px; margin: 8px 0; }
.legal-card li { margin: 5px 0; }
.consents { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.consents .check { align-items: flex-start; line-height: 1.45; }
.consents .check input { margin-top: 2px; flex: none; }
.privacy-rows { display: flex; flex-direction: column; }
.privacy-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.privacy-row > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.privacy-row span { color: var(--muted); font-size: 13.5px; }
.danger-zone b { color: var(--danger); }
@media (max-width: 700px) { .legal-card { padding: 24px 18px; } .privacy-row { flex-direction: column; align-items: stretch; } }
/* קישורים בתוך טקסט – קו תחתון, לא רק צבע (WCAG 1.4.1) */
.legal-card p a, .legal-card li a, .sub a, .consents a, .privacy-row a, .note a { text-decoration: underline; text-underline-offset: 3px; }

/* כפתורים שהם קישורים – לא לקבל את צבע הקישורים במצב כהה */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a.btn-lime, :root:not([data-theme="light"]) a.btn-primary { color: #fff; }
  :root:not([data-theme="light"]) a.btn:not(.btn-lime):not(.btn-primary) { color: var(--ink); }
}
:root[data-theme="dark"] a.btn-lime, :root[data-theme="dark"] a.btn-primary { color: #fff; }
:root[data-theme="dark"] a.btn:not(.btn-lime):not(.btn-primary) { color: var(--ink); }
/* לשוניות בבורר – טקסט בצבע הטקסט הרגיל, לא בצבע הקישורים */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-tabs a, :root:not([data-theme="light"]) .ed-tabs a, :root:not([data-theme="light"]) .topnav a, :root:not([data-theme="light"]) .brand { color: var(--ink); } }
:root[data-theme="dark"] .pill-tabs a, :root[data-theme="dark"] .ed-tabs a, :root[data-theme="dark"] .topnav a, :root[data-theme="dark"] .brand { color: var(--ink); }

/* ---------- לוח הבקרה של מנהל המערכת (#/admin) ---------- */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-refresh { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.admin-sub { font-size: 15px; font-weight: 600; color: var(--muted); margin: 22px 0 10px; }
.admin .kpi-val { font-size: 32px; }
.admin .kpi-note { font-weight: 400; color: var(--muted); }
.admin .m-extra { white-space: normal; overflow-wrap: anywhere; }
.admin .show-sm { display: none; }
.admin .tag, .admin .table .num { white-space: nowrap; }
.kpi-link { color: inherit; transition: box-shadow .15s; }
.kpi-link:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--ring); }
.kpi-icon.green { background: var(--green-l); color: var(--green); }
.kpi-icon.warn { background: var(--warn-l); color: var(--warn); }
.admin-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.admin-charts .card-title { margin-bottom: 12px; }
.bars { margin: 0; }
.bars svg { display: block; width: 100%; height: 150px; }
.bars rect { fill: var(--blue); opacity: .85; }
.bars rect:hover { opacity: 1; }
.bars line { stroke: var(--line); }
.bars figcaption { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.table-scroll { overflow-x: auto; }
.tag.ok { background: var(--green-l); color: var(--green); }
.admin-foot { font-size: 12.5px; margin-top: 14px; }
@media (max-width: 900px) { .admin-charts { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .admin .hide-sm { display: none; } .admin .show-sm { display: block; } .admin .table td, .admin .table th { padding: 10px 10px; } }
@media (max-width: 480px) { .admin .kpi-val { font-size: 24px; } .admin .kpi { min-height: 0; padding: 14px; } }

/* טלפון – מצב צפייה בלבד */
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.plain-fieldset:disabled input, .plain-fieldset:disabled select, .plain-fieldset:disabled textarea { opacity: 1; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.view-only-bar { background: var(--blue-l); color: var(--ink); font-size: 12.5px; text-align: center; padding: 6px 16px; border-top: 1px solid var(--line-2); }

/* ---------- תמחור ---------- */
.price-card { margin-top: 18px; }
.price-settings { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin-bottom: 14px; }
.price-settings > label:not(.check) { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; color: var(--muted); }
.price-settings input[type=number] { width: 150px; }
.price-sum { max-width: 460px; }
.price-sum .price-total { font-size: 17px; font-weight: 700; }
.price-sum .price-total dt { color: var(--ink); }
.q-table .price-in { width: 84px; }

/* ---------- תבניות ---------- */
.tpl-list { display: flex; flex-direction: column; gap: 10px; }
.tpl-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.tpl-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rev-tag { background: var(--fill-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; }

/* ---------- הערות, מחק, ספירה אוטומטית, השוואה ---------- */
.note { cursor: pointer; }
.note-erase { fill: #fff; stroke: none; }
.note-erase.sel { stroke: #0090ff; stroke-width: 2px; stroke-dasharray: 6 4; }
.note-text { font-family: -apple-system, BlinkMacSystemFont, 'Heebo', sans-serif; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; dominant-baseline: middle; }
.note-arrow .hit { stroke: transparent; stroke-width: 14px; vector-effect: non-scaling-stroke; }
.note.sel { filter: drop-shadow(0 0 2px #0090ff) drop-shadow(0 0 2px #0090ff); }
.erase-draft { fill: rgba(255, 255, 255, .85); stroke: #0090ff; stroke-width: 2px; stroke-dasharray: 6 4; pointer-events: none; }
.auto-mark { fill: none; stroke-width: 2.5px; stroke-dasharray: 5 3; pointer-events: none; }
.auto-card .bar { height: 6px; border-radius: 999px; background: var(--fill-2); overflow: hidden; margin-top: 10px; }
.auto-card input[type=range] { width: 100%; }
.note-colors { display: flex; gap: 6px; align-items: center; }
.note-colors .swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.note-colors .swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.sel-card .note-colors { margin: 10px 0; }
.compare-img { position: absolute; left: 0; top: 0; pointer-events: none; }
.compare-pill { gap: 10px; padding-inline: 12px 5px; }
.cmp-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.cmp-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-inline-start: 6px; }
.cmp-legend .c-old { background: #e11e28; } .cmp-legend .c-new { background: #009646; } .cmp-legend .c-same { background: #6e6e6e; }

/* ---------- ייצוא תוכנית ל-PDF ---------- */
.logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-prev { max-height: 48px; max-width: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }
.print-sheet { display: none; }
@page plan-sheet { size: landscape; margin: 8mm; }
@media print {
  body.printing-plan * { visibility: hidden !important; }
  body.printing-plan .print-sheet, body.printing-plan .print-sheet * { visibility: visible !important; }
  body.printing-plan .print-sheet { page: plan-sheet; display: flex; position: fixed; inset: 0; gap: 5mm; background: #fff; color: #000; align-items: stretch; }
  .ps-plan { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #000; padding: 2mm; }
  .ps-world { position: relative; max-width: 100%; max-height: 100%; width: 100%; }
  .ps-world img, .ps-world svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .ps-block { width: 62mm; flex: none; border: 1px solid #000; padding: 4mm; display: flex; flex-direction: column; gap: 3mm; font-size: 9pt; }
  .ps-logo { max-width: 100%; max-height: 22mm; object-fit: contain; align-self: center; }
  .ps-company { font-size: 12pt; }
  .ps-details { margin: 0; white-space: pre-line; }
  .ps-info { margin: 0; display: flex; flex-direction: column; gap: 1.5mm; border-top: 1px solid #000; padding-top: 2mm; }
  .ps-info dt { font-size: 7pt; color: #444; }
  .ps-info dd { margin: 0; font-weight: 600; }
  .ps-legend { border-collapse: collapse; width: 100%; border-top: 1px solid #000; font-size: 8pt; }
  .ps-legend th, .ps-legend td { padding: 1mm 0; text-align: start; border-bottom: 1px solid #ccc; }
  .ps-legend .num { text-align: end; white-space: nowrap; }
}

/* כותרת מסך הפרויקטים (בלי תמונת באנר) */
.section-head.page-head { margin-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; letter-spacing: -.028em; }
@media (max-width: 700px) { .page-head h1 { font-size: 24px; } }

/* ---------- חלונית בחירה: פס קומפקטי בתחתית התוכנית (לא מסתיר את השרטוט) ---------- */
.sel-card { top: auto; right: auto; bottom: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); z-index: 5; }
.sel-bar { width: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 7px 8px 7px 12px; border-radius: 14px; font-size: 13px; }
.sel-bar .sel-name { display: inline-flex; align-items: center; gap: 6px; max-width: 180px; min-width: 0; }
.sel-bar .sel-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sel-bar .sel-vals { display: inline-flex; gap: 12px; margin: 0; flex-wrap: wrap; }
.sel-bar .sel-vals > span { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.sel-bar .sel-vals small { color: var(--muted); font-size: 11.5px; }
.sel-bar .sel-vals b { font-variant-numeric: tabular-nums; font-weight: 600; }
.sel-bar .sel-drop { margin: 0; gap: 6px; }
.sel-bar .sel-drop input { width: 64px; height: 28px; }
.sel-bar .sel-drop select { height: 28px; }
.sel-bar .sel-actions { display: inline-flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.sel-ic { width: 32px; height: 30px; padding: 0; justify-content: center; }
@media (max-width: 700px) { .sel-bar .sel-name { max-width: 120px; } }

/* ידיות עריכה ונקודות שרטוט: חלולות ודקות – הפינה שמתחת נשארת גלויה לסימון מדויק */
.handle { fill: transparent; stroke-width: 1.5px; }
.handle:hover { fill: rgba(11, 99, 206, .15); }
.handle-mid { fill: transparent; fill-opacity: 1; }
.handle-mid:hover { fill: rgba(11, 99, 206, .15); }

/* ריבועי עריכה שקופים למחצה (רואים את הפינה שמתחת) + סמן פלוס דק וקווי עזר בזמן שרטוט */
.handle { fill: rgba(11, 99, 206, .28); stroke: #0a3d8f; stroke-width: 1px; }
.handle:hover { fill: rgba(11, 99, 206, .45); }
.cross { pointer-events: none; }
.cross-guide { stroke: var(--cross-color, #1f6fe5); stroke-width: 1px; opacity: .55; }
.cross-plus { stroke: var(--cross-color, #0a2a66); stroke-width: 1.4px; }
.export-actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.pdf-ready { margin: 0; overflow-wrap: anywhere; }

/* ---------- הלוגו של Midotify ---------- */
/* תמונות (PNG); הגודל נקבע בקומפוננטה */
.brand .logo-mark, .logo-mark { background: none; box-shadow: none; border-radius: 0; flex: none; display: block; object-fit: contain; }
.wordmark { display: inline-flex; flex: none; direction: ltr; }
.wordmark img { display: block; max-width: none; }
.wordmark .wm-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark .wm-light { display: none; }
  :root:not([data-theme="light"]) .wordmark .wm-dark { display: block; }
}
:root[data-theme="dark"] .wordmark .wm-light { display: none; }
:root[data-theme="dark"] .wordmark .wm-dark { display: block; }
.auth-band .wordmark .wm-light { display: none; }
.auth-band .wordmark .wm-dark { display: block; }
/* סימון בודד של ספירה: צבע, גודל וסיבוב */
.sel-bar .sel-mark { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sel-bar .sel-mark .note-colors { margin: 0; }
.sel-bar .note-colors .swatch { width: 20px; height: 20px; }
.sel-range { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.sel-range input[type=range] { width: 96px; accent-color: var(--blue); }
.sel-range small { min-width: 34px; color: var(--muted); }
/* תווית אורך של צלע – לחיצה כפולה לשינוי האורך */
.lbl.edge-lbl { pointer-events: auto; cursor: pointer; }
.copy-stage-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow: auto; }
.ed-side-head { flex-wrap: wrap; gap: 6px; }

/* חלון קיצורי דרך */
.sc-head { display: flex; justify-content: center; margin-bottom: 14px; }
.sc-body { display: grid; gap: 18px; max-height: min(64vh, 620px); overflow: auto; padding-inline-end: 4px; }
.sc-sec h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sc-table th, .sc-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sc-table th { font-weight: 500; color: var(--ink); text-align: start; width: 46%; }
.sc-table td { text-align: end; }
.sc-combo { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.sc-table kbd { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 6px; background: var(--fill); border: 1px solid var(--line); border-bottom-width: 2px; font: 600 12px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--ink); text-align: center; white-space: nowrap; }
.sc-mouse { color: var(--ink-2); font-size: 13px; }
.sc-plus { color: var(--muted); font-size: 12px; }
.sc-or { margin: 0 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .sc-table th { width: auto; } .sc-table th, .sc-table td { display: block; text-align: start; border: 0; padding: 3px 0; } .sc-table tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); } .sc-combo { justify-content: flex-start; } }
@media (max-width: 560px) { .help-toggle { display: none; } } /* בטלפון אין מקלדת – ומקום בסרגל צפוף */
.chip-add { display: inline-flex; align-items: center; gap: 6px; } .chip-add .btn-sm { height: 26px; padding: 0 10px; font-size: 12.5px; }

/* מסך "בדקו את תיבת המייל" אחרי הרשמה */
.verify-box { text-align: center; margin-bottom: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.verify-box p { margin: 0 0 10px; }
.verify-icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.verify-email { font-weight: 700; color: var(--ink); font-size: 16px; word-break: break-all; }
.verify-resend { margin-top: 10px; }
/* ספירה עם גובה: מספר הסימונים מתחת לכמות במטרים */
.m-marks { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.m-marks b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.m-row.active .m-marks, .m-row.active .m-marks b { color: #fff; }
.btn-ms { margin-top: 10px; }

/* סרגל עליון: לשוניות עם תפריטים נפתחים (חדש / לאחרונה / החשבון שלי / עזרה) */
.nav-tab { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.nav-tab:hover { background: var(--fill-2); color: var(--ink); text-decoration: none; }
.nav-tab.on { color: var(--ink); background: none; font-weight: 600; }
.nav-tab svg { opacity: .7; }
.nav-new { background: var(--blue); color: #fff; font-weight: 500; }
.nav-new:hover { background: var(--blue); color: #fff; filter: brightness(1.1); }
.nav-new svg { opacity: 1; }
.topnav { align-items: center; gap: 4px; }
.account-btn { padding-inline-start: 4px; }
.account-btn .avatar-btn { display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 11.5px; }
.avatar-btn.has-img, .avatar-lg.has-img { object-fit: cover; padding: 0; background: var(--line, #ddd); }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(160deg, #a1a1a6, #6e6e73); color: #fff; font-weight: 600; font-size: 28px; }
.acct-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.acct-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-item { flex-direction: column; align-items: flex-start !important; gap: 1px !important; min-width: 240px; }
.recent-name { font-weight: 500; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.recent-when { font-size: 12px; color: var(--muted); }
.recent-item:hover .recent-when { color: rgba(255,255,255,.85); }
.menu-empty { margin: 4px 10px 8px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .nav-tab { padding: 0 8px; }
  .account-btn .acct-label { display: none; }
}
@media (max-width: 640px) {
  .nav-tab { font-size: 12.5px; padding: 0 6px; gap: 3px; }
  .nav-tab svg { display: none; }
  .nav-new svg:first-child { display: inline; }
}
.topbar .brand-sm { display: none; }
@media (max-width: 640px) {
  /* טלפון: רק סמל הלוגו (הוא גם הקישור לפרויקטים), בלי "הפרויקטים שלי" ובלי תווית הניסיון – שלא יגלוש לרוחב */
  .topbar .brand:not(.brand-sm) { display: none; }
  .topbar .brand-sm { display: inline-flex; }
  .nav-mine, .topbar .trial-pill { display: none; }
  .topbar-in { gap: 4px; }
}

/* צור קשר */
.contact-page { max-width: 720px; }
.contact-card { max-width: 680px; margin: 0 auto; background: var(--panel); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06)); }
.contact-card h1 { margin: 0 0 6px; font-size: 26px; }
.contact-form .sub { margin: 0 0 18px; color: var(--muted); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn-lg { margin-top: 6px; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { text-align: center; padding: 10px 0; }
.contact-done h2 { margin: 6px 0; }
.contact-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 560px) { .contact-row { grid-template-columns: 1fr; } .contact-card { padding: 20px 16px; } }
/* לוח בקרה: פניות */
.admin-messages { margin-bottom: 18px; }
.admin-messages .card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg { padding: 14px 20px; border-top: 1px solid var(--line); }
.msg.done { opacity: .6; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-body { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
/* שורת מדידה בסרגל: "סה״כ תוכנית" ו"סה״כ פרויקט" בשתי שורות עם תווית */
.m-vals { display: block; }
.m-lbl { display: inline-block; min-width: 72px; font-size: 11px; color: var(--muted); }
.m-proj { font-size: 12px; }
.m-row.active .m-lbl { color: rgba(255,255,255,.75); }
/* בתוך התוכנית: הסרגל העליון הראשי מעל סרגל הפרויקט, ברוחב מלא, והתפריטים שלו מעל השרטוט */
.editor .topbar { flex: none; z-index: 70; }
.editor .topbar-in { max-width: none; height: 48px; padding: 0 16px; }
.editor .ed-top { height: 46px; }
.m-mult { font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-l); border-radius: 999px; padding: 0 6px; }
.m-row.active .m-mult { color: #fff; background: rgba(255,255,255,.2); }
.dup-opt { align-items: flex-start; padding: 8px 0; } .dup-opt input { margin-top: 3px; flex: none; } .dup-opt span { display: flex; flex-direction: column; gap: 2px; } .dup-opt small { font-size: 12.5px; }

/* חלון ייצוא */
.proj-head-in { position: relative; }
.proj-export { align-self: center; }
.export-center .exp-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.exp-list { display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow: auto; padding-inline-end: 4px; }
.exp-list .check { font-size: 13.5px; }
.exp-links { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.exp-sub { margin: 4px 0 6px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 5px; }
.exp-sub .check { font-size: 13px; }
.exp-fmt-label { display: block; margin: 12px 0 6px; }
.exp-filters { display: flex; gap: 18px; flex-wrap: wrap; }
.exp-box { background: var(--fill-2, var(--fill)); border-radius: 12px; padding: 12px 14px; }
.exp-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.exp-group .check { display: flex; align-items: center; gap: 8px; }
.exp-summary { margin: 2px 0; }
.check.disabled { opacity: .55; }
@media (max-width: 560px) { .exp-grid { grid-template-columns: 1fr; } }
.export-center .seg { width: fit-content; }
.proj-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* סוג ועובי קו במדידה */
.line-styles { display: flex; gap: 6px; flex-wrap: wrap; }
.line-opt { display: grid; place-items: center; height: 36px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.line-opt.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-l); }
.line-style-row { align-items: end; }
/* דף תשלום: הנתונים שלכם (ייצוא גם בלי מנוי) */
.paywall-data { margin-top: 18px; text-align: start; }
.paywall-data h2 { margin: 0 0 4px; font-size: 20px; }
.pw-projects { list-style: none; margin: 12px 0; padding: 0; }
.pw-projects li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pw-projects li span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pw-projects li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* חלון ייצוא פשוט: 3 כרטיסים, תוכנית ופורמט, ו"אפשרויות נוספות" מקופל */
.exp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .exp-tiles { grid-template-columns: repeat(2, 1fr); } }
.exp-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; text-align: center; font: inherit; }
.exp-tile svg { color: var(--muted); }
.exp-tile b { font-size: 15px; }
.exp-tile small { font-size: 12px; color: var(--muted); }
.exp-tile:hover { border-color: var(--blue); }
.exp-tile.on { border-color: var(--blue); background: var(--blue-l); box-shadow: inset 0 0 0 1px var(--blue); }
.exp-tile.on svg { color: var(--blue); }
.exp-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.exp-fmt button { min-width: 70px; justify-content: center; }
.exp-fmt button:disabled { opacity: .4; cursor: not-allowed; }
.exp-more { border-top: 1px solid var(--line); padding-top: 10px; }
.exp-more summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 500; }
.exp-more-in { display: grid; gap: 14px; margin-top: 12px; }
@media (max-width: 520px) { .exp-tiles { grid-template-columns: 1fr; } .exp-tile { flex-direction: row; justify-content: flex-start; padding: 12px; text-align: start; } .exp-row { grid-template-columns: 1fr; } }

/* פניות כשיחה: סטטוס, שרשור ותגובה (אצל המנהל ואצל הלקוח) */
.thread { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 8px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px; background: var(--fill); }
.bubble p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.bubble.from-user { align-self: flex-start; }
.bubble.from-admin { align-self: flex-end; background: var(--blue-l); }
.reply-box { display: flex; gap: 8px; align-items: flex-end; }
.reply-box textarea { flex: 1; min-height: 44px; border: 0; border-radius: 10px; padding: 8px 10px; background: var(--fill); font: inherit; resize: vertical; color: var(--ink); }
.msg-status select { height: 30px; border: 0; border-radius: 8px; padding: 0 8px; background: var(--fill); font: inherit; font-size: 13px; color: var(--ink); }
.msg.st-done { opacity: .75; }
.admin-messages .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.st-chip { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 1px 9px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.st-chip.st-new { background: var(--blue-l); color: var(--blue); }
.st-chip.st-in_progress { background: var(--warn-l); color: var(--warn); }
.st-chip.st-done { background: var(--green-l); color: var(--green); }
.my-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.my-msgs { list-style: none; margin: 14px 0 0; padding: 0; }
.my-msg { border-top: 1px solid var(--line); padding: 10px 0; }
.my-msg-head { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 4px 0; cursor: pointer; font: inherit; color: var(--ink); text-align: start; }
.my-msg-preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.my-msg.unread .my-msg-preview { font-weight: 600; color: var(--ink); }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger, #e5484d); color: #fff; font-size: 11px; font-weight: 700; margin-inline-start: 4px; }
@media (max-width: 560px) { .my-msg-head { flex-wrap: wrap; } .my-msg-preview { flex-basis: 100%; order: 5; } }
.paywall-links { text-align: center; margin: 14px 0 0; }

/* ניהול: מנויים */
.sub-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.sub-search { display: flex; align-items: center; gap: 6px; background: var(--fill-2); border-radius: 10px; padding: 0 10px; min-width: 220px; }
.sub-search input { border: 0; background: transparent; padding: 7px 0; flex: 1; font: inherit; color: var(--ink); min-width: 0; }
.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-row { display: grid; grid-template-columns: 2.2fr 1.1fr 1.8fr 1.2fr .9fr; gap: 12px; align-items: center; width: 100%; padding: 11px 18px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); text-align: start; cursor: pointer; }
.sub-row:hover, .sub-item.open > .sub-row { background: var(--fill-2); }
.sub-headrow { cursor: default; font-size: 12px; color: var(--muted); font-weight: 600; border-top: 0; }
.sub-headrow:hover { background: none; }
.sub-who { display: flex; flex-direction: column; min-width: 0; }
.sub-who .m-extra { overflow: hidden; text-overflow: ellipsis; text-align: start; }
.sub-detail { padding: 4px 18px 18px; background: var(--fill-2); }
.sub-detail h4 { margin: 14px 0 6px; font-size: 13.5px; }
.sub-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); padding-top: 6px; }
.admin-subs .chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .sub-row { grid-template-columns: 1fr auto; }
  .sub-row > :nth-child(2), .sub-row > :nth-child(4), .sub-row > :nth-child(5) { display: none; }
  .sub-headrow { display: none; }
  .sub-detail { overflow-x: auto; }
  .sub-search { min-width: 0; flex: 1; }
}
.admin-sub-link { font-size: 13px; font-weight: 500; margin-inline-start: 10px; }
.staging-badge { position: fixed; bottom: 10px; inset-inline-start: 10px; z-index: 9999; background: #b42318; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }


/* ---------- שתי שדות בשורה (פרופיל העסק) ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- הגדרות תצוגה ---------- */
.view-settings .set-h { font-size: 15px; margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.view-settings .set-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.seg.seg-wrap { flex-wrap: wrap; }
.color-row { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.color-row input[type=color] { width: 44px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: none; }
.grid-layer { pointer-events: none; }

/* ---------- הצעת מחיר ---------- */
.quote { display: flex; flex-direction: column; gap: 16px; }
.quote-link { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--ink); text-decoration: none; }
.quote-link:hover { text-decoration: none; border-color: var(--blue); }
.quote-link span { flex: 1; }
.quote-table td { vertical-align: middle; }
.quote-table small.block { display: block; margin-top: 2px; }
.num-in { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--panel); }
.num-in:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .15); }
.num-in input { width: 72px; border: 0; background: none; padding: 7px 0; text-align: end; font: inherit; color: inherit; outline: none; box-shadow: none; }
.num-in.wide input { width: 110px; }
.num-in i { font-style: normal; color: var(--ink-2); font-size: 13px; }
.quote-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .quote-sum { grid-template-columns: 1fr; } }
/* 5 לשוניות בפרויקט – בטלפון גוללים את הלשוניות עצמן, לא את הדף */
.proj-actions { min-width: 0; max-width: 100%; }
.proj-actions .pill-tabs { min-width: 0; flex: 0 1 auto; }
.pill-tabs > a { flex-shrink: 0; white-space: nowrap; }

/* ---------- קבצים מצורפים בפניות ---------- */
.file-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.file-pick label.btn { cursor: pointer; }
.file-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.file-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--fill); font-size: 13px; max-width: 100%; }
.file-chips span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.att-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.att-img img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.att-video { display: block; width: 100%; max-width: 360px; max-height: 240px; border-radius: 10px; background: #000; }
.reply-box .file-pick { margin: 6px 0; }
.locked-note { margin: 8px 0 0; }

/* ---------- יציאת חלונות + רקע שמטשטש (חומר אמיתי, לא רק החשכה) ---------- */
.modal-back { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal-back.closing { animation: fade-out .15s ease-in forwards; }
.modal-back.closing .modal { animation: pop-out .15s ease-in forwards; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ---------- משוב לחיצה מיידי – בכל מה שלוחצים עליו, לא רק בכפתורים ---------- */
:is(.project-card, .plan-tile, .exp-tile, .q-card, .quote-link, .my-msg-head) { transition: transform .12s ease-out, box-shadow .2s ease; }
:is(.project-card, .plan-tile, .exp-tile, .quote-link):active { transform: scale(.985); }
:is(.icon-btn, .tool, .nav-tab, .pill-tabs a, .seg button, .sym, .swatch, .line-opt):active { transform: scale(.94); }
:is(.icon-btn, .tool, .nav-tab, .pill-tabs a, .seg button) { transition: transform .1s ease-out, background-color .15s ease, color .15s ease; }

/* ---------- טיפוגרפיה: ריווח שלילי רק לכותרות גדולות; מספרים מיושרים ---------- */
body { letter-spacing: 0; }
h1 { letter-spacing: -.02em; }
h2, h3 { letter-spacing: -.01em; }
:is(.q-val b, .stat b, .table td.num, .price-sum dd, .zoom, .m-vals b) { font-variant-numeric: tabular-nums; }

/* ---------- לשוניות עם רקע שמחליק (במקום קפיצה) ---------- */
.slide-tabs { position: relative; isolation: isolate; }
.slide-tabs > .tab-ind { position: absolute; top: 2px; bottom: 2px; left: 0; z-index: -1; border-radius: 8px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04);
  transition: transform .32s cubic-bezier(.25, 1, .3, 1), width .32s cubic-bezier(.25, 1, .3, 1); pointer-events: none; }
.slide-tabs.ready > a.on, .slide-tabs.ready > button.on { background: transparent; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .slide-tabs > .tab-ind { background: #636366; box-shadow: none; } }
:root[data-theme="dark"] .slide-tabs > .tab-ind { background: #636366; box-shadow: none; }

/* ---------- הפחתת תנועה: דהייה עדינה במקום כיבוי מוחלט; הפחתת שקיפות וניגודיות מוגברת ---------- */
@media (prefers-reduced-motion: reduce) {
  .modal, .menu, .toast, .modal-back { animation: fade .15s ease both !important; animation-duration: .15s !important; }
  .modal-back.closing, .modal-back.closing .modal { animation: fade-out .12s ease both !important; animation-duration: .12s !important; }
  .slide-tabs > .tab-ind { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .ed-top, .modal-foot.inline, .menu, .toast, .modal-back, .status { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .topbar, .ed-top, .modal-foot.inline, .menu { background: var(--panel) !important; }
}
@media (prefers-contrast: more) {
  .topbar, .menu, .modal, .card { box-shadow: 0 0 0 1px var(--ink-2) !important; }
}

/* ---------- כרטיס פרויקט בלי תוכניות: הזמנה לפעולה במקום שלושה אפסים ---------- */
.pc-start { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--fill); color: var(--ink-2); font-size: 14px; }
/* ---------- כמויות: קיבוץ לפי שלב, וכרטיס בלי כמות מעומעם ---------- */
.q-stage { font-size: 15px; color: var(--ink-2); margin: 6px 0 10px; font-weight: 600; }
.q-card.zero { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.q-card.zero .q-icon { opacity: .55; }
.q-card.zero .q-bar { display: none; }
.q-none { font-size: 15px; color: var(--ink-2); font-weight: 500; }

/* ---------- עורך במסך רחב: סרגל הכלים צף מעל התוכנית (זכוכית), והשרטוט ממשיך מתחתיו ---------- */
@media (min-width: 1100px) {
  .ed-main > .ed-toolbar { position: absolute; top: 10px; inset-inline: 12px; z-index: 6; border-bottom: 0; border-radius: 16px;
    background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 8px 24px rgba(0, 0, 0, .1); }
}

/* ============================================================
   עיצוב "רך" (בהשראת Dribbble) בצבעי הלוגו – רק סגנון, בלי לשנות מיקומים:
   רקע אפרפר, כרטיסים לבנים עגולים מאוד עם צל רך, כפתורי גלולה, שדות לבנים,
   פעולה ראשית בגרדיאנט של הלוגו (כחול → טורקיז), טקסט בכחול-כהה של השם
   ============================================================ */
:root {
  --blue: #1f63e0; --blue-h: #1a56c7; --blue-d: #143f94; --blue-l: #e8f0fe; --ring: rgba(31, 99, 224, .3);
  --teal: #12968b; --teal-l: #e3f6f3;
  --brand-grad: linear-gradient(135deg, #2f7bf5 0%, #1f63e0 55%, #138f99 100%);
  --brand-line: linear-gradient(90deg, #2f7bf5, #1fb5a8);
  --bg: #f3f4f7; --panel: #ffffff; --panel-2: #f3f4f7;
  --ink: #13213a; --ink-2: #3e4a5e; --muted: #667085;
  --line: rgba(19, 33, 58, .1); --line-2: rgba(19, 33, 58, .06);
  --fill: rgba(19, 33, 58, .06); --fill-2: rgba(19, 33, 58, .04);
  --r-xl: 26px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(19, 33, 58, .04);
  --shadow: 0 1px 2px rgba(19, 33, 58, .04), 0 10px 30px rgba(19, 33, 58, .06);
  --shadow-lg: 0 6px 16px rgba(19, 33, 58, .06), 0 28px 64px rgba(19, 33, 58, .16);
  --orange: #1f63e0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #5b9bff; --blue-h: #7aaeff; --blue-l: rgba(91, 155, 255, .16); --ring: rgba(91, 155, 255, .4);
    --teal: #3fd0c1; --teal-l: rgba(63, 208, 193, .14);
    --bg: #0c0f16; --panel: #171b25; --panel-2: #1f2430; --ink: #eef2f8; --ink-2: #c4ccda; --muted: #98a2b3;
    --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .06); --fill: rgba(255, 255, 255, .08); --fill-2: rgba(255, 255, 255, .05);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --blue: #5b9bff; --blue-h: #7aaeff; --blue-l: rgba(91, 155, 255, .16); --ring: rgba(91, 155, 255, .4);
  --teal: #3fd0c1; --teal-l: rgba(63, 208, 193, .14);
  --bg: #0c0f16; --panel: #171b25; --panel-2: #1f2430; --ink: #eef2f8; --ink-2: #c4ccda; --muted: #98a2b3;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .06); --fill: rgba(255, 255, 255, .08); --fill-2: rgba(255, 255, 255, .05);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
}

/* כפתורים: ראשי בגרדיאנט הלוגו, משני – גלולה לבנה עם קו דק */
.btn-primary, .btn-lime { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(19, 33, 58, .12); }
.btn-primary:hover, .btn-lime:hover { background: var(--brand-grad); filter: brightness(1.06); }
.btn:not(.btn-primary):not(.btn-lime):not(.btn-outline):not(.danger-text):not(.btn-danger) { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.btn:not(.btn-primary):not(.btn-lime):not(.btn-outline):not(.danger-text):not(.btn-danger):hover { background: var(--panel-2); }
.btn-lg { height: 50px; padding: 0 26px; }

/* כרטיסים: לבנים, עגולים מאוד, צל רך במקום מסגרת */
:is(.card, .project-card, .plan-tile, .q-card, .contact-card, .bill-card, .sel-card) { border-radius: var(--r-xl); box-shadow: var(--shadow); }
.project-card:hover, .plan-tile:hover { box-shadow: var(--shadow-lg); }
.plan-tile .pt-thumb, .plan-tile img { border-radius: 20px; }
.modal { border-radius: 30px; }
.menu { border-radius: 18px; }

/* שדות: לבנים, פינות עגולות, חיפוש בצורת גלולה */
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea) { border-radius: var(--r-md); }
.search { background: var(--panel); border-radius: 999px; height: 40px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.filterbar select { border-radius: 999px; }

/* לשוניות: מסילה אפרפרה, הלשונית הפעילה לבנה עם צל רך; ספירה בעיגול כחול */
.pill-tabs { border-radius: 999px; padding: 3px; }
.pill-tabs a, .slide-tabs > .tab-ind { border-radius: 999px; }
.slide-tabs > .tab-ind { top: 3px; bottom: 3px; }

/* תגים וסטטוס – גלולות לבנות עם קו דק */
.status, .chip, .pc-plans span { border-radius: 999px; }
.chip { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }

/* פסי התקדמות וכמויות – בגרדיאנט הלוגו */
.meter i, .bar i { background: var(--brand-line); }
.trial-pill { background: var(--teal-l); color: var(--teal); }
[data-theme="dark"] .trial-pill { color: var(--teal); }

/* סרגל עליון: זכוכית לבנה; כפתור "חדש" בגרדיאנט */
.topbar { box-shadow: 0 1px 0 var(--line-2); }

/* מסך התחברות: הפס העליון בגרדיאנט הלוגו */
.auth-band { background: var(--brand-grad); }
.auth-card { border-radius: 30px; box-shadow: var(--shadow-lg); }

/* עורך: כלי פעיל בכחול הלוגו, מדידה פעילה בגרדיאנט */
.tool.on { background: var(--blue); }
.m-row.active { background: var(--brand-grad); }
.live { background: var(--brand-grad); }

/* ============================================================
   מסך כניסה אחרי התחברות: סמל → שם → פס, ואז נמוג אל האפליקציה
   ============================================================ */
.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg);
  background-image: radial-gradient(60% 50% at 50% 40%, rgba(47, 123, 245, .1), transparent 70%); }
.splash.out { animation: splash-out .45s cubic-bezier(.4, 0, .2, 1) forwards; }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.splash-mark { width: 88px; height: 88px; animation: splash-mark .7s cubic-bezier(.2, .9, .25, 1.15) both; filter: drop-shadow(0 12px 24px rgba(19, 33, 58, .18)); }
.splash-word { display: block; animation: splash-word .55s cubic-bezier(.2, .9, .3, 1) .28s both; }
.splash-word img { display: block; width: 190px; height: auto; }
.splash-word .wm-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .splash-word .wm-light { display: none; } :root:not([data-theme="light"]) .splash-word .wm-dark { display: block; } }
:root[data-theme="dark"] .splash-word .wm-light { display: none; }
:root[data-theme="dark"] .splash-word .wm-dark { display: block; }
.splash-bar { width: 120px; height: 4px; border-radius: 4px; background: var(--fill); overflow: hidden; animation: fade .3s ease .45s both; }
.splash-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--brand-line); transform-origin: left; animation: splash-bar .9s cubic-bezier(.4, 0, .2, 1) .5s both; }
[dir="rtl"] .splash-bar i { transform-origin: right; }
@keyframes splash-mark { from { opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(6px); } }
@keyframes splash-word { from { opacity: 0; transform: translateY(12px); } }
@keyframes splash-bar { from { transform: scaleX(0); } }
@keyframes splash-out { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .splash-mark, .splash-word, .splash-bar, .splash-bar i { animation: fade .2s ease both !important; animation-duration: .2s !important; }
  .splash.out { animation: fade-out .2s ease forwards !important; animation-duration: .2s !important; }
}
/* מצב לילה: הכחול הבהיר מיועד לטקסט וקישורים; משטחים מלאים עם טקסט לבן נשארים בכחול הלוגו (ניגודיות AA) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.nav-new, .tool.on, .chip-btn.on, .preset-check, .menu button:hover, .pill-tabs a.on .count, .live, .brand-mark) { background: #1f63e0; color: #fff; }
}
:root[data-theme="dark"] :is(.nav-new, .tool.on, .chip-btn.on, .preset-check, .menu button:hover, .pill-tabs a.on .count, .live, .brand-mark) { background: #1f63e0; color: #fff; }

/* ============================================================
   כיוון מאופק (לפי ההדמיה שאושרה): פעולה ראשית בגלולה כהה בכחול-שחור של השם,
   הגרדיאנט של הלוגו רק בכפתור "+ חדש" (כמו כפתור הפלוס הצף). כל השאר לבן/אפור, צבע רק כהדגשה קטנה
   ============================================================ */
:root { --act: #13213a; --act-h: #1d2f50; --act-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --act: #eef2f8; --act-h: #ffffff; --act-ink: #0c0f16; } }
:root[data-theme="dark"] { --act: #eef2f8; --act-h: #ffffff; --act-ink: #0c0f16; }

.btn-primary, .btn-lime { background: var(--act); color: var(--act-ink); box-shadow: none; }
.btn-primary:hover, .btn-lime:hover { background: var(--act-h); filter: none; }
.nav-new, .nav-new:hover { background: var(--brand-grad) !important; color: #fff !important; }
.tool.on, .live, .chip-btn.on, .preset-check, .pill-tabs a.on .count { background: var(--act) !important; color: var(--act-ink) !important; }
.m-row.active { background: var(--act); color: var(--act-ink); }
.m-row.active .m-vals, .m-row.active .m-vals b, .m-row.active .icon-btn { color: var(--act-ink); }
.menu button:hover { background: var(--fill) !important; color: var(--ink) !important; }
.auth-band { background: var(--act); }
.trial-pill { background: var(--fill); color: var(--ink); }
.status { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
/* אייקונים עגולים בסרגל העליון – לבנים עם קו דק (כמו פעמון/הודעות בהדמיה) */
.topbar .theme-toggle, .topbar .lang-toggle { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.tool.on.ok { background: var(--green) !important; color: #fff !important; } /* "הושלמה" נשאר ירוק */
.auth-band { background: #13213a !important; } /* פס ההתחברות כהה בשני המצבים – הטקסט עליו לבן */

/* ============================================================
   הכול כהה: כל הכפתורים הראשיים, כולל "+ חדש", בגלולה כהה אחת – בלי כחול בהיר
   ============================================================ */
.nav-new, .nav-new:hover { background: var(--act) !important; color: var(--act-ink) !important; }
.meter i, .bar i { background: var(--act); }
.btn-outline { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline:hover { background: var(--fill); }

/* ---------- סרגל ניווט צף בתחתית – טלפון וטאבלט צר ---------- */
.bottombar { display: none; }
@media (max-width: 760px) {
  .bottombar { position: fixed; z-index: 90; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); height: 64px; border-radius: 32px;
    display: flex; align-items: center; justify-content: space-around; padding: 0 8px; background: #13213a; box-shadow: 0 12px 30px rgba(10, 16, 30, .3); }
  .bb-item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; padding: 6px 4px; border-radius: 16px; font-size: 11px; color: rgba(255, 255, 255, .7); text-decoration: none; }
  .bb-item:hover { text-decoration: none; color: #fff; }
  .bb-item.on { color: #fff; font-weight: 600; }
  .bb-item.off { opacity: .4; }
  .bb-item:active { transform: scale(.92); }
  .bb-fab { width: 56px; height: 56px; margin-top: -28px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    background: #ffffff; color: #13213a; box-shadow: 0 0 0 6px var(--bg), 0 10px 22px rgba(10, 16, 30, .28); transition: transform .12s ease-out; }
  .bb-fab:active { transform: scale(.92); }
  main.page, .page { padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important; }
  footer, .site-footer { margin-bottom: 90px; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bottombar { background: #222838; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
}
@media (max-width: 760px) { :root[data-theme="dark"] .bottombar { background: #222838; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); } }
/* גוברים על כללי מצב הלילה הישנים (כחול) – הכפתורים הראשיים תמיד בצבע הפעולה הכהה/ההפוך */
:root .btn-primary, :root .btn-lime, :root a.btn-primary, :root a.btn-lime { background: var(--act) !important; color: var(--act-ink) !important; }
:root .btn-primary:hover, :root .btn-lime:hover { background: var(--act-h) !important; }
:root .bb-item.on { color: #fff !important; }
:root .bb-item { color: rgba(255, 255, 255, .7) !important; }
.pc-name { color: var(--ink) !important; }
@media (max-width: 760px) { .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important; } }

/* מסך צר: סרגל עליון מצומצם – לוגו, חשבון וכפתור המבורגר אחד; סינון הפרויקטים מאחורי כפתור אחד */
.tb-desk { display: contents; }
.tb-burger { display: none; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.burger-btn { position: relative; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.nav-badge.dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 9px; height: 9px; min-width: 0; padding: 0; border-radius: 50%; }
@media (max-width: 760px) {
  .topbar .topnav, .tb-desk, .acct-label, .account-area .trial-pill { display: none !important; }
  .tb-burger { display: block; }
  .topbar-in { gap: 8px; }
  .filterbar .search { flex: 1 1 0; min-width: 0; }
  .filter-btn { display: inline-flex; position: relative; flex: none; width: 48px; height: 48px; border-radius: 999px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); }
  .filter-btn.on, .filter-btn[aria-expanded="true"] { background: var(--act); color: var(--act-ink); border-color: var(--act); }
  .filter-dot { position: absolute; top: 9px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
  .filter-sel { display: none; }
  .filter-sel.open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .filter-sel.open select:last-child { grid-column: 1 / -1; }
  .staging-badge { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.burger-btn, .filter-btn:not(.on):not([aria-expanded="true"])) { background: transparent; } }
:root[data-theme="dark"] :is(.burger-btn, .filter-btn:not(.on):not([aria-expanded="true"])) { background: transparent; }
@media (max-width: 760px) {
  .filterbar .pill-tabs { flex: 1 1 100%; }
  .tb-burger .menu { position: fixed; top: 62px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 180px); overflow-y: auto; transform-origin: top; }
}
.tb-burger .menu { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tb-burger .menu { background: #1a1f2b !important; } }
:root[data-theme="dark"] .tb-burger .menu { background: #1a1f2b !important; }

/* הלוגו (תמונה) – בלי רקע, גם במצב כהה (כלל ה-brand-mark הכללי צובע רקע כחול) */
:root .brand .logo-mark, :root .logo-mark { background: none !important; }
.avatar-btn.has-img, .avatar-lg.has-img { background: transparent; }
.plans-export { display: none; }
.table tr.row-link { cursor: pointer; }
.table tr.row-link:hover td { background: var(--fill-2); }
@media (max-width: 760px) {
  /* לשונית התוכניות בטלפון: ייצוא, העלאה, חיפוש ותצוגה – בשורה אחת */
  .proj-head.tab-plans .proj-export { display: none; }
  .plans .toolbar-row { flex-wrap: nowrap; gap: 8px; }
  .plans .toolbar-row .grow { display: none; }
  .plans .plans-upload, .plans .plans-export { display: inline-flex; flex: none; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 999px; }
  .plans .plans-upload span { display: none; }
  .plans .small-search { flex: 1 1 0; min-width: 0; }
  .plans .seg { flex: none; }
  .plans .table th:nth-child(2), .plans .table td:nth-child(2), .plans .table th:nth-child(3), .plans .table td:nth-child(3) { display: none; }
}

/* שדה מספר עם יחידה (הצעת מחיר): שדה אחד, בלי מסגרת כפולה מסגנון השדות הכללי */
:root .num-in input { border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 7px 0 !important; min-height: 0 !important; height: auto !important; }

/* טלפון: כפתורים מסודרים ברשת אחידה – בלי כפתורים בודדים בשורות מפוזרות */
@media (max-width: 760px) {
  .proj-head-in { position: relative; }
  .proj-export { position: absolute; top: 0; inset-inline-end: 0; width: 42px; height: 42px; padding: 0 !important; border-radius: 999px; justify-content: center; }
  .proj-export span { display: none; }
  .proj-head:is(.tab-plans, .tab-quantities, .tab-quote) .proj-export { display: none; }

  :is(.worksheet, .quantities, .quote) > .toolbar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }
  :is(.worksheet, .quantities, .quote) > .toolbar-row > .grow { display: none; }
  :is(.worksheet, .quantities, .quote) > .toolbar-row > div:first-child { grid-column: 1 / -1; order: -2; margin-bottom: 4px; }
  :is(.worksheet, .quantities, .quote) > .toolbar-row > .btn { width: 100%; justify-content: center; min-width: 0; }
  :is(.worksheet, .quantities, .quote) > .toolbar-row > .btn-primary { grid-column: 1 / -1; order: -1; }
  .worksheet > .toolbar-row > .check { grid-column: 1 / -1; justify-content: flex-start; padding: 4px 2px; }

  .stage-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 16px; }
  .stage-head > .grow { display: none; }
  .stage-head > h2 { min-width: 0; overflow-wrap: anywhere; }
  .stage-head > .add-btns { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stage-head > .add-btns .btn { justify-content: center; padding-inline: 6px; min-width: 0; }
  .ws-table th:nth-child(2), .ws-table td:nth-child(2), .ws-table th:nth-child(3), .ws-table td:nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  :is(.worksheet, .quantities, .quote) > .toolbar-row { display: flex; flex-wrap: wrap; }
  :is(.worksheet, .quantities, .quote) > .toolbar-row > .btn { flex: 1 1 40%; }
  :is(.worksheet, .quantities, .quote) > .toolbar-row > :is(div:first-child, .btn-primary, .check) { flex: 1 1 100%; }
}
@media (max-width: 760px) { .page-head > .btn-primary { display: none; } } /* בטלפון "+" בסרגל התחתון יוצר פרויקט */

/* רשימת הפרויקטים – תצוגת רשימה */
.project-rows { padding: 4px 0; }
.project-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px 52px auto; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer; border-bottom: 1px solid var(--line-2, var(--line)); }
.project-row:last-child { border-bottom: 0; }
.project-row:hover { background: var(--fill-2); }
.pr-main { display: flex; flex-direction: column; min-width: 0; }
.pr-name { font-weight: 600; font-size: 15.5px; color: var(--ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-name:hover { text-decoration: none; }
.pr-client { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-num { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pr-pct { font-weight: 600; font-size: 13.5px; color: var(--ink); text-align: end; font-variant-numeric: tabular-nums; }
.proj-layout { flex: none; }
@media (max-width: 760px) {
  .project-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 12px 14px; }
  .project-row .pr-num, .project-row .pr-pct { display: none; }
  .filterbar .proj-layout { order: 0; }
}

/* כרטיס פרויקט: שם · לקוח · סטטוס בשורה אחת; הסטטוס הוא כפתור לשינוי מהיר */
.project-card .pc-top { align-items: center; }
.project-card .pc-titles { flex-direction: row; align-items: baseline; gap: 8px; }
.project-card .pc-name { flex: 0 1 auto; }
.project-card .pc-client { flex: 0 1 auto; min-width: 0; }
.project-card .pc-client::before { content: '·'; margin-inline-end: 8px; color: var(--ink-3, var(--muted)); }
.status-btn { cursor: pointer; border: 0; font: inherit; font-size: 12px; font-weight: 500; flex: none; }
.status-btn svg { opacity: .6; margin-inline-start: -2px; }
.status-btn:hover { box-shadow: inset 0 0 0 1px var(--ink-3, #999); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.menu button.on { font-weight: 600; }
.menu button.on svg:last-child { margin-inline-start: auto; }
.project-list > .project-card { min-width: 0; }
.project-card .pc-name { min-width: 0; }
.project-card .pc-titles { overflow: hidden; }
@media (max-width: 760px) { .project-list { grid-template-columns: minmax(0, 1fr) !important; } }
/* תפריטים נפתחים – רקע מלא (לא שקוף) כדי שהתוכן מתחת לא יבלבל */
:root .menu { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .menu { background: #1a1f2b !important; } }
:root[data-theme="dark"] .menu { background: #1a1f2b !important; }
/* כרטיס/שורה עם תפריט פתוח – מעל הכרטיסים שאחריו */
.project-card, .project-row { position: relative; }
:is(.project-card, .project-row):has(.menu) { z-index: 20; }
.project-card .pc-client { flex-shrink: 3; }

/* מסך הכניסה: במקום פס טעינה – "your plan" מתמלא משמאל לימין בצבעי הלוגו */
.splash-load { position: relative; display: inline-block; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--fill, #e3e6ec); animation: fade .3s ease .45s both; }
.splash-load::after { content: attr(data-text); position: absolute; inset: 0; background: linear-gradient(90deg, #2d6bff, #22b8c8 60%, #1ea89a); -webkit-background-clip: text; background-clip: text; color: transparent; clip-path: inset(0 100% 0 0); animation: splash-fill 1s cubic-bezier(.4, 0, .2, 1) .5s forwards; }
@keyframes splash-fill { to { clip-path: inset(0 0 0 0); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .splash-load { color: #2a3142; } }
:root[data-theme="dark"] .splash-load { color: #2a3142; }
@media (prefers-reduced-motion: reduce) { .splash-load::after { animation: none; clip-path: none; } }


/* כפתורי מצב תצוגה ושפה בסרגל העליון: בלי רקע ובלי מסגרת – רק האייקון */
:root .topbar .theme-toggle, :root .topbar .lang-toggle { background: transparent !important; box-shadow: none !important; }
@media (hover: hover) and (pointer: fine) { :root .topbar .theme-toggle:hover, :root .topbar .lang-toggle:hover { background: var(--fill) !important; } }

/* ניטור – דף שגיאות למנהל */
.err-filter{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.err-row{border:1px solid var(--line,#e2e8f0);border-radius:10px;margin-bottom:8px;background:var(--surface,#fff)}
.err-row[data-status="fixed"],.err-row[data-status="ignored"]{opacity:.65}
.err-main{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;width:100%;padding:10px 12px;text-align:start;background:none;border:0;cursor:pointer;font:inherit;color:inherit}
.err-kind{font-size:12px;font-weight:600;padding:2px 8px;border-radius:99px;background:var(--line,#e2e8f0)}
.err-msg{flex:1 1 260px;font-weight:500;word-break:break-word}
.err-body{padding:0 12px 12px}
.err-stack{max-height:220px;overflow:auto;font-size:12px;background:var(--bg,#f6f7f9);padding:8px;border-radius:8px;white-space:pre-wrap;word-break:break-word}
.err-note{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:13px}
.err-actions{display:flex;gap:6px;flex-wrap:wrap}

/* הרשמה: שני שדות בשורה (פחות גלילה). בטלפון צר מאוד – שדה בשורה */
.auth-form .auth-row2 { gap: 14px 12px; }
.auth-form .auth-row2 .field { min-width: 0; }
@media (max-width: 520px) and (min-width: 361px) { .auth-form .auth-row2 { grid-template-columns: 1fr 1fr; } }

.project-card { cursor: pointer; }
.project-card :is(a, button, .menu-wrap) { cursor: pointer; }

/* בחירת אחוז זום בשורת המצב של העורך */
.ed-status .zoom-btn { border: 0; background: none; font: inherit; font-weight: 600; color: inherit; padding: 4px 8px; border-radius: 8px; cursor: pointer; min-width: 52px; text-align: center; }
.ed-status .zoom-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ed-status .menu-wrap .menu { top: auto; bottom: calc(100% + 6px); min-width: 130px; }
.zoom-menu { display: flex; flex-direction: column; }
.zoom-menu button.on { font-weight: 700; background: color-mix(in srgb, var(--blue) 14%, transparent); }
.zoom-custom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 4px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.zoom-custom input { width: 64px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; text-align: center; }

/* כרטיס פרויקט רגוע: שם, לקוח, סטטוס, כמות תוכניות והתקדמות */
.project-card { gap: 10px; }
.pc-plans { color: var(--muted); font-size: 13.5px; }
.pc-progress { display: flex; align-items: center; gap: 10px; }
.pc-progress .meter { flex: 1; }
.pc-progress b { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: end; }

/* סינון ומיון: כפתור אחד שפותח חלונית (סטטוס, תווית, מיון) – גם במחשב */
.filter-wrap { position: relative; flex: none; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); cursor: pointer; font: inherit; font-weight: 500; position: relative; }
.filter-btn.on, .filter-btn[aria-expanded="true"] { border-color: var(--ink); }
.filter-sel { display: none; }
.filter-sel.open { display: grid; gap: 12px; position: absolute; z-index: 40; top: calc(100% + 8px); inset-inline-end: 0; width: 280px; padding: 14px; background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.14)); animation: menu-in .2s cubic-bezier(.2, .9, .3, 1); }
.filter-sel label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.filter-sel select { width: 100%; }
.filter-reset { justify-self: start; }
.filter-dot { position: absolute; top: 8px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
@media (max-width: 760px) {
  .filter-wrap { display: contents; }
  .filter-txt { display: none; }
  .filter-btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .filter-sel.open { position: static; width: 100%; grid-template-columns: 1fr 1fr; box-shadow: none; animation: none; padding: 0; border: 0; background: none; }
  .filter-sel.open label:nth-of-type(3) { grid-column: 1 / -1; }
}

/* כרטיס פרויקט: שם הפרויקט ומתחתיו שם הלקוח (לא באותה שורה, כדי שלא ייחתכו). שם ארוך נשבר עד שתי שורות */
.project-card .pc-top { align-items: flex-start; }
.project-card .pc-titles { flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; }
.project-card .pc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; overflow-wrap: anywhere; line-height: 1.3; flex: none; }
.project-card .pc-client { flex: none; }
.project-card .pc-client::before { content: none; }

/* טבלת הצעת מחיר: כותרות ותוכן ממורכזים אופקית (שם הסעיף נשאר מיושר לימין) */
.quote-table thead th:not(:first-child), .quote-table tbody td:not(:first-child) { text-align: center; }
.quote-table td .num-in { margin-inline: auto; }

/* כל הטבלאות באפליקציה: כותרות ותוכן ממורכזים אופקית (העמודה הראשונה – שם/תיאור – נשארת מיושרת לימין) */
.table thead th:not(:first-child), .table tbody td:not(:first-child), .table td.row-actions { text-align: center; }
.table td:not(:first-child) .num-in, .table td:not(:first-child) .adj { margin-inline: auto; }
.table td:not(:first-child) .menu-wrap { display: inline-block; }

/* כרטיס תוכנית: השם וקנה המידה לחיצים (שינוי שם / קנה מידה מהיר) */
.pt-edit, .pt-scale { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 2px 6px; margin-inline: -6px; border-radius: 8px; text-align: start; }
.pt-edit { font-weight: 600; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-scale { display: inline-flex; align-items: center; gap: 4px; }
@media (hover: hover) { .pt-edit:hover, .pt-scale:hover { background: var(--fill); } }
.pt-edit:focus-visible, .pt-scale:focus-visible { outline: 2px solid var(--ring); }
.menu-gap { display: inline-block; width: 18px; }

/* ============================================================
   הצעה A + Glass: שלושה מצבים בלבד – ראשי כהה מלא, כל השאר שקוף עם קו דק, ומצב פעיל כהה / קו תחתון.
   הסרגל העליון הוא זכוכית מטושטשת שהתוכן גולל מתחתיה.
   ============================================================ */
.topbar { --tbh: 52px; background: color-mix(in srgb, var(--panel) 62%, transparent); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid color-mix(in srgb, var(--panel) 70%, transparent); box-shadow: 0 1px 0 var(--line-2); }
.editor .topbar { --tbh: 48px; }
.topbar .nav-tab { position: relative; color: var(--muted); background: none; }
.topbar .nav-tab:hover { background: none; color: var(--ink); }
.topbar .nav-tab.on { color: var(--ink); background: none; font-weight: 600; }
.topbar .nav-tab.on::after { content: ''; position: absolute; inset-inline: 6px; bottom: calc((32px - var(--tbh)) / 2); height: 2px; border-radius: 2px; background: var(--ink); }
/* "חדש" – שקוף עם קו (הכפתור הכהה נשמר לפעולה הראשית של כל מסך) */
.topbar .nav-new, .topbar .nav-new:hover { background: transparent !important; color: var(--ink) !important; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); filter: none; }
.topbar .nav-new:hover { background: var(--fill-2) !important; }
/* בוררים ולשוניות: מסגרת אחת, פריט פעיל כהה */
.pill-tabs, .seg, .ed-tabs { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pill-tabs a:hover, .ed-tabs a:hover { background: var(--fill-2); }
.pill-tabs a.on, .seg button.on, .slide-tabs > .tab-ind { background: var(--act) !important; color: var(--act-ink) !important; box-shadow: none !important; }
.pill-tabs a.on .count { background: color-mix(in srgb, var(--act-ink) 22%, transparent) !important; color: var(--act-ink) !important; }
.seg button.on svg, .pill-tabs a.on svg { color: var(--act-ink); }
.trial-pill { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.trial-pill.warn { background: var(--warn-l); box-shadow: none; color: var(--warn); }
/* כפתור ראשי בכותרת המסך: מסגרת דקה בלבד, בלי מילוי */
.btn.btn-primary.btn-outline, .btn.btn-primary.btn-outline:hover { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.btn.btn-primary.btn-outline:hover { background: var(--fill-2) !important; box-shadow: inset 0 0 0 1px var(--ink-2); }

/* שורת הסינון בפרויקטים: כל הפקדים באותו מראה (שקוף עם קו דק, אותו גובה), והחיפוש קטן */
.filterbar .search, .filterbar .filter-btn, .filterbar .pill-tabs, .filterbar .seg { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line); border: 0; }
.filterbar .search { flex: 0 1 240px; height: 36px; padding: 0 12px; }
.filterbar .filter-btn { height: 36px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line); border: 0; }
.filterbar .filter-btn.on, .filterbar .filter-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--ink); }
.filterbar .pill-tabs, .filterbar .seg { padding: 2px; }
.filterbar .pill-tabs a, .filterbar .seg button { height: 30px; }
.filterbar .search input { font-size: 13.5px; }
@media (max-width: 760px) { .filterbar .search { flex: 1 1 0; } .filterbar .filter-btn { height: 48px; } }

/* "פרויקט חדש" בשורת הסינון, בקצה (באותו צד שבו היה בכותרת) */
.filterbar .new-proj { margin-inline-start: auto; height: 36px; padding: 0 16px; }
@media (max-width: 760px) { .filterbar .new-proj { display: none; } }

/* רשימת פרויקטים כטבלה: שם פרויקט · שם לקוח · סטטוס · אחוז התקדמות · כמות תוכניות */
.project-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) 140px minmax(130px, 1fr) 100px 44px; gap: 16px; }
.project-head { cursor: default; padding-block: 10px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.project-head:hover { background: none; }
.project-head > span:not(:first-child), .project-row > .pr-client, .project-row > .pr-status, .project-row > .pr-pct, .project-row > .pr-num { text-align: center; justify-self: center; }
.project-row > .pr-name, .project-head > span:first-child { justify-self: start; text-align: start; }
.project-row > .pr-client { max-width: 100%; }
.project-row > .pr-pct { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 220px; }
.project-row > .pr-pct .meter { flex: 1; }
.project-row > .pr-pct b { min-width: 3.2ch; text-align: end; font-variant-numeric: tabular-nums; }
.project-row > .pr-num { font-size: 14px; }
@media (max-width: 760px) {
  .project-head { display: none; }
  .project-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n s m" "c s m"; gap: 2px 10px; }
  .project-row > .pr-name { grid-area: n; } .project-row > .pr-client { grid-area: c; justify-self: start; text-align: start; }
  .project-row > .pr-status { grid-area: s; } .project-row > .pr-pct, .project-row > .pr-num { display: none; }
  .project-row > .menu-wrap, .project-row > :last-child { grid-area: m; }
}


/* פרטי המנוי: שתי עמודות ממורכזות (שם השדה והערך) */
.bill-list > div { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-content: stretch; gap: 12px; text-align: center; }
.bill-list dt, .bill-list dd { text-align: center; }

.err-ref { font: 600 12px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--blue); background: var(--blue-l); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
