/* מנוע המערכות של קלוד לעצלנים: רכיבים מובייל פירסט + חמש ערכות נושא (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="school-soft"] {
  --bg: #F3F1FB;
  --bg-fx: linear-gradient(170deg, #EEEAFB 0%, #F8F7FD 50%, #F1EEFB 100%);
  --surface: #FFFFFF;
  --surface-2: #EEEBFA;
  --text: #1E1B3A;
  --muted: #6E6A8A;
  --line: #E6E2F5;
  --accent: #6C4CF1;
  --on-accent: #FFFFFF;
  --hero: linear-gradient(140deg, #6C4CF1, #8B6CFF);
  --on-hero: #FFFFFF;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 2px 4px rgb(108 76 241 / .05), 0 14px 30px rgb(108 76 241 / .10);
  --nav-bg: #FFFFFF;
  --nav-text: #9C98B5;
  --nav-active: #FFFFFF;
  --nav-active-bg: #6C4CF1;
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 700;
  --num-weight: 800;
  --tile-1: #FFD9B3; --tile-2: #CFE6FF; --tile-3: #FFD3E1; --tile-4: #E3DAFF;
}
[data-theme="school-soft"] .nav a.on { padding-inline: 14px; }
[data-theme="school-soft"] .kpi:nth-child(2) { background: var(--tile-1); }
[data-theme="school-soft"] .kpi:nth-child(3) { background: var(--tile-2); }
[data-theme="school-soft"] .kpi:nth-child(4) { background: var(--tile-3); }

/* צבעי סטטוס */
: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(170px + 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; white-space: pre-line; }
.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 { position: relative; 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; }
.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; }
.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); }

/* ---------- מחשב: ניווט בצד ---------- */
@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 (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* לוגו העסק בראש המסך */
.top__logo { height: 40px; width: auto; border-radius: 10px; flex: none; }

/* באנר תמונה בראש מסך הפתיחה, וקווי המוצרים עם תמונות */
.hero-ban { margin: 4px 0 18px; padding: 26px 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius-lg, 24px); background-size: cover; background-position: center; color: #fff; box-shadow: 0 14px 34px rgb(0 0 0 / .35); }
.hero-ban h1 { font-size: 30px; font-weight: 800; line-height: 1.1; text-shadow: 0 2px 12px rgb(0 0 0 / .5); }
.hero-ban p { margin-top: 6px; color: rgb(255 255 255 / .85); font-weight: 600; }
.lines { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.line-tile { position: relative; display: block; height: 196px; border-radius: 20px; overflow: hidden; scroll-snap-align: start; border: 2px solid var(--lc); box-shadow: 0 10px 24px rgb(0 0 0 / .3); }
.line-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.line-tile span { position: absolute; top: 8px; inset-inline-start: 8px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / .72); color: #fff; }
.line-tile b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.line-tile small { font-size: 13px; font-weight: 700; }
.line-head { margin: 0 0 16px; height: 170px; border-radius: var(--radius-lg, 24px); background-size: cover; background-position: center 30%; display: flex; align-items: flex-end; padding: 18px; color: #fff; box-shadow: 0 14px 34px rgb(0 0 0 / .35); }
.line-head b { font-size: 26px; font-weight: 800; text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
@media (min-width: 900px) { .lines { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; } .hero-ban { min-height: 210px; } }

/* טבלה כמו באקסל בתוך הזמנת רכש */
.xl-wrap { overflow-x: auto; border-radius: 18px; background: var(--surface); box-shadow: 0 8px 22px rgb(0 0 0 / .18); }
.xl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.xl th { position: sticky; top: 0; padding: 10px 8px; text-align: right; font-size: 13px; font-weight: 700; background: var(--accent); color: var(--on-accent, #111); white-space: nowrap; }
.xl td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.xl-name { min-width: 170px; font-weight: 600; line-height: 1.3; }
.xl-in { width: 72px; min-height: 40px; padding: 4px 8px; border: 1.5px solid rgb(127 127 127 / .35); border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: center; direction: ltr; }
.xl-in:focus { outline: none; border-color: var(--accent); }
.xl-sum { white-space: nowrap; font-weight: 700; direction: ltr; text-align: right; }
.xl tfoot td { font-weight: 800; border-top: 2px solid var(--accent); padding: 10px 8px; }
.xl tfoot td[data-tot] { text-align: center; }
.xl-changed td { background: rgb(255 150 40 / .14); }
.xl-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--c-red, #e5484d); font-size: 22px; cursor: pointer; }
.xl-empty { text-align: center; padding: 22px 8px !important; opacity: .7; }
.xl-add { display: flex; gap: 8px; margin-top: 12px; }
.xl-add input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 14px; border: 1.5px solid rgb(127 127 127 / .35); border-radius: 14px; background: var(--surface); color: inherit; font: inherit; }
.xl-note { margin-top: 10px; }

/* יעד (למשל 10 אולמות) ומצב המוצרים בצבעים */
.goal { display: block; padding: 16px; border-radius: var(--radius-lg, 22px); background: var(--surface); box-shadow: var(--shadow); }
.goal__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.goal__top span { color: var(--muted); }
.goal__top span b { font-size: 26px; color: var(--text); }
.goal__bar { margin-top: 10px; height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.goal__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-red), var(--c-orange), var(--c-yellow), var(--c-green)); }
.pst-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pst-chip { display: grid; gap: 2px; padding: 12px 8px; border-radius: 18px; text-align: center; background: color-mix(in srgb, var(--c) 18%, var(--surface)); border: 2px solid var(--c); }
.pst-chip b { font-size: 26px; line-height: 1; }
.pst-chip span { font-size: 13px; font-weight: 700; }
.pst-wrap { overflow-x: auto; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.pst { width: 100%; border-collapse: collapse; font-size: 15px; }
.pst th, .pst td { padding: 10px 8px; text-align: center; border-top: 1px solid var(--line); }
.pst th:first-child, .pst td:first-child { text-align: right; font-weight: 600; white-space: nowrap; }
.pst thead th { border-top: 0; }
.pst a { display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 8px; border-radius: 12px; font-weight: 800; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--text); }
.pst-0 { color: var(--muted); }
.pst .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); vertical-align: middle; }

/* רק שותף מוחק */
html[data-role]:not([data-role="owner"]) [data-delete],
html[data-role]:not([data-role="owner"]) .xl-x { display: none !important; }

/* אולמות לפי ערים */
.goal__groups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.goal__groups span { padding: 4px 10px; border-radius: 99px; background: var(--line); font-size: 13px; }
.goal__groups span.ok { background: color-mix(in srgb, var(--c-green) 30%, transparent); }
.cities { display: grid; gap: 12px; }
.city { padding: 14px 16px; border-radius: var(--radius-lg, 22px); background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent; }
.city--ok { border-color: var(--c-green); }
.city__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.city__head b { font-size: 20px; }
.city__head span { color: var(--muted); font-size: 14px; }
.city__st { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.city__st > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--c) 20%, transparent); }
.city__st .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.city .list { margin-top: 10px; }
.city__add { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent); min-height: 32px; }
@media (min-width: 900px) { .cities { grid-template-columns: repeat(2, 1fr); } }

/* לוח הבקרה: שלושה תחומים */
.hubs { display: grid; gap: 12px; }
.hub { display: grid; grid-template-columns: 96px 1fr; gap: 0; overflow: hidden; border-radius: var(--radius-lg, 22px); background: var(--surface); box-shadow: var(--shadow); border-inline-start: 6px solid var(--hc); min-height: 120px; }
.hub img { width: 96px; height: 100%; object-fit: cover; object-position: center bottom; }
.hub__body { padding: 14px; display: grid; gap: 4px; align-content: center; }
.hub__body b { font-size: 21px; font-weight: 800; }
.hub__body small { color: var(--muted); font-size: 14px; }
.hub__st { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hub__st span { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--c) 22%, transparent); }
.hub__st em { font-style: normal; font-size: 16px; font-weight: 900; }
.hub-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.hub-link small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pst-line { font-weight: 700; border-inline-start: 4px solid var(--lc); padding-inline-start: 8px; background: none !important; display: inline !important; min-width: 0 !important; }
@media (min-width: 900px) { .hubs { grid-template-columns: repeat(3, 1fr); } .hub { grid-template-columns: 1fr; } .hub img { width: 100%; height: 150px; } }

/* פינת רעיונות */
.idea { display: grid; gap: 6px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius-lg, 22px); background: var(--surface); box-shadow: var(--shadow); border-inline-start: 6px solid var(--c); }
.idea__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.idea__top b { font-size: 17px; line-height: 1.35; }
.idea__st { flex: none; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--c) 22%, transparent); }
.idea small { color: var(--muted); }
.idea p { line-height: 1.5; }
@media (min-width: 900px) { .hubs { grid-template-columns: repeat(2, 1fr); } }

/* חיות וקריאוּת */
.pet { width: 100%; height: 100%; display: block; }
.hub__pic { position: relative; }
.hub__pet { position: absolute; bottom: 6px; inset-inline-start: 6px; width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 6px 16px rgb(0 0 0 / .35); }
.mascot { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; padding: 12px 14px; border-radius: 20px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.mascot .pet { flex: none; width: 72px; height: 72px; }
.mascot p { font-size: 16px; line-height: 1.55; font-weight: 500; }
.hub__body small, .city__head span, .idea p, .goal__top span { font-size: 15px; }
.section__head h2 { font-size: 20px; }
@media (min-width: 900px) { .hub__pet { width: 64px; height: 64px; } }

/* סוג הארגז בהזמנת רכש */
.f-help { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; }
.carton-tag { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); color: var(--muted); }
.carton-tag svg { flex: none; width: 44px; height: 44px; color: #C08B44; }
.carton-tag b { display: block; font-size: 17px; color: var(--text); }
.carton-tag small { font-size: 14px; line-height: 1.45; }
.carton-tag--fit { border-color: var(--c-green); background: color-mix(in srgb, var(--c-green) 12%, var(--surface)); }

/* ===== קליל וכיפי: הסגנון הבהיר של איזה אושר (playful-blocks) ===== */
[data-theme="playful-blocks"] body { background: #FFF8EC radial-gradient(circle at 8% 4%, #FFE7A8 0 90px, transparent 91px), radial-gradient(circle at 96% 30%, #DDE6FF 0 120px, transparent 121px), radial-gradient(circle at 4% 70%, #DFF5E6 0 100px, transparent 101px); background-attachment: fixed; }
[data-theme="playful-blocks"] .eo-cats { gap: 10px; }
[data-theme="playful-blocks"] .eo-cats a { position: relative; padding: 14px 12px 12px; border-radius: 22px; border: 0; background: color-mix(in srgb, var(--c) 16%, #fff); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 22%, transparent); overflow: hidden; }
[data-theme="playful-blocks"] .eo-cats b { font-size: 20px; color: #14143A; }
[data-theme="playful-blocks"] .eo-cats i { background: #fff; }
.eo-cat-pet { position: absolute; top: 6px; inset-inline-end: 6px; width: 46px; height: 46px; }
.eo-cat-pet .pet { width: 100%; height: 100%; }
[data-theme="playful-blocks"] .kpi { border-top: 0; border-radius: 22px; }
[data-theme="playful-blocks"] .kpis .kpi:nth-child(1) { background: #FFE1E1; }
[data-theme="playful-blocks"] .kpis .kpi:nth-child(2) { background: #FFF2C6; }
[data-theme="playful-blocks"] .kpis .kpi:nth-child(3) { background: #FFE5CC; }
[data-theme="playful-blocks"] .kpis .kpi:nth-child(4) { background: #DDF5E3; }
[data-theme="playful-blocks"] .kpi b { color: #14143A; }
[data-theme="playful-blocks"] .hub { grid-template-columns: 1fr; border-inline-start: 0; border-top: 6px solid var(--hc); border-radius: 26px; background: #fff; }
[data-theme="playful-blocks"] .hub img { width: 100%; height: 130px; object-position: center bottom; }
[data-theme="playful-blocks"] .hub__pet { width: 62px; height: 62px; bottom: -22px; inset-inline-start: 14px; border: 3px solid var(--hc); }
[data-theme="playful-blocks"] .hub__body { padding-top: 22px; }
[data-theme="playful-blocks"] .hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-theme="playful-blocks"] .hub__body small { display: none; }
[data-theme="playful-blocks"] .hub__body b { font-size: 18px; }
@media (min-width: 900px) { [data-theme="playful-blocks"] .hubs { grid-template-columns: repeat(4, 1fr); } [data-theme="playful-blocks"] .hub__body small { display: block; } }
[data-theme="playful-blocks"] .mascot { background: #fff; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
[data-theme="playful-blocks"] .section__head h2::after { background: linear-gradient(90deg, #1E3FCC, #1E9B3A, #E8B23A, #8B1426); width: 54px; }
[data-theme="playful-blocks"] .eo-hero { border-radius: 30px; }

/* רשימת מוצרים: שורה אחת קצרה לכל מוצר */
.psearch { width: 100%; min-height: 46px; margin-bottom: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; }
.prows { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.prow { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; border-top: 1px solid var(--line); border-inline-start: 4px solid var(--lc); font-size: 15px; color: var(--text); }
.prow:first-child { border-top: 0; }
.prow[hidden] { display: none; }
.prow__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.prow__img { flex: none; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.prow__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.prow__sku { flex: none; font-size: 13px; color: var(--muted); direction: ltr; }
.prow__price { flex: none; min-width: 58px; text-align: left; font-weight: 800; direction: ltr; }

/* רשימת משימות: שורה אחת, עיגול לסימון */
.trows { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.trow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-top: 1px solid var(--line); border-inline-start: 4px solid var(--sc); }
.trow:first-child { border-top: 0; }
.trow[hidden] { display: none; }
.trow__check { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--c); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.trow__check svg { width: 18px; height: 18px; }
.trow--done .trow__check { background: var(--c-green); border-color: var(--c-green); }
.trow__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 600; color: var(--text); }
.trow--done .trow__title { text-decoration: line-through; opacity: .55; }
.trow__st { flex: none; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--c) 22%, transparent); }
.trow__due { flex: none; font-size: 13px; color: var(--muted); }
.trow__due--late { color: var(--c-red); font-weight: 800; }
.trow__who { flex: none; min-height: 32px; padding: 0 12px; border-radius: 99px; border: 0; font: inherit; font-size: 13px; font-weight: 800; background: var(--accent); color: #fff; cursor: pointer; }
.trow__who--none { background: transparent; color: var(--accent); border: 1.5px dashed var(--accent); }
.who-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-top: 1px solid var(--line); }
.who-menu b { font-size: 14px; margin-inline-end: 4px; }
.who-menu button { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--accent); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.who-menu button.on { background: var(--accent); color: #fff; }
.who-menu .who-menu__none { border-style: dashed; color: var(--muted); }

/* חיפוש חכם */
.ssearch { display: flex; gap: 8px; margin: 4px 0 14px; }
.ssearch input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.ssearch--home { margin-top: 14px; }
.ai-ask-btn { display: flex; align-items: center; gap: 10px; margin-top: 16px; width: 100%; justify-content: center; }
.ai-ask-btn .pet { width: 36px; height: 36px; }

/* העוזר של Claude */
.ai-fab { position: fixed; z-index: 40; bottom: calc(96px + env(safe-area-inset-bottom)); inset-inline-start: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; min-height: 46px; border-radius: 99px; border: 2px solid #E8B23A; background: #0E2A8A; color: #fff; font: inherit; font-weight: 800; font-size: 14px; box-shadow: 0 8px 20px rgb(14 42 138 / .35); cursor: pointer; }
.ai-fab .pet { width: 36px; height: 36px; background: #fff; border-radius: 50%; }
.ai { position: fixed; inset: 0; z-index: 200; background: rgb(10 12 30 / .45); display: flex; align-items: flex-end; justify-content: center; }
.ai[hidden] { display: none; }
.ai__card { width: min(560px, 100%); height: min(86vh, 760px); display: flex; flex-direction: column; background: var(--bg, #fff); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgb(0 0 0 / .3); overflow: hidden; }
.ai__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0E2A8A; color: #fff; }
.ai__head b { display: block; font-size: 17px; } .ai__head small { opacity: .8; }
.ai__pet { width: 44px; height: 44px; background: #fff; border-radius: 50%; flex: none; }
.ai__x { margin-inline-start: auto; color: #fff !important; background: rgb(255 255 255 / .18) !important; font-size: 20px; }
.ai__msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai__m { max-width: 88%; padding: 10px 14px; border-radius: 18px; line-height: 1.55; font-size: 15px; }
.ai__m--user { align-self: flex-start; background: #0E2A8A; color: #fff; border-bottom-right-radius: 6px; }
.ai__m--assistant { align-self: flex-end; background: var(--surface); color: var(--text); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.ai__m a { color: #1E3FCC; text-decoration: underline; word-break: break-all; }
.ai__src { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ai__hello p { line-height: 1.6; margin-bottom: 10px; }
.ai__sugg { display: grid; gap: 8px; }
.ai__sugg button { text-align: right; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed #1E3FCC; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.ai__opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 14px 0; font-size: 14px; }
.ai__opts select { min-height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; max-width: 100%; }
.ai__form { display: flex; gap: 8px; padding: 10px 14px 14px; }
.ai__form textarea { flex: 1; min-width: 0; resize: none; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.ai__typing span { display: inline-block; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: ai-dot 1s infinite; }
.ai__typing span:nth-child(2) { animation-delay: .2s; } .ai__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
body.ai-open { overflow: hidden; }
@media (min-width: 900px) { .ai { align-items: center; } .ai__card { border-radius: 26px; } }

/* הצעות מוצרים */
.prop { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-bottom: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); border-inline-start: 5px solid var(--lc); }
.prop__img { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--line); display: grid; place-items: center; }
.prop__img--none .pet { width: 52px; height: 52px; }
.prop__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.prop__main b { font-size: 16px; color: var(--text); }
.prop__main small { color: var(--muted); font-size: 13px; }
.prop__main p { font-size: 14px; line-height: 1.5; }
.prop__made { font-size: 14px; font-weight: 700; color: var(--c-green); }
.prop__act { flex: none; display: grid; gap: 6px; }
.prop__act .btn { min-height: 44px; }
.prop__st { flex: none; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--line); }

/* כרטיסי התחומים: איור שמתאים לכיתוב, במקום תמונת הדוכן */
.hub__pic--art { display: grid; place-items: center; min-height: 120px; background: color-mix(in srgb, var(--hc) 18%, #fff); }
.hub__art { width: 96px; height: 96px; display: block; transition: transform .2s; }
.hub:hover .hub__art, .hub:active .hub__art { transform: scale(1.08) rotate(-3deg); }
[data-theme="playful-blocks"] .hub__pic--art { height: 130px; }

/* בלי כפתור העוזר במסך הכניסה */
body:has(.login) .ai-fab { display: none; }

/* פעולות שהעוזר מציע */
.ai-acts { display: grid; gap: 8px; margin-top: 10px; }
.ai-act { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #1E3FCC 8%, var(--bg, #fff)); border: 1.5px solid #1E3FCC; display: grid; gap: 4px; }
.ai-act b { font-size: 15px; color: #1E3FCC; }
.ai-act p { font-size: 15px; }
.ai-act small { color: var(--muted); font-size: 13px; }
.ai-act__btns { display: flex; gap: 8px; margin-top: 4px; }
.ai-act--done { border-color: var(--c-green); background: color-mix(in srgb, var(--c-green) 10%, var(--bg, #fff)); }
.ai-act--no { opacity: .55; border-style: dashed; }
.ai-act--busy { opacity: .7; }
.ai-act__ok { color: var(--c-green); font-weight: 800; }
.ai-act__err { color: var(--c-red); font-weight: 700; }
.ai-act__all { justify-self: start; }

/* מי לוקח מה: כרטיס לכל שותף */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 18px; text-decoration: none; color: inherit;
  background: color-mix(in srgb, var(--pc) 10%, var(--bg, #fff)); border: 2px solid var(--pc); transition: transform .15s; }
.person:active { transform: scale(.97); }
.person__av { width: 46px; height: 46px; border-radius: 50%; background: var(--pc); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 900; }
.person b { font-size: 17px; color: var(--pc); }
.person small { font-size: 13px; color: var(--muted); text-align: center; }
.people__free { display: block; margin-top: 10px; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed var(--accent); color: var(--accent); font-weight: 700; text-decoration: none; text-align: center; }
.person-head { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 8px 0 4px; border-radius: 20px; background: color-mix(in srgb, var(--pc) 12%, var(--bg, #fff)); border: 2px solid var(--pc); }
.person-head .person__av { width: 58px; height: 58px; font-size: 28px; }
.person-head b { display: block; font-size: 19px; color: var(--pc); }
.person-head small { color: var(--muted); font-size: 14px; }
.plist { display: grid; gap: 8px; }
.pitem { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card, #fff); border: 1px solid var(--line, #e5e5e5); text-decoration: none; color: inherit; }
.pitem small { color: var(--muted); }
.pdone summary { cursor: pointer; font-weight: 800; padding: 8px 0; color: var(--muted); }

/* שורה קבועה: רשימת המוצרים בשלב היבוא */
.trow--fixed { text-decoration: none; color: inherit; border: 2px solid var(--c-green); background: color-mix(in srgb, var(--c-green) 9%, var(--bg, #fff)); margin-bottom: 8px; }
.trow__check--on { background: var(--c-green) !important; border-color: var(--c-green) !important; display: grid; place-items: center; pointer-events: none; }
.trow--fixed .trow__title { font-weight: 800; }
.trow__new, .prow__tag { flex: none; padding: 2px 10px; border-radius: 99px; background: #FF2E88; color: #fff; font-size: 12px; font-weight: 900; }
.prow__tag { margin-inline-end: 6px; padding: 1px 8px; }
.prow--new { background: color-mix(in srgb, #FF2E88 10%, var(--bg, #fff)); border-color: #FF2E88 !important; box-shadow: 0 0 0 1.5px #FF2E88 inset; }
.trow--fixed .trow__title { white-space: normal; overflow: visible; }

/* בכרטיס מוצר: להכניס להזמנה */
.p2o { display: grid; gap: 10px; }
.p2o label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.p2o select, .p2o input { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line, #ddd); font: inherit; background: var(--bg, #fff); }

.trow--orders { border-color: #1E3FCC; background: color-mix(in srgb, #1E3FCC 8%, var(--bg, #fff)); }
.trow--orders .trow__check--on { background: #1E3FCC !important; border-color: #1E3FCC !important; }

/* רשימת הזמנות רכש */
.olist { display: grid; gap: 12px; margin-top: 12px; }
.ocard { display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--card, #fff); border: 1.5px solid var(--line, #e5e5e5); border-inline-start: 6px solid var(--c); text-decoration: none; color: inherit; }
.ocard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ocard__top b { font-size: 17px; }
.ocard__st { flex: none; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.ocard small { color: var(--muted); }
.ocard__items { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.ocard__items li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--line, #eee); }
.ocard__items li:last-child { border-bottom: 0; }
.ocard__items em { font-style: normal; font-weight: 800; color: var(--muted); flex: none; }
.xl-more { margin-top: 10px; flex-wrap: wrap; }
/* בחירה של כמה מוצרים */
.mbox { margin-top: 12px; }
.mbox__list { display: grid; gap: 4px; max-height: 420px; overflow: auto; margin: 8px 0; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line, #eee); border-inline-start: 4px solid var(--lc); cursor: pointer; }
.mrow[hidden] { display: none; }
.mrow input[type=checkbox] { width: 22px; height: 22px; flex: none; }
.mrow span { flex: 1; font-size: 14px; }
.mrow small { color: var(--muted); }
.mrow .xl-in { width: 90px; flex: none; }
/* ייבוא הזמנה */
.oimp { margin-top: 12px; display: grid; gap: 10px; }
.oimp__pick { justify-self: start; cursor: pointer; }
.oimp__busy { font-weight: 800; color: #1E3FCC; }
.oimp__err { font-weight: 700; color: var(--c-red); }
.oimp__lbl { display: grid; gap: 4px; font-weight: 700; }
.oimp__in, .oimp__sel { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line, #ddd); font: inherit; background: var(--bg, #fff); max-width: 260px; }
.oimp__new td { background: color-mix(in srgb, #FF2E88 8%, transparent); }
.prow__qty { flex: none; font-size: 12px; font-weight: 800; color: #1E3FCC; background: color-mix(in srgb, #1E3FCC 10%, transparent); padding: 2px 8px; border-radius: 99px; }
.pqty-total { margin: 4px 0 8px; }

/* הוספת מוצר להזמנה: חיפוש תוך כדי הקלדה + כמות */
.pick { margin: 4px 0 14px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.pick__lbl { display: block; font-weight: 700; margin-bottom: 8px; }
.pick__row { display: flex; gap: 8px; flex-wrap: wrap; }
.pick__box { position: relative; flex: 1 1 220px; min-width: 0; }
.pick__box input, .pick__qty { width: 100%; min-height: 48px; padding: 8px 14px; border: 1.5px solid rgb(127 127 127 / .35); border-radius: 14px; background: var(--surface); color: inherit; font: inherit; }
.pick__box input:focus, .pick__qty:focus { outline: none; border-color: var(--accent); }
.pick__box input.pick__chosen { border-color: var(--c-green); font-weight: 700; }
.pick__qty { flex: 0 0 130px; width: 130px; text-align: center; }
.pick__list { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 30; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line, #ddd); box-shadow: 0 12px 30px rgb(0 0 0 / .16); }
.pick__list[hidden] { display: none; }
.pick__it { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 9px 12px; border: 0; border-inline-start: 4px solid var(--lc); border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.pick__it:hover, .pick__it.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pick__it small { color: var(--muted); font-size: 12px; }
.pick__more { margin: 6px 10px; font-size: 13px; color: var(--muted); }
.xl th small { font-weight: 400; opacity: .7; }
@media (max-width: 520px) { .pick__qty { flex: 1 1 auto; width: auto; } .pick__row .btn { flex: 1 1 auto; } }

/* אולמות לפי ערים: שורה אחת לכל עיר, ובתוך עיר שורה לכל אולם */
.crows { border-radius: var(--radius-lg, 22px); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.crow, .hrow { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.crows > :first-child { border-top: 0; }
.crow:hover, .hrow:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.crow__name { font-size: 18px; flex: none; }
.crow__dots { display: flex; gap: 8px; flex: 1; min-width: 0; overflow: hidden; }
.crow__dots > span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.crow__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.crow__n { color: var(--muted); font-size: 14px; white-space: nowrap; }
.crow--ok { border-inline-start: 4px solid var(--c-green); }
.crow__go { color: var(--muted); font-size: 22px; line-height: 1; }
.hrow { border-inline-start: 4px solid var(--c); }
.hrow b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow__st { flex: none; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--c) 20%, transparent); }
@media (max-width: 520px) { .crow__n { font-size: 13px; } .crow__dots { gap: 6px; } }

/* ביטול משימה */
.trow__x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; opacity: .55; }
.trow__x:hover { opacity: 1; background: color-mix(in srgb, var(--c-red) 14%, transparent); color: var(--c-red); }
.trow--off .trow__title { text-decoration: line-through; color: var(--muted); }
.trow__back { flex: none; min-height: 32px; padding: 4px 12px; border: 1.5px solid var(--accent); border-radius: 99px; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tcancel { color: var(--c-red); }
