/* עונים לי · «פרט ופרט», חבילות א׳ (23.11.2026) ו-ב׳ (24.11.2026): המראה של הפרטים ש-details.js מוסיף, לפי הדמו שאחיה אישר
   (~/maintenance/2026-11-23/app-details/src/details.css). ⛔ אותו קובץ בדיוק בשני הלוחות: maane site/assets/details.css
   ו-wa-bot-saas public/assets/css/details.css. נטען מיד אחרי hand.css ונשען על המשתנים שלו (‎--ink, ‎--sheet, ‎--hand-*, ‎--spring).
   אין כאן צבע קשיח. כמו ב-hand.css, כל השכבה זזה הצידה במצבי ניגודיות (‎.a11y-contrast של הנגישות, ‎.hc של הבוט), ותנועה
   כבויה תחת prefers-reduced-motion ו-‎.a11y-no-motion (בסוף הקובץ). אנימציית כניסה היא backwards, לא both או forwards
   (~/.claude/rules/onimli-design-hand.md, «לקחים מהדמו»). */

.dt-defs { position: absolute; width: 0; height: 0; }
@keyframes dt-draw { to { stroke-dashoffset: 0; } }
@keyframes dt-in { from { opacity: 0; } }

/* ═════════ 6 · טעינה בעיפרון ═════════ */
.dt-sk { display: none; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-loading > .dt-sk { display: block; list-style: none; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-loading > :not(.dt-sk) { display: none !important; }
.dt-sk p { margin: 0 6px 12px; color: var(--ink-soft); font: 400 16px/1.3 var(--f-ui); }
.dt-sk__card { display: none; height: 214px; margin-bottom: 16px; }
.dt-sk__row { height: 72px; margin-bottom: 10px; }
@media (max-width: 1099.98px) { .dt-sk__card { display: block; } }
.dt-sk svg { display: block; width: 100%; height: 100%; overflow: visible; filter: url(#dt-pencil); }
.dt-sk path {
  fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1;
  animation: dt-draw 0.5s calc(var(--d, 0s) + var(--r, 0) * 0.22s) ease-out forwards;
}
/* …ואז המילוי בדיו */
html[data-sys]:not(.a11y-contrast, .hc) .dt-inked > * { animation: dt-in 0.5s backwards; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-inked > :nth-child(2) { animation-delay: 0.08s; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-inked > :nth-child(n + 3) { animation-delay: 0.16s; }

/* ═════════ 11 · חתימה בסוף הרשימה ═════════ */
.dt-end { display: none; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-end { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 0 6px; color: var(--ink-soft); }
.dt-end svg { width: 150px; height: 28px; overflow: visible; }
.dt-end path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset 1s ease-out; }
.dt-end b { font: 400 15px/1.3 var(--f-ui); opacity: 0; transition: opacity 0.4s 0.7s; }
.dt-end.on path { stroke-dashoffset: 0; }
.dt-end.on b { opacity: 1; }

/* ═════════ 12 · מקש שמתרחב (בכרטיס הערימה של hand.js) ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) .hand-card__a > :is(.hand-key, .hand-quiet) {
  transition: flex-grow 0.34s var(--spring, ease-out), border-radius 0.34s var(--spring, ease-out), padding 0.34s var(--spring, ease-out), background-color 0.2s;
}
html[data-sys]:not(.a11y-contrast, .hc) .hand-card__a > .dt-dn { flex-grow: 1.8; border-radius: 37px; transform: none; }
html[data-sys]:not(.a11y-contrast, .hc) .hand-card__a > .hand-quiet.dt-dn { background: var(--hand-fill); }
/* המקש הראשי כבר ממלא את השורה: המילה השקטה שלידו מפנה לו מקום */
html[data-sys]:not(.a11y-contrast, .hc) .hand-card__a:has(> .hand-key.dt-dn) > .hand-quiet { padding-inline: 6px; }

/* ═════════ 14 · שורה כבויה בהגדרות: הציור מאפיר וקו דיו חוצה אותו. רק שורה שיש לה גם ציור וגם מתג ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) .sd-row > .sd-ic:has(~ .sd-sw[role="switch"]) { position: relative; }
html[data-sys]:not(.a11y-contrast, .hc) .sd-row > .sd-ic:has(~ .sd-sw[role="switch"]) img { transition: filter 0.3s, opacity 0.3s; }
html[data-sys]:not(.a11y-contrast, .hc) .sd-row > .sd-ic:has(~ .sd-sw[role="switch"])::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 3px; margin: -1.5px 0 0 -60%; border-radius: 2px;
  background: var(--ink); box-shadow: 0 0 0 2px var(--sheet); pointer-events: none;
  transform: rotate(-45deg) scaleX(0); transition: transform 0.35s ease-out;
}
html[data-sys]:not(.a11y-contrast, .hc) .sd-row > .sd-ic:has(~ .sd-sw[aria-checked="false"]) img { filter: grayscale(1); opacity: 0.45; }
html[data-sys]:not(.a11y-contrast, .hc) .sd-row > .sd-ic:has(~ .sd-sw[aria-checked="false"])::after { transform: rotate(-45deg) scaleX(1); }
html[data-sys]:not(.a11y-contrast, .hc) .sd-row:has(> .sd-ic):has(> .sd-sw[aria-checked="false"]) .sd-t b { color: var(--ink-soft); }

/* ═════════ 18 · העט כותב, במקום שלוש הנקודות ═════════ */
.dt-pen__l, .dt-pen__o { display: none; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-pen { position: relative; display: inline-flex; align-items: center; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-pen > i { display: none !important; }
html[data-sys]:not(.a11y-contrast, .hc) .pal-dots.dt-pen { color: var(--ink-soft); }
html[data-sys]:not(.a11y-contrast, .hc) .pt-typing.dt-pen { color: var(--on-band, inherit); }
html[data-sys]:not(.a11y-contrast, .hc) .dt-pen__l { display: block; flex: none; width: 64px; height: 16px; overflow: visible; }
.dt-pen__l path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 2; animation: dt-pen-line 1.5s ease-in-out infinite; }
/* the line is written from the right, as Hebrew is, whatever the bubble's side: right, not inset-inline */
html[data-sys]:not(.a11y-contrast, .hc) .dt-pen__o { display: block; position: absolute; top: -14px; right: -12px; width: 28px; height: 28px; object-fit: contain; pointer-events: none; animation: dt-pen-move 1.5s ease-in-out infinite; }
@keyframes dt-pen-line { 0% { stroke-dashoffset: 1; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes dt-pen-move { 0% { transform: translateX(0); } 70%, 100% { transform: translateX(-60px); } }

/* ═════════ 20 · הגרף ב«נתונים»: העמודות אחת אחרי השנייה (ההשהיה מ-details.js), עיגול יד סביב השעות העמוסות, ועמודה שנבחרה ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) .sd-hours.dt-ch { position: relative; }
html[data-sys]:not(.a11y-contrast, .hc) .sd-hours.dt-ch > span[data-n] { cursor: pointer; }
html[data-sys]:not(.a11y-contrast, .hc) .sd-hours.dt-ch > span.dt-sel { box-shadow: inset 0 0 0 2px var(--ink); }
.dt-ring { display: none; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-ring { display: block; position: absolute; top: -8px; overflow: visible; pointer-events: none; filter: url(#dt-pencil); }
.dt-ring path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: dt-draw 0.6s 1s ease-out forwards; }

/* ═════════ 27 · הלשונית הנבחרת: הסמל מצטייר מחדש בקו עבה יותר ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) svg.dt-ti { stroke-width: 2.6; }
html[data-sys]:not(.a11y-contrast, .hc) svg.dt-ti.dt-go > * { stroke-dasharray: 1 2; animation: dt-tab 0.6s ease-out backwards; }
@keyframes dt-tab { from { stroke-dashoffset: 1; } }

/* ═════════ חבילה ב׳ · מחוות (24.11.2026) ═════════ */
.dt-under, .dt-strk, .dt-drain, .dt-ck, .dt-pl__in { display: none; }
@keyframes dt-drain { from { transform: scaleX(1); } }
@keyframes dt-bs-in { from { transform: translateY(100%); } }
@keyframes dt-off-in { from { opacity: 0; transform: translateY(-10px); } }

/* ═════════ 8 · חוט המשיכה: במקום העיגול של המשיכה לרענון (‎.ptr של הלוח), חוט שנמתח עד ✓ ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) .ptr:not(.dt-pl) { visibility: hidden; }
html[data-sys]:not(.a11y-contrast, .hc) .ptr.dt-pl { top: calc(env(safe-area-inset-top) + 8px); right: 0; left: 0; display: flex; justify-content: center; width: auto; height: auto; margin: 0; border: 0; border-radius: 0; opacity: 1 !important; transform: none !important; animation: none !important; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-pl__in { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 18px 10px; background: var(--sheet); border-radius: var(--hand-leaf-lens); box-shadow: var(--hand-lift); opacity: calc(var(--dt-p, 0) * 2.4); transform: translateY(calc(var(--dt-p, 0) * 24px - 24px)); }
.dt-pl__in svg { width: 60px; height: 48px; overflow: visible; }
.dt-pl__in path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; }
.dt-pl__c { stroke-dashoffset: calc(1 - var(--dt-p, 0)); }
.dt-pl__ok { stroke-dashoffset: 1; transition: stroke-dashoffset 0.25s ease-out; }
.dt-pl__in.arm .dt-pl__ok { stroke-dashoffset: 0; }
.dt-pl__in b { color: var(--ink-soft); font: 400 13.5px/1.3 var(--f-ui); }

/* ═════════ 9 · מחיקה בקו: השורה זזה עם האצבע (‎--dt-x), הקו נמתח על השם (‎--dt-p), ומתחתיה «להזכיר לי». הגלילה למעלה ולמטה נשארת של הדף ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) .dt-swr { position: relative; overflow: hidden; touch-action: pan-y; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-swr > :not(.dt-under) { transform: translateX(var(--dt-x, 0px)); transition: transform 0.4s var(--spring, ease-out); }
html[data-sys]:not(.a11y-contrast, .hc) .dt-swr.dt-drag { -webkit-user-select: none; user-select: none; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-swr.dt-drag > :not(.dt-under), html[data-sys]:not(.a11y-contrast, .hc) .dt-drag .dt-strk { transition: none; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-under { display: flex; position: absolute; inset: 0; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 8px; visibility: hidden; color: var(--ink-soft); background: var(--hand-fill); border-radius: var(--hand-leaf-lens); font: 400 14px/1 var(--f-ui); clip-path: inset(0 calc(100% - var(--dt-x, 0px)) 0 0); }
html[data-sys]:not(.a11y-contrast, .hc) .dt-swr:is(.dt-rt, .dt-open) > .dt-under { visibility: visible; }
.dt-under > span { margin-inline-end: 2px; }
.dt-under > button { flex: none; min-height: 44px; padding: 0 11px; color: var(--ink); background: var(--sheet); border: 0; border-radius: 12px; box-shadow: var(--hand-lift); font: 400 14px/1 var(--f-ui); cursor: pointer; }
.dt-under > [hidden], .dt-under[data-rem=""] > [data-when=""], .dt-under:not([data-rem=""]) > [data-when]:not([data-when=""]) { display: none; }
html[data-sys]:not(.a11y-contrast, .hc) :has(> .dt-strk) { position: relative; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-strk { display: block; position: absolute; inset-inline: 0; top: 54%; height: 2.4px; background: var(--ink); border-radius: 2px; transform: scaleX(var(--dt-p, 0)); transform-origin: right center; transition: transform 0.26s ease-out; pointer-events: none; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-struck > :not(.dt-under) { opacity: 0.62; }

/* ═════════ 10 · פס הביטול: קו שמתרוקן בשש שניות, כמה שהפס של הלוח נשאר ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) :has(> .dt-drain) { overflow: hidden; }
html[data-sys]:not(.a11y-contrast, .hc) .dt-drain { display: block; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: right center; animation: dt-drain 6s linear backwards; pointer-events: none; }

/* ═════════ 13 · החלקה למחיקה: גיליון מלמטה, מסילה ועיגול שמחליקים עד הסוף. הכפתור הרגיל מופיע למקלדת ═════════ */
.dt-bs { position: fixed; inset: auto 0 0; box-sizing: border-box; width: 100%; max-width: 520px; margin: 0 auto; padding: 24px 20px calc(env(safe-area-inset-bottom) + 20px); color: var(--ink); background: var(--sheet); border: 0; border-radius: 30px 30px 0 0; box-shadow: var(--hand-lift); animation: dt-bs-in 0.5s var(--spring, ease-out) backwards; transition: transform 0.3s ease-in; }
.dt-bs::backdrop { background: color-mix(in srgb, var(--hand-ink) 34%, transparent); animation: dt-in 0.25s backwards; }
.dt-bs.out { transform: translateY(105%); }
.dt-bs h2 { margin: 0 0 6px; font: 400 26px/1.2 var(--f-display); }
.dt-bs p { margin: 0; color: var(--ink-soft); font: 400 16px/1.5 var(--f-body); }
.dt-bs button { display: block; width: 100%; min-height: 48px; margin-top: 6px; color: var(--ink); background: none; border: 0; border-radius: var(--hand-leaf-lens); font: 400 16px/1 var(--f-ui); cursor: pointer; }
.dt-sl { position: relative; height: 62px; margin: 20px 0 4px; overflow: hidden; background: var(--hand-fill); border-radius: 31px; touch-action: none; }
.dt-sl__t { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font: 400 16px/1 var(--f-ui); pointer-events: none; }
.dt-sl__fill { position: absolute; inset: 0; background: var(--ink); border-radius: inherit; clip-path: inset(0 0 0 calc((1 - var(--dt-p, 0)) * (100% - 62px)) round 31px); }
.dt-sl__fill .dt-sl__t { color: var(--sheet); }
.dt-sl__k { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 54px; height: 54px; color: var(--ink); background: var(--sheet); border-radius: 50%; transform: translateX(var(--dt-x, 0px)); touch-action: none; cursor: grab; }
.dt-sl__k svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dt-sl:not(.dt-drag) > :is(.dt-sl__k, .dt-sl__fill) { transition: transform 0.3s ease-out, clip-path 0.3s ease-out; }
.dt-sl__ok:not(:focus-visible) { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.dt-sl__ok:focus-visible { color: var(--sheet); background: var(--ink); }

/* ═════════ 15 · חוגת 24 שעות, מעל זוג השדות של השעה ═════════ */
html[data-sys]:not(.a11y-contrast, .hc) .dt-ck:not([hidden]) { display: block; position: relative; flex: none; width: 260px; max-width: calc(100% - 40px); margin: 6px auto 12px; aspect-ratio: 1; container-type: inline-size; }
.dt-ck svg { display: block; width: 100%; height: 100%; overflow: visible; direction: ltr; touch-action: none; }
.dt-ck__tr { fill: none; stroke: var(--hand-fill); stroke-width: 25; }
.dt-ck__tk { stroke: var(--hand-dot); stroke-width: 1.5; stroke-linecap: round; }
.dt-ck text { fill: var(--ink-soft); font: 400 13px var(--f-body); text-anchor: middle; }
.dt-ck__k { fill: none; stroke: var(--hand-ink); stroke-width: 25; stroke-linecap: round; }
.dt-ck__y { fill: none; stroke: var(--hand-yellow); stroke-width: 22; stroke-linecap: round; }
.dt-ck__h { fill: var(--hand-glass-strong); stroke: var(--hand-ink); stroke-width: 2.5; cursor: grab; }
.dt-ck__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--ink); pointer-events: none; }
.dt-ck__c b { font: 400 7.6cqw/1 var(--f-display); }   /* the words stay inside the ring at any size of it */
.dt-ck__c span { color: var(--ink-soft); font: 400 max(12.5px, 5.4cqw)/1 var(--f-ui); }

/* ═════════ 25 · פס «אין חיבור»: מידע ולא קישוט, ולכן נשאר גם במצבי הניגודיות, בצבעי המערכת ═════════ */
.dt-off { position: fixed; z-index: 96; top: calc(env(safe-area-inset-top) + 8px); inset-inline: 12px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto; padding: 8px 16px; color: Canvas; background: CanvasText; border-radius: 14px; font: 400 14px/1.35 var(--f-body, inherit); animation: dt-off-in 0.4s backwards; transition: opacity 0.3s, transform 0.3s; }
.dt-off b { font: 400 15px/1.25 var(--f-ui, inherit); }
.dt-off.out { opacity: 0; transform: translateY(-8px); }
html[data-sys]:not(.a11y-contrast, .hc) .dt-off { color: var(--sheet); background: var(--ink); border-radius: var(--hand-leaf-lens); }

/* ═════════ פחות תנועה: הכול כבר מצויר ═════════ */
@media (prefers-reduced-motion: reduce) {
  .dt-sk path, .dt-ring path, .dt-end path { animation: none !important; transition: none !important; stroke-dashoffset: 0; }
  .dt-end b { transition: none !important; }
  .dt-pen__l path, .dt-pen__o, svg.dt-ti.dt-go > *, .dt-inked > * { animation: none !important; }
  .hand-card__a > :is(.hand-key, .hand-quiet), .sd-ic::after, .sd-ic img { transition: none !important; }
}
html.a11y-no-motion :is(.dt-sk path, .dt-ring path, .dt-end path) { animation: none !important; transition: none !important; stroke-dashoffset: 0; }
html.a11y-no-motion .dt-end b { transition: none !important; }
html.a11y-no-motion :is(.dt-pen__l path, .dt-pen__o, svg.dt-ti.dt-go > *, .dt-inked > *) { animation: none !important; }
html.a11y-no-motion :is(.hand-card__a > :is(.hand-key, .hand-quiet), .sd-ic img) { transition: none !important; }
html.a11y-no-motion .sd-ic::after { transition: none !important; }
/* חבילה ב׳: בלי תנועה התוצאה מיידית. הקו של פס הביטול לא מצויר, והפס עצמו נשאר שש שניות */
@media (prefers-reduced-motion: reduce) {
  .dt-swr > *, .dt-strk, .dt-pl__in, .dt-pl__ok, .dt-bs, .dt-sl__k, .dt-sl__fill, .dt-drain, .dt-off { animation: none !important; transition: none !important; }
  .dt-bs::backdrop { animation: none !important; }
}
html.a11y-no-motion :is(.dt-swr > *, .dt-strk, .dt-pl__in, .dt-pl__ok, .dt-bs, .dt-sl__k, .dt-sl__fill, .dt-drain, .dt-off) { animation: none !important; transition: none !important; }
html.a11y-no-motion .dt-bs::backdrop { animation: none !important; }
