/* סיכומון AI – עיצוב: דף מחברת משובץ, כחול/סגול, מרקר צהוב. מותאם לאייפד קודם. */
:root {
  --bg: #F7F9FE; --paper: #FFFFFF; --grid: #E6ECF8; --ink: #0F172A; --ink-soft: #475569;
  --blue: #2563EB; --on-blue: #FFFFFF; --violet: #6D28D9; --marker: #FDE047; --pink: #DB2777;
  --red: #DC2626; --green: #16A34A; --line: #D5DEF2;
  --font-display: "Rubik", "Arial Hebrew", "Segoe UI", sans-serif;
  --font-body: "Heebo", "Arial Hebrew", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 18px;
  --tabbar-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1120; --paper: #121b30; --grid: #17223a; --ink: #E7ECF7; --ink-soft: #A3B0C8;
    --blue: #5B8DEF; --on-blue: #0B1120; --violet: #A78BFA; --marker: #FACC15; --pink: #F472B6;
    --red: #F87171; --green: #4ADE80; --line: #26324d; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background-color: var(--bg); color: var(--ink);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; background-attachment: fixed;
  font: 400 17px/1.6 var(--font-body); -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* מבנה: סרגל צד באייפד לרוחב, סרגל תחתון בטלפון/אייפד לאורך */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100%; }
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--paper); border-left: 2px solid var(--ink);
  display: flex; flex-direction: column; gap: 24px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)) 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 900 21px/1 var(--font-display); }
.brand svg { width: 32px; height: 32px; }
.tabs { display: grid; gap: 6px; }
.tabs a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  color: var(--ink-soft); text-decoration: none; font-weight: 700;
}
.tabs a svg { width: 24px; height: 24px; flex: none; }
.tabs a[aria-current="page"] { background: var(--blue); color: var(--on-blue); }
.tabs a.rec-tab { color: var(--red); }
.tabs a.rec-tab[aria-current="page"] { background: var(--red); color: #fff; }
.beta { margin-top: auto; font: 500 12px/1 var(--font-mono); color: var(--ink-soft); }
main {
  min-width: 0; outline: none;
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px));
}
.page { max-width: 900px; margin-inline: auto; display: grid; gap: 22px; }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: auto 0 0 0; height: auto; z-index: 20; border-left: 0; border-top: 2px solid var(--ink);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    flex-direction: row; gap: 0;
  }
  .brand, .beta { display: none; }
  .tabs { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; gap: 2px; }
  .tabs a { flex-direction: column; justify-content: center; gap: 2px; min-height: 54px; padding: 4px; font-size: 12px; }
  main { padding-bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom, 0px)); }
}

/* רכיבים */
.card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; min-width: 0; }
.soft { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.eyebrow { font: 500 13px/1 var(--font-mono); letter-spacing: .06em; color: var(--pink); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--blue); color: var(--on-blue);
  font: 700 17px/1 var(--font-display); cursor: pointer; text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--grid); font: 500 13px/1.2 var(--font-mono); color: var(--ink-soft); }
.chip.demo { background: var(--marker); color: #0F172A; }
.chip.ok { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.chip.warn { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.mark { background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); color: inherit; }
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); min-height: 56px; }
.item:hover { border-color: var(--blue); }
.item .t { font-weight: 700; }

/* הקלטה */
.rec-stage { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: 12px; }
.clock { font: 500 clamp(44px, 9vw, 72px)/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rec-btn {
  width: 148px; height: 148px; border-radius: 50%; border: 3px solid var(--ink); background: var(--red); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 5px 5px 0 var(--ink); font: 700 18px/1.2 var(--font-display);
}
.rec-btn.on { background: var(--paper); color: var(--red); animation: pulse 1.6s ease-in-out infinite; }
.rec-btn svg { width: 46px; height: 46px; }
@keyframes pulse { 0%,100% { box-shadow: 5px 5px 0 var(--ink), 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent); } 50% { box-shadow: 5px 5px 0 var(--ink), 0 0 0 16px transparent; } }
.meter { width: min(420px, 100%); height: 14px; border-radius: 999px; background: var(--grid); border: 1.5px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--green); transition: width .08s linear; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font: 700 20px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.clock { direction: ltr; unicode-bidi: isolate; }
.app.bare .side { display: none; }
.app.bare { grid-template-columns: 1fr; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.notice { border-right: 4px solid var(--marker); background: var(--paper); padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.notice.alert { border-right-color: var(--red); }
select, textarea,
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"] {
  width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: var(--paper); color: var(--ink); font: 400 17px var(--font-body);
}
select:focus, input:focus, textarea:focus { border-color: var(--blue); outline: none; }
label.field { display: grid; gap: 6px; font-weight: 700; }
audio { width: 100%; }

/* שאלון / מבחן */
.options { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: center; min-height: 54px; padding: 12px 16px; text-align: right; width: 100%;
  border: 2px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; font-size: 17px;
}
.opt[aria-pressed="true"] { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--paper)); }
.opt.correct { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, var(--paper)); }
.opt.wrong { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--paper)); }
.progress { height: 8px; background: var(--grid); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); }

/* סיכום */
.summary h2 { font-size: 22px; margin-top: 8px; }
.summary h3 { font-size: 18px; margin-top: 6px; }
.summary ol, .summary ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.summary table { border-collapse: collapse; width: 100%; font-size: 15px; }
.summary th, .summary td { border: 1.5px solid var(--line); padding: 8px 10px; text-align: right; vertical-align: top; }
.tablewrap { overflow-x: auto; }
.formula { font-family: var(--font-mono); direction: ltr; text-align: left; background: var(--grid); padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.star { color: var(--pink); }

.toast {
  position: fixed; inset-inline: 16px; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  margin-inline: auto; max-width: 480px; background: var(--ink); color: var(--bg); padding: 14px 18px; border-radius: 14px; font-weight: 500; text-align: center;
}
@media (min-width: 821px) { .toast { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* תוספות: שורת שמירה, טיפים, צעדי בדיקה, התקנה, משוב */
.saved-line { font-weight: 700; color: var(--green); min-height: 1.6em; }
.tips, .steps { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.steps { margin-top: 10px; }
.install { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
button.link { background: none; border: 0; padding: 4px 8px; color: var(--blue); font-weight: 700; cursor: pointer; flex: none; min-height: 44px; }
fieldset.fs { margin: 0; display: grid; gap: 10px; }
fieldset.fs legend { float: right; width: 100%; font: 700 18px/1.3 var(--font-display); padding: 0; margin-bottom: 4px; }
a, button, .opt, .item { touch-action: manipulation; }
.btn:hover { filter: brightness(1.06); }
.opt:hover { border-color: var(--blue); }
select { background-color: var(--paper); color: var(--ink); }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; }
bdi { unicode-bidi: isolate; }

/* ---------- מחברות ---------- */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.folder {
  position: relative; display: grid; gap: 6px; align-content: start; min-height: 132px; padding: 18px 16px 16px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 6px 16px 16px 16px; color: var(--ink); text-decoration: none;
  box-shadow: 3px 3px 0 var(--fc, var(--ink)); cursor: pointer; text-align: right; font: inherit;
}
.folder::before { content: ""; position: absolute; top: -2px; right: -2px; width: 46%; height: 10px; background: var(--fc, var(--line)); border-radius: 6px 6px 0 0; transform: translateY(-8px); border: 2px solid var(--ink); border-bottom: 0; }
.folder svg { width: 30px; height: 30px; color: var(--fc, var(--ink-soft)); }
.folder b { font: 700 18px/1.25 var(--font-display); overflow-wrap: anywhere; }
.folder.add { border-style: dashed; box-shadow: none; color: var(--ink-soft); place-content: center; justify-items: center; }
.folder:hover { transform: translate(-1px, -1px); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip svg { width: 14px; height: 14px; }

/* דף שיעור */
.lesson-head { display: grid; gap: 4px; }
.title-input { border: 0 !important; border-bottom: 2px dashed var(--line) !important; border-radius: 0 !important; padding: 4px 0 !important; font: 900 clamp(24px, 4vw, 32px)/1.2 var(--font-display) !important; background: transparent !important; }
.title-input:focus { border-bottom-color: var(--blue) !important; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--paper); }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; background: none; cursor: pointer; font-weight: 700; }
.seg button svg { width: 18px; height: 18px; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.small-btn { min-height: 44px; padding: 0 14px; font-size: 15px; box-shadow: 2px 2px 0 var(--ink); }
.btn.live { background: var(--red); color: #fff; animation: pulse 1.6s ease-in-out infinite; }

.toolbar {
  position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 15; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  padding: 6px; margin-bottom: 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink);
}
.tgroup { display: flex; gap: 2px; align-items: center; padding: 0 4px; }
.tgroup + .tgroup { border-inline-start: 1.5px solid var(--line); }
.tool { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; cursor: pointer; color: var(--ink); }
.tool svg { width: 22px; height: 22px; }
.tool[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); }
.tool:disabled { opacity: .3; cursor: default; }
.tool.swatch i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); }
.tool.swatch[aria-pressed="true"] { background: var(--grid); }
.tool.swatch[aria-pressed="true"] i { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.tool.size i { border-radius: 50%; background: currentColor; }

.sheets { display: grid; gap: 18px; }
.sheet {
  position: relative; width: 100%; aspect-ratio: 1000 / 1400; background-color: #fff; border: 1.5px solid var(--line); border-radius: 6px;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15, 23, 42, .06); overflow: hidden;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.sheet.bg-lines { background-image: linear-gradient(transparent calc(100% - 1px), #D5DEF2 0); background-size: 100% calc(100% / 40); background-position: 0 calc(100% / 40 * 2 - 1px); }
.sheet.bg-grid { background-image: linear-gradient(transparent calc(100% - 1px), #D5DEF2 0), linear-gradient(90deg, transparent calc(100% - 1px), #D5DEF2 0); background-size: 3.5% calc(100% / 40); }
.sheet img { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; }
.sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet canvas.live { touch-action: none; cursor: crosshair; }
.pno { position: absolute; bottom: 8px; left: 12px; font: 500 12px/1 var(--font-mono); color: #94A3B8; pointer-events: none; }
.note-text { min-height: 320px; resize: none; font-size: 18px; line-height: 1.7; background-image: linear-gradient(transparent calc(1.7em - 1px), var(--grid) 0); background-size: 100% 1.7em; background-attachment: local; }
label.btn input[type=file] { display: none; }
@media (max-width: 600px) {
  .toolbar { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px; gap: 0; }
  .toolbar::-webkit-scrollbar { display: none; }
  .tool { width: 40px; height: 40px; flex: none; }
  .tgroup { flex: none; padding: 0 2px; }
}
.page > * { min-width: 0; }
.toolbar { max-width: 100%; }
main:focus-visible { outline: none; }

/* ---------- סיכומים מיובאים, מבחנים, מסך מלא ---------- */
.md-body { display: grid; gap: 10px; line-height: 1.7; }
.md-body h2 { font-size: 21px; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.md-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.md-body h3 { font-size: 18px; margin-top: 6px; }
.md-body p, .md-body ul, .md-body ol { margin: 0; }
.md-body ul, .md-body ol { padding-inline-start: 22px; display: grid; gap: 4px; }
.md-body blockquote { margin: 0; padding: 10px 14px; border-right: 4px solid var(--marker); background: var(--grid); border-radius: 10px; font-size: 15px; }
.md-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.md-body th, .md-body td { border: 1.5px solid var(--line); padding: 8px 10px; text-align: right; vertical-align: top; }
.md-body th { background: var(--grid); }
.md-body code { font-family: var(--font-mono); font-size: .92em; background: var(--grid); padding: 1px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.md-body pre { background: var(--grid); padding: 12px; border-radius: 10px; overflow-x: auto; margin: 0; }
.md-body pre code { background: none; padding: 0; direction: rtl; white-space: pre; }
.quiz-row { gap: 8px; }
.score { font: 700 18px/1 var(--font-mono); color: var(--ink-soft); }
.score.full { color: var(--green); }
.danger-text { color: var(--red) !important; }
button.link svg { width: 20px; height: 20px; }
.opt-edit { display: flex; align-items: center; gap: 10px; }
.opt-edit input[type=radio] { width: 22px; height: 22px; flex: none; accent-color: var(--green); }
.show-phone { display: none; }
#fullExit { display: none; }
body.focus .side, body.focus .lesson > a, body.focus .lesson-head, body.focus .lesson > .row, body.focus #lrecs, body.focus #ldel { display: none !important; }
body.focus .app { grid-template-columns: 1fr; }
body.focus main { padding: calc(8px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 24px max(8px, env(safe-area-inset-left, 0px)); }
body.focus .page { max-width: none; gap: 10px; }
body.focus #fullExit { display: grid; background: var(--ink); color: var(--bg); }
@media (max-width: 820px) {
  .side .hide-phone { display: none; }
  .show-phone { display: grid; }
}
.chip.new { background: var(--pink); color: #fff; font-weight: 700; }
.msec { border-top: 1.5px dashed var(--line); padding-top: 8px; margin-top: 8px; }
.msec summary { min-height: 40px; }
.pair-cta { border: 2px dashed var(--blue); }

.pen-pad { height: 140px; border: 2px dashed var(--line); border-radius: 14px; background: var(--paper); touch-action: none; margin-top: 8px; }

/* ---------- מחברות בסגנון Notability ---------- */
.nb { display: grid; grid-template-columns: 250px 1fr; gap: 22px; max-width: 1200px; margin-inline: auto; align-items: start; }
.nb-side { position: sticky; top: calc(12px + env(safe-area-inset-top, 0px)); display: grid; gap: 4px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.nb-search { display: flex; align-items: center; gap: 8px; background: var(--grid); border-radius: 12px; padding: 0 10px; margin-bottom: 6px; }
.nb-search svg { width: 18px; height: 18px; color: var(--ink-soft); flex: none; }
.nb-search input { border: 0 !important; background: transparent !important; min-height: 42px; padding: 0 !important; font-size: 16px; }
.nb-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 2px; font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.nb-f { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.nb-f i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.nb-f span:not(.chip) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-f b { font: 500 13px/1 var(--font-mono); color: var(--ink-soft); }
.nb-f:hover { background: var(--grid); }
.nb-f.on { background: color-mix(in srgb, var(--blue) 12%, var(--paper)); font-weight: 700; }
.nb-main { display: grid; gap: 18px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.ncard { display: grid; gap: 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.ncard[hidden] { display: none; }
.ncard .thumb { position: relative; aspect-ratio: 1000 / 1400; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(15,23,42,.08); }
.ncard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ncard .thumb .snip { display: block; padding: 10px; font-size: 11px; line-height: 1.5; color: #475569; overflow: hidden; height: 100%; }
.ncard .rec-dot { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.ncard .rec-dot svg { width: 15px; height: 15px; }
.ncard b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncard:hover .thumb { border-color: var(--blue); }
@media (max-width: 820px) {
  .nb { grid-template-columns: 1fr; gap: 14px; }
  .nb-side { position: static; display: flex; overflow-x: auto; max-height: none; padding: 8px; gap: 6px; scrollbar-width: none; }
  .nb-side::-webkit-scrollbar { display: none; }
  .nb-search { min-width: 150px; margin: 0; }
  .nb-h { display: none; }
  .nb-f { flex: none; border: 1.5px solid var(--line); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}

/* ---------- מחיקה ומערכת שעות ---------- */
.ncard { position: relative; }
.card-del, .folder-del { display: none; }
.nb.editing .card-del { display: grid; position: absolute; top: -8px; right: -8px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--red); color: #fff; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.nb.editing .card-del svg { width: 17px; height: 17px; }
.nb.editing .ncard .thumb { animation: wiggle .3s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } }
.nb.editing .folder-del { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); cursor: pointer; flex: none; }
.nb.editing .folder-del svg { width: 16px; height: 16px; }
.nb.editing .nb-f b { display: none; }
.rec-row { display: flex; gap: 8px; align-items: center; }
.rec-row .item { flex: 1; min-width: 0; }
.del-rec { color: var(--red); }
.tt-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; }
.tt-row select, .tt-row input { width: auto; min-height: 44px; }
.tt-row .tt-course { flex: 1; min-width: 160px; }
.tt-row input[type=time] { direction: ltr; }
.tt-del { color: var(--red); }
button.tt-del, button.del-rec { color: var(--red); }

/* ---------- מבחנים, כוכבים ורילס ---------- */
.cd { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--grid); color: var(--ink-soft); white-space: nowrap; }
.cd.warm { background: color-mix(in srgb, var(--marker) 55%, transparent); color: #713f12; }
.cd.hot { background: var(--red); color: #fff; }
.cd-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; text-decoration: none; }
.star-btn { background: var(--marker); color: #0F172A; font-size: 19px; min-height: 56px; padding: 0 28px; }
.star-card { background: color-mix(in srgb, var(--marker) 35%, var(--paper)); text-decoration: none; color: inherit; }
.grid2 > a.card { text-decoration: none; color: inherit; display: grid; gap: 4px; }
.focus-c { display: grid; gap: 10px; }
.focus-s ul { margin: 6px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.pe-row { display: flex; gap: 8px; align-items: center; }
.pe-row .item { flex: 1; min-width: 0; }
.pe-done { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); color: #fff; font-weight: 900; cursor: pointer; }
.pe-done.on { background: var(--green); border-color: var(--green); }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.55); display: grid; place-items: center; padding: 20px; }
.modal .card { max-width: 440px; display: grid; gap: 12px; }
.reels { height: calc(100dvh - 60px); overflow-y: auto; scroll-snap-type: y mandatory; margin: -28px -20px -48px; }
.reel { height: calc(100dvh - 60px); scroll-snap-align: start; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #1e1b4b, #0f172a 60%, #312e81); color: #fff; }
.reel-card { max-width: 460px; width: 100%; display: grid; gap: 14px; text-align: center; }
.reel-card h2 { font-size: 30px; }
.reel-card .muted, .reel-card .eyebrow { color: #c7d2fe; }
.bars { display: flex; gap: 4px; justify-content: center; align-items: end; height: 70px; }
.bars i { width: 8px; height: 20%; border-radius: 4px; background: #a5b4fc; }
.reel.playing .bars i { animation: bar 0.9s ease-in-out infinite alternate; }
.reel.playing .bars i:nth-child(3n) { animation-delay: .2s; } .reel.playing .bars i:nth-child(4n) { animation-delay: .45s; } .reel.playing .bars i:nth-child(5n) { animation-delay: .7s; }
@keyframes bar { from { height: 15%; } to { height: 100%; } }
.reel-prog { height: 6px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.reel-prog i { display: block; height: 100%; width: 0; background: var(--marker); }
@media (max-width: 820px) { .reels, .reel { height: calc(100dvh - var(--tabbar-h) - 20px); } }

/* ---------- הגשה 2: כלים, מסך מפוצל, כרטיסיות, התקדמות ---------- */
label.tool { cursor: pointer; }
.sel-del { color: var(--red) !important; background: color-mix(in srgb, var(--red) 12%, transparent) !important; }
body.split main { padding-inline-end: calc(42vw + 24px); }
.split-pane { position: fixed; z-index: 30; inset-block: 0; inset-inline-end: 0; width: 42vw; background: var(--paper); border-inline-start: 2px solid var(--ink); padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 20px; overflow-y: auto; display: grid; align-content: start; gap: 12px; }
@media (max-width: 820px) {
  body.split main { padding-inline-end: 20px; padding-bottom: 52vh; }
  .split-pane { inset: auto 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)) 0; width: auto; height: 46vh; border-inline-start: 0; border-top: 2px solid var(--ink); }
}
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip-btn { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.chip-btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.flash { min-height: 300px; width: 100%; display: grid; place-items: center; gap: 14px; padding: 28px; text-align: center; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); cursor: pointer; font: 700 clamp(22px, 3.5vw, 30px)/1.4 var(--font-display); color: var(--ink); }
.flash .fb { font: 500 19px/1.6 var(--font-body); color: var(--ink); border-top: 2px dashed var(--line); padding-top: 14px; }
.flash.flipped { background: color-mix(in srgb, var(--marker) 22%, var(--paper)); }
.streak { font-size: .55em; vertical-align: middle; background: color-mix(in srgb, #f97316 18%, transparent); color: #c2410c; padding: 4px 10px; border-radius: 999px; }
.prog-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.prog-side { display: flex; align-items: center; gap: 12px; }
.spark { width: 180px; height: 48px; }
[hidden] { display: none !important; }

/* ---------- AI, יומן והודעות ---------- */
.chat { display: grid; gap: 12px; }
.chat-log { display: grid; gap: 10px; }
.bubble { padding: 12px 14px; border-radius: 16px; max-width: 92%; line-height: 1.65; }
.bubble.me { justify-self: start; background: var(--blue); color: var(--on-blue); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.bubble.bot { justify-self: end; background: var(--grid); border-bottom-left-radius: 4px; }
.bubble.bot p, .bubble.bot ul, .bubble.bot ol { margin: 0 0 6px; } .bubble.bot ul, .bubble.bot ol { padding-inline-start: 20px; } .bubble.bot h4 { margin: 4px 0; font-size: 16px; }
.bubble .err { color: var(--red); }
.typing { color: var(--ink-soft); animation: pulse-t 1s ease-in-out infinite alternate; } @keyframes pulse-t { from { opacity: .4; } to { opacity: 1; } }
.chat-form { display: flex; gap: 8px; align-items: flex-end; } .chat-form textarea { flex: 1; min-height: 52px; resize: none; }
.explain-btn { font: 600 13px var(--font-body); border: 1.5px solid var(--line); background: var(--paper); color: var(--violet); border-radius: 999px; padding: 3px 10px; cursor: pointer; vertical-align: middle; }
.sel-bar { position: fixed; z-index: 60; inset-inline: 0; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; width: max-content; display: flex; gap: 8px; padding: 8px; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
@media (min-width: 821px) { .sel-bar { bottom: 24px; } }
.bell { position: relative; }
.bell-n { position: absolute; top: 2px; left: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px var(--font-body); text-align: center; }
.msg.unread { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--paper)); }
.msg.unread .t::after { content: " ●"; color: var(--blue); }
.micon { font-size: 22px; flex: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.ev.lesson { --c: #86EFAC; --t: #14532d; } .ev.deadline { --c: #FB923C; --t: #fff; } .ev.exam { --c: #EF4444; --t: #fff; }
i.ev { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-h { text-align: center; font-weight: 700; color: var(--ink-soft); font-size: 13px; padding: 4px 0; }
.cal-d { min-height: 104px; display: flex; flex-direction: column; gap: 3px; align-items: stretch; padding: 5px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; text-align: right; font: inherit; color: var(--ink); min-width: 0; }
.cal-d .n { font: 700 13px var(--font-mono); }
.cal-d.out { opacity: .45; }
.cal-d.today { border-color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); } .cal-d.today .n { color: var(--blue); }
.cal-d.sel { background: color-mix(in srgb, var(--blue) 8%, var(--paper)); }
.cal-d .evs { display: grid; gap: 2px; min-width: 0; }
.cal-d span.ev { display: block; background: var(--c); color: var(--t); border-radius: 5px; padding: 1px 5px; font-size: 11px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-d span.ev.done { opacity: .5; text-decoration: line-through; }
.cal-d .more { font-size: 11px; color: var(--ink-soft); }
.cal-d .dots { display: none; gap: 3px; flex-wrap: wrap; } .cal-d .dots i.ev { width: 7px; height: 7px; border-radius: 50%; }
@media (max-width: 700px) {
  .cal-d { min-height: 54px; align-items: center; } .cal-d .evs { display: none; } .cal-d .dots { display: flex; justify-content: center; }
}

/* ---------- כלים: הקראה, סימולציה, ציונים, חיפוש, שאלות ---------- */
.reader { gap: 8px; }
.md-body .reading { background: color-mix(in srgb, var(--marker) 40%, transparent); border-radius: 8px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--marker) 40%, transparent); }
.sim-clock { font: 700 20px var(--font-mono); } .sim-clock.hot { color: var(--red); }
.sim-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-dot { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); font: 700 14px var(--font-mono); cursor: pointer; color: var(--ink); }
.sim-dot.done { background: color-mix(in srgb, var(--blue) 15%, var(--paper)); border-color: var(--blue); }
.sim-dot.cur { outline: 2px solid var(--ink); }
.gr-row { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.gr-row input { width: auto; min-height: 44px; } .gr-row .gr-n { flex: 1; min-width: 140px; } .gr-row .gr-w, .gr-row .gr-g { width: 110px; }
.gr-card label input { min-height: 38px; padding: 4px 8px; display: inline-block; }
mark { background: var(--marker); color: #0F172A; border-radius: 3px; padding: 0 2px; }
.tq.done b { text-decoration: line-through; opacity: .6; }
.tq-ans { margin-top: 8px; min-height: 60px; }
/* הדפסה / PDF: רק הסיכום, נקי וצפוף */
@media print {
  .side, .tabs, .reader, #chat, .explain-btn, .sel-bar, .toast, .page > a.small, .btn, .row .chip { display: none !important; }
  .app { display: block !important; } main { padding: 0 !important; } body { background: #fff !important; }
  .md-body { border: 0 !important; box-shadow: none !important; padding: 0 !important; font-size: 12px; line-height: 1.45; column-count: 2; column-gap: 22px; }
  .md-body h2 { break-after: avoid; font-size: 15px; } .md-body table { break-inside: avoid; font-size: 11px; }
  h1 { font-size: 20px !important; }
}

/* ---------- פודקאסטים ---------- */
.pod { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--violet) 8%, var(--paper)); border: 1.5px solid color-mix(in srgb, var(--violet) 35%, var(--line)); border-radius: 14px; }
.pod-play { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--violet); color: #fff; font-size: 18px; cursor: pointer; }
.pod-strip { display: grid; gap: 8px; }
.pod-bar { position: fixed; z-index: 70; inset-inline: 12px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--paper); border: 2px solid var(--violet); border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.pod-bar .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30%; }
.pod-bar audio { flex: 1; min-width: 0; height: 40px; }
.pod-bar select { width: auto; min-height: 36px; padding: 2px 6px; }
@media (min-width: 821px) { .pod-bar { bottom: 18px; inset-inline-start: 264px; } }
.pod-script { display: grid; gap: 6px; margin-top: 8px; font-size: 15px; }

.brief-card { max-width: 520px !important; max-height: 85dvh; overflow-y: auto; }
.brief-card .md-body { border: 0; padding: 0; }
.pod-chip { background: color-mix(in srgb, var(--violet) 15%, transparent); color: var(--violet); cursor: pointer; font-weight: 700; }
.page .grid2:has(> a.card + a.card + a.card) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .page .grid2:has(> a.card + a.card + a.card) { grid-template-columns: 1fr; } }

/* ---------- חברים (עיצוב לדוגמה) ---------- */
.snav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.snav a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.snav a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 17px/1 var(--font-display); }
.av.big { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--pink); }
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px; }
.story { display: grid; justify-items: center; gap: 4px; width: 84px; flex: none; text-align: center; color: var(--ink); text-decoration: none; line-height: 1.25; }
.feed { display: grid; gap: 14px; }
.post { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; min-width: 0; }
.post.sponsored { border-style: dashed; }
.post-h { display: flex; gap: 10px; align-items: center; }
.post-h a { color: inherit; }
.post h3 { font-size: 18px; }
.post-a { display: flex; flex-wrap: wrap; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.post-a button { border: 0; background: none; padding: 8px 10px; min-height: 40px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.post-a button:hover { background: var(--grid); }
.post-c { display: grid; gap: 6px; }
.bday { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--marker) 35%, var(--paper)); border: 1.5px solid var(--marker); }
.vis { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 6px; margin: 0; }
.vis label { display: flex; align-items: center; gap: 8px; }
.vis input { width: auto; }
.prof { display: grid; gap: 12px; }
.modal .card { max-height: 88dvh; overflow-y: auto; }

/* ---------- v20: חזרה, עוזר AI, הגדרות, הודעות ---------- */
.back-btn { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.back-btn:hover { border-color: var(--blue); }
.ai-fab { position: fixed; z-index: 60; inset-inline-start: 16px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); background: var(--violet); color: #fff; font-size: 26px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
@media (min-width: 821px) { .ai-fab { bottom: 24px; inset-inline-start: auto; inset-inline-end: 24px; } }
body:has(.pod-bar) .ai-fab { bottom: calc(var(--tabbar-h) + 90px + env(safe-area-inset-bottom, 0px)); }
.ai-panel { position: fixed; z-index: 90; inset-inline: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px)); max-height: 70dvh; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 8px; padding: 14px; background: var(--paper); border: 2px solid var(--violet); border-radius: 18px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
@media (min-width: 821px) { .ai-panel { inset-inline: auto 24px; width: 420px; bottom: 90px; } }
.ai-panel .chat-log { overflow-y: auto; min-height: 60px; display: grid; gap: 8px; align-content: start; }
.settings .set { display: grid; gap: 10px; scroll-margin-top: 16px; }
.settings .set h2 { font-size: 21px; }
.settings .set h3 { font-size: 17px; margin-top: 6px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.set-row:last-of-type { border-bottom: 0; }
.switch { appearance: none; -webkit-appearance: none; width: 48px !important; height: 28px; flex: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; padding: 0; border: 0; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch:checked { background: var(--green); }
.switch:checked::after { inset-inline-start: 23px; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.dm-log { display: grid; gap: 8px; align-content: start; min-height: 200px; max-height: 55dvh; overflow-y: auto; padding: 8px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-theme="dark"] {
  --bg: #0B1120; --paper: #121b30; --grid: #17223a; --ink: #E7ECF7; --ink-soft: #A3B0C8;
  --blue: #5B8DEF; --on-blue: #0B1120; --violet: #A78BFA; --marker: #FACC15; --pink: #F472B6;
  --red: #F87171; --green: #4ADE80; --line: #26324d; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="light"] {
    --bg: #F7F9FE; --paper: #FFFFFF; --grid: #E6ECF8; --ink: #0F172A; --ink-soft: #475569;
    --blue: #2563EB; --on-blue: #FFFFFF; --violet: #6D28D9; --marker: #FDE047; --pink: #DB2777;
    --red: #DC2626; --green: #16A34A; --line: #D5DEF2; color-scheme: light;
  }
}

/* ---------- v21: כרטיסי "ה-AI שלי" ---------- */
.ai-card { display: grid; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); }
.ai-card.cur { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.ai-card h3 { font-size: 17px; margin: 0; }
.ai-card { min-width: 0; overflow-wrap: anywhere; }
.ai-card .row { min-width: 0; }
.ai-card select { min-width: 0; width: 100%; flex: 1 1 100%; }
.ai-card input { min-width: 0 !important; }
.ai-card ol { padding-inline-start: 20px; margin: 0; }

/* ---------- v22: מספרים על הלשוניות ---------- */
#tabs a { position: relative; }
.tab-n, .dm-n { position: absolute; top: 4px; inset-inline-end: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px var(--font-body); text-align: center; }
.tool .dm-n { top: 2px; inset-inline-end: 2px; }

/* ---------- v24: מחברת – הגדלה, סוג דף, עריכת תמונה ---------- */
.sheets-wrap { overflow-x: auto; }
.paper-sel { width: auto; min-height: 40px; padding: 4px 8px; font-size: 14px; }
.zoom-val { min-width: 44px; text-align: center; font-family: var(--font-mono); }
.img-edit { position: absolute; top: 8px; right: 8px; z-index: 3; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 13px/1 var(--font-body); padding: 6px 10px; cursor: pointer; }
.img-card { max-width: 560px !important; max-height: 90dvh; overflow-y: auto; }
.ie-stage { position: relative; background: var(--grid); border-radius: 12px; padding: 8px; touch-action: none; cursor: crosshair; user-select: none; }
.ie-stage img { display: block; max-width: 100%; max-height: 42dvh; margin: 0 auto; pointer-events: none; }
.ie-crop { position: absolute; border: 2px dashed var(--blue); background: rgba(37, 99, 235, .12); pointer-events: none; }

/* ---------- v24: פוסטים עם תמונות וקבצים, דיווח ---------- */
.post-body { white-space: pre-wrap; }
.post-imgs { display: grid; gap: 4px; border-radius: 14px; overflow: hidden; }
.post-imgs.n2, .post-imgs.n4 { grid-template-columns: 1fr 1fr; }
.post-imgs.n3 { grid-template-columns: 2fr 1fr; }
.post-imgs img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; background: var(--grid); }
.post-imgs.n1 img { max-height: 520px; object-fit: contain; }
.post-file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.post-file span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-prev { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--grid); font-size: 13px; max-width: 100%; }
.cmt { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
/* שורת תגובה כמו באינסטגרם/פייסבוק: שדה רחב ומעוגל, כפתור שליחה בולט */
.cmt-form { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.cmt-form input { flex: 1; min-height: 52px !important; border-radius: 26px !important; padding: 12px 18px !important; font-size: 17px !important; }
.cmt-form .btn { min-height: 52px; border-radius: 26px; padding: 0 22px; }
/* הוספת חבר/ה: שדה גדול וברור */
.fr-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.fr-form input { flex: 1 1 260px; min-height: 58px !important; font-size: 19px !important; padding: 12px 18px !important; border-radius: 14px !important; }
.fr-form .btn { min-height: 58px; font-size: 18px; padding: 0 26px; }
.msg-rep { margin-inline-start: 8px; opacity: .55; font-size: 12px; }
.msg-rep:hover { opacity: 1; }

/* נגישות: קישור "דילוג לתוכן" שמופיע רק כשמגיעים אליו במקלדת */
.skip-link { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 999; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- v25: תמלול וסיכום של הקלטות ---------- */
.tr-card { display: grid; gap: 10px; }
.transcript { margin-top: 10px; max-height: 60dvh; overflow-y: auto; line-height: 1.8; font-size: 16px; white-space: normal; }
.transcript .ts { display: inline-block; margin-inline-end: 6px; padding: 0 6px; border-radius: 6px; background: var(--grid); font: 600 12px/1.6 var(--font-mono); color: var(--blue); direction: ltr; }
.lrec { gap: 10px; }

/* ---------- הגשת עבודות ---------- */
.as-list { display: grid; gap: 12px; margin-top: 10px; }
.as-card { display: grid; gap: 10px; padding: 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--paper); }
.as-card.submitted { opacity: .75; }
.as-name { font-size: 18px; }
.as-status { display: flex; flex-wrap: wrap; gap: 6px; }
.as-st { border: 1.5px solid var(--line); background: none; border-radius: 999px; padding: 6px 12px; min-height: 38px; cursor: pointer; font-size: 14px; color: var(--ink); }
.as-st.on { border-color: var(--blue); background: var(--grid); font-weight: 700; }
.as-files { display: flex; flex-wrap: wrap; gap: 6px; }
.as-files:empty { display: none; }
.as-how ol { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
