/* מנוע המערכות של קלוד לעצלנים: רכיבים מובייל פירסט + חמש ערכות נושא (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); }

/* הפונטים של אביב: FB יוסף באו לטקסט וכותרות, SKF קפוצ'ינו לכותרות כתב היד */
@font-face { font-family: 'FbYosefBau'; src: url('fonts/FbYosefBau-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'FbYosefBau'; src: url('fonts/FbYosefBau-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'FbYosefBau'; src: url('fonts/FbYosefBau-Bold.otf') format('opentype'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'SKFCappuccino'; src: url('fonts/SKFCappuccino-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }

/* צבעי סטטוס */
: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: var(--font-body, '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; } }

/* ================= מחברת מתכונים (recipe-notebook) =================
   נייר חם, מסגרת מקווקוות, סרט צבעוני לכל מתכון, וצ'קליסט בירוק מרווה. נלמד מכרטיסי המתכונים של אביב. */
[data-theme="recipe-notebook"] {
  --bg: #F6F2EA;
  --bg-fx: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .27  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --surface: #FFFDF8;
  --surface-2: #EDE4D3;
  --text: #3B2F2A;
  --muted: #7A6C62;
  --line: #E0D4C0;
  --accent: #A9C8B3;
  --on-accent: #1F3A2A;
  --hero: #EDE4D3;
  --on-hero: #3B2F2A;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 0 rgb(90 65 40 / .05), 0 8px 18px rgb(120 90 60 / .08);
  --nav-bg: #FFFDF8;
  --nav-text: #9A8B7E;
  --nav-active: #2F5A3E;
  --nav-active-bg: #DCEADF;
  --head-weight: 700;
  --num-weight: 700;
  --tile-1: #EDE4D3; --tile-2: #DCEADF; --tile-3: #F6DCD3; --tile-4: #DDEBF3;
  --sage: #8FB59B; --sage-soft: #DCEADF; --sage-ink: #4A7557;
  --hand: 'SKFCappuccino', 'Gveret Levin', cursive;
  --font-head: 'FbYosefBau', 'Heebo', system-ui, sans-serif;
  --font-body: 'FbYosefBau', 'Heebo', system-ui, sans-serif;
  --ribbon: #D2AFA3; --on-ribbon: #3E2A25;
}
[data-theme="recipe-notebook"] .kpi:nth-child(2) { background: var(--tile-2); }
[data-theme="recipe-notebook"] .kpi:nth-child(3) { background: var(--tile-3); }
[data-theme="recipe-notebook"] .nav a.on { padding-inline: 14px; }
[data-theme="recipe-notebook"] .nav { border-top: 2px dashed #CDBDA6; }
[data-theme="recipe-notebook"] .greet h1, [data-theme="recipe-notebook"] .section__head h2 { font-family: var(--hand); font-weight: 400; }
[data-theme="recipe-notebook"] .greet h1 { font-size: 44px; }
[data-theme="recipe-notebook"] .section__head h2 { font-size: 34px; }
[data-theme="recipe-notebook"] .item { border-style: dashed; border-width: 1.5px; border-color: #CDBDA6; }

/* ---- מסך מתכון ---- */
.rcp { margin-top: 6px; }
.rcp__frame { position: relative; padding: 26px 14px 24px; border: 2.5px dashed #4A3B35; border-radius: 38px; }
.ribbon { position: relative; display: grid; place-items: center; width: fit-content; min-width: 190px; max-width: 100%; min-height: 50px; margin: 0 auto 16px; color: var(--on-ribbon);
  background: #4A3B35; clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 50%, 100% 100%, 0 100%, 15px 50%); }
.ribbon::before { content: ""; position: absolute; inset: 2.5px; background: var(--ribbon); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); }
.ribbon h2 { position: relative; padding: 2px 30px 4px; font-size: 34px; line-height: 1.15; font-weight: 800; text-align: center; }
.rcp__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 6px; }
.rcp__meta .tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--surface-2); font-size: 16px; font-weight: 700; }
.rcp__meta .tag .i { width: 17px; height: 17px; }
.hand { margin: 22px 6px 8px; font-family: var(--hand); font-weight: 400; font-size: 48px; line-height: 1.1; }
.panel { padding: 8px 10px; border-radius: 28px; background: var(--surface-2); }
.panel--ing { padding-top: 10px; }
.sub-head { margin: 10px 8px 2px; font-size: 17px; font-weight: 800; color: var(--muted); }

/* התקדמות */
.progress { display: grid; gap: 7px; margin: 0 6px 10px; }
.progress__txt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 17px; font-weight: 700; }
.progress__txt b { font-family: var(--font-head); font-size: 17px; }
.progress__bar { height: 10px; border-radius: 999px; background: rgb(74 59 53 / .12); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sage); transition: width .35s ease; }
.progress.full .progress__txt { color: var(--sage-ink); }

/* שורת סימון: כל השורה לחיצה, ריבוע גדול ונוח לאגודל */
.checks { list-style: none; margin: 0; padding: 0; display: grid; }
.chk { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 6px; border: 0; background: none; text-align: right; cursor: pointer; border-radius: 16px; }
.chk + .chk, .checks li + li .chk { border-top: 1px dotted #CDBDA6; border-radius: 0; }
.checks li:first-child .chk { border-top: 0; }
.chk .box { position: relative; flex: none; display: grid; place-items: center; width: 25px; height: 25px; border: 2.2px solid #5C4C44; background: #FFFDF8;
  border-radius: 6px 8px 6px 8px / 8px 6px 8px 6px; transition: background .2s, border-color .2s; }
.chk .box svg { width: 21px; height: 19px; overflow: visible; }
.chk .box path { fill: none; stroke: var(--sage-ink); stroke-width: 3.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.chk .txt { flex: 1; min-width: 0; font-size: 20.5px; line-height: 1.4; transition: opacity .25s, color .25s; }
.chk.on .box { background: var(--sage-soft); border-color: var(--sage); }
.chk.on .box path { stroke-dashoffset: 0; opacity: 1; }
.chk.just .box path { animation: draw .38s cubic-bezier(.4, .1, .3, 1) both; }
.chk.just .box { animation: wob .3s ease; }
.chk.on .txt { opacity: .5; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgb(74 59 53 / .55); }
.chk:focus-visible .box { outline: 3px solid color-mix(in srgb, var(--sage) 60%, transparent); outline-offset: 2px; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wob { 0% { transform: scale(1); } 45% { transform: scale(1.12) rotate(-3deg); } 100% { transform: scale(1); } }

/* שלבי הכנה: מספר ואז ריבוע */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps .chk { align-items: flex-start; padding-block: 12px; }
.steps .chk .num { flex: none; width: 24px; padding-top: 3px; font-family: var(--hand); font-size: 30px; color: var(--muted); text-align: center; }
.steps .chk .box { margin-top: 5px; }
.steps .chk .txt { padding-top: 1px; }
.steps-hint { margin: 2px 8px 6px; font-size: 15px; color: var(--muted); }

.rcp__reset { display: flex; justify-content: center; margin-top: 22px; }
.rcp__reset .btn { min-height: 52px; border-style: dashed; }
.rcp__notes { margin: 18px 8px 0; font-size: 17px; color: var(--muted); white-space: pre-line; }
.rcp__photo { display: block; width: 100%; max-height: 240px; margin: 0 0 8px; object-fit: cover; border-radius: 24px; }
.rcp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rcp-actions .btn { min-height: 56px; font-size: 17px; padding: 0 12px; white-space: normal; text-align: center; line-height: 1.2; }
.rcp-actions .btn--wide { grid-column: 1 / -1; }

/* ---- רשימת קניות ---- */
.shop-add { display: flex; gap: 8px; margin-top: 6px; }
.shop-add input { flex: 1; min-width: 0; height: 54px; padding: 0 18px; border: 1.5px dashed #BBAA94; border-radius: 999px; background: var(--surface); font-size: 17px; outline: none; }
.shop-add input:focus { border-color: var(--sage); }
.shop-add button { flex: none; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.shop-group { margin-top: 20px; }
.shop-group h2 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 6px 8px; font-family: var(--hand); font-weight: 400; font-size: 36px; }
.shop-group h2 small { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); }
.shop-row { display: flex; align-items: center; gap: 4px; }
.shop-row .chk { flex: 1; min-width: 0; }
.shop-row .txt small { display: block; font-size: 15px; color: var(--muted); }
.shop-del { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.shop-del .i { width: 20px; height: 20px; }
[data-theme="recipe-notebook"] .section__head a { color: var(--sage-ink); }


/* ================= גרסה 2: טקסט גדול יותר, סירים, מדבקות, הגדרות ================= */
[data-theme="recipe-notebook"] body { font-size: 18px; }
[data-theme="recipe-notebook"] .top__title h1 { font-size: 27px; }
[data-theme="recipe-notebook"] .top__title small { font-size: 15px; }
[data-theme="recipe-notebook"] .item__main b { font-size: 19px; }
[data-theme="recipe-notebook"] .item__main small { font-size: 15.5px; }
[data-theme="recipe-notebook"] .chip-btn { height: 42px; font-size: 16px; }
[data-theme="recipe-notebook"] .btn { font-size: 17px; }
[data-theme="recipe-notebook"] .btn--sm { font-size: 16px; min-height: 44px; }
[data-theme="recipe-notebook"] .f > label, [data-theme="recipe-notebook"] .f > span { font-size: 16px; }
[data-theme="recipe-notebook"] .f input, [data-theme="recipe-notebook"] .f textarea { font-size: 19px; }
[data-theme="recipe-notebook"] .set h3 { font-size: 24px; font-family: var(--hand); font-weight: 400; }
[data-theme="recipe-notebook"] .muted, [data-theme="recipe-notebook"] .demo-note { font-size: 16px; }
[data-theme="recipe-notebook"] .empty b { font-size: 21px; }
[data-theme="recipe-notebook"] .empty { font-size: 17px; }
[data-theme="recipe-notebook"] .nav a { font-size: 13px; }
[data-theme="recipe-notebook"] .avatar { background: #F7D9D2; border: 2px solid #4A3B35; overflow: hidden; }
[data-theme="recipe-notebook"] .avatar__img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.hint { display: block; font-size: 15px; color: var(--muted); }
.dood { display: block; height: auto; user-select: none; -webkit-user-drag: none; }

/* בית */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 2px 14px; }
.hero__hello { margin: 0; font-size: 18px; color: var(--muted); font-weight: 700; }
.hero__h { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 50px; line-height: 1.05; }
.hero__sub { margin: 4px 0 0; font-size: 16px; color: var(--muted); }
.hero__img { flex: none; width: 92px; transform: rotate(8deg); }
.search--home { display: block; }
.search__fake { display: flex; align-items: center; height: 54px; padding: 0 48px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 18px; }
.search--home .i { top: 16px; }
.sec { margin: 26px 4px 10px; font-family: var(--hand); font-weight: 400; font-size: 38px; line-height: 1.1; }
.pots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.potcard { display: grid; justify-items: center; gap: 2px; padding: 10px 8px 14px; border-radius: 30px; text-align: center;
  background: color-mix(in srgb, var(--c) 14%, #FFFDF8); border: 2.5px dashed color-mix(in srgb, var(--c) 70%, #4A3B35); transition: transform .15s; }
.potcard:active { transform: scale(.97); }
.potcard .pot { width: 118px; }
.potcard b { font-size: 22px; line-height: 1.2; }
.potcard small { font-size: 15.5px; color: var(--muted); }
.potcard--new { align-content: center; background: transparent; border-color: #BBAA94; min-height: 180px; }
.potcard__plus { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; background: var(--surface-2); }
.potcard__plus .i { width: 26px; height: 26px; }

/* הסיר: המכסה עולה ויורד, ויוצאים אדים */
.pot { display: block; height: auto; overflow: visible; }
.pot__lid { transform-box: fill-box; transform-origin: 50% 100%; animation: potlid 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pot__steam path { transform-box: fill-box; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: potsteam 2.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pot__steam path:nth-child(2) { animation-delay: calc(var(--d, 0s) + .45s); }
.pot__steam path:nth-child(3) { animation-delay: calc(var(--d, 0s) + .9s); }
@keyframes potlid { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-7px) rotate(-2.5deg); } 55% { transform: translateY(-2px) rotate(1.5deg); } 75% { transform: translateY(-5px) rotate(-1deg); } }
@keyframes potsteam { 0% { stroke-dashoffset: 1; opacity: 0; transform: translateY(8px); } 25% { opacity: .8; } 65% { stroke-dashoffset: 0; opacity: .55; transform: translateY(-1px); } 100% { stroke-dashoffset: -1; opacity: 0; transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .pot__lid, .pot__steam path { animation: none; } .pot__steam path { opacity: .5; stroke-dashoffset: 0; } }

/* רשימת מתכונים */
.catbanner { display: flex; align-items: center; gap: 14px; margin: 2px 0 6px; padding: 6px 16px 6px 10px; border-radius: 30px; background: color-mix(in srgb, var(--c) 14%, #FFFDF8); border: 2.5px dashed color-mix(in srgb, var(--c) 70%, #4A3B35); }
.catbanner__pot { flex: none; width: 96px; }
.catbanner h1 { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 46px; line-height: 1; }
.catbanner p { margin: 2px 0 0; font-size: 16px; color: var(--muted); }
.chip-btn .dot { width: 11px; height: 11px; border-radius: 50%; }
.rlist { display: grid; gap: 10px; margin-top: 14px; }
.rrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border-radius: 26px; background: var(--surface); border: 1.5px dashed #CDBDA6; border-inline-start: 7px solid var(--c); }
.rrow__ic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: color-mix(in srgb, var(--c) 18%, #fff); }
.rrow__ic img { width: 48px; height: 48px; object-fit: contain; }
.rrow__ph { flex: none; width: 64px; height: 64px; border-radius: 20px; object-fit: cover; }
.rrow__main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rrow__main b { font-size: 21px; line-height: 1.25; }
.rrow__main small { font-size: 16px; color: var(--muted); }
.rrow__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rrow__tags i { font-style: normal; padding: 2px 10px; border-radius: 999px; background: var(--c); color: var(--on); font-size: 14px; font-weight: 700; }
.rrow__fav { color: #E0A526; display: grid; }
.rrow__fav .i { width: 24px; height: 24px; fill: currentColor; }
.empty__img { width: 96px; margin: 0 auto 10px; }

/* מסך מתכון */
.tag--cat { background: var(--c) !important; color: var(--on) !important; }
.rcp__frame { overflow: visible; }
.stk-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.stk { position: absolute; display: block; height: auto; max-width: none; filter: drop-shadow(0 2px 2px rgb(60 40 30 / .18)); user-select: none; -webkit-user-drag: none; }
.stk.is-edit { pointer-events: auto; touch-action: none; cursor: grab; }
.stk.sel { outline: 2.5px dashed var(--sage-ink); outline-offset: 3px; border-radius: 8px; }
.btn__dood { width: 26px; }
.rcp-actions .btn--danger { grid-column: auto; }
.is-stk .rcp__reset { opacity: .4; }
.tray { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #FFFDF8; border-top: 2.5px dashed #4A3B35; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 30px rgb(80 55 35 / .18); display: grid; gap: 8px; max-width: 640px; margin: 0 auto; }
.tray__head { display: flex; align-items: center; gap: 10px; }
.tray__head b { font-family: var(--hand); font-weight: 400; font-size: 30px; line-height: 1; }
.tray__head span { flex: 1; font-size: 15px; color: var(--muted); }
.tray__tools { display: flex; gap: 8px; }
.tray__tools.off { opacity: .4; pointer-events: none; }
.tray__tools button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; border: 1.5px dashed #BBAA94; border-radius: 999px; background: var(--surface); font-size: 16px; font-weight: 700; cursor: pointer; }
.tray__tools .danger { color: var(--c-red); }
.tray__tools .i { width: 18px; height: 18px; }
.tray__grid { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tray__grid::-webkit-scrollbar { display: none; }
.tray__grid button { flex: none; width: 66px; height: 66px; padding: 6px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface-2); cursor: pointer; }
.tray__grid img { width: 100%; height: 100%; object-fit: contain; }

/* טופס */
.rform .cchips { display: flex; flex-wrap: wrap; gap: 8px; }
.cchip { position: relative; cursor: pointer; }
.cchip input { position: absolute; opacity: 0; inset: 0; width: 100% !important; min-height: 0 !important; cursor: pointer; }
.cchip span { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 16px 0 14px; border-radius: 999px; border: 2px solid var(--c); background: #FFFDF8; font-size: 18px; font-weight: 700; color: var(--text); }
.cchip span img { width: 26px; height: 26px; object-fit: contain; }
.cchip input:checked + span { background: var(--c); color: var(--on); }
.cchip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--c) 45%, transparent); outline-offset: 2px; }
.photo-in { flex-wrap: wrap; }
.photo-in__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-in img { width: 88px; height: 88px; }
.imp { padding: 16px; display: grid; gap: 12px; border-style: dashed; border-width: 2px; border-color: #4A3B35; background: #FFF6EC; }
.imp h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--hand); font-weight: 400; font-size: 30px; }
.imp__img { width: 44px; }
.imp p { margin: 0; }
.imp__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.imp__btns .btn { flex: 1; }
.imp__url { display: flex; gap: 8px; }
.imp__url input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 17px; outline: none; }
.imp__paste summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 6px 0; }
.imp__paste textarea { width: 100%; min-height: 110px; margin: 8px 0; padding: 12px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; font-size: 17px; }
.imp__status { padding: 10px 14px; border-radius: 16px; background: var(--surface-2); font-size: 16px; font-weight: 700; }
.imp__status.ok { background: var(--sage-soft); color: var(--sage-ink); }
.imp__status.bad { background: #F8DDD6; color: #8A2E1C; }

/* הגדרות */
.dgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.set > *, .catset > * { min-width: 0; }
.dgrid button { min-width: 0; overflow: hidden; }
.dgrid img { display: block; }
.pots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dgrid button { aspect-ratio: 1; padding: 6px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface-2); cursor: pointer; }
.dgrid button.on { border-color: var(--sage-ink); background: var(--sage-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 35%, transparent); }
.dgrid img { width: 100%; height: 100%; object-fit: contain; }
.catset { display: grid; gap: 12px; padding: 14px; border-radius: 26px; border: 2px dashed color-mix(in srgb, var(--c) 70%, #4A3B35); background: color-mix(in srgb, var(--c) 8%, #FFFDF8); }
.catset__top { display: flex; align-items: center; gap: 12px; }
.catset__pot { flex: none; width: 70px; }
.catset__name { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; font-size: 21px; font-weight: 700; outline: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px #3B2F2A; }
.catset__del { justify-self: start; color: var(--c-red); }

/* כניסה ראשונה: שאלת שם */
.welcome { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgb(59 47 42 / .55); }
.welcome__card { display: grid; gap: 12px; width: min(100%, 380px); padding: 22px 20px 16px; border-radius: 34px; background: #FFFDF8; border: 3px dashed #4A3B35; text-align: center; }
.welcome__img { width: 110px; margin: -50px auto -2px; transform: rotate(-6deg); }
.welcome__card h2 { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 42px; line-height: 1.05; }
.welcome__card p { margin: 0; font-size: 18px; color: var(--muted); }
.welcome__card input { min-height: 56px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-size: 20px; text-align: center; outline: none; }
.welcome__card input:focus { border-color: var(--sage); }
.welcome__skip { min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 16px; text-decoration: underline; cursor: pointer; }

/* תחתית עם הלוגו */
.site-foot { margin-top: 34px; padding: 22px 0 6px; border-top: 2px dashed #CDBDA6; display: grid; justify-items: center; gap: 10px; text-align: center; }
.site-foot__logo img { height: 34px; width: auto; display: block; mix-blend-mode: multiply; }
.site-foot p { margin: 0; font-size: 15px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.site-foot nav a { font-weight: 700; font-size: 16px; text-decoration: underline; text-decoration-color: var(--sage); text-decoration-thickness: 2px; text-underline-offset: 4px; }
