/* OnFire - סגנונות ייחודיים מעל שכבת העיצוב המשותפת.
   כל הצבעים נשענים על משתני המותג שב-styles.css. אין ערך צבע חדש. */

/* ===== הלוגו ===== */
/* מאותיות המותג בלבד. שתי גרסאות: לבנה לרקע כהה, כהה לרקע בהיר. */
.of-logo { display: block; height: auto; }
.of-logo-lg   { width: 300px; max-width: 78%; margin: 0 auto 14px; }
.of-logo-hero { width: 320px; max-width: 100%; }
.of-logo-light { display: none; }
[data-theme="light"] .of-logo { display: none; }
[data-theme="light"] .of-logo-light { display: block; }
@media (max-width: 768px) {
  .of-logo-lg   { width: 230px; }
  .of-logo-hero { width: 200px; }
}

/* ===== סמל המילה (שריד - נשמר לשימוש טקסטואלי) ===== */
.of-wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  white-space: nowrap;
  /* חובה: שם המותג לטיני. בלי זה RTL הופך את סדר החלקים ל-FireOn. */
  direction: ltr;
  unicode-bidi: isolate;
}
.of-wm-a { color: #F4F1FC; }
.of-wm-b { color: var(--violet); }
.of-spark {
  width: 0.30em; height: 0.30em;
  margin-inline-start: 0.16em;
  align-self: flex-start;
  background: var(--violet-light);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 6px var(--glow-tight));
  animation: of-spark-pulse 3.2s ease-in-out infinite;
}
@keyframes of-spark-pulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.14); }
}
.of-wordmark-lg   { font-size: 44px; }
.of-wordmark-hero { font-size: 46px; }
@media (max-width: 768px) {
  .of-wordmark-lg   { font-size: 34px; }
  .of-wordmark-hero { font-size: 30px; }
}

/* ===== מד מוכנות ===== */
.of-ready {
  display: flex; align-items: center; gap: 26px;
  padding: 26px 28px; margin-bottom: 26px;
  background: var(--glass-fill);
  border: 1px solid var(--edge);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 34px var(--glow-wide);
}
.of-ready-dial { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.of-ready-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.of-ready-track { fill: none; stroke: var(--border-strong); stroke-width: 9; }
.of-ready-arc {
  fill: none; stroke: var(--violet); stroke-width: 9; stroke-linecap: round;
  filter: drop-shadow(0 0 7px var(--glow-tight));
  transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1);
}
.of-ready-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
}
.of-ready-num b { font-size: 34px; font-weight: 800; color: var(--violet-light); line-height: 1; }
.of-ready-num span { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.of-ready-body { flex: 1; min-width: 0; }
.of-ready-title { font-size: 21px; font-weight: 800; color: var(--violet); margin-bottom: 8px; }
.of-ready-text { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); }
.of-ready-bars { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.of-ready-bar {
  flex: 1; min-width: 128px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 13px;
}
.of-ready-bar-label { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 6px; }
.of-ready-bar-val { font-size: 18px; font-weight: 700; color: var(--violet-light); font-family: 'Sora', sans-serif; }
@media (max-width: 768px) {
  .of-ready { flex-direction: column; text-align: center; padding: 22px 18px; gap: 18px; }
  .of-ready-bars { justify-content: center; }
}

/* ===== שלב בתוכנית ===== */
.of-stage { margin-bottom: 40px; }
.of-stage-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 6px; }
.of-stage-num {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
  color: var(--violet-light);
  background: var(--glass-fill-strong);
  border: 1px solid var(--edge-strong);
}
.of-stage-title { font-size: 19px; font-weight: 800; color: var(--violet); line-height: 1.9; }
.of-stage-why {
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.75;
  margin: 0 47px 16px 0;
  border-inline-start: 2px solid var(--edge);
  padding-inline-start: 12px;
}

/* ===== כרטיס יחידה ===== */
.of-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.of-unit {
  position: relative; text-align: right;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 17px 14px;
  cursor: pointer;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  display: flex; flex-direction: column; gap: 9px;
}
.of-unit:hover {
  transform: translateY(-3px);
  border-color: var(--edge-strong);
  box-shadow: 0 8px 26px var(--glow-wide);
}
.of-unit.is-locked { opacity: .46; cursor: not-allowed; }
.of-unit.is-locked:hover { transform: none; box-shadow: none; border-color: var(--border); }
.of-unit.is-done { border-color: var(--edge-strong); }
.of-unit-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.of-unit-num { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.of-unit-title { font-size: 15.5px; font-weight: 700; color: var(--text-primary); line-height: 1.55; }
.of-unit-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.of-chip {
  font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-secondary);
  background: var(--bg-tertiary);
}
.of-chip-critical { color: var(--violet-light); border-color: var(--edge-strong); background: var(--violet-soft); }
.of-chip-high     { color: var(--violet-light); border-color: var(--edge); }
.of-chip-done     { color: var(--violet); border-color: var(--edge-strong); background: var(--glass-fill-strong); }
/* יחידה שיש בה תרגיל להרצה - מסומנת כדי שאפשר יהיה לאתר אותה במסך התוכנית.
   הספציפיות הכפולה נדרשת: יש הגדרת .of-chip שנייה בהמשך הקובץ, לתגי הסינון,
   והיא דורסת רקע של תג שמוגדר כאן. */
.of-unit-meta .of-chip-lab { color: #fff; background: var(--violet); border-color: var(--violet); }
.of-unit-lock { font-size: 11.5px; color: var(--text-secondary); line-height: 1.6; }

/* ===== מסך יחידה ===== */
.of-unit-page { max-width: 860px; }
.of-unit-hero {
  padding: 24px 26px; margin-bottom: 22px;
  background: var(--glass-fill); border: 1px solid var(--edge);
  border-radius: 18px; backdrop-filter: blur(12px);
}
.of-unit-hero-num { font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.of-unit-hero-title { font-size: 25px; font-weight: 800; color: var(--violet); line-height: 1.5; margin-bottom: 12px; }
.of-unit-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.of-section {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 24px; margin-bottom: 18px;
}
.of-section-h {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-secondary); text-transform: none;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.of-section-h::before {
  content: ''; width: 16px; height: 2px; background: var(--violet); border-radius: 2px;
}

/* גוף השיעור */
.of-lesson { font-size: 15.5px; line-height: 1.95; color: var(--text-primary); }
.of-lesson h2 { font-size: 20px; font-weight: 800; color: var(--violet); margin: 26px 0 12px; line-height: 1.6; }
.of-lesson h2:first-child { margin-top: 0; }
.of-lesson h3 { font-size: 16.5px; font-weight: 700; color: var(--violet-light); margin: 22px 0 9px; line-height: 1.6; }
.of-lesson p { margin: 0 0 13px; }
.of-lesson ul, .of-lesson ol { margin: 0 0 15px; padding-inline-start: 22px; }
.of-lesson li { margin-bottom: 8px; }
.of-lesson strong { color: var(--violet-light); font-weight: 700; }
.of-lesson code {
  font-family: 'Sora', monospace; font-size: .9em;
  background: var(--bg-tertiary); padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--border);
}

/* הטיפ */
.of-tip {
  background: var(--glass-fill-strong);
  border: 1px solid var(--edge-strong);
  border-radius: 16px; padding: 20px 22px; margin-bottom: 18px;
  position: relative; overflow: hidden;
}
.of-tip::after {
  content: ''; position: absolute; inset-inline-end: -32px; top: -32px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-wide) 0%, transparent 68%);
  pointer-events: none;
}
.of-tip-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--violet-light);
  margin-bottom: 10px;
}
.of-tip-head { font-size: 17.5px; font-weight: 800; color: var(--violet); margin-bottom: 9px; line-height: 1.6; }
.of-tip-body { font-size: 15px; line-height: 1.9; color: var(--text-primary); }

/* רשימת בדיקה */
.of-check { display: flex; flex-direction: column; gap: 9px; }
.of-check-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 15px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.of-check-item:hover { border-color: var(--edge-strong); }
.of-check-item.is-on { background: var(--glass-fill); border-color: var(--edge-strong); }
.of-check-box {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 6px; border: 1.7px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.of-check-item.is-on .of-check-box { background: var(--violet); border-color: var(--violet); }
.of-check-box svg { width: 12px; height: 12px; stroke: #fff; opacity: 0; transition: opacity .2s; }
.of-check-item.is-on .of-check-box svg { opacity: 1; }
.of-check-text { font-size: 14.5px; line-height: 1.7; color: var(--text-primary); }
.of-check-item.is-on .of-check-text { color: var(--text-secondary); }
.of-check-why { font-size: 12.5px; line-height: 1.65; color: var(--text-secondary); margin-top: 5px; opacity: .85; }

/* תרחיש */
.of-sc-intro {
  font-size: 15px; line-height: 1.9; color: var(--text-primary);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-inline-start: 3px solid var(--violet);
  border-radius: 12px; padding: 15px 17px; margin-bottom: 18px;
}
.of-sc-step { margin-bottom: 22px; }
.of-sc-q { font-size: 15.5px; font-weight: 700; color: var(--text-primary); line-height: 1.75; margin-bottom: 11px; }
.of-sc-opts { display: flex; flex-direction: column; gap: 8px; }
.of-sc-opt {
  text-align: right; width: 100%;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 11px; padding: 12px 15px;
  font-size: 14.5px; line-height: 1.6; color: var(--text-primary);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.of-sc-opt:hover:not(:disabled) { border-color: var(--edge-strong); }
.of-sc-opt:disabled { cursor: default; }
.of-sc-opt.is-right { border-color: var(--violet); background: var(--glass-fill-strong); color: var(--violet-light); font-weight: 600; }
.of-sc-opt.is-wrong { border-color: var(--border-strong); opacity: .55; text-decoration: line-through; }
.of-sc-explain {
  margin-top: 11px; padding: 13px 15px;
  background: var(--glass-fill); border: 1px solid var(--edge);
  border-radius: 11px; font-size: 14px; line-height: 1.85; color: var(--text-primary);
}
.of-sc-closing {
  margin-top: 20px; padding: 15px 17px;
  background: var(--glass-fill-strong); border: 1px solid var(--edge-strong);
  border-radius: 12px; font-size: 14.5px; line-height: 1.85; color: var(--violet-light);
}

/* אזהרת מקור */
.of-warn {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--bg-tertiary); border: 1px solid var(--border-strong);
  border-inline-start: 3px solid var(--violet-light);
  border-radius: 11px; padding: 13px 15px; margin-bottom: 18px;
  font-size: 13.5px; line-height: 1.75; color: var(--text-secondary);
}

/* פס פעולה תחתון ביחידה */
.of-unit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* מפת סיכון */
.of-risk-group { margin-bottom: 30px; }
.of-risk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.of-risk-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--glow-tight); }
.of-risk-dot.d-high { background: var(--violet-light); box-shadow: none; }
.of-risk-dot.d-medium { background: var(--border-strong); box-shadow: none; }
.of-risk-title { font-size: 17px; font-weight: 800; color: var(--violet); }
.of-risk-note { font-size: 13px; color: var(--text-secondary); margin: 0 20px 13px 0; }

/* טיפים שנאספו */
.of-tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.of-tip-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 15px; padding: 17px 19px;
}
.of-tip-card-src { font-size: 11px; color: var(--text-secondary); margin-bottom: 7px; }
.of-tip-card-head { font-size: 15.5px; font-weight: 700; color: var(--violet); line-height: 1.6; margin-bottom: 7px; }
.of-tip-card-body { font-size: 13.8px; line-height: 1.8; color: var(--text-secondary); }

/* ===== המאמנת ===== */
.of-coach-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; margin-bottom: 14px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 13px;
}
.of-coach-label { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.of-coach-select {
  flex: 1; min-width: 190px;
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 8px 11px; font-family: inherit; font-size: 13.5px;
  cursor: pointer;
}
.of-coach-select:focus { outline: none; border-color: var(--edge-strong); }
.of-coach-quick { display: flex; gap: 7px; flex-wrap: wrap; }
.of-quick {
  background: var(--glass-fill); border: 1px solid var(--edge);
  border-radius: 999px; padding: 6px 13px;
  font-family: inherit; font-size: 12.5px; color: var(--violet-light);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.of-quick:hover { border-color: var(--edge-strong); background: var(--glass-fill-strong); }
.of-coach-note { margin-top: 9px; font-size: 12px; color: var(--text-secondary); text-align: center; }
.coach-reset { flex-shrink: 0; font-size: 12.5px; padding: 7px 14px; }

/* בועות השיחה */
.coach-messages .bot-msg { max-width: 88%; line-height: 1.85; }
.bot-msg-user {
  margin-inline-start: auto;
  background: var(--glass-fill-strong); border: 1px solid var(--edge-strong);
}
.bot-msg-bot { margin-inline-end: auto; }
.bot-msg h2 { font-size: 16px; color: var(--violet); margin: 12px 0 7px; }
.bot-msg h3 { font-size: 14.5px; color: var(--violet-light); margin: 11px 0 6px; }
.bot-msg p { margin: 0 0 9px; }
.bot-msg ul, .bot-msg ol { margin: 0 0 10px; padding-inline-start: 20px; }
.bot-msg li { margin-bottom: 5px; }
.bot-msg strong { color: var(--violet-light); }
@media (max-width: 768px) {
  .of-coach-bar { flex-direction: column; align-items: stretch; }
  .of-coach-select { min-width: 0; }
  .coach-messages .bot-msg { max-width: 96%; }
}

/* ========== מחולל המסמכים ========== */
.of-lead {
  color: var(--text-secondary); font-size: 14.5px; line-height: 1.85;
  margin-bottom: 22px; max-width: 780px;
}
.of-lead strong { color: var(--violet-light); }

.of-dg-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--glass-fill-strong); border: 1px solid var(--edge-strong);
  border-radius: 16px; padding: 18px 22px; margin-bottom: 22px;
}
.of-dg-badge { flex-shrink: 0; }
.of-dg-badge-l { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 4px; }
.of-dg-badge-v { font-size: 22px; font-weight: 800; color: var(--violet); line-height: 1.3; }
.of-dg-reason { flex: 1 1 260px; font-size: 13.5px; line-height: 1.75; color: var(--text-primary); }
.of-dg-count { flex-shrink: 0; font-size: 12.5px; color: var(--text-secondary); }

.of-acc {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 0 22px; margin-bottom: 14px;
}
.of-acc > summary {
  list-style: none; cursor: pointer; padding: 17px 0;
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.of-acc > summary::-webkit-details-marker { display: none; }
.of-acc > summary::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet); flex-shrink: 0; transition: transform .2s;
}
.of-acc[open] > summary::before { transform: scale(1.5); }
.of-acc[open] { padding-bottom: 20px; }
.of-acc-n {
  font-size: 11.5px; font-weight: 700; color: var(--violet-light);
  background: var(--glass-fill); border: 1px solid var(--edge);
  border-radius: 20px; padding: 2px 9px;
}

.of-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.of-f { display: block; margin-bottom: 12px; }
.of-f-l { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.of-f-i {
  width: 100%; box-sizing: border-box;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 13px;
  font-family: 'Heebo', sans-serif; font-size: 14px; color: var(--text-primary);
  transition: border-color .2s;
}
.of-f-i:focus { outline: none; border-color: var(--violet); }
select.of-f-i { cursor: pointer; }

.of-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* ⛔ תוקן: הייתה .of-chip גלובלית (בלי ההיקף .of-chips) - היא דרסה את
   התג הקטן שמוגדר למעלה לתוויות סטטיות (of-unit-meta, of-risk וכו'),
   כך שכל תג באתר יצא באותו גודל של צ'יפ סינון לחיץ - כולל תוויות שאינן
   לחיצות בכלל. ההיקף מחזיר לתוויות את הגודל הקטן שלהן, ומעלה את
   הצ'יפ הלחיץ עצמו למטרת מגע תקנית. */
.of-chips .of-chip {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 20px; padding: 8px 14px; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 13px; color: var(--text-secondary);
  transition: all .18s;
  min-height: 48px; display: inline-flex; align-items: center;
}
.of-chips .of-chip:hover { border-color: var(--edge-strong); }
.of-chips .of-chip.is-on { background: var(--glass-fill-strong); border-color: var(--violet); color: var(--text-primary); }
.of-chip-s { font-size: 10.5px; color: var(--violet-light); opacity: .9; }

.of-hint {
  font-size: 12.5px; line-height: 1.75; color: var(--text-secondary);
  margin-top: 14px; padding-inline-start: 11px;
  border-inline-start: 2px solid var(--edge-strong);
}

.of-sub {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin: 12px 0;
}
.of-sub-h {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-secondary); margin-bottom: 10px;
}
.of-sub-x {
  background: none; border: none; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 12.5px; color: var(--violet-light);
}
.of-sub-x:hover { text-decoration: underline; }
.of-btn-ghost {
  background: none; border: 1px dashed var(--edge-strong); border-radius: 10px;
  padding: 10px 18px; cursor: pointer; margin-top: 6px;
  font-family: 'Heebo', sans-serif; font-size: 13.5px; color: var(--violet-light);
}
.of-btn-ghost:hover { background: var(--glass-fill); }

.of-ctl {
  border-bottom: 1px solid var(--border); padding: 13px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.of-ctl:last-child { border-bottom: none; }
.of-ctl-t { flex: 1 1 200px; }
.of-ctl-n { font-size: 14px; color: var(--text-primary); line-height: 1.6; }
.of-ctl-u { font-size: 11.5px; color: var(--text-secondary); cursor: pointer; margin-top: 2px; }
.of-ctl-u:hover { color: var(--violet-light); }
.of-ctl-r { display: flex; gap: 0; flex-shrink: 0; }
.of-seg {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  padding: 7px 13px; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 12.5px; color: var(--text-secondary);
  transition: all .18s;
}
.of-seg:first-child { border-radius: 0 9px 9px 0; }
.of-seg:last-child { border-radius: 9px 0 0 9px; }
.of-seg.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.of-ctl-d { flex: 1 1 100%; margin-top: 4px; }

.of-dg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.of-dg-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px;
  display: flex; flex-direction: column;
}
.of-dg-card-h { font-size: 16.5px; font-weight: 800; color: var(--violet); margin-bottom: 9px; line-height: 1.5; }
.of-dg-card-w { font-size: 13.3px; line-height: 1.8; color: var(--text-secondary); flex: 1; margin-bottom: 16px; }
.of-dg-card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.of-dg-card-u { font-size: 11.5px; color: var(--text-secondary); cursor: pointer; }
.of-dg-card-u:hover { color: var(--violet-light); }
.of-btn {
  background: var(--violet); border: none; border-radius: 10px;
  padding: 10px 20px; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 13.5px; font-weight: 600; color: #fff;
  transition: filter .18s;
}
.of-btn:hover { filter: brightness(1.12); }

@media (max-width: 640px) {
  .of-acc { padding: 0 16px; }
  .of-grid { grid-template-columns: 1fr; }
  .of-ctl-r { width: 100%; }
  .of-seg { flex: 1; text-align: center; padding: 8px 6px; }
}

/* אצלך בפועל - החיבור למערכות האמיתיות */
.of-real { border-color: var(--edge-strong); }
.of-real-note { font-size: 12.5px; color: var(--text-secondary); margin: -6px 0 14px; }
.of-real-item {
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-inline-start: 3px solid var(--violet);
  border-radius: 12px; padding: 15px 17px; margin-bottom: 11px;
}
.of-real-item:last-child { margin-bottom: 0; }
.of-real-sys {
  display: inline-block; font-family: 'Sora', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--violet-light); background: var(--glass-fill);
  border: 1px solid var(--edge); border-radius: 20px;
  padding: 2px 10px; margin-bottom: 9px;
}
.of-real-title { font-size: 15px; font-weight: 700; color: var(--violet); line-height: 1.6; margin-bottom: 7px; }
.of-real-body { font-size: 14px; line-height: 1.85; color: var(--text-primary); margin-bottom: 9px; }
.of-real-take {
  font-size: 13.3px; line-height: 1.8; color: var(--text-secondary);
  padding-inline-start: 11px; border-inline-start: 2px solid var(--edge-strong);
}

/* כתובת מקור ארוכה אינה נשברת מעצמה, וגולשת מחוץ למסך במובייל.
   anywhere מאפשר שבירה בכל נקודה, ובידוד שומר שהכתובת תיקרא משמאל לימין. */
.of-src-url {
  color: var(--text-secondary);
  overflow-wrap: anywhere; word-break: break-all;
  direction: ltr; unicode-bidi: isolate; display: inline-block; max-width: 100%;
  text-decoration: none;
}
a.of-src-url:hover, a.of-src-url:focus { color: var(--violet-light); text-decoration: underline; }

/* הערה אישית ליחידה - שדה קטן שנשמר אוטומטית מקומית בדפדפן */
.of-note-box { resize: vertical; min-height: 64px; }

/* מעבדה - תרגיל שמריצים בפועל על נתונים חיים */
.of-lab { border-color: var(--violet); }
.of-lab-env {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: -6px 0 12px;
}
.of-lab-env-tag {
  font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; color: #fff; background: var(--violet);
  border-radius: 20px; padding: 3px 12px;
}
.of-lab-env-note { font-size: 12.3px; color: var(--text-secondary); }
.of-lab-goal {
  background: var(--glass-fill); border: 1px solid var(--edge);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
  font-size: 14.2px; line-height: 1.85; color: var(--text-primary);
}
.of-lab-goal b { color: var(--violet-light); font-weight: 700; }
.of-lab-step {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 0; border-top: 1px solid var(--border);
}
.of-lab-step:first-of-type { border-top: none; padding-top: 0; }
.of-lab-n {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--glass-fill-strong); border: 1px solid var(--violet);
  color: var(--violet-light); font-family: 'Sora', sans-serif;
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.of-lab-do { font-size: 14.2px; line-height: 1.85; color: var(--text-primary); }
/* מונח לועזי בתוך משפט עברי מהפך את סוף השורה, ונקודה פותחת בורחת.
   בידוד ברמת ה-CSS פותר את שניהם בלי להזריק תווי כיוון לטקסט עצמו. */
.of-lab-do code, .of-lab-goal code, .of-lab-watch code,
.of-lab-proof code, .of-lab-trap code {
  direction: ltr; unicode-bidi: isolate; white-space: nowrap;
  font-family: 'Sora', ui-monospace, monospace; font-size: .93em;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px;
  /* nowrap מונע שבירה של נתיב או שם קובץ, אבל מחרוזת ארוכה הייתה גולשת
     מחוץ למסך במובייל. התיבה מוגבלת לרוחב ההורה וגוללת בתוך עצמה. */
  display: inline-block; max-width: 100%; overflow-x: auto;
  vertical-align: bottom;
}
.of-lab-watch {
  font-size: 12.8px; line-height: 1.8; color: var(--text-secondary);
  margin-top: 6px; padding-inline-start: 11px;
  border-inline-start: 2px solid var(--edge-strong);
}
.of-lab-code {
  display: block; direction: ltr; text-align: left;
  font-family: 'Sora', ui-monospace, monospace; font-size: 12.5px; line-height: 1.75;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 13px; margin-top: 8px;
  overflow-x: auto; white-space: pre; color: var(--text-primary);
}
.of-lab-proof, .of-lab-trap {
  border-radius: 12px; padding: 13px 16px; margin-top: 14px;
  font-size: 13.6px; line-height: 1.85;
}
.of-lab-proof { background: var(--glass-fill); border: 1px solid var(--violet); color: var(--text-primary); }
.of-lab-trap { background: var(--bg-tertiary); border: 1px solid var(--edge-strong); color: var(--text-secondary); }
.of-lab-lbl {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--violet-light); margin-bottom: 5px;
}
@media (max-width: 640px) {
  .of-lab-step { gap: 10px; }
  .of-lab-code { font-size: 11.5px; }
}

/* ========== סייר מסמכי הספק ========== */
.of-dx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.of-dx-tab {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 11px; padding: 9px 16px; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 13.5px; color: var(--text-secondary);
  transition: all .18s;
}
.of-dx-tab:hover { border-color: var(--edge-strong); }
.of-dx-tab.is-on { background: var(--glass-fill-strong); border-color: var(--violet); color: var(--text-primary); font-weight: 600; }

.of-dx-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.of-dx-sub { flex: 1 1 300px; font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.of-dx-modes { display: flex; flex-shrink: 0; }

.of-dx-quiz {
  background: var(--bg-secondary); border: 1px solid var(--edge-strong);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 16px;
}
.of-dx-quiz.is-right { border-color: var(--violet); background: var(--glass-fill-strong); }
.of-dx-quiz-q { font-size: 15.5px; font-weight: 700; color: var(--text-primary); line-height: 1.7; margin-bottom: 7px; }
.of-dx-quiz-fb { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.of-dx-quiz.is-right .of-dx-quiz-fb { color: var(--violet-light); }

.of-dx-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }

.of-dx-sheet {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 22px;
  direction: ltr; text-align: left;
}
.of-dx-kicker {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; color: var(--violet); margin-bottom: 8px;
}
.of-dx-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.of-dx-meta span {
  font-family: 'Sora', sans-serif; font-size: 10.5px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); padding-bottom: 3px; min-width: 110px;
}
.of-dx-block {
  position: relative; border: 1px solid transparent; border-radius: 10px;
  padding: 11px 13px 12px 40px; margin-bottom: 6px; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.of-dx-block:hover { background: var(--bg-tertiary); border-color: var(--border); }
.of-dx-block.is-on { background: var(--glass-fill-strong); border-color: var(--violet); }
.of-dx-num {
  position: absolute; left: 11px; top: 11px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--bg-tertiary); border: 1px solid var(--edge-strong);
  color: var(--violet-light); font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s;
}
.of-dx-block.is-on .of-dx-num { background: var(--violet); border-color: var(--violet); color: #fff; }
.of-dx-bh { font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 7px; }
.of-dx-bars { display: flex; flex-direction: column; gap: 4px; }
.of-dx-bars i { display: block; height: 5px; border-radius: 3px; background: var(--border); }
.of-dx-block.is-on .of-dx-bars i { background: var(--edge-strong); }

.of-dx-panel {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 24px; position: sticky; top: 88px;
}
.of-dx-p-num { font-family: 'Sora', sans-serif; font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; }
.of-dx-p-title { font-size: 18px; font-weight: 800; color: var(--violet); line-height: 1.55; margin-bottom: 15px; }
.of-dx-p-row { font-size: 14px; line-height: 1.85; color: var(--text-primary); margin-bottom: 13px; }
.of-dx-p-row b {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--text-secondary);
  letter-spacing: .04em; margin-bottom: 3px;
}
.of-dx-p-row.is-trap {
  background: var(--glass-fill); border-inline-start: 3px solid var(--violet);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 15px;
}
.of-dx-p-row.is-trap b { color: var(--violet-light); }
.of-dx-p-unit { font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.of-dx-p-unit:hover { color: var(--violet-light); }
.of-dx-p-empty { text-align: center; padding: 34px 10px; }
.of-dx-p-empty-t { font-size: 15px; font-weight: 700; color: var(--violet-light); margin-bottom: 8px; }
.of-dx-p-empty-b { font-size: 13.3px; line-height: 1.8; color: var(--text-secondary); }

@media (max-width: 900px) {
  .of-dx-wrap { grid-template-columns: 1fr; }
  .of-dx-panel { position: static; }
}

/* ========== בוט התוכנית העסקית ========== */
.of-bp-steps { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.of-bp-step {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 11px; padding: 8px 13px; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 12.8px; color: var(--text-secondary);
  transition: all .18s;
}
.of-bp-step:hover { border-color: var(--edge-strong); }
.of-bp-step.is-on { background: var(--glass-fill-strong); border-color: var(--violet); color: var(--text-primary); font-weight: 600; }
.of-bp-step-n {
  width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-tertiary); border: 1px solid var(--edge);
  font-family: 'Sora', sans-serif; font-size: 10.5px; font-weight: 700; color: var(--violet-light);
  display: flex; align-items: center; justify-content: center;
}
.of-bp-step.is-on .of-bp-step-n { background: var(--violet); border-color: var(--violet); color: #fff; }
.of-bp-step.is-done .of-bp-step-n { background: var(--glass-fill-strong); border-color: var(--violet); }

.of-bp-bar { margin-bottom: 20px; }
.of-bp-bar-t { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.of-bp-bar-track { height: 5px; border-radius: 4px; background: var(--bg-tertiary); overflow: hidden; }
.of-bp-bar-track i { display: block; height: 100%; background: var(--violet); border-radius: 4px; transition: width .3s; }

.of-bp-intro { font-size: 14px; line-height: 1.85; color: var(--text-secondary); margin-bottom: 22px; }
.of-bp-q { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.of-bp-q:last-of-type { border-bottom: none; margin-bottom: 6px; }
.of-bp-q-t { font-size: 15.5px; font-weight: 700; color: var(--text-primary); line-height: 1.65; margin-bottom: 5px; }
.of-bp-q-kind {
  font-size: 10.5px; font-weight: 500; color: var(--violet-light);
  background: var(--glass-fill); border: 1px solid var(--edge);
  border-radius: 20px; padding: 2px 9px; margin-inline-start: 8px;
}
.of-bp-q-why {
  font-size: 12.8px; line-height: 1.75; color: var(--text-secondary);
  margin-bottom: 12px; padding-inline-start: 10px;
  border-inline-start: 2px solid var(--edge-strong);
}
.of-bp-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.of-bp-prev {
  font-size: 15px; line-height: 1.9; color: var(--text-primary);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-inline-start: 3px solid var(--violet);
  border-radius: 12px; padding: 16px 18px;
}
.of-bp-note { font-size: 14px; line-height: 1.85; color: var(--text-secondary); }
.of-bp-note strong { color: var(--violet-light); }

/* ========== בורר המסלולים ========== */
.track-picker { padding: 0 4px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.of-tp-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--text-secondary); margin: 0 8px 9px; opacity: .8;
}
.of-tp-list { display: flex; flex-direction: column; gap: 5px; }
.of-tp {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: start; cursor: pointer;
  background: transparent; border: 1px solid transparent;
  border-radius: 10px; padding: 8px 11px;
  font-family: 'Heebo', sans-serif; transition: all .18s;
}
.of-tp:hover { background: var(--bg-tertiary); }
.of-tp.is-on { background: var(--glass-fill-strong); border-color: var(--edge-strong); }
.of-tp-t { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.of-tp.is-on .of-tp-t { color: var(--text-primary); font-weight: 600; }
.of-tp-n { font-size: 10.5px; color: var(--text-secondary); opacity: .75; }
.of-tp.is-on .of-tp-n { color: var(--violet-light); opacity: 1; }

/* ⛔ תיקון גלישת לוגו: הגובה הוגדר על העוגן, והתמונה שבתוכו אינה מוגבלת -
   ולכן היא נטענה בגודלה הטבעי (3435 על 729) והשתלטה על המסך.
   הגבלת גובה חייבת לחול על התמונה עצמה, לא על העוגן שעוטף אותה. */
.login-mindset-logo, .footer-mindset-logo { line-height: 0; }
.login-mindset-logo img { height: 20px; width: auto; display: block; margin-inline: auto; }
.footer-mindset-logo img { height: 26px; width: auto; display: block; }

/* מסכים רחבים: כרטיס הכניסה נבלע כשהמסך רחב מאוד */
@media (min-width: 1900px) {
  .login-card { max-width: 560px; padding: 52px 42px 44px; }
  .login-screen { padding: 48px 24px; }
}

/* ========== לוח החיפוש ========== */
.of-cmd { position: fixed; inset: 0; z-index: 900; }
.of-cmd[hidden] { display: none; }
.of-cmd-back { position: absolute; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); }
.of-cmd-panel {
  position: relative; max-width: 720px; margin: 7vh auto 0;
  background: var(--bg-secondary); border: 1px solid var(--violet);
  border-radius: 17px; box-shadow: 0 22px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; max-height: 82vh; overflow: hidden;
}
.of-cmd-top { display: flex; align-items: center; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
#of-cmd-q {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  font-family: 'Heebo', sans-serif; font-size: 17px; color: var(--text-primary);
  direction: rtl; text-align: right;
}
#of-cmd-q::placeholder { color: var(--text-secondary); opacity: .7; }
.of-cmd-x {
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  width: 30px; height: 30px; cursor: pointer; color: var(--text-secondary); font-size: 14px; flex-shrink: 0;
}
.of-cmd-x:hover { border-color: var(--violet); color: var(--text-primary); }

.of-cmd-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.of-cmd-chip {
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 12.5px; color: var(--text-secondary);
}
.of-cmd-chip:hover { border-color: var(--edge-strong); }
.of-cmd-chip.is-on { background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 600; }

.of-cmd-list { overflow-y: auto; padding: 8px; flex: 1; }
.of-cmd-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: transparent; border: 1px solid transparent; border-radius: 11px;
  padding: 10px 12px; cursor: pointer; text-align: right;
  font-family: 'Heebo', sans-serif; color: var(--text-primary);
}
.of-cmd-row:hover { background: var(--bg-tertiary); }
.of-cmd-row.is-sel { background: var(--glass-fill-strong); border-color: var(--violet); }
.of-cmd-n {
  flex: 0 0 38px; font-family: 'Sora', sans-serif; font-size: 12px;
  color: var(--violet-light); font-variant-numeric: tabular-nums;
}
.of-cmd-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.of-cmd-t { font-size: 14.8px; font-weight: 600; line-height: 1.45; }
.of-cmd-t mark { background: rgba(137,110,192,.42); color: inherit; border-radius: 3px; padding: 0 2px; }
.of-cmd-sub { font-size: 11.8px; color: var(--text-secondary); }
.of-cmd-badges { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.of-cmd-b {
  font-family: 'Sora', sans-serif; font-size: 9.8px; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 2px 8px; color: var(--text-secondary); white-space: nowrap;
}
.of-cmd-b.lab  { background: var(--violet); border-color: var(--violet); color: #fff; }
.of-cmd-b.crit { color: var(--violet-light); border-color: var(--edge-strong); }
.of-cmd-b.done { color: var(--violet); }

.of-cmd-none { padding: 34px 16px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.of-cmd-foot {
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-size: 11.8px; color: var(--text-secondary);
}

/* כפתור החיפוש בכותרת - נמדד 35 פיקסלים גובה, מתחת למטרת המגע. */
.of-search-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: 11px; padding: 7px 13px; min-height: 44px; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 13.5px; color: var(--text-secondary);
}
.of-search-btn:hover { border-color: var(--violet); color: var(--text-primary); }
.of-search-btn kbd {
  font-family: 'Sora', sans-serif; font-size: 10.5px;
  border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px;
}

@media (max-width: 640px) {
  .of-cmd-panel { margin: 0; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: none; }
  .of-cmd-badges { display: none; }
  .of-search-btn kbd { display: none; }
}

/* ========== עלות המאמנת (מסך admin בלבד) ========== */
.of-cost-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.of-cost-row:last-child { border-bottom: none; }
.of-cost-name { font-size: 14px; color: var(--text-primary); line-height: 1.6; }
.of-cost-sub { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }
.of-cost-amt {
  font-family: 'Sora', sans-serif; font-size: 14.5px; font-weight: 700;
  color: var(--violet-light); flex-shrink: 0;
}
@media (max-width: 640px) {
  .of-cost-row { flex-wrap: wrap; }
}

/* ========== סריקת מוכנות - סינון וקיבוץ ========== */
.of-scan-badge {
  appearance: none; background: transparent; border: 1px solid transparent;
  border-radius: 12px; padding: 7px 12px; cursor: pointer; text-align: right;
  font-family: inherit; min-height: 44px; transition: border-color .18s, background .18s;
}
.of-scan-badge:hover { border-color: var(--edge); }
.of-scan-badge.is-on { border-color: var(--violet); background: var(--violet-soft); }
.of-scan-badge.is-on .of-dg-badge-v { color: var(--violet-light); }
.of-scan-group > summary { font-size: 16px; }
.of-scan-group .of-acc { margin-inline-start: 0; }
.of-scan-cite { direction: ltr; text-align: left; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .of-dg-summary { gap: 8px; padding: 14px; }
  .of-scan-badge { flex: 1 1 132px; }
  .of-dg-badge-v { font-size: 19px; }
}
/* מטרות מגע במובייל - כפתור סגמנט קטן מדי לאצבע */
@media (max-width: 640px) {
  .of-seg { padding: 12px 14px; min-height: 44px; }
  .of-ctl-r { flex-wrap: wrap; }
}
