/* מסך הבית בטלפון בסגנון אפליקציה (דולב, 21/10/2026: "אל תשנה את הקוביות שיש רק תעשה את זה בסגנון
 * האפליקציה", ההדמיה אושרה). אותן קוביות, אותו סדר ואותם שמות. משתנה רק העיצוב:
 * כרטיס פתיחה עם Zappy, שלוש קוביות בשורה עם אייקון בעיגול, וסרגל תחתון צף.
 * חל רק על .hm.ap (הבית של הצוות והבית הרגיל של עסק), לא על הבית של חיה או של SDH. */
/* הדמות: ראש לבן, פנים כהות, עיניים מחייכות, אוזניים כתומות. נמתחת לפי --z (גודל ברירת מחדל 54) */
.ap-bot{--z:54px;display:block;flex:none;position:relative;width:var(--z);height:var(--z)}
.ap-bot i{position:absolute;display:block;font-style:normal}
.ap-bot .head{inset:6% 11% 24%;background:#fff;border-radius:31%;box-shadow:inset 0 -3px 0 #dfe9e5,0 3px 8px rgba(0,0,0,.14)}
.ap-bot .face{inset:17% 12% 19%;background:#123c2e;border-radius:28%;display:flex;align-items:center;justify-content:center;gap:calc(var(--z) * .13)}
.ap-bot .face i{position:static;width:calc(var(--z) * .15);height:calc(var(--z) * .09);border:2px solid #6ff0b5;border-bottom:0;border-radius:8px 8px 0 0}
.ap-bot .ear{top:24%;width:9%;height:24%;border-radius:3px;background:#f08a3c}
.ap-bot .ear.l{right:4%}.ap-bot .ear.r{left:4%}
.ap-bot .bdy{bottom:0;right:30%;left:30%;height:26%;background:#fff;border-radius:0 0 40% 40%;box-shadow:0 3px 6px rgba(0,0,0,.1)}

/* במחשב: הבית לא משתנה. הדמות מופיעה שם רק בעוזר הדיגיטלי (למטה) */
@media (min-width:761px){.hm .ap-bot,.ap-hello,.ap-date{display:none!important}}

/* ⭐ 21/10/2026 (דולב): "הדמות של ה-AI תשים גם בדסקטופ באזור של העוזר הדיגיטלי". הכפתור הצף וכותרת החלון */
.bot-fab.as-fab.ap-fab,:root:not([data-theme="light"]) .bot-fab.as-fab.ap-fab{background:var(--surface);border:1px solid var(--line);box-shadow:0 6px 18px rgba(0,0,0,.16)}
.bot-fab.as-fab.ap-fab:hover{background:var(--accent-soft)}
.bot-fab.as-fab.ap-fab .ap-bot{--z:44px}
.bot-ph .ap-bot{--z:30px}
.bot-ph .as-title{white-space:nowrap}

@media (max-width:760px){

  /* כרטיס הפתיחה */
  .hm-team.ap .hm-top,.ap-hello{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:12px;
    background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:12px 14px;margin:0 0 4px;
    box-shadow:0 4px 14px rgba(14,138,95,.08);background-image:radial-gradient(120% 140% at 100% 0%,var(--accent-soft),transparent 60%)}
  .hm-team.ap .hm-top h1{font-size:18px}
  html .hm-team.ap .hm-top p.ap-date{display:block;margin:0;font-size:12.5px;color:var(--ink3)}
  .ap-hello b{display:block;font-size:17px;font-weight:800;line-height:1.3}
  .ap-hello span{display:block;font-size:12.5px;color:var(--ink3)}
  .ap-hello{margin:12px 0 0}

  /* הקוביות: שלוש בשורה, פינות עגולות, אייקון בעיגול */
  /* ⭐ 22/10/2026 (דולב): שתיים בשורה (שלוש בשורה האחרונה), והקוביות ממלאות את המסך (כ-75%) בלי גלילה, מתחת לכרטיס הפתיחה ומעל הסרגל */
  .hm-team.ap{display:flex;flex-direction:column;gap:8px}
  .hm-team.ap>.hm-main{display:grid;gap:8px;margin-top:0}
  .hm-team.ap>.hm-main .hm-t{min-height:max(92px,calc((100vh - 350px) / 4));min-height:max(92px,calc((100svh - 350px) / 4));justify-content:center!important}
  /* ⭐ 31/10/2026 (דולב): הטקסט בקוביות גדול וזהה בכל השורות, לנגישות. קובייה רחבה לא קטנה מקובייה בחצי שורה */
  .hm-team.ap>.hm-main.ws-n1 .hm-n,.hm-team.ap>.hm-main.ws-n2 .hm-n{font-size:16px}
  .hm-team.ap>.hm-main.ws-n3 .hm-n{font-size:14px}
  .hm.ap:not(.hm-team) > .hm-g:not(.ws-row){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
  .hm.ap .hm-t{min-width:0;min-height:96px;padding:12px 4px 10px;gap:6px;border-radius:18px;box-shadow:0 3px 10px rgba(20,35,30,.06)}
  .hm.ap .hm-t:not(.long){flex-direction:column;justify-content:flex-start}
  .hm.ap .hm-t.long{grid-column:1 / -1;min-height:60px}
  .hm.ap .hm-ic{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-ink)}
  .hm.ap .hm-ic svg{width:21px;height:21px}
  .hm.ap .hm-n{font-size:14px;font-weight:700;overflow-wrap:anywhere}
  .hm.ap .hm-c{font-size:12px;line-height:1.3;min-height:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .hm.ap .hm-l{font-size:13px;color:var(--ink);letter-spacing:0;margin:18px 2px 8px}

  /* שלושת המספרים והלידים האחרונים: כרטיסים עגולים, "מחכים לך" באדום כשיש מי שמחכה */
  html.rd .hm.ap .rd-n{border-radius:18px}
  html.rd .hm.ap .rd-n.bad{background:color-mix(in srgb,var(--lost) 12%,var(--surface));border-color:transparent}
  html.rd .hm.ap .rd-recent{border-radius:18px}
}

/* הסרגל התחתון צף, בכל המסכים בטלפון */
@media (max-width:860px){
  html[data-ui="2"] .mnav{inset:auto 10px calc(8px + env(safe-area-inset-bottom,0px)) 10px;padding:5px 6px;border:1px solid var(--line);
    border-radius:28px;box-shadow:0 8px 22px rgba(0,0,0,.14);
    grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  html[data-ui="2"] .mnav button{border-radius:22px}
  html[data-ui="2"] .toast{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}

/* כרטיס "שלום" פותח את העוזר הדיגיטלי (דולב, 22/10/2026) */
.hm-ask{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:box-shadow .15s,transform .15s}
.hm-ask:hover{box-shadow:0 6px 18px rgba(14,138,95,.14)}
.hm-ask:active{transform:scale(.99)}
.hm-ask:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hm-ask .hm-ask-hint{color:var(--accent-ink);font-weight:600}
html .hm-team .hm-top p.hm-ask-hint{display:block;margin:2px 0 0;font-size:12.5px}


/* ⭐ 04/11/2026 (דולב, הממשק המאוחד): בבית של הצוות, משפט אחד ליום בכרטיס העוזר, התאריך העברי גם במחשב,
 * והמשימות שלי ופגישות היום כשני חלקים מתחת לכרטיס (public/ui2.js u2HomeToday). הקובייה "דורש טיפול" באדום. */
/* redesign.css מסתיר כל p בכרטיס (html.rd .hm-top p): משפט היום חייב להופיע */
html .hm-team .hm-top p.hm-line{display:block;margin:4px 0 2px}
.hm-team .hm-line{font-size:15.5px;font-weight:600;color:var(--ink2);line-height:1.5;text-wrap:pretty}
.hm-team .hm-line .hm-by{font-weight:500;color:var(--ink3);font-size:13px;white-space:nowrap}
@media (min-width:761px){html .hm-team .hm-top p.hm-date{display:block!important;margin:2px 0 0;font-size:12.5px;color:var(--ink3)}}
.hm-today{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--k-gap);align-items:start;margin:12px 0}
@media (max-width:760px){.hm-today{grid-template-columns:1fr;margin:4px 0}}
.hm-today .k-band-h h2{font-size:16px}
.hm-today .hm-more{color:var(--act-ink);font-weight:700;font-size:13px;text-decoration:none}
.hm-today .hm-list{display:grid;gap:2px;min-width:0}
.hm-today .k-row{grid-template-columns:auto minmax(0,1fr);padding:8px 0;border-top:1px solid var(--line)}
.hm-today .k-row:first-child{border-top:0}
.hm-today .k-row small{display:block}
.hm-today .hm-task{cursor:pointer;position:relative;grid-template-columns:auto minmax(0,1fr) auto}
/* ⭐ 05/11/2026: ⋯ ליד כל משימה בבית (להסתיר לשבוע, לא רלוונטי) */
.hm-tmore{border:0;background:none;color:var(--ink3);font-size:18px;line-height:1;padding:4px 8px;border-radius:8px;cursor:pointer}
.hm-tmore:hover{background:var(--surface2);color:var(--ink)}
.hm-tmenu{position:absolute;inset-inline-end:0;top:100%;z-index:6;background:var(--surface);border:1px solid var(--line);border-radius:var(--k-r-tile);box-shadow:var(--sh2);padding:6px;display:grid;gap:2px;min-width:190px}
.hm-tmenu button{border:0;background:none;text-align:start;padding:10px;border-radius:8px;font:inherit;font-size:14px;color:var(--ink);cursor:pointer}
.hm-tmenu button:hover{background:var(--surface2)}
.hm-tmenu button.bad{color:var(--bad-ink)}
.hm-today .hm-task.done{opacity:.45;text-decoration:line-through}
.hm-chk{width:22px;height:22px;border:2px solid var(--line);border-radius:7px;background:none;cursor:pointer;padding:0}
.hm-chk:hover{border-color:var(--act)}
.hm-chk.ask{width:auto;padding:0 8px;border-color:var(--act);background:var(--act-soft);color:var(--act-ink);font:inherit;font-size:12px;font-weight:700;border-radius:999px}
.hm-today .hm-time{font-family:var(--font-num);font-variant-numeric:tabular-nums;color:var(--ink3);font-size:13px;min-width:42px}
.hm-today .hm-ev.next{background:var(--act-soft);border-radius:var(--k-r-tile);padding-inline:8px}
.hm-today .hm-empty{color:var(--ink3);margin:4px 0;font-size:13.5px}
.hm-team .hm-t[data-u2go="care"].hot{border-color:var(--bad-ink);background:var(--bad-soft)}
.hm-team .hm-t[data-u2go="care"].hot .hm-c{color:var(--bad-ink);font-weight:700}
.hm-team .hm-t[data-u2go="care"].calm .hm-c{color:var(--ok-ink);font-weight:700}

/* ⭐ 05/11/2026: הפס "יוצרים" בבית הצוות (u2Makers ב-public/ui2.js) */
.hm-team .hm-makers{margin:0 0 14px}
.hm-team .hm-makers .k-band-h small{color:var(--ink3);font-size:12.5px}
.hm-mk-g{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.hm-mk-g .k-tile[aria-disabled="true"]{cursor:default;opacity:.75}
@media (max-width:760px){.hm-mk-g{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ⭐ 05/11/2026: הבית של העסק, "הכל דופק?" ו"איפה זה נתקע" (public/bizpulse.js) */
.bp{display:grid;gap:12px;margin:12px 0 16px;min-width:0}
.bp-ks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--k-gap)}
.bp-k{display:grid;gap:2px;padding:12px;border-radius:var(--k-r-tile);background:var(--surface2,var(--surface3));min-width:0}
.bp-k small{color:var(--ink3);font-size:12.5px}
.bp-k b{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums}
.bp-k span{color:var(--ink2);font-size:12.5px}
.bp-k em{font-style:normal;font-size:12px;color:var(--ink3)}
.bp-k em.bad{color:var(--bad-ink)}.bp-k em.ok{color:var(--ok-ink)}
.bp-note{color:var(--ink3);font-size:12.5px;line-height:1.55}
.bp-strip{display:flex;flex-wrap:wrap;gap:8px}
.bp-s{border:0;font:inherit;font-size:13px;padding:7px 13px;cursor:pointer}
.bp-s b{margin-inline-start:4px}
.bp-list{display:grid;gap:6px}
.bp-r{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--k-r-tile);background:var(--surface);font:inherit;color:var(--ink);text-align:start;cursor:pointer;min-width:0}
.bp-rt{display:grid;gap:2px;min-width:0}
.bp-rt small{color:var(--ink2);font-size:12.5px;line-height:1.45;overflow-wrap:anywhere}
.bp-rd{color:var(--ink3);font-size:12px;font-variant-numeric:tabular-nums}
.bp-go{font-style:normal;font-weight:700;color:var(--act-ink);font-size:13px;white-space:nowrap}
@media (max-width:760px){.bp-ks{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-r{grid-template-columns:1fr auto}.bp-rd{display:none}}

.hm-today button.hm-more{border:0;background:none;font:inherit;cursor:pointer;padding:0}
