﻿:root {
  color-scheme: light;
  --ink: #18312f;
  --muted: #5a6a67;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #dfe6e2;
  --brand: #1c514a;
  --brand-2: #2f776c;
  --focus: #0d6efd;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
small { font-size: 15px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; inset: 8px auto auto 8px; transform: translateY(-150%); z-index: 10; padding: 10px 16px; background: #fff; border: 2px solid var(--focus); border-radius: 8px; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.topbar { height: 78px; display: grid; grid-template-columns: 230px 1fr 190px; align-items: center; gap: 24px; padding: 0 max(24px, calc((100vw - 1220px) / 2)); background: var(--brand); color: white; box-shadow: 0 2px 12px rgba(20,49,45,.18); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #f4d58d; color: #173b37; font-weight: 900; font-size: 15px; }
.brand strong, .brand small, .profile-button strong, .profile-button small { display: block; }
.brand strong { font-size: 23px; line-height: 1; }
.brand small { margin-top: 4px; opacity: .85; font-size: 15px; }
/* ת-16 (30.8): `nav a { display: flex }` הוא כלל מפורש, והוא דורס את
   `[hidden] { display: none }` של הדפדפן — ולכן הקישור "בקרת מערכת",
   שמסומן `hidden` ב-index.html ונחשף רק כש-`account.isAdmin`, היה גלוי
   בתפריט לכל מורה ולפני שנכנסו בכלל. אין כאן דליפת הרשאה (השרת אוכף
   `requireAdmin` ומחזיר 403) — אבל מורה ראתה פריט שאינו שלה ונכשל
   בלחיצה. הכלל הגורף מחזיר ל-`hidden` את משמעותו בכל המסמך. */
[hidden] { display: none !important; }
nav { display: flex; align-items: stretch; height: 100%; justify-content: center; gap: 4px; }
nav a { display: flex; align-items: center; padding: 0 14px; text-decoration: none; font-size: 15px; opacity: .85; border-bottom: 3px solid transparent; }
nav a:hover, nav a.active { opacity: 1; background: rgba(255,255,255,.06); border-bottom-color: #f4d58d; }
.profile-button { border: 0; background: transparent; color: white; display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-align: right; cursor: pointer; }
.profile-button small { margin-top: 2px; opacity: .72; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--brand); background: #e6f0ed; font-weight: 800; }

.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 80px; }
.welcome { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--brand-2); font-weight: 800; font-size: 15px; letter-spacing: .04em; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.welcome p:last-child { margin: 8px 0 0; color: var(--muted); }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--brand); border-radius: 10px; padding: 11px 18px; font-weight: 750; cursor: pointer; }

.attention { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 14px; align-items: stretch; padding: 16px; margin-bottom: 46px; border: 1px solid #ead9bd; background: #fffaf0; border-radius: 16px; }
.attention-heading { display: flex; align-items: center; gap: 12px; }
.attention-heading h2 { margin: 0; font-size: 17px; }
.attention-heading p { margin: 3px 0 0; font-size: 15px; color: var(--muted); }
.attention-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f6d58f; color: #664b11; font-weight: 900; }
.attention-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: white; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }
.attention-item strong, .attention-item small { display: block; }
.attention-item small { margin-top: 4px; color: var(--muted); }
.attention-item.red { border-right: 4px solid #b33a3a; }
.attention-item.neutral { border-right: 4px solid #3d766e; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-title h2 { margin: 0; font-size: 25px; }
.section-title > a { color: var(--brand-2); font-weight: 750; font-size: 15px; }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 46px; }
.action-card { min-height: 205px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.action-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(25,55,49,.09); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-size: 21px; font-weight: 850; }
.green .card-icon { background: #dfeee9; color: #1d6358; }
.blue .card-icon { background: #e0eaf3; color: #315f84; }
.amber .card-icon { background: #fbecd1; color: #8a5d18; }
.plum .card-icon { background: #eee3ee; color: #704970; }
.action-card strong, .action-card small { display: block; }
.action-card strong { font-size: 18px; }
.action-card small { margin-top: 7px; line-height: 1.55; color: var(--muted); }
.action-card .arrow { margin-top: auto; color: var(--brand-2); font-size: 20px; }

.overview { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; }
/* סרטוני הדרכה — המקטע האחרון במסך הבית (בגלילה למטה). הנגן בלחיצה
   בלבד; הפוסטר הוא פריים מהסרטון ולכן יחס 16:9 קבוע כדי שהעמוד לא
   יקפוץ כשהנגן נטען. גודל טקסט חי 15px לפחות (הנחיות המועצה, סעיף 4.1). */
.videos { margin-top: 46px; }
.videos .section-title { align-items: start; }
.videos .section-title p { margin: 6px 0 0; max-width: 62ch; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.video-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.video-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; }
.video-number { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; background: #e6f0ed; color: var(--brand); font-size: 15px; font-weight: 800; }
.video-context { margin: 0; color: var(--muted); font-size: 15px; }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #0f2523; }
.video-outcome { margin: 0; font-size: 15px; }
.video-transcript { border-top: 1px solid var(--line); padding-top: 8px; }
.video-transcript summary { cursor: pointer; padding: 6px 0; color: var(--brand); font-weight: 750; }
.video-transcript ol { margin: 6px 0 4px; padding-inline-start: 24px; font-size: 15px; line-height: 1.65; }
.overview-group + .overview-group { margin-top: 22px; }
.overview-group h3 { margin: 0 0 10px; }
.class-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.class-list article { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; background: white; }
.class-name { display: grid; place-items: center; width: 48px; height: 42px; background: #e6f0ed; border-radius: 10px; color: var(--brand); font-weight: 850; }
.class-list strong, .class-list small { display: block; }
.class-list small { margin-top: 3px; color: var(--muted); }
.status { padding: 6px 10px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.done { color: #246c50; background: #e3f3e9; }
.needs { color: #923d3d; background: #f8e5e5; }
.pending { color: #555; background: #ededed; }

@media (max-width: 950px) {
  .topbar { height: auto; min-height: 78px; grid-template-columns: 1fr auto; padding: 10px 20px 0; }
  .topbar > nav { grid-column: 1 / -1; width: 100%; height: 48px; justify-content: flex-start; overflow-x: auto; overscroll-behavior-inline: contain; }
  .topbar > nav a { min-height: 44px; white-space: nowrap; }
  .attention { grid-template-columns: 1fr 1fr; }
  .attention-heading { grid-column: 1 / -1; }
  .action-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .topbar { min-height: 68px; }
  .profile-button > span:last-child { display: none; }
  .shell { width: min(100% - 24px, 1160px); padding-top: 28px; }
  .welcome { align-items: start; flex-direction: column; }
  .attention, .action-grid, .video-grid { grid-template-columns: 1fr; }
  .attention-heading { grid-column: auto; }
  .videos .section-title { flex-direction: column; align-items: start; }
  .action-card { min-height: 170px; }
  .class-list article { grid-template-columns: 52px 1fr; }
  .class-list .status { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.button-link { display: inline-block; text-decoration: none; }
.page-head { margin-bottom: 26px; }
.page-head > a { display: inline-block; margin-bottom: 24px; color: var(--brand-2); font-weight: 750; text-decoration: none; }
.page-head h1 { margin-bottom: 8px; }
.page-head > p:last-child { margin: 0; color: var(--muted); }
.panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.panel h2 { margin: 0 0 20px; }
.two-column { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.entity-list, .test-list, .manage-list, .test-groups { display: grid; gap: 10px; }
.entity-row { width: 100%; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; padding: 12px; text-align: right; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.entity-row strong, .entity-row small { display: block; }
.entity-row small { margin-top: 4px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: grid; gap: 7px; font-size: 15px; font-weight: 750; color: #3c514e; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid #cdd8d4; background: #fff; border-radius: 10px; padding: 11px 12px; color: var(--ink); }
.form-grid textarea { resize: vertical; line-height: 1.6; }
.full { grid-column: 1 / -1; }
.primary-button { border: 0; border-radius: 10px; padding: 12px 18px; color: white; background: var(--brand); font-weight: 800; cursor: pointer; }
.creation-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.creation-tabs button { border: 1px solid var(--line); border-radius: 10px 10px 0 0; padding: 11px 18px; color: var(--brand); background: #eef3f1; font-weight: 750; cursor: pointer; }
.creation-tabs button.active { color: white; background: var(--brand); }
.hidden { display: none !important; }
.info-box, .success-box { padding: 13px 15px; border-radius: 10px; background: #edf6f3; color: #285c55; line-height: 1.5; }
/* ח-2: שורת חופשה שלא הובנה — האזהרה חייבת להיראות אחרת מן הספירה
   הרגילה, אחרת היא נקראת כחלק מן המשפט ונעלמת בדיוק כמו התאריך עצמו. */
.info-box.warn { background: #fff9e9; color: #594512; border: 1px solid #d6bd78; }
/* כתובת הסריקות (7.9) — אותו רכיב בכל מסך שבו סורקים או מדפיסים. */
.scan-address { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 13px 16px; border: 1px solid #cfe0da; border-radius: 12px; background: #f1f8f5; }
.scan-address.compact { margin-bottom: 22px; padding: 10px 14px; }
.scan-address-label { font-weight: 800; color: #285c55; }
.scan-address-value { display: inline-block; padding: 6px 11px; border: 1px solid #b9d3cb; border-radius: 8px; background: #fff; color: #173b37; font-family: Consolas, "Courier New", monospace; font-size: 17px; font-weight: 700; text-decoration: none; unicode-bidi: isolate; overflow-wrap: anywhere; }
.scan-address-value:hover { text-decoration: underline; }
.copy-scan-address { padding: 7px 14px; }
.scan-address .copy-status { color: #285c55; font-weight: 700; }
.scan-address .copy-status:empty { display: none; }
.scan-address small { flex-basis: 100%; margin: 0; color: var(--muted); line-height: 1.5; }
.welcome + .attention + .scan-address { margin: -26px 0 40px; }
.scanner-devices .scan-address, .series-complete .scan-address { margin-top: 12px; }
.class-edit-context .scan-address { margin: 10px 0 0; background: #fff; }
.file-drop { min-height: 150px; place-items: center; align-content: center; border: 2px dashed #a9bdb7; background: #f7faf9; border-radius: 14px; }
.file-drop input { max-width: 360px; background: transparent; border: 0; }
.check-label { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.check-label input { width: auto; }
.progress { display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #e0e8e5; accent-color: var(--brand-2); }
.progress::-webkit-progress-bar { background: #e0e8e5; }
.progress::-webkit-progress-value { background: var(--brand-2); }
@keyframes load { to { transform: translateX(-35%); } }
.manage-list { gap: 16px; }
.manage-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.manage-class { padding: 0; overflow: hidden; }
.manage-class > summary { padding: 18px 22px; cursor: pointer; color: var(--brand); background: #f4f8f6; }
.manage-class > summary span, .manage-class > summary small { display: block; }
.manage-class > summary strong { font-size: 1.18rem; }
.manage-class > summary small { margin-top: 4px; color: var(--muted); }
.manage-class-body { padding: 18px 22px 22px; }
.manage-head h2 { margin-bottom: 4px; }
.manage-head p { margin: 0; color: var(--muted); }
.test-groups { gap: 14px; }
.test-group { padding: 0; overflow: hidden; background: #fbfdfc; }
.test-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer; color: var(--brand); font-weight: 850; background: #edf6f3; }
.test-group > summary small { color: var(--muted); font-weight: 650; }
.test-group > .test-list { padding: 10px; }
/* ת-1 (30.8): `display:flex` על summary מבטל את משולש החשיפה הנטיבי ב-Chrome/Edge,
   ולכן לא היה שום סימן חזותי ללחוץ עליו. chevron משלנו, ב-absolute כדי לא לשבור
   את ה-flex הקיים של `.test-group > summary`. */
.manage-class > summary, .test-group > summary { position: relative; padding-inline-end: 44px; list-style: none; }
.manage-class > summary::-webkit-details-marker, .test-group > summary::-webkit-details-marker { display: none; }
.manage-class > summary::after, .test-group > summary::after {
  content: '▾'; position: absolute; inset-inline-end: 16px; top: 50%;
  transform: translateY(-50%) rotate(90deg); transition: transform .15s ease;
  font-size: 1rem; line-height: 1; color: var(--muted);
}
.manage-class[open] > summary::after, .test-group[open] > summary::after { transform: translateY(-50%) rotate(0); }

/* ת-10 (30.8): לשונית הסדרה נושאת עכשיו ארבעה קישורים וכפתור מחיקה —
   צריך שיישבר יפה לשורות במקום לגלוש. */
.group-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px 0; }
/* ת-6 (30.8): מחיקת סדרה — פעולה הרסנית, ולכן בצבע נפרד מקישורי ההורדה. */
.group-actions .delete-series { min-height: 38px; padding: 6px 14px; border: 1px solid #d8b6b6; border-radius: 9px; background: #fff; color: #b33a3a; font: inherit; font-weight: 700; cursor: pointer; }
.group-actions .delete-series:hover { background: #fdf4f4; }
.test-list article { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
/* ת-11 · מ-5ג (30.8): רשימת התלמידות והציונים נפתחת בתוך שורת הבוחן,
   ולכן היא חייבת לתפוס את כל רוחב הרשת ולא עמודה בודדת. */
/* ת-13 (30.8): הבהרה שהתמונה היא הסריקה, לא מצב ההכרעות העדכני. */
.scan-note { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.test-grades { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.test-grades h4 { margin: 0 0 8px; font-size: 1rem; }
.grade-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.grade-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px; border-radius: 8px; background: #f7faf9; }
.grade-list button { min-width: 44px; min-height: 34px; border: 1px solid #bdcbc7; border-radius: 8px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
/* ת-11 (30.8): קישור הטבלה לצד כל כיתה — במסך הכיתות ובכרטיסי הבית. */
.entity-row-group { display: grid; gap: 4px; }
.table-link { justify-self: start; font-weight: 650; }
.test-list strong, .test-list small { display: block; }
.test-list small { margin-top: 3px; color: var(--muted); }
.test-dot { width: 10px; height: 10px; border-radius: 50%; background: #303938; }
.test-dot.red { background: #b33a3a; }.test-dot.green { background: #2d7957; }
.decisions { margin-bottom: 16px; border-right: 5px solid #b33a3a; }
.decision-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.fill-readout { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.decision-row strong, .decision-row small { display: block; }.decision-row small { color: var(--muted); margin-top: 3px; }
.decision-row button { min-width: 38px; min-height: 38px; margin-inline-start: 5px; border: 1px solid #bdcbc7; border-radius: 9px; background: #fff; cursor: pointer; }
/* ת-15 (30.8): טבלת המורים בבקרת מערכת. */
.admin-search { display: block; margin: 0 0 14px; }
.admin-search input { width: 100%; max-width: 460px; }
.admin-actions { white-space: nowrap; }
.admin-actions button, .admin-classes button { min-height: 36px; margin: 2px; padding: 5px 12px; border: 1px solid #bdcbc7; border-radius: 9px; background: #fff; font: inherit; cursor: pointer; }
.admin-actions button.danger, .admin-classes button.danger { border-color: #d8b6b6; color: #b33a3a; }
.admin-actions button.danger:hover, .admin-classes button.danger:hover { background: #fdf4f4; }
.admin-classes { margin-top: 6px; }
.admin-classes summary { cursor: pointer; color: var(--brand); font-weight: 650; }
.admin-classes ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.admin-classes li { display: grid; gap: 2px; padding: 8px; border-radius: 8px; background: #f7faf9; text-align: right; }
.admin-classes li small { color: var(--muted); }
/* ת-18 (30.8): `width: 100%` בתוך `overflow-x: auto` **מבטל** את הגלילה —
   הטבלה נדחסה לרוחב המסך במקום לגלוש בו. בכיתה עם 84 בחנים זה 85 עמודות,
   וכל כותרת בת ~38 תווים נשברה לרצועה אנכית של תו-בשורה. `max-content`
   נותן לכל עמודה את רוחבה, ו-`min-width: 100%` שומר שכיתה עם 3 בחנים
   עדיין נפרשת על המסך ולא מצטמקת לפינה. עמודת השמות ננעצת, אחרת בגלילה
   של אלפי פיקסלים לרוחב לא רואים של מי השורה. */
.table-wrap { overflow-x: auto; }
.table-wrap table { width: max-content; min-width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 12px; border: 1px solid var(--line); text-align: center; }
.table-wrap thead th { min-width: 8.75rem; vertical-align: bottom; }
.table-wrap thead th .test-head-line { display: block; white-space: nowrap; font-size: .95rem; font-weight: 500; color: var(--muted); }
.table-wrap thead th .test-head-name { font-size: .95rem; font-weight: 800; color: inherit; }
.table-wrap tbody th { text-align: right; background: #f7faf9; min-width: 9.5rem; white-space: nowrap; position: sticky; inset-inline-start: 0; z-index: 1; }
.table-wrap thead th:first-child { min-width: 9.5rem; background: #f7faf9; position: sticky; inset-inline-start: 0; z-index: 2; }
.error { max-width: 620px; margin: 80px auto; text-align: center; }

/* ח-3ב/ח-9 (QA חי, 29.8): היה `visibility: hidden` — האלמנטים נעלמו אבל
   המשיכו לתפוס מקום (כפתור הפרופיל 38px, שורת הניווט 44px), והכותרת
   הירוקה יצאה 194px שרובם ריקים. במובייל זה דחף את כל התוכן מתחת לקיפול.
   `display: none` מוציא אותם גם מן העימוד. */
.topbar.signed-out nav, .topbar.signed-out .profile-button { display: none; }
.public .shell { max-width: 1160px; }
.public-hero { min-height: 520px; display: grid; grid-template-columns: 1.45fr .75fr; gap: 70px; align-items: center; }
.public-hero.compact { display: block; min-height: auto; }
.public-hero > div > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 20px; line-height: 1.7; }
.public-hero aside { display: grid; gap: 6px; padding: 30px; border-radius: 22px; background: #e7f0ed; box-shadow: 24px 24px 0 #f4d58d; }
.public-hero aside strong { margin-top: 14px; font-size: 19px; }.public-hero aside span { color: var(--muted); line-height: 1.5; }
.hero-actions, .button-group, .export-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions { margin-top: 28px; }.hero-actions > a:last-child { margin-inline-start: 8px; color: var(--brand-2); font-weight: 800; }
.public-features, .guide-grid, .metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.public-features article, .guide-grid article, .metric-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.public-features h2 { margin-top: 0; }.public-features p, .guide-grid p { color: var(--muted); line-height: 1.6; }
.guide-grid { margin: 32px 0; }.guide-grid b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #dfeee9; color: var(--brand); }
.auth-card { width: min(660px,100%); margin: 35px auto; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 20px 60px rgba(24,49,47,.08); }
.auth-card > a { display: inline-block; margin-bottom: 28px; color: var(--brand-2); }.auth-card h1 { margin-bottom: 26px; }
.one { grid-template-columns: 1fr; }.inline { display: inline-flex !important; grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center; margin: 8px 0 8px 18px; }.inline input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }legend { padding: 0 8px; font-weight: 800; }
.wizard { border-top-right-radius: 4px; }.stepper { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; list-style: none; padding: 0 0 25px; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.stepper li { display: grid; justify-items: center; gap: 7px; color: var(--muted); font-size: 15px; text-align: center; }.stepper span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf1ef; font-weight: 800; }.stepper .active { color: var(--brand); font-weight: 800; }.stepper .active span, .stepper .done span { color: white; background: var(--brand); }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 28px; }.wizard-actions button[disabled] { opacity: .4; cursor: not-allowed; }
.choice-card { display: flex; align-items: center; gap: 10px; padding: 13px; margin: 7px 0; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }.choice-card input { width: auto; }
.word-picker { max-height: 390px; overflow: auto; }.word-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }.word-list label { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }.word-list input { width: auto; }.word-list span { color: var(--muted); }
.assignment-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 20px; max-height: 420px; overflow: auto; }.assignment-grid label { display: grid; grid-template-columns: 1fr 95px; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); }
.file-inline { display: grid; gap: 7px; }.error-list { padding: 14px; border-radius: 10px; color: #923d3d; background: #f8e5e5; }.editor { margin-top: 18px; }
.button-group a, .export-bar a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); text-decoration: none; font-size: 15px; font-weight: 800; }.export-bar { margin-bottom: 16px; justify-content: flex-end; }
.table-wrap td button[data-grade-detail] { border: 0; background: #e3f3e9; color: #246c50; padding: 7px 10px; border-radius: 8px; font-weight: 900; cursor: pointer; }.table-wrap td form { display: flex; gap: 3px; margin-top: 6px; }.table-wrap td form input { width: 62px; padding: 4px; }.table-wrap td form button { padding: 4px; }
/* מייל רוני 11.10.2026: "נדרש פענוח" במקום ציון חלקי. כתום כהה על כתום
   בהיר — 6.38:1, מעל AA. הקישור מסומן גם בקו תחתון, לא בצבע בלבד. */
.table-wrap td .needs-decoding { display: inline-block; padding: 7px 10px; border-radius: 8px; background: #ffedd5; color: #9a3412; font-weight: 900; white-space: nowrap; }
.table-wrap td a.needs-decoding { text-decoration: underline; }
.checked-pages { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.checked-pages img { width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.metric-grid article { text-align: center; }.metric-grid strong { display: block; font-size: 36px; color: var(--brand); }.metric-grid span { color: var(--muted); }
.inquiry { width: min(720px,100%); margin: 55px auto 0; }.answer-corrections { display: grid; gap: 6px; }.answer-corrections select { width: 100%; min-width: 0; }.answer-corrections form { display: grid; grid-template-columns: 1fr minmax(100px,1fr) 70px; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); }
.empty-state { padding: 30px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.editor h3 { margin: 20px 0 16px; }.class-save-notice { margin-bottom: 14px; }
.class-edit-context { padding: 14px 16px; border: 1px solid #b9d7cd; border-radius: 13px; background: #f1f8f5; }
.class-edit-context.warning { border-color: #d6bd78; background: #fff9e9; color: #594512; }
.class-edit-context strong { display: block; margin-bottom: 5px; }.class-edit-context p { margin: 0; line-height: 1.55; }.class-edit-context ul { margin: 9px 0 0; padding-inline-start: 22px; }
/* ‏16.9: אזהרת סדרה חסרה — אותה פלטת אזהרה של .class-edit-context.warning. */
.series-gap { margin: 0 0 12px; padding: 12px 15px; border: 1px solid #d6bd78; border-radius: 11px; background: #fff9e9; color: #594512; line-height: 1.55; }
.series-gap strong { display: block; margin-bottom: 4px; }
.viewer-management { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfc; }
.viewer-management h4 { margin: 0 0 10px; font-size: 16px; }.viewer-management p { margin: 0; color: var(--muted); }
.viewer-management ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }.viewer-management li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #dde7e3; border-radius: 10px; background: white; }
.viewer-management li span { display: grid; gap: 3px; }.viewer-management li small { color: var(--muted); }.revoke-viewer { border: 1px solid #d9a7a7; border-radius: 9px; padding: 8px 10px; color: #8b2020; background: #fff5f5; font-weight: 800; cursor: pointer; }
.series-complete { max-width: 780px; margin: 30px auto; text-align: center; }
.completion-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: #e3f3e9; color: #246c50; font-size: 28px; font-weight: 900; }
.series-complete p { color: var(--muted); }.download-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.download-choices a { display: grid; place-items: center; min-height: 56px; }
.completion-links { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }.completion-links a { color: var(--brand-2); font-weight: 800; }
.upload-complete { display: grid; gap: 14px; }
.upload-report-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scanner-devices ul { display: grid; gap: 9px; padding: 0; list-style: none; }
.scanner-devices li { display: grid; grid-template-columns: minmax(140px,1fr) minmax(170px,1fr) auto; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; }
.scanner-devices li button { border: 1px solid #d9a7a7; border-radius: 9px; padding: 8px 11px; color: #8b2020; background: #fff5f5; font-weight: 800; }
.roster-editor [data-student-list] { display: grid; gap: 8px; margin-bottom: 12px; }
.student-edit-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.student-edit-row label { display: grid; gap: 5px; }
.student-edit-row button { min-height: 44px; border: 1px solid #d9a7a7; border-radius: 9px; padding: 8px 11px; color: #8b2020; background: #fff5f5; font-weight: 800; }

@media (max-width: 780px) {
  .two-column, .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .creation-tabs { overflow-x: auto; }
  .manage-head, .decision-row { align-items: stretch; flex-direction: column; }
  .test-list article { grid-template-columns: 12px 1fr; }
  .test-list article .button-group, .test-list article .status { grid-column: 2; justify-self: start; }
  .viewer-management li { align-items: stretch; flex-direction: column; }.revoke-viewer { align-self: start; }
  .scanner-devices li { grid-template-columns: 1fr; }
  .public-hero { grid-template-columns: 1fr; gap: 25px; }.public-hero aside { box-shadow: 10px 10px 0 #f4d58d; }.public-features, .guide-grid, .metric-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(3,1fr); }.word-list, .assignment-grid, .checked-pages, .download-choices { grid-template-columns: 1fr; }
}

/* בחירת חומר לימוד */
.material-step { display: grid; gap: 22px; }
.material-mode { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.material-mode legend, .format-fieldset legend { grid-column: 1/-1; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.choice-card span { display: grid; gap: 5px; }.choice-card small { color: var(--muted); line-height: 1.45; }
.material-options { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fbfdfc; }
.material-programs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.material-programs fieldset { display: grid; align-content: start; gap: 7px; border: 0; padding: 0; }.material-programs legend { font-weight: 800; padding-bottom: 6px; }
.material-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.material-option span { display: grid; gap: 3px; }.material-option small { color: var(--muted); }
.material-counter { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; padding: 16px 20px; border: 2px solid #1b7a68; border-radius: 16px; background: #effaf6; box-shadow: 0 8px 24px #173c3322; }
.material-counter b { font-size: 23px; color: #126251; margin-inline-end: 5px; }.material-counter small { grid-column: 1/-1; color: #385c54; }
.load-bank { width: 100%; min-height: 58px; font-size: 17px; }.word-search { display: grid; gap: 7px; font-weight: 750; margin-bottom: 14px; }
.manual-groups { display: grid; gap: 10px; max-height: 570px; overflow: auto; padding-inline-end: 5px; }
.manual-groups details { border: 1px solid var(--line); border-radius: 13px; background: white; }.manual-groups summary { cursor: pointer; padding: 12px 14px; font-weight: 850; }.manual-groups summary span { float: left; color: var(--muted); font-weight: 500; }
.manual-groups .word-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; padding: 0 12px 12px; }
.manual-groups .word-list label { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 8px; border: 1px solid #e3e9e6; border-radius: 9px; background: #fafcfb; }
.manual-groups .word-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }[data-word-label][hidden] { display: none!important; }

/* דוגמאות למבני שאלות */
.format-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.format-example { align-items: flex-start; min-height: 168px; }.format-example>span { width: 100%; }
.example-question, .example-answer { display: block; direction: ltr; text-align: left; border-radius: 10px; padding: 9px 11px; }.example-question { margin-top: 7px; background: #eff7f4; font-weight: 800; }.example-answer { background: #f8faf9; color: #33433f; font-size: 15px; line-height: 1.5; }

/* סדר המילים */
.word-order { display: grid; gap: 14px; }.distribution-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 8px; }.distribution-preview article { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }.distribution-preview span { font-size: 15px; }.distribution-preview small { color: #1b6959; font-weight: 750; }.assignment-grid label { align-items: center; }.assignment-grid select { min-width: min(270px, 100%); }

/* מבחן אישי */
.custom-questions { display: grid; gap: 16px; }.custom-question { position: relative; display: grid; gap: 12px; border: 1px solid #cbd9d4; border-radius: 17px; padding: 18px; background: #fbfdfc; }.custom-question legend { padding: 0 8px; font-size: 17px; font-weight: 850; color: #126251; }.custom-question label { display: grid; gap: 6px; font-weight: 750; }
.custom-answer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.correct-answer { padding: 10px; border-radius: 12px; background: #eaf8f2; color: #0d604e; }.remove-question { position: absolute; inset-inline-end: 14px; top: 10px; border: 0; background: transparent; color: #a33; }.add-question-button { min-height: 68px; border: 2px dashed #1b7a68; border-radius: 16px; background: #effaf6; color: #126251; font-size: 19px; font-weight: 900; cursor: pointer; }.add-question-button:hover { background: #e2f6ee; }

/* הכרעות סריקה */
.decisions { display: grid; gap: 16px; }.decision-card { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(250px,1.5fr) minmax(230px,1fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid #e2c2c2; border-radius: 16px; background: #fffafa; }.decision-title { display: grid; gap: 5px; }.decision-title small { color: var(--muted); }.decision-card figure { margin: 0; display: grid; gap: 5px; }.decision-card img { width: 100%; max-height: 150px; object-fit: contain; border: 2px solid #263632; border-radius: 10px; background: white; }.decision-card figcaption { color: var(--muted); font-size: 15px; text-align: center; }
.decision-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.decision-actions>span, .decision-actions>div, .decision-actions>small { grid-column: 1/-1; }.decision-actions>div { display: flex; gap: 7px; }.decision-actions button { min-height: 38px; border: 1px solid #8eaaa1; border-radius: 9px; background: white; font-weight: 800; cursor: pointer; }.decision-actions>div button { width: 42px; }.decision-actions>div.answer-texts { flex-direction: column; }.decision-actions>div.answer-texts button { width: auto; padding: 6px 12px; text-align: start; }.decision-actions .wrong-decision { color: #8b2020; border-color: #d9a7a7; background: #fff5f5; }.decision-actions small { color: #7a3737; }

@media (max-width:900px) { .material-mode,.material-programs,.format-grid,.distribution-preview { grid-template-columns:1fr; }.manual-groups .word-list { grid-template-columns:repeat(3,minmax(0,1fr)); }.decision-card { grid-template-columns:1fr; } }
@media (max-width:560px) { .manual-groups .word-list,.custom-answer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.material-counter { grid-template-columns:1fr; }.material-counter small { grid-column:1; } }

.site-footer { padding: 22px max(20px, calc((100vw - 1160px) / 2)); color: #fff; background: #173b37; }
.site-footer nav { height: auto; justify-content: flex-start; flex-wrap: wrap; }
.site-footer a { min-height: 44px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.manage-search { margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.manage-search label { display: grid; gap: 8px; max-width: 720px; font-weight: 800; }
.manage-search input { width: 100%; padding: 12px; border: 1px solid #b8c8c3; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.manage-search p { min-height: 1.5em; margin: 8px 0 0; color: var(--muted); }
.error-banner { margin: 0 0 18px; padding: 14px 16px; border: 2px solid #923d3d; border-radius: 12px; color: #6f2020; background: #fff1f1; font-weight: 800; }
.idle-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: #8a6d1d; color: #5c4508; background: #fff8e6; }
.idle-banner p { margin: 0; }
.accessibility-statement { max-width: 900px; }
.accessibility-statement p, .accessibility-statement li { max-width: 75ch; }
/* ת-7 (30.8): משוב מיידי ברגע הלחיצה, כדי שהכרטיס לא יילחץ פעמיים
   בזמן שהבקשה בדרך. */
.decision-card.is-resolving { opacity: .55; }
.decision-card.is-resolving button { cursor: progress; }
/* הכרטיס שאליו הוביל "נדרש פענוח" מן הטבלה (#manage?case=…) מקבל מוקד
   מתוכנת אחרי לחיצת עכבר, ושם :focus-visible אינו חל — הטבעת מפורשת. */
.decision-card:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
main, .panel, .action-card, .decision-card { overflow-wrap: anywhere; }

/* \u05de\u05d9\u05dc\u05d4 \u05de\u05e1\u05d5\u05d5\u05d2\u05ea restricted \u2014 \u05de\u05d5\u05e6\u05d2\u05ea \u05e2\u05dd \u05d4\u05e2\u05e8\u05d4 \u05d1\u05d1\u05d5\u05e8\u05e8 \u05d4\u05d9\u05d3\u05e0\u05d9 \u05d1\u05dc\u05d1\u05d3 */
.restricted-word-note { color: #8a5a00; margin-inline-start: 6px; white-space: nowrap; }

/* ע-16 — פניות מן האתר השיווקי במסך בקרת המערכת.
   שורה של ליד אינה כפתור ואינה נלחצת, ולכן היא article ולא .entity-row. */
.inquiry-row { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.inquiry-row strong, .inquiry-row small { display: block; }
.inquiry-row small { margin-top: 2px; color: var(--muted); }
.inquiry-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.inquiry-message { margin: 0; white-space: pre-wrap; padding: 10px 12px; border-radius: 10px; background: var(--surface, #f6f7fb); }

/* ח-4 — העמודים המשפטיים בפורטל. טקסט רציף וארוך, ולכן
   רוחב שורה מוגבל — שורה שרוחבה מסך מלא קשה לקריאה. */
.legal-document h2 { margin-top: 32px; }
.legal-document h3 { margin-top: 22px; }
.legal-document p, .legal-document li { max-width: 78ch; }
.legal-document ul { padding-inline-start: 22px; }
.legal-document li { margin-bottom: 8px; }
.legal-updated { color: var(--muted); }
.legal-note { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
/* הממשק החדש (11.11.2026) — simple-portal.js. גופן 15px לפחות, כמו כל השאר. */
