/* Training Supervision — Shared Styles
   Government-grade: סגנון רשמי, RTL, mobile-first */

/* גופנים מאוחסנים מקומית (לא תלוי ב-Google Fonts — נטען בכל רשת, כולל רשתות בתי ספר חוסמות) */
@import url('./fonts-local.css');

:root {
  /* ====== מנור — Design Tokens ====== */
  /* Core neutrals */
  --bg: #F3F7FA;
  --surface: #FFFFFF;
  --surface-soft: #EAF2F7;

  --text: #143E4C;
  --text-muted: #4F6E7A;
  --text-soft: #8FA4AD;

  /* Brand */
  --primary: #1A5365;
  --primary-dark: #0F3A48;
  --primary-soft: #D9ECF6;

  /* Accents — צבעי הלוגו */
  --sky: #86C3EF;
  --sky-soft: #E3F1FB;
  --lilac: #B598C3;
  --lilac-soft: #EFE6F3;
  --sage: #8CA68B;
  --sage-soft: #E5EDE3;
  --mint: #8CA68B;
  --mint-soft: #E5EDE3;
  --sand: #E9DDC7;
  --sand-soft: #F4EEDE;
  --coral: #D97757;
  --coral-soft: #F8DDD0;

  /* Lines & shadows */
  --border: #D3E1E8;
  --border-soft: #E4EDF2;
  --shadow-soft: 0 18px 45px rgba(20, 62, 76, 0.08);
  --shadow-card: 0 10px 28px rgba(20, 62, 76, 0.07);
  --shadow-hover: 0 24px 48px rgba(20, 62, 76, 0.12);

  /* Radius */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Spacing */
  --space-section: clamp(48px, 8vw, 96px);

  /* Compatibility — שמות ישנים → ערכים חדשים */
  --brand-primary: var(--primary-dark);
  --brand-secondary: var(--primary);
  --brand-accent: var(--mint);
  --bg-2: var(--surface-soft);
  --surface-2: var(--surface-soft);
  --border-strong: var(--primary);
  --text-2: var(--text-muted);
  --text-3: var(--text-soft);
  --gold-soft: var(--sand-soft);
  --gold-line: var(--border);
  --role-accent: var(--primary);

  /* Per-network palette (שמרתי קיים — שמיש בchips) */
  --net-ort: #1A5365;
  --net-amal: #D97757;
  --net-atid: #8CA68B;
  --net-sakhnin: #B598C3;
  --net-dror: #5AA4D6;
  --net-ezraei_haredi: #4F6E7A;
  --net-beit_el: #C9A66B;
  --net-kanada_israel: #C56B7B;
  --net-shulamit_haredi: #7B6B9B;

  /* Status */
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #dc2626;
  --info: #0891b2;

  /* Status — מותאם לפלטה החדשה */
  --ok: #2F8F7C;
  --warn: #C9A66B;
  --err: #C56B5C;
  --info: var(--primary);

  /* Soft fills */
  --ok-soft: var(--mint-soft);
  --warn-soft: var(--sand-soft);
  --err-soft: var(--coral-soft);
  --info-soft: var(--primary-soft);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(24px, 5vw, 36px); }
h2 { font-size: clamp(20px, 4vw, 28px); }
h3 { font-size: clamp(17px, 3vw, 22px); }

a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========== Layout ========== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary) 50%, var(--brand-accent));
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-primary);
}

.topbar-brand svg { width: 36px; height: 36px; color: var(--brand-primary); }
.topbar-brand .logo-img { height: 44px; width: auto; max-width: 260px; object-fit: contain; }
.topbar-brand .brand-stack { display: flex; flex-direction: column; line-height: 1.15; }
.topbar-brand .brand-stack .ministry { font-size: 12px; color: var(--text-2); font-weight: 600; letter-spacing: 0.04em; font-family: 'Fredoka', 'Heebo', sans-serif; }
.topbar-brand .brand-stack .system-name { font-size: 17px; font-weight: 700; color: var(--brand-primary); font-family: 'Fredoka', 'Heebo', sans-serif; }
.topbar-brand .role-divider { width: 1px; height: 28px; background: var(--border); margin: 0 4px; }
.topbar-brand .role-label { font-family: 'Fredoka', 'Heebo', sans-serif; font-weight: 700; font-size: 18px; color: var(--brand-primary); }

@media (max-width: 600px) {
  .topbar-brand .logo-img { height: 32px; max-width: 140px; }
  .topbar-brand .role-label { font-size: 15px; }
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 14px;
  color: var(--text-2);
}

.topbar-user-name { font-weight: 700; color: var(--text); }
.topbar-user-meta { color: var(--text-3); font-size: 13px; }

.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: var(--sp-5);
  flex: 1;
}

@media (max-width: 720px) {
  .container { padding: var(--sp-4); }
  .topbar { padding: var(--sp-3) var(--sp-4); }
}

/* ========== Cards ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.card-title svg { width: 22px; height: 22px; color: var(--text-2); }

/* ========== Stats grid ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: var(--sp-2);
}

.stat-value {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.stat-value.ok { color: var(--ok); }
.stat-value.warn { color: var(--warn); }
.stat-value.err { color: var(--err); }
.stat-value.info { color: var(--info); }

.stat-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: var(--sp-2);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-primary);
  color: white;
}
.btn-primary:hover { background: var(--brand-secondary); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); }

.btn-soft {
  background: var(--info-soft);
  color: var(--info);
}
.btn-soft:hover { background: #a5f3fc; }

.btn-warn {
  background: var(--warn-soft);
  color: #b45309;
}

.btn svg { width: 18px; height: 18px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

/* ========== Tables ========== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  background: var(--surface-2);
  text-align: right;
  padding: var(--sp-3);
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: var(--sp-3);
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }

.table .actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* ========== Badges ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.ok { background: var(--ok-soft); color: #166534; }
.badge.warn { background: var(--warn-soft); color: #92400e; }
.badge.err { background: var(--err-soft); color: #991b1b; }
.badge.info { background: var(--info-soft); color: #155e75; }
.badge.neutral { background: var(--surface-2); color: var(--text-2); }

.badge svg { width: 12px; height: 12px; }

/* ========== Alerts ========== */
.alert {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
  align-items: flex-start;
}

.alert.warn { background: var(--warn-soft); color: #78350f; }
.alert.err { background: var(--err-soft); color: #7f1d1d; }
.alert.info { background: var(--info-soft); color: #164e63; }
.alert.ok { background: var(--ok-soft); color: #14532d; }

.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert-body { flex: 1; }
.alert-title { font-weight: 700; margin-bottom: 2px; }

/* ========== Forms ========== */
.form-row { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.input, .select, .textarea {
  width: 100%;
  padding: var(--sp-3);
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: 0 0 0 3px var(--info-soft);
}
.textarea { min-height: 100px; resize: vertical; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; }

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--sp-4);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-3);
  line-height: 1;
}

/* ========== Filters bar ========== */
.filter-bar {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--sp-4);
}
.filter-bar .select, .filter-bar .input {
  min-width: 140px;
  width: auto;
}

/* ========== Role select page ========== */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  position: relative;
  text-decoration: none;
  color: inherit;
}
.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--brand-primary);
  opacity: 0;
  transition: opacity 0.2s;
}
.role-card:hover {
  border-color: var(--brand-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.role-card:hover::before { opacity: 1; }
.role-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  background: var(--surface-2);
  color: var(--brand-primary);
  border: 1px solid var(--border);
}
.role-card-icon svg { width: 30px; height: 30px; }
.role-card-title {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-primary);
}
.role-card-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* All role icons use the same dignified palette */
.role-ministry .role-card-icon,
.role-network .role-card-icon,
.role-school .role-card-icon,
.role-guide .role-card-icon,
.role-teacher .role-card-icon { background: var(--surface-2); color: var(--brand-primary); }

/* ========== Hero ========== */
.hero {
  text-align: center;
  padding: var(--sp-7) var(--sp-4) var(--sp-6);
  position: relative;
}
.hero-emblem {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--sp-4);
  color: var(--brand-primary);
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-accent);
  margin-bottom: var(--sp-3);
  font-family: 'Fredoka', 'Heebo', sans-serif;
}
.hero h1 {
  margin-bottom: var(--sp-3);
  color: var(--brand-primary);
  font-size: clamp(28px, 5vw, 42px);
}
.hero p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.hero-divider {
  width: 56px;
  height: 2px;
  background: var(--brand-accent);
  margin: var(--sp-4) auto var(--sp-3);
  border: none;
}

/* ========== Empty state ========== */
.empty {
  text-align: center;
  padding: var(--sp-6);
  color: var(--text-3);
}
.empty svg { width: 48px; height: 48px; margin-bottom: var(--sp-3); opacity: 0.4; }

/* ========== Spinner ========== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--info);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  font-weight: 600;
}
.toast.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ========== Network color chips ========== */
.net-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: white;
}
.net-chip.ort              { background: var(--net-ort); }
.net-chip.amal             { background: var(--net-amal); }
.net-chip.atid             { background: var(--net-atid); }
.net-chip.sakhnin          { background: var(--net-sakhnin); }
.net-chip.dror             { background: var(--net-dror); }
.net-chip.ezraei_haredi    { background: var(--net-ezraei_haredi); }
.net-chip.beit_el          { background: var(--net-beit_el); }
.net-chip.kanada_israel    { background: var(--net-kanada_israel); }
.net-chip.shulamit_haredi  { background: var(--net-shulamit_haredi); }

/* ========== Sector chips ========== */
.sec-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.sec-chip.haredi { background: #f5f3ff; color: #5b21b6; }
.sec-chip.arab   { background: #ecfdf5; color: #047857; }
.sec-chip.kelali { background: #eff6ff; color: #1d4ed8; }

/* ============================================================ */
/* ========== מנור — Compass Design System ============= */
/* ============================================================ */

/* Role accents — נדבק ל-body[data-role="..."] */
body[data-role="ministry"]    { --role-accent: var(--primary); }
body[data-role="network"]     { --role-accent: var(--mint); }
body[data-role="school"]      { --role-accent: #86C3EF; }
body[data-role="coordinator"] { --role-accent: #B598C3; }
body[data-role="guide"]       { --role-accent: var(--coral); }
body[data-role="teacher"]     { --role-accent: #C8B9D9; }

/* Body bg override */
body { background: var(--bg); color: var(--text); }

/* Typography — מערכת ניהול, לא כרזה */
.compass-h1 {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.compass-h2 {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.compass-h3 {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.metric-number {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum" 1;
}

/* System Command Bar */
.command-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.command-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.compass-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}
.command-bar-text {
  line-height: 1.2;
}
.command-bar-text .unit {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.command-bar-text .sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.command-bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-soft);
}
.command-bar-cta {
  background: var(--primary-dark);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s;
}
.command-bar-cta:hover { background: var(--primary); }

/* ===== Compass Hero ===== */
.compass-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 32px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.compass-hero-text { max-width: 560px; }
.compass-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 4px 0;
  border-bottom: 1px solid var(--mint);
}
.compass-hero-lead {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 20px 0 12px;
}
.compass-hero-meta {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 480px;
}
.compass-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-compass-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, transform .2s;
}
.btn-compass-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-compass-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.btn-compass-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* Compass Visual — centerpiece */
.compass-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 460px;
  min-width: 380px;
  margin-inline-start: auto;
  margin-inline-end: auto;
}
.compass-visual svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
/* halo רך מאחורי המצפן — מוסיף נפח עדין מבלי לצעוק */
.compass-visual::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), rgba(244, 247, 248, 0.2) 60%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.compass-visual svg { position: relative; z-index: 1; }

/* ========= Compass animations ========= */
/* גרסה מאומצת מהמפרט: עדינה, איטית, יוקרתית. */

.compass-needle {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: needle-sway 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes needle-sway {
  0%   { transform: rotate(-4deg); }
  50%  { transform: rotate(4deg); }
  100% { transform: rotate(-4deg); }
}

.compass-ring {
  animation: ring-breathe 5.5s ease-in-out infinite;
  transform-origin: 50% 50%;
  transform-box: fill-box;
  will-change: transform, opacity;
}
@keyframes ring-breathe {
  0%   { transform: scale(1); opacity: 0.9; }
  50%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

.compass-node {
  animation: node-float 4.8s ease-in-out infinite;
  transform-box: fill-box;
}
.compass-nodes .compass-node:nth-child(2) { animation-delay: 0.8s; }
.compass-nodes .compass-node:nth-child(3) { animation-delay: 1.4s; }
.compass-nodes .compass-node:nth-child(4) { animation-delay: 2s; }
.compass-nodes .compass-node:nth-child(5) { animation-delay: 2.6s; }
@keyframes node-float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

/* קווי החיבור — זרימה דקיקה */
@keyframes compass-line-flow {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -14; }
}
.compass-connect-line {
  animation: compass-line-flow 4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .compass-needle,
  .compass-ring,
  .compass-node,
  .compass-connect-line {
    animation: none;
  }
}

@media (max-width: 980px) {
  .compass-visual { max-width: 340px; min-width: 280px; }
}
@media (max-width: 540px) {
  .compass-visual { max-width: 260px; min-width: 220px; }
}

/* ===== System Metrics Strip ===== */
.system-metrics {
  background: var(--primary-dark);
  color: white;
  padding: 28px 32px;
}
.system-metrics-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.system-metric {
  position: relative;
  padding-inline-start: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.system-metric::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.system-metric:first-child::before { display: none; }
.system-metric:first-child { padding-inline-start: 0; }
.system-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(111, 183, 166, 0.18);
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.system-metric-icon svg { width: 18px; height: 18px; }
.system-metric-text { line-height: 1.15; }
.system-metric .label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 600;
  text-transform: none;
}
.system-metric .value {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.system-metric .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--mint);
  margin-inline-start: 4px;
}

/* ===== Role Lenses ===== */
.lenses-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-section) 32px;
}
.lenses-head {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.lenses-head h2 { max-width: 600px; }
.lenses-head .sub {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 380px;
  line-height: 1.6;
  margin: 8px 0 0;
}

.lenses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.lenses-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.lens {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}
.lens::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--lens-accent, var(--primary));
}
.lens:hover {
  transform: translateY(-3px);
  border-color: var(--lens-accent, var(--primary));
  box-shadow: var(--shadow-hover);
}
.lens-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--lens-accent, var(--primary));
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lens-title {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text);
}
.lens-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.lens-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.lens-bullets li {
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  padding-inline-start: 16px;
}
.lens-bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lens-accent, var(--primary));
}
.lens-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lens-accent, var(--primary));
  margin-top: auto;
}
.lens-cta svg {
  width: 14px;
  height: 14px;
  transition: transform .25s;
}
.lens:hover .lens-cta svg { transform: translateX(-4px); }

/* Lens accents */
.lens-large {
  --lens-accent: var(--primary);
}
.lens-medium-1 { --lens-accent: var(--mint); }
.lens-medium-2 { --lens-accent: #86C3EF; }
.lens-small-1  { --lens-accent: #B598C3; }
.lens-small-2  { --lens-accent: var(--coral); }
.lens-large .lens-title { font-size: 28px; }
.lens-large .lens-desc { font-size: 14.5px; }

/* Lens icon */
.lens-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--lens-accent, var(--primary)) 12%, transparent);
  color: var(--lens-accent, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.lens-icon-box svg { width: 22px; height: 22px; }

/* ===== Data Flow ===== */
.flow-section {
  background: var(--surface-soft);
  padding: var(--space-section) 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.flow-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.flow-head {
  margin-bottom: 48px;
  max-width: 600px;
}
.flow-head .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0 0;
  line-height: 1.6;
}
.flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.flow-track::before {
  content: "";
  position: absolute;
  top: 28px;
  inset-inline: 10%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0 6px,
    transparent 6px 12px
  );
}
.flow-track::after {
  content: "";
  position: absolute;
  top: 25px;
  inset-inline: 10%;
  height: 7px;
  background-image: radial-gradient(circle, var(--mint) 0 2px, transparent 2px);
  background-size: 25% 100%;
  background-position: center;
  background-repeat: repeat-x;
  pointer-events: none;
}
.flow-step {
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.flow-step-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--surface-soft), 0 6px 16px rgba(20, 62, 76, 0.08);
}
.flow-step-node svg { width: 22px; height: 22px; }
.flow-step-num {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--mint);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', 'Heebo', sans-serif;
  box-shadow: 0 0 0 3px var(--surface-soft);
}
.flow-step-title {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 6px;
}
.flow-step-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Compass line — חתימה ויזואלית */
.compass-line {
  position: relative;
}
.compass-line::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 106, 138, 0.35),
    transparent
  );
}

/* ============================================================ */
/* ====== מנור — Dashboard Components (Ministry) ======= */
/* ============================================================ */

.dashboard-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}

/* === Page Header ניהולי === */
.page-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--mint));
}
.page-header-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-header-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}
.page-header h1 {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.page-header-sub {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.page-compass {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-compass-svg {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
}
.page-compass-info {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: end;
}
.page-compass-info strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.page-compass-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 4px;
  color: var(--mint);
  font-weight: 700;
}
.page-compass-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* === Compass Divider === */
.compass-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: var(--text-muted);
}
.compass-divider .line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0 5px,
    transparent 5px 10px
  );
}
.compass-divider .node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.compass-divider svg { width: 14px; height: 14px; color: var(--primary); opacity: 0.7; }
.compass-divider .label {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
}

/* === Command Strip === */
.command-strip {
  background: linear-gradient(135deg, #1A5365 0%, #2B6E78 100%);  /* טורקיז הלוגו, בלי הכחול־נייבי */
  color: white;
  padding: 26px 32px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 18px 40px rgba(20, 62, 76, 0.18);
}
.command-strip::before {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-start: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 195, 239, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.cmd-metric {
  position: relative;
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.cmd-metric::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.cmd-metric:first-child::before { display: none; }
.cmd-metric:first-child { padding-inline-start: 0; }
.cmd-metric-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cmd-metric-label svg { width: 13px; height: 13px; opacity: 0.7; }
.cmd-metric-value {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cmd-metric-value.ok    { color: white; }
.cmd-metric-value.warn  { color: var(--sand); }
.cmd-metric-value.err   { color: var(--coral); }
.cmd-metric-value.mint  { color: var(--mint); }
.cmd-metric-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* === Section Header (לאזורים אחרי) === */
.section-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head-flex h2 {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.15;
}
.section-head-flex .sub {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
}
.section-head-flex .badge-attention {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral-soft);
  color: #8B3A1F;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.section-head-flex .badge-attention::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* === Network Lens Cards === */
.networks-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.net-lens {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  display: grid;
  gap: 16px;
  transition: all .25s;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.net-lens::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--lens-net, var(--primary));
}
.net-lens:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--lens-net, var(--primary));
}
.net-lens-featured {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.net-lens-row-1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.net-lens-name-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.net-lens-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--lens-net, var(--primary)) 12%, transparent);
  color: var(--lens-net, var(--primary));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.net-lens-status-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.net-lens-status-tag.ok   { background: var(--mint-soft); color: #2E6B5C; }
.net-lens-status-tag.warn { background: var(--sand-soft); color: #8B6A2F; }
.net-lens-status-tag.err  { background: var(--coral-soft); color: #8B3A1F; }

.net-lens-ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.net-lens-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.net-lens-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.net-lens-ring-text small {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.net-lens-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}
.net-lens-stat {
  text-align: center;
  position: relative;
}
.net-lens-stat + .net-lens-stat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border-soft);
}
.net-lens-stat-num {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.net-lens-stat-num.coral { color: var(--coral); }
.net-lens-stat-num.mint  { color: var(--mint); }
.net-lens-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.net-lens-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.net-lens-action-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lens-net, var(--primary)) 12%, transparent);
  color: var(--lens-net, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.net-lens-action-icon svg { width: 13px; height: 13px; }
.net-lens-action-text strong { color: var(--text); font-weight: 700; }

.net-lens-cta {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.net-lens-cta .btn-soft-sm {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: all .2s;
  font-family: 'Fredoka', 'Heebo', sans-serif;
}
.net-lens-cta .btn-soft-sm:hover { background: var(--surface-soft); border-color: var(--lens-net, var(--primary)); color: var(--lens-net, var(--primary)); }
.net-lens-cta .btn-soft-sm.primary {
  background: color-mix(in srgb, var(--lens-net, var(--primary)) 12%, transparent);
  border-color: transparent;
  color: var(--lens-net, var(--primary));
}
.net-lens-cta .btn-soft-sm svg { width: 13px; height: 13px; }

/* === Attention Table === */
.attention-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin-top: 28px;
}
.attention-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.attention-head h3 {
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.attention-head h3 svg { width: 20px; height: 20px; color: var(--coral); }
.attention-head .sub {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}
.attention-table {
  width: 100%;
  border-collapse: collapse;
}
.attention-table th, .attention-table td {
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.attention-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-soft);
}
.attention-table tbody tr {
  transition: background .15s;
}
.attention-table tbody tr:hover { background: var(--surface-soft); }
.attention-table td.school-cell {
  font-weight: 700;
  color: var(--text);
}
.attention-table .att-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.attention-table .att-progress-bar {
  flex: 1;
  max-width: 90px;
  height: 6px;
  background: var(--surface-soft);
  border-radius: 999px;
  overflow: hidden;
}
.attention-table .att-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--coral);
  transition: width .3s;
}
.attention-table .att-progress-fill.warn { background: var(--sand); }
.attention-table .att-progress-fill.ok { background: var(--mint); }
.attention-table .att-progress-val {
  font-size: 12px;
  font-weight: 800;
  font-family: 'Fredoka', 'Heebo', sans-serif;
  min-width: 36px;
  color: var(--text);
}
.attention-table .open-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Fredoka', 'Heebo', sans-serif;
}
.attention-table .open-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* === Subject filter pills === */
.subject-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.subject-filter-bar .filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-inline-end: 8px;
}
.subject-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.subject-pill:hover { color: var(--primary); border-color: var(--primary); }
.subject-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 980px) {
  .command-strip { grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
  .cmd-metric:nth-child(4)::before { display: none; }
  .cmd-metric:nth-child(4) { padding-inline-start: 0; }
  .page-header { grid-template-columns: 1fr; }
  .page-compass { justify-content: flex-start; }
  .page-compass-info { text-align: start; }
}
@media (max-width: 540px) {
  .dashboard-shell { padding: 18px 16px 60px; }
  .page-header { padding: 22px 18px; }
  .command-strip { grid-template-columns: repeat(2, 1fr); padding: 20px 18px; }
  .cmd-metric::before { display: none; }
  .cmd-metric { padding-inline-start: 0; }
  .cmd-metric-value { font-size: 22px; }
  .attention-card { padding: 20px 16px; }
}

/* Footer */
.compass-footer {
  padding: 48px 32px 36px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.compass-footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 12px;
}
.compass-footer-mark svg { width: 18px; height: 18px; color: var(--primary); }
.compass-footer .meta {
  color: var(--text-muted);
  font-size: 13px;
}

/* Connection warning banner */
.compass-warn {
  max-width: 1240px;
  margin: 18px auto;
  padding: 14px 22px;
  background: var(--sand-soft);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.compass-warn svg { width: 20px; height: 20px; color: var(--coral); flex-shrink: 0; }
.compass-warn a { color: var(--primary); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .compass-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 24px;
  }
  .compass-visual {
    max-width: 360px;
    margin: 0 auto;
    order: -1;
  }
  .system-metrics-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 32px;
  }
  .system-metric { padding-inline-start: 0; }
  .system-metric::before { display: none; }
  .lenses-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .lens-large {
    display: block !important;
    text-align: center;
  }
  .lens-large .lens-icon-box { margin: 0 auto 16px !important; }
  .flow-track {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .flow-track::before { display: none; }
  .flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: right;
    padding: 0;
  }
  .flow-step-node { margin: 0; flex-shrink: 0; }
}
@media (max-width: 540px) {
  .command-bar { padding: 12px 18px; }
  .command-bar-cta { display: none; }
  .compass-hero { padding: 28px 18px 36px; }
  .system-metrics { padding: 20px 18px; }
  .system-metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
  .system-metric .value { font-size: 22px; }
  .system-metric-icon { width: 34px; height: 34px; }
  .system-metric-icon svg { width: 16px; height: 16px; }
  .lenses-section { padding: 60px 18px; }
  .lenses-row { grid-template-columns: 1fr; }
  .flow-section { padding: 60px 18px; }
}


/* =========================================================
   Compass Hero — מנור
   Static version first. No animation yet.
   ========================================================= */

.compass-hero-v2 {
  --hero-bg: #F3F7FA;
  --hero-surface: #ffffff;
  --hero-text: #143E4C;
  --hero-muted: #4F6E7A;
  --hero-primary: #1A5365;
  --hero-primary-dark: #143E4C;
  --hero-mint: #8CA68B;
  --hero-sand: #e9ddc7;
  --hero-coral: #d97757;
  --hero-purple: #B598C3;
  --hero-border: #D3E1E8;

  background:
    radial-gradient(circle at 18% 40%, rgba(111, 183, 166, 0.14), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(37, 106, 138, 0.08), transparent 34%),
    var(--hero-bg);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  color: var(--hero-text);
  overflow: hidden;
}

.compass-hero__inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  min-height: 520px;
}

.compass-hero__content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 620px;
}

.compass-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  color: var(--hero-primary);
  font-family: 'Fredoka', 'Heebo', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.compass-hero__eyebrow-line {
  display: inline-block;
  width: 72px;
  height: 1px;
  background: var(--hero-mint);
}

.compass-hero__title {
  margin: 0;
  font-family: 'Fredoka', 'Heebo', sans-serif;
  font-size: clamp(3rem, 7.2vw, 5.8rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--hero-primary-dark);
}

.compass-hero__lead {
  margin: 1.6rem 0 0;
  font-family: 'Fredoka', 'Heebo', system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.55;
  font-weight: 700;
  color: var(--hero-primary);
}

.compass-hero__text {
  margin: 1rem 0 0;
  max-width: 560px;
  font-family: 'Fredoka', 'Heebo', system-ui, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.85;
  color: var(--hero-muted);
}

.compass-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.compass-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border-radius: 16px;
  font-family: 'Fredoka', 'Heebo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.compass-btn:hover {
  transform: translateY(-1px);
}

.compass-btn:focus-visible {
  outline: 3px solid rgba(37, 106, 138, 0.28);
  outline-offset: 3px;
}

.compass-btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #1A5365, #0f5a78);
  box-shadow: 0 16px 34px rgba(37, 106, 138, 0.22);
}

.compass-btn--secondary {
  color: var(--hero-primary-dark);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--hero-border);
  box-shadow: 0 10px 28px rgba(20, 62, 76, 0.06);
}

.compass-hero__visual {
  position: relative;
  min-height: 480px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 1.1rem;
  min-width: 0;
}

.compass-hero__hint {
  margin: 0;
  font-family: 'Fredoka', 'Heebo', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hero-muted);
  transform: translateX(24px); /* מיושר עם היסט המצפן */
}

/* Main compass object */
.compass-map {
  position: relative;
  width: clamp(340px, 34vw, 460px);
  aspect-ratio: 1;
  border-radius: 999px;
  isolation: isolate;
  margin-inline: auto;
  transform: translateX(24px);
}

/* soft background halo */
.compass-map::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 24%, rgba(255, 255, 255, 0.66) 25% 48%, transparent 70%);
  box-shadow:
    0 26px 70px rgba(20, 62, 76, 0.08),
    inset 0 0 0 1px rgba(37, 106, 138, 0.07);
  z-index: -2;
}

/* outer subtle glow */
.compass-map::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(111, 183, 166, 0.08), transparent 62%);
  z-index: -3;
}

/* rings — top/left מפורשים ולא inset: ב-RTL inset:50% + width נפתר לפי right והטבעות בורחות שמאלה */
.compass-map__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 999px;
  pointer-events: none;
}

.compass-map__orbit--outer {
  width: 78%;
  height: 78%;
  border: 1px dashed rgba(37, 106, 138, 0.3);
}

.compass-map__orbit--middle {
  width: 58%;
  height: 58%;
  border: 1px solid rgba(37, 106, 138, 0.15);
}

.compass-map__orbit--inner {
  width: 34%;
  height: 34%;
  border: 2px solid rgba(111, 183, 166, 0.35);
}

/* compass guide lines */
.compass-map__guide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64%;
  height: 1px;
  transform-origin: center;
  translate: -50% -50%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 106, 138, 0.2),
    transparent
  );
  pointer-events: none;
}

.compass-map__guide--vertical {
  transform: rotate(90deg);
}

.compass-map__guide--horizontal {
  transform: rotate(0deg);
}

.compass-map__guide--diag-a {
  transform: rotate(36deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 119, 87, 0.28),
    transparent
  );
}

.compass-map__guide--diag-b {
  transform: rotate(-36deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 123, 184, 0.24),
    transparent
  );
}

/* needle */
.compass-map__needle {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 92px;
  height: 285px;
  pointer-events: none;
  filter: drop-shadow(0 16px 18px rgba(20, 62, 76, 0.12));
}

.compass-map__needle-top,
.compass-map__needle-bottom {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  width: 0;
  height: 0;
}

.compass-map__needle-top {
  top: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 145px solid #1A5365;
}

.compass-map__needle-bottom {
  bottom: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 145px solid rgba(139, 123, 184, 0.35);
}

.compass-map__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  translate: -50% -50%;
  border-radius: 999px;
  background: #ffffff;
  border: 5px solid #1A5365;
  box-shadow:
    0 10px 26px rgba(20, 62, 76, 0.16),
    inset 0 0 0 8px rgba(37, 106, 138, 0.08);
}

.compass-map__pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  translate: -50% -50%;
  border-radius: 999px;
  background: #143E4C;
}

/* nodes */
.compass-map__node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 118px;
  color: var(--hero-primary-dark);
  text-decoration: none;
  font-family: 'Fredoka', 'Heebo', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.25;
  z-index: 3;
}

.compass-map__node-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(37, 106, 138, 0.2);
  box-shadow: 0 10px 26px rgba(20, 62, 76, 0.09);
}

.compass-map__node-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compass-map__node-label {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 225, 229, 0.85);
  box-shadow: 0 8px 20px rgba(20, 62, 76, 0.05);
  white-space: nowrap;
}

.compass-map__node:hover .compass-map__node-icon {
  border-color: rgba(37, 106, 138, 0.45);
  box-shadow: 0 18px 38px rgba(20, 62, 76, 0.16);
}

.compass-map__node:focus-visible {
  outline: 3px solid rgba(37, 106, 138, 0.28);
  outline-offset: 6px;
  border-radius: 18px;
}

/* precise placements */
.compass-map__node--top {
  top: 2%;
  left: 50%;
  translate: -50% 0;
  color: #1A5365;
}

.compass-map__node--right {
  top: 29%;
  right: 4%;
  translate: 0 -50%;
  color: #8CA68B;
}

.compass-map__node--bottom-right {
  right: 12%;
  bottom: 8%;
  color: #1A5365;
}

.compass-map__node--bottom-left {
  left: 12%;
  bottom: 8%;
  color: #B598C3;
}

.compass-map__node--left {
  top: 31%;
  left: 4%;
  translate: 0 -50%;
  color: #d97757;
}

/* Responsive */
@media (max-width: 940px) {
  .compass-hero__inner {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 2rem;
  }

  .compass-hero__content {
    max-width: 720px;
  }

  .compass-hero__visual {
    order: 2;
    min-height: 400px;
  }

  .compass-map {
    width: min(440px, 92vw);
  }

  .compass-hero__title {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }
}

@media (max-width: 560px) {
  .compass-hero-v2 {
    padding: 1.4rem 1rem 2rem;
  }

  .compass-hero__inner {
    gap: 1.5rem;
  }

  .compass-hero__eyebrow {
    font-size: 0.78rem;
    margin-bottom: 1rem;
  }

  .compass-hero__eyebrow-line {
    width: 44px;
  }

  .compass-hero__title {
    font-size: clamp(2.65rem, 14vw, 3.8rem);
  }

  .compass-hero__lead {
    font-size: 1.12rem;
    margin-top: 1.15rem;
  }

  .compass-hero__text {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .compass-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 1.4rem;
  }

  .compass-btn {
    width: 100%;
  }

  .compass-hero__visual {
    min-height: 330px;
  }

  .compass-map {
    width: min(310px, 88vw);
    transform: none;
  }

  .compass-hero__hint {
    transform: none;
    font-size: 0.8rem;
  }

  .compass-map__needle {
    width: 64px;
    height: 190px;
  }

  .compass-map__needle-top {
    border-left-width: 16px;
    border-right-width: 16px;
    border-bottom-width: 96px;
  }

  .compass-map__needle-bottom {
    border-left-width: 16px;
    border-right-width: 16px;
    border-top-width: 96px;
  }

  .compass-map__pin {
    width: 42px;
    height: 42px;
    border-width: 4px;
  }

  .compass-map__node {
    min-width: 84px;
    font-size: 0.68rem;
    gap: 0.3rem;
  }

  .compass-map__node-icon {
    width: 42px;
    height: 42px;
  }

  .compass-map__node-icon svg {
    width: 21px;
    height: 21px;
  }

  .compass-map__node-label {
    padding: 0.08rem 0.32rem;
  }

  .compass-map__node--left {
    left: 2%;
    translate: 0 -50%;
  }

  .compass-map__node--right {
    right: 2%;
    translate: 0 -50%;
  }
}


/* =========================================================
   Compass Hero — micro-animation layer (CSS only)
   מחפש כיוון, לא ספינר. מכבד prefers-reduced-motion.
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  .compass-map__needle {
    animation: compassNeedleSway 6.5s ease-in-out infinite;
    transform-origin: center;
  }

  .compass-map__orbit--outer {
    animation: compassRingBreathe 7.5s ease-in-out infinite;
  }

  .compass-map__node-icon {
    animation: compassNodeFloat 5.5s ease-in-out infinite;
  }

  .compass-map__node:nth-of-type(2) .compass-map__node-icon {
    animation-delay: 0.6s;
  }

  .compass-map__node:nth-of-type(3) .compass-map__node-icon {
    animation-delay: 1.1s;
  }

  .compass-map__node:nth-of-type(4) .compass-map__node-icon {
    animation-delay: 1.7s;
  }

  .compass-map__node:nth-of-type(5) .compass-map__node-icon {
    animation-delay: 2.2s;
  }
}

@keyframes compassNeedleSway {
  0% {
    rotate: -3deg;
  }

  50% {
    rotate: 3deg;
  }

  100% {
    rotate: -3deg;
  }
}

@keyframes compassRingBreathe {
  0% {
    opacity: 0.72;
    scale: 1;
  }

  50% {
    opacity: 1;
    scale: 1.015;
  }

  100% {
    opacity: 0.72;
    scale: 1;
  }
}

@keyframes compassNodeFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ============================================================
   PAGE NAV — סרגל ניווט דביק לעמודים עמוסים
   --pn-h = הגובה שלו, כדי שכותרות טבלה דביקות ייעצרו מתחתיו ולא יתחבאו
   ============================================================ */
:root { --pn-h: 56px; }
.pn {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.pn-inner {
  max-width: 1240px; margin: 0 auto; padding: 10px 20px;
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.pn-inner::-webkit-scrollbar { display: none; }
.pn-label {
  font-size: 0.75rem; font-weight: 700; color: var(--text-soft);
  letter-spacing: 0.04em; white-space: nowrap; padding-inline-end: 4px;
}
.pn a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  text-decoration: none; font-size: 0.84rem; font-weight: 600; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pn a:hover { background: var(--primary-soft); border-color: var(--primary); }
.pn a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pn a svg { width: 15px; height: 15px; flex: none; }
.pn a .n {
  font-size: 0.74rem; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: var(--surface-soft); color: var(--text-muted);
}
.pn a.on .n { background: rgba(255, 255, 255, 0.22); color: #fff; }
/* קפיצה לעוגן לא מסתתרת מתחת לסרגל */
.pn ~ * [id], .compass-divider[id], section[id], [id^="s-"] {
  scroll-margin-top: calc(var(--pn-h, 56px) + 14px);
}
@media (max-width: 640px) {
  :root { --pn-h: 50px; }
  .pn-inner { padding: 8px 14px; }
  .pn-label { display: none; }
}

/* שורת החודשים מעל שורת המועדים בטבלת הנוכחות של המדריכ/ה (20.9.26) */
.att-grid thead tr.month-head th { background:#F3F1EC; font-size:12.5px; font-weight:700; color:#5b6b7b; border-bottom:1px solid #e3e8ee; padding:4px 10px; white-space:nowrap; }
.att-grid thead tr.month-head th small { font-weight:400; color:#8a97a6; }

/* ====== מנור — לוגו ====== */
.compass-icon { object-fit: contain; }
.menor-hero-mark img { width: clamp(96px, 11vw, 150px); height: auto; display: block; margin-bottom: 0.8rem; }
.compass-footer-mark .compass-icon { width: 28px; height: 28px; }
/* מנור — הלוגו והמילה כתמונה, בגופן של הלוגו */
.command-bar .compass-icon { width: auto; height: 40px; }
.menor-word { display: block; height: 22px; width: auto; }
.menor-word--lg { height: 40px; margin: 0 auto 6px; }
.menor-word--hero { height: clamp(64px, 8vw, 104px); }
/* מבט המורה — הודעת טעינה בזמן שהשרת עונה */
.home-loading { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 16px 20px;
  background: var(--sky-soft); border: 1px solid var(--border); border-radius: var(--radius-md);
  color: var(--primary); font-weight: 600; font-size: 15px; }
.home-loading .spinner { width: 20px; height: 20px; flex-shrink: 0; }
.home-loading[hidden] { display: none; }

/* פס הנתונים (24.9.26) — בהיר בירוק־מרווה של הלוגו במקום הכהה הכחלחל */
body .command-strip {
  background: linear-gradient(135deg, #E5EDE3 0%, #EEF3EC 100%);
  color: var(--primary);
  border: 1px solid #CFDCCB;
  box-shadow: 0 10px 28px rgba(20, 62, 76, 0.07);
}
body .command-strip::before { background: radial-gradient(circle, rgba(140, 166, 139, 0.25) 0%, transparent 70%); }
body .command-strip .cmd-metric::before { background: rgba(26, 83, 101, 0.15); }
body .command-strip .cmd-metric-label { color: #4F6E7A; }
body .command-strip .cmd-metric-sub { color: #4F6E7A; }
body .command-strip .cmd-metric-value,
body .command-strip .cmd-metric-value.ok,
body .command-strip .stat-value,
body .command-strip .stat-value.ok { color: var(--primary); }
body .command-strip .cmd-metric-value.mint,
body .command-strip .stat-value.mint { color: #4E6B4D; }
body .command-strip .cmd-metric-value.warn,
body .command-strip .stat-value.warn { color: #8A5A12; }
body .command-strip .cmd-metric-value.err,
body .command-strip .stat-value.err { color: #A8452A; }
body .command-strip .stat-value.info { color: var(--primary); }
.home-loading { background: #EEF3EC; border-color: #CFDCCB; }

/* ============================================================
   ערכת העיצוב של מבט המורה — לכל המבטים (24.9.26)
   ירוק הלוגו בגוון עמוק כצבע המוביל, כמו ב-teacher/index.html ("צבע, גרסה 3"):
   כותרת עמוד לבנה עם פס ירוק, כותרות מקטע עם סמל לבן בשבב ירוק, כרטיסים
   עם פס מרווה, כפתורים ירוקים. חל רק על דפים עם body[data-look="menor"]
   (מבט ארצי, רשת, בית ספר, מדריכ/ה, מפקח.ת, טופס ההזנה והאימות).
   מבט המורה עצמו לא מסומן — יש לו עקיפות משלו באותם ערכים.
   ============================================================ */
body[data-look="menor"] {
  --primary: #4E6B4D;
  --primary-dark: #2F4A2E;
  --primary-soft: #E5EDE3;
  --brand-primary: #4E6B4D;
  --brand-secondary: #3E5A3D;
  --brand-accent: #4E6B4D;
  --border: #D5E0D2;
  --border-soft: #E4ECE2;
  --surface-soft: #F3F6F2;
  --surface-2: #F3F6F2;
  --bg-2: #F3F6F2;
  --border-strong: #4E6B4D;
  --gold-line: #D5E0D2;
  --info: #4E6B4D;
  --info-soft: #E5EDE3;
  --sky-soft: #EEF3EC;
  --role-accent: #4E6B4D;
}
/* כותרת העמוד — לבן נקי + פס ירוק, בלי קישוט */
body[data-look="menor"] .page-header { background: #FFFFFF; border-color: #D5E0D2; border-inline-start: 6px solid #4E6B4D; }
body[data-look="menor"] .page-header::after { display: none; }
body[data-look="menor"] .page-header-eyebrow { color: #4E6B4D; }
body[data-look="menor"] .page-header-eyebrow::before { background: #8CA68B; }
body[data-look="menor"] .page-header h1 { color: #2F4A2E; }
body[data-look="menor"] .page-compass-svg { display: none; }
body[data-look="menor"] .page-compass-info strong { color: #2F4A2E; }
/* פסים עליונים (טופס ההזנה, דף האימות) */
body[data-look="menor"] .topbar::before { background: #4E6B4D; }
body[data-look="menor"] .topbar-brand .system-name,
body[data-look="menor"] .topbar-brand .role-label { color: #2F4A2E; }
body[data-look="menor"] .status-dot { background: #4E6B4D; box-shadow: 0 0 0 3px #E5EDE3; }
/* מפרידי המצפן */
body[data-look="menor"] .compass-divider .label { color: #4E6B4D; }
body[data-look="menor"] .compass-divider svg { color: #8CA68B; opacity: 1; }
body[data-look="menor"] .compass-divider .line { background: repeating-linear-gradient(90deg, #D5E0D2 0 5px, transparent 5px 10px); }
/* כותרות מקטע — סמל לבן בשבב ירוק מעוגל */
body[data-look="menor"] .section-head-flex h2,
body[data-look="menor"] .attention-head h3,
body[data-look="menor"] .card-title,
body[data-look="menor"] .guides-head,
body[data-look="menor"] .resources-head,
body[data-look="menor"] .space-card h2,
body[data-look="menor"] .meet-card h2 { color: #2F4A2E; }
body[data-look="menor"] .section-head-flex h2,
body[data-look="menor"] .nk-sec h2 { display: flex; align-items: center; gap: 10px; color: #2F4A2E; }
body[data-look="menor"] .mv-ico,
body[data-look="menor"] .attention-head h3 > svg,
body[data-look="menor"] .card-title > svg,
body[data-look="menor"] .guides-head > svg,
body[data-look="menor"] .resources-head > svg,
body[data-look="menor"] .space-card h2 > svg,
body[data-look="menor"] .meet-card h2 > svg {
  box-sizing: content-box; width: 18px; height: 18px; padding: 6px; flex: none;
  border-radius: 10px; background: #4E6B4D; color: #FFFFFF; opacity: 1;
}
/* כרטיסים — פס מרווה בצד ההתחלה */
body[data-look="menor"] .card,
body[data-look="menor"] .attention-card,
body[data-look="menor"] .guides-card,
body[data-look="menor"] .resources-card,
body[data-look="menor"] .space-card,
body[data-look="menor"] .meet-card,
body[data-look="menor"] .subject-group,
body[data-look="menor"] .school-group,
body[data-look="menor"] .head-card,
body[data-look="menor"] .setup-hero {
  border-color: #D5E0D2; border-inline-start: 4px solid #8CA68B;
}
body[data-look="menor"] .setup-hero { background: #FFFFFF; border-style: solid; border-width: 1px; border-inline-start-width: 6px; border-inline-start-color: #4E6B4D; }
/* כפתורים ירוקים */
body[data-look="menor"] .btn-primary { background: #4E6B4D; border-color: #4E6B4D; color: #fff; }
body[data-look="menor"] .btn-primary:hover { background: #3E5A3D; border-color: #3E5A3D; }
body[data-look="menor"] .btn-secondary:hover { background: #EEF3EC; border-color: #8CA68B; }
body[data-look="menor"] .subject-pill.active { background: #4E6B4D; border-color: #4E6B4D; color: #fff; }
body[data-look="menor"] .subject-pill:hover { color: #2F4A2E; border-color: #8CA68B; }
body[data-look="menor"] .tab-btn.active { color: #2F4A2E; border-bottom-color: #4E6B4D; }
body[data-look="menor"] .tab-btn .n { background: #4E6B4D; }
/* טבלאות */
body[data-look="menor"] .table th,
body[data-look="menor"] .attention-table th { background: #F3F6F2; color: #2F4A2E; }
body[data-look="menor"] .table tbody tr:hover { background: #F6F9F5; }
/* שורות — לבן עם פס מרווה */
body[data-look="menor"] .h-row,
body[data-look="menor"] .guide-mini,
body[data-look="menor"] .msg,
body[data-look="menor"] .resource-link {
  background: #FFFFFF; border-color: #D5E0D2; border-inline-start: 4px solid #8CA68B;
}
body[data-look="menor"] .resource-link:hover { border-color: #8CA68B; }
body[data-look="menor"] .resource-link .ic.drive,
body[data-look="menor"] .resource-link .ic.zoom { background: #EEF3EC; color: #4E6B4D; }
/* כרטיס "המפגש הבא" של המדריכ/ה — ירוק עמוק במקום הטורקיז הכהה */
body[data-look="menor"] .nm-card { background: #3E5A3D; }
body[data-look="menor"] .nm-card.today { background: #2F4A2E; }
body[data-look="menor"] .nm-btn.primary { color: #2F4A2E; }
body[data-look="menor"] .ql-btn svg { color: #4E6B4D; }
body[data-look="menor"] .ql-btn:hover { border-color: #8CA68B; background: #EEF3EC; }
/* ספרות בפרדוקה, כמו אצל המורה */
body[data-look="menor"] .cmd-metric-value,
body[data-look="menor"] .stat-value { font-family: 'Fredoka', 'Heebo', sans-serif; }
/* סרגל הניווט הדביק */
body[data-look="menor"] .pn a.on { background: #4E6B4D; border-color: #4E6B4D; color: #fff; }
body[data-look="menor"] .pn a:hover { background: #EEF3EC; border-color: #8CA68B; }
body[data-look="menor"] .pn a.on:hover { background: #3E5A3D; color: #fff; }
.pn[hidden] { display: none; }
[data-mv-sec] { scroll-margin-top: calc(var(--pn-h, 56px) + 14px); }
@media (max-width: 640px) {
  body[data-look="menor"] .page-header { border-inline-start-width: 5px; }
}

/* ---- "שאלה או קושי" + הסיור — משותפים לכל המבטים (זהים למבט המורה) ---- */
.page-help { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 24px 0 20px; padding: 16px 20px; border: 1px solid #D5E0D2; border-radius: 14px; background: #FFFFFF;
  border-inline-start: 4px solid #8CA68B; }
.ph-text { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--text-2); }
.ph-text b { color: #2F4A2E; font-size: 15px; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.helpbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border: 1.5px solid #D5E0D2;
  border-radius: 999px; background: #fff; color: #3E5A3D; font-size: 13.5px; font-weight: 700; text-decoration: none;
  font-family: inherit; cursor: pointer; }
.helpbtn:hover { border-color: #8CA68B; background: #EEF3EC; text-decoration: none; }
.helpbtn svg { width: 15px; height: 15px; }
.tour-hole { position: fixed; z-index: 9998; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(20, 35, 20, 0.55); outline: 3px solid #8CA68B;
  transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease; }
.tour-box { position: fixed; z-index: 9999; background: #fff; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25); border-top: 4px solid #4E6B4D; transition: top .3s ease, left .3s ease; }
.tour-box h3 { margin: 2px 0 6px; font-size: 17px; color: #2F4A2E; }
.tour-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--text-1, #1f2d2a); }
.tour-count { font-size: 12px; font-weight: 700; color: #6E8A6D; }
.tour-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tour-actions button { font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 7px 16px; }
.tour-next { background: #4E6B4D; color: #fff; border: 1px solid #4E6B4D; }
.tour-prev { background: #fff; color: #3E5A3D; border: 1px solid #D5E0D2; }
.tour-skip { background: none; border: 0; color: var(--text-muted); text-decoration: underline; margin-inline-start: auto; }
.tour-intro { position: fixed; inset: 0; z-index: 10000; background: rgba(20, 35, 20, 0.55);
  display: grid; place-items: center; padding: 16px; }
.ti-card { background: #fff; border-radius: 18px; max-width: 440px; width: 100%; padding: 26px 24px 20px;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.3); border-top: 5px solid #4E6B4D; }
.ti-card img { height: 54px; width: auto; margin-bottom: 8px; }
.ti-card h2 { margin: 0 0 8px; font-size: 21px; color: #2F4A2E; }
.ti-card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: var(--text-1, #1f2d2a); }
.ti-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ti-go { width: 100%; max-width: 260px; padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: #4E6B4D; color: #fff; font-family: inherit; font-size: 15.5px; font-weight: 700; }
.ti-go:hover { background: #3E5A3D; }
.ti-skip { background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 14px;
  color: var(--text-muted); text-decoration: underline; padding: 6px; }
.ti-note { margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.mv-tour-link { display: inline-block; margin-top: 10px; background: none; border: 0; padding: 0; cursor: pointer;
  color: #4E6B4D; font-weight: 700; font-size: 13px; text-decoration: underline; font-family: inherit; }

/* ▸ כותרת עמוד קומפקטית בכל המבטים (24.9.26, מיטל: "הכותרת גבוהה מדי") —
     פחות ריווח, כותרת קטנה יותר, בלי "מערכת מעודכנת". הכותרת היא רק "איפה אני",
     והתוכן החשוב (החודש, המספרים) צריך להופיע במסך הראשון. */
body[data-look="menor"] .page-header { padding: 16px 24px; margin-bottom: 16px; gap: 14px; }
body[data-look="menor"] .page-header-eyebrow { margin-bottom: 2px; font-size: 10.5px; }
body[data-look="menor"] .page-header h1 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0 0 2px; }
body[data-look="menor"] .page-header-sub { font-size: 13.5px; }
body[data-look="menor"] .page-compass-status { display: none; }
body[data-look="menor"] .page-header .tour-start,
body[data-look="menor"] .page-header [data-tour-start] { margin-top: 4px; }
@media (max-width: 760px) {
  body[data-look="menor"] .page-header { padding: 14px 16px; }
}
