/* What the logo-assistant shows on the talk's sheet (10.11.2026, Achiya: «לפתוח תצוגה יפה … משהו ויזואלי גם»): a card to an
   appointment, a customer's last messages, a customer, a day, and the people a name fits (pal-view.js draws them, pal.js
   addLine puts one in the talk). What it shows is the sheet itself (of three looks Achiya picked «התשובה היא הדף»): its
   sentence is the title, the big thing is big, no frame goes around the whole and no ink around the words. The sheet is paper
   by day and by night (pal.css), so a card's colours are paper's own and not the page's: the customer card's families
   (card-look.css), time blue, talk teal, who purple, money green. */

/* ── one sentence over the card, as its title; the whole sentence stays in the line for «מה אמרנו» ── */
.pal-full { display: none; }
.pal-lead { display: inline-block; max-width: 100%; margin-inline: -14px; font: 400 22px/1.2 var(--f-display); text-wrap: balance; }
.pal-say.talk:has(.pal-line.now.has-view) { width: var(--pal-w); }
.pal-say.talk:has(.pal-line.now.has-view):not(:has(.pal-thread.all)) .pal-ink { display: none; }
.pal-say.talk .pal-thread { margin-inline: -18px; padding-inline: 18px; }       /* the card may reach the sheet's edges */
.has-view .pal-acts { margin: 10px -18px 2px; }
/* a card taller than the sheet: what is under the fold fades out, a scroll away */
.pal-say.talk .pal-thread:has(.pal-line.now.has-view) { padding-block-end: 10px; mask-image: linear-gradient(#000 calc(100% - 12px), #0000); }

/* ── the card: on the sheet's own paper, each thing in it a tile in its family's colour ── */
.pv {
  --t: #4a7fd6; --sheet: #fff; --ivory: #f6f0df; --ink: #1b1a17; --ink-soft: #57534a; --line-strong: rgb(27 26 23 / .32);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 12px -18px 0; color: #1b1a17;
  font: 400 15px/1.35 var(--f-ui); text-align: start; white-space: normal;
}
.pv[data-fam="talk"] { --t: #2a9d9a; }
.pv[data-fam="who"], .pv [data-fam="who"] { --t: #8466d8; }
.pv [data-fam="time"] { --t: #4a7fd6; }
.pv [data-fam="money"] { --t: #3f9b68; }
.pv [data-fam="work"] { --t: #e0893f; }
.pv, .pv [data-fam] {
  --t-line: color-mix(in srgb, var(--t) 38%, transparent);   /* its frame */
  --t-ink: color-mix(in srgb, var(--t) 62%, #1b1a17);        /* a word in its colour (AA on paper) */
  --t-soft: color-mix(in srgb, var(--t) 30%, #57534a);       /* a grey word of its own */
}
.pal-line.now > .pv { animation: pal-rise .34s cubic-bezier(.22, 1, .36, 1) .1s backwards; }
.pv .av-photo { margin: 0; max-height: none; }

/* who: their circle as in the rooms, the name, what, and one word of state */
.pv__who { display: flex; align-items: center; gap: 12px; min-width: 0; padding-inline: 4px; }
.pal-say .pv .pv-face { --face: 36px; flex: none; width: var(--face); height: var(--face); margin: 4px; color: #1b1a17; font-size: calc(var(--face) * .46); }
.pv__id { display: grid; flex: 1; min-width: 0; }
/* a long name or service keeps all its words on a second line: a card is where the details are read */
.pv .pv__name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 400 20px/1.2 var(--f-display); overflow-wrap: anywhere; }
.pv__sub { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ink-soft); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.pv-pill { flex: none; padding: 3px 10px 4px; border-radius: 999px; font: 400 13px/1.2 var(--f-ui); white-space: nowrap; }
.pv-pill.is-ok { color: #1f5c3a; background: #e1f2e7; }
.pv-pill.is-wait { color: #7a4310; background: #fbe8d4; }
.pv-pill.is-off { color: #4a5059; background: #eceef0; }

/* the big thing: the day's leaf and the hour beside it */
.pv__hero { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 16px; background: color-mix(in srgb, var(--t) 10%, #fff); border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--t); }
.pv-leaf { --leaf: 84px; position: relative; flex: none; width: var(--leaf); height: calc(var(--leaf) * 1.125); }
.pv-leaf svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pv-leaf__page { fill: #fff; }
.pv-leaf__band { fill: #ffe81a; }
.pv-leaf__line { fill: none; stroke: #1b1a17; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.pal-line.now .pv-leaf__line { animation: pal-draw .5s cubic-bezier(.22, 1, .36, 1) .16s both; }
.pv-leaf__rule { fill: none; stroke: #1b1a17; stroke-width: 1.1; opacity: .55; }
.pv-leaf__rings { fill: none; stroke: #1b1a17; stroke-width: 2.2; stroke-linecap: round; }
.pv-leaf span { position: absolute; inset-inline: 0; color: #1b1a17; line-height: 1; text-align: center; white-space: nowrap; }
.pv-leaf .pv-leaf__w { top: 17.5%; font: 400 calc(var(--leaf) * .17)/1 var(--f-ui); }
.pv-leaf .pv-leaf__d { top: 35.5%; font: 400 calc(var(--leaf) * .42)/1 var(--f-display); }
.pv-leaf .pv-leaf__m { top: 74.5%; color: #57534a; font: 400 calc(var(--leaf) * .16)/1 var(--f-ui); }
.pv__when { display: grid; gap: 1px; min-width: 0; }
.pv__rel { color: var(--t-ink); font-size: 16.5px; }
.pv .pv__big { overflow: hidden; font: 400 44px/1.08 var(--f-display); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.pv__till { color: var(--ink-soft); font-size: 14px; }

/* a tile to each fact (the customer card's .cc-fact) */
.pv__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pv-fact { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 8px 12px 9px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--t-line); }
.pv-fact--wide { flex-basis: 100%; }
.pv-fact dt { color: var(--t-soft); font-size: 12.5px; line-height: 1.2; }
.pv-fact dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.25; }
.pv-fact--wide dd { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }

/* the one yellow key: the room it opens */
.pv__acts { display: flex; gap: 8px; }
.pv-go { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 6px 16px; border: 0; border-radius: 999px; color: #1b1a17; background: #ffe81a; box-shadow: inset 0 0 0 1.4px #1b1a17; font: 400 17px/1.2 var(--f-ui); cursor: pointer; transition: transform .1s cubic-bezier(.22, 1, .36, 1); }
.pv-go svg { flex: none; width: 18px; height: 18px; }
.pv-go:active { transform: scale(.97); }
.pv-go:focus-visible, .pv-pick:focus-visible { outline: 2.5px solid #1b1a17; outline-offset: 2px; }

/* the last messages: the customer's at the start as in «צ׳אטים», ours at the end; the last one big, in a frame */
.pv__talk { display: flex; flex-direction: column; gap: 5px; }
.pv-msg { display: -webkit-box; max-width: 84%; margin: 0; padding: 6px 11px 7px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #57534a; border-radius: 13px; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.pv-msg--in { align-self: flex-start; background: #fff; box-shadow: inset 0 0 0 1px rgb(27 26 23 / .2); border-start-start-radius: 4px; }
.pv-msg--out { align-self: flex-end; background: #f6f0df; border-start-end-radius: 4px; }
.pv-last { display: grid; gap: 5px; margin: 0; }
.pv-last figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-inline: 4px; color: #57534a; font-size: 13px; }
.pv .pv-last figcaption b { color: var(--t-ink); font: 400 14px/1.2 var(--f-ui); }
.pv-last blockquote { display: -webkit-box; margin: 0; padding: 11px 14px 12px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; background: color-mix(in srgb, var(--t) 7%, #fff); border-radius: 6px 18px 18px 18px; box-shadow: inset 0 0 0 1.5px var(--t); font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-line; }
.pv-last--out blockquote { border-radius: 18px 6px 18px 18px; }

/* a day: a line to each appointment */
.pv__rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pv-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 12px; background: color-mix(in srgb, var(--t) 5%, #fff); border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--t-line); }
.pv .pv-row__at { flex: none; min-width: 46px; font: 400 17px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.pal-say .pv .pv-row .pv-face { --face: 26px; margin: 3px; }
.pv-row__id { display: grid; flex: 1; min-width: 0; }
.pv .pv-row__id b { overflow: hidden; font: 400 15px/1.25 var(--f-ui); text-overflow: ellipsis; white-space: nowrap; }
.pv-row__id span { overflow: hidden; color: #57534a; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pv__more { margin: 0; padding-inline: 4px; color: #57534a; font-size: 13.5px; }

/* the people a name fits: a key to each, a finger tall */
.pv--pick { gap: 8px; }
.pv-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 66px; padding: 8px 12px; border: 0; border-radius: 18px; color: #1b1a17; background: #fff; box-shadow: inset 0 0 0 1.5px var(--t-line); font: inherit; text-align: start; cursor: pointer; transition: transform .1s cubic-bezier(.22, 1, .36, 1); }
.pal-line.now .pv-pick { animation: pal-rise .28s cubic-bezier(.22, 1, .36, 1) calc(var(--n, 0) * 60ms + 120ms) backwards; }
.pv-pick:nth-child(2) { --n: 1; }
.pv-pick:nth-child(3) { --n: 2; }
.pv-pick:active { transform: scale(.98); }
.pv-pick[disabled] { opacity: .55; cursor: default; }
@media (hover: hover) { .pv-pick:not([disabled]):hover { background: color-mix(in srgb, var(--t) 6%, #fff); } }
.pv-pick__n { display: grid; flex: none; place-items: center; width: 26px; height: 26px; background: #f6f0df; border-radius: 9px; font: 400 15px/1 var(--f-display); }
.pv-pick__id { display: grid; flex: 1; min-width: 0; }
.pv .pv-pick__id b { overflow: hidden; font: 400 16.5px/1.25 var(--f-display); text-overflow: ellipsis; white-space: nowrap; }
.pv-pick__id span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #57534a; font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
.pv-pick__seen { flex: none; color: #57534a; font-size: 12.5px; }

/* ── «מה אמרנו»: a card folds back into its sentence, and the talk has two sides (theirs yellow at the end, as the line they wrote) ── */
.pal-thread.all .has-view :is(.pv, .pal-lead, .pal-acts) { display: none; }
.pal-thread.all .has-view .pal-full { display: inline; }
.pal-thread.all .pal-line.me { align-self: flex-end; color: #1b1a17; background: #ffe81a; border-radius: 16px 16px 16px 5px; box-shadow: inset 0 0 0 1.3px #1b1a17; }
.pal-dock.past-on .pal-said { display: none; }

/* a short phone: the card keeps to what matters, and the rest is a scroll away */
@media (max-height: 700px) {
  .pv__hero { padding: 12px 14px; }
  .pv-leaf { --leaf: 66px; }
  .pv .pv__big { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .pv, .pv-pick, .pv-leaf__line { animation: none !important; }
  .pv-go, .pv-pick { transition: none; }
}
@media (forced-colors: active) {
  .pv-fact, .pv-row, .pv-pick, .pv-go, .pv__hero, .pv-last blockquote, .pv-msg, .pv-pill { border: 1px solid CanvasText; }
  .pv-leaf__band { fill: Highlight; }
}
@media (prefers-contrast: more) {
  .pv, .pv [data-fam] { --t-line: color-mix(in srgb, var(--t) 70%, #1b1a17); }
}
