/* ניהולפון — the new screen: "חם ורך" (decisions.yaml portal.redesign_choice;
   docs/assets/proto-4-modern-warm.html is the prototype it was drawn from).

   1. A warm-neutral base: an off-white page, white cards, hairlines, a very
      soft shadow.
   2. One brand colour, a deep teal, for the main action, the current tab and
      what was answered.
   3. One waiting colour, a soft red, as on any phone's missed call -- and
      only for somebody who is waiting. A failure, an older item, a past
      missed call: grey.
   4. Assistant for Hebrew, Inter for digits and Latin (both OFL, files in
      fonts/ beside their licences). Inter is scaled to 88% so a digit stands
      as tall as Assistant's, and its weight axis is shifted by fifty, so 650
      here is Inter 600. Digits are tabular everywhere.
   5. Light only. No style attribute anywhere: the CSP blocks it.

   This file dresses the shell and the queue, and also every class the
   screens that came before it build (the log, the phone book, recordings,
   messages), so they are reused as they are. It is the only stylesheet:
   the old one, style.css, was removed on the owner's word (19.10). */

@font-face {
  font-family: "Assistant";
  src: url(/static/fonts/assistant.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* Inter only for digits, Latin and Latin punctuation -- not the space and
   not the hyphen, which stay Assistant's. */
@font-face {
  font-family: "Inter";
  src: url(/static/fonts/inter.woff2) format("woff2");
  font-weight: 150 950;
  unicode-range: U+0021-002C, U+002E-007E;
  size-adjust: 88%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --tint: #FAF9F7;      /* a sub-row, hover, a table head */
  --sunk: #F1F0ED;      /* the tray of a switch, a quiet button */
  --line: #EAE8E3;
  --line-2: #DCD9D2;
  --line-3: #F0EEEA;
  --ink: #25231F;       /* 15.7:1 */
  --ink-2: #55514A;     /* 7.9:1 */
  --ink-3: #6E6A63;     /* 5.4:1 on white -- the smallest allowed for text */
  --ink-4: #A9A49B;     /* decoration only, never text */
  --brand: #0F6B5C;     /* 6.4:1 */
  --brand-2: #0B5A4D;   /* 8.1:1 -- text in the brand colour */
  --brand-soft: #E7F3EF;
  --brand-line: #C3DFD6;
  --wait: #C62A31;      /* 5.6:1 -- only for somebody waiting */
  --wait-soft: #FDECEC;
  --out: #2F67A8;       /* a call we placed -- the icon only */
  --out-soft: #E8EFF8;
  --row-in: #F5FAF7;    /* the rows' hues: a breath, not a fill */
  --row-out: #F5F8FD;
  --row-miss: #FEF5F5;
  --miss: #E2DFD8;      /* a past missed call in a chart: not red, nobody waits */
  --del: #9E3B34;       /* 6.7:1 -- a deletion: the one action with no way back */
  --r: 12px;
  --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(37, 35, 31, .05);
  --sh-2: 0 1px 2px rgba(37, 35, 31, .04), 0 10px 28px -14px rgba(37, 35, 31, .14);
  --sh-pop: 0 2px 6px rgba(37, 35, 31, .06), 0 28px 64px -18px rgba(37, 35, 31, .30);
  --font: "Inter", "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --w: 1240px;
  --top: 64px;
  /* the older screens' names for the same things (the heat map fills with them) */
  --surface-2: var(--tint);
  --surface-3: var(--sunk);
  --line-strong: var(--line-2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
a { color: var(--brand-2); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
bdi { unicode-bidi: isolate; }
::selection { background: var(--brand-soft); color: var(--ink); }
.tel { white-space: nowrap; letter-spacing: .01em; }
.nm { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--ink-3); }
.xs { font-size: 13px; }

/* ── loading, the gate ───────────────────────────────────────────────── */
.boot { display: grid; place-items: center; min-height: 100dvh; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 56px 16px; text-align: center; color: var(--ink-3); font-size: 15px; }

.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.gate > div { width: 100%; max-width: 410px; }
.card-gate {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-2);
  padding: 30px 30px 26px;
}
.card-gate .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.card-gate .brand svg { width: 38px; height: 38px; border-radius: 11px; flex: none; display: block; }
.card-gate .brand b { display: block; font-size: 18px; font-weight: 750; line-height: 1.2; }
.card-gate .brand span span, .card-gate .brand div span { display: block; font-size: 13.5px; color: var(--ink-3); }
.card-gate form { display: grid; gap: 4px; }
.card-gate .primary { min-height: 44px; margin-top: 6px; }
.foot-note { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 18px; }

/* ── fields ──────────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field > label, .field label:first-child { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
label.field.hstack { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 42px; padding: 0 12px;
  font-size: 16px;                          /* 16px: iOS zooms anything smaller */
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 11px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="file"] { font-size: 15px; max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
select { cursor: pointer; }
.importbox { min-height: 0; padding: 12px; font-size: 15px; line-height: 1.5; resize: vertical; }

/* ── messages ────────────────────────────────────────────────────────── */
.msg { border-radius: var(--r); padding: 11px 14px; font-size: 15px; margin: 0 0 14px; }
.msg.info { background: var(--brand-soft); border: 1px solid var(--brand-line); color: #173F37; }
/* a failure is said plainly, in grey and bold -- red belongs to who is waiting */
.msg.error { background: var(--tint); border: 1px solid var(--line-2); color: var(--ink); font-weight: 650; }
.panel > .msg { margin: 16px; }

/* ── icons, avatars, counts ──────────────────────────────────────────── */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.chev { width: 16px; height: 16px; }
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 14px; font-weight: 700; line-height: 1; }
.av0 { background: #E4F1EC; color: #0B5A4D; }
.av1 { background: #ECEEFA; color: #3A4AA0; }
.av2 { background: #F5EFDC; color: #6E5512; }
.av3 { background: #F1EAF7; color: #66408A; }
.av4 { background: #E5EFF6; color: #22587A; }
.av5 { background: #EBF1E2; color: #4A6120; }
.cnt {
  display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 750; line-height: 1;
}
.cnt.wait { background: var(--wait); color: #fff; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 9px;
  border-radius: 999px; background: var(--sunk); color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.pill.ok { background: var(--brand-soft); color: var(--brand-2); }
.pill.miss, .pill.vm, .pill.act { background: var(--sunk); color: var(--ink-2); }
/* ended in a menu before a phone rang ("קיבל מידע", "ניתק בתפריט"): not missed,
   nobody owes a call back -- outlined, no fill */
.pill.info { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.pill.wait { background: var(--wait-soft); color: var(--wait); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn, .primary, .ghost, .as-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 650; font-size: 15px; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--sh-1);
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover, .ghost:hover, .as-button:hover { background: var(--tint); border-color: #CBC7BF; }
.btn .ic { width: 17px; height: 17px; }
.btn.solid, .primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(11, 90, 77, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn.solid:hover, .primary:not(:disabled):hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.quiet { background: var(--sunk); border-color: transparent; box-shadow: none; color: var(--ink); }
.btn.quiet:hover { background: #E8E6E1; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 14px; gap: 6px; }
.btn.small .ic { width: 16px; height: 16px; }
.btn .chev { transform: rotate(-90deg); }
.btn.up .chev { transform: rotate(90deg); }
.wide { display: flex; width: 100%; }
.link {
  border: 0; background: none; padding: 3px 0; cursor: pointer; color: var(--brand-2); font-size: 14.5px; font-weight: 650;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }
.link.danger { color: var(--del); }
.link.who-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 9px; border-radius: 999px;
  background: var(--brand-soft); font-size: 13.5px;
}
.link.who-link .ic { width: 15px; height: 15px; }
.link.who-link:hover { text-decoration: none; background: #D9ECE5; }
.iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: none; color: var(--ink-3); cursor: pointer;
}
.iconbtn:hover { background: var(--sunk); color: var(--ink); }
.play::before {                 /* a drawn play triangle: not a character, it does not flip */
  content: ""; width: 0; height: 0; flex: none;
  border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
a.go { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-2); font-weight: 650; text-decoration: none; font-size: 14.5px; }
a.go:hover { text-decoration: underline; }
a.go .ic { width: 16px; height: 16px; }

/* ── the shell: the organization, the tabs, who is signed in ────────── */
.app2 { min-height: 100dvh; }
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
}
.top .in { max-width: var(--w); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 22px; height: var(--top); }
.top .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.top .logo { width: 34px; height: 34px; flex: none; display: block; }
.logo-bg { fill: var(--brand); }
.top .org { display: block; font-weight: 750; font-size: 16.5px; line-height: 1.15; }
.top .app { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.top .bn { display: block; min-width: 0; }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; }
.tabs a {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 999px;
  white-space: nowrap; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 550;
  transition: background-color .15s, color .15s;
}
.tabs a .ic { color: var(--ink-3); }
.tabs .tl { line-height: 1.2; }
.tabs a:hover { background: var(--sunk); color: var(--ink); }
.tabs a.on { background: var(--brand-soft); color: var(--brand-2); font-weight: 700; }
.tabs a.on .ic { color: var(--brand); }
.me { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.me-t { display: flex; flex-direction: column; line-height: 1.25; }
.me-t b { font-size: 14px; font-weight: 650; }
.me-t span { font-size: 12.5px; color: var(--ink-3); }
.bottom, .more, .more-scrim { display: none; }
.toast {
  position: fixed; z-index: 60; inset-inline-start: 24px; bottom: 24px; max-width: min(520px, calc(100% - 32px));
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 15px; box-shadow: var(--sh-pop);
}
.toast:empty { display: none; }

/* ── the page ────────────────────────────────────────────────────────── */
.page { max-width: var(--w); margin: 0 auto; padding: 30px 28px 80px; }
.loghead { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: 4px 0 20px; }
.loghead h1 { font-size: 30px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
.loghead .sum { font-size: 15px; color: var(--ink-3); }
.dateline { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.dateline .asof { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 9px; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.live.stale { background: var(--ink-4); box-shadow: 0 0 0 4px var(--sunk); }
@media (prefers-reduced-motion: no-preference) {
  .live:not(.stale) { animation: live 2.6s ease-in-out infinite; }
  @keyframes live { 50% { box-shadow: 0 0 0 7px rgba(15, 107, 92, 0); } }
}
h1.head { display: flex; align-items: center; gap: 14px; font-weight: 750; font-size: 36px; line-height: 1.15; letter-spacing: -.012em; }
h1.head .clear {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); flex: none;
}
h1.head .clear .ic { width: 28px; height: 28px; stroke-width: 2.2; }
h1.head .n {
  display: inline-grid; place-items: center; min-width: 54px; height: 50px; padding: 0 12px;
  border-radius: 16px; background: var(--wait-soft); color: var(--wait); font-size: 32px;
}
.lede { margin: 10px 0 26px; font-size: 17.5px; color: var(--ink-2); max-width: 80ch; }
.lede .nm { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.label {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.label .end { margin-inline-start: auto; font-weight: 500; font-size: 14px; color: var(--ink-3); }
.note { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* ── the queue ───────────────────────────────────────────────────────── */
.queue {
  list-style: none; margin: 0; padding: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: clip;
}
.q {
  display: grid; column-gap: 20px; row-gap: 2px; align-items: center;
  grid-template-columns: 86px minmax(0, 1fr) 238px auto;
  grid-template-areas: "wait who num acts" "wait meta num acts";
  padding: 16px 20px; border-top: 1px solid var(--line);
  transition: background-color .15s;
}
.queue > li:first-child { border-top: 0; }
.q:focus-visible { outline-offset: -3px; border-radius: 14px; }
.q { cursor: pointer; }                          /* the row opens the person */
.q:not(.closed):hover { background: var(--tint); }
.q .wait {
  grid-area: wait; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 64px; border-radius: 14px; background: var(--wait-soft); color: var(--wait);
  font-weight: 750; font-size: 22px; line-height: 1; white-space: nowrap;
}
.q .wait small { font-size: 12.5px; font-weight: 650; }
.q .who { grid-area: who; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.q .meta { grid-area: meta; min-width: 0; font-size: 15px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.q .num { grid-area: num; font-weight: 650; font-size: 26px; line-height: 1.1; color: var(--ink); }
.q .ext { display: none; }
.q .acts { grid-area: acts; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.open-btn {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: start; color: var(--ink);
  font: 700 21px/1.25 var(--font);
}
.open-btn:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--ink-4); }
.open-btn.unk { font: 500 15px/1.3 var(--font); color: var(--ink-3); }
.tried { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.earlier { color: var(--ink-3); font-size: .93em; }
.tried::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.vm-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); padding: 3px 12px 3px 11px; cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--ink);
  box-shadow: var(--sh-1);
}
.vm-btn::before { border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; color: var(--brand); }
.vm-btn:hover { border-color: #C3BFB7; }
.vm-btn[aria-expanded="true"] { border-color: var(--brand-line); background: var(--brand-soft); }
.dial { display: none; }
/* dialled from the mobile, and nobody said yet whether they spoke: the tag is hollow */
.q.pending .wait { background: var(--surface); border: 1.5px dashed var(--wait); }
/* closed here and now: it stays in its place, struck through, with the reason */
.q.closed .wait { background: var(--tint); color: var(--ink-3); font-size: 15px; font-weight: 650; border: 1px solid var(--line); }
.q.closed .wait .ic { width: 20px; height: 20px; color: var(--brand); }
.q.closed .wait small { display: none; }
.q.closed .open-btn, .q.closed .num { color: var(--ink-3); }
.q.closed .meta { color: var(--ink-2); }
/* the strike is drawn: through the middle of a Hebrew letter, not along its roof */
.struck { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 56% / 100% 1.5px; }
.num .struck { background-position: 0 54%; }

/* busy: a working table, one line a person */
.queue.dense .q {
  grid-template-columns: 84px 136px minmax(0, 1fr) minmax(0, 1.6fr) 40px auto;
  grid-template-areas: "wait num who meta ext acts";
  padding: 8px 20px; column-gap: 16px;
}
.queue.dense .q .wait { height: 28px; flex-direction: row; border-radius: 999px; font-size: 14.5px; padding: 0 10px; justify-self: start; min-width: 56px; }
.queue.dense .q .wait small { display: none; }
.queue.dense .q .num { font-size: 16.5px; }
.queue.dense .open-btn { font-size: 16px; }
.queue.dense .open-btn.unk { font-size: 13.5px; }
.queue.dense .q .meta { font-size: 14px; }
.queue.dense .q .ext {
  display: block; grid-area: ext; justify-self: start; font-size: 13px; font-weight: 650; color: var(--ink-2); background: var(--sunk);
  border-radius: 7px; padding: 1px 7px;
}
.queue.dense .btn { min-height: 32px; padding: 0 12px; font-size: 14px; }
.queue.dense .btn .ic { width: 16px; height: 16px; }
.queue.dense .vm-btn { padding: 1px 10px; font-size: 13px; box-shadow: none; }
.queue.dense .q.closed .wait { font-size: 13px; gap: 4px; }
.queue.dense .q.closed .wait .ic { width: 15px; height: 15px; }
@media (hover: hover) {
  .queue.dense .q .who .link { opacity: 0; }
  .queue.dense .q:is(:hover, :focus-within) .who .link { opacity: 1; }
}
.dayrow { list-style: none; padding: 7px 20px; background: var(--tint); border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-3); }
.queue > .dayrow:first-child { border-top: 0; }

/* what opens under a row: how it closed, did you speak, the message */
.extra { grid-column: 2 / -1; margin-top: 12px; }
.choice {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 14.5px; color: var(--ink-2);
  padding: 10px 12px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line);
}
.choice > span { margin-inline-end: 4px; font-weight: 650; color: var(--ink); }
.ask { padding: 14px 16px; border: 1px solid var(--brand-line); border-radius: 14px; background: var(--brand-soft); }
.ask p { font-size: 15.5px; font-weight: 650; color: var(--ink); }
.ask small { display: block; margin-top: 3px; font-size: 13.5px; color: #3D5A53; }
.ask .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.extra .player { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.extra .player > button { width: auto; display: inline-flex; }
.extra .player > div { flex: 1 1 260px; min-width: 0; }
.extra .player audio { margin-top: 0; }
.extra .player .msg { margin: 0; }
.extra > .msg { margin: 0; }

/* older: still open, but not "waiting" -- so not in the colour */
.q.old-item .wait { background: var(--sunk); color: var(--ink-2); }
.old-wrap { margin: 0 0 16px; background: var(--tint); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.oldgrp { display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.og-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); flex: none; }
.og-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.og-t b { font-size: 15.5px; font-weight: 700; }
.og-t .why { font-size: 14px; color: var(--ink-3); }
.og-a { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.oldgrp.done .og-ic { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.old-wrap .queue.old { margin: 0 12px 12px; box-shadow: none; }

/* what closed -- the receipt */
.receipts { margin-top: 20px; overflow: clip; }
.closedlist { list-style: none; margin: 0; padding: 0; }
.closedlist li {
  display: grid; grid-template-columns: 86px 238px minmax(0, 1fr) auto; column-gap: 20px; align-items: center;
  padding: 10px 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14.5px;
}
.closedlist li:first-child { border-top: 0; }
.closedlist .t { text-align: center; font-weight: 600; }
.closedlist .who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.closedlist .ok { width: 19px; height: 19px; color: var(--brand); }
.closedlist .who .nm { font-weight: 600; font-size: 16px; color: var(--ink-2); }
.closedlist .who .tel { font-size: 15px; color: var(--ink-2); }
.closedlist .why { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: center; }

/* today as a strip: every call a rounded line, morning on the right */
.strip { margin-top: 20px; overflow: clip; }
.strip .plot { padding: 20px 20px 0; }
.sbar { display: block; width: 100%; height: 66px; overflow: visible; direction: ltr; }
.strip p { padding: 14px 20px 0; font-size: 15.5px; color: var(--ink-2); max-width: 90ch; }
.strip .key { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 10px 20px 16px; font-size: 13.5px; color: var(--ink-3); }
.strip .key .go { margin-inline-start: auto; }
.k-sw { display: inline-block; width: 4px; height: 12px; border-radius: 2px; margin-inline-end: 7px; vertical-align: -1px; background: var(--brand); }
.k-sw.open { background: var(--wait); height: 14px; }
.k-sw.old { background: var(--ink-3); height: 14px; }
.k-sw.miss { background: #D3CFC7; }
.k-sw.info { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); }
.k-sw.menu { background: transparent; box-shadow: inset 0 0 0 1px #C9C5BD; }
.k-sw.out { background: #C9C5BD; height: 7px; vertical-align: 1px; }
.s-ans { fill: var(--brand); }
.s-miss { fill: #D3CFC7; }
.s-info { fill: transparent; stroke: var(--ink-3); stroke-width: 1; }
.s-menu { fill: transparent; stroke: #C9C5BD; stroke-width: 1; }
.s-open { fill: var(--wait); }
.s-old { fill: var(--ink-3); }
.s-out { fill: #C9C5BD; }
.s-base { stroke: var(--line); stroke-width: 1; }
.s-now { stroke: var(--ink-4); stroke-width: 1.2; stroke-dasharray: 3 4; }
.s-nowt { fill: var(--ink-3); font-size: 11.5px; font-weight: 650; }
.s-hr { fill: var(--ink-3); font-size: 12px; }
.s-hit { fill: transparent; cursor: pointer; }

/* ── settings ────────────────────────────────────────────────────────── */
.setgroup { margin-top: 4px; }
.setgroup-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.setgroup-h .ic { width: 17px; height: 17px; }
.setlist { overflow: clip; }
.setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; padding: 22px 24px; }
.setting + .setting { border-top: 1px solid var(--line); }
.set-text h3 { font-size: 18px; font-weight: 700; }
.set-lead { margin-top: 6px; font-size: 16.5px; color: var(--ink); }
.set-sub { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); max-width: 62ch; }
.set-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.win-seg button { height: 36px; padding: 0 14px; }
.set-saved {
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 10px 14px; border-radius: 12px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: #173F37; font-size: 14.5px; max-width: 470px;
}
.set-saved > .ic { width: 19px; height: 19px; color: var(--brand); }
.set-saved > span { flex: 1 1 260px; }
.set-saved b { color: var(--brand-2); }
.set-saved.err { background: var(--tint); border-color: var(--line-2); color: var(--ink); }
.set-saved.err b, .set-saved.err > .ic { color: var(--ink); }
.set-now { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-3); }
.chipn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); font-weight: 650; font-size: 13.5px; }
.chipn.w { background: var(--wait-soft); color: var(--wait); }

/* ── empty, and the screen a member may not open ─────────────────────── */
.empty { padding: 40px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: 16px; color: var(--ink-2); }
.empty h2 { font-size: 18px; color: var(--ink); }
.empty p { max-width: 62ch; margin: 0; }
.empty b { color: var(--ink); }
.empty-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sunk); color: var(--ink-3); }
.empty-ic .ic { width: 22px; height: 22px; }
.empty .row { margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.restricted { margin-top: 8px; }

/* ══ the older screens, in the same clothes ═════════════════════════════ */

/* a panel is a card */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  overflow: clip; margin-bottom: 20px;
}
.panel > header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel > header h2 { font-size: 16px; font-weight: 700; }
.grow { flex: 1; }
.panel .body { padding: 16px 20px; }

/* filters: switches, toggles, lists, search */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; }
.panel > .filters { border-bottom: 1px solid var(--line); background: var(--tint); }
.filters.flush { padding: 0; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--sunk); border-radius: 999px; }
.seg button {
  border: 0; background: none; height: 32px; padding: 0 13px; border-radius: 999px; cursor: pointer; box-shadow: none;
  font-size: 14.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: background-color .15s, color .15s;
}
.seg button:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(37, 35, 31, .12), 0 0 0 1px rgba(37, 35, 31, .04); }
.filters .ghost, .filters .primary { min-height: 38px; }
.filters select, .sel {
  width: auto; min-height: 38px; height: 38px; border-radius: 999px; padding: 0 12px; font-size: 14.5px; box-shadow: var(--sh-1);
}
.filters .search {
  width: 230px; min-height: 38px; height: 38px; border-radius: 999px; padding-inline: 16px; font-size: 14.5px; box-shadow: var(--sh-1);
}
.kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border: 1px solid var(--line-2);
  border-radius: 6px; font-size: 12px; color: var(--ink-3); background: var(--surface);
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13px; color: var(--ink-3); }
.legend i { display: inline-block; width: 14px; height: 8px; border-radius: 4px; margin-inline-end: 6px; vertical-align: 1px; background: var(--brand); }
.legend i.m { background: var(--miss); }
.dot-brand { background: var(--brand); }
.dot-danger { background: var(--miss); }        /* a past missed call: not red */
.hstack { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* the table */
.tablewrap { overflow-x: auto; }
table.log { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
table.log thead th {
  background: var(--tint); text-align: start; font-size: 13px; font-weight: 700;
  color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.log th:first-child, table.log td:first-child { padding-inline-start: 20px; }
table.log th:last-child, table.log td:last-child { padding-inline-end: 20px; }
table.log td { padding: 9px 12px; border-bottom: 1px solid var(--line-3); height: 50px; vertical-align: middle; }
table.log tbody tr:last-child td { border-bottom: 0; }
table.log tbody tr { cursor: pointer; }
/* The row's own hue, barely there (the owner, 14.10): answered here, placed
   by us, still waiting. Before :hover and .on, which win over it. */
table.log tbody tr.r-in td { background: var(--row-in); }
table.log tbody tr.r-out td { background: var(--row-out); }
table.log tbody tr.r-miss td { background: var(--row-miss); }
table.log tbody tr:hover td { background: var(--tint); }
table.log tbody tr.on td { background: var(--brand-soft); }
table.log tr.daybreak td {
  height: auto; padding-top: 8px; padding-bottom: 8px; background: var(--tint); color: var(--ink-3);
  font-size: 13px; font-weight: 700; cursor: default; border-bottom: 1px solid var(--line);
}
table.log tr.daybreak:hover td { background: var(--tint); }
table.log td.who b { font-weight: 650; font-size: 16px; }
table.log td.who span { display: block; font-size: 13.5px; color: var(--ink-3); }
table.log td.who i { font-style: normal; color: var(--ink-3); font-size: 14px; }
table.log td > i { font-style: normal; color: var(--ink-3); font-size: 14px; }
table.vmlist tbody tr, table.prompts tbody tr { cursor: default; }
table.vmlist td { height: auto; padding-top: 12px; padding-bottom: 12px; }
table.vmlist td:first-child b { font-size: 16px; }
table.vmlist .player { min-width: 0; }
table.vmlist .player > .wide { display: inline-flex; width: auto; }
.dir { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14px; color: var(--ink-2); }
.dir i {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: .8rem; background: var(--sunk); color: var(--ink-2);
}
.dir.in i { background: var(--brand-soft); color: var(--brand); }
.dir.out i { background: var(--out-soft); color: var(--out); }
/* missed stays missed: called back or not, the icon says what happened */
.dir.miss i { background: var(--wait-soft); color: var(--wait); }
.tablefoot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3);
}
.skel { height: 50px; border-bottom: 1px solid var(--line-3);
  background: linear-gradient(90deg, var(--surface) 0%, var(--tint) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: sweep 1.2s linear infinite; }
@keyframes sweep { to { background-position: -200% 0; } }

/* the overview: numbers, a chart, a heat map */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metrics.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  padding: 16px 18px; min-width: 0;
}
.metric .k { display: block; font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.metric .v { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.metric .d { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.metric.alert .v { color: var(--ink); }          /* the past: no alarm colour */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--brand); }
.chart .bar.miss { fill: var(--miss); }
.chart .axis { fill: var(--ink-3); font-size: 10px; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart.heat { max-width: 760px; }               /* drawn small; at full width every cell is a slab */
.heat rect { stroke: var(--surface); stroke-width: 2; }
.heat text { fill: var(--ink-3); font-size: 10px; }

/* Scrollbars inside the product: thin, on a clear track, and kept off the
   rounded corners. A computer set to always show scroll bars drew the
   system's grey bar down the drawer's rounded edge -- the owner, 14.10:
   "הורס את הנראות". Firefox and current Chrome read the first two lines;
   Safari reads the ::-webkit ones. */
.drawer, .tablewrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 35, 31, .2) transparent;
}
/* A frame in the drawer's own colour: a scroll bar is drawn inside the
   border, so this holds it in from the rounded edge and off the corners.
   The drawer's paddings below are 8px less than they look, to match. */
.drawer { border: 8px solid var(--surface); }
.drawer::-webkit-scrollbar, .tablewrap::-webkit-scrollbar { width: 12px; height: 12px; }
.drawer::-webkit-scrollbar-track, .tablewrap::-webkit-scrollbar-track { background: transparent; }
.drawer::-webkit-scrollbar-track { margin-block: 22px; }
.drawer::-webkit-scrollbar-thumb, .tablewrap::-webkit-scrollbar-thumb {
  background: rgba(37, 35, 31, .2); border-radius: 999px;
  border: 4px solid transparent; background-clip: padding-box;
}
.drawer::-webkit-scrollbar-thumb:hover, .tablewrap::-webkit-scrollbar-thumb:hover { background-color: rgba(37, 35, 31, .34); }

/* the drawer: one call, one contact, one recording */
.scrim { position: fixed; inset: 0; background: rgba(37, 35, 31, .26); z-index: 40; }
.drawer {
  position: fixed; top: 12px; bottom: 12px; inset-inline-end: 12px; z-index: 41; overflow: auto;
  width: min(460px, calc(100% - 24px)); background: var(--surface); border-radius: 22px; box-shadow: var(--sh-pop);
  padding: 10px 16px 24px;
}
.drawer > header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.drawer > header > div { flex: 1; min-width: 0; }
.drawer > header h2 { font-size: 24px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.drawer > header .sub { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.drawer h3 { margin: 24px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.drawer form { display: block; }
.drawer .msg { margin-top: 12px; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.pairs > div { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; min-width: 0; }
.pairs span { display: block; font-size: 13px; color: var(--ink-3); }
.pairs b { font-size: 15.5px; font-weight: 650; }
.stages { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: clip; }
.stages li { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.stages li:first-child { border-top: 0; }
.stages b { font-weight: 650; }
.stages i { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-3); }
.numrow { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.numrow .ghost { min-height: 42px; padding: 0 14px; }
.f2 { flex: 2; min-width: 0; } .f1 { flex: 1; min-width: 0; }
.mt5 { margin-top: 24px; } .mt3 { margin-top: 12px; }
.gap3 { height: 12px; }
.drawer .stage { margin-top: 16px; }
.drawer .hint { font-size: 14px; margin: 8px 0 14px; }

/* listening */
.player { min-width: 200px; }
.player audio { width: 100%; min-width: 200px; height: 40px; margin-top: 8px; display: block; }
.player .msg { margin: 8px 0 0; }
/* inside a player the only message is that it did not play: grey, like any failure */
.player .msg.info { background: var(--tint); border-color: var(--line-2); color: var(--ink); font-weight: 600; }
.player > .ghost.wide { min-height: 36px; font-size: 14.5px; }
.prompt-audio { display: block; width: 100%; max-width: 300px; height: 38px; }
table.prompts td { height: auto; padding-top: 12px; padding-bottom: 12px; }
table.prompts td.act { text-align: end; white-space: nowrap; }
.row-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
/* the pool of voicemail greetings (docs/31 step 4): where a greeting is in use, under its name */
table.prompts td.who i.in-use { display: block; margin-top: 2px; font-size: 13px; }
.panel.greetings > .empty { padding: 28px 20px; }


/* ── נתונים ──────────────────────────────────────────────────────────── */
.ranges { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-bottom: 22px; }
.ranges .sel { min-height: 38px; }
.datahead h1 { font-weight: 750; font-size: 36px; line-height: 1.18; letter-spacing: -.012em; }
.datahead h1 .ans { color: var(--brand); }
.datahead .sub { margin-top: 10px; font-size: 16.5px; color: var(--ink-2); max-width: 92ch; }
.datahead .def { margin-top: 8px; font-size: 14px; color: var(--ink-3); max-width: 92ch; }
.finding {
  margin-top: 20px; display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: #173F37; font-size: 16px;
}
.f-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--brand); flex: none; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.page section.card:not(.receipts):not(.strip) { padding: 0 20px 16px; }
.page > section.card { margin-top: 20px; }
h2.sec {
  font-size: 16px; font-weight: 700; padding: 16px 0 12px; border-bottom: 1px solid var(--line);
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
h2.sec small { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.bars { list-style: none; margin: 0; padding: 4px 0 0; }
.bars li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 118px; column-gap: 14px; align-items: center; padding: 6px 0; border-bottom: 1px solid #F1EFEB; font-size: 14.5px; }
.bars li:last-child { border-bottom: 0; }
.bars li .v { color: var(--ink-3); white-space: nowrap; }
.bars li .v b { color: var(--ink); font-weight: 700; }
.bars svg { display: block; width: 100%; height: 10px; overflow: visible; }
.b-ans { fill: var(--brand); }
.b-miss { fill: var(--miss); }
.bars.h3 { display: none; }
.cols .legend { margin-top: 10px; }
.tbl { list-style: none; margin: 0; padding: 0; }
.tbl li { display: grid; column-gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #F1EFEB; font-size: 15px; }
.tbl li:last-child { border-bottom: 0; }
.tbl li.th { font-size: 13px; font-weight: 700; color: var(--ink-3); border-bottom: 1px solid var(--line); padding: 10px 0 8px; }
.tbl.ext li { grid-template-columns: minmax(0, 1.4fr) repeat(6, minmax(0, 1fr)); }
.tbl.mon li { grid-template-columns: minmax(0, 1.8fr) repeat(7, minmax(0, 1fr)); }
.tbl .c-l { font-weight: 700; }
.tbl .c-l small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); }
.tbl .weak { font-weight: 750; }
.tbl .c-l.weak small { display: inline-flex; font-size: 12px; font-weight: 650; color: var(--ink-2); background: var(--sunk); border-radius: 999px; padding: 1px 8px; margin-inline-start: 8px; vertical-align: 1px; }
.readout {
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint);
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
}
.readout p { font-size: 15.5px; flex: 1 1 360px; }
.thin { list-style: none; margin: 0; padding: 0; }
.thin li { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 14px; padding: 9px 0; border-bottom: 1px solid #F1EFEB; font-size: 15px; align-items: baseline; }
.thin li:last-child { border-bottom: 0; }
.thin .nm { font-size: 16px; }

/* ── one person, from the queue ──────────────────────────────────────── */
.drawer.person { padding: 6px 16px 24px; }
.drawer.person .grip { display: none; }
.dr-top { display: flex; justify-content: space-between; align-items: center; }
.dr-k { font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.dr-who { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dr-who .nm { font-size: 25px; font-weight: 750; letter-spacing: -.01em; }
.dr-who .av { width: 46px; height: 46px; font-size: 17px; }
.dr-who .unk { font-size: 15.5px; color: var(--ink-3); }
.bignum { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.bignum .tel { font-weight: 650; font-size: 30px; line-height: 1.1; }
.state {
  margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 15px;
}
.state .w { color: var(--wait); background: var(--wait-soft); font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.state .o { font-weight: 700; color: var(--ink); }
.state .btn { margin-inline-start: auto; }
.drawer .extra { margin-top: 12px; }
.facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: clip; }
.facts li { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.facts li:first-child { border-top: 0; }
.facts .t { color: var(--ink-3); min-width: 6.5em; }
.more-calls { margin-top: 10px; }

/* ── "חייג": the extension rings first, then the number ─────────────── */
.drawer .c2c { margin-top: 14px; min-height: 46px; }
.q .acts .c2c { min-width: 112px; }                /* "מצלצל…" is wider than "חייג": the number must not move */
.ringing {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: #173F37; font-size: 15px;
}
.ringing .r-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--brand); flex: none; }
.ringing b { color: var(--brand-2); }
.ringing small { display: block; margin-top: 2px; font-size: 13.5px; color: #3D5A53; }
@media (prefers-reduced-motion: no-preference) {
  .ringing .r-ic .ic { animation: ringing 1.4s ease-in-out infinite; transform-origin: 50% 50%; }
  @keyframes ringing { 0%, 60%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 30% { transform: rotate(14deg); } 45% { transform: rotate(-8deg); } }
}
.setgroup + .setgroup { margin-top: 28px; }

/* one "חייג" wherever there is a number: a row's and a drawer's buttons are
   part of their layout; a table's is a small round icon */
.dialc.row, .dialc.wide { display: contents; }
.dialc.icon { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.dial-ic {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--brand-2); cursor: pointer;
  box-shadow: var(--sh-1); transition: background-color .15s, border-color .15s;
}
.dial-ic .ic { width: 16px; height: 16px; }
.dial-ic:hover { background: var(--brand-soft); border-color: var(--brand-line); }
.dial-ic.ic-copy { color: var(--ink-2); }
.dial-ic.on { background: var(--brand-soft); border-color: var(--brand-line); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .dial-ic.on .ic { animation: ringing 1.4s ease-in-out infinite; }
}
.ic-tel { display: none; }
.dial-pick { display: inline-flex; align-items: center; gap: 4px; }
.dial-pick .btn.small { min-height: 30px; padding: 0 10px; font-size: 13.5px; }
.dial-pick .iconbtn { width: 30px; height: 30px; }
.ring-note { margin-top: 12px; }
.ring-note:empty { display: none; }
.q > .ring-note { grid-column: 2 / -1; }
.call-dial { margin: 4px 0 8px; }
.call-dial .c2c, .call-dial .copy { margin-top: 0; min-height: 44px; }
table.log th.dialcell, table.log td.dialcell { width: 56px; padding-inline: 4px 16px; text-align: end; }
.vm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.vm-acts .player { flex: 0 1 auto; min-width: 0; }

/* ── several messages at once ─────────────────────────────────────────── */
/* The list's own header: how many, how many new, and "בחירה". While picking
   it becomes the bar -- the count, the two actions, "ביטול" -- and sticks
   under the top bar; on a phone it sits above the bottom tabs instead. */
.vm-head .vm-sum { color: var(--ink-2); font-weight: 650; }
.vm-head .vm-start { flex: none; }
.vm-head .vm-bar { display: none; }
.panel.selecting > .vm-head { position: sticky; top: var(--top); z-index: 5; background: var(--surface); }
.panel.selecting > .vm-head > :not(.vm-bar) { display: none; }
.panel.selecting > .vm-head > .vm-bar { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vm-bar .vm-n { flex: 1 1 auto; min-width: 140px; font-size: 15px; font-weight: 700; }
.vm-bar .vm-links { display: inline-flex; align-items: center; gap: 16px; }
.vm-bar .vm-all, .vm-bar .vm-cancel { white-space: nowrap; }
.btn.danger { color: var(--del); }
.btn.quiet.danger:not(:disabled):hover { background: #F6E6E3; }
.vm-bar .btn:disabled { opacity: .5; cursor: default; }
.vm-bar .btn.quiet:disabled:hover { background: var(--sunk); }
table.vmlist .sel-cell { display: none; width: 24px; padding-inline-end: 0; vertical-align: middle; }
.panel.selecting table.vmlist .sel-cell { display: table-cell; }
table.vmlist .vm-check { display: block; width: 20px; height: 20px; cursor: pointer; }
.panel.selecting table.vmlist tbody tr { cursor: pointer; user-select: none; }
table.vmlist tbody tr.picked td { background: var(--brand-soft); }
.cnum { display: flex; align-items: center; gap: 8px; }
.cnum + .cnum { margin-top: 4px; }
.cnum .dialc { order: 2; }
.cnum bdi { white-space: nowrap; }

/* ── the player, as the prototype has it: a bar that fills, and the time ── */
.pl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pl .prog { width: 180px; max-width: 40vw; height: 6px; display: block; overflow: visible; }
.pl-bg { fill: #E9E7E2; }
.pl-fg { fill: var(--brand); }
.pl .time { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.btn.pause::before { content: ""; width: 9px; height: 11px; flex: none; border-inline: 3px solid currentColor; }
.fail {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2);
  border-radius: 14px; background: var(--tint); font-size: 15px; color: var(--ink-2);
}
.fail-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); flex: none; }
.fail-b { min-width: 0; }
.fail b { color: var(--ink); font-weight: 700; }
.fail p { margin-top: 3px; max-width: 72ch; }
.fail .row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; }
.vm-acts .pl { flex: 0 1 auto; }

/* ── the drawer's pieces beyond the person's ─────────────────────────── */
.dr-line { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.heard-line { margin-top: 10px; font-size: 14px; }
/* how the message reached the mailbox (docs/31 §4): in the list a tag beside
   "חדשה/נשמעה", grey like every tag that is information and not somebody
   waiting; in the drawer a sentence in a tinted box like .state, its subject
   in bold -- muted when nobody recorded it; on the call's "תא קולי" line the
   tag again, at the end of the line */
table.vmlist td.vm-state > i + .pill { margin-inline-start: 8px; vertical-align: middle; }
.vm-why { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.vm-why b { color: var(--ink); font-weight: 700; }
.vm-why.unknown { color: var(--ink-3); }
.facts li > .pill { margin-inline-start: auto; }
.nums { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: clip; }
.nums li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.nums li:first-child { border-top: 0; }
.nums .n-t { display: flex; flex-direction: column; min-width: 0; }
.nums .tel { font-weight: 650; font-size: 20px; line-height: 1.2; }
.nums small { font-size: 13px; color: var(--ink-3); }
.dr-acts { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.facts li:has(> button) { padding: 0; }
.facts li > button { border: 0; background: none; padding: 10px 14px; cursor: pointer; text-align: start; display: flex; flex-wrap: wrap; gap: 2px 12px; width: 100%; font-size: 15px; color: inherit; }
.facts li > button:hover { background: var(--tint); }
.facts li.vm-li { align-items: center; }
.facts li.vm-li .pl { flex-basis: 100%; margin-top: 6px; }
table.log tbody tr.opens { cursor: pointer; }
.closedlist.week li { grid-template-columns: 116px 238px minmax(0, 1fr) auto; }

/* ── who keeps calling and has no name, on top of the phone book ──────── */
.unnamed-box:empty { display: none; }
.unnamed-box { margin-bottom: 22px; }
.unnamed-box h2.sec { border-bottom: 0; padding: 0 2px 10px; }
.people { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: clip; }
.people > li { display: grid; column-gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.people > li:first-child { border-top: 0; }
.unnamed > li { grid-template-columns: 200px minmax(0, 1fr) auto; }
.unnamed .tel { font-weight: 650; font-size: 16.5px; }
.people .last { font-size: 13.5px; color: var(--ink-3); }
.people .act { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.more-unnamed { margin-top: 10px; }
.set-off { display: flex; align-items: center; gap: 10px; padding: 18px 24px; font-size: 15px; color: var(--ink-3); }

/* ── משתמשים: one row a person -- who, what they see, where "חייג" rings ─ */
.urow { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 12px 28px; padding: 18px 24px; align-items: start; }
.urow + .urow { border-top: 1px solid var(--line); }
.urow.off { opacity: .55; }
.u-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.u-t { display: flex; flex-direction: column; min-width: 0; }
.u-t b { font-size: 16px; font-weight: 700; }
.u-t small { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.u-tags .chipn { height: 22px; padding: 0 9px; font-size: 12.5px; }
.u-ctl { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.u-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.u-k { min-width: 92px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.u-note { font-size: 14px; color: var(--ink-3); }
.u-line .seg { flex-wrap: wrap; }
.xchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xchip {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 13px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer;
}
.xchip .ic { width: 15px; height: 15px; }
.xchip:hover { border-color: #CBC7BF; }
.xchip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-2); }
.urow .set-saved { max-width: none; }

/* ── a narrower computer: the role goes first, then the tab icons ────── */
@media (max-width: 1240px) { .me-t { display: none; } }
@media (max-width: 1080px) {
  .tabs a .ic { display: none; }
  .tabs a { padding: 0 10px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .top .in { gap: 14px; }
  .metrics.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .q { grid-template-columns: 80px minmax(0, 1fr) auto auto; }
  .q .num { font-size: 22px; }
  .closedlist li { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr) auto; }
}

/* ══ a phone: its own layout, not a table that breaks ══════════════════ */
@media (max-width: 760px) {
  :root { --top: 56px; }
  .app2 { padding-bottom: 84px; }
  .top .in { padding: 0 16px; gap: 12px; }
  .tabs, .me { display: none; }
  .top .logo { width: 32px; height: 32px; }

  .bottom {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; z-index: 30;
    inset-inline: 0; bottom: 0; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom a, .bottom button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px;
    border: 0; background: none; text-decoration: none; color: var(--ink-3); font-size: 12.5px; font-weight: 600; cursor: pointer;
  }
  .bottom .bi { position: relative; display: grid; place-items: center; width: 58px; height: 30px; border-radius: 999px; transition: background-color .15s; }
  .bottom .bi .ic { width: 22px; height: 22px; }
  .bottom .bl { line-height: 1.2; }
  .bottom .on { color: var(--brand-2); font-weight: 750; }
  .bottom .on .bi { background: var(--brand-soft); }
  .bottom .cnt { position: absolute; top: -5px; inset-inline-end: 2px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; box-shadow: 0 0 0 2px #fff; }
  .more-scrim { display: block; z-index: 29; background: rgba(37, 35, 31, .22); }
  .more {
    display: block; position: fixed; z-index: 31; inset-inline: 8px; bottom: 78px; background: var(--surface);
    border-radius: 22px; box-shadow: var(--sh-pop); padding: 6px 8px 10px;
  }
  .grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 4px auto 6px; }
  .more-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 16.5px; font-weight: 600; }
  .more-list a.on { background: var(--brand-soft); color: var(--brand-2); }
  .mi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sunk); color: var(--ink-2); flex: none; }
  .mi .ic { width: 20px; height: 20px; }
  .more-list a.on .mi { background: var(--surface); color: var(--brand); }
  .ml { flex: 1; }
  .more-list .chev { color: var(--ink-4); }
  .who-line { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 10px 2px; border-top: 1px solid var(--line); }
  .who-line .me-t { display: flex; flex: 1; min-width: 0; }
  .who-line .me-t span { overflow: hidden; text-overflow: ellipsis; }
  .toast { inset-inline-start: 16px; bottom: 90px; }

  .page { padding: 18px 16px 36px; }
  .loghead { margin-bottom: 14px; }
  .loghead h1 { font-size: 26px; }
  .dateline { font-size: 13.5px; margin-bottom: 10px; }
  .dateline .asof { margin-inline-start: 0; }
  h1.head { font-size: 27px; gap: 10px; }
  h1.head .clear { width: 40px; height: 40px; border-radius: 13px; }
  h1.head .clear .ic { width: 23px; height: 23px; }
  h1.head .n { min-width: 42px; height: 40px; border-radius: 13px; font-size: 25px; padding: 0 9px; }
  .lede { font-size: 16px; margin-bottom: 18px; }

  .q, .queue.dense .q {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas: "wait who" "wait num" "wait meta" "acts acts";
    column-gap: 14px; padding: 14px 16px;
  }
  .q .wait { align-self: start; height: 58px; font-size: 18px; border-radius: 14px; }
  .q .wait small { font-size: 11.5px; }
  .queue.dense .q { grid-template-areas: "wait num" "wait who" "wait meta" "acts acts"; padding: 12px 16px; }
  .queue.dense .q .wait { flex-direction: column; height: 44px; border-radius: 12px; padding: 0; font-size: 14px; justify-self: stretch; min-width: 0; align-self: start; }
  .queue.dense .q .who .link { opacity: 1; }
  .queue.dense .q .acts { margin-top: 10px; }
  .q .num { font-size: 22px; margin-top: 2px; }
  .queue.dense .q .num { font-size: 18px; }
  .open-btn { font-size: 18px; }
  .q .meta { margin-top: 4px; font-size: 14px; }
  .queue.dense .q .ext { display: none; }
  .q .acts { justify-content: stretch; margin-top: 12px; }
  .q .acts .btn { min-height: 46px; font-size: 15.5px; }
  .queue.dense .q .acts .btn { min-height: 42px; }
  .q .acts .dial { display: inline-flex; flex: 2 1 0; }
  .q .acts .handled { flex: 1 1 0; }
  .q .acts .copy { display: none; }
  .extra { grid-column: 1 / -1; }
  .q.closed .wait { height: 58px; }
  .oldgrp { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .og-t { flex: 1 1 200px; }
  .og-a { justify-content: flex-start; width: 100%; padding-inline-start: 52px; }
  .closedlist li { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 12px; row-gap: 3px; padding: 11px 16px; }
  .closedlist .t { grid-column: 2; grid-row: 1; font-size: 13.5px; font-weight: 500; }
  .closedlist .dialc { grid-column: 3; grid-row: 1; }
  .closedlist .who { grid-column: 1; grid-row: 1; }
  .closedlist .why { grid-column: 1 / -1; padding-inline-start: 28px; font-size: 14px; }
  .label { padding: 13px 16px; }
  .strip .plot { padding: 16px 16px 0; }
  .strip p { padding: 12px 16px 0; font-size: 15px; }
  .strip .key { padding: 10px 16px 14px; }
  .s-hr:nth-of-type(even) { display: none; }

  .setting { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
  .set-ctl { align-items: stretch; }
  .win-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  .win-seg button { height: 42px; border-radius: 13px; font-size: 15px; }
  .set-saved { max-width: none; }

  /* the older screens */
  .gate { padding: 20px 16px; place-items: start center; }
  .card-gate { margin-top: 12px; padding: 24px 20px; }
  .filters { gap: 8px; padding: 12px; }
  .filters .search { width: 100%; order: -1; height: 42px; }
  .filters .kbd { display: none; }
  .seg button { padding: 0 10px; }
  .metrics, .metrics.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 12px 14px; }
  .metric .v { font-size: 27px; }
  .pairs { grid-template-columns: 1fr; }
  .panel > header { padding: 13px 16px; }
  .panel .body { padding: 12px 14px; }
  table.log th:first-child, table.log td:first-child { padding-inline-start: 14px; }
  table.log th:last-child, table.log td:last-child { padding-inline-end: 14px; }
  table.log td.hide-sm, table.log th.hide-sm { display: none; }
  .tablefoot { padding: 12px 16px; }

  /* the call log: a row is a little card -- time, who, what happened */
  table.calls thead { display: none; }
  table.calls, table.calls tbody { display: block; }
  table.calls tr {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto;
    grid-template-areas: "c1 c3 c3 c8" "c1 c2 c7 c9"; column-gap: 10px; row-gap: 2px; align-items: center;
    padding: 10px 14px; border-bottom: 1px solid var(--line-3);
  }
  table.calls tr td { display: block; height: auto; padding: 0 !important; border: 0; background: none !important; min-width: 0; }
  table.calls tr td:nth-child(1) { grid-area: c1; align-self: start; padding-top: 3px !important; font-size: 14.5px; }
  table.calls tr td:nth-child(2) { grid-area: c2; }
  table.calls tr td:nth-child(3) { grid-area: c3; }
  table.calls tr td:nth-child(7) { grid-area: c7; justify-self: end; font-size: 14px; color: var(--ink-3); }
  table.calls tr td:nth-child(8) { grid-area: c8; justify-self: end; }
  table.calls tr td:nth-child(9) { grid-area: c9; justify-self: end; width: auto; }
  table.calls td.who bdi { white-space: nowrap; }
  table.calls tr.daybreak { display: block; padding: 7px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
  table.calls tr.daybreak td { padding: 0 !important; border: 0; }
  table.calls tr.r-in { background: var(--row-in); }
  table.calls tr.r-out { background: var(--row-out); }
  table.calls tr.r-miss { background: var(--row-miss); }
  table.calls tr.on { background: var(--brand-soft); }
  table.calls td .empty { padding: 28px 8px; }
  .dir { font-size: 13.5px; }
  .dir i { width: 20px; height: 20px; font-size: .72rem; }

  /* messages: one card a message */
  table.vmlist thead { display: none; }
  table.vmlist, table.vmlist tbody { display: block; }
  table.vmlist tr { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid var(--line-3); }
  table.vmlist tr td { display: block; height: auto; padding: 0 !important; border: 0; font-size: 14px; color: var(--ink-2); }
  /* the name line: the first cell -- or the one after the (hidden or shown) picking box */
  table.vmlist tr td:first-child, table.vmlist tr td.sel-cell + td { flex: 1 0 100%; color: var(--ink); font-size: 16px; }
  table.vmlist tr td:last-child { flex: 1 0 100%; margin-top: 8px; }
  table.vmlist tr.on, table.vmlist tr.picked { background: var(--brand-soft); }
  .panel.selecting table.vmlist tr td.sel-cell { flex: 0 0 auto; align-self: center; }
  .panel.selecting table.vmlist tr td.sel-cell + td { flex: 1 0 calc(100% - 40px); min-width: 0; }

  table.prompts thead { display: none; }
  table.prompts, table.prompts tbody, table.prompts tr, table.prompts td { display: block; width: 100%; }
  table.prompts tr { padding: 10px 0; border-bottom: 1px solid var(--line-3); }
  table.prompts td { border: 0; padding: 4px 14px !important; }
  table.prompts td.act { text-align: start; }
  .row-btns { justify-content: flex-start; }
  .prompt-audio { max-width: none; }

  .datahead h1 { font-size: 27px; }
  .ranges { margin-bottom: 16px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .page section.card:not(.receipts):not(.strip) { padding: 0 16px 14px; }
  .bars li { grid-template-columns: 88px minmax(0, 1fr) 92px; column-gap: 10px; font-size: 14px; }
  .bars.h1 { display: none; }
  .bars.h3 { display: block; }
  .tbl li.th { display: none; }
  .tbl.ext li, .tbl.mon li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 2px; }
  .tbl li .c-l { grid-column: 1 / -1; }
  .tbl li span[data-h]::before { content: attr(data-h) " "; color: var(--ink-3); font-size: 13px; }
  .thin li { grid-template-columns: 1fr; }

  .drawer.person { padding: 0 8px 20px; }
  .drawer.person .grip { display: block; }
  .bignum .tel { font-size: 28px; }
  .bignum .copy { display: none; }
  .drawer .dial { display: flex; width: 100%; min-height: 50px; font-size: 16px; margin-top: 14px; }
  /* a phone dials from the phone; the extension is the second way, quieter */
  .q .acts .c2c { display: none; }
  /* a table on a phone: the phone's own dialer */
  .ic-tel { display: inline-grid; }
  .ic-ring, .ic-copy, .dial-pick { display: none; }
  .q > .ring-note { grid-column: 1 / -1; }
  .cnum .dial-ic { width: 32px; height: 32px; }
  .unnamed > li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 11px 16px; }
  .unnamed li .tel { grid-column: 1; grid-row: 1; }
  .unnamed li .last { grid-column: 1; grid-row: 2; }
  .unnamed li .act { grid-column: 2; grid-row: 1 / span 2; }
  .drawer .c2c { margin-top: 8px; background: var(--sunk); border-color: transparent; box-shadow: none; color: var(--ink); }
  .set-off { padding: 16px; }
  .urow { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .u-k { flex-basis: 100%; min-width: 0; }
  .drawer { inset: auto 0 0 0; top: auto; width: auto; max-height: 90dvh; border-radius: 22px 22px 0 0; padding: 10px 8px 20px; }

  /* picking messages: the bar floats above the bottom tabs, and the list
     ends high enough for the last row to be reached under it */
  .panel.selecting { margin-bottom: 150px; }
  .panel.selecting > .vm-head {
    position: fixed; top: auto; inset-inline: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 28;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-pop);
  }
  .panel.selecting > .vm-head > .vm-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "n links" "heard del"; gap: 10px;
  }
  .vm-bar .vm-n { grid-area: n; min-width: 0; }
  .vm-bar .vm-links { grid-area: links; justify-self: end; }
  .vm-bar .vm-heard { grid-area: heard; }
  .vm-bar .vm-del { grid-area: del; }
  .vm-bar .btn { min-height: 44px; font-size: 15px; }
  .app2:has(.panel.selecting) .toast { bottom: 215px; }
}
