/* מנוע המערכות של קלוד לעצלנים: רכיבים מובייל פירסט + חמש ערכות נושא (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); }

/* פרי חדש: הסגנון הרך בגווני אפרסק וחמים */
[data-theme="school-soft"] {
  --bg: #FFF7F0;
  --bg-fx: linear-gradient(170deg, #FFF1E6 0%, #FFFAF5 50%, #FCEFE4 100%);
  --surface-2: #FBEDE2;
  --text: #3A2620;
  --muted: #8A7068;
  --line: #F2E2D6;
  --hero: linear-gradient(140deg, #8A4A3A, #A85F48);
  --shadow: 0 2px 4px rgb(138 74 58 / .05), 0 14px 30px rgb(138 74 58 / .10);
  --nav-text: #B39A8F;
  --nav-active-bg: #8A4A3A;
  --tile-1: #FADBD2; --tile-2: #DCEBF5; --tile-3: #E3EED6; --tile-4: #ECE3F5;
}
/* עוד צבעים: אפרסק, תכלת, מרווה, לילך, חול ומנטה, מתחלפים בין הכרטיסים */
[data-theme="school-soft"] .kpi:nth-child(4) { background: var(--tile-4); }
[data-theme="school-soft"] .item:nth-child(6n+1) .item__av:not(:has(img)) { background: #FADBD2; color: #9A4A35; }
[data-theme="school-soft"] .item:nth-child(6n+2) .item__av:not(:has(img)) { background: #DCEBF5; color: #2F5D7C; }
[data-theme="school-soft"] .item:nth-child(6n+3) .item__av:not(:has(img)) { background: #E3EED6; color: #4C6B3C; }
[data-theme="school-soft"] .item:nth-child(6n+4) .item__av:not(:has(img)) { background: #ECE3F5; color: #5E4A86; }
[data-theme="school-soft"] .item:nth-child(6n+5) .item__av:not(:has(img)) { background: #F4E5CC; color: #7A5A2A; }
[data-theme="school-soft"] .item:nth-child(6n+6) .item__av:not(:has(img)) { background: #D3EEE8; color: #2F6E62; }
[data-theme="school-soft"] .quick .chip-btn:nth-child(4n+1) { background: #FADBD2; border-color: transparent; color: #7E3B2A; }
[data-theme="school-soft"] .quick .chip-btn:nth-child(4n+2) { background: #DCEBF5; border-color: transparent; color: #2A516D; }
[data-theme="school-soft"] .quick .chip-btn:nth-child(4n+3) { background: #E3EED6; border-color: transparent; color: #435E35; }
[data-theme="school-soft"] .quick .chip-btn:nth-child(4n+4) { background: #ECE3F5; border-color: transparent; color: #54427A; }

/* צבעי סטטוס */
: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; } }

/* ===== פרי חדש: רכיבים של שלב 1 ===== */
a.kpi { display: block; color: inherit; text-decoration: none; }
.acting { display: flex; align-items: center; gap: 8px; margin: 0 -16px 8px; padding: 10px 16px; font-size: 14px; font-weight: 700; color: #5E4A86; background: #ECE3F5; text-decoration: none; }
.acting .i { width: 18px; height: 18px; flex: none; }
.hint { margin-top: 8px; color: var(--muted); font-size: 15px; }
.center { text-align: center; }
.small { font-size: 13px; margin-top: 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 18px -16px 0; padding: 4px 16px 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.tabs button.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.fields-title { margin-top: 20px; font-size: 16px; color: var(--muted); }
.form-group { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 17px; }
.form-group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.f .help { font-size: 13.5px; color: var(--muted); }
.rel-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.file-chip .i { width: 18px; height: 18px; flex: none; color: var(--accent); }
.file-chip em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; }
.file-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.file-in .file-name { flex: 1 1 100%; }
.tag { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; vertical-align: middle; }
.tag--soft { background: #DCEBF5; color: #2A516D; }
.tag--orange { background: color-mix(in srgb, var(--c-orange) 18%, transparent); color: #9A3E0A; }
.tag--red { background: color-mix(in srgb, var(--c-red) 16%, transparent); color: #A3262A; }
.lock-tag { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lock-tag .i { width: 14px; height: 14px; }
.section__head h2 .i { width: 20px; height: 20px; vertical-align: -3px; color: var(--accent); }
.alerts { display: grid; gap: 8px; }
.alert { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; }
.alert .i { flex: none; width: 20px; height: 20px; color: var(--c); }
.parent { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.parent:last-of-type { border-bottom: 0; }
.parent b { display: block; }
.parent small { color: var(--muted); }
.parent__btns { display: flex; gap: 8px; }
.icon-btn--wa .i { color: #1FA855; }
.set h3 a { color: var(--accent); text-decoration: none; }
.set p a { color: var(--accent); font-weight: 700; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.big-num { font-family: var(--font-head); font-size: 26px; }
.imp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.imp-stats div { padding: 12px 10px; border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.imp-stats b { display: block; font-family: var(--font-head); font-size: 24px; }
.imp-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }
.decisions { display: grid; gap: 8px; }
.decision { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-weight: 600; }
.decision .btn { flex: none; }
.decision a.status { text-decoration: none; }
.map { display: grid; gap: 8px; }
.map-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.map-row b { overflow-wrap: anywhere; }
.map-row select { min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.matrix-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.matrix thead th:first-child { width: 120px; }
.matrix { min-width: 470px; }
.matrix tbody th, .matrix thead th:first-child { position: sticky; right: 0; z-index: 1; background: var(--surface); }
.matrix thead th { font-size: 12.5px; white-space: nowrap; }
@media (min-width: 700px) { .matrix { font-size: 14.5px; } }
.matrix th, .matrix td { padding: 9px 3px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix tbody th { text-align: right; font-weight: 700; }
.matrix thead th { font-size: 13px; color: var(--muted); }
.matrix .yes .i { width: 20px; height: 20px; color: var(--c-green); }
.matrix .no { color: var(--line); }
.matrix small { color: var(--c-orange); font-weight: 700; }
.perm-row { cursor: default; }
.perm-row select { flex: none; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 700; }
.log-item { cursor: default; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.year-card h3 .tag { font-size: 12px; }

/* ===== פרי חדש: שלב 2, לימודים, תעודות והדפסה ===== */
@media (min-width: 960px) { .app.app--wide { max-width: none; } }
.tool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.tool-bar select, .tool-bar input { min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 16px; font-weight: 700; color: var(--text); }
.tool-bar input { flex: 1 1 200px; font-weight: 500; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.grid-wrap { margin-top: 14px; overflow-x: auto; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.grid { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.grid th, .grid td { border: 1px solid var(--line); padding: 0; text-align: center; }
.grid thead th { background: var(--surface-2); font-size: 13px; font-weight: 700; padding: 6px 4px; }
.grid__groups th { font-size: 12.5px; color: var(--muted); }
.grid th.v { height: 112px; vertical-align: bottom; }
.grid th.v span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; }
.grid .grid__name { position: sticky; right: 0; z-index: 2; background: var(--surface); text-align: right; padding: 6px 10px; white-space: nowrap; font-weight: 700; min-width: 140px; }
.grid thead .grid__name { background: var(--surface-2); }
.grid .grid__name a { color: var(--text); text-decoration: none; }
.grid td.n { color: var(--muted); font-size: 12px; padding: 0 6px; }
.grid select, .grid input { width: 100%; min-width: 50px; height: 38px; border: 0; background: transparent; font-size: 14px; font-weight: 700; text-align: center; text-align-last: center; color: var(--text); appearance: none; -webkit-appearance: none; cursor: pointer; padding: 0 2px; }
.grid input { width: 52px; font-weight: 600; }
.grid input::placeholder { color: #B7A79E; }
.grid select:focus, .grid input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.lv6 { background: #CDEBD3 !important; color: #1E5B2E !important; }
.lv5 { background: #E2F2E2 !important; color: #2E6B35 !important; }
.lv4 { background: #E3EEF4 !important; color: #2A516D !important; }
.lv3 { background: #FBF0CF !important; color: #7A5A12 !important; }
.lv2 { background: #FBE0CF !important; color: #8A3E12 !important; }
.lv1 { background: #F8D3D3 !important; color: #8E2222 !important; }
span.lv { padding: 2px 7px; border-radius: 8px; font-weight: 800; font-size: 13px; }
.legend { padding: 10px 14px; font-size: 13px; color: var(--muted); }
.legend .lv { padding: 1px 6px; border-radius: 6px; font-weight: 800; }
.print-head { display: none; }
.subj-nav { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.subj-nav::-webkit-scrollbar { display: none; }
.subj-nav .chip-btn { flex: none; }
.slist { display: grid; gap: 8px; margin-top: 12px; }
.srow { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.srow__name { display: flex; align-items: center; gap: 8px; }
.srow__name .n { color: var(--muted); font-size: 13px; min-width: 20px; }
.srow textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 16px; background: var(--surface); }
.srow--test { grid-template-columns: 1fr 90px 120px; align-items: center; }
.srow--test input, .srow--test select { min-height: 46px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 17px; font-weight: 700; text-align: center; background: var(--surface); width: 100%; }
@media (max-width: 480px) { .srow--test { grid-template-columns: 1fr 76px; } .srow--test select { grid-column: 1 / -1; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill-label { font-weight: 700; color: var(--muted); font-size: 14px; min-width: 64px; }
.gp { min-width: 54px; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface) !important; color: var(--text) !important; font-weight: 800; font-size: 15px; cursor: pointer; }
.gp.lv.on, .gp.on { border-color: transparent; box-shadow: 0 0 0 2px var(--text) inset; }
.gp.lv6.on { background: #CDEBD3 !important; } .gp.lv5.on { background: #E2F2E2 !important; } .gp.lv4.on { background: #E3EEF4 !important; } .gp.lv3.on { background: #FBF0CF !important; } .gp.lv2.on { background: #FBE0CF !important; } .gp.lv1.on { background: #F8D3D3 !important; }
.gp:not(.lv).on { background: var(--accent) !important; color: var(--on-accent) !important; box-shadow: none; }
.mini-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mini-nums label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.mini-nums input { min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; text-align: center; font-size: 17px; font-weight: 700; background: var(--surface); }
.learn-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.learn-links a { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; color: var(--text); text-decoration: none; text-align: center; }
.learn-links .i { color: var(--accent); }
.learn-table td, .learn-table th { font-size: 14px; }
.learn-table a { color: var(--accent); font-weight: 800; text-decoration: none; }
.warn { color: var(--c-orange); }
.bar { position: relative; height: 22px; min-width: 90px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { position: absolute; inset: 0 0 0 auto; background: #CDEBD3; }
.bar em { position: relative; font-style: normal; font-size: 12px; font-weight: 800; line-height: 22px; }
.progress-table td { padding: 6px 2px; }
.up { color: var(--c-green); font-size: 13px; } .down { color: var(--c-red); font-size: 13px; }
.test-rows { display: grid; gap: 6px; }
.test-row { display: grid; grid-template-columns: 1fr auto 90px 44px 16px; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.spark { width: 90px; height: 28px; color: var(--accent); }

/* ----- דפים להדפסה ----- */
.sheets { margin-top: 16px; display: grid; gap: 18px; justify-content: center; }
@media (max-width: 1150px) { .sheets { zoom: .72; } }
@media (max-width: 820px) { .sheets { zoom: .5; } }
@media (max-width: 560px) { .sheets { zoom: .34; } }
.sheet { background: #fff; color: #1d1a17; box-shadow: 0 6px 24px rgb(0 0 0 / .12); font-family: 'Heebo', sans-serif; }
.sheet--card { width: 297mm; height: 210mm; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.sheet--pr { width: 210mm; height: 297mm; display: grid; grid-template-rows: 1fr 1fr; overflow: hidden; }
.half { position: relative; box-sizing: border-box; height: 200mm; overflow: hidden; padding: 7mm 9mm 5mm; border: 1.6mm double #8A6A3A; margin: 5mm; border-radius: 3mm; display: flex; flex-direction: column; gap: 2.2mm; }
.bsd { position: absolute; top: 3mm; left: 5mm; font-size: 10pt; }
.card-name { font-size: 13pt; margin-bottom: 1mm; }
.card-name b { display: inline-block; min-width: 45mm; border-bottom: 1px solid #555; text-align: center; font-size: 14pt; }
.ct { width: 100%; border-collapse: collapse; font-size: 10.5pt; }
.ct th, .ct td { border: 1px solid #6b5a48; padding: .4mm 2mm; height: 5.9mm; box-sizing: border-box; }
.ct thead th { background: #F3ECE2; font-size: 11.5pt; }
.ct tbody th { text-align: right; font-weight: 500; width: 40%; }
.ct td { text-align: center; font-weight: 700; font-size: 11pt; color: #1b3b6b; }
.ct-title { text-align: center; font-weight: 800; font-size: 13pt; background: #F3ECE2; border: 1px solid #6b5a48; border-bottom: 0; padding: 1mm; margin-bottom: -3mm; }
.scale-note { text-align: center; font-weight: 800; font-size: 12pt; background: #EEE; padding: 2mm; border-radius: 2mm; }
.box { border: 1px solid #6b5a48; border-radius: 1mm; padding: 0 3mm 2mm; flex: 1; display: flex; flex-direction: column; }
.box__title { text-align: center; font-weight: 800; font-size: 13pt; border-bottom: 1px solid #6b5a48; margin: 0 -3mm 2mm; padding: 1mm; }
.lines { min-height: 14mm; }
.lines p { margin: 0; font-size: 12pt; line-height: 8mm; color: #1b3b6b; background-image: linear-gradient(transparent 7.6mm, #999 7.6mm); background-size: 100% 8mm; white-space: pre-line; }
.lines i { display: block; height: 7mm; border-bottom: 1px solid #999; }
.sig-row { display: flex; justify-content: space-between; align-items: center; gap: 4mm; font-size: 10.5pt; margin-top: 2mm; }
.sig-row u { display: inline-block; min-width: 22mm; text-decoration: none; border-bottom: 1px solid #555; text-align: center; color: #1b3b6b; font-weight: 700; }
.wm { width: 17mm; opacity: .35; }
.pr { position: relative; box-sizing: border-box; height: 138.5mm; overflow: hidden; margin: 5mm 8mm 0; padding: 3mm 7mm 3mm; border: 1.4mm double #8A6A3A; border-radius: 3mm; display: flex; flex-direction: column; gap: 1.5mm; }
.pr__logo { width: 13mm; align-self: center; margin-top: -2mm; }
.pr h2 { text-align: center; font-size: 14pt; margin: 0; line-height: 1.2; }
.pr h2 small { font-size: 9pt; font-weight: 500; }
.pr__from, .pr__who { text-align: center; font-size: 10.5pt; }
.pr u { display: inline-block; min-width: 25mm; text-decoration: none; border-bottom: 1px solid #555; text-align: center; color: #1b3b6b; font-weight: 700; }
.pr__body { display: grid; grid-template-columns: 58% 1fr; gap: 4mm; flex: 1; min-height: 0; }
.pr__table th, .pr__table td { height: 4.9mm; padding: 0 1.5mm; font-size: 9.5pt; }
.pr__table td { color: #1b3b6b; font-size: 12pt; }
.pr__notes { font-size: 10pt; display: flex; flex-direction: column; }
.pr__notes .lines { min-height: 0; margin-bottom: 2mm; }
.pr__notes .lines p { font-size: 10.5pt; line-height: 6.4mm; background-image: linear-gradient(transparent 6mm, #999 6mm); background-size: 100% 6.4mm; }
.pr__notes .lines i { height: 6.4mm; }
.pr__foot { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: 3mm; align-items: center; font-size: 9.5pt; flex: none; }
.pr__att div { display: flex; gap: 2mm; align-items: center; flex-wrap: wrap; }
.cb { display: inline-grid; place-items: center; width: 3.6mm; height: 3.6mm; border: 1px solid #333; font-size: 8pt; margin-inline-start: 1.5mm; }
.pr__motto { border: 1px solid #6b5a48; border-radius: 2mm; text-align: center; font-weight: 800; padding: 1.5mm; }
.pr__sign { text-align: center; font-style: italic; }

@media print {
  html, body { background: #fff !important; }
  .nav, .top, .acting, .toast, .no-print, .tool-bar, .link-row, .hint, .subj-nav, .fab, .seg-view { display: none !important; }
  .app, .app.app--wide { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .sheets { zoom: 1 !important; margin: 0; gap: 0; display: block; }
  .sheet { box-shadow: none; page-break-after: always; break-after: page; }
  .print-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
  .print-head img { width: 56px; }
  .print-head b { display: block; font-size: 16pt; }
  .print-area { padding: 8mm; }
  .grid-wrap { overflow: visible; box-shadow: none; border: 0; }
  .grid { font-size: 10pt; }
  .grid th.v { height: 90px; }
  .grid select, .grid input { height: 26px; font-size: 10pt; }
  .card, .item, .imp-stats div { box-shadow: none !important; }
  a { color: inherit !important; }
}

.learn-table, .progress-table { table-layout: auto; }
.learn-table thead th { white-space: normal; }

/* ===== פרי חדש: שלב 3, עורך טקסט, מכתבים ומעבר שנה ===== */
.rte { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rte:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.rte__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rte__bar button { min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font-size: 16px; color: var(--text); cursor: pointer; }
.rte__bar button:hover { background: var(--surface); }
.rte__sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.rte__color { min-width: 30px !important; width: 30px; height: 30px !important; padding: 0 !important; border-radius: 50% !important; background: var(--sw) !important; border: 2px solid #fff !important; box-shadow: 0 0 0 1px var(--line); }
.rte__mark { background: #FFF59D !important; font-size: 13.5px !important; font-weight: 700; }
.rte__field { height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 700; padding: 0 8px; color: var(--accent); }
.rte__ed { min-height: 120px; padding: 12px 16px; font-size: 17px; line-height: 1.7; outline: none; }
.rich { line-height: 1.7; }
.rich b, .rich strong { font-weight: 800; }
.fields dd.long .rich { white-space: normal; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 320px; overflow-y: auto; padding: 2px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; }
.check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet--letter { position: relative; width: 210mm; height: 297mm; overflow: hidden; }
.sheet--letter .lh { position: absolute; inset: 0; width: 100%; height: 100%; }
.letter-body { position: absolute; top: 58mm; right: 24mm; left: 24mm; bottom: 58mm; font-size: 13pt; line-height: 1.75; color: #1d1a17; overflow: hidden; }
.letter-preview { overflow: hidden; display: grid; justify-content: center; }
.letter-preview .sheet--letter { zoom: .42; box-shadow: 0 6px 24px rgb(0 0 0 / .15); }
@media (min-width: 700px) { .letter-preview .sheet--letter { zoom: .6; } }
.warn-line { color: var(--c-orange); font-weight: 700; }
.print-only { display: none; }
.roll-list { display: grid; gap: 10px; }
.roll-card { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; }
.roll-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.roll-head b { font-size: 18px; }
.roll-head .arrow { color: var(--accent); font-weight: 800; }
.roll-head select, .roll-sub select, .roll-st select { min-height: 42px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 700; }
.roll-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.roll-sub label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.roll-students { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.roll-st { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; }
.roll-st.is-exc { background: #FBF0CF; }
.undo-box { border-color: color-mix(in srgb, var(--c-orange) 40%, var(--line)); }
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .sheets.print-only { margin: 0; }
  .letter-preview { display: none !important; }
}

.roll-head .split { font-size: 15px; color: var(--accent); }

/* ===== פרי חדש: פעמון, קליטה, ימי הולדת ===== */
.bell { position: relative; flex: none; }
.bell em { position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--c-red); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.top .bell + .avatar, .top .avatar { flex: none; }
.notif.is-new { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.notif.is-red .item__av { background: #F8D3D3 !important; color: #8E2222 !important; }
.notif small + small { margin-top: 2px; }
.notif-set summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.notif-set .pills label { height: 40px; font-size: 14px; }
.notif-set .pills label input { position: static; opacity: 1; pointer-events: auto; width: 18px; height: 18px; accent-color: var(--accent); }
.notif-set .pills label:has(input:checked) { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: var(--accent); }
.intake-text { width: 100%; min-height: 150px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 17px; line-height: 1.7; background: var(--surface); }
.intake-row select, .intake-row input { min-height: 46px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; width: 100%; }
.intake-row .tool-bar select { width: auto; flex: none; }
.intake-row.is-missing { border-color: color-mix(in srgb, var(--c-orange) 50%, var(--line)); }
.check-inline input { width: 22px; height: 22px; accent-color: var(--accent); }
.drop { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--muted); cursor: pointer; text-align: center; }
.drop .i { width: 30px; height: 30px; color: var(--accent); }
.drop b { color: var(--text); font-size: 17px; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.bday-list { display: grid; gap: 8px; }
.bday { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; }
.bday--big { background: linear-gradient(135deg, #FFF3E8, #FDE7EF); border-color: #F4D3C4; }
.bday__top { display: flex; align-items: center; gap: 10px; }
.bday__top b { display: block; font-size: 17px; }
.bday__top small { color: var(--muted); font-weight: 600; }
.bday__cake { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #FADBD2; color: #9A4A35; flex: none; }
.bday__msg { margin: 0; font-size: 16px; line-height: 1.6; color: #6B3A2C; }
.bday__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgb(30 20 15 / .45); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s ease; }
.modal__box { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 26px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / .3); }
.modal__box h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; }
.modal__box h2 .i { color: var(--accent); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.yesh-apps .status { margin: 2px; }
@media print { .modal, .bell { display: none !important; } }

.action--off { opacity: .75; border-style: dashed; }
.action--off .i { color: var(--muted); }

/* ===== הערות ותגובות ===== */
.notes { display: grid; gap: 8px; }
.note { padding: 10px 12px; border-radius: 16px; background: var(--surface-2); border-inline-start: 4px solid #C9BBB2; }
.note--sup { background: #E8F0F8; border-color: #3B6CF6; }
.note--mgr { background: #FBE9E1; border-color: var(--accent); }
.note__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.note__head small { color: var(--muted); }
.note__kind { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #fff; }
.note--sup .note__kind { color: #2A4FB8; } .note--mgr .note__kind { color: #8A4A3A; }
.note__edit { margin-inline-start: auto; color: var(--muted); }
.note__edit .i { width: 18px; height: 18px; }
.note-add { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.note-add textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 16px; background: var(--surface); }
.note-add .pills label { height: 40px; font-size: 14px; }
.note-add .btn { justify-self: start; }

/* ===== תאריך עברי, נוכחות יומית, גרפים ===== */
.fields small.heb { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.heb-live { font-size: 13.5px; font-weight: 700; color: var(--accent); min-height: 1em; }
.att-row { transition: background .15s; }
.att-row.at-abs { background: #FDECEC; border-color: #F3C4C4; }
.att-row.at-late { background: #FDF4DD; border-color: #F1DDA6; }
.att-row.at-early { background: #E9F1FB; border-color: #C9DCF3; }
.att-row .pill-row .gp { min-width: 0; flex: 1 1 auto; font-size: 14.5px; }
.gp.att-at-ok.on { background: #E2F2E2 !important; color: #2E6B35 !important; box-shadow: 0 0 0 2px #2E6B35 inset; }
.gp.att-at-abs.on { background: #F8D3D3 !important; color: #8E2222 !important; box-shadow: 0 0 0 2px #8E2222 inset; }
.gp.att-at-late.on { background: #FBF0CF !important; color: #7A5A12 !important; box-shadow: 0 0 0 2px #7A5A12 inset; }
.gp.att-at-early.on { background: #E3EEF4 !important; color: #2A516D !important; box-shadow: 0 0 0 2px #2A516D inset; }
.att-extra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.att-extra[hidden] { display: none; }
.att-extra input:not([type]) { flex: 1 1 160px; min-height: 42px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.att-extra .check-inline { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.ok-line { color: #2E6B35; font-weight: 700; display: flex; gap: 6px; align-items: center; margin: 0; }
.att-cta { width: 100%; }
.att-board { padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; }
.att-board p { margin: 0; }
.charts { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 960px) { .charts { grid-template-columns: 1fr 1fr; } }
.chart-card { margin-top: 0; }
.chart-sub { margin: -6px 0 0; font-size: 14px; }
.chart { width: 100%; height: auto; display: block; }
.legend-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 18px; height: 0; border-top: 3px solid; border-radius: 2px; }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 30px; align-items: center; gap: 8px; font-size: 14px; }
.hbar__l { color: var(--text); font-weight: 600; }
.hbar__track { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; display: flex; }
.hbar__track span { border-radius: 999px; }
.hbar b { text-align: left; }

/* ===== רשימות מקובצות ===== */
.grouped { display: grid; gap: 18px; margin-top: 14px; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; position: sticky; top: 64px; z-index: 5; padding: 6px 4px; background: linear-gradient(var(--bg) 75%, transparent); }
.group__head h2 { font-size: 17px; }
.group__head span { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; }

/* ===== גישה מהירה ונוכחות צוות ===== */
.home-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.home-tiles a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); font-weight: 800; font-size: 16px; text-decoration: none; }
.home-tiles a .i { width: 24px; height: 24px; color: var(--accent); flex: none; }
.home-tiles a em { position: absolute; top: -8px; left: 10px; padding: 2px 8px; border-radius: 999px; background: #FBF0CF; color: #7A5A12; font-style: normal; font-size: 11.5px; font-weight: 800; }
.home-tiles a:nth-child(1) { background: #FADBD2; border-color: transparent; }
.home-tiles a:nth-child(2) { background: #DCEBF5; border-color: transparent; }
.home-tiles a:nth-child(3) { background: #E3EED6; border-color: transparent; }
.home-tiles a:nth-child(4) { background: #ECE3F5; border-color: transparent; }
.att-extra select { min-height: 42px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 700; }
.srow__name small { margin-inline-start: auto; font-size: 12.5px; }
.gp[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== בחינות ומחברות ===== */
.ex-row .ex-grade { flex: 0 1 90px; min-height: 46px; text-align: center; font-size: 17px; font-weight: 700; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.ex-row select { min-height: 46px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.ex-row .ex-note { min-height: 42px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; width: 100%; }
.ex-row label.gp { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.home-tiles--exam a { min-height: 52px; font-size: 15px; background: var(--surface) !important; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)) !important; }
.home-tiles--exam { margin-top: 10px; }

.ex-row .tool-bar { flex-wrap: nowrap; }
.ex-row .tool-bar select { flex: 1 1 auto; min-width: 0; }
.ex-row { gap: 8px; }

/* ===== דוח בחינות למחנך ===== */
.exam-report .print-head { gap: 12px; align-items: center; margin: 10px 0; }
.exam-report .print-head img { width: 52px; }
.exam-report .print-head b { display: block; font-size: 17px; }
.exam-report .print-head span { color: var(--muted); font-size: 14px; }
.exam-grid td { padding: 6px 4px; font-weight: 700; font-size: 14px; }
.exam-grid td.low { color: #A3262A; background: #FBE6E6; }
.exam-grid td.avg { background: var(--surface-2); }
.exam-grid .avg-row td, .exam-grid .avg-row th { background: var(--surface-2); }
.exam-notes .item { cursor: default; }
.exam-notes small { display: block; }
.sign-line { margin-top: 22px; font-size: 14px; color: var(--muted); }
@media print { .exam-report { padding: 0; } .exam-grid td { font-size: 10pt; padding: 3px; } .exam-grid th.v { height: 110px; } }

.exam-grid { min-width: 0; width: auto; }
.exam-grid td { min-width: 44px; }

.login__logo { width: 84px; justify-self: center; display: block; margin: 0 auto 6px; }
.code-in { font-size: 26px !important; letter-spacing: 8px; text-align: center; font-weight: 800; }
.cloud-box { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* ---------- כלים משותפים ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.check small { display: block; font-weight: 500; }

/* ---------- טיולים ---------- */
.letter-body--slip { bottom: 66mm; display: flex; flex-direction: column; }
.trip-slip { margin-top: auto; padding-top: 3mm; border-top: 1.2px dashed #555; font-size: 11pt; line-height: 1.6; }
.trip-slip__cut { margin: -6.2mm 0 1mm; text-align: center; font-size: 9.5pt; color: #555; }
.trip-slip__cut { background: #fff; width: max-content; margin-inline: auto; padding: 0 3mm; }
.trip-slip p { margin: 0 0 2mm; }
.trip-slip__sig { display: flex; justify-content: space-between; gap: 4mm; flex-wrap: wrap; }
.trip-track { display: grid; gap: 6px; }
.trip-track__row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius); background: var(--surface-2); }
.trip-track__row b { flex: 1; }
.trip-track__row .n { width: 22px; color: var(--muted); font-size: 13px; }
.trip-track__row .gp { height: 38px; min-width: 70px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- מבצעים ---------- */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.camp-card { display: grid; gap: 6px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.camp-card b { font-size: 18px; }
.camp-card__kind { font-size: 13px; font-weight: 800; color: var(--accent); }
.camp-card small { color: var(--muted); }
.camp-card__nums { display: flex; gap: 14px; font-size: 13.5px; color: var(--muted); }
.camp-card__nums b { font-size: 17px; color: var(--text); }
.camp-card .status { justify-self: start; }
.camp-entry .srow { grid-template-columns: minmax(130px, 1fr) auto 90px; align-items: center; }
.camp-entry__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.camp-entry__btns .gp { min-width: 48px; height: 42px; }
.camp-total { font-family: var(--font-head); font-size: 20px; text-align: left; transition: transform .2s; }
.camp-total.pop { animation: pop .45s ease; }
@keyframes pop { 40% { transform: scale(1.35); color: var(--accent); } }
@media (max-width: 620px) { .camp-entry .srow { grid-template-columns: 1fr 80px; } .camp-entry__btns { grid-column: 1 / -1; grid-row: 2; } }
.camp-bars { display: grid; gap: 8px; }
.camp-bar { display: grid; grid-template-columns: 90px 1fr 54px auto; align-items: center; gap: 10px; }
.camp-bar__name { font-weight: 800; display: flex; align-items: center; gap: 4px; }
.camp-bar__name .i { width: 18px; height: 18px; color: #C99A2E; }
.camp-bar__track { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.camp-bar__track i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
@media (max-width: 520px) { .camp-bar { grid-template-columns: 70px 1fr 44px; } .camp-bar small { display: none; } }
.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.prize { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.prize > img, .prize__noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.prize__noimg { display: grid; place-items: center; }
.prize__noimg .i { width: 48px; height: 48px; color: var(--muted); }
.prize__body { display: grid; gap: 4px; padding: 12px 14px; }
.prize__body b { font-size: 17px; }
.prize__cost { font-family: var(--font-head); font-size: 20px; color: var(--accent); }
.prize details summary { cursor: pointer; padding: 6px 0; }

/* ---------- סרטונים ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.vid { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.vid--open { grid-column: 1 / -1; }
.vid__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #1d1a17; cursor: pointer; overflow: hidden; border-radius: 0; }
.vid__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.vid__play { position: absolute; inset: 0; display: grid; place-items: center; }
.vid__play .i { width: 64px; height: 64px; color: #fff; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .5)); }
.vid__body { display: grid; gap: 4px; padding: 12px 14px; }
.vid__body p { margin: 0; }
.vid-frame { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.vid-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- דוח תקופתי ---------- */
.pr-student { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); break-inside: avoid; }
.pr-student header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pr-student header b { font-size: 19px; }
.pr-student header span { color: var(--muted); font-size: 14px; }
.pr-sec { margin-top: 10px; }
.pr-sec h4 { margin: 0 0 4px; font-size: 15px; color: var(--accent); }
.pr-sec ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 3px; }
.pr-sec p { margin: 0; }
.pr-sec--note .lines i { height: 9mm; }
@media print { .pr-student { break-before: page; border: 0; padding: 0; } .pr-student:first-of-type { break-before: auto; } }

/* ---------- הצד השני של התעודה ---------- */
.sheet--cardback .half { justify-content: center; }
.cb-body { font-size: 13pt; line-height: 1.6; color: #1d1a17; }
.cb-body p { margin: 0 0 2mm; }
.cb-logo { display: block; width: 46mm; margin: 0 auto 6mm; }
.cb-preview .sheet--card { zoom: .4; box-shadow: 0 6px 24px rgb(0 0 0 / .15); }
@media (min-width: 900px) { .cb-preview .sheet--card { zoom: .55; } }

/* ---------- אזור ההורים ---------- */
.pp { max-width: 680px; margin: 0 auto; padding: 16px 16px 40px; }
.pp-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.pp-head img { width: 54px; height: 54px; object-fit: contain; }
.pp-head div { flex: 1; display: grid; }
.pp-head b { font-size: 17px; }
.pp-head span { color: var(--muted); font-size: 14px; }
.pp-hello { font-size: 26px; margin: 18px 0 10px; }
.pp-kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pp-kid { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-lg); background: #FADBD2; }
.pp-kid:nth-child(2) { background: #DCEBF5; } .pp-kid:nth-child(3) { background: #E3EED6; } .pp-kid:nth-child(4) { background: #ECE3F5; }
.pp-kid b { font-size: 18px; }
.pp-kid span { font-size: 14px; color: #4a4038; }
.pp-nav { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; overflow-x: auto; margin: 16px -16px 0; padding: 10px 16px; background: var(--bg); scrollbar-width: none; }
.pp-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.pp-nav .i { width: 18px; height: 18px; color: var(--accent); }
.pp-sec { margin-top: 22px; scroll-margin-top: 70px; }
.pp-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 0 0 10px; }
.pp-sec h2 .i { width: 22px; height: 22px; color: var(--accent); }
.pp-card { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 10px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pp-card > b { font-size: 17px; }
.pp-card > small { color: var(--muted); }
.pp-card p { margin: 4px 0 0; line-height: 1.6; }
.pp-status { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pp .ok { color: var(--c-green); font-weight: 700; }
.pp .wait { color: var(--c-orange); font-weight: 700; }
.pp-kidpts { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.pp-kidpts > span { font-weight: 800; }
.pp-kidpts > b { font-family: var(--font-head); font-size: 22px; color: var(--accent); }
.pp-kidpts small, .pp-prog { grid-column: 1 / -1; }
.pp-prog { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pp-prog i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.pp-prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.pp-prizes figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); text-align: center; }
.pp-prizes img, .pp-prizes figure > span { display: grid; place-items: center; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pp-prizes figure > span .i { width: 34px; height: 34px; color: var(--muted); }
.pp-prizes figcaption { padding: 6px; font-weight: 700; font-size: 14px; display: grid; }
.pp-prizes figcaption small { color: var(--accent); }
.pp-vid .vid__thumb, .pp-vid .vid-frame { border-radius: var(--radius); margin-top: 6px; }
.pp-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.pp-table th, .pp-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.pp-table tr.g th { padding-top: 12px; color: var(--accent); font-size: 13.5px; }
.pp-foot { margin-top: 28px; font-size: 13.5px; color: var(--muted); text-align: center; }
.pp-phone { max-width: 430px; margin: 14px auto 0; border: 10px solid #2b2622; border-radius: 34px; background: var(--bg); max-height: 78vh; overflow-y: auto; box-shadow: 0 18px 50px rgb(0 0 0 / .18); }
.pp-phone .pp-nav { margin-inline: -16px; }
.pp-switch { padding: 6px 0; }

/* ---------- חוברת קשר ---------- */
.bk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.bk-thumbs figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.bk-thumbs img { display: block; width: 100%; aspect-ratio: 210 / 297; object-fit: contain; background: #fff; }
.bk-thumbs figcaption { display: flex; align-items: center; gap: 4px; padding: 4px 6px; font-size: 13px; font-weight: 700; }
.bk-thumbs figcaption .btn { min-width: 0; padding: 0 8px; height: 30px; }
.bk-preview .sheet, .bk-preview .bk-full, .bk-preview .bk-pair { zoom: .42; box-shadow: 0 6px 24px rgb(0 0 0 / .15); margin-bottom: 10px; }
@media (min-width: 700px) { .bk-preview .sheet, .bk-preview .bk-full, .bk-preview .bk-pair { zoom: .6; } }
.bk-full { width: 210mm; height: 297mm; background: #fff; overflow: hidden; }
.bk-pair { width: 297mm; height: 210mm; display: grid; grid-template-columns: 1fr 1fr; background: #fff; overflow: hidden; }
.bk-sheet { box-sizing: border-box; height: 100%; padding: 12mm 14mm; display: flex; flex-direction: column; gap: 5mm; color: #1d1a17; }
.bk-sheet--half { padding: 9mm 10mm; border-inline-start: 1px dashed #aaa; }
.bk-head { display: flex; align-items: center; gap: 4mm; padding-bottom: 3mm; border-bottom: 2px solid #8A6A3A; }
.bk-head img { width: 16mm; height: 16mm; object-fit: contain; }
.bk-head > div { flex: 1; display: grid; }
.bk-head b { font-size: 15pt; }
.bk-head span { font-size: 11pt; color: #5b5048; }
.bk-name { padding: 2mm 4mm; border: 1.5px solid #1d1a17; border-radius: 2mm; font-size: 14pt; font-weight: 800; white-space: nowrap; }
.bk-body { flex: 1; overflow: hidden; font-size: 12.5pt; line-height: 1.7; }
.bk-sheet--half .bk-body { font-size: 11pt; }
.bk-foot { display: flex; justify-content: space-between; gap: 4mm; flex-wrap: wrap; padding-top: 3mm; border-top: 1px solid #999; font-size: 10.5pt; }
.bk-page { position: relative; width: 210mm; height: 297mm; background: #fff; overflow: hidden; }
.bk-page > img { width: 100%; height: 100%; object-fit: contain; }
.bk-stamp { position: absolute; padding: 2mm 4mm; background: #fff; border: 1.5px solid #1d1a17; border-radius: 2mm; font-size: 13pt; color: #1d1a17; }
.bk-stamp--tr { top: 6mm; right: 6mm; } .bk-stamp--tl { top: 6mm; left: 6mm; } .bk-stamp--br { bottom: 6mm; right: 6mm; } .bk-stamp--bl { bottom: 6mm; left: 6mm; }
@media print { .bk-full, .bk-pair, .bk-page { break-after: page; box-shadow: none; } }

/* ---------- פתקים ---------- */
.slip { box-sizing: border-box; width: 105mm; height: 148mm; padding: 7mm 8mm; display: flex; flex-direction: column; gap: 2.6mm; background: #fff; color: #1d1a17; font-size: 11.5pt; border: 1.2mm double #8A6A3A; border-radius: 3mm; }
.slip__head { display: flex; align-items: center; gap: 3mm; padding-bottom: 2mm; border-bottom: 1px solid #8A6A3A; }
.slip__head img { width: 13mm; height: 13mm; object-fit: contain; }
.slip__head div { display: grid; }
.slip__head b { font-size: 16pt; }
.slip__head span { font-size: 10pt; color: #5b5048; }
.slip__row { display: flex; align-items: baseline; gap: 2mm; }
.slip__row span { flex: none; color: #5b5048; }
.slip__row b { flex: 1; border-bottom: 1px solid #999; min-height: 6mm; }
.slip__row i { display: inline-block; }
.slip__check { font-size: 10.5pt; }
.slip__box { display: inline-grid; place-items: center; width: 4.2mm; height: 4.2mm; margin-inline-end: 1.2mm; border: 1px solid #1d1a17; vertical-align: -0.8mm; font-size: 9pt; }
.slip__note { margin: 0; font-weight: 700; text-align: center; }
.slip__sign { margin-top: auto; display: flex; justify-content: space-between; font-size: 10.5pt; }
.slip-preview { display: flex; justify-content: center; }
.slip-preview .slip { zoom: .8; box-shadow: 0 6px 24px rgb(0 0 0 / .15); }
.slip-a6 { width: 105mm; height: 148mm; }
.slip-a6 .slip { border-width: 1mm; }
.slip-a4 { width: 210mm; height: 297mm; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.slip-cell { display: grid; place-items: center; outline: 1px dashed #aaa; }
.slip-cell .slip { width: 98mm; height: 140mm; }

/* תוכן עשיר בתוך כרטיס: בלי הפריסה של שורות השדות */
.fields dd.long .rich, .fields dd.long .rich div, .fields dd.long .rich p { display: block; }
.fields dd.long .rich div, .fields dd.long .rich p { border: 0; padding: 0; margin: 0; min-height: 0; }

/* חוברת קשר באזור ההורים */
.pp-bk { margin-top: 6px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); line-height: 1.7; }
.pp-bkpages { display: grid; gap: 8px; margin-top: 8px; }
.pp-bkpages img { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pp-card details summary { cursor: pointer; color: var(--accent); font-weight: 700; padding: 4px 0; }
.bk-ok { color: var(--c-green); font-weight: 900; font-size: 18px; text-decoration: none; }
.bk-no { color: var(--c-red); font-weight: 900; }

/* מסך כניסה: צוות / הורים */
.login__tabs { display: flex; width: 100%; margin: 6px 0 14px; }
.login__tabs button { flex: 1; justify-content: center; height: 42px; font-size: 15px; }
.login__card form { display: grid; gap: 12px; }
.login__card form[hidden] { display: none; }
.btn--google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1.5px solid #dadce0; font-weight: 700; }
.login__or { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }

/* מכתבי כניסה להורים */
.pc-page { width: 210mm; height: 297mm; display: grid; grid-template-rows: 1fr 1fr; background: #fff; break-after: page; }
.pc-letter { position: relative; box-sizing: border-box; padding: 9mm 14mm; color: #1d1a17; font-size: 11.5pt; line-height: 1.55; border-bottom: 1px dashed #aaa; overflow: hidden; }
.pc-letter header { display: flex; align-items: center; gap: 4mm; padding-bottom: 2mm; margin-bottom: 2mm; border-bottom: 2px solid #8A6A3A; }
.pc-letter header img { width: 15mm; height: 15mm; object-fit: contain; }
.pc-letter header div { display: grid; }
.pc-letter header b { font-size: 15pt; }
.pc-letter p { margin: 0 0 2mm; }
.pc-letter ol { margin: 0 0 2mm; padding-inline-start: 6mm; }
.pc-code { margin: 1mm auto 3mm; width: max-content; padding: 2mm 8mm; border: 2px solid #1d1a17; border-radius: 3mm; font-size: 24pt; font-weight: 800; letter-spacing: 2mm; direction: ltr; }
.pc-small { font-size: 9.5pt; color: #5b5048; }
.pc-sample { position: absolute; top: 3mm; left: 3mm; padding: 1mm 3mm; background: #FBF0CF; color: #7A5A12; font-size: 9pt; font-weight: 700; border-radius: 2mm; }
.pc-preview { display: flex; justify-content: center; }
.pc-preview .pc-letter { width: 210mm; height: 148mm; background: #fff; zoom: .5; box-shadow: 0 6px 24px rgb(0 0 0 / .15); border: 0; }
@media (min-width: 800px) { .pc-preview .pc-letter { zoom: .7; } }

/* QR במכתב, באנר מסך הבית */
.pc-steps { display: flex; align-items: center; gap: 5mm; }
.pc-steps ol { flex: 1; }
.pc-qr { flex: none; width: 27mm; height: 27mm; }
.pc-qr svg { width: 100%; height: 100%; display: block; }
.pp-install { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-lg); background: #FBF0CF; }
.pp-install[hidden] { display: none; }
.pp-install__icon img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.pp-install > div { flex: 1; display: grid; }
.pp-install small { color: #5b4a20; }
.pp-install__x { border: 0; background: transparent; font-size: 18px; color: #7A5A12; cursor: pointer; padding: 4px 8px; }

/* סיכום חודשי לצוות */
.sm-table thead th:first-child { width: 160px; }
.sm-table { min-width: 900px; }
.sm-det summary { font-size: 12px; color: var(--accent); cursor: pointer; font-weight: 600; }
.sm-det ul { margin: 4px 0 0; padding-inline-start: 14px; font-size: 12.5px; font-weight: 400; }
.sm-det a.low { color: var(--c-red); }
.tu-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.tu-stats b { font-size: 19px; white-space: nowrap; }
.vc-type { display: flex; gap: 8px; }
.vc-type input { flex: 1; min-height: 42px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: var(--surface); }


/* ---------- מיקרופון ---------- */
.vc-fab { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgb(0 0 0 / .22); cursor: pointer; }
.vc-fab.on { animation: vcpulse 1.1s infinite; background: #D6453D; }
@media (min-width: 900px) { .vc-fab { bottom: 24px; } }
@keyframes vcpulse { 0% { box-shadow: 0 0 0 0 rgb(214 69 61 / .5); } 70% { box-shadow: 0 0 0 16px rgb(214 69 61 / 0); } 100% { box-shadow: 0 0 0 0 rgb(214 69 61 / 0); } }
.vc-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .35); display: flex; align-items: flex-end; justify-content: center; }
.vc-sheet { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
@media (min-width: 700px) { .vc-backdrop { align-items: center; } .vc-sheet { border-radius: 22px; } }
.vc-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.vc-x { border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); }
.vc-mic { justify-self: center; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.vc-mic svg { width: 38px; height: 38px; }
.vc-mic.on { background: #D6453D; animation: vcpulse 1.1s infinite; }
.vc-text { margin: 0; min-height: 26px; font-size: 18px; text-align: center; line-height: 1.6; }
.vc-props { display: grid; gap: 10px; }
.vc-prop { display: grid; gap: 8px; padding: 12px; border-radius: var(--radius-lg); background: var(--surface-2); }
.vc-prop input, .vc-prop textarea, .vc-prop select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: var(--surface); }
.vc-prop .tool-bar select, .vc-prop .tool-bar input { width: auto; }
.vc-prop__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vc-prop__head select { width: auto; min-height: 34px; }
.vc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.vc-chip small { color: var(--muted); font-weight: 500; }
.vc-chip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.vc-prop .chips-wrap select { width: auto; min-height: 34px; font-size: 14px; }
.vc-actions { display: flex; gap: 10px; justify-content: space-between; }
.vc-privacy { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
/* ---------- מסמכי המוסד ---------- */
.id-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.id-card { display: grid; gap: 6px; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.id-card > a { color: var(--text); text-decoration: none; font-size: 16.5px; }
.id-card .status { justify-self: start; }
.id-alert { border: 1.5px solid color-mix(in srgb, var(--c-orange) 50%, transparent); }

/* ---------- מערכת שעות ---------- */
.tt-wrap { overflow-x: auto; margin: 12px -16px 0; padding: 0 16px; }
.tt-grid { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; font-size: 14px; background: var(--surface); }
.tt-grid th, .tt-grid td { border: 1px solid var(--line); padding: 6px; text-align: center; vertical-align: middle; }
.tt-grid thead th { background: var(--surface-2); font-size: 14px; }
.tt-grid tbody th { width: 110px; text-align: right; background: var(--surface-2); }
.tt-grid tbody th small, .tt-grid td small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.tt-grid td b { display: block; }
.tt-grid tr.tt-pm th { background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.tt-grid td.tt-empty { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-2) 6px 7px); }
.tt-grid input, .tt-grid select { width: 100%; min-height: 32px; padding: 3px 5px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; background: var(--surface); }
.tt-grid select { margin-top: 3px; color: var(--muted); }
.tt-page + .tt-page { margin-top: 24px; }
@media print { .tt-page { break-after: page; } .tt-wrap { overflow: visible; margin: 8px 0 0; padding: 0; } .tt-grid { min-width: 0; font-size: 11pt; } }
.bells { display: grid; gap: 8px; }
.bells__row { display: grid; grid-template-columns: 1fr 110px 110px 100px auto; gap: 6px; align-items: center; }
.bells__row input, .bells__row select { min-height: 40px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; background: var(--surface); }
@media (max-width: 560px) { .bells__row { grid-template-columns: 1fr 1fr; } }
.tt-today { margin-top: 12px; }
.tt-today__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tt-today__list a { flex: none; display: grid; gap: 1px; min-width: 104px; padding: 8px 12px; border-radius: var(--radius); background: var(--surface-2); color: var(--text); text-decoration: none; }
.tt-today__list a.now { background: var(--accent); color: var(--on-accent); }
.tt-today__list a.now small { color: var(--on-accent); }
.tt-today__list span { font-size: 12.5px; opacity: .8; }
.tt-today__list small { color: var(--muted); }

/* ---------- מזל ותכונות ---------- */
.mz-card { border: 1.5px solid color-mix(in srgb, #8E4EC6 35%, var(--line)); background: color-mix(in srgb, #8E4EC6 5%, var(--surface)); }
.mz-card h3 small { font-weight: 500; font-size: 13px; }
.mz-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mz-row div { display: grid; padding: 8px 12px; border-radius: var(--radius); background: var(--surface); min-width: 90px; }
.mz-row span { font-size: 12.5px; }
.mz-g { margin: 0; font-size: 16.5px; }
.mz-tip { margin: 0; padding: 8px 12px; border-radius: var(--radius); background: var(--surface); }

/* ---------- הקלטת פגישה ופרוטוקול ---------- */
.mr-box { gap: 12px; }
.mr-ctrl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mr-ctrl > div { flex: 1; display: grid; }
.mr-btn { width: 76px; height: 76px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #D6453D; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.mr-btn.on { animation: vcpulse 1.1s infinite; }
.mr-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.mr-pause { width: 22px; height: 26px; border-inline: 7px solid #fff; }
.mr-time { font-family: var(--font-head); font-size: 30px; }
.mr-live { max-height: 46vh; overflow-y: auto; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.mr-live p { margin: 0 0 6px; line-height: 1.6; }
.mr-live p small { color: var(--muted); margin-inline-end: 6px; }
.mr-live p.dec { background: #FBF0CF; border-radius: 8px; padding: 2px 6px; }
.proto { max-width: 760px; margin: 12px auto 0; padding: 22px 26px; background: #fff; color: #1d1a17; border-radius: var(--radius-lg); box-shadow: var(--shadow); font-size: 15px; line-height: 1.7; }
.proto__head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid #8A6A3A; }
.proto__head img { width: 54px; height: 54px; object-fit: contain; }
.proto__head > div:nth-child(2) { flex: 1; display: grid; }
.proto__head b { font-size: 19px; }
.proto__bsd { align-self: flex-start; font-size: 13px; }
.proto__title { font-size: 22px; margin: 14px 0 8px; text-align: center; }
.proto h2 { font-size: 17px; margin: 18px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #ccc; color: #5b3f17; }
.proto p { margin: 0 0 8px; }
.proto ol { margin: 0; padding-inline-start: 22px; }
.proto ol li { margin-bottom: 4px; }
.proto__meta { width: 100%; border-collapse: collapse; font-size: 14px; }
.proto__meta th, .proto__meta td { border: 1px solid #ccc; padding: 5px 8px; text-align: right; }
.proto__meta th { width: 80px; background: #f6f1e8; }
.proto__tasks { width: 100%; border-collapse: collapse; font-size: 14px; }
.proto__tasks th, .proto__tasks td { border: 1px solid #ccc; padding: 5px 8px; text-align: right; }
.proto__tasks th { background: #f6f1e8; }
.proto__sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; margin-top: 34px; }
.proto__sign div { display: grid; gap: 2px; text-align: center; font-size: 13.5px; }
.proto__sign i { display: block; height: 26px; border-bottom: 1px solid #555; }
.proto__sign small { color: #777; }
.proto__foot { margin-top: 26px; font-size: 11.5px; color: #888; text-align: center; }
@media print { .proto { box-shadow: none; padding: 0; max-width: none; border-radius: 0; } .proto h2 { break-after: avoid; } }
.mr-task { display: flex; gap: 6px; flex-wrap: wrap; }
.mr-task input, .mr-task select { min-height: 38px; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px; background: var(--surface); }
.mr-task input[data-mrtt] { flex: 1 1 200px; }
.mr-tasks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.mr-tasks .i { width: 16px; height: 16px; color: var(--c-green); vertical-align: -3px; }
.mr-x { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.proto__brief { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #f6f1e8; border-inline-start: 4px solid #8A6A3A; }
.proto__brief p { margin: 2px 0 0; }
.todo { display: grid; gap: 10px; margin-top: 12px; }
.todo__item { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.todo__item.urgent { border-color: color-mix(in srgb, var(--c-orange) 55%, var(--line)); }
.todo__item > a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--text); text-decoration: none; }
.todo__item > a .i { width: 22px; height: 22px; color: var(--accent); flex: none; }
.todo__item > a span { flex: 1; font-weight: 700; }
.todo__item > a b { font-size: 13px; color: var(--accent); }
.todo__item ul { margin: 0; padding: 0 44px 12px 16px; display: grid; gap: 4px; font-size: 14.5px; }
.home-tiles--todo a { border-color: color-mix(in srgb, var(--c-orange) 55%, var(--line)) !important; }

/* ---------- הודעות, תזכורות, תיק עובד, סייעים, ספריות, צלצולים ---------- */
.ms-msg .rich { font-size: 16.5px; }
.ms-sent { border: 1.5px solid color-mix(in srgb, var(--c-green) 45%, var(--line)); }
.item.ms-new b { color: var(--accent); }
.rem-box { border: 1.5px solid color-mix(in srgb, var(--c-orange) 50%, var(--line)); margin-top: 12px; }
.rem-ask { margin-top: 10px; }
.sf-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; min-width: 70px; }
.sf-bar i { display: block; height: 100%; background: var(--c-green); }
.sf-list .item__av .i { color: var(--c-green); }
.sf-cover header { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid #8A6A3A; margin-bottom: 12px; }
.sf-cover header img { width: 54px; height: 54px; object-fit: contain; }
.sf-cover header div { display: grid; } .sf-cover header b { font-size: 19px; }
.sf-cover h2 { font-size: 17px; margin: 16px 0 6px; }
.ai-card summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.ai-card summary::-webkit-details-marker { display: none; }
.ai-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-inline-start: auto; font-size: 13.5px; color: var(--muted); }
.ai-flags { margin: 0; padding: 8px 26px 8px 12px; border-radius: var(--radius); background: #FBF0CF; color: #6b4e10; }
.ai-students { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ai-st { display: grid; gap: 4px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.ai-st header { display: grid; } .ai-st p { margin: 0; font-size: 14.5px; }
.tk-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tk-font { display: grid; gap: 2px; padding: 10px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; text-align: center; }
.tk-font small { font-size: 20px; }
.tk-font.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.tk-preview { max-height: 70vh; overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.tk-sheet { padding: 24px 30px; color: #1d1a17; line-height: 1.75; }
.tk-sheet h1 { text-align: center; margin: 4px 0; font-size: 1.6em; }
.tk-bsd { text-align: left; font-size: .75em; }
.tk-sub { text-align: center; color: #666; margin: 0 0 14px; font-size: .8em; }
.tk-body p { margin: 0 0 .6em; }
@media print { .tk-sheet { padding: 0; } }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.song { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; }
.song.open { grid-column: 1 / -1; }
.song > a { display: grid; color: var(--text); text-decoration: none; font-size: 16.5px; }
.song__lyrics { white-space: pre-line; line-height: 1.8; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.song__print { white-space: pre-line; text-align: center; }
.chip-btn.now { border-color: var(--accent); }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; }
.al-card { display: grid; gap: 4px; color: var(--text); text-decoration: none; }
.al-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-2); display: grid; place-items: center; }
.al-empty .i { width: 40px; height: 40px; color: var(--muted); }
.al-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-top: 10px; }
.al-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.al-big img { width: 100%; max-height: 72vh; object-fit: contain; background: #111; border-radius: var(--radius); }
.bp-main { text-align: center; justify-items: center; }
.bp-clock { font-family: var(--font-head); font-size: 54px; letter-spacing: 2px; }
.bp-btn { min-width: 220px; height: 56px; font-size: 18px; }
.bp-log { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.bp-table { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14.5px; }
.bp-table b { width: 100%; }
.dy-items { display: flex; flex-wrap: wrap; gap: 6px; }
.dy-items .gp { display: inline-flex; align-items: center; height: 40px; }
.ev-list { display: grid; gap: 12px; margin-top: 10px; }
.ev-day header { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; } .ev-day header span { color: var(--muted); font-size: 14px; }
.ev { display: flex; gap: 12px; align-items: center; padding: 10px 14px; margin-bottom: 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ev__time { min-width: 62px; font-weight: 800; color: var(--accent); } .ev__main { display: grid; } .ev__main small { color: var(--muted); }
.rf-go { justify-self: start; min-width: 180px; height: 52px; font-size: 18px; }
.rf-stage { display: grid; place-items: center; gap: 4px; min-height: 110px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #FBF0CF, #FADBD2); text-align: center; padding: 14px; }
.rf-win { font-family: var(--font-head); font-size: 32px; }
.rf-roll { opacity: .7; }
.rf-stage small { font-size: 15px; color: #5b4a20; }

/* ---------- קליקרים ---------- */
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.quiz-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.quiz-card > a { display: grid; gap: 3px; color: inherit; text-decoration: none; }
.quiz-card .btn { align-self: flex-start; }
.qz-q { gap: 10px; }
.qz-q__head { display: flex; align-items: center; justify-content: space-between; }
.qz-q__tools { display: flex; gap: 4px; }
.qz-q textarea { width: 100%; font: inherit; font-size: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); resize: vertical; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
.qz-opt.on { border-color: var(--c); box-shadow: 0 0 0 2px var(--c) inset; }
.qz-opt input[type=radio] { width: 20px; height: 20px; accent-color: var(--c); flex: none; }
.qz-opt input:not([type]) , .qz-opt input[data-qq] { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--text); padding: 6px 2px; }
.qz-let { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: inline-grid; place-items: center; font-weight: 800; border: 0; }
.qz-media { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.qz-media figure { margin: 0; display: grid; gap: 6px; }
.qz-media img { max-width: 220px; max-height: 140px; border-radius: 10px; object-fit: cover; }
.qz-media .f { min-width: 180px; flex: 1; }
.qz-vthumb { width: 120px; border-radius: 8px; }
.qz-sample { background: var(--surface-2); padding: 10px 12px; border-radius: 10px; margin: 0; font: 15px/1.6 'Heebo', sans-serif; white-space: pre-wrap; }
.qz-import textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.qz-import summary { cursor: pointer; display: flex; gap: 6px; align-items: center; }
.qz-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.qz-mode { display: grid; gap: 4px; text-align: right; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.qz-mode .i { width: 26px; height: 26px; color: var(--accent); }
.qz-mode small { color: var(--muted); font-size: 15px; }
.qz-mode.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.qz-mode:disabled { opacity: .45; }
.check-list--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.qr-join { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.qr-code b { font-size: 28px; letter-spacing: .12em; color: var(--accent); }
.qr-stage { gap: 14px; }
.qr-stage--wait { text-align: center; align-items: center; }
.qr-stage--wait > b { font-size: 26px; }
.qr-stage--wait p { margin: 0; }
.qr-q { font: var(--head-weight) 26px/1.35 var(--font-head); }
.qr-img { max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; align-self: center; }
.qr-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--c); color: #fff; font-size: 20px; font-weight: 700; min-height: 64px; }
.qr-opt .qz-let { background: rgb(255 255 255 / .3); width: 38px; height: 38px; font-size: 20px; }
.qr-opt span:not(.qz-let) { position: relative; z-index: 1; }
.qr-opt em { margin-inline-start: auto; font-style: normal; font-size: 24px; position: relative; z-index: 1; }
.qr-opt i { position: absolute; inset-block: 0; inset-inline-start: 0; background: rgb(255 255 255 / .22); }
.qr-opt.dim { opacity: .4; }
.qr-opt.ok { box-shadow: 0 0 0 4px var(--text); }
.qr-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 18px; }
.qr-timer { font: 900 28px var(--font-head); color: var(--accent); }
.qr-timer.low { color: #D64545; }
.qr-ctrl { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-big { min-height: 54px; font-size: 19px; padding-inline: 22px; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.qr-st { position: relative; display: grid; gap: 2px; padding: 8px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; text-align: center; }
.qr-st > span { font-weight: 800; color: var(--muted); font-size: 13px; }
.qr-st i { position: absolute; top: 4px; inset-inline-end: 6px; font-style: normal; font-weight: 800; }
.qr-st.on { border-color: #3BB273; background: color-mix(in srgb, #3BB273 12%, var(--surface)); }
.qr-st.ok { border-color: #3BB273; background: #3BB273; color: #fff; }
.qr-st.bad { border-color: #D64545; background: color-mix(in srgb, #D64545 14%, var(--surface)); }
.qr-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: var(--surface-2); border-radius: 12px; position: sticky; bottom: 80px; }
.qr-pick .qz-let { width: 44px; height: 44px; font-size: 20px; }
.qr-cls { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.qr-cls div { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.qr-cam { gap: 10px; }
.qr-cam__view { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.qr-cam__view video, .qr-cam__view canvas { width: 100%; display: block; }
.qr-cam__view canvas { position: absolute; inset: 0; height: 100%; }
.qx-sum { flex-direction: row; justify-content: space-around; text-align: center; }
.qx-sum div { display: grid; }
.qx-sum b { font: var(--num-weight) 30px var(--font-head); }
.qcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.qcard { position: relative; aspect-ratio: 1; background: #fff; color: #000; border: 1px dashed #bbb; border-radius: 10px; display: grid; place-items: center; }
.qcard__m { width: 62%; aspect-ratio: 1; }
.qcard__m svg { width: 100%; height: 100%; display: block; }
.qcard__l { position: absolute; font: 900 30px 'Rubik', sans-serif; color: #000; }
.qcard__l--t { top: 4%; left: 50%; transform: translateX(-50%); }
.qcard__l--r { right: 5%; top: 50%; transform: translateY(-50%) rotate(90deg); }
.qcard__l--b { bottom: 4%; left: 50%; transform: translateX(-50%) rotate(180deg); }
.qcard__l--l { left: 5%; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.qcard__n { position: absolute; top: 5%; right: 6%; font: 800 18px 'Heebo', sans-serif; }
.qcard__name { position: absolute; bottom: 5%; left: 6%; font-size: 12px; color: #555; }
.qroster { margin-top: 16px; }
.pm-stats { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; }
.pm-stats .pp-prog { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.pm-stats .pp-prog i { display: block; height: 100%; background: #3BB273; }
.warn-card { border-inline-start: 4px solid #F2A541; }
.hw-link { padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 14px; word-break: break-all; }
.pp-msg--new { box-shadow: 0 0 0 2px #E07A5F inset; }
.pp-new { color: #E07A5F; font-weight: 800; }
.rf-full { position: fixed !important; inset: 0; z-index: 999; border-radius: 0 !important; min-height: 100vh; font-size: 4vh; }
.rf-full .rf-win { font-size: 14vh; }
.rf-full small { font-size: 4vh !important; }
@media (max-width: 640px) { .qz-opts, .qr-opts { grid-template-columns: 1fr; } .pm-stats { grid-template-columns: 1fr 1fr; } .pm-stats .pp-prog { grid-column: 1 / -1; } }
@media print {
  .qcards { grid-template-columns: 1fr 1fr; gap: 0; }
  .qcard { border: 1px dashed #999; border-radius: 0; break-inside: avoid; height: 13.3cm; aspect-ratio: auto; }
  body.print-roster .qcards { display: none; }
  body:not(.print-roster) .qroster { display: none; }
}
.rf-full { cursor: pointer; background: radial-gradient(circle at 50% 30%, #FFF4D6, #FADBD2) !important; }
.rf-title { font: 900 6vh var(--font-head); }
.rf-hint { position: absolute; bottom: 2vh; font-size: 2vh !important; opacity: .5; }

/* ---------- גודל מכתב: חצי דף / רבע דף ---------- */
.sheet--a5 .letter-body { font-size: 15pt; }
.sheet--a6 .letter-body { font-size: 18pt; line-height: 1.6; }
.letter-preview--a5 .sheet--letter { zoom: .3; }
.letter-preview--a6 .sheet--letter { zoom: .22; }
@media (min-width: 700px) { .letter-preview--a5 .sheet--letter { zoom: .42; } .letter-preview--a6 .sheet--letter { zoom: .3; } }
.lpack { background: #fff; display: grid; overflow: hidden; }
.lpack--a5 { width: 297mm; height: 210mm; grid-template-columns: 1fr 1fr; }
.lpack--a6 { width: 210mm; height: 297mm; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lpack__cell { overflow: hidden; position: relative; outline: .2mm dashed #bbb; outline-offset: -.1mm; }
.lpack--a5 .sheet--letter { zoom: .7071; box-shadow: none; }
.lpack--a6 .sheet--letter { zoom: .5; box-shadow: none; }
@media print { .lpack { page-break-after: always; break-after: page; box-shadow: none; } }
@media print { .lpack .sheet { page-break-after: auto !important; break-after: auto !important; } }
.qr-join--self { align-items: flex-start; }
nav:has(> .pm-remind-x) { position: relative; }
.pm-remind-x { position: absolute; top: 6px; inset-inline-end: 6px; border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; padding: 6px; }
.qz-bank > summary { cursor: pointer; list-style: none; }
.qz-bank > summary h2 { display: inline; }
.qz-bank > summary::before { content: '+ '; font-weight: 800; color: var(--accent); }
.qz-bank[open] > summary::before { content: '- '; }
.quiz-card--bank { border-inline-start: 4px solid #F2C14E; }

/* מדריך הקליקרים המאויר */
.qg-step { display: grid; grid-template-columns: 1fr minmax(200px, 300px); gap: 18px; align-items: center; }
.qg-step__txt h3 { margin: 0 0 6px; display: inline; }
.qg-step__txt p { margin: 8px 0 0; }
.qg-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-inline-end: 8px; }
.qg-pic { background: var(--surface-2); border-radius: 14px; padding: 14px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.qg-pic small { color: var(--muted); }
.qg-q { display: grid; gap: 6px; width: 100%; text-align: right; }
.qg-opts { display: grid; gap: 6px; }
.qg-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 700; font-size: 15px; }
.qg-opt i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: rgb(255 255 255 / .3); display: grid; place-items: center; }
.qg-opt.on { box-shadow: 0 0 0 3px var(--text); }
.qg-cards { display: flex; gap: 10px; }
.qg-card { margin: 0; display: grid; gap: 4px; justify-items: center; }
.qg-card__in { position: relative; width: 78px; height: 78px; background: #fff; border: 1px solid #ccc; border-radius: 6px; display: grid; place-items: center; }
.qg-card__in .qcard__l { font-size: 13px; }
.qg-card__in .qcard__m { width: 56%; }
.qg-card figcaption { font-size: 14px; font-weight: 700; }
.qg-scan { width: 100%; background: #222; border-radius: 12px; padding: 12px; }
.qg-scan__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qg-scan__row span { aspect-ratio: 1; padding: 6px; background: #fff; border-radius: 4px; outline: 3px solid #E4572E; }
.qg-scan__row span.ok { outline-color: #3BB273; }
.qg-scan small { color: #ddd !important; display: block; margin-top: 8px; }
.qg-phone { width: 170px; border-radius: 24px; background: #2B2D42; padding: 12px 8px; }
.qg-phone__in { background: #FFF7EE; border-radius: 16px; padding: 10px; display: grid; gap: 6px; text-align: right; }
.qg-board { width: 100%; display: grid; gap: 6px; }
.qg-board div { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 700; }
.qg-board div.dim { opacity: .45; } .qg-board div.ok { box-shadow: 0 0 0 3px var(--text); }
.qg-board i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: rgb(255 255 255 / .3); display: grid; place-items: center; }
.qg-board em { margin-inline-start: auto; font-style: normal; position: relative; z-index: 1; }
.qg-board s { position: absolute; inset-block: 0; inset-inline-start: 0; background: rgb(255 255 255 / .22); }
@media (max-width: 640px) { .qg-step { grid-template-columns: 1fr; } }
@media print { .qg-step { break-inside: avoid; } }

/* נוכחות: שעה, יציאה קבועה */
.att-time { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.att-time input { width: auto; }
.att-standing { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #8a5a00; background: #FFF4D6; border-radius: 8px; padding: 2px 8px; margin-top: 2px; }
.att-standing .i { width: 14px; height: 14px; }
/* מצטיינים */
.hn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hn-st { position: relative; display: grid; gap: 2px; text-align: right; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.hn-st small { color: var(--muted); font-size: 13px; }
.hn-st.on { border-color: #F2C14E; background: #FFF6D8; }
.hn-st i { position: absolute; top: 6px; inset-inline-end: 8px; color: #D99A00; }
.chip-btn.hn-never { border-color: #E4572E; }
.chip-btn.hn-more { background: #FFF6D8; }
/* תעודת הצטיינות */
.certs { display: grid; gap: 16px; justify-items: center; }
.cert { width: 297mm; height: 210mm; background: #fff; color: #2B2D42; padding: 10mm; box-shadow: var(--shadow); }
.cert__in { height: 100%; border: 3mm double #C9A227; border-radius: 6mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4mm; text-align: center; padding: 8mm; background: radial-gradient(circle at 50% 0%, #FFF8E1, #fff 60%); }
.cert__logo { height: 28mm; }
.cert__school { font: 700 16pt 'Heebo', sans-serif; color: #7a6a3a; }
.cert__title { font: 900 40pt 'Rubik', 'Heebo', sans-serif; color: #B8860B; margin: 0; }
.cert__to { font-size: 15pt; margin: 0; }
.cert__name { font: 900 36pt 'Rubik', 'Heebo', sans-serif; border-bottom: 1mm solid #C9A227; padding: 0 12mm 2mm; }
.cert__cls { font-size: 16pt; color: #555; }
.cert__line { font-size: 15pt; margin: 0; } .cert__reason { font-size: 17pt; font-weight: 700; margin: 0; } .cert__bless { font-size: 15pt; margin: 2mm 0 0; }
.cert__sign { display: flex; justify-content: space-between; width: 80%; margin-top: auto; font-size: 13pt; }
.cert__sign span { border-top: .4mm solid #999; padding-top: 2mm; min-width: 50mm; }
@media screen { .cert { zoom: .42; } @media (min-width: 900px) { .cert { zoom: .6; } } }
@media print { .cert { box-shadow: none; page-break-after: always; break-after: page; } }

/* מרכז הפעולות בכרטיס התלמיד */
.hub { gap: 12px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.hub-btn { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; text-align: center; }
.hub-btn .i { width: 22px; height: 22px; color: var(--accent); }
.hub-btn:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.hub-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hub-row select { width: auto; }
.hub-sib { display: grid; gap: 6px; }
/* כפתור חזרה ברור */
.top-back { width: auto !important; padding-inline: 10px !important; gap: 4px; display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; }
.top-back span { display: inline; }
.mr-parts details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.ev--simcha { border-inline-start: 4px solid #F2C14E; }

/* דף הכיתה: קישורים ודפי הדפסה */
.hub-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hub-link { display: inline-flex; align-items: center; }
.hub-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.hub-add { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.hub-add input[name=title] { flex: 1 1 180px; } .hub-add input[name=url] { flex: 1 1 220px; }
.csheets { display: grid; gap: 16px; }
.csheet { background: #fff; color: #111; padding: 12mm; box-shadow: var(--shadow); font-size: var(--fs, 14px); width: 100%; max-width: 210mm; margin: 0 auto; }
.csheet--land { max-width: 297mm; }
.csheet header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid #111; padding-bottom: 4px; margin-bottom: 6px; }
.csheet header b { font-size: 1.4em; }
.csheet table { width: 100%; border-collapse: collapse; }
.csheet th, .csheet td { border: 1px solid #555; padding: 4px 6px; text-align: center; height: 1.9em; }
.csheet th { background: #f0f0f0; font-weight: 700; }
.csheet .nm { text-align: right; white-space: nowrap; width: 1%; padding-inline: 10px; }
.csheet .n { width: 2.2em; }
.csheet tr.lines td:last-child { border-inline-start: 0; background: repeating-linear-gradient(to bottom, transparent 0 calc(1.4em - 1px), #bbb calc(1.4em - 1px) 1.4em); }
@media print { .csheet { box-shadow: none; padding: 0; max-width: none; page-break-after: always; break-after: page; } }
.zoomctl { display: none; gap: 4px; margin-inline-start: auto; }
@media (min-width: 900px) and (hover: hover) { .zoomctl { display: inline-flex; } }
.zoomctl button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 13px; cursor: pointer; }
.zoomctl button:hover { border-color: var(--accent); }
.inst-hero { flex-direction: row; align-items: center; gap: 14px; }
.inst-icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--shadow); }
.shared-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #FFF4D6; margin-bottom: 10px; }
.shared-bar span { flex: 1; font-weight: 600; }
.lt-fill { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #FFFBE6; border: 1px dashed #E8C547; }
.lt-fill h4 { margin: 0; display: flex; align-items: center; gap: 6px; }
.lt-filter { align-items: center; }
.pp-month { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line, #eee); }
.pp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pp-tiles span { display: grid; text-align: center; background: #F7F2EA; border-radius: 10px; padding: 8px 4px; font-size: 13px; }
.pp-tiles span.ok { background: #E9F7EF; }
.pp-tiles em { font-style: normal; font-weight: 800; font-size: 20px; }
@media (max-width: 420px) { .pp-tiles { grid-template-columns: 1fr 1fr; } }

/* הדפסת חידון לתלמידים */
.qp-sheets { display: grid; gap: 16px; }
.qp-sheet { background: #fff; color: #111; padding: 14mm; max-width: 210mm; margin: 0 auto; width: 100%; box-shadow: var(--shadow); font-size: var(--fs, 16px); line-height: 1.5; }
.qp-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #111; padding-bottom: 6px; }
.qp-head img { height: 52px; }
.qp-head div { display: grid; } .qp-head b { font-size: 1.5em; } .qp-head small { color: #555; }
.qp-who { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 4px; flex-wrap: wrap; }
.qp-hint { margin: 4px 0 10px; color: #444; font-size: .9em; }
.qp-qs { margin: 0; padding-inline-start: 1.6em; display: grid; gap: 1em; }
.qp-qs li { break-inside: avoid; }
.qp-qs img { display: block; max-width: 60%; max-height: 45mm; margin: 6px 0; object-fit: contain; }
.qp-opts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 6px; }
.qp-opts span { display: inline-flex; align-items: center; gap: 8px; }
.qp-opts i { font-style: normal; font-weight: 800; width: 1.6em; height: 1.6em; border: 1.5px solid #111; border-radius: 50%; display: inline-grid; place-items: center; }
.qp-foot { margin-top: 16px; border-top: 1px dashed #999; padding-top: 6px; text-align: center; color: #333; }
.qp-keylist { display: grid; gap: 6px; padding-inline-start: 1.6em; }
@media print { .qp-sheet { box-shadow: none; padding: 0; max-width: none; page-break-after: always; break-after: page; } }

/* סידור המסך: מגירה */
.ly-hidden { display: none !important; }
.ly-bar { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.ly-edit { position: relative; outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 12px; cursor: grab; }
.ly-x { position: absolute; top: 4px; inset-inline-start: 4px; z-index: 5; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #D64545; color: #fff; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); }
.ly-drawer { border: 2px dashed var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 8px; margin: 8px 0 14px; background: var(--surface-2); }
.ly-drawer.ly-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.ly-drawer h3 { margin: 0; display: flex; gap: 6px; align-items: center; }
/* השולחן שלי */
.desk { display: grid; gap: 6px; margin: 4px 0 12px; }
.desk > b { font-size: 15px; color: var(--muted); }
.desk-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.desk-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.desk-chip .i { width: 18px; height: 18px; color: var(--accent); }
.desk-chip em { font-style: normal; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 7px; font-size: 13px; }
/* דיווחים מהצוות */
.fd-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 8px; border-inline-start: 4px solid var(--accent); }
.fd-item.fd-red { border-inline-start-color: #D64545; }
.fd-main { flex: 1; display: grid; gap: 2px; color: inherit; text-decoration: none; min-width: 0; }
.fd-main small { color: var(--muted); }
.fd-btns { display: flex; gap: 6px; flex: none; }
@media (max-width: 560px) { .fd-item { flex-direction: column; align-items: stretch; } }
/* זמני שימוש */
.us-bar { display: block; height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.us-bar i { display: block; height: 100%; background: var(--accent); }
.us-days { margin: 4px 0 12px; }
/* פתיחת מסכים */
.gr-list { display: grid; gap: 8px; }
.gr-row { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 4px 8px; }
.gr-row.on { border-inline-start: 4px solid #3BB273; }
.gr-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 4px; background: none; border: 0; text-align: right; color: var(--text); font: inherit; cursor: pointer; flex-wrap: wrap; }
.gr-head span { display: inline-flex; gap: 6px; align-items: center; }
.gr-head small { color: var(--muted); }
.gr-mode { display: grid; gap: 6px; padding: 8px 4px; border-top: 1px solid var(--line); }

/* ---- מאגר החידונים ---- */
.ql-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ql-card { display: grid; gap: 6px; align-content: start; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; border-top: 5px solid var(--c, var(--accent)); }
.ql-card b { font-size: 17px; line-height: 1.35; }
.ql-card small { color: var(--muted); }
.ql-parasha { --c: #2E86AB; } .ql-holiday { --c: #E4572E; } .ql-rashi { --c: #9B6BD3; } .ql-alefbet { --c: #3BB273; } .ql-ours { --c: #F2A541; }
.ql-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); justify-self: start; cursor: pointer; }
.ql-pick input { width: 18px; height: 18px; accent-color: var(--accent); }
.ql-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ql-pickbar { position: sticky; top: 8px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border: 2px solid var(--accent); }
/* ---- בדיקת דפים מודפסים ---- */
.gr-table { display: grid; gap: 6px; }
.gr-st { display: grid; grid-template-columns: minmax(110px, 1fr) 140px auto 52px; align-items: center; gap: 10px; background: var(--surface); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); }
.gr-st input { font-size: 20px; letter-spacing: 4px; padding: 6px 8px; min-width: 0; }
.gr-st em { font-style: normal; font-weight: 700; text-align: center; }
.gr-cells { display: flex; flex-wrap: wrap; gap: 3px; }
.gr-cells i { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 14px; background: var(--surface-2); }
.gr-cells i.ok { background: #3BB273; color: #fff; }
.gr-cells i.bad { background: #D64545; color: #fff; }
@media (max-width: 640px) { .gr-st { grid-template-columns: 1fr 52px; } .gr-st input, .gr-cells { grid-column: 1 / -1; } .gr-st em { grid-row: 1; grid-column: 2; } }
/* ---- משחקים לכיתה ---- */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gm-card { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 18px; text-decoration: none; color: inherit; background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); transition: transform .15s; }
.gm-card:hover { transform: translateY(-2px); }
.gm-card b { font-size: 18px; }
.gm-card small { color: var(--muted); }
.gm-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.gm-cat { justify-self: start; font-size: 13px; font-weight: 700; color: #fff; background: var(--c); border-radius: 999px; padding: 2px 10px; }
.chip-btn.gm-chip { border-color: var(--c); }
.chip-btn.gm-chip.on { background: var(--c); color: #fff; }
.gm-detail { border-top: 6px solid var(--c); }
.gm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-tags span { font-size: 14px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.gm-tags span:first-child { background: var(--c); color: #fff; font-weight: 700; }
.gm-how { white-space: pre-line; font-size: 17px; line-height: 1.7; }
/* ---- יומן הספק ---- */
.ll-daybar { flex-direction: row; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ll-daybar > div { display: grid; text-align: center; flex: 1; }
.ll-daybar small { color: var(--muted); }
.ll-nostudy { flex-direction: row; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ll-list { display: grid; gap: 10px; margin-bottom: 12px; }
.ll-sub { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 8px; border-inline-start: 5px solid var(--line); }
.ll-sub.ll-done { border-inline-start-color: #3BB273; }
.ll-sub.ll-skip { opacity: .6; }
.ll-sub header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ll-sub header b { font-size: 18px; }
.ll-sub header small { color: var(--muted); flex: 1; }
.ll-sub header .check { margin-inline-start: auto; }
.ll-last { margin: 0; font-size: 15px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; }
.ll-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.ll-grid .f:first-child { grid-column: 1 / -1; }
.ll-yrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ll-yr { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 6px; border-top: 5px solid var(--line); }
.ll-yr.ok { border-top-color: #3BB273; } .ll-yr.warn { border-top-color: #F2A541; } .ll-yr.bad { border-top-color: #D64545; }
.ll-yr header { display: flex; justify-content: space-between; gap: 8px; } .ll-yr header span { color: var(--muted); font-size: 14px; }
.ll-bar { position: relative; height: 10px; background: var(--surface-2); border-radius: 6px; overflow: visible; }
.ll-bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.ll-bar em { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--text); }
.ll-tbl td, .ll-tbl th { vertical-align: top; }
tr.ll-miss td, tr.ll-miss th { color: #D64545; }
.ll-grades { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ll-grades textarea { width: 100%; }
@media print { .ll-print { box-shadow: none; } .ll-tbl { font-size: 12px; } }
/* בדיקת יומנים: מקצועות ביומן ההספק */
.dy-subj { display: grid; gap: 6px; }
.dy-subj__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line, #e5ddd3); border-radius: 10px; flex-wrap: wrap; }
.dy-subj__row > div:first-child { display: grid; min-width: 0; }
.dy-subj__row small { color: var(--muted, #6b5d50); }
.dy-subj .pill-row { flex-wrap: nowrap; }
.ll-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ll-acts small { white-space: nowrap; }
/* כרטיס התקנת האפליקציה בדף הבית */
.inst-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inst-card img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.inst-card > div { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.inst-card .link-row { margin: 0; }

.login__recent { display: flex; flex-wrap: wrap; gap: 6px; }
.login__recent .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }


/* המערכת השבועית של איש צוות */
.mw-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mw-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; gap: 6px; align-content: start; }
.mw-day h3 { margin: 0; font-size: 16px; text-align: center; }
.mw-l { display: grid; background: var(--surface-2); border-radius: 10px; padding: 6px 8px; }
.mw-l span { font-size: 13px; color: var(--muted); text-align: right; } .mw-l small { color: var(--muted); }
@media (max-width: 760px) { .mw-grid { grid-template-columns: 1fr; } }

/* רישום */
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rg-sib { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; margin-bottom: 6px; }
.rg-sib input { min-width: 0; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 10px; background: var(--surface); font-size: 16px; }
.rg-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.rg-miss { color: var(--c-red, #B3261E); font-weight: 600; }
.rp-wrap { display: flex; justify-content: center; }
.rp { position: relative; width: 100%; max-width: 820px; container-type: inline-size; }
.rp img { display: block; width: 100%; }
.rp-t { position: absolute; transform: translateY(-62%); font-size: 1.75cqw; line-height: 1.1; font-weight: 600; color: #14213d; white-space: nowrap; overflow: hidden; text-align: right; padding: 0 .4cqw; box-sizing: border-box; }
.rp-t[dir="ltr"] { text-align: right; }
.rp-c { text-align: center; padding: 0; }
.rp-o { position: absolute; height: 1.9cqw; transform: translateY(-50%); border: .22cqw solid #14213d; border-radius: 50%; }
@media print { .rp { width: 210mm; max-width: none; } .rp img { width: 210mm; height: 296.5mm; } .rp-wrap { display: block; } }

/* ימי הולדת: בלונים ובועות */
.bday { position: relative; overflow: hidden; }
.bday > *:not(.bd-sky) { position: relative; z-index: 1; }
.bd-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bd-b { position: absolute; left: var(--x); bottom: -70px; width: 26px; height: 33px; border-radius: 50% 50% 48% 48%; background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .75) 0 12%, transparent 26%), var(--bc); opacity: .6; animation: bd-up var(--t) linear var(--d) infinite; }
.bd-b::before { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 26px; background: rgb(0 0 0 / .25); }
.bd-b::after { content: ""; position: absolute; left: calc(50% - 4px); top: calc(100% - 2px); border: 4px solid transparent; border-top: 0; border-bottom: 6px solid var(--bc); }
.bd-b0 { --bc: #F2A93B; } .bd-b1 { --bc: #E4765A; } .bd-b2 { --bc: #5BA58C; } .bd-b3 { --bc: #6E9BD1; } .bd-b4 { --bc: #C9799F; }
.bd-o { position: absolute; left: var(--x); bottom: -30px; width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgb(110 155 209 / .55); background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / .9), rgb(190 215 240 / .18)); animation: bd-up var(--t) ease-in var(--d) infinite; }
@keyframes bd-up { 0% { transform: translate(0, 0); } 25% { transform: translate(8px, -90px); } 50% { transform: translate(-6px, -180px); } 75% { transform: translate(7px, -270px); } 100% { transform: translate(0, -380px); } }
@media (prefers-reduced-motion: reduce) { .bd-b, .bd-o { animation: none; bottom: 8px; opacity: .3; } }
.bd-seg { flex-wrap: wrap; } .bd-off { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media print { .bd-sky { display: none; } }
/* שעון הדקות */
.sc-box { max-width: 380px; text-align: center; } .sc-face { width: 240px; max-width: 100%; touch-action: none; cursor: pointer; margin: 0 auto; display: block; }
.sc-c { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; } .sc-tick { stroke: var(--muted); stroke-width: 1.5; } .sc-n { text-anchor: middle; font-size: 16px; font-weight: 700; fill: var(--text); } .sc-h { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; } .sc-k { fill: var(--accent); }
.sc-val { font-size: 20px; font-weight: 800; margin: 6px 0; } .sc-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
/* חצים */
.go-arrow { position: fixed; left: 14px; z-index: 34; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); box-shadow: 0 4px 14px rgb(0 0 0 / .14); display: grid; place-items: center; cursor: pointer; opacity: .92; }
.go-arrow[hidden] { display: none; } .go-down { top: 84px; } .go-up { bottom: calc(166px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .go-up { bottom: 106px; left: 32px; } .go-down { left: 32px; } }
/* כמה מסכים */
.split { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; }
.split-on body { overflow: hidden; } .split-on .go-arrow, .split-on .vc-fab { display: none; }
.split__bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; } .split__bar > b { display: inline-flex; gap: 6px; align-items: center; } .split__bar .btn { margin-inline-start: auto; }
.split__grid { flex: 1; min-height: 0; display: grid; gap: 8px; padding: 8px; }
.split--2 { grid-template-columns: 1fr 1fr; } .split--3 { grid-template-columns: 1fr 1fr 1fr; } .split--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.split__p { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.split__p header { display: flex; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--line); } .split__p select { flex: 1; min-width: 0; min-height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; font-size: 16px; }
.split__i { width: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.split__p iframe { flex: 1; width: 100%; border: 0; min-height: 0; }
.split__grid.has-full { display: block; } .split__grid.has-full .split__p:not(.full) { display: none; } .split__grid.has-full .full { height: 100%; }
@media (max-width: 760px) { .split__grid { grid-template-columns: 1fr !important; grid-template-rows: none !important; overflow-y: auto; } .split__p { min-height: 70vh; } }
.in-pane .vc-fab { transform: scale(.8); } .in-pane .ly-bar, .in-pane .inst-card { display: none; }
/* חלון ההדפסה */
.pp-modal { position: fixed; inset: 0; z-index: 120; background: rgb(30 17 8 / .5); display: grid; place-items: center; padding: 12px; }
.pp-box { background: var(--surface); color: var(--text); border-radius: 18px; width: min(1080px, 100%); height: min(800px, 100%); display: grid; grid-template-columns: 400px 1fr; overflow: hidden; }
.pp-side { padding: 16px 18px; overflow-y: auto; display: grid; gap: 12px; align-content: start; } .pp-side header { display: flex; justify-content: space-between; align-items: center; } .pp-side h2 { margin: 0; font-size: 21px; } .pp-x { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--text); width: 40px; height: 40px; }
.pp-f { display: grid; gap: 5px; } .pp-f b { font-size: 16px; } .pp-seg { display: flex; flex-wrap: wrap; gap: 6px; } .pp-seg button { min-width: 44px; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 700; font-size: 16px; cursor: pointer; } .pp-seg button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pp-row { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; } .pp-row input { min-height: 42px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 10px; font-size: 16px; width: 100%; background: var(--surface); color: var(--text); } .pp-checks { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 600; } .pp-checks input { width: 18px; height: 18px; }
.pp-hint { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 16px; } .pp-info { margin: 0; font-weight: 700; } .pp-btns { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--surface); padding: 8px 0; } .pp-btns .btn { flex: 1; }
.pp-prev { background: #EDE7DF; overflow: auto; padding: 12px; display: grid; justify-content: center; align-content: start; gap: 8px; } .pp-frame { border: 0; background: transparent; position: static; }
@media (max-width: 820px) { .pp-modal { padding: 0; } .pp-box { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; border-radius: 0; overflow-y: auto; } .pp-prev { min-height: 260px; } .pp-side { overflow: visible; } }
@media print { .pp-modal, .go-arrow, .split { display: none !important; } }
/* לימוד קריאה */
.rd-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; flex: none; }
.rd-sheets { display: grid; gap: 18px; justify-content: center; margin-top: 14px; }
.rd-sheet { width: 210mm; height: 296.8mm; background: #fff; color: #1d1a17; padding: 10mm 12mm; display: flex; flex-direction: column; box-sizing: border-box; box-shadow: 0 6px 24px rgb(0 0 0 / .12); overflow: hidden; }
@media screen and (max-width: 1150px) { .rd-sheets { zoom: .72; } } @media screen and (max-width: 820px) { .rd-sheets { zoom: .5; } } @media screen and (max-width: 560px) { .rd-sheets { zoom: .42; } }
.rd-h { display: flex; align-items: center; gap: 4mm; border-bottom: .6mm solid #C9A24B; padding-bottom: 3mm; } .rd-h img { width: 17mm; } .rd-h b { display: block; font-size: 17pt; } .rd-h span { font-size: 11pt; color: #6b5a48; } .rd-name { margin-inline-start: auto; font-size: 12pt; }
.rd-b { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; gap: 1mm; } .rd-lab { margin: 1.5mm 0 0; font-size: 11.5pt; font-weight: 700; color: #7a4a1c; }
.rd-row { display: grid; grid-template-columns: repeat(var(--n), 1fr); } .rd-row span { border: .25mm solid #E3D6C3; text-align: center; padding: 1.2mm 0 2mm; min-height: 12mm; font-family: 'Frank Ruhl Libre', 'David Libre', David, 'Times New Roman', serif; font-size: 29pt; line-height: 1.35; }
.rd-row.rd-xl span { font-size: 60pt; line-height: 1.25; } .rd-row.rd-big span { font-size: 40pt; } .rd-row.rd-w span { font-size: 25pt; } .rd-row.rd-s span { font-size: 22pt; padding: .6mm 0 1.4mm; min-height: 9mm; }
.rd-sheet.rd-s .rd-row span { font-size: 22pt; } .rd-sheet.rd-s .rd-line { font-size: 23pt; } .rd-sheet.rd-l .rd-row span { font-size: 34pt; } .rd-sheet.rd-l .rd-row.rd-w span { font-size: 29pt; } .rd-sheet.rd-l .rd-row.rd-xl span { font-size: 66pt; } .rd-sheet.rd-l .rd-row.rd-s span { font-size: 24pt; }
.rd-sheet.rd-s .rd-row span { padding: .8mm 0 1.2mm; min-height: 9mm; }
.rd-info { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2mm; } .rd-info div { border: .3mm solid #E3D6C3; border-radius: 3mm; padding: 2mm; text-align: center; display: grid; } .rd-info b { font: 700 26pt 'David Libre', David, serif; } .rd-info span, .rd-info em { font-size: 13pt; font-style: normal; } .rd-info small { font-size: 9.5pt; color: #6b5a48; }
.rd-line { margin: 0; font-family: 'Frank Ruhl Libre', 'David Libre', David, serif; font-size: 27pt; line-height: 1.5; } .rd-line--t { font-size: 25pt; } .rd-sheet.rd-l .rd-line { font-size: 30pt; } .rd-q { margin: 0; font: 20pt/1.4 'David Libre', David, serif; } .rd-title { margin: 0; text-align: center; font: 700 30pt 'David Libre', David, serif; }
.rd-f { display: flex; justify-content: space-between; border-top: .3mm solid #E3D6C3; padding-top: 2.5mm; font-size: 12pt; }
.rd-g { display: grid; gap: 4mm; margin-top: 5mm; font-size: 13.5pt; line-height: 1.55; } .rd-g h3 { margin: 0 0 1mm; font-size: 14.5pt; display: flex; gap: 2mm; align-items: center; color: #7a4a1c; } .rd-g p, .rd-g ol { margin: 0; } .rd-g ol { padding-inline-start: 7mm; } details .rd-g { font-size: 17px; gap: 14px; margin-top: 10px; } details .rd-g h3 { font-size: 18px; } details summary { cursor: pointer; }
.rd-cards { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); padding: 6mm; } .rd-cards div { border: .3mm dashed #999; display: grid; place-items: center; text-align: center; font: 34pt 'David Libre', David, serif; padding: 2mm; } .rd-cards--l { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, 1fr); } .rd-cards--l div { font-size: 22pt; }
.rd-kid .meter { margin-top: 4px; } .rd-kid > input { width: 100%; min-height: 42px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; background: var(--surface); } .rd-timer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .rd-timer [data-rdclock] { font-size: 34px; font-weight: 800; min-width: 60px; text-align: center; } .rd-timer input { width: 90px; min-height: 42px; border: 1.5px solid var(--line); border-radius: 12px; text-align: center; font-size: 16px; }
@media print { .rd-sheets { display: block; margin: 0; zoom: 1 !important; } .rd-sheet { box-shadow: none; break-after: page; } }
@media print { .print-area:has(.tt-page) { padding: 0; } .tt-page .print-head { margin-bottom: 2px; } .tt-page .print-head img { width: 40px; } .tt-page .print-head b { font-size: 13pt; } .tt-page .tt-grid { font-size: 9pt; } .tt-page .tt-grid th, .tt-page .tt-grid td { padding: 1px 3px; line-height: 1.12; } .tt-page .tt-grid small { font-size: 7.5pt; } .tt-page:last-child { break-after: auto; } .tt-none { display: none; } }
@media (max-width: 760px) { .go-arrow { width: 36px; height: 36px; left: 4px; opacity: .78; } }

/* התכתבויות */
.ch { display: grid; grid-template-columns: 300px 1fr; gap: 12px; height: calc(100vh - 190px); min-height: 460px; }
.ch__list { overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); } .ch__list h3 { margin: 0; padding: 10px 14px 4px; font-size: 16px; color: var(--muted); }
.ch__c { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: right; font: inherit; color: var(--text); cursor: pointer; } .ch__c.on { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); } .ch__c > span { flex: 1; min-width: 0; display: grid; } .ch__c small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ch__c em { font-style: normal; background: var(--accent); color: var(--on-accent); border-radius: 999px; min-width: 24px; text-align: center; padding: 1px 7px; font-weight: 800; }
.ch__box { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; } .ch__h { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .ch__h b { flex: 1; }
.ch__m { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); } .ch__day { align-self: center; font-size: 14px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 2px 12px; }
.ch__b { max-width: min(76%, 560px); padding: 8px 12px; border-radius: 16px; background: var(--surface); align-self: flex-end; overflow-wrap: anywhere; } .ch__b.me { align-self: flex-start; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); } .ch__b small { display: block; color: var(--muted); font-size: 13px; } .ch__b img { max-width: 220px; border-radius: 10px; }
.ch__f { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; } .ch__f .rte { flex: 1; min-width: 0; } .ch__f .rte__ed { min-height: 48px; max-height: 160px; overflow-y: auto; } .ch__back { display: none; }
@media (max-width: 760px) { .ch { grid-template-columns: 1fr; height: calc(100vh - 230px); } .ch.open .ch__list, .ch:not(.open) .ch__box { display: none; } .ch__back { display: inline-flex; } .ch__f { flex-wrap: wrap; } .ch__f .rte { flex-basis: 100%; } }
/* לוח שנה כפול */
.cal { position: fixed; z-index: 130; width: 344px; max-width: calc(100vw - 16px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px rgb(0 0 0 / .22); padding: 12px; }
.cal__h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .cal__h > div { flex: 1; text-align: center; display: grid; line-height: 1.25; } .cal__h small { color: var(--muted); } .cal__h button, .cal__t button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; min-width: 38px; min-height: 38px; font: inherit; font-weight: 700; cursor: pointer; }
.cal__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; } .cal__g span { text-align: center; font-size: 14px; color: var(--muted); font-weight: 700; } .cal__g button { border: 0; border-radius: 10px; background: var(--surface-2); color: var(--text); min-height: 44px; display: grid; place-content: center; line-height: 1.15; font: inherit; font-weight: 800; cursor: pointer; } .cal__g button small { font-weight: 500; font-size: 12px; color: var(--muted); } .cal__g .sh { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); } .cal__g .td { outline: 2px solid var(--accent); } .cal__g .on { background: var(--accent); color: var(--on-accent); } .cal__g .on small { color: var(--on-accent); } .cal__t { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; } .cal__t button { padding: 0 12px; } .cal__t input { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font-size: 16px; }
.dual-live { display: block; color: var(--muted); font-size: 14.5px; font-weight: 600; }
/* כתב בהקלדה */
.rte__size { max-width: 120px; } .rte__font { max-width: 150px; } .rte__field { color: var(--text) !important; }
.ty-btn { position: absolute; z-index: 60; width: 34px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-weight: 800; font-size: 15px; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .14); } .ty-pop { position: fixed; z-index: 140; inset-inline: 0; bottom: 0; margin: 0 auto; width: min(520px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 16px; box-shadow: 0 -8px 30px rgb(0 0 0 / .2); display: grid; gap: 10px; } .ty-pop select, .ty-pop input[type=range] { width: 100%; min-height: 42px; font-size: 16px; } .ty-demo { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; overflow: hidden; }
:root[data-ty] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), textarea):not([data-noty]) { font-size: var(--ty-size) !important; font-family: var(--ty-font) !important; height: auto; }
@media print { .ty-btn, .ty-pop, .cal { display: none !important; } }
body:has(.ch) .vc-fab { display: none; }
