/* The role windows (roles.js). Chrome, fonts and design values come from ou-base.css; every rule here is scoped
   under .ou--role and names its own parts .rl-*, so the five service videos are never touched. */
.ou.ou--role { --paper: #e8efe9; }
/* English: the site's mono face throughout (the Hebrew face's narrow space would sit between mono letters) */
.ou.ou--role[lang="en"] { font-family: var(--font-mono); }
.ou--role .ou-view { font-size: clamp(11px, 1.9cqi, 14px); }
.ou--role .ou-bar { gap: 0.7em; }
.ou--role .ou-bar .ou-tag { white-space: nowrap; }
.ou--role .ou-body { min-height: 0; }
.ou--role .rl-two { grid-template-columns: 0.9fr 1.1fr; }
.ou--role .rl-pane { position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 0; min-width: 0; }
.ou--role .rl-two > .rl-pane + .rl-pane { border-inline-start: 1px solid var(--line); }
.ou--role .ou-cursor { z-index: 9; }
.ou--role .ou-cur { vertical-align: baseline; }
.ou--role bdi { font-family: var(--font-mono-he); font-size: 0.95em; }

/* shared parts: inputs, the approve button, the waiting note, the toast */
.ou--role .rl-input, .ou--role .rl-lg-input {
  display: flex; align-items: center; min-width: 0;
  height: 2.1em; padding: 0 0.65em;
  background: #0a0d0e; border: 1px solid var(--line-2); border-radius: 5px;
  white-space: nowrap; overflow: hidden;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.ou--role .rl-input.is-focus, .ou--role .rl-lg-input.is-focus { border-color: var(--accent); }
.ou--role .rl-input.is-filled:not(.is-focus) { border-color: rgba(20, 184, 166, 0.38); }
.ou--role .rl-foot { display: flex; align-items: center; gap: 0.8em; margin-top: 0.2em; }
.ou--role .rl-btn {
  display: inline-flex; align-items: center; gap: 0.4em; flex: none;
  height: 2.2em; padding: 0 1em; font-size: 0.93em;
  color: #04110f; background: var(--accent); border: 1px solid var(--accent); border-radius: 6px;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.ou--role .rl-btn svg { width: 1.05em; height: 1.05em; display: none; }
.ou--role .rl-btn.is-hover { background: #19c9b5; }
.ou--role .rl-btn.is-pressed { background: var(--accent-deep); border-color: var(--accent-deep); color: #e6fffb; }
.ou--role .rl-btn.is-done { background: transparent; color: var(--accent-soft); border-color: rgba(20, 184, 166, 0.5); }
.ou--role .rl-btn.is-done svg { display: inline; }
.ou--role .rl-wait { font-size: 0.84em; color: var(--amber); opacity: 0; white-space: nowrap; }
.ou--role .rl-toast {
  position: absolute; inset-inline: 1em; bottom: 0.9em;
  display: flex; align-items: center; gap: 0.55em;
  padding: 0.5em 0.7em;
  background: #111617; border: 1px solid rgba(20, 184, 166, 0.45); border-radius: 6px;
  opacity: 0;
}
.ou--role .rl-toast svg { width: 1.1em; height: 1.1em; color: var(--accent); }
.ou--role .rl-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: 0.42em 0; border-bottom: 1px solid var(--line); }
.ou--role .rl-kv-k { color: var(--dim); font-size: 0.88em; white-space: nowrap; }
.ou--role .rl-kv-v { white-space: nowrap; border-radius: 3px; padding: 0 0.25em; transition: background-color 150ms ease, box-shadow 150ms ease; }
.ou--role .rl-kv.is-dim .rl-kv-v { color: var(--muted); }

/* the virtual employee's cursor: teal, with its name, so it never reads as a person's hand */
.ou--role .rl-agent { position: absolute; top: 0; left: 0; z-index: 9; pointer-events: none; opacity: 0; }
.ou--role .rl-agent .ou-cursor { position: static; display: block; opacity: 1; }
.ou--role .rl-agent-l {
  position: absolute; top: 24px; inset-inline-start: 14px;
  padding: 0.1em 0.5em; font-size: 0.74em; white-space: nowrap;
  color: #04211d; background: var(--accent-soft); border-radius: 4px;
}
.ou--role[dir="rtl"] .rl-agent-l { inset-inline-start: auto; right: auto; left: 14px; }
.ou--role .rl-agent.is-flip .rl-agent-l { left: auto; right: calc(100% - 6px); }   /* near the window's right edge (roles.js) */

/* ---------------------------------------------------------------- 1. invoices */
.rl-invoice .rl-count {
  font-size: 0.82em; padding: 0 0.5em; border-radius: 4px; white-space: nowrap;
  color: var(--amber); border: 1px solid rgba(217, 164, 65, 0.4);
  transition: color 150ms ease, border-color 150ms ease;
}
.rl-invoice .rl-count.is-zero { color: var(--accent-soft); border-color: rgba(20, 184, 166, 0.5); }
.rl-invoice .rl-chat { position: relative; overflow: clip; background: #0a0d0d; }
.rl-invoice .rl-chat-list { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 8px; padding: 0.7em 0.8em; }
.rl-invoice .rl-msg { justify-self: start; padding: 0.35em 0.55em 0.3em; background: #141a1b; border: 1px solid var(--line); border-radius: 8px; }
.rl-invoice .rl-msg.is-old { opacity: 0.6; }
.rl-invoice .rl-msg.is-old .rl-thumb { width: 7em; height: 3.2em; }
.rl-invoice .rl-msg.is-old .rl-mini { transform: scale(0.55) !important; }
.rl-invoice .rl-msg-from { font-size: 0.78em; color: var(--accent-soft); }
.rl-invoice .rl-msg-meta { display: flex; align-items: center; gap: 0.8em; font-size: 0.74em; color: var(--dim); }
.rl-invoice .rl-msg-meta bdi { font-family: var(--font-mono); }
.rl-invoice .rl-thumb { position: relative; display: grid; place-items: center; width: 9.6em; height: 6.2em; margin: 0.3em 0 0.25em; background: #1c2324; border-radius: 4px; overflow: hidden; }
.rl-invoice .rl-mini { width: 4.6em; height: 5.8em; padding: 0.5em 0.45em; background: #dcd6c8; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55); }
.rl-invoice .rl-mini i { display: block; height: 0.22em; margin: 0 0 0.42em; border-radius: 1px; background: rgba(16, 24, 22, 0.28); }
.rl-invoice .rl-mini i:nth-child(1) { width: 70%; height: 0.32em; }
.rl-invoice .rl-mini i:nth-child(2) { width: 90%; }
.rl-invoice .rl-mini i:nth-child(3) { width: 60%; }
.rl-invoice .rl-mini i:nth-child(4) { width: 80%; }
.rl-invoice .rl-scanline { position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--accent-soft); box-shadow: 0 0 8px rgba(94, 234, 212, 0.8); opacity: 0; }
.rl-invoice .rl-chip { display: inline-flex; align-items: center; gap: 0.3em; padding: 0 0.4em; color: var(--accent-soft); border: 1px solid rgba(20, 184, 166, 0.5); border-radius: 4px; opacity: 0; }
.rl-invoice .rl-chip svg { width: 1em; height: 1em; }
.rl-invoice .rl-erppane { background: #090b0c; }
.rl-invoice .rl-form { display: grid; align-content: start; gap: 0.55em; padding: 0.8em 1em; }
.rl-invoice .rl-frow { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); align-items: center; gap: 0.8em; }
.rl-invoice .rl-flabel { font-size: 0.86em; color: var(--dim); white-space: nowrap; }
.rl-invoice .rl-erppane { grid-template-rows: auto auto 1fr; }
.rl-invoice .rl-recent { align-self: end; margin: 0 1em 0.9em; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #0d1112; }
.rl-invoice .rl-recent-h { display: flex; align-items: center; gap: 0.45em; padding: 0.35em 0.7em; font-size: 0.8em; color: var(--dim); background: #111617; border-bottom: 1px solid var(--line); }
.rl-invoice .rl-recent-h svg { width: 1em; height: 1em; }
.rl-invoice .rl-tr { display: grid; grid-template-columns: 6.2em minmax(0, 1fr) 6.4em; gap: 0.8em; align-items: center; padding: 0 0.7em; height: 2.1em; font-size: 0.86em; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.rl-invoice .rl-tr:last-child { border-bottom: 0; }
.rl-invoice .rl-tr > :last-child { justify-self: end; }
.rl-invoice .rl-tr.is-head { height: 1.9em; color: var(--dim); }
.rl-invoice .rl-tr.is-head > * { font-size: 0.9em; }
.rl-invoice .rl-tr.is-head bdi { font-family: var(--font-he); }
.rl-invoice .rl-tr span { overflow: hidden; text-overflow: ellipsis; }
.rl-invoice .rl-tr.is-new { height: 0; opacity: 0; }
.rl-invoice .rl-tr.is-lit { background: rgba(20, 184, 166, 0.12); }

/* ---------------------------------------------------------------- 2. office programs */
.rl-software .rl-two { grid-template-columns: 1fr 1fr; }
.rl-software .rl-src { background: #0a0d0d; }
.rl-software .rl-card { align-self: start; margin: 0.8em 0.9em; padding: 0.4em 0.8em 0.5em; background: #0e1213; border: 1px solid var(--line-2); border-radius: 8px; }
.rl-software .rl-card-h { display: flex; align-items: center; gap: 0.45em; padding: 0.25em 0 0.35em; color: var(--muted); font-size: 0.9em; }
.rl-software .rl-card-h svg { width: 1.05em; height: 1.05em; color: var(--accent); }
.rl-software .rl-kv:last-child { border-bottom: 0; }
.rl-software .rl-kv-v.is-sel { background: rgba(94, 234, 212, 0.22); box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.55); }
/* the old desktop program: grey, square, dense, the way such programs look */
.rl-software .rl-legacy { grid-template-rows: auto auto 1fr auto; background: #c9cdcc; color: #1b2120; font-family: var(--font-he); }
.rl-software .rl-lg-title { display: flex; align-items: center; justify-content: space-between; height: 1.9em; padding: 0 0.6em; font-size: 0.86em; color: #f2f4f3; background: #3e4c4a; }
.rl-software .rl-lg-btns { width: 3.2em; height: 0.7em; background: linear-gradient(90deg, #9aa5a3 0 26%, transparent 26% 37%, #9aa5a3 37% 63%, transparent 63% 74%, #9aa5a3 74%); }
.rl-software .rl-lg-menu { display: flex; gap: 1.1em; padding: 0.2em 0.7em; font-size: 0.8em; border-bottom: 1px solid #a7adab; background: #d6d9d8; }
.rl-software .rl-lg-form { display: grid; align-content: start; gap: 0.5em; padding: 0.8em 0.9em; }
.rl-software .rl-lg-row { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); align-items: center; gap: 0.6em; }
.rl-software .rl-lg-label { font-size: 0.84em; color: #3a4442; white-space: nowrap; }
.rl-software .rl-lg-input { height: 1.9em; padding: 0 0.45em; background: #fff; color: #111; border: 1px solid #7d8583; border-radius: 0; box-shadow: inset 1px 1px 0 #9aa09e; }
.rl-software .rl-lg-input.is-focus { border-color: #0f766e; box-shadow: inset 0 0 0 1px #0f766e; }
.rl-software .rl-lg-input .ou-cur { background: #111; }
.rl-software .rl-legacy .rl-btn { border-radius: 2px; }
.rl-software .rl-lg-notes { align-items: start; }
.rl-software .rl-lg-area { height: 4.2em; }
.rl-software .rl-lg-status { display: flex; justify-content: space-between; padding: 0.15em 0.7em; font-size: 0.76em; color: #3a4442; background: #d6d9d8; border-top: 1px solid #a7adab; }
.rl-software .rl-legacy .rl-btn.is-done { color: #0f766e; border-color: #0f766e; }
.rl-software .rl-legacy .rl-wait { color: #8a5a00; }
.rl-software .rl-carry {
  position: absolute; top: 0; left: 0; z-index: 8;
  padding: 0.15em 0.5em; font-size: 0.82em; white-space: nowrap;
  color: #04211d; background: rgba(94, 234, 212, 0.92); border-radius: 4px;
  opacity: 0; pointer-events: none;
}
.rl-software[dir="rtl"] .rl-carry { direction: rtl; }

/* ---------------------------------------------------------------- 3. WhatsApp rep */
.rl-whatsapp .rl-two { grid-template-columns: 1.25fr 0.75fr; }
.rl-whatsapp .rl-wachat { grid-template-rows: auto 1fr; background: #0a0d0d; }
.rl-whatsapp .rl-wa-h { display: flex; align-items: center; gap: 0.6em; height: 2.9em; padding: 0 0.9em; border-bottom: 1px solid var(--line); }
.rl-whatsapp .rl-av { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #1d2a29; color: var(--accent-soft); font-size: 0.9em; }
.rl-whatsapp .rl-who { display: grid; line-height: 1.25; }
.rl-whatsapp .rl-who b { font-weight: 500; font-size: 0.92em; }
.rl-whatsapp .rl-who span { font-size: 0.76em; color: var(--dim); }
.rl-whatsapp .rl-wa-area { position: relative; overflow: clip; min-height: 0; }
.rl-whatsapp .rl-wa-list { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 7px; padding: 0.6em 0.9em; }
.rl-whatsapp .rl-b {
  display: none; align-self: flex-start; max-width: 80%;
  padding: 0.4em 0.65em 0.3em; font-size: 0.9em; line-height: 1.45;
  background: #161c1d; border: 1px solid var(--line); border-radius: 8px;
}
.rl-whatsapp .rl-b.is-shown { display: grid; }
.rl-whatsapp .rl-b.is-me { align-self: flex-end; background: rgba(20, 184, 166, 0.12); border-color: rgba(20, 184, 166, 0.32); }
.rl-whatsapp .rl-b-agent { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.78em; color: var(--accent-soft); }
.rl-whatsapp .rl-b-agent svg { width: 1em; height: 1em; }
.rl-whatsapp .rl-b-time { justify-self: end; font: 500 0.72em/1.4 var(--font-mono); color: var(--dim); }
.rl-whatsapp .rl-typing.is-shown { display: inline-flex; gap: 0.3em; padding: 0.65em 0.75em; }
.rl-whatsapp .rl-typing i { width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--accent-soft); opacity: 0.7; }
.rl-whatsapp .rl-day { display: none; align-self: center; padding: 0.1em 0.7em; font-size: 0.76em; color: var(--muted); background: #121718; border: 1px solid var(--line); border-radius: 4px; }
.rl-whatsapp .rl-day.is-shown { display: block; }
.rl-whatsapp .rl-det { background: #090b0c; }
.rl-whatsapp .rl-det-rows { display: grid; align-content: start; padding: 0.5em 0.9em; }
.rl-whatsapp .rl-det .rl-kv-v { opacity: 0; }
.rl-whatsapp .rl-handed { display: flex; align-items: center; gap: 0.45em; margin-top: 0.8em; padding: 0.45em 0.6em; font-size: 0.86em; color: var(--accent-soft); border: 1px solid rgba(20, 184, 166, 0.45); border-radius: 6px; opacity: 0; }
.rl-whatsapp .rl-handed svg { width: 1.05em; height: 1.05em; flex: none; }
.rl-whatsapp[dir="rtl"] .rl-handed svg { transform: scaleX(-1); }

/* ---------------------------------------------------------------- 4. transcription */
.rl-transcribe .rl-tr { grid-template-rows: auto 1fr; }
.rl-transcribe .rl-rec { display: flex; align-items: center; gap: 0.8em; height: 4.2em; padding: 0 1em; border-bottom: 1px solid var(--line); background: #0a0d0d; }
.rl-transcribe .rl-mic { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); flex: none; }
.rl-transcribe .rl-rec.is-live .rl-mic { border-color: rgba(224, 100, 92, 0.6); color: var(--red); }
.rl-transcribe .rl-mic svg { width: 1.1em; height: 1.1em; }
.rl-transcribe .rl-rec-l { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.86em; color: var(--muted); white-space: nowrap; min-width: 7.5em; }
.rl-transcribe .rl-dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--dim); }
.rl-transcribe .rl-rec.is-live .rl-dot { background: var(--red); }
.rl-transcribe .rl-wave { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 2.6em; min-width: 0; direction: ltr; }
.rl-transcribe .rl-wave i { flex: none; width: 2px; height: 100%; border-radius: 1px; background: var(--accent-soft); opacity: 0.85; transform: scaleY(0.06); }
.rl-transcribe .rl-rec-c { font: 500 0.86em/1 var(--font-mono); color: var(--muted); }
.rl-transcribe .rl-trans { display: grid; align-content: start; gap: 0.7em; padding: 0.9em 1.1em; background: #090b0c; }
.rl-transcribe .rl-tline { display: grid; grid-template-columns: 3.4em 4.6em minmax(0, 1fr); gap: 0.8em; align-items: baseline; opacity: 0; }
.rl-transcribe .rl-ts { font: 500 0.78em/1 var(--font-mono); color: var(--dim); direction: ltr; }
.rl-transcribe .rl-tfoot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1em; align-items: start; margin-top: 0.4em; padding-top: 0.9em; border-top: 1px solid var(--line); }
.rl-transcribe .rl-tq { display: grid; gap: 0.35em; padding: 0.55em 0.75em 0.6em; background: #0e1213; border: 1px solid var(--line-2); border-radius: 8px; opacity: 0; }
.rl-transcribe .rl-tq-h { font-size: 0.76em; color: var(--dim); }
.rl-transcribe .rl-tq-q { justify-self: start; padding: 0.1em 0.6em; font-size: 0.88em; background: rgba(20, 184, 166, 0.11); border: 1px solid rgba(20, 184, 166, 0.35); border-radius: 6px; opacity: 0; }
.rl-transcribe .rl-tq-a { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2em; font-size: 0.88em; }
.rl-transcribe .rl-tq-a li { position: relative; padding-inline-start: 0.9em; opacity: 0; }
.rl-transcribe .rl-tq-a li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.7em; width: 0.35em; height: 0.35em; background: var(--accent); }
.rl-transcribe .rl-spk { font-size: 0.8em; white-space: nowrap; }
.rl-transcribe .rl-spk.is-s0 { color: var(--accent-soft); }
.rl-transcribe .rl-spk.is-s1 { color: var(--amber); }
.rl-transcribe .rl-tbox { line-height: 1.55; }
.rl-transcribe .rl-ready { display: inline-flex; align-items: center; gap: 0.45em; justify-self: start; white-space: nowrap; padding: 0.35em 0.65em; font-size: 0.86em; color: var(--accent-soft); border: 1px solid rgba(20, 184, 166, 0.45); border-radius: 6px; opacity: 0; }
.rl-transcribe .rl-ready svg { width: 1.05em; height: 1.05em; }

/* ---------------------------------------------------------------- 5. answers from the files */
.rl-answers .rl-two { grid-template-columns: 1fr 1fr; }
.rl-answers .rl-ask { grid-template-rows: auto 1fr auto; background: #0a0d0d; }
.rl-answers .rl-ask-area { display: grid; align-content: start; gap: 0.6em; padding: 0.75em 0.9em; min-height: 0; overflow: clip; }
.rl-answers .rl-ask-area { position: relative; }
.rl-answers .rl-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 2em; text-align: center; font-size: 0.86em; color: var(--dim); text-wrap: balance; }
.rl-answers .rl-q { justify-self: end; max-width: 92%; padding: 0.35em 0.7em; font-size: 0.9em; background: rgba(20, 184, 166, 0.11); border: 1px solid rgba(20, 184, 166, 0.35); border-radius: 8px; opacity: 0; }
.rl-answers .rl-searching { display: flex; align-items: center; gap: 0.55em; font-size: 0.86em; color: var(--muted); opacity: 0; }
.rl-answers .rl-dots { display: inline-flex; gap: 0.25em; }
.rl-answers .rl-dots i { width: 0.38em; height: 0.38em; border-radius: 50%; background: var(--accent); }
.rl-answers .rl-searching, .rl-answers .rl-ans-card { grid-area: 2 / 1; }
.rl-answers .rl-ans-card { display: grid; gap: 0.45em; padding: 0.6em 0.75em 0.65em; background: #0e1213; border: 1px solid var(--line-2); border-radius: 8px; opacity: 0; }
.rl-answers .rl-ans-from { font-size: 0.78em; color: var(--dim); }
.rl-answers .rl-quote { margin: 0; padding-inline-start: 0.7em; border-inline-start: 2px solid var(--accent); line-height: 1.55; }
.rl-answers .rl-src {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.1em 0.5em; font-size: 0.78em; white-space: nowrap;
  color: var(--muted); background: #111617; border: 1px solid var(--line-2); border-radius: 4px;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.rl-answers .rl-src svg { width: 1em; height: 1em; }
.rl-answers .rl-src > span:last-child { margin-inline-start: 0.35em; padding-inline-start: 0.6em; border-inline-start: 1px solid var(--line-2); }
.rl-answers .rl-src.is-hover { color: var(--text); border-color: var(--accent); background: rgba(20, 184, 166, 0.12); }
.rl-answers .rl-askbar { display: flex; align-items: center; gap: 0.5em; padding: 0.55em 0.8em 0.6em; border-top: 1px solid var(--line); }
.rl-answers .rl-askin {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center;
  height: 2.2em; padding: 0 0.7em; font-size: 0.9em; white-space: nowrap; overflow: hidden;
  background: #0a0d0e; border: 1px solid var(--line-2); border-radius: 6px;
  transition: border-color 150ms ease;
}
.rl-answers .rl-askin.is-focus { border-color: var(--accent); }
.rl-answers .rl-ph { position: absolute; inset-inline-start: 0.75em; color: var(--dim); }
.rl-answers .rl-typed { display: inline-flex; align-items: center; }
.rl-answers .rl-typed .ou-cur { margin-inline-start: 1px; }
.rl-answers .rl-send {
  flex: none; display: inline-flex; align-items: center; gap: 0.4em;
  height: 2.2em; padding: 0 0.8em; font-size: 0.9em; border-radius: 6px;
  color: var(--dim); background: #141a1b; border: 1px solid var(--line-2);
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.rl-answers .rl-send svg { width: 1.05em; height: 1.05em; }
.rl-answers[dir="rtl"] .rl-send svg { transform: scaleX(-1); }   /* Hebrew: the send arrow points left */
.rl-answers .rl-send.is-ready { color: #04110f; background: var(--accent); border-color: var(--accent); }
.rl-answers .rl-send.is-hover { background: #19c9b5; border-color: #19c9b5; color: #04110f; }
.rl-answers .rl-send.is-pressed { background: var(--accent-deep); border-color: var(--accent-deep); color: #e6fffb; }
.rl-answers .rl-docpane { background: #090b0c; }
.rl-answers .rl-dtitle { position: relative; display: grid; min-width: 0; }
.rl-answers .rl-dtitle > * { grid-area: 1 / 1; }
.rl-answers .rl-dt-b { display: inline-flex; align-items: center; gap: 0.4em; opacity: 0; }
.rl-answers .rl-dt-b svg { width: 1em; height: 1em; }
.rl-answers .rl-page { font-size: 0.82em; color: var(--dim); opacity: 0; white-space: nowrap; }
.rl-answers .rl-dstack { position: relative; min-height: 0; }
.rl-answers .rl-folder, .rl-answers .rl-paper { position: absolute; inset: 0; }
.rl-answers .rl-folder { display: grid; align-content: start; padding: 0.5em 0.9em; }
.rl-answers .rl-file { display: flex; align-items: center; gap: 0.5em; padding: 0.45em 0.3em; font-size: 0.88em; border-bottom: 1px solid var(--line); color: var(--muted); border-radius: 3px; transition: background-color 120ms ease, color 120ms ease; }
.rl-answers .rl-file svg { width: 1.05em; height: 1.05em; color: var(--dim); }
.rl-answers .rl-file.is-scan { background: rgba(20, 184, 166, 0.10); color: var(--text); }
.rl-answers .rl-file.is-hit { background: rgba(20, 184, 166, 0.18); color: var(--text); }
.rl-answers .rl-paper {
  inset: 0.8em 0.9em auto; display: grid; gap: 0.5em; align-content: start;
  padding: 0.9em 1em 1em; color: var(--ink); background: var(--paper); border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); opacity: 0;
}
.rl-answers .rl-paper p { margin: 0; font-size: 0.88em; line-height: 1.6; }
.rl-answers .rl-ph-h { font-size: 0.95em; }
.rl-answers .rl-pp { color: #3c4744; }
.rl-answers .rl-hit { position: relative; color: var(--ink); }
.rl-answers .rl-mark { position: absolute; inset: -0.1em -0.25em; border-radius: 3px; background: rgba(20, 184, 166, 0.30); transform: scaleX(0); transform-origin: right center; }
.rl-answers[dir="ltr"] .rl-mark { transform-origin: left center; }
.rl-answers .rl-hit.is-on .rl-mark { box-shadow: inset 0 0 0 1.5px var(--accent-deep); }
.rl-answers .rl-hit-t { position: relative; }
.rl-answers .rl-skel { display: grid; gap: 0.45em; padding-top: 0.2em; }
.rl-answers .rl-skel i { display: block; height: 0.45em; border-radius: 2px; background: rgba(16, 24, 22, 0.12); }
.rl-answers .rl-skel i:last-child { width: 70%; }

/* ---------------------------------------------------------------- narrow windows (phones): one fixed height for all
   five, so switching roles never moves the page; two-pane windows stack */
@container (max-width: 480px) {
  .ou--role .ou-view { height: 37em; }
  .ou--role .ou-win { height: 100%; }
  .ou--role .ou-app { display: inline; max-width: 62%; overflow: hidden; text-overflow: ellipsis; }
  .ou--role[lang="en"]:not(.ou--sector) .ou-app-x { display: none; }   /* the English titles are longer; the Hebrew ones fit whole */
  .ou--role .ou-status { display: none; }
  .ou--role .rl-two { grid-template-columns: minmax(0, 1fr) !important; }
  .ou--role .rl-two > .rl-pane + .rl-pane { border-inline-start: 0; border-top: 1px solid var(--line); }
  .rl-invoice .rl-two { grid-template-rows: 9.8em 1fr; }
  .rl-invoice .rl-msg { display: grid; grid-template-columns: auto auto; grid-template-areas: "thumb from" "thumb meta"; column-gap: 0.7em; align-items: center; }
  .rl-invoice .rl-msg-from { grid-area: from; align-self: end; }
  .rl-invoice .rl-msg-meta { grid-area: meta; align-self: start; flex-wrap: wrap; gap: 0.3em 0.6em; }
  .rl-invoice .rl-thumb { grid-area: thumb; width: 6.4em; height: 4.4em; margin: 0; }
  .rl-invoice .rl-mini { width: 3.4em; height: 4.4em; padding: 0.4em 0.35em; }
  .rl-invoice .rl-tr.is-head { display: none; }
  .rl-invoice .rl-erppane .ou-pane-h { height: 2.1em; }
  .rl-invoice .rl-msg.is-old { display: none; }
  .rl-invoice .rl-form { gap: 0.3em; padding: 0.5em 0.8em; }
  .rl-invoice .rl-frow { grid-template-columns: 6.6em minmax(0, 1fr); }
  .rl-invoice .rl-recent { margin: 0.2em 0.8em 0.6em; }
  .rl-invoice .rl-tr:nth-child(4), .rl-invoice .rl-msg.is-older { display: none; }
  .rl-software .rl-two { grid-template-rows: auto 1fr; }
  .rl-software .rl-card { margin: 0.5em 0.7em; }
  .rl-software .rl-kv.is-dim { display: none; }
  .rl-software .ou-pane-h { display: none; }
  .rl-software .rl-src { grid-template-rows: 1fr; }
  .rl-software .rl-lg-form { gap: 0.35em; padding: 0.6em 0.9em; }   /* the old program fits above the log line at 11px text */
  .rl-software .rl-lg-area { height: 2.4em; }
  .rl-whatsapp .rl-two { grid-template-rows: 1fr auto; }
  .rl-whatsapp .rl-det { grid-template-rows: auto; }
  .rl-whatsapp .rl-det .ou-pane-h { display: none; }
  .rl-whatsapp .rl-det-rows { grid-template-columns: repeat(3, minmax(0, 1fr)) ; gap: 0 0.6em; padding: 0.4em 0.8em 0.5em; }
  .rl-whatsapp .rl-det .rl-kv { display: grid; justify-content: start; gap: 0; border: 0; padding: 0; }
  .rl-whatsapp .rl-det .rl-kv-v { padding: 0; font-size: 0.9em; overflow: hidden; text-overflow: ellipsis; }
  .rl-whatsapp .rl-handed { grid-column: 1 / -1; margin-top: 0.35em; padding: 0.25em 0.5em; }
  .rl-whatsapp .rl-b { max-width: 88%; }
  .rl-transcribe .rl-rec { gap: 0.6em; padding: 0 0.8em; }
  .rl-transcribe .rl-rec-l { min-width: 0; }
  .rl-transcribe .rl-tline { grid-template-columns: 3.2em minmax(0, 1fr); gap: 0.1em 0.6em; }
  .rl-transcribe .rl-tbox { grid-column: 1 / -1; }
  .rl-transcribe .rl-trans { gap: 0.5em; padding: 0.7em 0.9em; }
  .rl-transcribe .rl-tfoot { grid-template-columns: minmax(0, 1fr); gap: 0.5em; padding-top: 0.6em; }
  .rl-transcribe .rl-tq-h { display: none; }
  .rl-transcribe .rl-wave i:nth-child(2n) { display: none; }
  .rl-answers .rl-two { grid-template-rows: 1fr 11.5em; }
  .rl-answers .rl-paper { inset: 0.5em 0.7em auto; padding: 0.6em 0.8em; gap: 0.3em; }
  .rl-answers .rl-paper .rl-pp:not(.rl-hit), .rl-answers .rl-skel { display: none; }
  .rl-answers .rl-folder { padding: 0.2em 0.8em; }
  .rl-answers .rl-file:nth-child(n+4) { display: none; }
}

/* >>> phone text floor (tools/floor-demo-text.py, generated) */
@container (max-width: 480px) {
  .ou--role bdi { font-size: max(11px, 0.95em); }
  .ou--role .rl-btn { font-size: max(11px, 0.93em); }
  .ou--role .rl-wait { font-size: max(11px, 0.84em); }
  .ou--role .rl-kv-k { font-size: max(11px, 0.88em); }
  .ou--role .rl-agent-l { font-size: max(11px, 0.74em); }
  .rl-invoice .rl-count { font-size: max(11px, 0.82em); }
  .rl-invoice .rl-msg-from { font-size: max(11px, 0.78em); }
  .rl-invoice .rl-msg-meta { font-size: max(11px, 0.74em); }
  .rl-invoice .rl-flabel { font-size: max(11px, 0.86em); }
  .rl-invoice .rl-recent-h { font-size: max(11px, 0.8em); }
  .rl-invoice .rl-tr { font-size: max(11px, 0.86em); }
  .rl-invoice .rl-tr.is-head > * { font-size: max(11px, 0.9em); }
  .rl-software .rl-card-h { font-size: max(11px, 0.9em); }
  .rl-software .rl-lg-title { font-size: max(11px, 0.86em); }
  .rl-software .rl-lg-menu { font-size: max(11px, 0.8em); }
  .rl-software .rl-lg-label { font-size: max(11px, 0.84em); }
  .rl-software .rl-lg-status { font-size: max(11px, 0.76em); }
  .rl-software .rl-carry { font-size: max(11px, 0.82em); }
  .rl-whatsapp .rl-av { font-size: max(11px, 0.9em); }
  .rl-whatsapp .rl-who b { font-size: max(11px, 0.92em); }
  .rl-whatsapp .rl-who span { font-size: max(11px, 0.76em); }
  .rl-whatsapp .rl-b { font-size: max(11px, 0.9em); }
  .rl-whatsapp .rl-b-agent { font-size: max(11px, 0.78em); }
  .rl-whatsapp .rl-b-time { font-size: max(11px, 0.72em); }
  .rl-whatsapp .rl-day { font-size: max(11px, 0.76em); }
  .rl-whatsapp .rl-handed { font-size: max(11px, 0.86em); }
  .rl-transcribe .rl-rec-l { font-size: max(11px, 0.86em); }
  .rl-transcribe .rl-rec-c { font-size: max(11px, 0.86em); }
  .rl-transcribe .rl-ts { font-size: max(11px, 0.78em); }
  .rl-transcribe .rl-tq-h { font-size: max(11px, 0.76em); }
  .rl-transcribe .rl-tq-q { font-size: max(11px, 0.88em); }
  .rl-transcribe .rl-tq-a { font-size: max(11px, 0.88em); }
  .rl-transcribe .rl-spk { font-size: max(11px, 0.8em); }
  .rl-transcribe .rl-ready { font-size: max(11px, 0.86em); }
  .rl-answers .rl-empty { font-size: max(11px, 0.86em); }
  .rl-answers .rl-q { font-size: max(11px, 0.9em); }
  .rl-answers .rl-searching { font-size: max(11px, 0.86em); }
  .rl-answers .rl-ans-from { font-size: max(11px, 0.78em); }
  .rl-answers .rl-src { font-size: max(11px, 0.78em); }
  .rl-answers .rl-askin { font-size: max(11px, 0.9em); }
  .rl-answers .rl-send { font-size: max(11px, 0.9em); }
  .rl-answers .rl-page { font-size: max(11px, 0.82em); }
  .rl-answers .rl-file { font-size: max(11px, 0.88em); }
  .rl-answers .rl-paper p { font-size: max(11px, 0.88em); }
  .rl-answers .rl-ph-h { font-size: max(11px, 0.95em); }
  @container (max-width: 480px) { .rl-whatsapp .rl-det .rl-kv-v { font-size: max(11px, 0.9em); } }
}
/* <<< phone text floor */
