/* מנוע המערכות של קלוד לעצלנים: רכיבים מובייל פירסט + חמש ערכות נושא (library/styles.md).
   כל ערכת נושא מגדירה את אותם משתנים. המבנה זהה, והאופי משתנה. */

:root, [data-theme="clean-pro"] {
  --bg: #F4F5F7;
  --bg-fx: none;
  --surface: #FFFFFF;
  --surface-2: #F1F2F5;
  --text: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --accent: #2563EB;
  --on-accent: #FFFFFF;
  --hero: #111827;
  --on-hero: #FFFFFF;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(17 24 39 / .05), 0 8px 22px rgb(17 24 39 / .06);
  --glass: none;
  --nav-bg: #FFFFFF;
  --nav-text: #9CA3AF;
  --nav-active: #111827;
  --nav-active-bg: transparent;
  --font-head: 'Heebo', system-ui, sans-serif;
  --head-weight: 800;
  --num-weight: 800;
  --tile-1: var(--surface); --tile-2: var(--surface); --tile-3: var(--surface); --tile-4: var(--surface);
}

[data-theme="bold-dark"] {
  --bg: #0C0C0F;
  --surface: #18181D;
  --surface-2: #232329;
  --text: #F4F4F6;
  --muted: #8E8E99;
  --line: #2B2B33;
  --accent: #FFE14D;
  --on-accent: #111111;
  --hero: var(--accent);
  --on-hero: var(--on-accent);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 12px 30px rgb(0 0 0 / .35);
  --nav-bg: #1E1E24;
  --nav-text: #8E8E99;
  --nav-active: var(--on-accent);
  --nav-active-bg: var(--accent);
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 900;
  --num-weight: 900;
}

[data-theme="soft-air"] {
  --bg: #EEECF5;
  --bg-fx: linear-gradient(165deg, #E7E4F1 0%, #F7F6FB 55%, #ECE9F5 100%);
  --surface: rgb(255 255 255 / .62);
  --surface-2: rgb(255 255 255 / .45);
  --text: #1F1C2E;
  --muted: #7B7792;
  --line: rgb(31 28 46 / .08);
  --accent: #5B5BD6;
  --on-accent: #FFFFFF;
  --hero: rgb(255 255 255 / .72);
  --on-hero: #1F1C2E;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgb(80 70 140 / .10);
  --glass: blur(16px);
  --nav-bg: rgb(255 255 255 / .82);
  --nav-text: #8E8AA5;
  --nav-active: #FFFFFF;
  --nav-active-bg: #1F1C2E;
  --font-head: 'Heebo', system-ui, sans-serif;
  --head-weight: 700;
  --num-weight: 300;
}

[data-theme="photo-immersive"] {
  --bg: #0E1714;
  --surface: rgb(255 255 255 / .08);
  --surface-2: rgb(255 255 255 / .13);
  --text: #F3F6F4;
  --muted: #A9B8B1;
  --line: rgb(255 255 255 / .12);
  --accent: #FFFFFF;
  --on-accent: #0E1714;
  --hero: rgb(255 255 255 / .1);
  --on-hero: #FFFFFF;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 16px 40px rgb(0 0 0 / .35);
  --glass: blur(14px);
  --nav-bg: rgb(20 32 28 / .72);
  --nav-text: #A9B8B1;
  --nav-active: var(--on-accent);
  --nav-active-bg: var(--accent);
  --font-head: 'Heebo', system-ui, sans-serif;
  --head-weight: 500;
  --num-weight: 300;
}

[data-theme="playful-blocks"] {
  --bg: #FFF9EF;
  --surface: #FFFFFF;
  --surface-2: #FFF1DC;
  --text: #1C1B1F;
  --muted: #6E6A75;
  --line: #F0E6D6;
  --accent: #1C1B1F;
  --on-accent: #FFFFFF;
  --hero: #FFE48A;
  --on-hero: #1C1B1F;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 2px 0 rgb(28 27 31 / .06), 0 10px 24px rgb(120 90 40 / .08);
  --nav-bg: #FFFFFF;
  --nav-text: #9A95A2;
  --nav-active: #FFFFFF;
  --nav-active-bg: #1C1B1F;
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 800;
  --num-weight: 800;
  --tile-1: #FFE48A; --tile-2: #E3DAFF; --tile-3: #CDEFDF; --tile-4: #FFD8C6;
}

/* לילה ופסטל: כחול לילה עמוק, כרטיסים בצבעי פסטל עם טקסט כהה, כפתור ירוק ליים. נלמד מהשראות ניהול משימות שיוחנן בחר */
[data-theme="night-pastel"] {
  --bg: #1B2540;
  --surface: #25314F;
  --surface-2: #2E3B5C;
  --text: #F2F4FA;
  --muted: #A3ACC6;
  --line: #34416A;
  --accent: #C8E6A0;
  --on-accent: #1B2540;
  --hero: #C8E6A0;
  --on-hero: #1B2540;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 12px 30px rgb(5 10 30 / .35);
  --nav-bg: #25314F;
  --nav-text: #A3ACC6;
  --nav-active: #1B2540;
  --nav-active-bg: #C8E6A0;
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 800;
  --num-weight: 800;
}

/* זכוכית וזריחה: כהה וחם, זוהר כתום-אפרסק ברקע, כרטיסי זכוכית, מספרים גדולים ודקים. נלמד מדשבורדים כתומים-שקופים ב-Dribbble (task tracker dashboard) */
[data-theme="sunrise-glass"] {
  --bg: #120E0C;
  --bg-fx: radial-gradient(520px 420px at 100% -6%, rgb(255 122 61 / .42), transparent 62%), radial-gradient(480px 380px at -10% 38%, rgb(255 196 128 / .16), transparent 60%), radial-gradient(420px 360px at 80% 105%, rgb(255 94 58 / .18), transparent 60%);
  --surface: rgb(255 255 255 / .07);
  --surface-2: rgb(255 255 255 / .11);
  --text: #FFF6EF;
  --muted: #C4AFA2;
  --line: rgb(255 255 255 / .11);
  --accent: #FF7A3D;
  --on-accent: #1A0F0A;
  --hero: rgb(255 122 61 / .16);
  --on-hero: #FFF6EF;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px rgb(0 0 0 / .35);
  --glass: blur(18px);
  --nav-bg: rgb(30 22 18 / .72);
  --nav-text: #C4AFA2;
  --nav-active: #1A0F0A;
  --nav-active-bg: #FF7A3D;
  --font-head: 'Heebo', system-ui, sans-serif;
  --head-weight: 700;
  --num-weight: 300;
}

/* מערכת עיתון: נייר שמנת, כותרות סריף גדולות, קווים דקים בדיו שחור, אדום אחד חזק. בהשראת עימוד מגזיני */
[data-theme="editorial"] {
  --bg: #F6F2EA;
  --surface: #FFFDF8;
  --surface-2: #EEE8DC;
  --text: #16130F;
  --muted: #6B6358;
  --line: #16130F;
  --accent: #E0402B;
  --on-accent: #FFFFFF;
  --hero: #16130F;
  --on-hero: #F6F2EA;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: none;
  --nav-bg: #F6F2EA;
  --nav-text: #6B6358;
  --nav-active: #16130F;
  --nav-active-bg: transparent;
  --font-head: 'Frank Ruhl Libre', 'Heebo', serif;
  --head-weight: 900;
  --num-weight: 900;
}

/* בנטו לבנדר: רקע לילך, אריחים מוצקים בנייבי, צהוב ולבן בגדלים שונים, פינות עגולות מאוד. נלמד מאפליקציות משימות בלבנדר וצהוב-נייבי ב-Dribbble */
[data-theme="bento"] {
  --bg: #ECE6FF;
  --surface: #FFFFFF;
  --surface-2: #F4F0FF;
  --text: #1E1B4B;
  --muted: #6D6896;
  --line: #DCD3FB;
  --accent: #1E1B4B;
  --on-accent: #FFFFFF;
  --hero: #1E1B4B;
  --on-hero: #FFFFFF;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 2px 0 rgb(30 27 75 / .04);
  --nav-bg: #1E1B4B;
  --nav-text: #A9A3D6;
  --nav-active: #1E1B4B;
  --nav-active-bg: #FFD84D;
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 800;
  --num-weight: 900;
}

/* צבעי סטטוס */
:root { --c-red: #E5484D; --c-orange: #F76B15; --c-yellow: #E0A100; --c-green: #12A150; --c-teal: #0E9F9A; --c-blue: #3B6CF6; --c-purple: #8E4EC6; --c-gray: #8B8D98; }

/* ---------- בסיס ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-fx, none), var(--bg);
  background-attachment: fixed;
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.15; text-wrap: balance; }
.i { width: 22px; height: 22px; flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- מבנה ---------- */
.app { padding: 0 16px calc(110px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; margin-bottom: 4px; background: linear-gradient(var(--bg) 70%, transparent); }
[data-theme="soft-air"] .top { background: transparent; backdrop-filter: blur(10px); }
[data-theme="photo-immersive"] .top { background: linear-gradient(rgb(14 23 20 / .9) 60%, transparent); }
.top__title { flex: 1; min-width: 0; }
.top__title h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__title small { display: block; font-size: 13px; color: var(--muted); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow); backdrop-filter: var(--glass); cursor: pointer; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; font-weight: 800; color: var(--on-accent); background: var(--accent); }
.brand-logo { height: 34px; width: auto; }

/* ---------- ניווט ---------- */
.nav { position: fixed; z-index: 30; display: flex; justify-content: space-around; gap: 4px; }
.nav a { display: grid; justify-items: center; gap: 2px; min-width: 56px; padding: 8px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--nav-text); }
.nav a.on { color: var(--nav-active); background: var(--nav-active-bg); }
/* סרגל מלא: נקי וצבעוני */
.nav { left: 0; right: 0; bottom: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--nav-bg); border-top: 1px solid var(--line); }
[data-theme="clean-pro"] .nav a.on { color: var(--accent); }
/* גלולה צפה: כהה, רך, תמונתי */
[data-theme="bold-dark"] .nav, [data-theme="soft-air"] .nav, [data-theme="photo-immersive"] .nav {
  left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto;
  padding: 8px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
[data-theme="bold-dark"] .nav a span, [data-theme="soft-air"] .nav a span, [data-theme="photo-immersive"] .nav a span { display: none; }
[data-theme="bold-dark"] .nav a, [data-theme="soft-air"] .nav a, [data-theme="photo-immersive"] .nav a { min-width: 52px; height: 52px; place-content: center; }
[data-theme="soft-air"] .nav a.on { border-radius: 16px; }
[data-theme="playful-blocks"] .nav a.on { padding-inline: 14px; }

/* כפתור צף */
.fab { position: fixed; z-index: 31; left: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 800; font-size: 16px; color: var(--on-accent); background: var(--accent); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 45%, transparent); cursor: pointer; }
[data-theme="bold-dark"] .fab, [data-theme="soft-air"] .fab, [data-theme="photo-immersive"] .fab { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- כרטיסים ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: var(--glass); }
.section { margin-top: 26px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section__head h2 { font-size: 19px; }
.section__head a { font-size: 14px; font-weight: 700; color: var(--accent); }
[data-theme="photo-immersive"] .section__head a, [data-theme="playful-blocks"] .section__head a { color: var(--text); text-decoration: underline; }

/* ---------- דשבורד ---------- */
.greet h1 { font-size: 28px; }
.greet p { margin-top: 4px; color: var(--muted); }
.cover { position: relative; margin: 0 -16px; padding: 90px 20px 24px; min-height: 240px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .65)), var(--cover, linear-gradient(135deg, #1D3A30, #0E1714)); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.cover h1 { font-size: 36px; font-weight: 300; line-height: 1.05; }
.cover h1 b { font-weight: 700; }
.cover p { margin-top: 8px; color: rgb(255 255 255 / .8); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.kpi { padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: var(--glass); }
.kpi b { display: block; font-family: var(--font-head); font-weight: var(--num-weight); font-size: 32px; line-height: 1.1; letter-spacing: -.5px; }
.kpi span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.kpi:first-child { grid-column: 1 / -1; background: var(--hero); color: var(--on-hero); border-color: transparent; }
.kpi:first-child span { color: color-mix(in srgb, var(--on-hero) 72%, transparent); }
.kpi:first-child b { font-size: 42px; }
.kpis:has(.kpi:nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis:has(.kpi:nth-child(4)) .kpi:not(:first-child) { padding: 14px 12px; }
.kpis:has(.kpi:nth-child(4)) .kpi:not(:first-child) b { font-size: 28px; }
[data-theme="playful-blocks"] .kpi:nth-child(1) { background: var(--tile-1); }
[data-theme="playful-blocks"] .kpi:nth-child(2) { background: var(--tile-2); }
[data-theme="playful-blocks"] .kpi:nth-child(3) { background: var(--tile-3); }
[data-theme="playful-blocks"] .kpi:nth-child(4) { background: var(--tile-4); }
[data-theme="playful-blocks"] .kpi span { color: color-mix(in srgb, var(--text) 70%, transparent); }
[data-theme="soft-air"] .kpi b { font-size: 38px; }
[data-theme="soft-air"] .kpi:first-child b { font-size: 52px; }
.quick { display: flex; gap: 8px; overflow-x: auto; margin: 18px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }

/* ---------- רשימות ---------- */
.search { position: relative; margin-top: 4px; }
.search input { width: 100%; height: 50px; padding: 0 46px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: var(--glass); outline: none; }
.search input:focus { border-color: var(--accent); }
.search .i { position: absolute; top: 14px; right: 16px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; backdrop-filter: var(--glass); }
.chip-btn.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.chip-btn em { font-style: normal; font-size: 12px; opacity: .7; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.toolbar small { color: var(--muted); font-weight: 600; }
.seg-view { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg-view button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg-view button.on { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.seg-view .i { width: 18px; height: 18px; }

.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: var(--glass); cursor: pointer; }
.item__av { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; font-weight: 800; color: var(--text); background: var(--surface-2); overflow: hidden; }
.item__av img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="bold-dark"] .item__av { border-radius: 50%; }
.item__main { flex: 1; min-width: 0; }
.item__main b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__main small { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__end { display: grid; justify-items: end; gap: 6px; flex: none; }
.item__end small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.money { font-family: var(--font-head); font-weight: 800; }

.status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: color-mix(in srgb, var(--c) 78%, var(--text)); background: color-mix(in srgb, var(--c) 16%, transparent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
[data-theme="bold-dark"] .status { color: #fff; background: var(--c); }
[data-theme="bold-dark"] .status::before { background: rgb(255 255 255 / .8); }

.empty { padding: 40px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty b { display: block; margin-bottom: 6px; font-size: 18px; color: var(--text); }

/* לוח עמודות */
.board { display: flex; gap: 12px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.board::-webkit-scrollbar { display: none; }
.col { flex: none; width: 78%; max-width: 320px; scroll-snap-align: start; padding: 12px; border-radius: var(--radius-lg); background: var(--surface-2); }
.col__head { display: flex; align-items: center; gap: 8px; margin: 2px 4px 12px; font-weight: 800; }
.col__head em { margin-inline-start: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.col .item { padding: 12px; margin-bottom: 8px; box-shadow: none; }
.col .empty { padding: 20px 10px; font-size: 14px; }

/* ---------- כרטיס פרטים ---------- */
.detail-hero { padding: 20px; margin-top: 6px; }
.detail-hero h2 { font-size: 26px; }
.detail-hero p { margin-top: 4px; color: var(--muted); }
.statuses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.statuses button { height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; }
.statuses button.on { border-color: transparent; color: #fff; background: var(--c); }
.actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 14px; }
.action { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; box-shadow: var(--shadow); backdrop-filter: var(--glass); }
.action .i { color: var(--accent); }
[data-theme="photo-immersive"] .action .i, [data-theme="playful-blocks"] .action .i { color: var(--text); }
.action--wa .i { color: #25D366 !important; }
.fields { margin-top: 14px; padding: 4px 16px; }
.fields div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fields div:last-child { border-bottom: 0; }
.fields dt { color: var(--muted); font-size: 14px; font-weight: 600; flex: none; }
.fields dd { margin: 0; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.fields dd.long { text-align: right; font-weight: 400; }
.fields img { max-width: 160px; border-radius: 12px; }

/* ---------- טפסים ---------- */
.form { display: grid; gap: 16px; margin-top: 8px; }
.f { display: grid; gap: 7px; }
.f > label, .f > span { font-size: 14px; font-weight: 700; color: var(--muted); }
.f > label i { font-style: normal; color: var(--c-red); }
.f input, .f textarea, .f select { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 17px; outline: none; backdrop-filter: var(--glass); }
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.f select option { color: #111; }
.f .money-in { position: relative; }
.f .money-in input { padding-left: 40px; }
.f .money-in b { position: absolute; left: 16px; top: 14px; color: var(--muted); }
.f .err { font-size: 13.5px; font-weight: 700; color: var(--c-red); }
.f.bad input, .f.bad textarea, .f.bad select { border-color: var(--c-red); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; cursor: pointer; backdrop-filter: var(--glass); }
.pills input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
.pills label:has(input:checked) { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.pills label.st:has(input:checked) { color: #fff; background: var(--c); }
.switch { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 700; }
.switch input { flex: none; width: 48px !important; height: 28px; min-height: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; appearance: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(-20px); }
.photo-in { display: flex; align-items: center; gap: 12px; }
.photo-in img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.savebar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.savebar > * { flex: 1; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 800; font-size: 16px; cursor: pointer; white-space: nowrap; }
.btn--primary { color: var(--on-accent); background: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--ghost { color: var(--text); background: var(--surface); border: 1.5px solid var(--line); backdrop-filter: var(--glass); }
.btn--danger { color: var(--c-red); background: transparent; border: 1.5px solid color-mix(in srgb, var(--c-red) 40%, transparent); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row > * { flex: 1; }

/* ---------- הגדרות ---------- */
.set { padding: 16px; margin-top: 12px; display: grid; gap: 14px; }
.set h3 { font-size: 17px; }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-card { display: grid; gap: 8px; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; text-align: right; }
.theme-card.on { border-color: var(--accent); }
.theme-card b { font-size: 14px; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .08); }

/* ---------- הודעה ---------- */
.toast { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 999px; color: #fff; background: #1C1B22; box-shadow: 0 12px 30px rgb(0 0 0 / .3); font-weight: 700; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s; }
.toast.on { transform: none; opacity: 1; pointer-events: auto; }
.toast button { border: 0; background: none; color: #FFE14D; font-weight: 800; cursor: pointer; }

/* ---------- כניסה ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(420px, 100%); padding: 28px 22px; display: grid; gap: 14px; text-align: center; }
.login h1 { font-size: 30px; }
.top__logo { flex: none; display: block; width: 44px; height: 44px; }
.top__logo img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.login__logo { justify-self: center; width: 88px; height: 88px; border-radius: 22px; }
.demo-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); font-size: 13.5px; background: color-mix(in srgb, var(--c-yellow) 16%, transparent); }

/* ---------- מערכת העמותות: שורה בצבע העמותה, התראות, עומס ---------- */
.item--tint { background: color-mix(in srgb, var(--tint) 62%, var(--surface)); border-color: color-mix(in srgb, var(--tint) 80%, var(--line)); }
.item--tint .item__av { background: rgb(255 255 255 / .6); }
[data-theme="night-pastel"] .item--tint { background: var(--tint); border-color: transparent; color: #1B2540; }
[data-theme="night-pastel"] .item--tint .item__main small, [data-theme="night-pastel"] .item--tint .item__end small { color: #4A5374; }
[data-theme="night-pastel"] .item--tint .item__av { background: #1B2540; color: var(--tint); }
[data-theme="night-pastel"] .item--tint .status { color: #1B2540; background: rgb(255 255 255 / .55); }
[data-theme="night-pastel"] .item--tint .late { color: #B4232A !important; }
[data-theme="clean-pro"] .item--tint { border-inline-start: 6px solid var(--tint); }
.alert .alert__dot { color: #fff; background: var(--c) !important; border-radius: 50%; }
.alert .alert__dot .i { width: 20px; height: 20px; }
.alert .item__main small.alert__why { color: inherit; font-weight: 700; white-space: normal; }
.item__end small.late, .late { color: var(--c-red) !important; font-weight: 800; }
.count-pill { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-inline-start: 6px; border-radius: 999px; font-size: 14px; color: #fff; background: var(--c-red); vertical-align: middle; }
.bar { display: block; height: 8px; margin-top: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
[data-theme="playful-blocks"] .bar i { background: #1C1B1F; }
.org-chips { margin-top: 0; }
.mini-stat { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-size: 14.5px; font-weight: 600; }
.mini-stat b { margin-inline-start: auto; font-family: var(--font-head); font-size: 17px; color: var(--text); }
.mini-stat .i { width: 20px; height: 20px; }
.mini-stat .mini-stat__go { transform: scaleX(-1); opacity: .5; }

/* ניווט תחתון עם 6 יעדים: כל יעד מקבל חלק שווה, בלי לחרוג מרוחב הטלפון */
@media (max-width: 959px) {
  .nav a { flex: 1 1 0; min-width: 0; padding-inline: 2px; }
  .nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- תיבת הצעות ---------- */
.inbox-banner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-lg); color: var(--on-accent); background: var(--accent); font-size: 15px; box-shadow: var(--shadow); }
.inbox-banner span { flex: 1; }
.inbox-banner .go { transform: scaleX(-1); }
[data-theme="editorial"] .inbox-banner { border: 1.5px solid var(--line); box-shadow: 4px 4px 0 var(--text); }
.paste { margin-top: 26px; }
.paste .btn--primary { width: 100%; }
.msgs { display: grid; gap: 14px; }
.msg { padding: 16px; display: grid; gap: 12px; }
.msg__head { display: flex; gap: 12px; align-items: center; }
.msg__head b { display: block; font-size: 16px; }
.msg__head small { display: block; color: var(--muted); font-size: 13.5px; }
.msg__src { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--surface-2); }
.msg__text summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.msg__text p { margin-top: 8px; padding: 12px; white-space: pre-wrap; border-radius: var(--radius); background: var(--surface-2); font-size: 15px; }
.sug { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--tint) 45%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--tint) 90%, var(--line)); }
[data-theme="editorial"] .sug { border-color: var(--line); border-inline-start: 8px solid color-mix(in srgb, var(--tint) 78%, #16130F); background: var(--surface); }
.sug--muted { background: var(--surface-2); border-style: dashed; color: var(--muted); }
.sug--muted b { color: var(--text); }
.sug__kind { font-size: 12.5px; font-weight: 800; letter-spacing: .3px; color: var(--accent); }
.sug__title { font-family: var(--font-head); font-size: 19px; line-height: 1.25; }
.sug__title a { text-decoration: underline; }
.sug__fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.sug__fields div { min-width: 0; }
.sug__fields dt { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.sug__fields dd { margin: 0; font-weight: 700; font-size: 15px; }
.sug__fields dd.warn { color: var(--c-red); }
.sug__note { padding: 10px 12px; border-radius: var(--radius); background: rgb(255 255 255 / .6); font-size: 15px; white-space: pre-wrap; }
.sug__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sug__why { color: var(--muted); font-size: 13.5px; }
.sug__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sug__btns .btn--primary { flex: 1 1 160px; }
.sug__done { justify-self: start; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 13.5px; background: color-mix(in srgb, var(--c-green) 16%, transparent); color: var(--c-green); }
.sug__done.rejected { background: var(--surface-2); color: var(--muted); }
.msgs--done .msg { opacity: .75; }
.connect { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--line) 40%, transparent); }
.connect > b { display: flex; align-items: center; gap: 8px; }
.center { text-align: center; margin-top: 18px; }
.center a { text-decoration: underline; }

/* ---------- עוזר תכנון פרויקט ---------- */
.wz-cta { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; border-radius: var(--radius-lg); color: var(--on-accent); background: var(--accent); box-shadow: var(--shadow); }
.wz-cta b { display: block; font-size: 16.5px; }
.wz-cta small { display: block; font-size: 13.5px; opacity: .85; }
.wz-cta--soft { color: var(--text); background: var(--surface); border: 1.5px solid var(--line); }
[data-theme="editorial"] .wz-cta { border: 1.5px solid var(--line); box-shadow: 4px 4px 0 var(--text); }
.wz-intro { margin-top: 6px; padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); border-inline-start: 8px solid color-mix(in srgb, var(--tint) 78%, #16130F); }
.wz-intro b { font-family: var(--font-head); font-size: 20px; }
.wz-intro small { display: block; color: var(--muted); font-weight: 700; }
.wz-intro p { margin-top: 6px; font-size: 15px; }
.wz { margin-top: 16px; padding: 20px 18px; display: grid; gap: 14px; }
.wz h2 { font-size: 26px; }
.wz__progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.wz__progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.wz__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.wz__opt { min-height: 48px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 15.5px; cursor: pointer; }
.wz__opt.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
[data-theme="editorial"] .wz__opt { border-radius: 6px; }
.wz__skip { justify-self: center; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.wz .btn-row { margin-top: 4px; }
.wz-loading { margin-top: 18px; }
.wz-tasks { display: grid; gap: 10px; }
.wz-task { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); }
.wz-task.off { opacity: .45; }
.wz-task__check input { width: 24px; height: 24px; margin-top: 10px; accent-color: var(--accent); cursor: pointer; }
.wz-task__body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.wz-task__title { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 700; font-size: 16px; }
.wz-task__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.wz-task__meta select, .wz-task__meta input { width: 100%; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sug__private { min-height: 46px; font-size: 14.5px; }

/* ---------- סיום משימה, תשובה ובדיקה ---------- */
.kind-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); font-size: 14.5px; }
.kind-line a { text-decoration: underline; font-weight: 700; }
.returned { margin-top: 8px; padding: 12px 14px; border-radius: var(--radius); border-inline-start: 6px solid var(--c-orange); background: color-mix(in srgb, var(--c-orange) 10%, var(--surface)); }
.returned p { margin-top: 4px; white-space: pre-wrap; }
.opt-rows { display: grid; gap: 8px; }
.opt-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) 44px; gap: 6px; align-items: center; }
.opt-row input { width: 100%; min-height: 46px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15px; }
.opt-row .icon-btn { font-size: 20px; box-shadow: none; border: 1.5px solid var(--line); }
@media (max-width: 599px) {
  .opt-row { grid-template-columns: minmax(0, 1fr) 96px 44px; }
  .opt-row input[data-rs-note] { grid-column: 1 / 3; grid-row: 2; }
}
table.opts { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 6px; }
table.opts th { text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 800; padding: 6px 8px; border-bottom: 1.5px solid var(--line); }
table.opts td { padding: 8px; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); vertical-align: top; }
table.opts td.ltr-cell { white-space: nowrap; font-weight: 800; }
.review { margin-top: 14px; padding: 16px; display: grid; gap: 10px; border-width: 2px; border-color: var(--accent); }
.review h3 { font-size: 20px; }
.review__text { white-space: pre-wrap; font-size: 15.5px; }
.followup { border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent); padding-top: 10px; }
.followup summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 800; color: var(--accent); }
.followup[open] { display: grid; gap: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl { position: relative; padding: 12px 14px; padding-inline-start: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); border-inline-start: 5px solid var(--c-gray); }
.tl--response { border-inline-start-color: var(--c-teal); }
.tl--done, .tl--approved { border-inline-start-color: var(--c-green); }
.tl--returned { border-inline-start-color: var(--c-orange); }
.tl--followup { border-inline-start-color: var(--c-blue); }
.tl__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tl__head small { color: var(--muted); }
.tl p { margin-top: 4px; white-space: pre-wrap; font-size: 15px; }
.tl__link { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: underline; }

/* ---------- דחיפות: איחור בולט מאוד, "עכשיו" בולט ---------- */
.item--late { border: 2px solid var(--c-red) !important; background: color-mix(in srgb, var(--c-red) 9%, var(--surface)) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-red) 14%, transparent), var(--shadow); }
.item--late .item__main b { color: color-mix(in srgb, var(--c-red) 70%, var(--text)); }
.item--now { border: 2px solid var(--c-orange) !important; }
.badge { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.6; }
.badge--late { color: #fff; background: var(--c-red); }
.badge--now { color: #fff; background: var(--c-orange); }
.badge--wait { color: color-mix(in srgb, var(--c-purple) 80%, var(--text)); background: color-mix(in srgb, var(--c-purple) 14%, transparent); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-theme="editorial"] .badge { border-radius: 4px; }
.group-head { grid-column: 1 / -1; margin: 14px 2px 0; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 17px; color: var(--muted); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); padding-bottom: 4px; }
.list > .group-head:first-child { margin-top: 2px; }
.show-done { display: block; margin: 10px auto 0; min-height: 40px; padding: 0 16px; border: 0; background: none; color: var(--muted); font-weight: 700; text-decoration: underline; cursor: pointer; }
.wait-line { border-inline-start: 5px solid var(--c-purple); }

/* ---------- הרשאות ---------- */
.perms { margin-top: 14px; }
.perm-group { display: grid; gap: 6px; }
.perm-title { font-weight: 800; font-size: 14px; color: var(--muted); margin-top: 6px; }
.perm { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); border: 1.5px solid color-mix(in srgb, var(--line) 60%, transparent); cursor: pointer; }
.perm.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.perm input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.perm b { display: block; font-size: 15.5px; }
.perm small { display: block; color: var(--muted); font-size: 13.5px; }
.perm .rec { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--c-green); }

/* ---------- תוספות "מנכ"ל" ---------- */
.pbar { display: block; height: 8px; margin-top: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: inherit; background: var(--c-green); transition: width .3s; }
.pbar--lg { height: 12px; }
.pbar--warn i { background: var(--c-orange); }
.pbar--bad i { background: var(--c-red); }
[data-theme="editorial"] .pbar { border-radius: 0; } [data-theme="editorial"] .pbar i { border-radius: 0; }
.badge--subs { color: var(--text); background: var(--surface-2); margin-inline-start: 4px; }
.badge--mention { color: #fff; background: var(--c-purple); }
.item--blocked { opacity: .78; border-style: dashed !important; }
.blocked-line { border-inline-start: 5px solid var(--c-orange); }
.progress-card h3, .budget h3, .away h3, .meeting h3 { display: flex; align-items: center; gap: 8px; }
.progress-card.risk, .progress-card.late { border-color: var(--c-orange); }
/* תתי משימות */
.sub-list { display: grid; gap: 6px; margin-top: 10px; }
.sub { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--line) 50%, transparent); }
.sub.done .sub__main b { text-decoration: line-through; color: var(--muted); }
.sub.late { border-color: var(--c-red); }
.sub__check input { width: 24px; height: 24px; accent-color: var(--c-green); cursor: pointer; }
.sub__main { flex: 1; min-width: 0; }
.sub__main b { display: block; font-size: 15.5px; }
.sub__main small { color: var(--muted); font-size: 13px; }
.sub .icon-btn { width: 36px; height: 36px; box-shadow: none; border: 1.5px solid color-mix(in srgb, var(--line) 50%, transparent); font-size: 18px; }
.sub-add { display: grid; gap: 8px; margin-top: 10px; }
.sub-add input, .sub-add select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15.5px; }
.sub-add__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 6px; }
@media (max-width: 420px) { .sub-add__row { grid-template-columns: 1fr 1fr; } .sub-add__row .btn { grid-column: 1 / -1; } }
/* דיון */
.comments { display: grid; gap: 8px; }
.comment { padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.comment__head { display: flex; justify-content: space-between; gap: 8px; }
.comment__head small { color: var(--muted); }
.comment p { margin-top: 4px; white-space: pre-wrap; }
.mention { color: var(--c-purple); }
.comment-new { display: grid; gap: 8px; margin-top: 10px; }
.comment-new textarea { width: 100%; min-height: 70px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; }
.comment-new .btn { justify-self: start; }
.chip-btn--sm { height: 32px; padding: 0 10px; font-size: 13px; }
/* תקציב */
.budget__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.budget__nums small { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.budget__nums b { font-family: var(--font-head); font-size: 20px; }
.budget.over { border-color: var(--c-red); }
.budget.warn { border-color: var(--c-orange); }
/* יעדים */
.goal .item__main { display: block; }
.goal__pct { font-family: var(--font-head); font-size: 20px; }
.goal-update { display: flex; gap: 8px; }
.goal-update input { flex: 1; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; }
/* ישיבות */
.decisions { margin: 4px 0 0; padding-inline-start: 20px; }
.decisions li { margin-bottom: 4px; font-weight: 600; }
.mt-draft { display: grid; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--line) 40%, transparent); }
.mt-draft h4 { margin: 0; font-size: 16px; }
/* קבצים */
.files-in { display: grid; gap: 6px; }
.file-row { display: flex; align-items: center; gap: 8px; }
.file-row a, .file-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius); background: var(--surface-2); font-weight: 600; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-link { margin: 2px; }
.file-row .icon-btn { width: 34px; height: 34px; box-shadow: none; }
/* לוח שנה */
.cal-mode { display: flex; width: 100%; margin-top: 6px; } .cal-mode button { flex: 1; justify-content: center; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.cal-nav b { font-family: var(--font-head); font-size: 20px; }
.cal-nav .cal-next .i { transform: scaleX(-1); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); padding: 4px 0; }
.cal-cell { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 58px; padding: 4px; border: 1px solid color-mix(in srgb, var(--line) 45%, transparent); border-radius: 8px; background: var(--surface); text-align: right; cursor: pointer; overflow: hidden; font: inherit; color: inherit; }
.cal-cell--empty { border: 0; background: transparent; cursor: default; }
.cal-cell.today { border: 2px solid var(--accent); }
.cal-cell.sel { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.cal-cell.has-late .cal-num { color: var(--c-red); }
.cal-num { font-weight: 800; font-size: 13px; }
.cal-items { display: none; }
.cal-items i { display: block; font-style: normal; font-size: 11.5px; line-height: 1.3; padding: 1px 4px; border-radius: 4px; background: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-items i.done { text-decoration: line-through; opacity: .6; }
.cal-items em { font-style: normal; font-size: 11px; color: var(--muted); }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.cal-dots b { width: 8px; height: 8px; border-radius: 50%; background: var(--c); border: 1px solid rgb(0 0 0 / .15); }
@media (min-width: 700px) { .cal-cell { min-height: 96px; } .cal-items { display: grid; gap: 2px; } .cal-dots { display: none; } }
/* ציר זמן */
.tl-wrap { margin-top: 14px; }
.tl-axis { position: relative; height: 22px; margin-inline-start: 34%; border-bottom: 1px solid var(--line); }
.tl-axis span { position: absolute; top: 0; font-size: 12px; font-weight: 700; color: var(--muted); transform: translateX(50%); }
.tl-row { display: grid; grid-template-columns: 34% 1fr; align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.tl-name { min-width: 0; }
.tl-name b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-name small { color: var(--muted); font-size: 12.5px; }
.tl-track { position: relative; height: 26px; }
.tl-today { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--c-red); z-index: 2; }
.tl-bar { position: absolute; top: 3px; height: 20px; border-radius: 6px; background: var(--c); border: 1px solid rgb(0 0 0 / .15); overflow: hidden; }
.tl-bar i { display: block; height: 100%; background: rgb(0 0 0 / .28); }
.tl-bar.risk, .tl-bar.late { outline: 2px solid var(--c-orange); }
.tl-legend { margin-top: 10px; font-size: 13.5px; }
.report-share { flex-wrap: wrap; }
.more-views { margin-bottom: 10px; }
@media print {
  .nav, .fab, .top .icon-btn, .top .avatar, .report-share, .toast { display: none !important; }
  .app { margin: 0 !important; max-width: none !important; padding: 0 !important; }
  body { background: #fff; }
}

/* ---------- סוגי תשובה ---------- */
.f-hint { color: var(--muted); font-size: 13px; }
.list-in { display: grid; gap: 8px; }
.list-in__row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; }
.list-in__row input { width: 100%; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; }
.list-in__row .icon-btn { box-shadow: none; border: 1.5px solid var(--line); font-size: 20px; }
.f > .btn--sm { justify-self: start; }
.rs-other { width: 100%; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; }
.pick input[type=radio] { accent-color: var(--accent); }
.answer-box { padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.answer-box small { display: block; color: var(--muted); font-weight: 700; }
.answer-box p { margin-top: 4px; font-size: 17px; font-weight: 700; white-space: pre-wrap; }
.tl__q { display: block; color: var(--muted); font-weight: 700; margin-top: 4px; }
.tl__answer { font-weight: 700; }
.tl__choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tl__choices span { padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff; background: var(--c-green); }
[data-theme="editorial"] .tl__choices span { border-radius: 4px; }

/* ---------- החשבונות שלי ---------- */
.accts { display: grid; gap: 8px; }
.acct { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--line) 50%, transparent); }
.acct__ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--surface-2); }
.acct__main { flex: 1; min-width: 0; }
.acct__main b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.acct__main small { display: block; color: var(--muted); font-size: 13px; }
.acct-opts { padding: 8px 0; }
.acct-opts summary { cursor: pointer; font-weight: 700; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
.acct-opts[open] { display: grid; gap: 8px; }
.connect > .btn { justify-self: start; }
.wa-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 6px; }
.wa-add input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15.5px; }
@media (max-width: 420px) { .wa-add { grid-template-columns: 1fr 1fr; } .wa-add .btn { grid-column: 1 / -1; } }
/* תרומות החודש לפי עמותה */
.don-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.don-total b { font-family: var(--font-head); font-size: clamp(26px, 6vw, 34px); color: var(--text); }
.don-total span { color: var(--muted); font-size: 15px; }
.don-orgs .item { border-inline-start: 6px solid var(--tint); }
.don-orgs .don-orgs__dot { background: var(--tint); }
.don-orgs .item__end b { font-size: 16px; color: var(--text); }
/* נדרים פלוס */
.acct.nd { align-items: flex-start; flex-wrap: wrap; border-inline-start: 6px solid var(--tint); }
.acct.nd .acct__main small { white-space: normal; }
.nd__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.acct.nd .nd__btns { width: 100%; padding-inline-start: 48px; }
.nd-form { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); }
.nd-form input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; }
.nd-form .ltr { direction: ltr; text-align: left; word-break: break-all; font-size: 14px; margin: 0; }
.f > [data-paste-clip] { justify-self: start; }

/* ---------- התראות ---------- */
.ok-text { color: var(--c-green); }
.next-rem { display: grid; gap: 6px; }
.next-rem a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.next-rem a b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-rem a small { flex: none; color: var(--muted); font-weight: 700; }

/* ---------- החלטה שחזרה לעובד ---------- */
.decision { margin-top: 14px; padding: 16px; border-radius: var(--radius-lg); border: 2px solid var(--c-green); background: color-mix(in srgb, var(--c-green) 9%, var(--surface)); }
.decision__tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--c-green); }
.decision p { margin-top: 6px; font-size: 17px; font-weight: 700; white-space: pre-wrap; }
.decision small { display: block; margin-top: 4px; color: var(--muted); }
.item--decided { border: 2px solid var(--c-green) !important; }
.badge--decided { color: #fff; background: var(--c-green); }
.count-pill--ok { background: var(--c-green); }
.tl--decided { border-inline-start-color: var(--c-green); }
.rv-choose { width: 100%; }
.rv-choose:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.rv-more .btn { flex: 1 1 140px; }

/* ---------- בחירת אפשרות בבדיקה ---------- */
.pick-hint { font-weight: 800; font-size: 14.5px; }
.pick-list { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: var(--radius); border: 2px solid color-mix(in srgb, var(--line) 60%, transparent); background: var(--surface); cursor: pointer; }
.pick.on { border-color: var(--c-green); background: color-mix(in srgb, var(--c-green) 9%, var(--surface)); }
.pick input { width: 24px; height: 24px; accent-color: var(--c-green); flex: none; }
.pick__main { flex: 1; min-width: 0; }
.pick__main b { display: block; font-size: 15.5px; }
.pick__main small { display: block; color: var(--muted); font-size: 13.5px; }
.pick__price { flex: none; font-family: var(--font-head); font-weight: 800; font-size: 16px; }

/* ---------- שליחת הודעות ---------- */
.cmp-channel { display: flex; width: 100%; margin-top: 6px; }
.cmp-channel button { flex: 1; justify-content: center; height: 46px; font-size: 15px; }
.cmp-to { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 14.5px; }
.cmp-chip button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); }
.cmp-chip.bad { color: var(--muted); text-decoration: line-through; }
.cmp-preview { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.cmp-preview small { color: var(--muted); font-weight: 700; }
.cmp-preview p { margin-top: 6px; white-space: pre-wrap; font-size: 15.5px; }
.safe { border-color: color-mix(in srgb, var(--c-green) 50%, var(--line)); background: color-mix(in srgb, var(--c-green) 7%, var(--surface)); }
.safe h3 { display: flex; align-items: center; gap: 8px; color: var(--c-green); }
.safe p { font-size: 15px; }
.warn-text { color: var(--c-orange); font-weight: 700; font-size: 14.5px; }
.picker { margin-top: 12px; }
.picker__list { max-height: 340px; overflow: auto; display: grid; gap: 4px; }
.picker__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: var(--radius); cursor: pointer; }
.picker__row:hover { background: var(--surface-2); }
.picker__row input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.picker__row b { display: block; font-size: 15.5px; }
.picker__row small { color: var(--muted); }
.picker__row.off { opacity: .45; cursor: default; }

/* ---------- טאבלט (600 עד 959 פיקסלים): יותר רוחב, שני טורים, ניווט תחתון ---------- */
@media (min-width: 600px) and (max-width: 959px) {
  .app { max-width: 880px; padding-inline: 24px; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis, .kpis:has(.kpi:nth-child(4)) { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .kpi:first-child { grid-column: auto; }
  .msgs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .wz-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col { width: 46%; }
  .nav a { font-size: 13px; }
  .nav .i { width: 24px; height: 24px; }
  .fab { left: 24px; }
  .greet h1 { font-size: 34px; }
  [data-theme="editorial"] .greet h1 { font-size: 48px; }
  [data-theme="editorial"] .kpi:first-child { border-bottom: 0; }
  [data-theme="editorial"] .kpi:nth-child(2) { border-inline-start: 1.5px solid var(--line); }
  .paste, .wz, .cmp-channel { max-width: 640px; }
  .form { max-width: 640px; }
  .savebar { padding-inline: max(16px, calc((100vw - 640px) / 2)); }
}

/* ---------- זכוכית וזריחה ---------- */
[data-theme="sunrise-glass"] .nav { left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; padding: 8px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
[data-theme="sunrise-glass"] .nav a span { display: none; }
[data-theme="sunrise-glass"] .nav a { min-width: 52px; height: 52px; place-content: center; }
[data-theme="sunrise-glass"] .fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
[data-theme="sunrise-glass"] .top { background: linear-gradient(rgb(18 14 12 / .85) 60%, transparent); }
[data-theme="sunrise-glass"] .greet h1 { font-size: 34px; font-weight: 300; }
[data-theme="sunrise-glass"] .kpi:first-child { border: 1px solid rgb(255 122 61 / .45); }
[data-theme="sunrise-glass"] .kpi:first-child b { font-size: 64px; color: #FFB48A; }
[data-theme="sunrise-glass"] .item--tint { background: color-mix(in srgb, var(--tint) 12%, rgb(255 255 255 / .05)); border-color: color-mix(in srgb, var(--tint) 35%, transparent); }
[data-theme="sunrise-glass"] .item--tint .item__av { background: var(--tint); color: #1A0F0A; }
[data-theme="sunrise-glass"] .bar i { background: linear-gradient(90deg, #FFB48A, #FF7A3D); }
[data-theme="sunrise-glass"] .status { color: #fff; background: color-mix(in srgb, var(--c) 32%, transparent); }

/* ---------- מערכת עיתון ---------- */
[data-theme="editorial"] .card, [data-theme="editorial"] .kpi, [data-theme="editorial"] .item, [data-theme="editorial"] .search input, [data-theme="editorial"] .chip-btn, [data-theme="editorial"] .action { border-width: 1.5px; border-color: var(--line); }
[data-theme="editorial"] .top { border-bottom: 3px double var(--line); margin-bottom: 10px; }
[data-theme="editorial"] .top__title h1 { font-size: 26px; }
[data-theme="editorial"] .greet h1 { font-size: 40px; line-height: 1; }
[data-theme="editorial"] .greet p { font-weight: 700; text-transform: none; letter-spacing: .5px; }
[data-theme="editorial"] .kpis { gap: 0; border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
[data-theme="editorial"] .kpi { border: 0; border-radius: 0; border-inline-start: 1.5px solid var(--line); background: var(--surface); }
[data-theme="editorial"] .kpi:first-child { border-inline-start: 0; border-bottom: 1.5px solid var(--line); background: var(--accent); color: #fff; }
[data-theme="editorial"] .kpi:nth-child(2) { border-inline-start: 0; }
[data-theme="editorial"] .kpi b { font-size: 40px; }
[data-theme="editorial"] .kpi:first-child b { font-size: 72px; line-height: .95; }
[data-theme="editorial"] .section__head { border-bottom: 1.5px solid var(--line); padding-bottom: 6px; }
[data-theme="editorial"] .section__head h2 { font-size: 24px; }
[data-theme="editorial"] .section__head a { color: var(--accent); text-decoration: underline; }
[data-theme="editorial"] .item--tint { background: var(--surface); border-inline-start: 10px solid color-mix(in srgb, var(--tint) 78%, #16130F); }
[data-theme="editorial"] .item--tint .item__av { background: var(--tint); }
[data-theme="editorial"] .item__main b { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
[data-theme="editorial"] .status { border-radius: 4px; background: transparent; border: 1.5px solid var(--c); color: var(--text); }
[data-theme="editorial"] .chip-btn.on { background: var(--text); color: var(--bg); }
[data-theme="editorial"] .nav { border-top: 3px double var(--line); }
[data-theme="editorial"] .nav a.on { color: var(--accent); }
[data-theme="editorial"] .nav a.on span { text-decoration: underline; text-underline-offset: 4px; }
[data-theme="editorial"] .fab { border-radius: 6px; box-shadow: 4px 4px 0 var(--text); }
[data-theme="editorial"] .btn { border-radius: 6px; }
[data-theme="editorial"] .count-pill { border-radius: 4px; background: var(--accent); }
[data-theme="editorial"] .bar { border-radius: 0; height: 6px; }
[data-theme="editorial"] .switch input { background: #D9D2C4; }
[data-theme="editorial"] .switch input:checked { background: var(--accent); }
[data-theme="editorial"] .bar i { background: var(--text); border-radius: 0; }

/* ---------- בנטו לבנדר ---------- */
[data-theme="bento"] .nav { left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; padding: 8px; border: 0; border-radius: 999px; box-shadow: 0 16px 34px rgb(30 27 75 / .3); }
[data-theme="bento"] .nav a span { display: none; }
[data-theme="bento"] .nav a { min-width: 52px; height: 52px; place-content: center; }
[data-theme="bento"] .fab { bottom: calc(96px + env(safe-area-inset-bottom)); background: #FFD84D; color: #1E1B4B; box-shadow: 0 12px 26px rgb(30 27 75 / .25); }
[data-theme="bento"] .kpi { border: 0; }
[data-theme="bento"] .kpi:first-child b { color: #FFD84D; font-size: 56px; }
[data-theme="bento"] .kpi:nth-child(2) { background: #FFD84D; }
[data-theme="bento"] .kpi:nth-child(2) span { color: #1E1B4B; }
[data-theme="bento"] .kpi:nth-child(3) { background: #FFFFFF; }
[data-theme="bento"] .kpi:nth-child(4) { background: #C9BCFF; }
[data-theme="bento"] .kpi:nth-child(4) span { color: #1E1B4B; }
[data-theme="bento"] .item { border: 0; }
[data-theme="bento"] .item--tint { background: var(--tint); }
[data-theme="bento"] .item--tint .item__av { background: #1E1B4B; color: var(--tint); border-radius: 50%; }
[data-theme="bento"] .status { background: rgb(255 255 255 / .7); }
[data-theme="bento"] .bar i { background: #1E1B4B; }
[data-theme="bento"] .chip-btn { border: 0; }
[data-theme="bento"] .section__head a { color: var(--text); text-decoration: underline; }

/* ---------- מחשב: ניווט בצד ---------- */
@media (min-width: 960px) {
  .app { max-width: 1060px; padding: 0 32px 60px; margin-right: 260px; margin-left: auto; }
  .nav, [data-theme="bold-dark"] .nav, [data-theme="soft-air"] .nav, [data-theme="photo-immersive"] .nav {
    top: 16px; bottom: 16px; right: 16px; left: auto; width: 220px; max-width: none; margin: 0;
    flex-direction: column; justify-content: flex-start; padding: 16px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  }
  .nav a, [data-theme="bold-dark"] .nav a, [data-theme="soft-air"] .nav a, [data-theme="photo-immersive"] .nav a { display: flex; grid-template-columns: none; place-content: initial; align-items: center; gap: 12px; height: 48px; padding: 0 14px; font-size: 15px; border-radius: 14px; }
  .nav a span, [data-theme="bold-dark"] .nav a span, [data-theme="soft-air"] .nav a span, [data-theme="photo-immersive"] .nav a span { display: inline; }
  .fab { bottom: 28px !important; left: 32px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi:first-child { grid-column: auto; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col { width: 300px; }
  .savebar { right: 260px; }
  .toast { bottom: 28px; }
  .cover { margin: 0; border-radius: var(--radius-lg); }
}

@media (min-width: 960px) {
  [data-theme="sunrise-glass"] .nav, [data-theme="bento"] .nav, [data-theme="night-pastel"] .nav {
    top: 16px; bottom: 16px; right: 16px; left: auto; width: 220px; max-width: none; margin: 0;
    flex-direction: column; justify-content: flex-start; padding: 16px 12px; border-radius: var(--radius-lg);
  }
  [data-theme="sunrise-glass"] .nav a, [data-theme="bento"] .nav a { display: flex; place-content: initial; align-items: center; gap: 12px; height: 48px; padding: 0 14px; font-size: 15px; border-radius: 14px; }
  [data-theme="sunrise-glass"] .nav a span, [data-theme="bento"] .nav a span { display: inline; }
  .kpis:has(.kpi:nth-child(4)) { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  [data-theme="editorial"] .nav { border: 1.5px solid var(--line); }
  [data-theme="editorial"] .kpi:first-child { border-bottom: 0; }
  [data-theme="editorial"] .kpi:nth-child(2) { border-inline-start: 1.5px solid var(--line); }
  [data-theme="editorial"] .kpis .kpi:not(:first-child) b { font-size: 56px; }
  [data-theme="editorial"] .kpi { padding: 22px; }
  [data-theme="editorial"] .greet h1 { font-size: 56px; }
  .msgs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .paste { max-width: 640px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
