/*
 * תכלת קמפוס: מערכת העיצוב המשותפת. כל הצבעים, הריווחים, הרדיוסים והגופנים מוגדרים כאן כמשתנים.
 * שפה: רקע שמנת, כרטיסים לבנים, תכלת המותג #299FC3 להדגשה, כפתור ראשי #1D6F89, טקסט בכחול כהה #123047. גופן Heebo.
 * --brand הוא צבע הארגון (ברירת מחדל: תכלת המותג) ונקבע ב-platform.js (applyBrand). ממנו נגזרים:
 *   --brand-strong  רקע לכפתורים ראשיים (מחושב כך שטקסט לבן עליו קריא: ניגודיות 5 ומעלה; לתכלת המותג יוצא #1D6F89)
 *   --brand-ink     צבע טקסט וקישורים   --brand-soft  משטח בהיר להדגשה
 */
:root {
  color-scheme: light dark;
  /* צבעים */
  --bg: #faf9f5; --card: #ffffff; --subtle: #eaf3f3; --fg: #123047; --muted: #566b73; --line: #dce5e5; --field: #6f8289; --navy: #123047;
  --brand: #299fc3; --brand-fg: #ffffff;
  --brand-strong: var(--brand-strong-light, #1d6f89); --brand-ink: var(--brand-strong);
  --brand-hover: var(--brand-hover-light, #175c72);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --ok: #246b50; --ok-bg: #eaf6ee; --warn: #87561d; --warn-bg: #fff5e7; --bad: #b42318; --bad-bg: #fff0ee; --info: var(--brand-ink); --info-bg: var(--brand-soft);
  /* צורה */
  --radius-sm: 8px; --radius-btn: 10px; --radius: 14px; --radius-lg: 18px;
  --shadow: 0 12px 36px rgba(18, 48, 71, .06); --shadow-sm: 0 1px 2px rgba(18, 48, 71, .05);
  /* ריווח (4, 8, 12, 16, 24, 32, 48, 64) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --pad: 32px; --sidebar: 240px; --content: 1200px; --app: 1440px;
  /* סולם גופנים (12/14/16/24/32/48; 28 ו-34 לכותרות בטלפון). 18 נוסף בכוונה לכותרות משנה (h3, כותרת קורס), כי בין 16 ל-24 אין דרגה */
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.5rem; --fs-2xl-m: 1.75rem; --fs-2xl: 2rem; --fs-hero-m: 2.125rem; --fs-hero: 3rem;
  --arcs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='170' viewBox='0 0 240 170' fill='none' stroke='%23299FC3' stroke-opacity='.2' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M18 40q10-12 20-2q9-9 20 0'/%3E%3Cpath d='M128 22q8-9 15-1q7-7 15 0'/%3E%3Cpath d='M72 98q12-14 24-2q10-10 23 0'/%3E%3Cpath d='M172 122q8-9 15-1q7-7 15 0'/%3E%3Cpath d='M28 142q6-7 12-1q6-6 12 0'/%3E%3C/svg%3E");
}
@media (max-width: 640px) { :root { --pad: 16px; } }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1e2d; --card: #123047; --subtle: #163a52; --fg: #eef7fa; --muted: #a9bdc8; --line: #25485f; --field: #7f97a5;
    --shadow: none; --shadow-sm: none;
    --brand-soft: color-mix(in srgb, var(--brand) 22%, var(--card)); --brand-ink: color-mix(in srgb, var(--brand) 60%, #fff);
    --ok: #9fdcb4; --ok-bg: #173b2c; --warn: #f3cd86; --warn-bg: #3d3212; --bad: #f5b0a8; --bad-bg: #44222a;
    /* במצב כהה צבע הארגון עלול להיות כהה מדי: הגרסאות למצב כהה מחושבות ב-applyBrand (--brand-ink-dark, --brand-strong-dark) */
    --brand-ink: var(--brand-ink-dark, color-mix(in srgb, var(--brand) 60%, #fff)); --brand-strong: var(--brand-strong-dark, #1d7391); }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 'Heebo', system-ui, "Segoe UI", Arial, sans-serif; overflow-wrap: break-word; }
/* הפוטר בתחתית המסך גם בדפים קצרים */
#root { min-height: 100dvh; display: flex; flex-direction: column; } #root > main, #root > .layout { flex: 1; width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* קישור הדילוג מוסתר מעל הדף (לא מחוץ לו בצד, שהיה יוצר גלישה אופקית בכיוון ימין לשמאל) */
.skip { position: absolute; top: -200px; inset-inline-start: 8px; } .skip:focus { top: 8px; background: var(--card); padding: 8px 12px; z-index: 30; border-radius: var(--radius-sm); }

/* ---------- כותרת עליונה ---------- */
header.top { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; z-index: 5; }
header.top .inner { max-width: var(--app); margin: 0 auto; padding: 0 var(--pad); display: flex; gap: var(--s4); align-items: center; min-height: 68px; }
header.top .brand { display: flex; align-items: center; gap: var(--s3); padding: 10px 0; min-width: 0; flex: 0 1 auto; color: var(--fg); text-decoration: none; }
header.top a.brand:hover .clip { text-decoration: underline; }
header.top .brandname { display: block; min-width: 0; line-height: 1.25; }
header.top .brandname .clip { display: block; max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: var(--fs-lg); }
header.top .brand small { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.top .tools { margin-inline-start: auto; display: flex; gap: var(--s2); align-items: center; }
header.top .who-am-i { color: var(--muted); font-size: var(--fs-sm); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mark { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-strong); color: var(--brand-fg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-lg); flex: none; }
img.mark.logo { background: #fff; object-fit: contain; border: 1px solid var(--line); padding: 2px; }
/* סימן המילים של הפלטפורמה (הלוגו), עם קשת מעליו ברוח סמל המותג. אין לשנות צבעים ויחסים */
.wordmark { position: relative; display: inline-flex; align-items: baseline; gap: .28em; padding-top: 8px; font-weight: 700; font-size: 1.45rem; line-height: 1; color: #299fc3; white-space: nowrap; }
.wordmark i { font-style: normal; font-weight: 400; color: var(--fg); }
.wordmark::before { content: ''; position: absolute; top: 0; inset-inline-start: .55em; width: 40px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 11' fill='none' stroke='%23299FC3' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M1 9q9-11 19-2q8-8 19-1'/%3E%3C/svg%3E") no-repeat center / contain; }
.platformtag { font-size: var(--fs-sm); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.menubtn { display: none; }

/* ---------- פריסה: סרגל צד לניהול, עמודת תוכן אחת לכל השאר ---------- */
.layout { max-width: var(--app); margin: 0 auto; display: flex; align-items: flex-start; }
.layout > main { flex: 1; min-width: 0; }
nav.side { flex: none; width: var(--sidebar); position: sticky; top: 0; padding-block: var(--s5); padding-inline: var(--pad) 0; display: flex; flex-direction: column; gap: 2px; }
nav.side a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-btn); color: var(--fg); text-decoration: none; }
nav.side a:hover { background: var(--subtle); }
nav.side a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
nav.side .navlabel { font-size: var(--fs-sm); color: var(--muted); padding: 0 14px 6px; font-weight: 500; }
@media (max-width: 1000px) {
  .menubtn { display: inline-flex; }
  .layout { display: block; }
  nav.side { display: none; position: static; width: auto; padding: var(--s2) var(--pad) var(--s3); background: var(--card); border-bottom: 1px solid var(--line); }
  nav.side.open { display: flex; }
  header.top .brandname .clip { max-width: 18ch; }
  header.top .who-am-i { display: none; }
}
@media (max-width: 420px) { header.top .inner { gap: var(--s2); } .mark { width: 36px; height: 36px; } header.top .brandname .clip { max-width: 13ch; font-size: 1rem; } }
.actingbar { background: var(--warn-bg); color: var(--warn); padding: 10px var(--pad); border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

main { max-width: var(--content); margin: 0 auto; padding: var(--s6) var(--pad) var(--s7); }
.layout > main { margin: 0; max-width: none; padding-inline: var(--s6) var(--pad); }
@media (max-width: 1000px) { .layout > main { padding-inline: var(--pad); } }
main:focus, h1:focus, h2:focus, h3:focus, [tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.25; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); font-weight: 700; margin: 0 0 var(--s5); letter-spacing: -.01em; } h2 { font-size: var(--fs-xl); font-weight: 700; margin: var(--s6) 0 var(--s3); } h3 { font-size: var(--fs-lg); font-weight: 700; margin: var(--s4) 0 var(--s2); } h4 { font-size: var(--fs-md); font-weight: 600; margin: 14px 0 4px; }
.card h2 { font-size: var(--fs-xl); }
@media (max-width: 640px) { h1 { font-size: var(--fs-2xl-m); } h2 { font-size: var(--fs-xl); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s4); box-shadow: var(--shadow); }
.card > :first-child, .subcard > :first-child, .tabpanel > .sr + * { margin-top: 0; }
.grid .card { margin: 0; }
.subcard { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: var(--s4); margin: var(--s4) 0; background: var(--subtle); }
.grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { text-align: start; } .kpi b { display: block; font-size: var(--fs-2xl); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--fg); margin-bottom: 2px; }
a.kpi { display: block; text-decoration: none; color: var(--muted); } a.kpi:hover { border-color: var(--brand); } a.kpi:hover b { color: var(--brand-ink); }
.kpi.alert { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); background: var(--bad-bg); } .kpi.alert b { color: var(--bad); }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } .kpi b { font-size: var(--fs-xl); } }
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; } th, td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-weight: 500; font-size: var(--fs-sm); border-bottom-color: var(--line); background: var(--subtle); } thead th:first-child { border-start-start-radius: var(--radius-sm); } thead th:last-child { border-start-end-radius: var(--radius-sm); } tbody th { font-weight: 500; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
@media (hover: hover) { tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 50%, var(--card)); } }
td.num { font-variant-numeric: tabular-nums; }
/* מחרוזת ארוכה בלי רווחים (שם, אימייל) נשברת בתוך התא ולא מותחת את הטבלה */
/* שבירה רק של מילה שארוכה מהשורה (לא באמצע מילה רגילה) */
th, td { overflow-wrap: break-word; } .badge { white-space: nowrap; } td.when, .when { white-space: nowrap; }
tbody th a { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
tbody th [dir=ltr] { text-align: right; unicode-bidi: plaintext; }
.scroll { overflow-x: auto; }
/* במסך צר כל שורת טבלה הופכת לכרטיס: אין גלילה לרוחב, וכל הפעולות נגישות */
@media (max-width: 700px) {
  .scroll table, .scroll tbody, .scroll tr, .scroll td, .scroll tbody th { display: block; }
  .scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .scroll tr { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 10px 14px; margin-bottom: 10px; background: var(--card); }
  .scroll td, .scroll tbody th { border: 0; padding: 4px 0; }
  /* שם העמודה ליד כל ערך, כדי שהכרטיס יהיה מובן בלי כותרות הטבלה */
  .scroll td[data-label] { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
  .scroll td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-sm); }
  .scroll tbody th [dir=ltr] { text-align: start; unicode-bidi: plaintext; }
}
details { margin-top: 10px; } summary { cursor: pointer; font-weight: 500; color: var(--brand-ink); padding: 6px 0; }
ul.plain { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
ol.steps { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; }

label { display: block; font-weight: 500; margin: var(--s4) 0 6px; }
input, select, textarea { width: 100%; max-width: 480px; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--field); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; }
::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 72px; resize: vertical; max-width: 720px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
[aria-invalid=true] { border-color: var(--bad); }
/* שדה לקריאה בלבד נראה אחרת משדה עריך */
input[readonly] { background: color-mix(in srgb, var(--muted) 10%, var(--card)); border-style: dashed; color: var(--muted); }
/* טפסים: עמודה אחת ברוחב אחיד, כך שכל השדות מסתיימים באותו קו */
form { max-width: 680px; } form input, form select, form textarea, form .pwrow { max-width: none; }
form input[type=checkbox] { width: 20px; } form input[type=color] { width: 64px; height: 40px; padding: 4px; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; margin-inline-end: 8px; accent-color: var(--brand-strong); flex: none; }
input[type=color] { width: 64px; height: 40px; padding: 4px; }
input[type=file] { border-style: dashed; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--brand-ink); background: var(--card); border: 1.5px solid var(--brand-strong); border-radius: var(--radius-btn); padding: 6px 14px; margin-inline-end: 12px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--brand-soft); }
.check { display: flex; align-items: center; font-weight: 400; min-height: 32px; }
/* שדות קצרים זה לצד זה, כדי שטופס לא יתפוס עמודה צרה בכרטיס רחב */
.cols { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); align-items: start; } .cols input, .cols select { max-width: none; }
.pwrow { display: flex; gap: 8px; align-items: center; max-width: 480px; } .pwrow input { flex: 1; }
button, .btn { font: inherit; font-weight: 600; background: var(--brand-strong); color: var(--brand-fg); border: 1.5px solid var(--brand-strong); border-radius: var(--radius-btn); padding: 9px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; line-height: 1.3; text-align: center; }
button:not([disabled]):hover, .btn:not([aria-disabled=true]):hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-fg); }
button.secondary, .btn.secondary { background: var(--card); color: var(--brand-ink); border-color: var(--brand-strong); }
button.secondary:not([disabled]):hover, .btn.secondary:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-strong); }
button.small, .btn.small { padding: 5px 14px; min-height: 36px; font-size: var(--fs-sm); }
button, .btn, nav a, button.tab, summary { transition: background-color .12s, border-color .12s, color .12s; }
button[aria-busy=true] { opacity: .7; cursor: progress; }
@media (pointer: coarse) { button.small, .btn.small, button.linkish, .menubtn, .logout, summary, details.menu .menu-list > *, .pwrow button.eye { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* פעולה משנית או הרסנית בשורה: נראית כקישור, כדי שלא תתחרה בכפתור הראשי */
button.linkish { background: none; border-color: transparent; color: var(--brand-ink); padding: 4px 6px; text-decoration: underline; min-height: 36px; font-weight: 500; }
button.linkish:not([disabled]):hover { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
button.danger-text { color: var(--bad); } button.danger-text:not([disabled]):hover { background: var(--bad-bg); color: var(--bad); }
button.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
button.danger:not([disabled]):hover { background: #6f1717; border-color: #6f1717; color: #fff; }
@media (prefers-color-scheme: dark) {
  button:not([disabled]):hover, .btn:not([aria-disabled=true]):hover { background: var(--brand); border-color: var(--brand); color: #06202b; }
  button.secondary:not([disabled]):hover, .btn.secondary:hover, button.linkish:not([disabled]):hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand); }
  button.linkish:not([disabled]):hover { border-color: transparent; }
  button.danger-text:not([disabled]):hover { background: var(--bad-bg); color: var(--bad); }
  button.danger, button.danger:not([disabled]):hover { background: #b3362f; border-color: #b3362f; color: #fff; }
}
button[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: #fff; } }
progress { width: 100%; max-width: 480px; accent-color: var(--brand); }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; line-height: 1.6; }
/* המצב מסומן גם בנקודה בצורה שונה, לא רק בצבע */
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.b-warn::before { border-radius: 1px; transform: rotate(45deg); } .b-bad::before { border-radius: 1px; } .b-none::before { background: none; border: 1.5px solid currentColor; width: 6px; height: 6px; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); } .b-info { background: var(--info-bg); color: var(--info); }
/* מצב ניטרלי ("אין", "רשות"): לא אזהרה */
.b-none { background: color-mix(in srgb, var(--muted) 12%, var(--card)); color: var(--muted); }
.notice { padding: 12px 16px; border-radius: var(--radius-btn); margin: 8px 0; background: var(--info-bg); color: var(--info); border-inline-start: 3px solid currentColor; }
.notice.error { background: var(--bad-bg); color: var(--bad); } .notice.ok { background: var(--ok-bg); color: var(--ok); } .notice.warn { background: var(--warn-bg); color: var(--warn); }
.empty { text-align: center; padding: var(--s7) var(--s4); color: var(--muted); }
.empty.arcs { border-radius: var(--radius-sm); }

/* הודעת מצב קצרה אחרי פעולה */
@media (max-width: 640px) { #toast, #toast-alert { top: 12px; bottom: auto !important; } } /* בטלפון ההודעה למעלה, כדי לא לכסות את תחתית הדף */
#toast, #toast-alert { position: fixed; inset-inline: 0; bottom: 16px; display: flex; justify-content: center; pointer-events: none; z-index: 40; padding: 0 12px; }
.toast.error { display: flex; gap: 12px; align-items: center; } .toast.error button.linkish { color: inherit; min-height: 32px; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius-btn); box-shadow: 0 12px 36px rgba(18, 48, 71, .18); max-width: 640px; border-inline-start: 4px solid #6fd3a0; }
.toast.error { border-inline-start-color: #ff9a8f; }
@media (prefers-color-scheme: dark) { .toast { background: #eef7fa; color: #0b1e2d; border-inline-start-color: #1f5a36; } .toast.error { border-inline-start-color: #8f1f1f; } }

/* לשוניות */
.tablist { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; margin: -4px 0 16px; scrollbar-width: thin; }
/* במסך צר הלשוניות נשברות לשתי שורות במקום להיגלל: כל הלשוניות גלויות תמיד */
@media (max-width: 640px) { .tablist { flex-wrap: wrap; overflow: visible; } button.tab { padding: 10px 10px; font-size: var(--fs-sm); flex: 1 1 auto; } }
button.tab { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); font-weight: 500; padding: 10px 16px; white-space: nowrap; }
button.tab:not([disabled]):hover { background: var(--brand-soft); color: var(--fg); border-color: transparent; border-bottom-color: var(--line); }
button.tab[aria-selected=true]:not([disabled]):hover { border-bottom-color: var(--brand); color: var(--brand-ink); }
button.tab[aria-selected=true] { border-bottom-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.tabpanel:focus-visible { outline-offset: 6px; }

/* כרטיסי שיעור בדף הקורס */
ol.lcards { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.lcard { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: var(--s4); background: var(--card); }
.lcard .lhead { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.lcard .lfoot { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.lcard .lfoot details { margin: 0; } .lcard .lfoot summary { text-decoration: underline; font-weight: 500; } .lcard .lfoot details:not(.menu)[open] { flex-basis: 100%; }
.lcard h3 { margin: 0; } .lcard .lhead .grow { flex: 1 1 220px; }
.grid { margin-bottom: 16px; }
.footlinks .fi { white-space: nowrap; }

/* חלון אישור */
dialog.ask { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); box-shadow: 0 24px 64px rgba(18, 48, 71, .2); max-width: min(480px, calc(100vw - 32px)); background: var(--card); color: var(--fg); }
dialog.ask::backdrop { background: rgba(11, 30, 45, .45); }
dialog.ask h2 { margin: 0 0 8px; font-size: var(--fs-lg); } dialog.ask p { margin: 0; color: var(--muted); }
/* במסך צר: לשונית שנשארת לבד בשורה לא נמתחת לכל הרוחב */
@media (max-width: 640px) { button.tab { flex: 0 1 auto; } }
.linkbox { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; } .linkbox code.link { flex: 1; min-width: 200px; }
code.link { display: block; padding: 10px 12px; background: var(--subtle); border: 1px dashed var(--field); border-radius: var(--radius-sm); word-break: break-all; direction: ltr; text-align: left; color: var(--fg); }
.logopreview { max-width: 120px; max-height: 120px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }
.bodytext { white-space: pre-wrap; padding: 8px 0; max-width: 70ch; }

/* ---------- מסכי כניסה: דוגמת הקשתות של המותג ברקע (רק כאן), כרטיס לבן ממורכז ---------- */
/* דוגמת הקשתות רק בראש עמוד האודות; מסך הכניסה נקי */
.login { max-width: 460px; margin: 7vh auto 0; padding-top: 0; }
.login .card { padding: var(--s6) var(--s6) var(--s5); }
.login h1 { font-size: var(--fs-xl); margin: var(--s5) 0 var(--s2); }
.login .lead { color: var(--muted); margin: 0 0 var(--s2); }
.login .who { display: flex; align-items: center; gap: var(--s3); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.login .who .mark { width: 52px; height: 52px; font-size: var(--fs-xl); border-radius: var(--radius-btn); }
.login .who b { font-size: var(--fs-xl); font-weight: 700; display: block; line-height: 1.3; }
.login .who .wordmark { font-size: 2rem; }
.login input, .login .pwrow { max-width: none; } .login form { max-width: none; } .login button[type=submit] { width: 100%; }
.login .pwrow button { flex: none; }
.login .guide { margin-top: var(--s5); padding: var(--s3) var(--s4); border-radius: var(--radius-btn); background: var(--subtle); color: var(--fg); font-size: var(--fs-sm); }
.login .guide strong { display: block; }
.login .links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4); }
.powered { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s4); }
.powered .wm { font-weight: 500; color: var(--brand-ink); } .powered .wm i { font-style: normal; font-weight: 400; color: var(--fg); }
main.prose { max-width: 800px; } main.prose li { margin-bottom: 4px; }

/* ---------- אודות: עמוד הסבר לארגונים ---------- */
main.about { max-width: none; padding: 0; }
.about .wrap { max-width: var(--content); margin: 0 auto; padding-inline: var(--pad); }
.about .pubbar { background: var(--card); border-bottom: 1px solid var(--line); }
.about .pubbar .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 72px; flex-wrap: wrap; }
.about .pubbar nav { display: flex; gap: var(--s1); margin-inline-start: auto; flex-wrap: wrap; align-items: center; }
.about .pubbar nav button.linkish { text-decoration: none; color: var(--fg); padding: 8px 12px; min-height: 44px; }
.about .pubbar nav button.linkish:hover { background: var(--subtle); color: var(--fg); }
.about .abouttop { padding: var(--s8) 0 var(--s7); background: var(--arcs) repeat, var(--bg); background-size: 360px auto; border-bottom: 1px solid var(--line); }
.about .abouttop .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s7); align-items: center; }
.about .abouttop h1 { font-size: var(--fs-hero); line-height: 1.15; margin: 0 0 var(--s4); }
.about .abouttop .sub { font-size: var(--fs-lg); color: var(--muted); margin: 0 0 var(--s6); max-width: 34ch; }
.about .abouttop .ctas { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.about .abouttop .note { color: var(--muted); font-size: var(--fs-sm); margin: var(--s4) 0 0; }
.about section.block { padding: var(--s7) 0; }
.about section.block + section.block { border-top: 1px solid var(--line); }
.about section.block h2 { margin: 0 0 var(--s2); font-size: var(--fs-2xl-m); }
.about section.block .intro { color: var(--muted); margin: 0 0 var(--s5); max-width: 60ch; }
.about .cards3 { display: grid; gap: var(--s4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about .cards3 .card { margin: 0; }
.about .cards3 h3 { margin-top: 0; font-size: var(--fs-xl); }
.about .cards3 ul { margin: 0; padding-inline-start: 20px; color: var(--fg); } .about .cards3 li { margin-bottom: 6px; }
.about .cards3 .num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: var(--s3); }
.about .cards3 p { margin: 0; color: var(--muted); }
.about .learners { background: var(--subtle); border-radius: var(--radius); padding: var(--s5) var(--s6); display: flex; gap: var(--s5); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.about .learners h2 { font-size: var(--fs-xl) !important; }
.about .learners p { margin: 0; max-width: 62ch; }
.about .fine { color: var(--muted); font-size: var(--fs-sm); margin: var(--s5) 0 0; }
/* הדמיית המוצר (מסומנת כדוגמה) */
.mock { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(18, 48, 71, .10); overflow: hidden; }
.mock .mtop { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock .mtop .mark { width: 30px; height: 30px; font-size: .95rem; border-radius: 8px; background: #1d6f89; }
.mock .mtop b { font-size: var(--fs-sm); } .mock .mtop small { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.2; }
.mock .mbody { padding: 16px; display: grid; gap: 12px; background: var(--bg); }
.mock .mcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 12px 14px; }
.mock .mcard .k { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.mock .mcard .t { font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; }
.mock .mcard .m { font-size: var(--fs-sm); color: var(--muted); }
.mock .mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock .mbtn { background: #1d6f89; color: #fff; border-radius: 8px; padding: 4px 12px; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.mock .mbar { height: 6px; border-radius: 3px; background: var(--subtle); margin-top: 8px; position: relative; overflow: hidden; }
.mock .mbar::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 40%; background: #299fc3; border-radius: 3px; }
.mock .mlist { display: grid; gap: 6px; margin-top: 6px; } .mock .mlist div { font-size: var(--fs-sm); display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.mock .mocktag { position: absolute; top: 10px; inset-inline-end: 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 10px; }
@media (max-width: 900px) {
  .about .abouttop { padding: var(--s7) 0 var(--s6); }
  .about .abouttop .wrap { grid-template-columns: 1fr; gap: var(--s6); }
  .about .abouttop h1 { font-size: var(--fs-hero-m); }
  .about .cards3 { grid-template-columns: 1fr; }
  .about .pubbar nav { margin-inline-start: 0; width: 100%; padding-bottom: var(--s2); }
}
@media (max-width: 640px) { .about .pubbar nav .opt { display: none; } .about .learners { padding: var(--s5); } }
@media (prefers-color-scheme: dark) { .mock .mtop .mark, .mock .mbtn { background: #1d7391; } }

/* כרטיס קורס לתלמיד */
.course .head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.course .icon { width: 48px; height: 48px; border-radius: var(--radius-btn); background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-xl); flex: none; }
.course .head .grow { min-width: 180px; } .course .head h2 { margin: 0; }
.lessons { list-style: none; margin: 14px 0 0; padding: 0; }
.lessons li { display: flex; gap: var(--s3) var(--s4); align-items: center; flex-wrap: wrap; padding: var(--s4) 0; border-top: 1px solid var(--line); }
.lessons .grow { min-width: 200px; } .lessons p { margin: 4px 0; }

/* תחתית */
.sitefoot { text-align: center; color: var(--muted); padding: var(--s5) var(--pad) var(--s6); border-top: 1px solid var(--line); background: var(--card); margin-top: var(--s6); font-size: var(--fs-sm); }
.sitefoot p { margin: 4px 0; } .sitefoot strong { color: var(--fg); font-weight: 500; } .sitefoot a { font-weight: 500; white-space: nowrap; }
.sitefoot.slim { background: transparent; border-top: 0; margin-top: 0; padding: 8px 16px 24px; font-size: var(--fs-sm); }
main.login + .sitefoot { background: transparent; border-top: 0; margin-top: 8px; }

@media (max-width: 640px) { main { padding-block: var(--s5) var(--s6); } .card { padding: var(--s4); } input, select, textarea, .pwrow { max-width: none; } .login { margin-top: 2vh; } .login .card { padding: var(--s5) var(--s4); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.mt0 { margin-top: 0; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; }
code.hex { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- אזור הלומד: "מה עכשיו" ---------- */
.nextup { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); margin-bottom: var(--s6); display: flex; gap: var(--s5); align-items: center; justify-content: space-between; flex-wrap: wrap; border-inline-start: 4px solid var(--brand); }
.nextup .k { color: var(--muted); font-weight: 500; font-size: var(--fs-sm); margin: 0 0 2px; }
.nextup h2 { margin: 0 0 4px; font-size: var(--fs-xl); }
.nextup p { margin: 0; color: var(--muted); }
.nextup .grow { flex: 1 1 280px; }
.pagehead { display: flex; gap: var(--s3) var(--s5); align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--s5); }
.pagehead h1 { margin: 0; } .pagehead p { margin: 4px 0 0; color: var(--muted); }
.sectionhead { display: flex; gap: var(--s3); align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin: var(--s6) 0 var(--s3); }
.sectionhead h2 { margin: 0; }
.course .lessons h3 { font-size: var(--fs-lg); }
.course .kindtag { font-size: var(--fs-sm); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; white-space: nowrap; }
.about .homelink { text-decoration: none; }

/* ---------- ניהול הפלטפורמה: רשימת חברות קומפקטית ---------- */
.toolbar { display: flex; gap: var(--s3) var(--s4); flex-wrap: wrap; align-items: flex-end; margin: var(--s5) 0 var(--s2); }
.toolbar label { margin-top: 0; } .toolbar input, .toolbar select { max-width: none; } .toolbar .grow { flex: 1 1 260px; }
.orgrow { padding: var(--s4) var(--s5); margin-bottom: var(--s3); }
.orgrow h2 { font-size: var(--fs-lg); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.orgrow .facts { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.orgrow .orgmore { display: flex; gap: 0 var(--s5); flex-wrap: wrap; } .orgrow .orgmore details { margin-top: 4px; } .orgrow .orgmore details[open] { flex-basis: 100%; }
details.newcard > summary { font-size: var(--fs-lg); font-weight: 700; }
details.newcard[open] > summary { margin-bottom: var(--s2); }
.mock .mcard .m { white-space: nowrap; }

/* דפים בלי סרגל צד (תלמיד, מרצה): הכותרת מיושרת לרוחב התוכן */
/* כותרת ברוחב אחיד בכל התפקידים */
/* רוחב 320: אין גלישה בכותרת ובכרטיס הכניסה של ניהול הפלטפורמה */
.login .who { flex-wrap: wrap; row-gap: var(--s2); }
@media (max-width: 480px) { header.top .platformtag { display: none; } }
/* פעולות בשורת מפגש: בשורה אחת, לא זו מעל זו */
td.actions { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; } td.actions details { margin: 0; } td.actions details[open] { flex-basis: 100%; }
@media (max-width: 700px) { .scroll td.actions { display: flex; } }
.course .lessons h4, .lessons h3.ltitle { font-size: var(--fs-md); font-weight: 700; margin: 0; }

/* סבב שופטים 7 */
/* שעה וטווח: בשורה אחת כשיש מקום, ונשברים אחרי ה-"·" במסך צר (לא נחתכים) */
@media (max-width: 700px) { td.when, .when { white-space: normal; } }
/* קישור לשם קצר מאוד (למשל "R") עדיין מטרה של 24 פיקסלים לפחות */
tbody th a { min-inline-size: 24px; }
/* מצב כהה: מסגרת הכפתור המשני בהירה מספיק (3:1 ומעלה מול הכרטיס) */
@media (prefers-color-scheme: dark) { button.secondary, .btn.secondary { border-color: var(--brand-ink); } }

/* סבב שופטים 8 */
/* כתובת כניסה ארוכה ברשימת החברות נשברת, ולא מרחיבה את הדף ב-320 */
.orgrow a, .orgrow h2 { overflow-wrap: anywhere; min-width: 0; } .orgrow .spread > div { min-width: 0; }
/* שורה שקיבלה מיקוד אחרי "הצגת עוד": טבעת גלויה (הכלל הכללי מסתיר מיקוד של tabindex=-1 בכותרות) */
tbody th[tabindex="-1"]:focus { outline: 3px solid var(--brand-strong); outline-offset: -3px; }
@media (prefers-color-scheme: dark) {
  tbody th[tabindex="-1"]:focus { outline-color: #fff; }
  /* מסגרות בצבע הפעולה במצב כהה: הגוון הבהיר (3:1 ומעלה מול הכרטיס) */
  input[type=file]::file-selector-button { border-color: var(--brand-ink); }
}
/* עמוד האודות: כותרות האזורים 32 במחשב, 28 בטלפון */
.about section.block h2 { font-size: var(--fs-2xl); }
@media (max-width: 640px) { .about section.block h2 { font-size: var(--fs-2xl-m); } }
/* אייקונים משותפים (מסכה של SVG בקו, נצבעים לפי background; aria-hidden תמיד). icon() ב-lib.js; השם .ic שמור לאייקונים הגדולים של דף החברה */
.icon { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; vertical-align: -4px; }
.i-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5v7l6-3.5z'/%3E%3C/svg%3E"); }
.i-live { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M7.8 7.8a6 6 0 0 0 0 8.4M16.2 7.8a6 6 0 0 1 0 8.4M5 5a10 10 0 0 0 0 14M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
.i-book { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 1 6.5 18H20v3H6.5'/%3E%3C/svg%3E"); }
.i-clock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.i-layers { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3C/svg%3E"); }
.i-users { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E"); }
.i-check { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E"); }
.i-lock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.i-room { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='12' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.i-contrast { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3a9 9 0 0 1 0 18z' fill='%23000'/%3E%3C/svg%3E"); }
.i-search { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }

/* ---------- קטלוג וכרטיסי קורס (בסגנון קמפוס IL ו-HubSpot Academy) ---------- */
ul.tiles { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
a.tile { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--fg); text-decoration: none; transition: border-color .12s, box-shadow .12s, transform .12s; }
a.tile:hover { border-color: var(--brand); box-shadow: 0 16px 40px rgba(18, 48, 71, .10); }
@media (prefers-reduced-motion: no-preference) { a.tile:hover { transform: translateY(-2px); } }
a.tile:focus-visible { outline-offset: 3px; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--subtle); }
.tbody { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.tbody h3 { margin: 0; font-size: var(--fs-lg); line-height: 1.35; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 2px 12px; }
ul.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--s4); color: var(--muted); font-size: var(--fs-sm); }
ul.facts li { display: inline-flex; align-items: center; gap: 6px; } ul.facts .icon { width: 18px; height: 18px; color: var(--brand-ink); }
.tbody .progress { margin-top: auto; padding-top: var(--s2); }
/* פס התקדמות */
.progress { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-sm); margin: 0 0 var(--s4); }
.progress .bar { flex: 1; height: 8px; border-radius: 999px; background: var(--subtle); overflow: hidden; min-width: 80px; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--brand-strong); border-radius: 999px; }
/* דף קורס ללומד */
.chero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s6); align-items: center; margin-bottom: var(--s5); }
.chero .ctext { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.chero h1 { margin: 0; } .chero .lead { margin: 0; color: var(--muted); font-size: var(--fs-lg); max-width: 60ch; }
.chero .ctas { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s2); }
.chero .cover.big { border-radius: var(--radius); box-shadow: var(--shadow); }
a.crumb { color: var(--muted); text-decoration: none; font-weight: 500; } a.crumb:hover { color: var(--brand-ink); text-decoration: underline; }
ul.factbar { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); padding: var(--s4) var(--s5); }
ul.factbar li { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
ul.factbar .fic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
ul.factbar .fic .icon { width: 22px; height: 22px; }
ul.factbar .k { display: block; font-size: var(--fs-sm); color: var(--muted); } ul.factbar b { display: block; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 900px) { .chero { grid-template-columns: 1fr; } .chero .cover.big { order: -1; } ul.factbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* שיעורים עם אייקון סוג וסימון "הושלם" */
.lessons li .kindic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--subtle); color: var(--brand-ink); align-self: flex-start; }
.lessons li.done .kindic { background: var(--ok-bg); color: var(--ok); }

/* ---------- ניגודיות גבוהה (מתג בתחתית העמוד; נשמר בדפדפן) ---------- */
:root[data-contrast="high"] { --fg: #000; --muted: #1f2f36; --line: #4f6168; --field: #2b3a40; --subtle: #e6eeee; --shadow: none; --brand-ink: #0b4a5e; --brand-strong: #0b4a5e; --brand-hover: #073847; }
:root[data-contrast="high"] a { text-decoration: underline; }
:root[data-contrast="high"] .card, :root[data-contrast="high"] a.tile, :root[data-contrast="high"] .badge, :root[data-contrast="high"] .chip { border: 1.5px solid var(--fg); }
:root[data-contrast="high"] :focus-visible { outline: 3px solid #000; outline-offset: 2px; box-shadow: 0 0 0 6px #ffd60a; }
@media (prefers-color-scheme: dark) { :root[data-contrast="high"] { --fg: #fff; --muted: #e3eef2; --line: #a9bdc8; --brand-ink: #b9e6f3; } :root[data-contrast="high"] :focus-visible { outline-color: #fff; } }
button.contrast { background: none; border: 1px solid var(--line); color: var(--muted); font-weight: 500; min-height: 36px; padding: 4px 12px; font-size: var(--fs-sm); }
button.contrast[aria-pressed="true"] { color: var(--fg); border-color: var(--fg); }
button.contrast:not([disabled]):hover { background: var(--subtle); color: var(--fg); border-color: var(--fg); }

.coverpreview { max-width: 360px; border-radius: var(--radius-btn); border: 1px solid var(--line); margin-bottom: var(--s2); }
/* כותרת שמקבלת מיקוד מהקוד (מעבר מסך) בלי טבעת גם בניגודיות גבוהה; שורה ראשונה ברשימה בלי קו כפול מתחת ללשוניות */
:root[data-contrast="high"] h1[tabindex="-1"]:focus, :root[data-contrast="high"] h2[tabindex="-1"]:focus, :root[data-contrast="high"] main:focus { outline: none; box-shadow: none; }
.tabpanel .lessons > li:first-child { border-top: 0; padding-top: var(--s2); }

.i-disk { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v12c0 1.7 3.6 3 8 3s8-1.3 8-3V6M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3'/%3E%3C/svg%3E"); }
.i-shield { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.5 3 8.3 7 10 4-1.7 7-5.5 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.i-plus { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.i-cal { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3C/svg%3E"); }
.i-alert { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17v.5'/%3E%3C/svg%3E"); }
.i-mail { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

/* ---------- ניהול הפלטפורמה: כרטיס חברה עם הלוגו ופס בצבע החברה ---------- */
.orgrow { border-inline-start: 5px solid var(--org, var(--brand)); }
.orghead { display: flex; gap: var(--s4); align-items: flex-start; flex-wrap: wrap; }
.orghead .orglogo { flex: none; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: var(--fs-xl); font-weight: 700; color: #fff; background: var(--org, var(--brand-strong)); overflow: hidden; }
.orghead img.orglogo { background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 4px; }
.orghead .grow { min-width: 0; flex: 1 1 260px; } .orghead .acts { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.orgrow ul.facts { margin-top: var(--s3); }

/* ---------- סקירת הארגון: מדדים עם אייקון ופעולות מהירות ככרטיסים ---------- */
a.kpi { display: flex; align-items: center; gap: var(--s4); text-align: start; }
a.kpi .kic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
a.kpi .kic .icon { width: 26px; height: 26px; }
a.kpi.alert .kic { background: var(--bad-bg); color: var(--bad); }
a.kpi b { margin: 0; } a.kpi span.kl { display: block; color: var(--muted); }
ul.quick { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
ul.quick a { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
ul.quick a:hover { border-color: var(--brand); color: var(--brand-ink); }
ul.quick .icon { width: 24px; height: 24px; color: var(--brand-ink); }
ul.quick small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- אריח תאריך (מפגשים) ---------- */
.datetile { flex: none; width: 68px; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: var(--card); align-self: flex-start; }
.datetile .m { display: block; background: var(--brand-strong); color: #fff; font-size: var(--fs-sm); font-weight: 600; padding: 2px 0; }
.datetile .d { display: block; font-size: var(--fs-xl); font-weight: 700; line-height: 1.4; }
.datetile .w { display: block; font-size: var(--fs-xs); color: var(--muted); padding-bottom: 4px; }
.sessrow { display: flex; gap: var(--s4); align-items: flex-start; }
/* ראשי תיבות של משתמש */
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: var(--fs-sm); margin-inline-end: var(--s2); vertical-align: middle; }
.who-cell { display: inline-flex; align-items: center; }

.i-eye { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.i-eyeoff { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10.4 10.4 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.2M6.6 6.6A16.6 16.6 0 0 0 2 12s3.6 7 10 7a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
.i-more { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1.2'/%3E%3Ccircle cx='12' cy='12' r='1.2'/%3E%3Ccircle cx='19' cy='12' r='1.2'/%3E%3C/svg%3E"); }
.i-camera { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 10l5-3v10l-5-3z'/%3E%3Crect x='3' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E"); }

/* =====================================================================
   רכיבים (אוחדו בסבב 9 מתוך שכבות הסבבים הקודמים: כל רכיב במקום אחד)
   נקודות שבירה: 600 (טלפון), 700 (טבלאות לכרטיסים), 800 (פריסה רחבה)
   ===================================================================== */

/* ---------- טיפוגרפיה: בלי מילה יתומה ---------- */
h1, .hero h1, .hero .intro, .lead, .chero .lead { text-wrap: balance; }
p, li, .notice { text-wrap: pretty; }
/* שם המותג לא נשבר באמצע בטקסט רץ */
.nobr { white-space: nowrap; }

/* ---------- כותרת האתר ---------- */
header.top .brand > span, header.top .brand > div { min-width: 0; }
/* בטלפון: בלי שורת "מופעל באמצעות" (במקום שם מותג חתוך) */
@media (max-width: 480px) { header.top .brand small { display: none; } }

/* ---------- הודעות: פס צד ישר (לא מתעגל עם הפינות) ---------- */
.notice { position: relative; border-inline-start: 0; padding-inline-start: 20px; }
.notice::before { content: ''; position: absolute; inset-block: 8px; inset-inline-start: 6px; width: 3px; border-radius: 3px; background: currentColor; }
/* בתוך כרטיס שיעור: שורה שקטה עם פס, לא תיבה צבעונית נוספת */
.lcard .notice.warn { background: none; border: 0; border-radius: 0; padding: 2px 12px; margin: 8px 0; color: var(--fg); font-size: var(--fs-sm); }
.lcard .notice.warn::before { inset-block: 2px; inset-inline-start: 0; background: var(--warn); }

/* ---------- שער קורס בלי תמונה: האות הראשונה על גוון מהמותג (נקבע ב-JS) ---------- */
.cover.ph { position: relative; overflow: hidden; display: grid; place-items: center; background: var(--ph, linear-gradient(135deg, #299fc3, #1d6f89)); }
.cover.ph .phl { font-size: 64px; font-weight: 800; line-height: 1; color: #fff; opacity: .92; text-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.cover.ph.big .phl { font-size: 120px; }
.cover.ph .icon { width: 44px; height: 44px; color: #fff; opacity: .5; }
.cover.ph.big .icon { width: 72px; height: 72px; }
ul.tiles.compact a.tile .cover { aspect-ratio: auto; height: 132px; }
ul.tiles.compact a.tile .cover.ph .phl { font-size: 52px; }
@media (max-width: 640px) { ul.tiles a.tile .cover { aspect-ratio: auto; height: 120px; } ul.tiles a.tile .cover.ph .phl { font-size: 48px; } }

/* ---------- כרטיסי קורס ---------- */
ul.tiles:has(> li:only-child) { grid-template-columns: 1fr; }
@media (min-width: 800px) {
  ul.tiles:has(> li:only-child) a.tile { flex-direction: row; }
  ul.tiles:has(> li:only-child) a.tile .cover { width: 46%; aspect-ratio: auto; min-height: 240px; }
  ul.tiles:has(> li:only-child) a.tile .tbody { padding: var(--s6); justify-content: center; }
  ul.tiles:has(> li:only-child) a.tile h3 { font-size: var(--fs-xl); }
}
a.tile .btnlike { align-self: flex-start; margin-top: var(--s3); font-weight: 700; color: var(--brand-ink); }
a.tile:hover .btnlike { text-decoration: underline; }

/* ---------- דף קורס לתלמיד ---------- */
.chero .ctas .btn { min-width: 220px; }
ul.factbar { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
ul.factbar b { white-space: nowrap; overflow-wrap: normal; }
.lessons .norec, .lcard .norec { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; align-self: center; }
.helpline { display: flex; gap: 8px; align-items: flex-start; margin: var(--s4) 0 0; padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.helpline .icon { width: 18px; height: 18px; margin-top: 2px; }
.helpline .contact { unicode-bidi: plaintext; }
/* בטלפון: שער נמוך יותר, כדי שרשימת השיעורים תתחיל מוקדם */
@media (max-width: 600px) { .chero .cover { max-height: 150px; } .chero .cover.ph .phl { font-size: 72px; } .chero .ctas .btn { min-width: 0; width: 100%; } }

/* ---------- תפריט "עוד" ---------- */
details.menu { position: relative; display: inline-block; margin: 0; }
details.menu > summary { text-decoration: none; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid color-mix(in srgb, var(--muted) 45%, var(--line)); border-radius: var(--radius-btn); background: var(--card); color: var(--fg); font-weight: 500; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.lcard .lfoot details.menu > summary, td.actions details.menu > summary { text-decoration: none; }
details.menu > summary:hover { background: var(--subtle); }
details.menu[open] > summary { border-color: var(--brand-strong); }
details.menu .menu-list { position: absolute; z-index: 20; inset-inline-end: 0; top: calc(100% + 6px); min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-btn); box-shadow: 0 16px 40px rgba(18, 48, 71, .16); padding: 6px; display: flex; flex-direction: column; }
details.menu .menu-list > a, details.menu .menu-list > button { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 8px; border: 0; background: none; color: var(--fg); text-decoration: none; font: inherit; font-weight: 500; text-align: start; justify-content: flex-start; cursor: pointer; }
details.menu .menu-list > a:hover, details.menu .menu-list > button:hover { background: var(--subtle); color: var(--fg); }
/* פעולה הרסנית אחרונה, מופרדת בקו */
details.menu .menu-list > .danger-text { color: var(--bad); margin-top: 4px; position: relative; }
details.menu .menu-list > .danger-text::before { content: ''; position: absolute; inset-inline: 6px; top: -3px; border-top: 1px solid var(--line); }
details.menu .menu-list > .danger-text:hover { background: var(--bad-bg); color: var(--bad); }

/* ---------- כרטיס שיעור (מנהל) ---------- */
/* מספור גלוי (הרשימה ממוספרת גם לקוראי מסך, כ-ol) */
ol.lcards { counter-reset: lesson; }
ol.lcards > li.lcard { counter-increment: lesson; }
ol.lcards > li.lcard .lhead h3::before { content: counter(lesson) '.'; color: var(--muted); font-weight: 600; margin-inline-end: .4em; }
/* בתוך כרטיס הקורס: בלי צל כפול */
.card ol.lcards > li.lcard { box-shadow: none; }
.lcard .lfoot { gap: var(--s2) var(--s3); }
.lcard .lfoot > details:not(.menu) > summary { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; padding: 4px 10px; border-radius: var(--radius-btn); color: var(--brand-ink); font-weight: 600; }
.lcard .lfoot > details:not(.menu) > summary:hover { background: var(--subtle); }
.lcard .lfoot details.menu[open] { flex-basis: auto; }
/* לוח "הקלטה וכתוביות" נפתח מהכפתור הראשי או מהתפריט "עוד", בלי לשונית משלו */
.lcard .lfoot > details.recbox:not([open]) > summary { display: none; }
/* בטלפון: שורה אחת קבועה — פעולה ראשית, "עריכת פרטים", ו־⋯ בקצה */
@media (max-width: 600px) {
  .lcard .lfoot { justify-content: flex-start; align-items: center; gap: 8px 4px; }
  .lcard .lfoot > button:first-child, .lcard .lfoot > a.btn:first-child { flex: 0 0 auto; }
  .lcard .lfoot > details > summary { padding-inline: 8px; }
  .lcard .lfoot > details.menu { margin-inline-start: auto; }
  .lcard .lfoot > details.menu > summary { width: 44px; padding: 0; justify-content: center; }
  .lcard .lfoot > details.menu > summary .mlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* אחרי פעולה המיקוד חוזר לכותרת השיעור: סימון עדין שנראה */
h3[data-fk]:focus, [data-fk][tabindex="-1"]:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 4px; }

/* ---------- טבלאות ---------- */
tbody th a { text-decoration: none; } tbody th a:hover { text-decoration: underline; }
td .badge, td.nowrap { white-space: nowrap; }
@media (min-width: 701px) {
  tbody th { min-width: 200px; }
  /* שורה עם קישור: ריחוף מראה שהיא לחיצה */
  tbody tr:has(th a):hover { background: var(--subtle); }
}
/* תא פעולות: כפתורים עם רווח קבוע ביניהם */
td.actions { white-space: nowrap; }
td.actions details:not(.menu) > summary { list-style: none; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid color-mix(in srgb, var(--muted) 45%, var(--line)); border-radius: var(--radius-btn); background: var(--card); color: var(--brand-ink); font-weight: 600; }
td.actions details:not(.menu) > summary::-webkit-details-marker { display: none; }
@media (min-width: 701px) {
  td.actions { display: table-cell; min-width: 320px; }
  td.actions > *, td.actions > details { display: inline-flex; vertical-align: middle; margin: 2px 0; margin-inline-end: 8px; }
  td.actions > details[open] { display: block; }
}
/* בטלפון הטבלה הופכת לכרטיסים: תא ריק או תא פעולות ריק לא מוצג */
@media (max-width: 700px) { td:empty, td.actions:not(:has(*)) { display: none; } }
/* טבלאות דחוסות בטלפון (תלמידים, מפגשים, צוות): שורה אחת של נתונים, בלי תוויות */
@media (max-width: 700px) {
  .stable .scroll td[data-label]::before { display: none; }
  .stable .scroll tr { padding: 10px 12px; }
  .stable .scroll td, .stable .scroll th { padding: 0; border: 0; }
  .stable .scroll td[data-label] { display: inline; font-size: var(--fs-sm); color: var(--muted); unicode-bidi: isolate; }
  .stable .scroll td[data-label] + td[data-label]:not(.actions):not(:empty)::before { display: inline; content: '\202F·\00a0'; color: var(--muted); }
  /* מרצה בשורה משלו (שם ארוך לא נשבר עם המועד) */
  .stable .scroll td[data-label="מרצה"] { display: block; }
  .stable .scroll td[data-label="מרצה"] + td[data-label]::before { content: none !important; }
  .stable .scroll td.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .stable .scroll td.actions::before { display: none !important; }
}

/* ---------- מקטעים: המפריד יושב בריפוד שלפני הקטע (אף שורה לא מתחילה או נגמרת בנקודה) ---------- */
.segs { display: block; overflow: hidden; }
.segs-in { display: flex; flex-wrap: wrap; margin-inline-start: -1.1em; }
.seg { position: relative; padding-inline-start: 1.1em; min-width: 0; }
.seg::before { content: '·'; position: absolute; inset-inline-start: 0; top: 0; width: 1.1em; text-align: center; }
@media (max-width: 700px) { .spread > .grow { flex: 1 1 100%; min-width: 0; } }
/* בתחתית: המפריד בסוף הפריט */
.footlinks .segs-in { justify-content: center; margin-inline-start: 0; }
.footlinks .seg { padding-inline-start: 0; }
.footlinks .seg::before { content: none; }
.footlinks .seg:not(:last-child)::after { content: '\00a0·'; margin-inline-end: .35em; color: var(--muted); }

/* ---------- מועד: יום ותאריך, ואחריהם השעות כיחידה אחת ---------- */
.when { white-space: normal; }
.when .wd, .when .wt { white-space: nowrap; }
.when .wt { unicode-bidi: isolate; }
.when .wds { display: none; }
@media (max-width: 600px) { .when .wdl { display: none; } .when .wds { display: inline; } .when { white-space: nowrap; } }
@media (max-width: 340px) { .when { white-space: normal; } }

/* ---------- לשוניות: בטלפון נשברות לשתי שורות (כל הלשוניות גלויות, בלי גלילה מוסתרת) ---------- */
@media (max-width: 600px) { [role=tablist] { flex-wrap: wrap; overflow: visible; } }

/* ---------- כותרת עם פעולה ראשית, וטופס "חדש" שנפתח ממנה ---------- */
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.pagehead h1 { margin-bottom: 0; }
.pagehead + details.newform.headed { margin-top: var(--s4); }
details.newform { margin-bottom: var(--s5); }
details.newform > summary { list-style: none; display: inline-flex; }
details.newform > summary::-webkit-details-marker { display: none; }
details.newform[open] > summary { margin-bottom: var(--s4); }
details.headed > summary { display: none; }

/* ---------- חברות (מנהל הפלטפורמה) ---------- */
.orgrow { padding: var(--s3) var(--s4); margin-bottom: var(--s2); border-inline-start: 1px solid var(--line); }
.orgrow .orghead { align-items: center; }
.orgrow .orghead .orglogo { width: 44px; height: 44px; font-size: var(--fs-lg); }
.orgrow h2 { font-size: var(--fs-md); margin: 0; }
.orgrow .grow .muted { font-size: var(--fs-sm); }
.orgrow .grow .muted a { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); } .orgrow .grow .muted a:hover { text-decoration: underline; }
.orgrow .grow .muted a[dir=ltr] { unicode-bidi: isolate; overflow-wrap: anywhere; }
.orgrow .orgline { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: baseline; }
.orgrow .orgline a[dir=ltr] { white-space: nowrap; }
.orgrow ul.facts { margin-top: var(--s2); }
.orgrow .orgmore { display: flex; gap: var(--s4); margin-top: 4px; }
.orgrow .orgmore details[open] { flex-basis: 100%; }
.orgrow .orgmore summary { font-size: var(--fs-sm); padding: 2px 0; }

/* ---------- סיסמה: כפתור עין בתוך השדה ---------- */
.pwrow { position: relative; display: block; max-width: 480px; }
.pwrow input { width: 100%; padding-inline-end: 52px; }
.pwrow button.eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); min-height: 36px; width: 44px; padding: 0; background: none; border: 0; color: var(--muted); }
.pwrow button.eye:not([disabled]):hover { background: var(--subtle); color: var(--fg); border: 0; }
.pwrow button.eye .icon { width: 22px; height: 22px; }

/* ---------- שונות ---------- */
button.secondary.danger-text { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); color: var(--bad); background: var(--card); }
@media (max-width: 640px) { a.kpi { gap: var(--s3); } a.kpi .kic { width: 36px; height: 36px; border-radius: 10px; } a.kpi .kic .icon { width: 20px; height: 20px; } a.kpi span.kl { font-size: var(--fs-sm); line-height: 1.35; } }
