/* עונים לי · «משולב» (17.11.2026): העור של הישן על המבנה של ג׳.
   אחיה, 17.11: «הכי אהבתי את העיצוב הישן אבל רציתי שהוא גם יהיה פשוט וקל להבנה כמו העיצוב החדש», ובחר «משולב»
   מהדמו old-simple.onimli.pages.dev. כל ערך כאן בא מהדמו (src/p/d.css לעור, c.css למבנה, app.js לתנועה).
   השכבה האחרונה מעל השלד (shell.css). הצבעים, האותיות והציורים הם של המשפחה (family.css, ובלילה night.css), ולכן
   כמעט אין כאן טוקן של צבע. מכאן בא המבנה של ג׳: «מי מחכה לך» בראש הרשימה (hand.js), כרטיס לכל אדם, החיפוש
   למטה וסרגל לשוניות צף. והעור של הישן: נייר שמנת עם זוהר צהוב, Suez One לכותרות, Secular One לתוויות, Varela
   Round להסבר, פינות עלה, מקש צהוב בשיפוע, ציורי דיו שמצטיירים ועדשה צהובה שגולשת.
   צהוב שמסמן משהו (מונה, נקודה, תג) מקבל טבעת דיו של 1.5px: צהוב חשוף על נייר שמנת יוצא בניגודיות 1.2:1.
   ⛔ אותו קובץ בדיוק בשני הלוחות: maane site/assets/hand.css ו-wa-bot-saas public/assets/css/hand.css (גם hand.js).
   ממשק חדש משתמש במשתנים ולא בצבע קשיח (‎~/.claude/rules/onimli-design-hand.md).
   במצבי ניגודיות השכבה כולה זזה הצידה, גם הערימה: ‎.a11y-contrast של הנגישות ו-‎.hc «ניגודיות גבוהה» של הבוט (contrast.css,
   שחור על לבן). ‎:not(.a11y-contrast, .hc) שומר על אותו משקל של סלקטור כמו ‎:not(.a11y-contrast), כך שהסדר מול השאר לא זז. */

/* ═════════ הטוקנים של «משולב» (d.css) ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) {
  --hand-ink: #1b1a17;
  --hand-yellow: #ffe81a;
  /* פינות עלה: גדולות בשמאל-למעלה ובימין-למטה. border-radius פיזי, לא מתהפך בעברית */
  --hand-leaf: 30px 14px 30px 14px;
  --hand-leaf-key: 26px 11px 26px 11px;
  --hand-leaf-lens: 14px 6px 14px 6px;
  --hand-key: linear-gradient(180deg, #ffee52 0%, #ffe81a 55%, #f7dc00 100%);
  --hand-key-lift: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(120, 95, 0, 0.18), 0 10px 20px -10px rgba(170, 140, 0, 0.65);
  --hand-rim: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --hand-lift: 0 0 0 0.5px rgba(27, 26, 23, 0.08), 0 1px 2px rgba(27, 26, 23, 0.04), 0 10px 24px -14px rgba(60, 48, 10, 0.24);
  --hand-fill: rgba(27, 26, 23, 0.06);
  --hand-dot: rgba(27, 26, 23, 0.42);
  --hand-ring: rgba(27, 26, 23, 0.18);
  --hand-ck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1A17' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --hand-glass: rgba(255, 253, 247, 0.86);
  --hand-glass-strong: rgba(255, 253, 247, 0.95);
  --hand-glass-line: rgba(27, 26, 23, 0.1);
  --hand-mark: #ffe81a;                                         /* הסימון מתחת למספר בערימה */
  --hand-glow: radial-gradient(120% 55% at 100% 0%, rgba(255, 232, 26, 0.2), transparent 62%), radial-gradient(110% 50% at 0% 100%, rgba(246, 240, 223, 0.95), transparent 60%);
  --hand-press: cubic-bezier(0.3, 1.5, 0.5, 1);
  background-color: var(--page);
}
@media (prefers-color-scheme: dark) {
  html[data-sys]:not(.a11y-contrast, .hc) {
    --hand-key-lift: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(120, 95, 0, 0.25), 0 10px 22px -10px rgba(0, 0, 0, 0.7);
    --hand-rim: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --hand-lift: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 12px 28px -14px rgba(0, 0, 0, 0.75);
    --hand-fill: rgba(255, 255, 255, 0.07);
    --hand-dot: rgba(246, 243, 236, 0.38);
    --hand-ring: rgba(255, 255, 255, 0.16);
    --hand-glass: rgba(44, 44, 48, 0.84);
    --hand-glass-strong: rgba(44, 44, 48, 0.95);
    --hand-glass-line: rgba(255, 255, 255, 0.1);
    --hand-mark: rgba(255, 232, 26, 0.5);
    --hand-glow: radial-gradient(120% 55% at 100% 0%, rgba(255, 232, 26, 0.07), transparent 62%);
  }
}

/* ═════════ הנייר: זוהר צהוב בפינה (הטלפון) ═════════ */
@media (max-width: 1099.98px) {
  html[data-sys]:not(.a11y-contrast, .hc) body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--hand-glow);
  }
  html[data-sys]:not(.a11y-contrast, .hc) body { background: transparent !important; }
}

/* ═════════ אותיות: Suez לכותרות, Secular לתוויות ולמקשים, Varela להסבר ═════════ */
html[data-sys][data-sys]:not(.a11y-contrast, .hc) .room__title { font-family: var(--f-display) !important; font-weight: 400 !important; letter-spacing: 0; }
@media (max-width: 1099.98px) {
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) .room__title { font-size: 36px !important; line-height: 44px !important; }
}
html[data-sys]:not(.a11y-contrast, .hc) :is(.qline__name, .callrow__who) { font-family: var(--f-ui) !important; font-weight: 400 !important; }

/* ═════════ מקש ראשי: צהוב בשיפוע, פינת עלה ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) :is(.btn--primary, .btn.is-primary) {
  --btn-bg: var(--hand-yellow);
  color: var(--hand-ink) !important; background: var(--hand-key) !important; border-color: transparent !important;
  border-radius: var(--hand-leaf-key) !important; box-shadow: var(--hand-key-lift) !important;
  font-family: var(--f-ui); font-weight: 400;
  transition: transform 0.5s var(--spring, var(--hand-press)), filter 0.2s;
}
html[data-sys]:not(.a11y-contrast, .hc) :is(.btn--primary, .btn.is-primary):hover { filter: brightness(1.03); }
html[data-sys]:not(.a11y-contrast, .hc) :is(.btn--primary, .btn.is-primary):active { transform: scale(0.95); transition-duration: 0.1s; }

/* ═════════ הרשימות: כרטיס לכל אדם ═════════ */
/* המגש של השלד יורד: השורות עצמן הן הכרטיסים */
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#room-chats .queue__box, #calls-list:has(.callday)) {
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
/* בטלפון הצל של הכרטיסים לא נחתך. במחשב רשימת הצ'אטים נגללת בתוך החלון שלה (תקלת הגלילה של 17.11, shell.css), עם מקום לטבעת של השורה הנבחרת */
@media (max-width: 1099.98px) {
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#room-chats .queue__box, #calls-list:has(.callday)) { overflow: visible; }
}
@media (min-width: 1100px) {
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) #room-chats .queue__box { overflow-y: auto; padding: 4px; }
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qday, #calls-list .callday__head) {
  min-height: 0 !important; padding: 14px 8px 10px !important; background: none !important; border: 0 !important;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qday__label, #calls-list .callday__label) {
  color: var(--ink-soft); font: 400 16px/1.2 var(--f-ui) !important;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #calls-list .callday + .callday { border-top: 0 !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #calls-list .rowlist { display: flex !important; flex-direction: column; gap: 10px !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #qlines { display: flex; flex-direction: column; gap: 10px; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow, #calls-list .callline) {
  position: relative; padding-inline-end: 12px !important;
  background: var(--sheet) !important; border: 0 !important; border-radius: 22px !important;
  box-shadow: var(--hand-rim), var(--hand-lift) !important;
  transition: transform 0.5s var(--hand-press), box-shadow 0.3s;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow + .qrow, #calls-list .callline + .callline) { border-top: 0 !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow, #calls-list .callline):hover { background: var(--sheet) !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow, #calls-list .callline):active:not(:has(.btn:active)) { transform: scale(0.975); transition-duration: 0.12s; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow:has(.qline[aria-current="true"]), #calls-list .callline:has([aria-current="true"], .is-open, .is-on)) {
  background: var(--sheet) !important; box-shadow: 0 0 0 2px var(--ink), var(--hand-lift) !important;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #qlines .qline { min-height: 80px; padding: 14px 16px !important; grid-template-columns: 48px minmax(0, 1fr) !important; column-gap: 12px !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #qlines .qline__av { width: 48px !important; height: 48px !important; font-size: 17px !important; box-shadow: none !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #qlines .qline__name { font-size: 17px !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #qlines .qline__ask { font-size: 15.5px !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #calls-list .callrow { padding: 14px 16px !important; gap: 4px !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #calls-list .callrow__who { font-size: 17px !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #calls-list .callrow__what { font-size: 15.5px !important; }
/* «חזרתי» של השורה: מילה שקטה בתוך הכרטיס */
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow, #calls-list .callline) > .btn {
  min-height: 36px !important; height: 36px; padding: 0 12px !important; border-radius: 12px !important;
  color: var(--ink-soft) !important; background: none !important; border: 0 !important; box-shadow: none !important;
  font: 400 15px/1 var(--f-ui) !important; transition: background-color 0.2s;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow, #calls-list .callline) > .btn:active { background: var(--hand-fill) !important; }
/* «חזרתי» בכרטיס של «היום» (simple.js #sd-done): אותה מילה שקטה כמו בערימה (.hand-quiet, בדמו .quiet), ולא מקש עלה
   עם מסגרת ורקע (glass.css .btn--ghost) — 17.11, סשן העיצוב */
html[data-sys][data-sys]:not(.a11y-contrast, .hc) .sd-next > .sd-skip {
  min-height: 0 !important; height: 56px; margin-top: 2px; padding: 0 16px !important; border-radius: 18px !important;
  color: var(--ink-soft) !important; background: none !important; border: 0 !important; box-shadow: none !important;
  font: 400 16.5px/1 var(--f-ui) !important; transition: background-color 0.2s;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) .sd-next > .sd-skip:active { background: var(--hand-fill) !important; transform: none; }

/* מצב הרשימה: מסילה שקטה, החלק הנבחר על נייר. המונה צהוב עם טבעת דיו */
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(.qtabs, .callchips):not([hidden]) {
  padding: 3px !important; background: var(--hand-fill) !important; box-shadow: none !important; border: 0 !important; border-radius: 13px !important;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(.qtabs, .callchips) .chip:not([hidden]) {
  min-height: 32px !important; height: 32px; border: 0 !important; border-radius: 10px !important; color: var(--ink-soft) !important;
  background: none !important; box-shadow: none !important; font: 400 14.5px/1 var(--f-ui) !important;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(.qtabs, .callchips) .chip[aria-pressed="true"] {
  color: var(--ink) !important; background: var(--sheet) !important; box-shadow: var(--hand-rim), 0 1px 3px rgba(27, 26, 23, 0.14) !important;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(.qtabs, .callchips) .chip :is(.qtab__n, .callchips__n) {
  color: var(--hand-ink) !important; background: var(--hand-yellow) !important; box-shadow: 0 0 0 1.5px var(--hand-ink) !important;
  font: 400 12px/1 var(--f-ui) !important;
}

/* המונה בלשונית: צהוב עם טבעת דיו. הנקודה מתחת ללשונית יורדת: העדשה הצהובה כבר מראה איפה אתם */
html[data-sys][data-sys]:not(.a11y-contrast, .hc) #roomnav .roomtabs__n { color: var(--hand-ink) !important; background: var(--hand-yellow) !important; box-shadow: 0 0 0 1.5px var(--hand-ink) !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) .sd-tabdot { display: none !important; }

/* «היום»: כל שורה כרטיס, בלי מגש ובלי מסגרת סביבן */
/* minmax(0, 1fr): the «why» line under a name never wraps, and Varela's wider letters made its min-content push the card
   4px past a 360 screen (solid_scroll.js, 17.11) */
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(.sd-plain, .sd-chats) {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(.sd-plain, .sd-chats) > .sd-chat {
  padding: 12px 14px !important; background: var(--sheet) !important; border: 0 !important; border-radius: 22px !important;
  box-shadow: var(--hand-rim), var(--hand-lift) !important;
}
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(.sd-plain, .sd-chats) > .sd-chat:hover { background: var(--sheet) !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) .sd-chats > .sd-more { border-top: 0 !important; }
html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(.sd-plain, .sd-chats) > .sd-chat .sd-ask { margin: 0; padding: 0; background: none; border-radius: 0; }

/* חיפוש: זוהר צהוב כשכותבים */
html[data-sys]:not(.a11y-contrast, .hc) input[type="search"]:focus { outline: none; box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px rgba(255, 232, 26, 0.55) !important; }

/* ═════════ «מי מחכה לך» (hand.js): הערימה בראש השיחות והצ'אטים, בטלפון ═════════ */
.hand-deck, .hand-alldone, .hand-lens { display: none; }
@media (max-width: 1099.98px) {
  html[data-sys]:not(.a11y-contrast, .hc) .hand-deck:not([hidden]) { display: block; margin: 2px -16px 26px; }
  html[data-sys]:not(.a11y-contrast, .hc) .hand-alldone:not([hidden]) { display: flex; }
  html[data-sys]:not(.a11y-contrast, .hc) :is(.hand-in-deck, .hand-empty) { display: none !important; }
}
/* «2 מחכים שתחזרו»: סימון צהוב מתחת למספר */
.hand-deck__h { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 0 22px 14px; color: var(--ink); font: 400 23px/1.2 var(--f-display); }
.hand-deck__h em {
  display: inline-block; padding: 0 3px; color: var(--ink); font: 400 32px/1 var(--f-display); font-style: normal;
  background: linear-gradient(transparent 56%, var(--hand-mark) 56%, var(--hand-mark) 90%, transparent 90%);
}
.hand-deck__s {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 20px;
  scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.hand-deck__s::-webkit-scrollbar { display: none; }
.hand-card {
  position: relative; flex: 0 0 calc(100% - 44px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 18px 18px 14px; border-radius: var(--hand-leaf); color: var(--ink); background: var(--sheet);
  box-shadow: var(--hand-rim), var(--hand-lift); cursor: pointer; transition: transform 0.5s var(--hand-press);
}
.hand-deck__s > .hand-card:only-child { flex-basis: 100%; }
.hand-card:active:not(:has(.hand-key:active, .hand-quiet:active)) { transform: scale(0.975); transition-duration: 0.12s; }
.hand-card__h { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hand-card__h > span:not(.hand-av, .hand-obj) { flex: 1; min-width: 0; }
.hand-card__h b { display: block; overflow: hidden; font: 400 24px/1.2 var(--f-display); white-space: nowrap; text-overflow: ellipsis; }
.hand-card__h small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; color: var(--ink-soft); font: 400 14.5px/1.3 var(--f-body); }
.hand-card__h small .fact-chip { min-height: 22px; padding: 0 8px; font: 400 13px/1 var(--f-ui); }
.hand-card p {
  display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  color: var(--ink); font: 400 16.5px/1.5 var(--f-body);
}
.hand-card__a { display: flex; align-items: center; gap: 4px; }
/* מקש ראשי: צהוב בשיפוע, פינת עלה. הפעולה המשנית: מילה שקטה */
.hand-key {
  display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 22px;
  color: var(--hand-ink); background: var(--hand-key); border: 0; border-radius: var(--hand-leaf-key); box-shadow: var(--hand-key-lift);
  font: 400 18px/1 var(--f-ui); text-decoration: none; cursor: pointer;
  transition: transform 0.5s var(--spring, var(--hand-press));
}
.hand-key:active { transform: scale(0.95); transition-duration: 0.1s; }
.hand-key svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hand-quiet {
  flex: none; height: 56px; padding: 0 16px; color: var(--ink-soft); background: none; border: 0; border-radius: 18px;
  font: 400 16.5px/1 var(--f-ui); cursor: pointer; transition: background-color 0.2s;
}
.hand-quiet:active { background: var(--hand-fill); }
/* «מצ'אט לשיחה», גרסה א׳ (20.11.2026): מי שהמזכירה של עונים לי בשיחות תתקשר אליו. שורה שלה במקום מקש החיוג, ו«אתקשר בעצמי»
   כמילה השקטה מתחתיה (כמו בדמו chat-to-call, .her ו-.dc-a.mine) */
.hand-her {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; border-radius: 18px;
  color: var(--ink); background: var(--hand-fill); font: 400 16px/1.35 var(--f-ui);
}
.hand-her svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hand-her span { flex: 1; min-width: 0; }
.hand-dots { display: flex; justify-content: center; gap: 6px; margin-top: -8px; }
.hand-dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: var(--hand-dot); cursor: pointer;
  transition: width 0.3s cubic-bezier(0.3, 0.7, 0.4, 1), background-color 0.3s;
}
.hand-dots button.is-on { width: 22px; background: var(--hand-yellow); box-shadow: 0 0 0 1.5px var(--ink); }
/* בלי ציור (ציורי הדיו לא נטענו): הפנים של השורה */
.hand-av {
  position: relative; display: grid; flex: none; width: 48px; height: 48px; place-items: center; overflow: hidden;
  color: var(--ink); background: var(--ivory); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(27, 26, 23, 0.06); font: 400 19px/1 var(--f-ui);
}
.hand-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hand-av svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═════════ ציורי דיו: מצטיירים, ואז החפץ עושה את הרגע שלו ═════════ */
/* display:block, so the image's 100% height resolves against the box (in a grid the auto row sized itself to the image) */
.hand-obj { display: block; flex: none; width: 64px; height: 64px; }
.hand-obj img { display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 85%; }
.hand-obj.go[data-m="ring"] img { animation: hand-o-ring 1s var(--md, 1.25s) both; }
.hand-obj.go[data-m="pop"] img { animation: hand-o-pop 0.7s var(--md, 1.25s) both; }
.hand-obj.go[data-m="float"] img { animation: hand-o-float 1.6s var(--md, 1.25s) both; }
.hand-obj.go[data-m="sway"] img { animation: hand-o-sway 1.1s var(--md, 1.25s) both; }
.hand-obj.go[data-m="write"] img { animation: hand-o-write 0.9s var(--md, 1.25s) both; }
@keyframes hand-o-ring { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(-10deg); } 26% { transform: rotate(9deg); } 40% { transform: rotate(-7deg); } 54% { transform: rotate(5deg); } 68% { transform: rotate(-3deg); } 82% { transform: rotate(1deg); } }
@keyframes hand-o-pop { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.14); } 62% { transform: scale(0.96); } }
@keyframes hand-o-float { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-7px) rotate(-2deg); } }
@keyframes hand-o-sway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(7deg); } 65% { transform: rotate(-5deg); } }
@keyframes hand-o-write { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 1px) rotate(-4deg); } 50% { transform: translate(3px, 0) rotate(3deg); } 75% { transform: translate(-1px, 1px) rotate(-1deg); } }

/* ═════════ «✓ חזרתי»: חותמת צהובה, הכרטיס מפנה מקום ═════════ */
.hand-card.is-done > :not(.hand-stamp) { opacity: 0.3; transition: opacity 0.22s; }
.hand-stamp { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.hand-stamp i {
  display: grid; width: 84px; height: 84px; place-items: center; border-radius: 50%; background: var(--hand-yellow);
  box-shadow: 0 0 0 3px var(--hand-ink), 0 14px 26px -10px rgba(120, 95, 0, 0.6);
  animation: hand-stpop 0.46s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
.hand-stamp svg { width: 48px; height: 48px; }
.hand-stamp path { fill: none; stroke: var(--hand-ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: hand-stdraw 0.3s 0.16s ease-out forwards; }
@keyframes hand-stpop { 0% { transform: scale(0.3) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.08) rotate(2deg); opacity: 1; } 100% { transform: none; } }
@keyframes hand-stdraw { to { stroke-dashoffset: 0; } }
/* אין מי שמחכה: הירח */
.hand-alldone { align-items: center; gap: 14px; margin: 0 16px; padding: 16px 18px; border-radius: var(--hand-leaf); background: var(--sheet); box-shadow: var(--hand-rim), var(--hand-lift); }
.hand-alldone b { display: block; color: var(--ink); font: 400 21px/1.2 var(--f-display); }
.hand-alldone small { display: block; margin-top: 2px; color: var(--ink-soft); font: 400 14.5px/1.3 var(--f-body); }

@media (prefers-reduced-motion: reduce) {
  .hand-card, .hand-key, .hand-dots button, html[data-sys] .btn, html[data-sys] .sx-sw, html[data-sys] .sx-sw::before, html[data-sys] .sx-sw::after { transition: none !important; }
  .hand-obj img, .hand-stamp i, .hand-stamp path { animation: none !important; }
  .hand-stamp path { stroke-dashoffset: 0; }
}

/* ═════════ המתג (d.css ‎.sw): הצהוב מתפשט מהכפתור, והכפתור לבן עם ✓ בדיו ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) .sx-sw { background: var(--hand-fill) !important; border: 0 !important; box-shadow: inset 0 0 0 1.5px var(--hand-ring); transition: box-shadow 0.3s; }
html[data-sys]:not(.a11y-contrast, .hc) [aria-checked="true"] > .sx-sw { box-shadow: inset 0 0 0 1.5px rgba(27, 26, 23, 0.3); }
html[data-sys]:not(.a11y-contrast, .hc) .sx-sw::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--hand-key);
  clip-path: circle(0% at 78% 50%); transition: clip-path 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
html[data-sys]:not(.a11y-contrast, .hc) [aria-checked="true"] > .sx-sw::before { clip-path: circle(150% at 22% 50%); }
html[data-sys]:not(.a11y-contrast, .hc) .sx-sw::after {
  z-index: 1; background: #fffdf7 center / 0 no-repeat !important; box-shadow: 0 2px 6px rgba(27, 26, 23, 0.24), 0 0 0 0.5px rgba(27, 26, 23, 0.08);
  transition: inset-inline-start 0.55s var(--spring, cubic-bezier(0.3, 1.4, 0.5, 1)), width 0.18s ease, background-size 0.26s ease-out 0.18s !important;
}
html[data-sys]:not(.a11y-contrast, .hc) [aria-checked="true"] > .sx-sw::after { background-image: var(--hand-ck) !important; background-size: 12px !important; }
/* ספרות של Varela רחבות: בשדה שעה בלי אייקון השעון של הדפדפן */
html[data-sys]:not(.a11y-contrast, .hc) input[type="time"]::-webkit-calendar-picker-indicator { display: none; }

/* ═════════ הטלפון: סרגל לשוניות צף מזכוכית, עדשת עלה צהובה, חיפוש בהישג האגודל ═════════ */
@media (max-width: 1099.98px) {
  html[data-sys][data-sys-app="bot"]:not(.a11y-contrast, .hc) #roomnav { background: none !important; border: 0 !important; pointer-events: none; }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#roomnav > .roomtabs, #tabbar) {
    pointer-events: auto;
    margin: 0 16px calc(env(safe-area-inset-bottom) + 10px) !important; padding: 4px !important;
    background: var(--hand-glass) !important; border: 0 !important; border-radius: 33px !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.6) !important; backdrop-filter: blur(20px) saturate(1.6) !important;
    box-shadow: 0 0 0 0.5px var(--hand-glass-line), 0 14px 30px -12px rgba(60, 48, 10, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) #tabbar { inset: auto 0 0 0 !important; }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#roomnav > .roomtabs a, #tabbar > button) {
    position: relative; z-index: 1; height: 58px !important; color: var(--ink-soft) !important; background: none !important; border-radius: 29px !important;
    font: 400 11.5px/1.15 var(--f-ui) !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#roomnav > .roomtabs a[aria-current], #tabbar > button[aria-current="page"]) { color: var(--ink) !important; background: none !important; box-shadow: none !important; }
  /* the icon sits on the lens, so it stays ink at night too */
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#roomnav > .roomtabs a[aria-current], #tabbar > button[aria-current="page"]) :is(.roomtabs__ic, .tabbar__ic) {
    color: var(--hand-ink) !important; background: none !important; border: 0 !important; box-shadow: none !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#roomnav > .roomtabs a, #tabbar > button) :is(.roomtabs__ic, .tabbar__ic) {
    background: none !important; border: 0 !important; box-shadow: none !important; transform: none !important;
  }
  /* העדשה (hand.js): עלה צהוב מאחורי הסמל של הלשונית הנבחרת, גולש ונמתח בדרך */
  html[data-sys]:not(.a11y-contrast, .hc) #roomnav > .roomtabs { position: relative; }
  html[data-sys]:not(.a11y-contrast, .hc) .hand-lens {
    display: block; position: absolute; z-index: 0; top: 0; left: 0; width: 58px; height: 32px; pointer-events: none;
    border-radius: var(--hand-leaf-lens); background: var(--hand-key); box-shadow: inset 0 -1.5px 0 rgba(120, 95, 0, 0.2);
  }
  /* הרשימה האחרונה לא נבלעת מתחת ללוח הצף */
  html[data-sys]:not(.a11y-contrast, .hc) :is(.page-app .rooms, #panel) { padding-bottom: 28px; }

  /* החיפוש בצ'אטים ובלקוחות: למטה, מעל סרגל הלשוניות */
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#room-chats .queue__search, #room-customers .cust-search) {
    position: fixed !important; z-index: 44; inset-inline: 16px; bottom: calc(env(safe-area-inset-bottom) + 90px);
    max-width: none !important; margin: 0 !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#room-chats .queue__search, #room-customers .cust-search) input {
    width: 100% !important; height: 50px !important; min-height: 0 !important; padding-inline: 20px !important;
    color: var(--ink) !important; border: 0 !important; border-radius: 25px !important;
    background: var(--hand-glass-strong) !important;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: 0 0 0 1px var(--hand-glass-line), var(--hand-lift) !important; font: 400 16px/1 var(--f-body) !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#room-chats .queue__search, #room-customers .cust-search) input:focus {
    box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px rgba(255, 232, 26, 0.55), var(--hand-lift) !important;
  }
  html[data-sys]:not(.a11y-contrast, .hc) :is(#room-chats, #room-customers) { padding-bottom: 84px; }
  /* באפליקציית האייפון סרגל הלשוניות של אפל (html.ios-native-tabs, הסרגל של הדף מוסתר): החיפוש יושב ישר מעליו */
  html.ios-native-tabs[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#room-chats .queue__search, #room-customers .cust-search) { bottom: calc(env(safe-area-inset-bottom) + 12px); }

  /* החיפוש בהגדרות: גם הוא למטה, בהישג האגודל (20.11.2026, רעיון 2 של «עמוק»). התוצאות באות בראש העמוד, במקום הרשימה.
     בעונים לי בשיחות מעל סרגל הלשוניות; בבוט שכבת ההגדרות מכסה את הסרגל, אז ממש בתחתית */
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#sd-root > .sd-find, #sd .sd-page[data-page="root"] .sd-find) {
    position: fixed !important; z-index: 44; inset-inline: 16px; bottom: calc(env(safe-area-inset-bottom) + 90px); margin: 0 !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) #sd .sd-page[data-page="root"] .sd-find,
  html.ios-native-tabs[data-sys][data-sys]:not(.a11y-contrast, .hc) #sd-root > .sd-find { bottom: calc(env(safe-area-inset-bottom) + 12px); }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#sd-root > .sd-find, #sd .sd-page[data-page="root"] .sd-find) input {
    height: 52px !important; border-radius: 26px !important; background: var(--hand-glass-strong) !important;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--hand-glass-line), var(--hand-lift) !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#sd-root > .sd-find, #sd .sd-page[data-page="root"] .sd-find) input:focus {
    box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 6px rgba(255, 232, 26, 0.55), var(--hand-lift) !important;
  }
  /* השורה האחרונה לא נבלעת מתחתיו */
  html[data-sys]:not(.a11y-contrast, .hc) #sd-root { padding-bottom: 84px; }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) #sd .sd-page[data-page="root"] { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
  /* אנימציית כניסה שנשארת תלויה בסופה הופכת את האב למסגרת של השדה הצף, ו-WebKit מצייר זכוכית בתוכה דהויה
     (הלקח של panel-in, 17.11): הכניסה של שכבת ההגדרות בבוט והחזרה לעמוד הראשי בשיחות נגמרות בלי להיתלות */
  html[data-sys]:not(.a11y-contrast, .hc) :is(.page-app #sd, #sd-root.sd-back-in) { animation-fill-mode: backwards !important; }
}

/* ═════════ המחשב: נייר שמנת עם זוהר, והגיליון מונח עליו ═════════ */
@media (min-width: 1100px) {
  html[data-sys]:not(.a11y-contrast, .hc):has(#roomnav:not([hidden], [hidden] *)) { background: radial-gradient(60% 50% at 100% 0%, rgba(255, 232, 26, 0.22), transparent 60%) fixed, var(--ivory); }
  html[data-sys]:not(.a11y-contrast, .hc):has(#roomnav:not([hidden], [hidden] *)) body { background: none !important; }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) #roomnav:not([hidden]) { background: none !important; border: 0 !important; }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) #roomnav :is(.roomtabs a[aria-current], .tabbar > button[aria-current="page"], .sd-icon[aria-current="page"]) {
    --ink: #1b1a17; --ink-soft: #57534a;
    color: var(--hand-ink) !important; background: var(--hand-yellow) !important; box-shadow: none !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) #roomnav :is(.roomtabs a[aria-current], .tabbar > button[aria-current="page"]) :is(.roomtabs__ic, .tabbar__ic) { color: var(--hand-ink) !important; background: none !important; }

  /* הגיליון: מונח על הנייר, 8 פיקסלים מהקצוות, בפינות עגולות */
  html[data-sys][data-sys][data-sys-app="bot"]:not(.a11y-contrast, .hc):has(#roomnav:not([hidden])) .page-app .app .desk,
  html[data-sys][data-sys][data-sys-app="maane"]:not(.a11y-contrast, .hc) #panel:has(> #roomnav:not([hidden])) {
    min-height: calc(100dvh - 16px);
    margin: 8px !important; margin-inline-start: var(--sys-side) !important;
    padding-inline: 40px !important;
    background: var(--page); border-radius: 16px; box-shadow: 0 0 0 1px rgba(27, 26, 23, 0.08), 0 18px 40px -24px rgba(60, 48, 10, 0.35);
  }
  html[data-sys][data-sys][data-sys-app="bot"]:not(.a11y-contrast, .hc):has(#roomnav:not([hidden])) .page-app .app .appfoot__in {
    margin-inline-start: var(--sys-side) !important; padding-inline: 40px !important;
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc):has(#roomnav:not([hidden])) .appfoot { background: none; }

  /* במחשב הרשימה ליד החלון הפתוח: כרטיסים צפופים יותר */
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines, #calls-list .rowlist) { gap: 8px !important; }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow, #calls-list .callline, .sd-plain > .sd-chat, .sd-chats > .sd-chat) { border-radius: 16px !important; }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow, #calls-list .callline):hover { transform: translateY(-1px); }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) #qlines .qline { min-height: 0; padding: 12px 14px !important; }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#room-chats .queue__pane, #call-pane) {
    background: var(--sheet) !important; border: 0 !important; border-radius: 18px !important; box-shadow: var(--hand-rim), var(--hand-lift) !important;
  }
}
@media (min-width: 1100px) and (prefers-color-scheme: dark) {
  html[data-sys]:not(.a11y-contrast, .hc):has(#roomnav:not([hidden], [hidden] *)) { background: radial-gradient(60% 50% at 100% 0%, rgba(255, 232, 26, 0.06), transparent 60%) fixed, #19191b; }
  html[data-sys][data-sys][data-sys-app="bot"]:not(.a11y-contrast, .hc):has(#roomnav:not([hidden])) .page-app .app .desk,
  html[data-sys][data-sys][data-sys-app="maane"]:not(.a11y-contrast, .hc) #panel:has(> #roomnav:not([hidden])) {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  }
  html[data-sys][data-sys]:not(.a11y-contrast, .hc) :is(#qlines .qrow:has(.qline[aria-current="true"]), #calls-list .callline:has([aria-current="true"], .is-open, .is-on)) {
    box-shadow: 0 0 0 2px var(--hand-yellow), var(--hand-lift) !important;
  }
}
