/* ============================================================================
   דלת הכניסה לבקשות — הכפתור הצף והיריעה · #361, 17.9.2026
   ============================================================================

   🔑 **אותה צורה שאושרה ב-#345**: עיגול 56px, נגרר, נצמד לצד. החשבון מגיע
   מ-‎shared/dock-geometry.js‎ ולא מכאן — כאן רק הצבע, השכבה והמידות.

   🔴 **שכבות — נקבעו במדידה, אחרי שהצילום הפריך את ההנחה הראשונה.**
     תחילה נכתב כאן 90/95, "מתחת לכותרת, וחלון הלקוחה מעליהם". הצילום
     הראה את התוצאה: **כרטיס לקוחה פתוח (‎.admin-modal-overlay‎, z-index
     200) הסתיר את הכפתור ואת היריעה לגמרי** — כלומר דווקא במסך שממנו
     הבקשה הכי שווה משהו, אי אפשר היה להגיש אותה. וזה כל חלק 2.
     🔑 לכן 210 לכפתור ו-215 ליריעה: מעל כרטיס הלקוחה, ומתחת למסך
     הביקור (400) ולהודעות הצפות (500) — שני מצבים ממוקדים שאין להפריע
     להם. ⚠ והכותרת אינה נפגעת אף שהיא 100: הכפתור עגון לתחתית המסך,
     והיריעה מתחילה **מתחת לתחתית הכותרת שנמדדה** (ראו ‎fitSheet‎).

   ⚠ **RTL.** ברירת המחדל היא **שמאל-למטה**: האגודל הימני מחזיק את הטלפון
     וגם פותח את תפריט שלושת הפסים שבימין. היריעה נפתחת מהצד שאליו הכפתור
     עגון ונצמדת לרוחב המסך במובייל.

   ⚠ **הנפשה = transform ו-opacity בלבד.** אין כאן ‎box-shadow‎ מונפש ואין
     סינון מונפש — שניהם מכריחים את הדפדפן לצייר מחדש בכל פריים.

   ⚠ **גובה אחיד לשכנים** (‎visual-height-parity‎): כל השבבים בשורה אחת
     מקבלים ‎min-height: 36px‎, והכפתורים ביריעה 44px — סף יעד המגע.
   ========================================================================= */

.rq {
  position: fixed;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  z-index: 210;
  will-change: transform;
}
.rq[hidden] { display: none; }

.rq-btn {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  touch-action: none;   /* הגרירה שלנו, לא גלילת הדף */
}
.rq-btn:focus { outline: none; }
.rq-ring-focus {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid #ff2d87;
  opacity: 0;
  pointer-events: none;
}
.rq-btn:focus-visible .rq-ring-focus { opacity: 1; }

.rq-lift { position: absolute; left: 0; top: 0; width: 56px; height: 56px; }
.rq-face {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff2d87;
  /* 🔴 **הטבעת הלבנה נוספה ממדידה בצילום.** כשהכפתור עמד מעל כרטיס
     לקוחה פתוח, הוא נחת על בלוק ורוד של הכרטיס — **ורוד על ורוד באותו
     גוון, והקצה של העיגול נעלם.** צל רך לבדו לא הפריד ביניהם. הטבעת
     מפרידה אותו מכל רקע, ורוד או לבן.
     ⚠ צל סטטי ולא מונפש — שום תמונת מפתח אינה נוגעת בו. */
  box-shadow: 0 0 0 3px #ffffff, 0 6px 16px rgba(208, 38, 111, .32);
}
.rq-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #ffffff;
}
/* מונה הבקשות הפתוחות. ⚠ בצד הנגדי לעגינה, כדי שלא ייחתך בקצה המסך. */
.rq-badge {
  position: absolute;
  top: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ffffff;
  color: #ff2d87;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #ff2d87;
}
.rq[data-side="left"] .rq-badge { right: -2px; }
.rq[data-side="right"] .rq-badge { left: -2px; }
.rq-badge[hidden] { display: none; }

/* ── היריעה ─────────────────────────────────────────────────────────── */
/* ⚠ **המידות נקבעו במדידה, לא בהערכה.** בצילום הראשון על אמולציית
   אייפון (390×844, גובה נראה 664) כפתור "שליחה" נחתך בתחתית היריעה:
   ‎max-height: 70vh‎ נתן 465px, והתוכן עד הכפתור היה גבוה יותר. פעולה
   ראשית שנחתכת במנוחה אינה "אפשר לגלול" — היא נראית כמו מסך שבור.
   🔑 התרופה: קצב אנכי צפוף יותר **וגם** תקרה גבוהה יותר, ואז מדידה
   חוזרת בשלושת המנועים. הלוח ("הבקשות שלי") הוא מה שנשאר לגלילה. */
.rq-sheet {
  position: fixed;
  /* ⚠ ‎top‎ נכתב מ-JS לפי תחתית הכותרת שנמדדה בפועל. הערך כאן הוא רשת
     ביטחון ליריעה שנפתחה לפני שהמדידה רצה — ולא מקור שני. */
  top: 160px;
  bottom: 84px;
  left: 16px;
  right: 16px;
  max-width: 420px;
  z-index: 215;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(26, 26, 26, .18);
  direction: rtl;
  text-align: right;
}
/* 🔑 הראש ושורת ההקשר קבועים; כל השאר גולל. שורת ההקשר היא מה שאומר
   מאיזה מסך הבקשה נשלחת, ואסור שהיא תיעלם בגלילה. */
.rq-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.rq-sheet[hidden] { display: none; }
@media (min-width: 560px) {
  .rq-sheet { right: auto; width: 420px; }
}

/* ⚠ **‎padding-bottom‎ נוסף ב-#375, ממדידה ולא מהעדפה.** הראש קבוע והתוכן
   גולל מתחתיו ונחתך בדיוק בגבול שלו. בצילום על אמולציית אייפון, ביריעה
   שיש בה מספיק תוכן כדי לגלול, שורת הטקסט הראשונה **נגעה בכותרת** — שתי
   שורות טקסט צמודות שאין ביניהן שום הפרדה. הרווח הזה הוא ההפרדה, והוא
   משותף לשני הפנים כי הגלילה משותפת לשניהם. */
.rq-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding-bottom: 10px;
}
.rq-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 36px; color: #1a1a1a; }

/* ══════════ #379 · הפס שאומר מה אני כאן ══════════
   🔴 **מה זה סוגר.** מאז #375 היריעה יודעת מי פתח אותה, אבל שני הפנים
     נפתחו עם אותו לבן ואותה כותרת — וההבדל התגלה רק למי שקרא כותרת
     משנה באמצע המסך. הפס הוא הדבר הראשון שהעין פוגשת.

   🔑 **המחיר האנכי נמדד ולא הוערך: 12px** בשלושת המנועים (Chromium 360
     ו-384, WebKit 390). הוא כמעט אפס כי הראש **כבר קיים** — הוא רק מקבל
     רקע, נפרש לרוחב, ומוותר על הריפוד העליון של היריעה.
     ⚠ מול זה נמדד המרווח שהיה: 179px מתחת לארבע התשובות בפן של איתי
     ברוחב 360, ו-273 בפן של ליה. 12 מתוך 179 הוא מה שהופך את זה למותר.

   🔴 **ולעולם לא צבע לבדו.** לכל פן יש **מילים** (שורת התפקיד) ו**צורה**
     (השבב, עם חץ שנכנס מול חץ שיוצא ומילוי מלא מול ריק). בגווני אפור
     הכהה, הוורוד והוורוד-הרך נשארים שלוש רמות בהירות נפרדות — וגם אילו
     לא היו, המילה והחץ אומרים את אותו דבר.

   ⚠ **הבורר הוא ‎[data-face]‎ ולא מחלקה**, כי זה בדיוק מה ש-‎applyFace‎
     כותבת מהתשובה של השרת. בלי פן אין תכונה, ולכן אין פס — יריעה שלא
     קיבלה עדיין תשובה אינה מנחשת צבע. */
.rq-head-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rq-head-text { display: flex; flex-direction: column; min-width: 0; }
/* ⚠ הכותרת מתכווצת ואינה דוחפת את השבב מחוץ ליריעה ברוחב 360. */
.rq-head-text .rq-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-head-role { display: block; font-size: 12.5px; font-weight: 700; line-height: 16px; }
.rq-head-role:empty { display: none; }

/* השבב: צורה, כיוון ומילה. ⚠ ‎visual-height-parity‎ — 36px בדיוק כמו
   גוש הכותרת וכמו כפתור הסגירה שלידו. נמדד: פער 0px בשלושת המנועים. */
.rq-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 36px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.rq-mark[hidden] { display: none; }
.rq-mark-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 2px solid currentColor;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.rq-close {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f4eef1;
  color: #6b5b62;
  font-size: 16px;
  cursor: pointer;
}

/* ⚠ **כללי הפן יושבים כאן, אחרי כלל הבסיס, ולא לפניו.**
   שתי סיבות, ושתיהן נמדדו: דריסה שנכתבת לפני מה שהיא דורסת היא
   הזמנה לתקלה שקטה — ו-‎request-dock.test.js‎ קורא את הכלל הראשון
   שמתאים לבורר, כך שבלוק של פן שהוקדם הסתיר את ‎min-height: 36px‎
   של כפתור הסגירה והפיל את שער הגובה האחיד. */
/* כשיש פן — הראש נפרש לרוחב היריעה ונצבע. */
.rq-sheet[data-face] { padding-top: 0; }
.rq-sheet[data-face] .rq-head {
  /* ביטול הריפוד האופקי של היריעה, וריפוד משלו. */
  margin: 0 -16px 12px;
  padding: 12px 16px;
  min-height: 52px;
  border-radius: 18px 18px 0 0;
}
/* ⚠ 16/20 ל-‎rq-title‎ ו-12.5/16 לשורה = 36px בדיוק, ולכן הראש אינו גדל
   מעבר לריפוד שלו ושום שכן אינו מאבד סימטרייה. */
.rq-sheet[data-face] .rq-title { font-size: 16px; line-height: 20px; }

/* ── הפן שמקבל: כהה מלא, וחץ שנכנס ─────────────────────────────────── */
.rq-sheet[data-face="owner"] .rq-head { background: #1a1a1a; }
.rq-sheet[data-face="owner"] .rq-title { color: #ffffff; }
.rq-sheet[data-face="owner"] .rq-head-role { color: #ffd6e8; }
.rq-sheet[data-face="owner"] .rq-mark { color: #ffffff; }
.rq-sheet[data-face="owner"] .rq-mark-glyph { background: #ffffff; color: #1a1a1a; }
/* ⚠ הכפתור על רקע כהה — לבן שקוף למחצה ולא האפור-ורוד של המצב הבהיר. */
.rq-sheet[data-face="owner"] .rq-close { background: rgba(255, 255, 255, .18); color: #ffffff; }

/* ── הפן ששולח: ורוד רך, וחץ שיוצא בריבוע ריק ──────────────────────── */
.rq-sheet[data-face="sender"] .rq-head { background: #ffd6e8; }
.rq-sheet[data-face="sender"] .rq-title { color: #1a1a1a; }
.rq-sheet[data-face="sender"] .rq-head-role { color: #6b5b62; }
.rq-sheet[data-face="sender"] .rq-mark { color: #6b5b62; }
.rq-sheet[data-face="sender"] .rq-mark-glyph { background: transparent; color: #1a1a1a; }
/* ⚠ לבן על ורוד-רך אינו נקרא, ולכן כאן הכפתור לבן מלא עם טקסט כהה. */
.rq-sheet[data-face="sender"] .rq-close { background: #ffffff; color: #6b5b62; }

/* ⚠ ‎#372‎ — כבר אינה ‎flex: 0 0 auto‎ בראש היריעה אלא שורה בתוך הגלילה,
   מעל שבבי הסוג ותיבת הכתיבה. מה שהיא נועדה להבטיח — שהיא נקראת לפני
   שמקלידים — נשמר, כי היא יושבת מעל שניהם. */
.rq-context { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #6b5b62; }

.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rq-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #e6d8de;
  border-radius: 18px;
  background: #ffffff;
  color: #6b5b62;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rq-chip.is-on { border-color: #ff2d87; background: #ffd6e8; color: #1a1a1a; }

/* ══════════ #372 · החצי של התשובות המהירות ══════════
   ⚠ **‎visual-height-parity‎.** שבבי השאלות נושאים את ‎.rq-chip‎ עצמה ולא
     מחלקה משלהם, ולכן הם נתחמים **באותו** גובה כמו שבבי הקטגוריה שמתחת.
     מחלקה נפרדת עם ‎padding‎ משלה הייתה סוטה ביום שמישהו יגע באחת מהן,
     ושתי שורות שבבים בגבהים שונים ביריעה אחת נקראות כלא מסודר. */
.rq-ask-title { margin: 2px 0 8px; font-size: 15px; font-weight: 700; color: #1a1a1a; }
.rq-ask-title[hidden] { display: none; }
.rq-asks { margin-bottom: 6px; }
.rq-cats { margin-bottom: 12px; }
.rq-asks[hidden] { display: none; }

/* תיבת התשובה. ⚠ רקע משלה כדי שהעין תבדיל בין "מה שהמערכת ענתה" לבין
   "מה שאני כותבת" — שני דברים שונים לגמרי באותה יריעה. */
.rq-answer {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4f8;
}
.rq-answer[hidden] { display: none; }
.rq-answer.is-error { background: #fdeef1; }
.rq-answer-head { margin: 0; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.rq-answer.is-error .rq-answer-head { color: #a3123f; }
.rq-answer-list { margin: 6px 0 0; padding: 0; list-style: none; }
.rq-answer-line {
  padding: 3px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: #6b5b62;
}

.rq-label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.rq-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e6d8de;
  border-radius: 12px;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
  font-size: 16px;   /* ⚠ 16px ומעלה — מתחת לזה iOS מקרב את התצוגה בפוקוס */
  line-height: 22px;
}
/* 🔴 ═══════ טבעת המיקוד — הליקוי שאיתי צילם, ומה שמחזיק אותו סגור ═══════
   נמדד ב-WebKit (אמולציית אייפון 390) וב-Chromium (384 · 360): ברירת המחדל
   של הדפדפן מציירת טבעת מיקוד **מחוץ** לקופסת השדה. בתוך יריעה שרוחבה
   כרוחב המסך התוצאה הייתה שתיים:
     · הפס העליון של הטבעת נחת **על התווית שמעל השדה** — "ההסבר המלא"
       נראה חתוך מאחוריו, וזה בדיוק מה שאיתי דיווח;
     · הפסים הצדדיים נחתכו ב-‎overflow‎ של אזור הגלילה, ולכן מה שנשאר על
       המסך היה שני קווים ורודים מנותקים ולא טבעת.
   🔑 התרופה: ‎outline-offset‎ **שלילי** — הטבעת מצוירת בתוך הקופסה עצמה.
     היא נשארת נראית למקלדת ולמגע, אינה נוגעת באף שכן, ואינה יכולה
     להיחתך. ⚠ ‎:focus‎ ולא ‎:focus-visible‎ בלבד: ספארי מדליק טבעת על שדות
     טקסט גם בנגיעה, וזה המסלול שבו הליקוי צולם. */
.rq-input:focus,
.rq-chip:focus-visible,
.rq-close:focus-visible,
.rq-send:focus-visible {
  outline: 2px solid #ff2d87;
  outline-offset: -2px;
}
.rq-input:focus { border-color: #ff2d87; }

/* ── תיבת הכתיבה האחת · #366 ────────────────────────────────────────────
   ⚠ **אין כאן ‎resize‎ ידני.** התיבה גדלה לבד עם מה שנכתב בה (‎grow‎ ב-JS),
     ומעל התקרה מקבלת גלילה משלה. ידית גרירה על מסך טלפון היא פקד שאי
     אפשר לתפוס באגודל, והיא גם נראתה כקו שבור בפינת השדה בצילומים. */
.rq-write {
  min-height: 62px;
  max-height: 208px;   /* ⚠ אותו מספר כמו ‎WRITE_MAX_PX‎ ב-JS, ובדיקה משווה */
  resize: none;
  overflow-y: hidden;
}
.rq-hint { margin: 5px 0 11px; font-size: 12.5px; font-weight: 600; line-height: 16px; color: #6b5b62; }

/* המונה: מופיע רק כשמתקרבים לתקרה, ומאדים כשעוברים אותה. ⚠ הוא מתריע
   ואינו חוסם — שום מסלול אינו מקצץ טקסט של אדם. */
.rq-count { margin: 0 0 11px; font-size: 12.5px; font-weight: 700; color: #6b5b62; }
.rq-count.is-over { color: #a3123f; }
.rq-count[hidden] { display: none; }

.rq-actions { display: flex; justify-content: flex-start; }
.rq-send {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 22px;
  background: #ff2d87;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.rq-send:disabled { opacity: .6; cursor: default; }

.rq-msg { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: #1a6b46; }
.rq-msg.is-error { color: #a3123f; }
.rq-msg[hidden] { display: none; }

.rq-board-title { margin: 16px 0 8px; font-size: 15px; font-weight: 700; color: #1a1a1a; }
.rq-board { margin: 0; padding: 0; list-style: none; }
.rq-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  border-top: 1px solid #f0e6ea;
}
.rq-row-sum { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.rq-row-state { font-size: 13px; font-weight: 700; color: #ff2d87; }
.rq-row.is-done .rq-row-state { color: #6b5b62; }
/* 🔑 #372 · התשובה של איתי. שורה משלה, ובצבע של טקסט ראשי ולא של מטא —
   זה המשפט היחיד ביריעה שאדם כתב אליה, ואין סיבה שייראה כמו הערת שוליים. */
.rq-row-reply { font-size: 13.5px; font-weight: 600; line-height: 18px; color: #1a1a1a; }
.rq-row-where { font-size: 12.5px; font-weight: 600; color: #6b5b62; }
.rq-empty { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #6b5b62; }
.rq-empty[hidden] { display: none; }

/* ══════════════ הפן של איתי · #375, 18.9.2026 ══════════════
   🔑 **אותה יריעה, שני כיווני קריאה.** כל מה שכאן נשען על המחלקות שכבר
     קיימות למעלה — ‎rq-chip‎, ‎rq-input‎, ‎rq-send‎, ‎rq-label‎, ‎rq-hint‎ —
     ולא על סט שני משלו. ‎visual-height-parity‎: שבבי המצב הם אותו שבב
     בדיוק כמו שבבי הסוג, ולכן הם נתחמים באותו גובה ואינם יכולים לסטות
     ביום שמישהו יגע באחד מהם.
   ⚠ **וכל ‎[hidden]‎ מקבל ‎display:none‎ במפורש.** ‎h3‎ ו-‎ul‎ הם
     ‎display: block‎/‎list-item‎ מברירת המחדל, ותכונת ‎hidden‎ לבדה מפסידה
     לכלל שמצהיר ‎display‎ — כלומר חצי יריעה שהוסתר היה נשאר על המסך. */
.rq-assistant-block { margin: 0 0 14px; }
.rq-assistant-block[hidden] { display: none; }
/* 🔑 **הדרך אל העוזרת היא הפעולה הראשית של הפן הזה**, ולכן היא נראית
   כפעולה ולא כקישור. ⚠ אותו גובה של ‎rq-send‎ — 44px, סף יעד המגע —
   כדי שלא ייווצרו שני גבהים של "כפתור" באותה יריעה. */
.rq-assistant {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid #ff2d87;
  border-radius: 22px;
  background: #fff5f9;
  color: #a3123f;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.rq-assistant:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: -3px;
}
.rq-assistant-hint { margin: 6px 0 0; }
.rq-inbox-title { margin: 16px 0 8px; font-size: 15px; font-weight: 700; color: #1a1a1a; }
.rq-inbox { margin: 0; padding: 0; list-style: none; }
.rq-inbox-empty { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #6b5b62; }
.rq-inbox[hidden], .rq-inbox-title[hidden], .rq-inbox-empty[hidden] { display: none; }
.rq-board-title[hidden], .rq-board[hidden] { display: none; }
.rq-chips[hidden], .rq-form[hidden], .rq-context[hidden] { display: none; }

/* ── שורה שנפתחת · הטקסט המלא והתשובה באותו מקום ── */
.rq-row-open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
  font: inherit;
}
.rq-row-open:focus-visible {
  outline: 3px solid #1a1a1a;
  /* ⚠ שלילי, מאותה סיבה בדיוק שנמדדה ב-#366: טבעת שנצבעת מחוץ לקופסה
     נוחתת על השורה שמעליה. */
  outline-offset: -3px;
}
/* ⚠ שורת המצב והחץ באותה שורה, והחץ צמוד לקצה שממנו העין מתחילה
   לקרוא הפוך — כלומר בצד שמאל ב-RTL, כמו כל סימן פתיחה באתר. */
.rq-row-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rq-row-caret {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
  color: #ff2d87;
  /* ⚠ transform בלבד, וזוחל ואינו קופץ. */
  transform: rotate(0deg);
  transition: transform .26s ease-out;
}
.rq-row-open.is-open .rq-row-caret { transform: rotate(180deg); }
.rq-row.is-done .rq-row-caret { color: #6b5b62; }
.rq-row-body { padding: 10px 0 2px; }
.rq-row-body[hidden] { display: none; }
/* ⚠ ‎pre-wrap‎ ו-‎overflow-wrap‎: הטקסט נכתב בידי אדם, עם שורות משלו,
   ומילה אחת ארוכה אינה רשאית להרחיב את היריעה מעבר לרוחב המסך. */
.rq-row-text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #1a1a1a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rq-states { margin-bottom: 12px; }
.rq-reply { min-height: 76px; resize: none; }

@media (prefers-reduced-motion: reduce) {
  .rq { transition: none; }
  .rq-row-caret { transition: none; }
}

/* ═══════════ להצביע על הפריט · #383, 18.9.2026 ═══════════
   🔑 איתי שאל אם אפשר לסמן את הפריט שרוצים לשנות. השורה הזו היא
     הכניסה למצב ההצבעה, והשבב שלידה אומר על מה מצביעים עכשיו.
   ⚠ **גובה אחד לכל מה שיושב בשורה** (‎peer-elements-share-one-height‎):
     הכפתור, השבב וכפתור ההסרה — כולם 36px. */
.rq-pick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 11px;
}
.rq-pick-row[hidden] { display: none; }
.rq-pick {
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid #ffc2dc;
  border-radius: 18px;
  background: #fff2f8;
  color: #a3123f;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.rq-pick:focus-visible { outline: 2px solid #ff2d87; outline-offset: -2px; }
/* ⚠ **השבב עצמו נשאר בכיוון הדף; רק הכתובת בתוכו הפוכה.** שבב שכולו
   ‎ltr‎ הזיז את הנקודתיים אל צדו השני של הטקסט העברי — נמדד בצילום. */
.rq-pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: #ff2d87;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.rq-pick-chip-lead { flex: 0 0 auto; }
.rq-pick-chip-code {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rq-pick-chip[hidden] { display: none; }
.rq-pick-clear {
  width: 36px;
  height: 36px;
  border: 1.5px solid #ffc2dc;
  border-radius: 50%;
  background: #ffffff;
  color: #6b5b62;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.rq-pick-clear[hidden] { display: none; }
.rq-pick-clear:focus-visible { outline: 2px solid #ff2d87; outline-offset: -2px; }

/* ── מצב ההצבעה עצמו ──
   ⚠ **המסגרת אינה לוכדת הקשות** — בלי זה ‎elementFromPoint‎ היה מחזיר
     אותה במקום את מה שמתחתיה, והמצביע היה מצביע על עצמו. */
.rq-pick-box {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  border: 2px solid #ff2d87;
  border-radius: 6px;
  background: rgba(255, 45, 135, 0.12);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.04);
}
.rq-pick-hint {
  position: fixed;
  z-index: 2147483000;
  inset-inline: 16px;
  bottom: 16px;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 20px;
  background: #2b1b22;
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  text-align: center;
}
body[data-rq-picking] { cursor: crosshair; }

/* ═══════════ היומן החי · #384, 18.9.2026 ═══════════
   🔑 איתי ביקש כפתור שחושף לוגים חיים שמציגים הכול. מסך מלא ולא תיבה
     בתוך היריעה — מה שמחפשים ביומן הוא הרצף, ותיבה קטנה הופכת אותו
     לבלתי קריא.
   ⚠ **הרקע כהה במכוון.** זה משטח אבחון ולא חלק מהמוצר, וההבדל צריך
     להיות מיידי — כמו ההבדל בין שלושת הפנים (#379). */
.rq-log {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: flex;
  flex-direction: column;
  background: #14090e;
  color: #f7eef2;
  font-family: 'Rubik', sans-serif;
}
.rq-log[hidden] { display: none; }
.rq-log-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid #3a2530;
  background: #1f0f17;
}
.rq-log-head-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.rq-log-title { margin: 0; font-size: 15px; line-height: 20px; color: #ffffff; }
.rq-log-hint { margin: 2px 0 0; font-size: 12px; font-weight: 600; line-height: 16px; color: #ffb3d2; }
.rq-log-count { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: #ffb3d2; }
.rq-log-acts { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
/* ⚠ ‎visual-height-parity‎ — שלושת הכפתורים בשורה אחת ובגובה אחד. */
.rq-log-act {
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid #6b3a4f;
  border-radius: 18px;
  background: transparent;
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.rq-log-act:focus-visible { outline: 2px solid #ff2d87; outline-offset: -2px; }
.rq-log-close { background: #ff2d87; border-color: #ff2d87; }
.rq-log-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 12px 24px;
  /* ⚠ גלילה חלקה על אייפון, אחרת הרשימה נתקעת באמצע תנופה. */
  -webkit-overflow-scrolling: touch;
}
.rq-log-empty { margin: 16px 4px; font-size: 13px; font-weight: 600; color: #c79bad; }
.rq-log-empty[hidden] { display: none; }
.rq-log-row {
  display: grid;
  grid-template-columns: 44px 62px 52px 1fr;
  gap: 8px;
  padding: 5px 4px;
  border-bottom: 1px solid #2a1720;
  font-size: 12px;
  line-height: 17px;
  /* ⚠ שורות יומן נקראות משמאל לימין — הן קוד, לא טקסט. */
  direction: ltr;
  text-align: left;
}
.rq-log-n, .rq-log-t { color: #8d6b79; font-variant-numeric: tabular-nums; }
.rq-log-k { font-weight: 700; color: #ffb3d2; }
.rq-log-x {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.rq-log-row[data-kind="error"] { background: #3a0f1f; }
.rq-log-row[data-kind="error"] .rq-log-k { color: #ff9ab5; }
.rq-log-row[data-kind="warn"] .rq-log-k { color: #ffd98a; }
.rq-log-row[data-kind="net"] .rq-log-k { color: #9ad8ff; }

@media (max-width: 420px) {
  /* במסך צר המספרים יורדים לשורה משלהם ולא מוחצים את הטקסט. */
  .rq-log-row { grid-template-columns: 40px 56px 1fr; }
  .rq-log-k { grid-column: 3; }
  .rq-log-x { grid-column: 1 / -1; }
}

/* #386 · הפעולה הראשית בפאנל היומן היא שליחה — אצל ליה. אצל איתי
   היומן כבר אצלו, ולכן שם הראשית היא העתקה. שניהם באותו גובה. */
.rq-log-send { background: #ff2d87; border-color: #ff2d87; }
.rq-log-send[hidden], .rq-log-act[hidden] { display: none; }
.rq-log-send:disabled { opacity: .7; }

/* ══════════════════ מצב הסימון · #392 ══════════════════
   🔑 היריעה נעלמת; מה שנשאר הוא פס אחד בתחתית והמסך עצמו. הפס לעולם
   אינו מכסה יותר מ-~120px, כדי שהמוצר יישאר רוב המסך.
   ⚠ **בכל התגים והשכבות ‎pointer-events: none‎** — חוץ מהקנבס במצב ציור.
   בלי זה תג של פריט מסומן היה "בולע" את הלחיצה הבאה עליו. */
.rq-mk-layer {
  position: fixed;
  inset: 0;
  z-index: 2147482990;
  pointer-events: none;
}
.rq-mk-layer canvas { display: block; touch-action: none; }
.rq-mk-layer.is-drawing { pointer-events: auto; cursor: crosshair; }
.rq-mk-tag {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147482995;
  pointer-events: none;
  box-sizing: border-box;
  border: 2.5px solid var(--mk, #2f6df6);
  border-radius: 6px;
  background: color-mix(in srgb, var(--mk, #2f6df6) 10%, transparent);
}
.rq-mk-tag-n {
  position: absolute;
  top: -12px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--mk, #2f6df6);
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(26, 26, 26, .25);
}
.rq-mk-bar {
  position: fixed;
  z-index: 2147483000;
  inset-inline: 10px;
  bottom: 10px;
  margin-inline: auto;
  max-width: 480px;
  padding: 8px 12px 10px;
  border-radius: 16px;
  background: #2b1b22;
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  direction: rtl;
  text-align: right;
  box-shadow: 0 10px 34px rgba(26, 26, 26, .28);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "status actions" "hint actions" "row row";
  column-gap: 10px;
  row-gap: 6px;
  align-items: center;
}
.rq-mk-bar.is-view { grid-template-areas: "status actions"; grid-template-columns: 1fr auto; }
.rq-mk-status { grid-area: status; font-size: 13.5px; font-weight: 700; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-mk-status-count { font-weight: 400; color: #ffd6e8; }
.rq-mk-bar.is-view .rq-mk-status { white-space: normal; line-height: 17px; font-size: 13px; }
.rq-mk-hint { grid-area: hint; margin: 0; font-size: 11.5px; line-height: 14px; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-mk-actions { grid-area: actions; display: flex; gap: 6px; align-items: center; }
.rq-mk-row { grid-area: row; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.rq-mk-modes { display: inline-flex; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 17px; overflow: hidden; flex: 0 0 auto; }
.rq-mk-mode {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rq-mk-mode.is-on { background: #ffffff; color: #2b1b22; }
.rq-mk-colors { display: inline-flex; gap: 7px; align-items: center; flex: 1 1 auto; justify-content: center; }
.rq-mk-color {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background: var(--mk);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.rq-mk-color.is-on { border-color: #ffffff; box-shadow: 0 0 0 2px var(--mk); transform: scale(1.12); }
.rq-mk-undo, .rq-mk-cancel {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.rq-mk-undo:disabled { opacity: .4; cursor: default; }
.rq-mk-done {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  background: #ff2d87;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.rq-mk-bar button:focus-visible { outline: 2px solid #ffffff; outline-offset: -2px; }
body[data-rq-marking="element"] { cursor: crosshair; }
/* בזמן סימון וצפייה הכפתור הצף מפנה את הפינה — הפס הוא הפקד היחיד. */
body[data-rq-marking] .rq, body[data-rq-viewing] .rq { visibility: hidden; }

/* ── בלוק הסימון בתוך היריעה, אחרי "סיום" ── */
.rq-mk-block {
  display: grid;
  gap: 8px;
  margin: 0 0 11px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff2f8;
  border: 1.5px solid #ffc2dc;
}
.rq-mk-block[hidden] { display: none; }
.rq-mk-block-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rq-mk-block-sum { flex: 1 1 auto; font-size: 13px; font-weight: 700; color: #a3123f; }
.rq-mk-dots { display: inline-flex; gap: 4px; }
.rq-mk-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mk); box-shadow: 0 0 0 1px rgba(26, 26, 26, .12); }
.rq-mk-edit, .rq-mk-clear {
  min-height: 32px;
  padding: 0 12px;
  border: 1.5px solid #ffc2dc;
  border-radius: 16px;
  background: #ffffff;
  color: #a3123f;
  font-family: 'Rubik', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.rq-mk-note { display: grid; gap: 4px; }
.rq-mk-note-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #1a1a1a; }
.rq-mk-note .rq-input { min-height: 36px; }
.rq-mk-block button:focus-visible { outline: 2px solid #ff2d87; outline-offset: -2px; }

/* ── שורת הבקשה אצל הקורא: "להציג על המסך" ── */
.rq-row-marks { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.rq-row-marks-sum { font-size: 12.5px; color: #6b5b62; }
.rq-row-show {
  min-height: 32px;
  padding: 0 12px;
  border: 1.5px solid #ffc2dc;
  border-radius: 16px;
  background: #fff2f8;
  color: #a3123f;
  font-family: 'Rubik', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.rq-row-show:focus-visible { outline: 2px solid #ff2d87; outline-offset: -2px; }
.rq-row-note { margin: 0 0 6px; font-size: 12.5px; line-height: 18px; color: #1a1a1a; display: flex; gap: 6px; align-items: flex-start; }
.rq-row-note .rq-mk-dot { flex: 0 0 auto; margin-top: 3px; }


/* ═══════════ משימות מאיתי לצוות · 11.10.2026 ═══════════
   🔑 **הכיוון השני של הדלת.** אצלה: "משימות מאיתי" בראש היריעה, כל משימה
     עם "לעבור לשם" ו"בוצע ✓". אצלו: "משימות לצוות" — טופס קצר וסטטוס.
   ⚠ **שמות מחלקה משלהם, והמידות של השכנים** (‎visual-height-parity‎): כפתורי
     השורה ושבבי הטופס 36px — כמו ‎.rq-chip‎ ו-‎.rq-pick‎; כפתור השליחה ושדות
     הכתיבה 44px — כמו ‎.rq-send‎ ו-‎.rq-input‎. מחלקות נפרדות ולא אותן מחלקות,
     כי בדיקות קיימות פונות ל-‎.rq-send‎ הראשון במסמך (ההסבר ב-JS).
   ⚠ **בלי הנפשה חדשה.** אין כאן ‎transition‎ ואין ‎animation‎, ולכן אין מה
     לכבות תחת ‎prefers-reduced-motion‎. */
.rq-tasks, .rq-ot { margin: 0 0 14px; }
.rq-tasks[hidden], .rq-ot[hidden] { display: none; }
.rq-tasks-title { margin: 2px 0 8px; font-size: 15px; font-weight: 700; color: #1a1a1a; }
.rq-tasks-list { margin: 0; padding: 0; list-style: none; }
.rq-tasks-list[hidden] { display: none; }

.rq-task {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  margin: 0 0 8px;
  border: 1px solid #f0e6ea;
  border-radius: 12px;
  background: #ffffff;
}
/* משימה שעוד לא נראתה: מסגרת ורודה ורקע — וגם המילה "חדשה", לעולם לא צבע לבדו. */
.rq-task.is-new { border-color: #ff2d87; background: #fff5f9; }
.rq-task.is-done { background: #faf7f8; }
.rq-task-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.rq-task-new {
  flex: 0 0 auto;
  padding: 0 7px;
  border-radius: 9px;
  background: #ff2d87;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
}
.rq-task-title { font-size: 14.5px; font-weight: 700; line-height: 20px; color: #1a1a1a; overflow-wrap: anywhere; }
.rq-task.is-done .rq-task-title { color: #6b5b62; }
.rq-task-details {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 19px;
  color: #1a1a1a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rq-task-meta { font-size: 12.5px; font-weight: 600; line-height: 16px; color: #6b5b62; }
.rq-task-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ⚠ **גובה אחד לכל כפתורי השורה** — "לעבור לשם" ו"בוצע ✓" יושבים זה ליד זה,
   ולכן ‎height‎ קבוע ולא רק ‎min-height‎: טקסט ארוך אינו רשאי למתוח אחד מהם. */
.rq-task-btn, .rq-tasks-done-toggle {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid #ffc2dc;
  border-radius: 18px;
  background: #fff2f8;
  color: #a3123f;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.rq-task-btn.is-primary { border-color: #ff2d87; background: #ff2d87; color: #ffffff; }
.rq-task-btn:disabled { opacity: .6; cursor: default; }
.rq-task-btn[hidden], .rq-tasks-done-toggle[hidden] { display: none; }
.rq-tasks-done-toggle { background: #ffffff; color: #6b5b62; border-color: #e6d8de; margin: 2px 0 8px; }
.rq-task-btn:focus-visible, .rq-tasks-done-toggle:focus-visible, .rq-ot-chip:focus-visible, .rq-ot-send:focus-visible {
  outline: 2px solid #ff2d87;
  outline-offset: -2px;
}

.rq-task-msg { margin: 6px 0 8px; font-size: 13.5px; font-weight: 600; color: #1a6b46; }
.rq-task-msg.is-error { color: #a3123f; }
.rq-task-msg[hidden] { display: none; }

/* ── הצד שלו ── */
.rq-ot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.rq-ot-head .rq-tasks-title { margin: 0; }
.rq-ot-form { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff5f9; }
.rq-ot-form[hidden] { display: none; }
.rq-ot-label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.rq-ot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rq-ot-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #e6d8de;
  border-radius: 18px;
  background: #ffffff;
  color: #6b5b62;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.rq-ot-chip.is-on { border-color: #ff2d87; background: #ffd6e8; color: #1a1a1a; }
.rq-ot-input {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #e6d8de;
  border-radius: 12px;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
  font-size: 16px;   /* ⚠ 16px ומעלה — מתחת לזה iOS מקרב את התצוגה בפוקוס */
  line-height: 22px;
}
/* ⚠ טבעת המיקוד בתוך הקופסה — אותו ליקוי שנמדד ב-#366 על תיבת הבקשה. */
.rq-ot-input:focus { outline: 2px solid #ff2d87; outline-offset: -2px; border-color: #ff2d87; }
.rq-ot-details { min-height: 62px; resize: none; }
.rq-ot-actions { display: flex; justify-content: flex-start; }
.rq-ot-send {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 22px;
  background: #ff2d87;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.rq-ot-send:disabled { opacity: .6; cursor: default; }
.rq-ot-empty { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #6b5b62; }
.rq-ot-empty[hidden] { display: none; }

/* הנקודה על הכפתור כשמחכה משימה מאיתי: ורוד מלא, ולא לבן — כדי שהעין תבדיל
   בינה לבין מספר הבקשות הפתוחות (שהוא מה שהיה שם עד היום). */
.rq-badge[data-kind="task"] { background: #ff2d87; color: #ffffff; box-shadow: 0 0 0 2px #ffffff; }
