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

/* ---------- מסך צר ---------- */
@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; }
}
