/* ═══ Legislator AI בטלפון (docs/mobile-design.md, ברק 26.9.2026) ═══
   נטען רק עם media="(max-width: 899px)" (index.html) - **במחשב הקובץ לא חל בכלל**, ולכן
   המחשב לא זז בפיקסל (tests/browser/test_mobile.py --desktop).
   הצבעים - המשתנים של style.css. שלושת הערכים שלא היו שם (ת5) - כאן, כמשתנים עם שם
   (--send-off עבר ל-:root של style.css - desktop-v2-plan §1.3, אותו ערך). */

:root {
  --group: #8494BD;             /* כותרות הקבוצות במגירה, ופריטי "במחשב" */
  --overlay: rgba(11,42,91,.45);/* שכבת ההאפלה מאחורי המגירה והגיליון */
  --line-2: #EEF2F8;            /* קו פנימי (= --shell) */
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ── בסיס: 16px בכל שדה (נגד הזום של ספארי), 44px ליעדי לחיצה ── */
input, select, textarea, .inp { font-size: 16px !important; }
button, select, .inp, a.btn, a.btn-mint, [role=button] { min-height: 44px; }
button, [role=button] { min-width: 44px; }
body { flex-direction: column; height: 100vh; height: 100dvh; background: var(--shell); }
.main { flex: 1; height: auto; min-height: 0; }
.stage { padding: 0; overflow: hidden; }
.tab.on { height: 100%; overflow: auto; }
.topbar { display: none !important; }
.home, .rules-source-card, .card > header, .notice, .chat-form, .dz-drag, .dz-ico, .dz-sub,
.rs-title, .rs-sub, .rs-steps, .rs-drop-main, .rs-drop-sub, .rs-pick-d, .rs-summary, .msg-copy, .msg-action,
.nav, .rail .brand, #rules-cited { display: none !important; }
.mnav, .mnav-top, .home-m, .m-details, .m-pick-sub, .m-result, .rs-m-title, .rs-m-sub, .rs-pick-m,
.rs-prev, .rs-step-btn, .mbar-actions, .mbar-sub { display: revert; }

/* ═══ 2.1 פס עליון ═══ */
.mbar {
  display: flex; align-items: center; gap: 4px; flex: 0 0 52px; height: 52px; padding: 0 4px;
  background: var(--page); color: var(--navy); border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box;
}
.mbar-menu {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: inherit; flex: none;
}
.mbar-menu svg, .m-ibtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mbar-logo { display: none; }
.mbar-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.mbar-title { font-size: 18px; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbar-sub { font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbar-sub:empty { display: none; }
.mbar-actions { display: flex; gap: 2px; flex: none; }
.m-ibtn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--navy);
}
.m-ibtn:active { background: var(--tint); }
/* חריג: דף הבית - נייבי, ☰ לבן ולוגו (א1: --navy, לא #112A5C) */
body.m-home .mbar { background: var(--navy); color: #fff; border-bottom: 0; height: 60px; flex-basis: 60px; }
body.m-home .mbar-logo { display: block; height: 46px; width: auto; margin-inline-start: auto; margin-inline-end: 8px; order: 3; }
body.m-home .mbar-titles, body.m-home .mbar-actions { display: none; }

/* ═══ 2.2 מגירה (1b) ═══ */
.rail {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 90; width: 306px; max-width: 86vw; flex: none; height: 100%;
  background: var(--navy); transform: translateX(100%); visibility: hidden;
  transition: transform .22s ease, visibility 0s linear .22s; display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}
body.rail-open .rail { transform: none; visibility: visible; transition: transform .22s ease; box-shadow: -12px 0 32px rgba(11,42,91,.28); }
body.rail-open .rail-backdrop { display: block; position: fixed; inset: 0; z-index: 89; background: var(--overlay); }
.mnav-top { order: -1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mnav-x { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; padding: 0; order: 2; margin-inline-start: auto; }
.mnav-user { font-size: 14px; color: #C6D4EC; }
.mnav { display: flex; flex-direction: column; padding: 12px 10px; flex: 1; overflow: auto; }
.mnav button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px;
  border: 0; border-radius: 10px; background: transparent; color: #fff; font: inherit; font-size: 17px; text-align: start;
}
.mnav button .ico { width: 20px; text-align: center; opacity: .9; font-size: 15px; }
.mnav button.on { background: var(--page); color: var(--navy); font-weight: 700; }
.mnav-group { font-size: 12px; font-weight: 700; color: var(--group); letter-spacing: .06em; padding: 16px 14px 4px; }
.mnav button.mnav-desk { color: var(--group); }
/* M4: "מנסח החקיקה והנוסח המשולב זמינים במחשב" - טקסט בלבד */
.mnav-desk-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--group); font-size: 14.5px;
  cursor: default; user-select: none; -webkit-tap-highlight-color: transparent; }
.mnav-desk-note .mnav-laptop { margin: 0; }
.mnav-desk-note .mnav-laptop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.mnav-laptop { margin-inline-start: auto; display: inline-flex; }
.mnav-laptop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body[data-view="guest"] .mnav, body[data-view="guest"] .mnav-top .mnav-user { display: none; }
/* סבב 8.11-א, 13 (ברק 7.11, צילום: "יצירת קשר" ו"שיתוף המחוקק" נוגעים זה בזה): רווח אחיד (10px) בין כל הכפתורים בתחתית -
   יצירת קשר, שיתוף, ושורת החשבון. הרשימה שמעל (.mnav) נגללת בתוכה (min-height: 0), והתחתית קבועה בלי לכסות אותה */
.rail-foot { padding: 12px 14px calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; flex: none; }
.rail-foot > * { margin-top: 0; margin-bottom: 0; }
.rail-foot > [hidden] { display: none; }
.mnav { min-height: 0; overscroll-behavior: contain; }
.contact-btn {
  width: 100%; min-height: 48px; justify-content: center; border: 1px solid rgba(255,255,255,.5);
  border-radius: 12px; background: transparent; color: #fff; font-size: 16px;
}
.contact-btn svg { display: none; }
.mnav-home-row { position: relative; }                     /* ד (ברק 29.9): "הוספה למסך הבית" */
.mnav-home-row > button[data-t] { padding-inline-end: 56px; }
.mnav .m-install-ico { position: absolute; top: 50%; inset-inline-end: 2px; transform: translateY(-50%); width: 44px; min-height: 44px;
  height: 44px; padding: 0; justify-content: center; border: 0; background: transparent; color: #C6D4EC; border-radius: 10px; }
.mnav .m-install-ico[hidden] { display: none; }
.mnav .m-install-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mnav-home-row:has(> button.on) .m-install-ico { color: var(--navy); }
.m-install-ios p { font-size: 16px; line-height: 1.7; margin: 4px 0 12px; }

/* ═══ 2.3 גיליון תחתון ═══ */
.msheet-backdrop { display: block; position: fixed; inset: 0; z-index: 95; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .25s; }
body.msheet-open .msheet-backdrop { opacity: 1; pointer-events: auto; }
body.msheet-open .main { overflow: hidden; touch-action: none; }
.msheet {
  display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
  max-height: 90vh; max-height: 90dvh; background: var(--page); border-radius: 22px 22px 0 0;
  transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
  box-shadow: 0 -8px 30px rgba(11,42,91,.18);
}
.msheet.on { transform: none; visibility: visible; transition: transform .25s ease; }
.msheet.dragging { transition: none; }
.msheet.full { height: 90vh; height: 90dvh; }
.msheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--rule); margin: 8px auto 0; flex: none; }
.msheet-head { display: flex; align-items: center; gap: 8px; padding: 6px 16px 10px; flex: none; border-bottom: 1px solid var(--line-2); }
.msheet-titles { flex: 1; min-width: 0; }
.msheet-kicker { font-size: 13px; color: var(--soft); }
.msheet-kicker:empty { display: none; }
.msheet-head h2 { margin: 0; font-size: 19.5px; font-weight: 700; color: var(--navy); }
.msheet-x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--soft); font-size: 26px; padding: 0; line-height: 1; }
.msheet-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px 18px; overscroll-behavior: contain; }
.msheet-actions { display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line-2); flex: none; }
.msheet-actions button { flex: 1; min-height: 52px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.m-btn-line { background: var(--page); color: var(--navy); border: 1px solid var(--rule); }
.m-btn-navy { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.mtoast {
  display: block; position: fixed; left: 16px; right: 16px; bottom: calc(90px + var(--safe-b)); z-index: 120;
  padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 14.5px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.mtoast.on { opacity: 1; transform: none; }
/* החלונות הקיימים (הרשמה, יצירת קשר) - גיליון תחתון */
.modal-backdrop { padding: 0; align-items: flex-end; background: var(--overlay); }
.modal, .modal-sm {
  max-width: none; width: 100%; border-radius: 22px 22px 0 0; padding: 22px 16px calc(16px + var(--safe-b));
  max-height: 90vh; max-height: 90dvh; overflow: auto;
}
.modal-x { top: 8px; width: 44px; height: 44px; }
.modal-actions button { flex: 1; min-height: 48px; }

/* ═══ 2.4 שורת הקלדה ═══ */
.composer {
  display: flex; align-items: flex-end; gap: 8px; flex: none; background: var(--page);
  border-top: 1px solid var(--rule); padding: 10px 12px calc(10px + var(--safe-b));
}
.composer .composer-input, .composer .inp {
  flex: 1; min-height: 48px !important; border-radius: 24px; background: var(--tint-2); border: 1px solid var(--rule);
  padding: 12px 18px; line-height: 1.4; resize: none;   /* M6: הגובה - עד 5 שורות, ב-growComposer */
}
.composer button.m-send {
  flex: none; width: 48px; height: 48px; min-width: 48px; padding: 0; border-radius: 50%; border: 0;
  background: var(--send-off); color: transparent; font-size: 0; position: relative;
}
.composer button.m-send::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.composer.has-text button.m-send { background: var(--flag); }
.composer button.m-send:disabled { opacity: .7; }

/* ═══ 2.5 בועות וצ'יפים ═══ */
.cols, .rules-cols { display: flex !important; flex-direction: column; flex: 1; min-height: 0; gap: 0; }
.tab#rules.on, .tab#agenda.on, .tab#query.on, .tab#advisor.on { overflow: hidden; }
#rules .card, #query .card, #agenda .card, #advisor .card {
  flex: 1; min-height: 0; border: 0; border-radius: 0; box-shadow: none; max-width: none !important;
  margin: 0 !important; display: flex; flex-direction: column; background: var(--page);
}
.chat { padding: 16px; gap: 14px; flex: 1; min-height: 0; overflow: auto; }
.msg { font-size: 16px; line-height: 1.65; }
.msg.u { max-width: 82%; border-radius: 18px 18px 4px 18px; padding: 11px 15px; }
.msg.a { max-width: 100%; align-self: stretch; background: transparent; border: 0; padding: 0; font-size: 16.5px; line-height: 1.7; }
.msg.err { max-width: 100%; align-self: stretch; }
.msg.thinking { align-self: stretch; background: transparent; border: 0; padding: 0; color: var(--soft); }
.m-msg-actions { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; white-space: normal; }
.m-msg-actions .m-ibtn { width: 44px; height: 44px; color: var(--soft); }
.m-msg-actions .m-ibtn svg { width: 20px; height: 20px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; white-space: normal; }
/* יעד הלחיצה 44 (§1); המראה - הגודל שבמפרט (40 / 38): מסגרת שקופה, והרקע רק בתוכה */
.m-chip-sec {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid transparent; background: var(--tint);
  background-clip: padding-box; color: var(--flag); font-size: 14.5px; font-weight: 700;
}
/* ההפניות בתוך הטקסט - טקסט רגיל; הלחיצה בצ'יפים שמתחת (1d) */
.msg a.rules-cite { color: inherit; text-decoration: none; pointer-events: none; font-weight: 600; }
.m-empty-sugg button, .m-min-chips button, .m-hist-chips button {
  min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--page); border: 3px solid transparent;
  background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--rule); color: var(--navy); font-size: 14.5px;
}

/* ═══ 1c: מצב ריק ═══ */
.m-empty { display: none; }
.card.is-empty .chat { display: none; }
.card.is-empty .m-empty {
  display: flex; flex-direction: column; justify-content: flex-end; flex: 1; min-height: 0; overflow: auto; padding: 16px 16px 20px;
}
.m-empty-ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--flag);
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin-bottom: 14px;
}
.m-empty-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.m-empty-sub { margin: 0 0 18px; font-size: 14.5px; color: var(--soft); line-height: 1.6; }
.m-empty-sugg { display: flex; flex-direction: column; gap: 8px; }
.m-empty-sugg button { min-height: 48px; border-radius: 12px; border: 1px solid var(--rule); box-shadow: none; text-align: start; padding: 10px 16px; font-size: 15.5px; line-height: 1.4; }

/* ═══ 1e / 📖: נוסח סעיף ═══ */
.m-law { font-family: "Frank Ruhl Libre", serif; font-size: 17.5px; line-height: 1.85; color: var(--ink); }
.m-sec { padding: 6px 0; }
.m-sec.hit { background: var(--touched-bg); border-inline-start: 3px solid var(--touched-accent); padding: 8px 12px; margin: 4px 0; }
.m-sec-head { font-weight: 700; color: var(--navy); }
.m-unit .lbl { font-weight: 700; }
.m-chapter { font-family: "Assistant", sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); margin: 18px 0 6px; }
.m-doc-tabs { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 12px; padding-bottom: 4px; }
.m-doc-tab {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--page); color: var(--navy); font-size: 14.5px; white-space: nowrap;
}
.m-doc-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ═══ 1f: היסטוריה ═══ */
.m-hist-search { width: 100%; min-height: 46px; border-radius: 12px; background: var(--tint-2); margin-bottom: 12px; }
.m-hist-chips { display: flex; gap: 8px; margin-bottom: 8px; overflow-x: auto; }
.m-hist-chips button { flex: none; border-width: 2px; }
.m-hist-chips button.on { background: var(--navy); box-shadow: none; color: #fff; font-weight: 700; }
/* M3 (ברק 29.9): "+ שיחה חדשה" בכל לשונית - עובר לכלי של הלשונית ופותח שיחה חדשה */
.m-hist-new { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; margin: 4px 0 6px;
  border: 1.5px solid var(--flag); border-radius: 22px; background: var(--page); color: var(--flag); font: inherit; font-weight: 600; }
.m-hist-new[hidden] { display: none; }
.m-hist-new svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.m-hist-list { margin: 0 -16px; }
.m-hist-group { font-size: 13px; font-weight: 700; color: var(--faint); padding: 14px 16px 4px; }
.m-hist-row {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%;
  min-height: 60px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: var(--page); text-align: start; font: inherit;
}
.m-hist-row.on { background: var(--tint); box-shadow: inset -3px 0 0 var(--flag); }
.m-hist-title { font-size: 16px; font-weight: 600; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-hist-meta { font-size: 13px; color: var(--soft); }
.m-hist-empty { padding: 24px 16px; color: var(--soft); text-align: center; }
.m-hist-note { font-size: 13px; color: var(--soft); text-align: center; padding: 18px 0 4px; }

/* ═══ 1g: שאילתות והצעה לסדר ═══ */
.mpanes {
  display: flex; flex: none; margin: 8px 16px; padding: 0; border-radius: 12px; background: var(--shell); gap: 0;
}
.mpanes button {
  flex: 1; min-height: 44px; border: 3px solid transparent; border-radius: 12px; background: transparent; background-clip: padding-box;
  color: var(--soft); font-weight: 700; font-size: 15px; padding: 0 8px;
}
.mpanes button.on { background-color: var(--page); color: var(--navy); }
.mpanes-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--rule); color: var(--navy); font-size: 12px; margin-inline-start: 4px; }
.mpanes-n:empty { display: none; }
#query:not(.pane-past) .cols > section:nth-child(2),
#query.pane-past .cols > section:nth-child(1) { display: none !important; }
#query.pane-past .cols > section:nth-child(2) .composer { order: -1; border-top: 0; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
#query.pane-past .cols > section:nth-child(2) .composer button { border-radius: 12px; min-width: 72px; }
#query .pq-knesset { padding: 8px 12px; }   /* לילה 24: כמו .composer בטלפון (12px) - מתחת לתחילת הבועה */
#past-queries-results { padding: 8px 16px 24px; }
.m-details {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; flex: none;
  border-bottom: 1px solid var(--rule); background: var(--tint-2);
}
.m-details-text { flex: 1; min-width: 0; font-size: 14px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-details-edit { flex: none; border: 0; background: transparent; color: var(--flag); font-weight: 700; font-size: 15px; padding: 0 6px; }
/* כרטיס המסמך */
.msg.m-docmsg { white-space: normal; }
.msg.m-docmsg .draft { white-space: pre-wrap; }
.m-doc-head, .m-doc-actions { white-space: normal; }
.m-intro { display: block; white-space: pre-wrap; margin-bottom: 8px; }
.msg.m-docmsg .draft { border: 1px solid var(--rule); border-radius: 14px; background: var(--page); padding: 0; overflow: hidden; margin: 0; }
.msg.m-docmsg .draft > *:not(.m-doc-head):not(.m-doc-actions) { padding-inline: 16px; }
.msg.m-docmsg .draft .word-count, .msg.m-docmsg .draft .msg-action { display: none; }
.m-doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px;
  border-bottom: 1px solid var(--line-2); font-family: "Assistant", sans-serif; font-size: 15px; color: var(--navy);
}
.m-wc { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.m-wc.ok { background: var(--ins-bg); color: var(--ins); }
.m-wc.over { background: var(--del-bg); color: var(--del); }
.m-doc-actions { display: flex; border-top: 1px solid var(--line-2); margin-top: 12px; }
.m-doc-actions button {
  flex: 1; min-height: 48px; border: 0; border-radius: 0; background: var(--page); color: var(--flag);
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: "Assistant", system-ui, sans-serif;   /* סבב 7.11, ח6: לא הסריף של הטיוטה - הגופן של האתר, כמו בכל כפתור */
}
.m-doc-actions button + button { border-inline-start: 1px solid var(--line-2); }
.m-doc-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
/* 1h: פרטי השאילתה */
.m-form { display: flex; flex-direction: column; }
.m-lbl { font-size: 14px; font-weight: 700; color: var(--soft); margin: 14px 0 6px; }
.m-lbl:first-child { margin-top: 0; }
.m-field { min-height: 50px; border-radius: 12px; width: 100%; }
.m-min-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.m-min-chips button { background: var(--tint); box-shadow: none; color: var(--flag); }
.m-radios { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.m-radio { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-bottom: 1px solid var(--line-2); }
.m-radio:last-child { border-bottom: 0; }
.m-radio input { width: 22px; height: 22px; margin: 0; accent-color: var(--flag); min-height: 0; }
.m-radio-name { flex: 1; font-size: 16px; }
.m-radio-lim { font-size: 14px; color: var(--soft); }
.m-radio.on { background: var(--tint-2); }
.m-radio.on .m-radio-name { font-weight: 700; color: var(--navy); }
.m-btn-main { min-height: 52px; }

/* ═══ 1a: דף הבית ═══ */
#home .home-m { display: block; padding-bottom: calc(24px + var(--safe-b)); }
.hm-head { background: var(--navy); padding: 8px 16px 22px; color: #fff; }
.hm-greet { margin: 0 0 14px; font-size: 26px; font-weight: 800; }
.hm-ask {
  display: flex; align-items: center; gap: 8px; background: var(--page); border-radius: 14px; padding: 6px 12px 6px 6px;
}
.hm-ask-ico { color: var(--flag); font-size: 15px; }
.hm-ask .inp { flex: 1; border: 0; background: transparent; min-height: 44px; padding: 11px 4px; box-shadow: none;
  line-height: 1.4; resize: none; overflow-y: hidden; font-family: inherit; }   /* M6: textarea, עד 5 שורות */
.hm-ask .inp:focus { outline: none; }
.hm-ask-go {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--flag); color: #fff; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.hm-ask-go svg, .hm-desk svg, .hm-dl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hm-signup-slot { padding: 16px 16px 0; }
.hm-signup-slot .home-signup { margin: 0; padding: 20px 18px; border-radius: 14px; }
.hm-signup-slot .home-signup h2 { font-size: 20px; }
.hm-signup-slot .btn-google { min-height: 48px; }
.hm-recent, .hm-tools, .rs-prev { padding: 18px 16px 0; }
.hm-h2-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hm-h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--navy); }
.hm-h2-row .hm-h2 { margin: 0; }
.hm-all { border: 0; background: transparent; color: var(--flag); font-weight: 700; font-size: 15px; padding: 0 4px; }
.hm-card { background: var(--page); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.hm-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 8px 14px;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: var(--page); text-align: start; font: inherit;
}
.hm-row:last-child { border-bottom: 0; }
.hm-row-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--flag);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.hm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-row-text b { font-size: 15.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row-text span { font-size: 13px; color: var(--soft); }
.hm-dl { flex: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 10px; color: var(--flag); }
/* M2 (ברק 29.9): פח בצד שמאל של כל שורה ב"המשך מאיפה שעצרת", ושורת "נמחק · ביטול" ל-5 שניות */
.hm-del { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--soft); display: grid; place-items: center; }
.hm-del svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-undo { background: var(--line-2); }
.hm-undo .hm-row-text b { font-weight: 500; color: var(--soft); }
.hm-undo-btn { flex: none; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--flag); font: inherit; font-weight: 600; }
.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-grid button {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--rule);
  border-radius: 14px; background: var(--page); color: var(--ink); font-weight: 700; font-size: 15px; text-align: start; line-height: 1.25;
}
.hm-ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--tint); color: var(--flag);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
/* ההרשמה ז (ברק, 17.10 22:43): לאורח - כרטיס לכל שמונת הכלים (גם הצעות חוק והנוסח המשולב; "תקציר הצעה" - בתוך "נוסח משולב
   ותקציר", כמו במחשב), ובלי התיבה "זמינים במחשב" - הוא עוד לא נרשם, זו רק הצגת תכלית. מחובר - כמו היום */
.hm-grid .hm-guest-only { display: none; }
body[data-view="guest"] .hm-grid .hm-guest-only { display: flex; }
body[data-view="guest"] .hm-grid .hm-signed-only, body[data-view="guest"] #hm-desk { display: none; }
.hm-desk {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 12px; padding: 0 14px;
  border: 1px dashed var(--rule); border-radius: 14px; background: transparent; color: var(--soft); font-size: 14.5px;
  cursor: default; user-select: none; -webkit-tap-highlight-color: transparent;   /* M4: לא לחיץ */
}

/* ═══ 2.6 בחירת קובץ, 1l תקציר, 1m בודק הניסוח ═══ */
#proto .card, #critique .card { border: 0; border-radius: 0; box-shadow: none; background: transparent; max-width: none !important; }
#proto .card .body, #critique .card .body { padding: 16px 16px calc(24px + var(--safe-b)); overflow: visible; }
/* 3.1 (ברק, 3.10): הכלי בטלפון - התקציר בלבד; הנוסח המשולב במחשב (טקסט, לא לחיץ - כמו במגירה) */
#proto .m-merge-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 14px; color: var(--soft);  /* ד2 (10.11-א): ניגודיות */
  font-size: 14.5px; }
#proto .m-merge-note .mnav-laptop { margin: 0; }
.dropzone {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 24px 16px; border: 1px solid var(--rule);
  border-style: solid; border-radius: 14px; background: var(--page); text-align: center;
}
.dz-main { display: block; }
.dz-link {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border-radius: 12px;
  background: var(--flag); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; border: 0;
}
.m-pick-sub { font-size: 13.5px; color: var(--soft); }
.dropzone.has-file .dz-link { background: var(--page); color: var(--flag); border: 1px solid var(--flag); }
.dropzone.has-file .dz-sub { display: block !important; font-weight: 600; color: var(--navy); }
#summary-btn, #critique-btn { width: 100%; min-height: 52px; border-radius: 12px; font-size: 16px; }
#summary-result, #critique-result { display: none; }
#proto.has-result .dropzone, #proto.has-result #summary-btn,
#critique.has-result .dropzone, #critique.has-result #critique-btn { display: none; }
.m-result { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.m-result:empty { display: none; }
.m-result .notice { display: block !important; margin: 0; }
.m-file-row { font-size: 13px; color: var(--soft); }
.m-link { border: 0; background: transparent; color: var(--flag); font-weight: 700; padding: 0 4px; font-size: 14px; }
.m-bill-title { margin: 0; font-family: "Frank Ruhl Libre", serif; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.m-card { background: var(--page); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; }
.m-card h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; color: var(--navy); }
.m-card p { margin: 0 0 6px; font-size: 16px; line-height: 1.65; }
.m-card p:last-child { margin-bottom: 0; }
.m-card.m-warn { background: var(--warn-bg); border-color: var(--warn-bg); }
.m-card.m-warn h3 { color: var(--warn); }
details.m-card > summary {
  list-style: none; min-height: 28px; display: flex; align-items: center; justify-content: space-between;
  font-size: 16.5px; font-weight: 700; color: var(--navy); cursor: pointer;
}
details.m-card > summary::-webkit-details-marker { display: none; }
details.m-card > summary::after { content: "⌄"; color: var(--soft); font-size: 18px; transition: transform .15s; }
details.m-card[open] > summary { margin-bottom: 8px; }
details.m-card[open] > summary::after { transform: rotate(180deg); }
.m-fold { padding-block: 14px; }
.m-crit-sum h2 { margin: 4px 0 10px; font-size: 22px; font-weight: 800; color: var(--navy); }
.m-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.m-tag { padding: 3px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.m-tag.fail { background: var(--del-bg); color: var(--del); }
.m-tag.ok { background: var(--ins-bg); color: var(--ins); }
.m-tag.skip { background: var(--skip-bg); color: var(--soft); }
.m-tag.warn { background: var(--warn-bg); color: var(--warn); }
.m-finding { border-inline-start: 4px solid var(--del); }
.m-finding.warn { border-inline-start-color: var(--warn); }
.m-finding p { font-size: 15px; }
.m-raw { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--tint-2); font-size: 13.5px; color: var(--soft); }
.m-skip { border-inline-start: 4px solid var(--faint); display: flex; flex-direction: column; gap: 2px; }
.m-skip b { font-size: 15px; color: var(--ink); }
.m-skip span { font-size: 13.5px; color: var(--soft); }
.m-passed { border: 1px dashed var(--ins); background: transparent; color: var(--ins); font-weight: 700; font-size: 16px; min-height: 52px; display: flex; align-items: center; }

/* ═══ 1i–1k: הסתייגויות ═══ */
#reservations.tab.on { overflow: auto; }
.rs-wrap { max-width: none; padding: 16px 16px calc(24px + var(--safe-b)); }
.rs-m-title { display: block; margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.rs-m-sub { display: block; margin: 0 0 16px; font-size: 14.5px; color: var(--soft); }
.rs-drop { padding: 24px 16px; border: 1px solid var(--rule); border-style: solid; background: var(--page); gap: 12px; }
.rs-drop.is-over { background: var(--page); }
.rs-pick { width: 100%; min-height: 52px; border-radius: 12px; font-size: 16px; }
.rs-pick-m { display: inline; }
.rs-prev { padding: 20px 0 0; }
.rs-card { padding: 14px; border-radius: 14px; }
.rs-proc { padding: 20px 16px; }
.rs-cols { flex-direction: column; gap: 14px; }
.rs-options { flex: none; gap: 14px; }
.rs-bill { align-items: center; }
.rs-bill-title { font-size: 15.5px; }
.rs-field { background: var(--page); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; }
.rs-field:first-of-type { padding: 0; border: 0; background: transparent; }
.rs-label { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rs-note { font-size: 13px; font-weight: 400; }
.rs-levels { display: flex !important; flex-direction: column; gap: 0; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--page); }
.rs-level {
  display: grid !important; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  min-height: 62px; padding: 8px 14px; border: 0 !important; border-bottom: 1px solid var(--line-2) !important; border-radius: 0 !important;
  text-align: start; background: var(--page);
}
.rs-level:last-child { border-bottom: 0 !important; }
.rs-level::before {
  content: ""; grid-row: 1 / 3; grid-column: 1; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--faint); box-sizing: border-box;
}
.rs-level.on { background: var(--tint); }
.rs-level.on::before { border: 6px solid var(--flag); }
.rs-level-name { grid-column: 2; grid-row: 1; font-size: 16px; font-weight: 700; margin: 0; }
.rs-level-desc { grid-column: 2; grid-row: 2; font-size: 13px; margin: 0; }
.rs-level-num { grid-column: 3; grid-row: 1 / 3; font-size: 19px; font-weight: 700; margin: 0; }
.rs-level.on .rs-level-name, .rs-level.on .rs-level-num { color: var(--flag); }
.rs-count-row { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; }
.rs-step-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--page); color: var(--navy); font-size: 24px;
}
.rs-count {
  width: 100%; min-height: 52px; text-align: center; font-size: 26px !important; font-weight: 800; color: var(--navy);
  border: 2px solid var(--flag); border-radius: 12px; -moz-appearance: textfield;
}
.rs-count::-webkit-inner-spin-button, .rs-count::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rs-range { grid-column: 1 / -1; width: 100%; min-height: 44px; margin: 4px 0 0; accent-color: var(--flag); }
.rs-range::-webkit-slider-thumb { width: 26px; height: 26px; }
.rs-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.rs-quick .rs-chip[data-kind="q250"], .rs-quick .rs-chip[data-kind="q550"] { display: none; }
.rs-chip { min-height: 44px; border-radius: 12px; font-size: 14.5px; padding: 0 6px; }
/* הפסים התחתונים (1j, 1k) - דבוקים לתחתית המסך, בהישג האגודל */
#rs-ready:not([hidden]) { padding-bottom: 104px; }
#rs-ready.is-done { padding-bottom: 150px; }
.rs-mbar {
  display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + var(--safe-b)); background: var(--page); border-top: 1px solid var(--rule); z-index: 20;
}
.rs-mbar-price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.rs-mbar-price b { font-size: 22px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.rs-mbar-price span { font-size: 13px; color: var(--soft); }
.rs-mbar-price span:empty { display: none; }
.rs-mbar-pilot { font-size: 12px !important; }
#rs-mbar-go { flex: 0 1 190px; min-height: 52px; border-radius: 12px; font-size: 16px; font-weight: 700; }
#res-result:not(:empty) { margin-top: 16px; }
#res-result .rs-result-head { flex-direction: column; align-items: stretch; }
#res-download { width: 100%; justify-content: center; display: flex; align-items: center; min-height: 52px; }
.res-preview { text-align: start; font-size: 15px; }
.res-quoted { padding-inline-start: 14px; }
/* 1k: מוכן - במקום הבחירה */
#rs-ready.is-done .rs-cols, #rs-ready.is-done .rs-mbar, #rs-ready.is-done #res-result { display: none; }
.rs-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 12px; }
.rs-done[hidden] { display: none !important; }
.rs-done-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ins-bg); color: var(--ins);
  display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 14px;
}
.rs-done-title { margin: 0 0 4px; font-size: 26px; font-weight: 800; color: var(--navy); }
.rs-done-sub { font-size: 14.5px; color: var(--soft); margin-bottom: 16px; }
.rs-done-table { width: 100%; background: var(--page); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.rs-done-table > div { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.rs-done-table > div:last-child { border-bottom: 0; }
.rs-done-table b { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.m-info { width: 44px; height: 44px; min-width: 44px; margin: -6px -8px -6px 0; border: 0; background: transparent; color: var(--soft); font-weight: 700; position: relative; }
.m-info::before { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; }
.rs-done-note { font-size: 13.5px; color: var(--soft); line-height: 1.6; text-align: start; width: 100%; margin: 12px 0 0; }
/* ג1 (ברק 29.9): ההסתייגויות עצמן, כרטיס לכל אחת - מתחת לטבלה; מקום לפס התחתון הדבוק */
.rs-done:not([hidden]) { padding-bottom: calc(92px + var(--safe-b)); }
.rs-done-more { width: 100%; min-height: 48px; margin-top: 12px; border-radius: 12px; font-weight: 700; font-size: 15.5px; }
.rs-m-list { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; text-align: start; }
.rs-m-item { background: var(--page); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.rs-m-item-head { padding: 9px 14px; background: var(--tint); color: var(--navy); font-weight: 700; font-size: 14.5px; }
.rs-m-item-body { padding: 12px 14px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.rs-m-item-body .res-num { font-weight: 700; }
.rs-m-item-body .res-quoted { padding-inline-start: 14px; margin-top: 4px; }
.rs-done-bar {
  display: flex; flex-direction: column; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px 16px calc(12px + var(--safe-b)); background: var(--page); border-top: 1px solid var(--rule);
}
.rs-done-bar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; border-radius: 12px; }
.rs-done-bar .primary { min-height: 52px; }
.rs-done-bar .m-btn-line { min-height: 48px; }
.rs-done-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ═══ 1n: "זמין במחשב" - העורך לא נטען בטלפון ═══ */
#bills > :not(.m-desk), #merge > :not(.m-desk) { display: none !important; }
.m-desk {
  display: flex; flex-direction: column; align-items: stretch; text-align: center; gap: 12px;
  padding: 48px 20px calc(24px + var(--safe-b)); margin: auto 0;
}
.m-desk-ico {
  align-self: center; width: 76px; height: 76px; border-radius: 18px; background: var(--page); border: 1px solid var(--rule);
  display: inline-flex; align-items: center; justify-content: center; color: var(--flag); margin-bottom: 8px;
}
.m-desk-ico svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.m-desk-title { margin: 0; font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.35; }
.m-desk p { margin: 0 0 8px; font-size: 15px; color: var(--soft); line-height: 1.65; }
.m-desk-share { min-height: 52px; border-radius: 12px; font-size: 16px; font-weight: 700; }
.m-desk-alt { min-height: 48px; border-radius: 12px; font-size: 16px; font-weight: 700; background: var(--page); color: var(--navy); border: 1px solid var(--rule); }

@media (prefers-reduced-motion: reduce) {
  .rail, body.rail-open .rail, .msheet, .msheet.on, .msheet-backdrop, .mtoast { transition: none; }
}

/* י7: שדות הסוג בגיליון הפרטים - רק כשהסוג דורש */
.m-agd-x[hidden] { display: none !important; }

/* יא3: יועץ החקיקה בטלפון - הכרטיסים ברוחב מלא; "לתקן כאן" לא מוצג (העורך זמין רק במחשב) */
.adv-card { padding: 12px; }
button.adv-fix { display: none; }

/* כ2 (16.10): השם כבר למעלה במגירה (#mnav-user) - בתחתית רק "התנתקות" */
.rail-acc-name { display: none; }
.rail-account { justify-content: flex-start; }

/* כ3: סל המחזור מתוך ההיסטוריה בטלפון */
.m-hist-trash { display: block; margin: 6px auto 0; border: 0; background: transparent; color: var(--flag); font-size: 14px; text-decoration: underline; }
@media (max-width: 899px) {
  .lg-sync-banners { top: 8px; }
  .lg-sync-banner { font-size: 14px; }
  .lg-trash { padding-top: 48px; }
}

/* ═══ דף הנחיתה (17.10): הפס, הסרטונים והשאלון בטלפון ═══ */
.hm-signup-slot .btn-cta { min-height: 48px; }
.hm-videos-slot:empty { display: none; }
.hm-videos-slot { padding: 18px 16px 0; }
.hm-videos-slot .home-videos { margin: 0; }
.hm-videos-slot .home-h2 { font-size: 17px; margin-bottom: 10px; }
/* "ראו איך זה עובד" - גלילה אופקית (scroll-snap); /terms ו-/privacy ברוחב הטלפון */
.hv-row { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.hv-card { flex: 0 0 64%; scroll-snap-align: start; }
.hv-frame { max-height: none; }
body.legal-page { height: auto; }
.legal-doc { margin: 0; border: 0; border-radius: 0; padding: 20px 16px 24px; }
.legal-doc h1 { font-size: 22px; }
.legal-table table { font-size: 13px; }
.legal-table th, .legal-table td { padding: 6px 7px; }
/* תיקוני דף הנחיתה ג1 (17.10): אורח במומחה התקנון - בלי הפעולות של השיחה (היסטוריה, התקנון - סגורים), עם חזרה לדף הבית */
body[data-view="guest"] #mbar-actions { display: none !important; }
body[data-view="guest"]:not(.m-home) .mbar-guest-home { display: inline-flex; margin-inline-start: auto; min-height: 40px; }

/* עיצוב השאלון (ברק, 17.10): בטלפון - ברוחב מלא, הכפתורים תמיד בתחתית; הכלים בשני טורים מ-360px, מתחת - טור אחד */
.modal.survey { max-width: none; border-radius: 16px 16px 0 0; padding: 0; max-height: 96vh; max-height: 96dvh; }
.sv-head { padding: 14px 18px 16px; }
.sv-progress { margin-bottom: 14px; }
.sv-title h2 { font-size: 22px; }
.sv-body { padding: 16px 18px 14px; }
.sv-foot { padding: 10px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--rule); position: sticky; bottom: 0; }
.sv-card { padding: 10px; }
@media (max-width: 359px) { .sv-grid { grid-template-columns: minmax(0, 1fr); } }
/* ההרשמה ג (ברק 3, 18.10): ההודעה הקצרה בראש המסך - ברוחב המסך, מתחת לפס הסטטוס */
.lg-notice { top: calc(12px + env(safe-area-inset-top, 0px)); width: calc(100vw - 32px); }
/* ההרשמה ו (ברק 7, 18.10): בטלפון - "האזור האישי" מהתפריט (השם כבר למעלה במגירה), ו"התנתקות" לידו */
.rail-me { flex: 0 1 auto; margin: 0; padding: 8px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; }
.rail-me-label { font-size: 14px; color: #fff; text-decoration: none; font-weight: 600; }
.rail-account { gap: 14px; }
/* ההרשמה ח (ברק, 17.10 22:43): ההסבר בחלון הכלי - בולט גם בטלפון */
.tool-modal-desc { font-size: 17.5px; padding: 12px 14px; }
/* ההרשמה ט (ברק, 17.10 22:43): שלושת הקישורים בתחתית - אותו שטח לחיצה (44px), הטקסט באותו קו */
.home-foot a, .home-foot-contact { min-height: 44px; }

/* לילה 18.10, סעיף 15: בטלפון - שורת החשבון כמו קודם ("האזור האישי" והתנתקות זה לצד זה), בלי העיגול ובלי ⋯ */
.rail-avatar, .rail-more { display: none; }
.rail-acc-menu { display: contents; }
.rail-acc-menu a { display: none; }

/* סבב 22.10-ב, ב1: האגודל - יעד לחיצה של 44 (§1); בשורת הפעולות של הבועה ובפס של כרטיס המסמך */
.msg-fb button, .m-doc-actions .msg-fb button, .m-msg-actions .msg-fb button { width: 44px; height: 44px; padding: 11px; }
.msg-fb svg { width: 20px; height: 20px; }
.msg-fb-note-actions button { min-height: 44px; padding: 0 18px; }

/* הכנסת והמעקב, שלב 3 - הפרופיל בטלפון (knesset-handoff §4): מסך מלא, טור אחד, הציר מתחת לפרטים; האריחים בשני טורים */
.kp { width: 100%; inset: 0; box-shadow: none; }
.kp-body { padding: 16px 16px 28px; }
.kp-top2 { display: flex; flex-direction: column; gap: 20px; }
.kp-card { padding-inline-end: 0; }
.kp-tl-side { padding-inline-start: 0; border-inline-start: 0; }
.kp-tl-more { width: auto; margin-inline-start: 22px; }       /* בטור אחד - כמו בציר הרחב של המוקאפ */
.kp-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* הכנסת והמעקב, שלב 4 - "המעקב שלי" בטלפון (צילום 06): טור אחד - אחרי מה אני עוקב, ומתחת העדכונים */
.kt-page { padding: 16px 16px 32px; }
.kt-page.kc-page { padding-bottom: 72px; }      /* סבב 24.10-ג, ג2: רווח עד שורת התנאים */
.kt-grid { grid-template-columns: minmax(0, 1fr); }
.kt-top { gap: 6px; }
.kt-date { padding-inline-start: 2px; font-size: 12px; }
.mnav .kt-navn:not([data-n=""])::after { font-size: 12px; }
/* שם בתוך שורת טקסט (למה העדכון מופיע, שבב) - בלי ה-44px של הכפתורים (שורה 16); ה-× בגובה השבב */
.kt-top .kp-person, .kt-chip .kp-person { min-height: 0; }
.kt-x { min-height: 30px; width: 30px; height: 30px; }
/* סבב 24.10-ג, ב1: רכיב ניהול המעקב - × בשבב ו"ועוד N" כמו ה-× של הדף; שורת נושא - 44 */
.kf-x, .kf-more { min-height: 30px; }
.kf-x { width: 30px; height: 30px; }
.kf-topic { min-height: 44px; }

/* הכנסת והמעקב, שלב 5 - "רציפות" בטלפון (צילום 09): כרטיסים במקום טבלה; המסננים ברוחב מלא */
.kc-tbl-w { display: none; }
.kc-cards { display: flex; flex-direction: column; }
.kc-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.kc-card:first-child { border-top: 0; }
.kc-fbox, .kc-f { flex: 1 1 100%; }
.kc-f .kui-search-q { min-width: 0; width: 100%; font-size: 16px; }
.kc-who .kp-person { min-height: 0; }

/* סבב 24.10-ג, ב1, §6 טלפון (רכיב ניהול המעקב, knesset-follow-pick.js): האריחים זה מתחת לזה; כל קבוצה נפתחת בלחיצה (הראשונה פתוחה; בזמן סינון - כולן); החלון על כל המסך; השבבים בשורה אחת
   ומתחתם הכפתור ברוחב מלא */
.kf-tiles, .kf-groups { grid-template-columns: minmax(0, 1fr); }
.kf-groups { gap: 6px; }
.kf-topics-h { flex-direction: column; gap: 10px; }
.kf-filter { width: 100%; }
button.kf-group-h { cursor: pointer; padding: 10px 2px; margin: 0; }
.kf-chev { display: inline-block; color: var(--soft); transition: transform .15s; }
.kf-group.is-open .kf-chev { transform: rotate(180deg); }
.kf-group:not(.is-open) .kf-group-list { display: none; }
.kf-group.is-open .kf-group-list { padding-top: 6px; }
.kf-bar { flex-wrap: wrap; }
.kf-bar-chips { flex: 1 1 0; }
.kf-go { flex-basis: 100%; }
.hp-fm-bd { padding: 0; }
.hp-fm { max-width: none; height: 100%; height: 100dvh; border-radius: 0; }
.kf-modal .kf-head { padding: 14px 16px 10px; }
.kf-modal .kf-scroll { padding: 12px 12px 14px; }
.kf-modal .kf-bar { padding: 10px 12px; }
.kf-card { padding: 14px; }
@media (prefers-reduced-motion: reduce) { .kf-chev { transition: none; } }

/* ═══ סבב 8.11-א, 14 (ברק 7.11: "זורם איתך, תכניס"): דף הבית החדש בטלפון - כרטיס הרדאר והמליאה הדו-ממדית (plenum2d.js)
   מתחת לשדה השאלה ומעל "הכלים" (#hm-hp-slot; home-plenum.js מעביר לכאן את הכרטיסים). בלי three.js בטלפון.
   חלון הסיעה וחלון הממשלה - במסך מלא, נגללים, עם סגירה; כרטיסי הח"כים בעמודה אחת. ═══ */
.hm-hp-slot { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 0; }
.hm-hp-slot:empty { display: none; }
.hm-hp-slot .hp-follow { padding: 14px 14px 16px; gap: 10px; }
.hm-hp-slot .hp-card-head { flex-wrap: wrap; row-gap: 4px; }
.hm-hp-slot .hp-card-head h2 { font-size: 17px; }
.hm-hp-slot .hp-head-link { font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; }
.hm-hp-slot .hp-updates { grid-template-columns: 1fr; }
.hm-hp-slot .hp-cta { padding: 14px; gap: 12px; }
.hm-hp-slot .hp-plenum-card { border-radius: 12px; }
.hp-plenum-root #hdr { padding: 12px 12px 6px; gap: 6px; }
.hp-plenum-root #lbl-opp, .hp-plenum-root #lbl-coal { font-size: 14px; }
.hp-plenum-root #plan-wrap { padding: 0 8px 8px; }
/* המקרא - טור אחד (אופוזיציה, אחר כך קואליציה), כמו בהדמיה לטלפון */
.hp-plenum-root #strip { grid-template-columns: minmax(0, 1fr); }
.hp-plenum-root #col-opp { border-inline-end: 0; border-bottom: 1px solid #EEF2F8; }
.hp-plenum-root #col-coal { justify-content: flex-start; }
.hp-plenum-root .p3-chip { font-size: 13.5px; padding: 5px 9px; min-height: 32px; }
/* החלונות: מסך מלא (בלי שוליים), הגוף נגלל, "×" גדול לאגודל */
.hp-modal-bd { padding: 0; align-items: stretch; }
.hp-modal { border-radius: 0; max-height: none; height: 100%; height: 100dvh; }
.hp-fac-head, .hp-gov-head { padding: 12px 14px 10px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.hp-fac-titles h2, .hp-gov-t h2 { font-size: 19px; }
.hp-x { min-width: 44px; min-height: 44px; font-size: 26px; }
.hp-fac-body { padding: 12px 14px calc(20px + var(--safe-b, 0px)); -webkit-overflow-scrolling: touch; }
.hp-mem-grid { grid-template-columns: minmax(0, 1fr); }
/* שולחן הממשלה בטלפון (ברק 9.11: "נראה נורא ואיום"): במקום הטבלה הרחבה - רשימה (home-plenum.js, phoneCard): ראש הממשלה,
   סגניו, ואחריו כל שר לפי סדר הבכירות ומתחתיו סגניו, מוזחים. שורה לבנה, פס בצבע הסיעה בצד, טקסט כהה (ניגודיות מלאה) */
.hp-gov-body { padding: 10px 12px calc(20px + var(--safe-b, 0px)); overflow-x: hidden; }
.hp-gov-legend { gap: 5px; }
.hp-gchip { min-height: 32px; padding: 3px 8px; font-size: 12.5px; }
.hp-gov-inner { min-width: 0; align-items: stretch; }    /* הטבלה של המחשב, אם נשארה פתוחה ברגע המעבר לרוחב צר */
.hp-glist { display: flex; flex-direction: column; gap: 6px; }
.hp-gl { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 7px 10px; background: #fff; border: 1px solid var(--rule);
  border-inline-start: 5px solid var(--rule); border-radius: 10px; box-sizing: border-box; min-width: 0; transition: opacity .15s; }
.hp-gl .hp-gtext { line-height: 1.25; }
.hp-gl .hp-grole { font-size: 12px; font-weight: 700; color: var(--soft); }
.hp-gl b, .hp-gl b .kp-person { font-size: 15px; color: var(--ink); }
.hp-gl .hp-gnote { font-size: 11.5px; color: var(--faint); }
.hp-gl-av { width: 40px; height: 40px; font-size: 14px; box-shadow: none; }
.hp-gl-pm { min-height: 64px; background: var(--tint); }
.hp-gl-pm b, .hp-gl-pm b .kp-person { font-size: 16.5px; }
.hp-gl-pm .hp-gl-av { width: 46px; height: 46px; }
.hp-gl-dep { margin-inline-start: 22px; min-height: 46px; padding: 5px 10px; background: #f4f8fe; border-style: dashed; border-inline-start-style: solid; }
.hp-gl-dep b, .hp-gl-dep b .kp-person { font-size: 13.5px; }
.hp-gl-dep .hp-grole { font-size: 11px; }
.hp-gl-av-s { width: 30px; height: 30px; font-size: 11px; box-shadow: none; }
.hp-gl .kui-follow-icon { width: 36px; height: 36px; margin-inline-start: auto; }
.hp-gl .kui-follow-icon svg { width: 15px; height: 15px; }
.hp-gov-note { margin-top: 10px; }

/* סבב 8.11-א, 10: הקובץ הרשמי בשורה של מסך הח"כ - יעד מגע של 40px בטלפון */
.kp-doc { width: 40px; height: 40px; }

/* ═══ סבב 10.11-ב: "ועדות הכנסת" בטלפון - כרטיס אחד בשורה, הקבוצות מתקפלות (רק הראשונה פתוחה), השבוע - גלילה אופקית ═══ */
.mnav button[data-new-until]::after { content: "חדש"; margin-inline-start: 8px; font-size: 11px; font-weight: 800; line-height: 1;
  padding: 3px 8px; border-radius: 999px; background: var(--mint); color: var(--navy); }
.kcm-head h1, .kcm-hero h1 { font-size: 24px; }
.kcm-search { width: 100%; }
.kcm-days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.kcm-day { flex: 0 0 72%; scroll-snap-align: start; }
.kcm-week-sk { grid-template-columns: repeat(2, 1fr); }
.kcm-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.kcm-grp-h { padding: 6px 0; }
.kcm-grp-h::after { content: "⌄"; color: var(--navy); font-size: 18px; transition: transform .15s; }
.kcm-grp[open] > .kcm-grp-h::after { transform: rotate(180deg); }
.kcm-card-top { padding: 14px 16px 12px; }
.kcm-hero { padding: 18px 16px; }
.kcm-stats { width: 100%; justify-content: space-between; }
.kcm-stat { padding: 0 10px; }
.kcm-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.kcm-stat b { font-size: 22px; }
.kcm-stat:last-child b { font-size: 16px; }
.kcm-hero-f { width: 100%; }
.kcm-hero-f .kui-follow { width: 100%; justify-content: center; }
.kcm-tabs { overflow-x: auto; }
.kcm-tab { font-size: 16px; padding: 10px 12px; white-space: nowrap; }
.kcm-cols { grid-template-columns: minmax(0, 1fr); }
.kcm-box { padding: 16px; }
.kcm-up { padding: 12px; gap: 12px; }
.kcm-past-h { flex-wrap: wrap; gap: 4px 10px; }
.kcm-past-t { flex-basis: 100%; order: 3; }
.kcm-frow { flex-direction: column; gap: 6px; }
.kcm-frow-h { width: auto; }
.kcm-schips { flex-wrap: nowrap; overflow-x: auto; }
.kcm-schip { flex: none; height: 40px; font-size: 14px; }
