/* The logo as a small assistant (3.11.2026). The same file in both products: maane site/assets/pal.css, wa-bot-saas public/assets/css/pal.css */
.pal, .pal-say { margin: 0; border: 0; padding: 0; overflow: visible; color: inherit; background: none; inset: auto; }
.pal { position: fixed; z-index: 60; top: 0; left: 0; width: 44px; height: 44px; display: block; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; will-change: transform; transition: opacity .12s; }
.pal:popover-open, .pal-say:popover-open { position: fixed; display: block; }
.pal:popover-open { top: 0; left: 0; }
.pal::backdrop, .pal-say::backdrop { display: none; }
/* asleep: the real logo in the top bar is what shows */
.pal.asleep { opacity: 0; pointer-events: none; visibility: hidden; }
.pal.gone { opacity: 0; pointer-events: none; }
.pal .mk { position: absolute; inset: calc((44px - var(--rest, 36px)) / 2); width: var(--rest, 36px); height: var(--rest, 36px); overflow: visible; transform-origin: 50% 65%; transition: inset .22s var(--spring, cubic-bezier(.3, 1.4, .5, 1)), width .22s var(--spring, cubic-bezier(.3, 1.4, .5, 1)), height .22s var(--spring, cubic-bezier(.3, 1.4, .5, 1));
  --fill: #ffe81a; --ln: #1b1a17; --hi: #fff; --cheek: #ffb81f; --stroke: var(--ink); }
/* the drawing is never what a finger hits, the button's own 44px are: with no logo to rest as (the admin's circle stands in
   its place, app.js paintSwitch) the mark has no size, and Chrome hit-tests its unseen eyes and mouth at full size far
   from it (12.11.2026: over «לקוח» and «עוד» in the customers' head) */
.pal .mk { pointer-events: none; }
.pal.out .mk { inset: 2px; width: 40px; height: 40px; }
/* at rest this is the logo, line for line */
.pal .body, .pal .ring { fill: none; stroke: var(--stroke); stroke-linejoin: round; transition: stroke .2s; }
.pal .body { stroke-width: 13; }
.pal .ring { stroke-width: 8.5; }
.pal .ring circle { transform-box: fill-box; transform-origin: center; transition: transform .24s cubic-bezier(.4, 0, .2, 1), opacity .16s; }
.pal .flood { fill: var(--fill); transform-origin: 30px 215px; transform: scale(0); transition: transform .22s cubic-bezier(.4, 0, .4, 1); }
.pal .mouth { fill: transparent; stroke: var(--stroke); stroke-width: 10; stroke-linejoin: round; transition: fill .12s, stroke-width .12s; }
.pal .gold { transform-box: fill-box; transform-origin: center; }
.pal .waiting .gold, .pal .mk.waiting .gold { animation: pal-wait 2.4s ease-in-out infinite; }
@keyframes pal-wait { 50% { transform: scale(1.3); } }
/* awake: the dial's holes gather into two eyes, the rest of the dial leaves, the hub moves down as the mouth */
.pal .awake .body { stroke: var(--ln); }
.pal .awake .flood { transform: scale(1); }
.pal .awake .ring circle { transform: scale(0); opacity: 0; }
.pal .awake .ring .el, .pal .awake .ring .er { fill: var(--ln); stroke: var(--ln); opacity: 0; transition: transform .24s cubic-bezier(.4, 0, .2, 1), opacity .01s .24s; }
.pal .awake .ring .el { transform: translate(35.4px, 12.6px) scale(1.1); }
.pal .awake .ring .er { transform: translate(-35.4px, 12.6px) scale(1.1); }
.pal .awake .mouth { fill: var(--ln); stroke: var(--ln); stroke-width: 9; stroke-linecap: round; }
.pal .awake .gold { stroke: var(--ln); stroke-width: 8; }
.pal .face { opacity: 0; transition: opacity .08s; }
.pal .awake .face { opacity: 1; transition: opacity .1s .2s; }
.pal .eye { fill: var(--ln); transform-box: fill-box; transform-origin: center; animation: pal-blink 4.6s infinite; }
.pal .glint { fill: var(--hi); }
.pal .cheek { fill: var(--cheek); }
.pal .smile-eye, .pal .brow { fill: none; stroke: var(--ln); stroke-width: 11; stroke-linecap: round; opacity: 0; }
.pal .brow { stroke-width: 8; }
.pal [data-mood="joy"] .eyes { opacity: 0; }
.pal [data-mood="joy"] .smile-eye { opacity: 1; }
.pal [data-mood="alert"] .brow.worry, .pal [data-mood="think"] .brow.up { opacity: 1; }
@keyframes pal-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
.pal .limbs { opacity: 0; transition: opacity .1s; }
.pal .awake .limbs { opacity: 1; }
.pal .arm, .pal .leg, .pal .finger { fill: none; stroke: var(--ln); stroke-linecap: round; }
.pal .arm, .pal .finger { stroke-width: 11; }
.pal .leg { stroke-width: 13; }
.pal .hand { fill: var(--fill); stroke: var(--ln); stroke-width: 9; }
.pal-specks { position: absolute; left: 22px; top: 26px; width: 0; height: 0; pointer-events: none; }
.pal-specks i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px rgba(27, 26, 23, .55); animation: pal-speck .6s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes pal-speck { to { transform: translate(var(--x), var(--y)); opacity: 0; } }

/* the hand-drawn loop around what it stands on */
.pal-loop { position: fixed; z-index: 58; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pal-loop path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: pal-draw .5s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes pal-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* the speech bubble */
.pal-say { display: block; position: fixed; z-index: 59; top: 0; left: 0; width: max-content; max-width: min(250px, 78vw); min-height: 34px; padding: 7px 12px 8px; color: var(--ink); text-align: start; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; visibility: hidden; isolation: isolate; }
.pal-say:popover-open { top: 0; left: 0; }
.pal-say.on { visibility: visible; animation: pal-pop .16s var(--spring, cubic-bezier(.3, 1.4, .5, 1)) backwards; }
@keyframes pal-pop { from { transform: scale(.35); opacity: 0; } }
.pal-say.drag { cursor: grabbing; }
.pal-say.fly { transition: transform .2s cubic-bezier(.3, .6, .4, 1), opacity .2s; opacity: 0; pointer-events: none; }
.pal-say.wide { width: min(300px, 88vw); max-width: none; }
.pal-ink { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pal-ink .fi { fill: var(--sheet); }
.pal-ink .li { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.pal-say p { margin: 0; font: 400 15px/1.3 var(--f-ui); }
.pal-dots { display: inline-flex; align-items: center; gap: 4px; height: 19px; vertical-align: top; }
.pal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: pal-dot .42s ease-in-out infinite alternate; }
.pal-dots i:nth-child(2) { animation-delay: .12s; }
.pal-dots i:nth-child(3) { animation-delay: .24s; }
@keyframes pal-dot { to { transform: translateY(-4px); } }
.pal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 7px; }
.pal-row:empty { display: none; }
.pal-go { min-height: 34px; padding: 3px 13px; border: 0; border-radius: 10px 5px 10px 5px; background: var(--yellow); color: #1b1a17; font: 400 14px var(--f-ui); box-shadow: 0 0 0 1.5px #1b1a17; cursor: pointer; }
.pal-soft { position: relative; padding: 0; border: 0; background: none; color: var(--ink-soft); font: 400 12.5px/1.2 var(--f-body); }
button.pal-soft { text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
button.pal-soft::after { content: ""; position: absolute; inset: -14px -10px -10px; }
.pal-mic.on { background: var(--yellow); color: #1b1a17; animation: pal-wait 1s ease-in-out infinite; }
/* the talk (4.11.2026, «הדמות במרכז שאיתה מדברים ולא עם הצ'אט»; 5.11.2026, «הוא אמור לא לתפוס את כל המסך», נבחר א׳ «על הדף»): a sheet
   of paper drawn in ink, it sits on its top edge (pal.js placeStage). It answers in a bubble drawn around one thing it says, what was said
   before stays out of sight, the line to write on is at the bottom. The page stays in sight around it under a light veil; a tap there closes it */
.pal-scrim { position: fixed; z-index: 56; opacity: 0; pointer-events: none; border-radius: 26px; transition: opacity .2s; }
.pal-scrim.on { opacity: 1; pointer-events: auto; animation: pal-card .34s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes pal-card { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.pal-veil { position: fixed; z-index: 55; inset: 0; background: rgb(27 26 23 / .16); opacity: 0; pointer-events: none; transition: opacity .24s; }
.pal-veil.on { opacity: 1; pointer-events: auto; }
.pal-card-ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 18px 36px rgb(27 26 23 / .2)) drop-shadow(0 2px 4px rgb(27 26 23 / .1)); }
.pal-card-ink .fi { fill: #fffbf0; }
.pal-card-ink :is(.li, .li2) { fill: none; stroke: #1b1a17; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.pal-card-ink .li { stroke-width: 1.5; }
.pal-card-ink .li2 { stroke-width: .8; opacity: .3; }
.pal-scrim.first .pal-card-ink :is(.li, .li2) { animation: pal-draw .55s cubic-bezier(.22, 1, .36, 1) .04s both; }
.pal.stage { z-index: 60; }
.pal .mk { transition: inset .44s cubic-bezier(.22, 1, .36, 1), width .44s cubic-bezier(.22, 1, .36, 1), height .44s cubic-bezier(.22, 1, .36, 1); }
.pal.stage .mk { inset: calc((44px - var(--stage, 200px)) / 2); width: var(--stage, 200px); height: var(--stage, 200px); max-width: none; }
/* on the sheet, a little bigger than the logo, in a pen between the logo's and a big drawing's */
.pal.stage .body { stroke-width: 9.5; }
.pal.stage .arm, .pal.stage .finger { stroke-width: 9; }
.pal.stage .leg { stroke-width: 10; }
.pal.stage .hand { stroke-width: 7.5; }
.pal.stage .gold { stroke-width: 6.5; }
.pal.stage .mk .mouth { stroke-width: 7.5; }
.pal.stage .brow, .pal.stage .smile-eye { stroke-width: 9; }
.pal .body, .pal .arm, .pal .leg, .pal .hand { transition: stroke-width .3s, stroke .2s; }

.pal-ink .li2 { fill: none; stroke: var(--ink); stroke-width: .8; stroke-linejoin: round; opacity: .32; }
.pal-ink .li, .pal-ink .li2 { stroke-linecap: round; stroke-dasharray: 1; }
.pal-say.draw .pal-ink .li, .pal-say.draw .pal-ink .li2 { animation: pal-draw .42s cubic-bezier(.22, 1, .36, 1) both; }
.pal-say.draw .pal-ink .fi { animation: pal-fill .3s ease .1s both; }
.pal-say.draw .pal-in { animation: pal-fill .26s ease .16s both; }
@keyframes pal-fill { from { opacity: 0; } }

.pal-say.talk { width: max-content; min-width: 170px; max-width: min(430px, 88vw); padding: 13px 18px 14px; cursor: default; touch-action: auto; animation: none; text-align: start; }
.pal-say.talk .pal-ink .li { stroke-width: 1.35; }
.pal-say.talk p { font: 400 23px/1.2 var(--f-display); white-space: nowrap; }
.pal-say.talk p:has(> span:empty) { display: none; }
.pal-say.talk [hidden] { display: none !important; }
.pal-say.talk .pal-in > .pal-row { display: block; margin-top: 0; }
.pal-thread { -webkit-touch-callout: default; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; user-select: text; -webkit-user-select: text; scrollbar-width: none; }
.pal-thread::-webkit-scrollbar { display: none; }
.pal-thread:empty { display: none; }
.pal-line { display: none; font: 400 16px/1.4 var(--f-ui); color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty; }
.pal-line.now, .pal-thread.all .pal-line { display: block; }
.pal-line.long { text-align: start; }
.pal-line b { display: block; font: 400 23px/1.2 var(--f-display); text-wrap: balance; }
.pal-thread.all { text-align: start; }
.pal-thread.all .pal-line.me { align-self: flex-start; max-width: 86%; padding: 7px 13px 8px; color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 16px 16px 16px 5px; font-size: 15.5px; }
.pal-line a:not(.pal-go) { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pal-line a.pal-go { display: inline-flex; align-items: center; justify-content: center; margin-top: 6px; text-decoration: none; }
.pal-line audio { display: block; width: 100%; height: 34px; margin-top: 6px; }
.pal-line img { display: block; max-width: 100%; max-height: 130px; margin-top: 6px; border-radius: 9px; }
/* while they write: a small word instead of the answer they already read */
.pal-aside { display: none; font: 400 19px/1.25 var(--f-display); color: var(--ink); }
.pal-say.typing { min-width: 0; padding: 9px 17px; }
.pal-say.typing .pal-aside { display: block; }
.pal-say.typing p, .pal-say.typing .pal-thread { display: none; }
/* two keys side by side, each a finger wide */
.pal-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 2px; white-space: normal; }
.pal-acts > * { min-height: 48px; margin: 0; padding: 6px 14px; border-radius: 999px; font: 400 15.5px/1.2 var(--f-ui); text-decoration: none; animation: pal-rise .26s cubic-bezier(.22, 1, .36, 1) calc(var(--n, 0) * 50ms + 120ms) backwards; }
.pal-acts > :nth-child(2) { --n: 1; }
.pal-acts > :nth-child(3) { --n: 2; }
@keyframes pal-rise { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.pal-acts > :only-child { grid-column: 1 / -1; }
.pal-acts .pal-go { box-shadow: inset 0 0 0 1.3px #1b1a17; }
.pal-acts .pal-soft, .pal-acts .pal-chip { color: #1b1a17; background: #f4f1e7; box-shadow: inset 0 0 0 1.3px #1b1a17; }
.pal-acts button.pal-soft { text-decoration: none; }
.pal-acts button.pal-soft::after { display: none; }

/* under its feet */
.pal-dock { position: fixed; z-index: 59; top: 0; left: 0; width: min(440px, 92vw); color: var(--ink); }
.pal-dock[hidden] { display: none; }
.pal-dock .pal-x { position: fixed; z-index: 1; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; }
.pal-chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 7px; margin: 0 0 8px; }
.pal-chips[hidden] { display: none; }
.pal-chip { min-height: 44px; padding: 3px 16px; border: 0; border-radius: 999px; background: var(--st-chip); box-shadow: inset 0 0 0 1.3px #1b1a17; color: var(--ink); font: 400 15.5px var(--f-ui); cursor: pointer; animation: pal-rise .26s cubic-bezier(.22, 1, .36, 1) calc(var(--n, 0) * 50ms) backwards; }
.pal-chip:nth-child(2) { --n: 1; }
.pal-chip:nth-child(3) { --n: 2; }
@media (hover: hover) { .pal-chip:hover { background: #fff6b8; } }
.pal-chip, .pal-go, .pal-acts > *, .pal-mic, .pal-send, .pal-past { transition: transform .1s cubic-bezier(.22, 1, .36, 1); }
:is(.pal-chip, .pal-go, .pal-acts > *, .pal-mic, .pal-send, .pal-past):active { transform: scale(.97); }
.pal-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.pal-foot:has(> .pal-said:empty):has(> .pal-past[hidden]) { display: none; }
.pal-said { min-width: 0; max-width: 82%; padding: 0 15px; border-block: 9.5px solid var(--st-me); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--st-me-ink); background: var(--st-me); border-radius: 22px 22px 22px 7px; box-shadow: 0 0 0 1.3px #1b1a17; font: 400 16.5px/1.35 var(--f-ui); overflow-wrap: anywhere; animation: pal-rise .26s cubic-bezier(.22, 1, .36, 1) backwards; }
.pal-said:empty { display: none; }
.pal-past { position: relative; flex: none; margin-inline-start: auto; padding: 6px 12px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px rgb(27 26 23 / .35); color: var(--ink-soft); font: 400 14px/1.2 var(--f-ui); cursor: pointer; }
.pal-past::after { content: ""; position: absolute; inset: -8px; }
.pal-past[hidden] { display: none; }
/* a big round bubble to write in (5.11.2026, «ולא שורות קטנות»); the key is the mic, and the moment there is a word, send */
.pal-ask { display: flex; align-items: flex-end; gap: 6px; padding: 6px; padding-inline-start: 20px; background: var(--st-field); border-radius: 30px; box-shadow: inset 0 0 0 1.4px #1b1a17; transition: box-shadow .14s; }
.pal-ask:focus-within { box-shadow: inset 0 0 0 1.4px #1b1a17, 0 0 0 3px #ffe81a; }
.pal-ask textarea { field-sizing: content; flex: 1; min-width: 0; min-height: 44px; max-height: 124px; padding: 9px 0; border: 0; outline: 0; resize: none; overflow-y: auto; background: none !important; box-shadow: none !important; border-radius: 0; color: var(--st-ink); font: 400 17.5px/1.35 var(--f-ui); user-select: text; -webkit-user-select: text; scrollbar-width: none; }
.pal-ask textarea:focus, .pal-ask textarea:focus-visible { outline: 0 !important; }   /* the line under it is the focus */
.pal-ask textarea::placeholder { color: var(--ink-soft); }
.pal-mic, .pal-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.pal-mic { background: var(--st-key); color: var(--st-ink); box-shadow: none; }
.pal-mic svg, .pal-send svg { width: 20px; height: 20px; }
.pal-send { display: none; background: var(--yellow); color: #1b1a17; }
.pal-ask.has .pal-send { display: grid; animation: pal-pop .16s var(--spring, cubic-bezier(.3, 1.4, .5, 1)) backwards; }
.pal-ask.has .pal-mic { display: none; }
.pal-ask:not(:has(.pal-mic)) .pal-send { display: grid; }
/* what it does by itself on the page */
.pal-press { transform: scale(.96); filter: brightness(.94); transition: transform .08s, filter .08s; }
.pal-flip { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 8px; animation: pal-pop .28s var(--spring, cubic-bezier(.3, 1.4, .5, 1)) backwards; }

.pal.stage { --stroke: #1b1a17; }
.pal-dock { --ink: var(--st-ink); --ink-soft: var(--st-soft); }
.pal-say.talk { --ink: var(--st-say-ink); --ink-soft: var(--st-say-soft); --sheet: var(--st-say); color: var(--ink); }


/* a phone (3.11.2026): a long press brings up nothing and a tap leaves no grey flash; .pal's scroll-padding only hands the notch and the home bar to view() in px */
.pal, .pal-say { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.pal { scroll-padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }
@media (pointer: coarse) {
  .pal-go, .pal-chip { min-height: 44px; }
  .pal-row { gap: 10px 14px; margin-top: 9px; }
  .pal-row > .pal-soft { font-size: 13.5px; }
  .pal-mic, .pal-send { width: 44px; height: 44px; }
  .pal-acts > * { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .pal .eye, .pal .gold, .pal-dots i, .pal-mic.on, .pal-ink .li, .pal-ink .li2, .pal-ink .fi, .pal-in, .pal-send, .pal-flip, .pal-said, .pal-chip, .pal-acts > * { animation: none !important; }
  .pal, .pal .mk, .pal-say.on { transition: none; animation: none; }
}

/* the thought (5.11.2026): the bubble becomes a cloud and draws itself; the three dots in it breathe */
.pal-say.talk.think { min-width: 128px; padding: 20px 30px; }
.pal-say.think.draw .pal-in { animation-delay: .46s; }
.pal-say.think .pal-dots { gap: 7px; height: 22px; }
.pal-say.think .pal-dots i { width: 8px; height: 8px; background: var(--ink); animation: pal-breathe 1.3s ease-in-out infinite; }
.pal-say.think .pal-dots i:nth-child(2) { animation-delay: .22s; }
.pal-say.think .pal-dots i:nth-child(3) { animation-delay: .44s; }
@keyframes pal-breathe { 0%, 100% { opacity: .22; transform: scale(.82); } 45% { opacity: .9; transform: none; } }

/* the sheet is paper by day and by night (5.11.2026, נבחר א׳ «על הדף»); at night the page around it is darker, and its arms and legs
   keep a pale edge to be seen against it */
:root {
  --st-ink: #1b1a17; --st-soft: rgb(27 26 23 / .62);
  --st-say: #fff; --st-say-ink: #1b1a17; --st-say-soft: rgb(27 26 23 / .62);
  --st-field: #fff; --st-key: #f4eedd; --st-chip: #fff; --st-me: #ffe81a; --st-me-ink: #1b1a17;
}
@media (prefers-color-scheme: dark) {
  .pal-veil { background: rgb(0 0 0 / .42); }
  .pal.stage .limbs { filter: drop-shadow(0 0 1.2px rgb(245 239 220 / .9)); }
}
.pal-say.think.draw .pal-ink .fi { animation: pal-fill .24s ease .3s both; }
@media (prefers-contrast: more) {
  .pal-ask { box-shadow: inset 0 0 0 2px var(--st-ink); }
  .pal-chip, .pal-past, .pal-acts .pal-soft { box-shadow: inset 0 0 0 1.5px var(--ink); }
}

/* it answers word by word, and what they wrote rises from the line into its place (5.11.2026, «מגיב יותר יפה») */
.pal-w { display: inline-block; animation: pal-word .3s cubic-bezier(.22, 1, .36, 1) calc(var(--w, 0) * 36ms + 60ms) backwards; }
.pal-words-in .pal-w { animation: none; }
@keyframes pal-word { from { opacity: 0; transform: translateY(.28em); filter: blur(2px); } }
.pal-said.fly { animation: pal-said .44s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes pal-said { from { opacity: 0; transform: translateY(42px) scale(.94); } }
@media (prefers-reduced-motion: reduce) {
  .pal-w, .pal-said.fly, .pal-scrim.on, .pal-card-ink path { animation: none !important; }
  .pal-veil { transition: none; }
}
