/* מסכים חדשים: משוב, אסיפת הורים, העוזר, עלון, סרטונים ושיווק. משתמשים רק במשתני הערכה (צבעים, רדיוסים) של app.css */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.more-q { margin: 14px 0 6px; }
.more-g { margin-top: 18px; }
.more-g .list > div { display: contents; }

/* ---------- משוב ---------- */
.fx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.fx-tile { display: grid; gap: 4px; padding: 16px 14px; text-align: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.fx-tile b { font-size: 16px; }
.fx-tile small { color: var(--muted); font-size: 13.5px; }
.fx-tile:hover, .fx-tile:focus-visible { border-color: var(--accent); outline: none; }
.fx-tips { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; line-height: 1.6; }
.fx-check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 16px; cursor: pointer; }
.fx-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.fx-q { padding: 14px; display: grid; gap: 10px; }
.fx-link { word-break: break-all; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.fx-res h3 { font-size: 16.5px; margin-bottom: 6px; }
.fx-avg { margin: 0 0 10px; color: var(--muted); }
.fx-avg b { font-family: var(--font-head); font-size: 30px; color: var(--text); margin-inline-end: 4px; }
.fx-bar { display: grid; grid-template-columns: minmax(84px, 30%) 1fr 34px; align-items: center; gap: 10px; margin: 6px 0; font-size: 14.5px; }
.fx-bar i { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fx-bar em { display: block; height: 100%; border-radius: 99px; min-width: 2px; }
.fx-bar b { text-align: end; font-variant-numeric: tabular-nums; }
.fx-delta { font-weight: 700; margin-inline-start: 6px; }
.fx-delta.up { color: var(--c-green); }
.fx-delta.down { color: var(--c-red); }
.fx-insight p { margin: 4px 0; }
.fx-text { padding: 12px 14px; line-height: 1.6; }
.fx-sum { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); line-height: 1.7; margin-bottom: 12px; }

/* ---------- אסיפת הורים ---------- */
.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.pt-col { padding: 14px; }
.pt-col h3 { font-size: 16.5px; }
.pt-slots { display: grid; gap: 6px; margin-top: 10px; }
.pt-slot { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-inline-start: 5px solid var(--c); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; text-align: start; cursor: pointer; }
.pt-slot b { font-variant-numeric: tabular-nums; min-width: 46px; }
.pt-slot span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-slot.sel { outline: 2px solid var(--accent); }
.pt-edit { border-color: var(--accent); }
.pt-break { padding: 10px 14px; text-align: center; color: var(--muted); font-weight: 700; }
.pt-now { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.pt-print { display: none; }

/* ---------- העוזר ---------- */
.bt-wrap { display: flex; flex-direction: column; min-height: calc(100dvh - 230px); }
.bt-log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 8px 0 14px; overflow-y: auto; max-height: calc(100dvh - 260px); }
.bt-msg { max-width: 86%; display: grid; gap: 2px; }
.bt-msg > div { padding: 11px 15px; border-radius: 18px; line-height: 1.55; font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
.bt-msg small { font-size: 12px; color: var(--muted); padding: 0 8px; }
.bt-msg--me { align-self: flex-end; }
.bt-msg--me > div { background: var(--accent); color: var(--on-accent); border-end-end-radius: 6px; }
.bt-msg--bot { align-self: flex-start; }
.bt-msg--bot > div { background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 6px; }
.bt-msg .i { width: 18px; height: 18px; vertical-align: -3px; }
.bt-typing > div { display: flex; gap: 5px; padding: 15px 18px; }
.bt-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: bt-dot 1.2s infinite ease-in-out; }
.bt-typing i:nth-child(2) { animation-delay: .15s; }
.bt-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bt-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.bt-bar { position: sticky; bottom: 84px; display: flex; align-items: flex-end; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: var(--glass); }
.bt-bar textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 10px 6px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; resize: none; outline: none; field-sizing: content; }
.bt-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer; }
.bt-icon .i { width: 22px; height: 22px; }
.bt-rec { background: var(--c-red); }
.bt-dot { width: 14px; height: 14px; border-radius: 3px; background: #fff; }
.bt-send { min-height: 44px; padding: 0 18px; border-radius: 22px; }
.bt-hello .chips { margin-top: 10px; }
.bt-hello .chip-btn { white-space: normal; height: auto; min-height: 38px; padding: 8px 14px; text-align: start; }
@media (min-width: 900px) { .bt-bar { bottom: 16px; } }
.bt-short { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.bt-short > span:nth-child(2) { flex: 1; display: grid; }
.bt-short small { color: var(--muted); font-size: 14px; }
.bt-short > .i { width: 24px; height: 24px; color: var(--accent); }

/* ---------- עלון ---------- */
.nl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.nl-edit, .nl-view, .vd-form, .vd-stage { min-width: 0; }
.vd-layout { grid-template-columns: minmax(0, 1fr); }
.nl-layout .nl-view { display: none; }
.nl-layout--view .nl-edit { display: none; }
.nl-layout--view .nl-view { display: block; }
@media (min-width: 1100px) {
  .nl-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .nl-layout .nl-edit, .nl-layout .nl-view { display: block; }
  .nl-view { position: sticky; top: 16px; }
}
.nl-ed__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nl-tog { margin: 0; font-size: 14px; color: var(--muted); }
.nl-ed .chip-btn { margin-top: 8px; }
.nl-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.nl-thumbs span { position: relative; }
.nl-thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; display: block; }
.nl-thumbs button { position: absolute; inset: auto 4px 4px auto; height: 32px; padding: 0 8px; }
.nl-paper { background: #fffdf8; color: #1a1a1a; border-radius: 18px; padding: 30px 28px; box-shadow: var(--shadow); font: 16px/1.65 Heebo, Arial, sans-serif; }
.nl-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 3px solid #C4943A; margin-bottom: 8px; }
.nl-head img { width: 72px; height: 72px; object-fit: contain; }
.nl-head h2 { font-family: 'Frank Ruhl Libre', serif; font-size: 30px; line-height: 1.15; color: #0A1120; margin: 0; }
.nl-head p { margin: 4px 0 0; color: #6b5a33; font-weight: 700; font-size: 15px; }
.nl-sec { padding: 14px 0; border-bottom: 1px solid #ece3cf; }
.nl-sec h3 { font-family: 'Frank Ruhl Libre', serif; font-size: 21px; color: #8a6420; margin: 0 0 6px; }
.nl-sec p { margin: 0 0 6px; }
.nl-sec ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 3px; }
.nl-sec--dates { background: #f6efdd; margin: 10px -12px 4px; padding: 14px 16px; border-radius: 14px; border: 0; }
.nl-sec--dates ul { list-style: none; padding: 0; }
.nl-sec--dates li { font-weight: 700; }
.nl-sign { text-align: start; font-weight: 800; color: #0A1120; }
.nl-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nl-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.nl-shabbat { text-align: center; border: 0; }
.nl-shabbat p b { font-size: 20px; color: #0A1120; }
.nl-foot { margin-top: 14px; padding: 12px; border-radius: 12px; background: #0A1120; color: #f4efe2; text-align: center; font-size: 14.5px; line-height: 1.6; }
.nl-out { flex-wrap: wrap; }

/* ---------- סרטונים ---------- */
.vd-layout { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 1000px) { .vd-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; } .vd-stage { position: sticky; top: 16px; } }
.vd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.vd-th { display: grid; gap: 6px; }
.vd-th img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.vd-th input { min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.vd-th div { display: flex; gap: 6px; }
.vd-th .chip-btn { flex: 1; justify-content: center; height: 34px; padding: 0 8px; }
.vd-screen { position: relative; max-height: 62vh; max-width: 100%; margin: 12px auto 0; border-radius: 16px; overflow: hidden; background: #0A1120; box-shadow: var(--shadow); }
.vd-screen canvas { width: 100%; height: 100%; display: block; }
.vd-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #cfc6b0; font-weight: 700; }
.vd-progress { height: 6px; margin: 10px 0 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.vd-progress i { display: block; height: 100%; background: var(--accent); }

/* ---------- שיווק ---------- */
.mk-item { align-items: center; }
.mk-item .item__end { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mk-prev { margin-top: 14px; max-width: 420px; }
.mk-flyer { margin-top: 14px; padding: 28px 20px; border-radius: 18px; background: #fffdf8; color: #1a1a1a; text-align: center; display: grid; justify-items: center; gap: 10px; }
.mk-flyer h2 { font-family: 'Frank Ruhl Libre', serif; font-size: 30px; color: #0A1120; margin: 0; }
.mk-flyer__logo { width: 90px; }
.mk-flyer #mk-qr { padding: 12px; background: #fff; border-radius: 12px; border: 3px solid #C4943A; }
.mk-flyer small { color: #6b5a33; font-weight: 700; }

/* ---------- הפקת לקחים ---------- */
.opts-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opts-row .chip-btn { min-width: 48px; justify-content: center; cursor: pointer; }
.ls-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 14px; margin: 8px 0; }
.ls-staff .fx-check { margin: 6px 0; }
.ls-task { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.ls-prev { border-color: var(--accent); }
details.card > summary { cursor: pointer; padding: 4px 0; }

/* ---------- מסך צר ---------- */
@media (max-width: 420px) {
  .pt-row { grid-template-columns: 1fr; }
  .nl-paper { padding: 22px 16px; }
  .nl-head h2 { font-size: 24px; }
  .bt-msg { max-width: 94%; }
}

/* ---------- הדפסה ---------- */
@media print {
  body.pt-printing .pt-print, body.pt-printing .pt-print * { visibility: visible; }
  body.pt-printing .pt-print { display: block; position: absolute; inset: 0 0 auto 0; color: #111; background: #fff; }
  .pt-print section { page-break-after: always; padding: 10px; }
  .pt-print table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .pt-print th, .pt-print td { border: 1px solid #999; padding: 6px 8px; text-align: start; }
  body.nl-printing #nl-paper, body.nl-printing #nl-paper * { visibility: visible; }
  body.nl-printing #nl-paper { position: absolute; inset: 0 0 auto 0; box-shadow: none; border-radius: 0; }
  body.mk-printing #mk-flyer-paper, body.mk-printing #mk-flyer-paper * { visibility: visible; }
  body.mk-printing #mk-flyer-paper { position: absolute; inset: 0 0 auto 0; }
  body.print-app .app, body.print-app .app * { visibility: visible; }
  body.print-app .app { position: absolute; inset: 0 0 auto 0; color: #111; }
  body.print-app .app .btn, body.print-app .app .seg-view, body.print-app .app .btn-row { display: none !important; }
}

/* ---------- פדגוגיה ---------- */
.pg-tabs { overflow-x: auto; }
.pg-scroll { overflow-x: auto; margin: 0 -4px; }
.pg-table, .pg-heat { border-collapse: separate; border-spacing: 0 4px; font-size: 15px; min-width: 100%; }
.pg-table th, .pg-table td, .pg-heat th, .pg-heat td { padding: 4px 5px; text-align: center; white-space: nowrap; }
.pg-table thead th, .pg-heat thead th { font-size: 13px; color: var(--muted); font-weight: 700; white-space: normal; min-width: 54px; }
.pg-table tbody th, .pg-heat tbody th { text-align: start; font-weight: 700; position: sticky; inset-inline-start: 0; background: var(--surface); }
.pg-n { width: 54px; min-height: 40px; padding: 4px; text-align: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; }
.pg-n:focus { outline: none; border-color: var(--accent); }
.pg-sub td { padding-top: 0; }
.pg-subrow { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pg-subrow input, .pg-subrow textarea { min-height: 38px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.pg-diff { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-diff span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.pg-diff span.up { background: color-mix(in srgb, var(--c-green) 22%, transparent); }
.pg-diff span.down { background: color-mix(in srgb, var(--c-red) 22%, transparent); }
.pg-cmp .f label { font-size: 14px; }
.pg-maplist { display: grid; gap: 6px; margin: 10px 0; }
.pg-mrow { display: grid; grid-template-columns: 1fr 70px 70px 80px; align-items: center; gap: 8px; font-size: 16px; }
.pg-heat td { background: color-mix(in srgb, var(--c) 30%, var(--surface)); border-radius: 8px; min-width: 54px; }
.pg-heat td small { display: block; font-size: 11px; opacity: .8; }
.pg-letter { break-inside: avoid; }
/* מסך הבית: במחשב הכרטיסים מסודרים בשתי עמודות, בטלפון אחד מתחת לשני */
.home-cols > .section { min-width: 0; }
@media (min-width: 1100px) {
  .app:has(.home-cols) { max-width: 1280px; }
  .home-cols { columns: 2; column-gap: 28px; }
  .home-cols > .section, .home-cols > .card, .home-cols > a, .home-cols > div { break-inside: avoid; display: inline-block; width: 100%; margin-top: 0; margin-bottom: 22px; vertical-align: top; }
  .home-cols .list { grid-template-columns: 1fr; }
}

/* ישיבה פדגוגית: כרטיס לכל תלמיד, הפרמטרים בעמודות מסודרות עם הכותרת מעל כל תיבה */
.pg-form, .pg-studs, .pg-stu { min-width: 0; max-width: 100%; }
.pg-form { grid-template-columns: minmax(0, 1fr); }
.pg-form .btn-row { flex-wrap: wrap; }
.pg-studs { display: grid; gap: 10px; margin: 8px 0 14px; }
.pg-stu { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.pg-stu__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; }
.pg-stu__head .pg-light { margin-inline-start: auto; }
.pg-stu__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; flex: none; }
.pg-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.pg-cell { display: grid; gap: 4px; justify-items: center; text-align: center; min-width: 0; }
.pg-cell span { font-size: 12.5px; line-height: 1.2; color: var(--muted); font-weight: 700; min-height: 2.4em; display: flex; align-items: flex-end; }
.pg-cell .pg-n { width: 100%; max-width: 64px; }
.pg-stu .pg-subrow { border-bottom: 0; padding-bottom: 0; }
.pg-stu .pg-subrow input, .pg-stu .pg-subrow textarea { background: var(--surface); }
@media (max-width: 900px) { .pg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pg-subrow { grid-template-columns: 1fr; } .pg-mrow { grid-template-columns: 1fr 64px 64px; } .pg-mrow small { display: none; } }
@media print {
  body.pg-printing #pg-print, body.pg-printing #pg-print * { visibility: visible; }
  body.pg-printing #pg-print { position: absolute; inset: 0 0 auto 0; background: #fff; color: #111; }
  body.pg-printing #pg-print .btn-row { display: none; }
  body.pgl-printing #pg-letters-print, body.pgl-printing #pg-letters-print * { visibility: visible; }
  body.pgl-printing #pg-letters-print { position: absolute; inset: 0 0 auto 0; color: #111; }
  body.pgl-printing .pg-letter { page-break-after: always; background: #fff; border: 0; }
}
/* הקו הטלפוני (phone.js) */
.item__side { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: none; font-weight: 700; }
.item__side small { font-size: 13px; color: var(--muted); font-weight: 400; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ph-stats b { display: block; font-size: 26px; font-weight: 800; color: var(--accent); }
.ph-stats small { font-size: 13.5px; color: var(--muted); }
.ph-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ph-row h3 { margin: 0 0 4px; }
.ph-row .btn { flex: none; min-width: 84px; }
/* מערכת שעות: שם המורה ברור */
.sc-row .item__main small { font-size: 15px; font-weight: 600; color: var(--text); opacity: .82; white-space: normal; }
/* תקן משרד החינוך (core.js) */
.core-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.core-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.core-cell.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(196 148 58 / .35); }
.core-cell b { font-size: 16px; }
.core-pct { font-size: 18px; font-weight: 800; }
.core-pct--ok { color: var(--c-green, #2e9e5b); }
.core-pct--mid { color: var(--c-orange, #d9822b); }
.core-pct--bad { color: var(--c-red, #d64545); }
.core-row { cursor: default; }
.core-row .item__main small { white-space: normal; }
.core-note { font-size: 14px; margin-top: 8px; }
.core-map { display: grid; gap: 8px; margin-top: 10px; }
.core-map label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.core-map select { max-width: 55%; font: inherit; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
/* אבטחת מידע (security.js) */
.sec-row { display: flex; gap: 8px; margin: 10px 0; }
.sec-row select { flex: 1; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.sec-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; text-align: center; }
.sec-sum div { padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.sec-sum b { display: block; font-size: 22px; font-weight: 800; color: var(--accent); }
.sec-sum span { font-size: 13.5px; color: var(--muted); }
.sec-log { list-style: none; margin: 0; padding: 0; }
.sec-log li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.sec-log li:last-child { border-bottom: 0; }
.sec-log time { display: block; font-size: 13px; color: var(--muted); direction: ltr; text-align: right; }
.sec-log em { font-style: normal; font-weight: 700; color: var(--accent); }
.sec-log .act-delete em { color: var(--c-red, #d64545); }
.sec-log .act-export em, .sec-log .act-print em { color: var(--c-orange, #d9822b); }
.sec-note { font-size: 14px; margin-top: 10px; }
.sec-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sec-check li { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.sec-check li svg { width: 20px; height: 20px; flex: none; }
.sec-check .ok svg { color: var(--c-green, #2e9e5b); }
.sec-check .no { color: var(--muted); }
.sec-check .no svg { color: var(--c-orange, #d9822b); }
.sec-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sec-doc { font-size: 15.5px; line-height: 1.65; }
.sec-doc h1 { font-size: 22px; margin: 0 0 4px; }
.sec-doc h2 { font-size: 17px; margin: 18px 0 6px; color: var(--accent); }
.sec-doc ul { padding-right: 18px; margin: 6px 0; }
.sec-doc p { margin: 6px 0; }
.sec-meta, .sec-fine { color: var(--muted); font-size: 14px; }
.sec-sign { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; }
/* סנכרון Smart (smart.js) */
.sm-list { margin: 6px 0; padding-right: 18px; font-size: 14.5px; line-height: 1.5; }
.sm-pay .st-fee__head { gap: 10px; }
.sm-pay .item__main { min-width: 0; flex: 1; }
.sm-pay .item__main small { white-space: normal; overflow-wrap: anywhere; }
.sm-pay .item__end { flex: none; max-width: 42%; }
.sm-pay .item__end small { white-space: normal; }
.sm-split { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.sm-split__row { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.sm-split small { font-size: 13.5px; color: var(--muted); }
.sm-bar { height: 8px; border-radius: 5px; background: var(--surface-2); margin: 5px 0 3px; overflow: hidden; }
.sm-bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.sm-done { color: var(--c-green, #2e9e5b); font-weight: 700; margin-top: 8px; }
/* מערכת שעות להדפסה / PDF (school.js printTimetable) */
#tt-print { display: none; }
@media print {
  @page { size: A4 landscape; margin: 9mm; }
  body.tt-printing { background: #fff !important; }
  body.tt-printing > *:not(#tt-print) { display: none !important; }
  body.tt-printing #tt-print { display: block; color: #0A1120; font-family: Heebo, Arial, sans-serif; }
  #tt-print .tp-page { page-break-after: always; break-after: page; }
  #tt-print .tp-page:last-child { page-break-after: auto; break-after: auto; }
  #tt-print header { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid #C4943A; padding-bottom: 6px; margin-bottom: 8px; }
  #tt-print header img { height: 56px; width: auto; }
  #tt-print h1 { font-family: 'Frank Ruhl Libre', serif; font-size: 26px; margin: 0; }
  #tt-print header p { margin: 2px 0 0; font-size: 14px; color: #4a5468; }
  #tt-print .tp-org { margin-inline-start: auto; text-align: left; font-weight: 800; font-size: 15px; }
  #tt-print .tp-org span { font-weight: 400; color: #4a5468; font-size: 13px; }
  #tt-print table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
  #tt-print th { background: #0A1120 !important; color: #fff !important; font-size: 14px; padding: 6px 4px; border-radius: 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #tt-print th.tp-time { width: 70px; background: #f3ede1 !important; color: #0A1120 !important; font-size: 13px; }
  #tt-print th.tp-time small { display: block; font-weight: 400; font-size: 10.5px; color: #6b7280; }
  #tt-print td { background: #faf8f3 !important; border: 1px solid #ece4d3; border-radius: 6px; padding: 4px 5px; text-align: center; vertical-align: middle; height: 36px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #tt-print td b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
  #tt-print td i { display: block; font-style: normal; font-size: 11px; color: #8a6420; margin-top: 1px; }
  #tt-print td hr { border: 0; border-top: 1px dashed #d8cdb5; margin: 3px 0; }
  #tt-print td.tp-brk { background: #eef1f6 !important; height: 20px; padding: 1px; }
  #tt-print td.tp-brk b { font-size: 11px; font-weight: 400; color: #6b7280; }
  #tt-print td.tp-empty { background: transparent !important; border: 0; }
  #tt-print footer { margin-top: 6px; font-size: 11px; color: #6b7280; }
}
/* אותו עיצוב גם מחוץ להדפסה, בשביל הורדת ה-PDF */
#tt-print { color: #0A1120; font-family: Heebo, Arial, sans-serif; background: #fff; direction: rtl; }
#tt-print .tp-page { padding: 6px 4px; background: #fff; }
#tt-print header { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid #C4943A; padding-bottom: 6px; margin-bottom: 8px; } #tt-print header img { height: 56px; width: auto; } #tt-print h1 { font-family: 'Frank Ruhl Libre', serif; font-size: 26px; margin: 0; } #tt-print header p { margin: 2px 0 0; font-size: 14px; color: #4a5468; } #tt-print .tp-org { margin-inline-start: auto; text-align: left; font-weight: 800; font-size: 15px; } #tt-print .tp-org span { font-weight: 400; color: #4a5468; font-size: 13px; } #tt-print table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; } #tt-print th { background: #0A1120 !important; color: #fff !important; font-size: 14px; padding: 6px 4px; border-radius: 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; } #tt-print th.tp-time { width: 70px; background: #f3ede1 !important; color: #0A1120 !important; font-size: 13px; } #tt-print th.tp-time small { display: block; font-weight: 400; font-size: 10.5px; color: #6b7280; } #tt-print td { background: #faf8f3 !important; border: 1px solid #ece4d3; border-radius: 6px; padding: 4px 5px; text-align: center; vertical-align: middle; height: 36px; -webkit-print-color-adjust: exact; print-color-adjust: exact; } #tt-print td b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; } #tt-print td i { display: block; font-style: normal; font-size: 11px; color: #8a6420; margin-top: 1px; } #tt-print td hr { border: 0; border-top: 1px dashed #d8cdb5; margin: 3px 0; } #tt-print td.tp-brk { background: #eef1f6 !important; height: 20px; padding: 1px; } #tt-print td.tp-brk b { font-size: 11px; font-weight: 400; color: #6b7280; } #tt-print td.tp-empty { background: transparent !important; border: 0; } #tt-print footer { margin-top: 6px; font-size: 11px; color: #6b7280; }

/* ---------- מכתבים, פגישות הורים וייעוץ (care.js) ---------- */
.cr-tabs { overflow-x: auto; }
.cr-form { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.cr-form h3 { margin: 0; }
.cr-form .btn-row { flex-wrap: wrap; }
.cr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.cr-grid .f { margin: 0; }
.cr-form input:not([type=checkbox]):not([type=radio]), .cr-form select, .cr-form textarea { width: 100%; box-sizing: border-box; }
.cr-staff .st-check { display: flex; align-items: center; gap: 8px; }
.cr-staff .st-check input { width: 18px; height: 18px; flex: none; }
.cr-who { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 10px; min-width: 0; }
.cr-who legend { padding: 0 6px; font-weight: 700; }
.cr-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; max-height: 210px; overflow-y: auto; }
.cr-staff .st-check { font-size: 15px; }
.cr-list .item__main small { white-space: normal; }
.cr-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cr-late { color: var(--c-red); font-weight: 700; }
.cr-pre { white-space: pre-line; display: block; }
.cr-pu-acts { flex-wrap: wrap; margin-bottom: 10px; }
.cr-split { display: grid; gap: 18px; min-width: 0; }
.cr-split > * { min-width: 0; }
@media (min-width: 1100px) {
  .app:has(.cr-split) { max-width: 1280px; }
  .cr-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .cr-split .list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .cr-grid { grid-template-columns: 1fr; } .cr-item { flex-wrap: wrap; } .cr-item .item__end { width: 100%; } }
/* מסמכים וסיכום חכם בתיק התלמיד */
.cr-docs, .cr-sum { grid-template-columns: minmax(0, 1fr); min-width: 0; margin-bottom: 12px; }
.cr-up { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cr-up select { min-height: 44px; border-radius: 12px; padding: 0 10px; background: var(--surface-2); color: var(--text); border: 1.5px solid var(--line); font: inherit; }
.cr-up label.btn { cursor: pointer; }
.cr-sum h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.cr-sum input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.cr-sumtext { white-space: pre-line; line-height: 1.7; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-top: 8px; }
.cr-sumtext .cr-h { display: block; margin-top: 8px; color: var(--accent); }
.cr-sum details summary { cursor: pointer; font-weight: 700; margin-top: 6px; }
.cr-wa { grid-template-columns: minmax(0, 1fr); border: 1.5px solid color-mix(in srgb, var(--c-green) 50%, transparent); margin-bottom: 14px; }

/* לוח שיבוצים של מורי השילוב */
.q-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.q-day { grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; align-content: start; }
.q-day h3 { margin: 0 0 2px; font-size: 16px; color: var(--accent); }
.q-slot { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.q-slot:first-of-type { border-top: 0; }
.q-slot b { font-size: 14px; color: var(--muted); }
.q-slot small { display: block; color: var(--muted); font-size: 13px; }
/* תמלול: כפתור מיקרופון בכל שדה טקסט (dictate.js) */
.dict-wrap { position: relative; display: block; min-width: 0; width: 100%; }
.dict-field { padding-inline-end: 44px !important; }
.dict-btn { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; z-index: 1; }
.dict-btn--area { top: 6px; transform: none; }
.dict-btn:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dict-btn.is-rec { color: #fff; background: var(--c-red); animation: dict-pulse 1.2s ease-in-out infinite; }
.dict-btn.is-busy { color: var(--accent); }
.dict-btn.is-busy svg { animation: dict-spin 1s linear infinite; }
@keyframes dict-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c-red) 25%, transparent); } }
@keyframes dict-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dict-btn.is-rec, .dict-btn.is-busy svg { animation: none; } }
/* התקנה כאפליקציה (install.js) */
.inst-card { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); text-align: start; }
.inst-card--login { width: min(420px, 100%); margin-top: 14px; }
.inst-head { display: flex; align-items: center; gap: 12px; }
.inst-head > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.inst-head small { color: var(--muted); font-size: 14px; }
.inst-head .item__av { color: var(--accent); flex: none; }
.inst-x { border: 0; background: transparent; color: var(--muted); font-size: 18px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex: none; }
.inst-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; line-height: 1.5; }
/* תפריט הצד במחשב: כל המסכים לפי נושאים, במקום "עוד" */
.nav-side { display: none; }
@media (min-width: 960px) {
  .nav, [data-theme] .nav { overflow-y: auto; scrollbar-width: thin; }
  .nav .nav-morebtn { display: none !important; }
  .nav > a, .nav > .nav-side { flex: none; }
  .nav-side { display: grid; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .nav-g { display: grid; gap: 2px; }
  .nav-g small { padding: 4px 14px 2px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .nav .nav-sub, [data-theme] .nav .nav-sub { height: 38px !important; font-size: 14.5px !important; gap: 10px !important; padding: 0 12px !important; border-radius: 12px; }
  .nav .nav-sub svg { width: 18px; height: 18px; }
  .nav .nav-sub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* קיצורי דרך בדף הבית (favs.js) */
.favs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.fav { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; color: var(--text); text-decoration: none; min-width: 0; }
.fav__i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.fav__l { font-size: 13.5px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 960px) { .favs { display: none; } }
/* שליחת מכתב ודוח חודשי */
.cr-send { grid-template-columns: minmax(0, 1fr); border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); margin-bottom: 14px; }
.cr-send h3 { margin: 0; }
.cr-send .btn-row { flex-wrap: wrap; }
.cr-bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr 34px; align-items: center; gap: 8px; font-size: 15px; }
.cr-bar i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(to left, var(--accent) var(--w), color-mix(in srgb, var(--accent) 12%, transparent) var(--w)); }
.cr-bar b { text-align: center; }
/* הפקת רשימות (export.js) */
.ex-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.ex-f { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ex-f input { width: 18px; height: 18px; flex: none; }
.ex-go { position: sticky; bottom: 90px; z-index: 2; }
.ex-prev { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.ex-prev table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.ex-prev th, .ex-prev td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.ex-prev th { color: var(--muted); font-weight: 700; background: var(--surface-2); }
@media (min-width: 960px) { .ex-go { bottom: 16px; } }
/* העוזר: צירוף הרבה קבצים ובדיקה לפני שמירה (inbox.js) */
.ib-card { grid-template-columns: minmax(0, 1fr); border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); margin: 10px 0; }
.ib-card h3 { margin: 0; }
.ib-row { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.ib-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.ib-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.ib-head select, .ib-grid select, .ib-grid input { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; padding: 0 10px; width: 100%; box-sizing: border-box; }
.ib-head select { width: auto; }
.ib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ib-grid .f { margin: 0; }
.ib-card .btn-row { flex-wrap: wrap; }
@media (max-width: 600px) { .ib-grid { grid-template-columns: 1fr; } }
/* כניסה בשם איש צוות */
.as-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 -16px 10px; padding: 10px 16px; background: var(--c-orange, #e8913a); color: #1a1205; font-size: 15px; }
.as-bar span { flex: 1; min-width: 0; }
.as-bar .btn { background: #fff; color: #1a1205; border: 0; }