/* Gemeinsame Recherche (research-collab.js): in Recherche (owner) and on /ui/recherche (colleague) – the same look.
   Two panels that fill the window: the chat, and a side panel with TARVI Live and the working area. */
.rx-workspace {
  --rx-glass: linear-gradient(180deg, rgba(22, 38, 56, .78), rgba(11, 22, 35, .74));
  --rx-line: rgba(150, 196, 236, .13); --rx-line-strong: rgba(150, 196, 236, .24);
  --rx-text: #e9f2f9; --rx-muted: #93a8bc; --rx-faint: #6f8599;
  --rx-accent: #5fd4f4; --rx-accent-soft: rgba(95, 212, 244, .14); --rx-violet: #b59cff;
  --rx-radius: 20px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--rx-text);
  height: calc(100dvh - var(--rx-top, 120px) - 14px); min-height: 560px;
}
.rx-workspace :is(button, input, select, textarea) { font: inherit; }
.rx-workspace :focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 2px; }

/* head: one line */
.rx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 0 4px; }
.rx-title { min-width: 0; }
.rx-scope { margin: 6px 0 0; font-size: .78rem; color: var(--rx-accent); opacity: .85; }
.rx-scope.shared { color: #f0c27a; }
.rx-title-row { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rx-title-row h1 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-width: 0; }
.rx-rename-button { flex: none; border: 0; background: none; padding: 2px 4px; color: var(--rx-accent); font: inherit; font-size: .8rem; cursor: pointer; opacity: .75; }
.rx-rename-button:hover, .rx-rename-button:focus-visible { opacity: 1; text-decoration: underline; }
.rx-rename { width: min(100%, 640px); box-sizing: border-box; font: inherit; font-size: 1.2rem; padding: 6px 10px; border-radius: 10px; }
.rx-title h1 { margin: 0; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; font-weight: 700; overflow-wrap: anywhere;
  background: linear-gradient(90deg, #f2f8fc 0%, #bfeaf8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rx-eyebrow { margin: 0 0 4px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rx-accent); font-weight: 600; }
.rx-last { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--rx-muted); font-size: .88rem; overflow-wrap: anywhere; }
.rx-dot-live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4ee09a; box-shadow: 0 0 0 4px rgba(78, 224, 154, .14); }
.rx-back { display: inline-block; margin: 0 0 6px; padding: 0; border: 0; background: none; color: var(--rx-muted); cursor: pointer; font-size: .85rem; }
.rx-back:hover { color: var(--rx-text); }
.rx-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rx-here { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rx-here-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--rx-line); background: rgba(255, 255, 255, .03); font-size: .82rem; }
.rx-here-person.typing { border-color: var(--rx-accent); }
.rx-here-person .rx-avatar { width: 24px; height: 24px; font-size: .68rem; }

/* buttons */
.rx-button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 12px; cursor: pointer; font-size: .88rem; font-weight: 600;
  border: 1px solid var(--rx-line-strong); background: rgba(255, 255, 255, .05); color: var(--rx-text); transition: background .15s, border-color .15s, transform .1s; }
.rx-button:hover { background: rgba(255, 255, 255, .09); }
.rx-button:active { transform: scale(.98); }
.rx-button.primary { background: linear-gradient(180deg, #74def7, #41bfe3); border-color: transparent; color: #04131d; }
.rx-button.ghost { background: transparent; border-color: transparent; color: var(--rx-accent); padding: 0 8px; }
.rx-button:disabled { opacity: .5; cursor: default; }
.rx-badge, .rx-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: var(--rx-accent); color: #04131d; }
.rx-count { background: rgba(255, 255, 255, .1); color: var(--rx-muted); margin-left: 5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .68rem; }
.rx-remove { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--rx-faint); cursor: pointer; font-size: 1.05rem; line-height: 1; }
.rx-remove:hover { color: var(--rx-text); background: rgba(255, 255, 255, .08); }
.rx-status { position: fixed; z-index: 60; left: 50%; top: max(18px, env(safe-area-inset-top)); transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px));
  margin: 0; padding: 10px 18px; border-radius: 14px; font-size: .9rem; color: var(--rx-text); background: rgba(12, 24, 37, .92); border: 1px solid var(--rx-line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rx-status:empty { display: none; }
.rx-status.error { color: #ffb3b3; border-color: rgba(255, 140, 140, .45); }
/* "Was ist neu?" window: centred card on a computer, a sheet from the bottom on a phone */
.rx-sheet-backdrop { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 24px; background: rgba(2, 8, 14, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: rx-fade .18s ease-out; }
.rx-sheet { display: flex; flex-direction: column; width: min(560px, 100%); max-height: min(72vh, 640px); border-radius: 22px; overflow: hidden;
  border: 1px solid var(--rx-line-strong); background: linear-gradient(180deg, rgba(18, 32, 48, .98), rgba(10, 20, 32, .98)); color: var(--rx-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: rx-sheet-in .22s cubic-bezier(.2, .8, .2, 1); }
.rx-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--rx-line); }
.rx-sheet-head h3 { margin: 0; font-size: 1.05rem; }
.rx-sheet-close { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rx-line-strong); background: rgba(255, 255, 255, .06);
  color: var(--rx-text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.rx-sheet-body { padding: 14px 18px 20px; overflow-y: auto; overscroll-behavior: contain; line-height: 1.55; }
.rx-sheet-body > :first-child { margin-top: 0; }
.rx-sheet-loading { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--rx-muted); }
.rx-sheet-error { color: #ff9aa8; margin-top: 0; }
.rx-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(95, 212, 244, .25); border-top-color: var(--rx-accent); animation: rx-spin .8s linear infinite; }
@keyframes rx-spin { to { transform: rotate(360deg); } }
@keyframes rx-fade { from { opacity: 0; } }
@keyframes rx-sheet-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 640px) {
  .rx-sheet-backdrop { place-items: end stretch; padding: 0; }
  .rx-sheet { width: 100%; max-height: 82dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (prefers-reduced-motion: reduce) { .rx-sheet-backdrop, .rx-sheet, .rx-spinner { animation: none; } }
html[data-theme="light"] .rx-sheet { background: #fbfdff; color: #10202d; }

/* two panels filling the window */
.rx-shell { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 38%, 640px); gap: 14px; }
.rx-panel { min-height: 0; display: flex; flex-direction: column; border-radius: var(--rx-radius); border: 1px solid var(--rx-line); background: var(--rx-glass);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 24px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; }

/* chat */
.rx-log { flex: 1; min-height: 0; overflow-y: auto; padding: 22px clamp(14px, 2.4vw, 34px) 12px; display: flex; flex-direction: column; gap: 18px; }
.rx-msg { display: flex; gap: 12px; align-items: flex-start; max-width: min(100%, 980px); }
.rx-msg.mine { flex-direction: row-reverse; align-self: flex-end; max-width: min(88%, 760px); }
.rx-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(135deg, #2c4a68, #1b3049); color: #dcecf8; border: 1px solid var(--rx-line-strong); }
.rx-avatar.rx-tarvi { background: radial-gradient(circle at 35% 30%, #a6f0ff, #3cb8dc 55%, #155b78); color: #04202c; border-color: transparent; }
.rx-avatar.rx-colleague { background: linear-gradient(135deg, #6c58c9, #3e2f86); color: #f1ecff; }
.rx-bubble { min-width: 0; padding: 12px 16px; border-radius: 4px 18px 18px 18px; background: rgba(255, 255, 255, .045); border: 1px solid var(--rx-line); line-height: 1.6; overflow-wrap: anywhere; }
.rx-msg.mine .rx-bubble { border-radius: 18px 4px 18px 18px; background: linear-gradient(180deg, rgba(95, 212, 244, .17), rgba(95, 212, 244, .09)); border-color: rgba(95, 212, 244, .3); }
.rx-msg.rx-tarvi .rx-bubble { background: transparent; border-color: transparent; padding: 4px 4px 4px 2px; }
.rx-bubble > header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.rx-bubble > header small { color: var(--rx-faint); font-size: .76rem; }
.rx-msg.rx-sending { opacity: .65; }
.rx-dots::after { content: " …"; animation: rx-blink 1.2s steps(3) infinite; }
@keyframes rx-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rx-dots::after { animation: none; } }
.rx-plain { white-space: pre-wrap; margin: 0; }
.rx-md p { margin: .45em 0; }
.rx-md h3, .rx-md h4, .rx-md h5, .rx-md h6 { margin: 1em 0 .35em; line-height: 1.3; }
.rx-md h3 { font-size: 1.12rem; } .rx-md h4 { font-size: 1.02rem; }
.rx-md ul, .rx-md ol { margin: .35em 0; padding-left: 1.35em; }
.rx-md li { margin: .2em 0; }
.rx-md a { color: var(--rx-accent); }
.rx-md code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.rx-code { margin: .6em 0; border: 1px solid var(--rx-line); border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.rx-code-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 4px 12px; font-size: .76rem; color: var(--rx-muted); border-bottom: 1px solid var(--rx-line); }
.rx-code-head .button { min-height: 0; padding: 2px 8px; }
.rx-code pre { margin: 0; padding: 12px; overflow: auto; max-height: 50vh; font-size: .85rem; }
.rx-code pre code { background: none; padding: 0; }
.rx-table-wrap { overflow-x: auto; margin: .6em 0; }
.rx-table { border-collapse: collapse; font-size: .9rem; }
.rx-table th, .rx-table td { border-bottom: 1px solid var(--rx-line); padding: 6px 10px; text-align: left; vertical-align: top; }
.rx-table th { color: var(--rx-muted); font-weight: 600; }
.rx-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rx-image-button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.rx-image { display: block; max-width: 260px; max-height: 200px; border-radius: 12px; object-fit: cover; border: 1px solid var(--rx-line); }
.rx-file-chip, .rx-pending { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; font-size: .82rem;
  border: 1px solid var(--rx-line); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; overflow-wrap: anywhere; }
.rx-pending.error { border-color: #ff9c9c; color: #ffb3b3; }
.rx-doc-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px; cursor: pointer; text-align: left; color: inherit;
  border: 1px solid rgba(95, 212, 244, .35); background: var(--rx-accent-soft); }
.rx-doc-chip span:first-child { font-size: 1.3rem; }
.rx-doc-chip strong, .rx-doc-chip small { display: block; }
.rx-doc-chip small { color: var(--rx-muted); font-size: .76rem; }
.rx-sources-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rx-sources-inline a { font-size: .78rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rx-line); color: var(--rx-muted); text-decoration: none; max-width: 260px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-sources-inline a:hover { color: var(--rx-accent); border-color: rgba(95, 212, 244, .4); }
.rx-empty { margin: auto; max-width: 460px; text-align: center; color: var(--rx-muted); padding: 24px; }
.rx-empty h2, .rx-empty h3 { margin: 0 0 6px; color: var(--rx-text); font-size: 1.15rem; }
.rx-empty.small { margin: 14px auto; padding: 12px; }
.rx-empty.small h3 { font-size: 1rem; }
.rx-empty p { margin: 0; line-height: 1.55; }
.rx-typing { min-height: 0; margin: 0 clamp(14px, 2.4vw, 34px); font-size: .8rem; color: var(--rx-muted); }
.rx-typing:empty { display: none; }

/* composer */
.rx-composer { margin: 8px clamp(10px, 2vw, 26px) clamp(10px, 2vw, 20px); padding: 10px 10px 8px 14px; border-radius: 18px;
  border: 1px solid var(--rx-line-strong); background: rgba(5, 13, 22, .55); transition: border-color .15s, box-shadow .15s; }
.rx-composer:focus-within { border-color: rgba(95, 212, 244, .55); box-shadow: 0 0 0 4px rgba(95, 212, 244, .1); }
.rx-workspace .rx-composer textarea { display: block; width: 100%; min-height: 48px; max-height: 240px; resize: none; border: 0 !important; outline: 0; background: transparent !important;
  box-shadow: none !important; color: var(--rx-text); padding: 4px 0 !important; line-height: 1.5; font-size: 1rem; }
.rx-tray { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rx-composer-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rx-icon-button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--rx-line); background: rgba(255, 255, 255, .04); color: var(--rx-text); cursor: pointer; font-size: 1.1rem; }
.rx-icon-button:hover { background: rgba(255, 255, 255, .09); }
.rx-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.rx-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rx-toggle span { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--rx-line); font-size: .8rem; color: var(--rx-muted); transition: all .15s; }
.rx-toggle input:checked + span { color: var(--rx-text); border-color: rgba(95, 212, 244, .5); background: var(--rx-accent-soft); }
.rx-toggle input:focus-visible + span { outline: 2px solid var(--rx-accent); outline-offset: 2px; }
.rx-workspace select.rx-model { width: auto !important; max-width: 230px; min-height: 32px !important; padding: 4px 28px 4px 10px !important; border-radius: 999px !important; font-size: .8rem !important; }
.rx-send { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.15rem; font-weight: 700;
  background: linear-gradient(180deg, #74def7, #3db9df); color: #04131d; box-shadow: 0 6px 18px rgba(61, 185, 223, .35); }
.rx-send:disabled { opacity: .5; cursor: default; }
.rx-chat.rx-drop { outline: 2px dashed var(--rx-accent); outline-offset: -8px; }
.rx-chat.rx-drop .rx-log::after { content: "Loslassen – TARVI liest mit"; align-self: center; color: var(--rx-accent); padding: 12px; }

/* side panel: TARVI Live strip, tabs, pane */
.rx-live { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rx-line);
  background: radial-gradient(120% 140% at 0% 50%, rgba(95, 212, 244, .12), transparent 60%); }
.rx-live-stage { position: relative; width: 64px; height: 64px; }
.rx-live-orb { width: 100%; height: 100%; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 50% 40%, rgba(120, 200, 255, .14), transparent 70%); }
.rx-live-canvas { position: absolute; inset: -24%; width: 148%; height: 148%; pointer-events: none; }
.rx-live-text { min-width: 0; }
.rx-live-text strong { display: block; font-size: .92rem; }
.rx-live-status, .rx-live-caption { margin: 1px 0 0; font-size: .8rem; color: var(--rx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-live-caption { color: var(--rx-faint); }
.rx-live-caption:empty { display: none; }
.rx-live-actions { display: flex; gap: 6px; }
.rx-chip-button { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rx-line-strong); background: rgba(255, 255, 255, .05); color: var(--rx-text); cursor: pointer; font-size: .78rem; }
.rx-live audio { display: none; }
.rx-tabs { display: flex; gap: 0; padding: 6px 8px 0; border-bottom: 1px solid var(--rx-line); overflow-x: auto; scrollbar-width: none; }
.rx-tab { position: relative; flex: 1 0 auto; justify-content: center; display: inline-flex; align-items: center; padding: 9px 5px 11px; border: 0; background: none; color: var(--rx-muted); cursor: pointer; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.rx-tab:hover { color: var(--rx-text); }
.rx-tab.active { color: var(--rx-text); }
.rx-tab.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--rx-accent); }
.rx-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.rx-pane-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rx-pane-actions select { width: auto !important; flex: 1 1 140px; min-width: 0; }
.rx-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rx-add input { flex: 1 1 180px; min-width: 0; }
.rx-add select { width: auto !important; flex: 0 1 auto; }
.rx-add .rx-short { flex: 0 1 110px; }
.rx-list, .rx-sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rx-row-button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--rx-line); background: rgba(255, 255, 255, .03);
  color: inherit; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.rx-row-button:hover { border-color: rgba(95, 212, 244, .4); background: rgba(95, 212, 244, .06); }
.rx-row-button strong, .rx-row-button small, .rx-card strong, .rx-card small { display: block; overflow-wrap: anywhere; }
.rx-row-button small, .rx-card small, .rx-sessions small { color: var(--rx-faint); font-size: .76rem; }
.rx-doc-icon { font-size: 1.35rem; }
.rx-card { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--rx-line); background: rgba(255, 255, 255, .03); }
.rx-card > div { flex: 1; min-width: 0; }
.rx-card p { margin: 0 0 2px; line-height: 1.45; overflow-wrap: anywhere; }
.rx-card a { color: var(--rx-text); text-decoration: none; font-weight: 600; display: block; overflow-wrap: anywhere; }
.rx-card a:hover { color: var(--rx-accent); }
.rx-card.done p { text-decoration: line-through; opacity: .55; }
.rx-check { padding-top: 2px; }
.rx-check input { width: 18px; height: 18px; accent-color: var(--rx-accent); }
.rx-groups { display: flex; flex-direction: column; gap: 14px; }
.rx-group { display: flex; flex-direction: column; gap: 8px; }
.rx-group h4 { margin: 4px 0 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rx-muted); }
.rx-vote { flex: none; min-width: 44px; padding: 5px 8px; border-radius: 10px; border: 1px solid var(--rx-line); background: transparent; color: var(--rx-muted); cursor: pointer; font-size: .8rem; font-weight: 700; }
.rx-vote.on { color: #04131d; background: var(--rx-accent); border-color: transparent; }
.rx-sessions li { display: flex; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--rx-line); background: rgba(255, 255, 255, .03); }
.rx-sessions li.open { border-color: rgba(78, 224, 154, .35); }
.rx-sessions li > div { min-width: 0; flex: 1; }
.rx-sessions header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rx-sessions p { margin: 4px 0; line-height: 1.5; }
.rx-session-counts { display: block; }
.rx-editor { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.rx-workspace .rx-doc-title { font-size: 1.15rem !important; font-weight: 700; }
.rx-workspace textarea.rx-doc-content { flex: 1; min-height: 340px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; resize: vertical; }
.rx-doc-view { padding: 4px 2px; line-height: 1.6; }
.rx-hint { margin: 0; color: var(--rx-muted); font-size: .84rem; }
.rx-pane-title { margin: 0; font-size: 1rem; }
.rx-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--rx-line); }
.rx-box h3 { margin: 4px 0 0; font-size: .95rem; }
.rx-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rx-row input, .rx-row select { flex: 1 1 140px; min-width: 0; }
.rx-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rx-members li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center; font-size: .88rem; }
.rx-file { position: relative; overflow: hidden; }
.rx-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* owner: the shared workspace replaces the page head of Recherche */
#chat-panel.rx-open > .section-head { display: none; }

@media (max-width: 1100px) {
  .rx-shell { grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); }
}
@media (max-width: 860px) {
  .rx-workspace { height: auto; min-height: 0; }
  .rx-pane { overflow: visible; }
  .rx-head { align-items: flex-start; }
  .rx-msg.mine { max-width: 94%; }
  .rx-bubble { padding: 10px 12px; }
  .rx-avatar { width: 28px; height: 28px; font-size: .7rem; }
}

/* /ui/recherche: the colleague's page */
.rx-guest #workspace { padding-bottom: 8px; }
/* the colleague's page: a slim bar with the TARVI mark instead of the app's navigation */
.rx-guest #workspace .tabs-bar.rx-brandbar::before, .rx-guest #workspace .tabs-bar.rx-brandbar::after { display: none; }
.rx-guest #workspace .tabs-bar.rx-brandbar { backdrop-filter: none; -webkit-backdrop-filter: none; position: static; display: flex; align-items: center; min-height: 0; padding: 14px 4px 8px; margin: 0; background: none; border: 0; box-shadow: none; }
.rx-guest #workspace .tabs-bar.rx-brandbar .workspace-brand { display: inline-flex; align-items: center; gap: 10px; position: static; opacity: 1; font-size: 1.05rem; margin: 0; }
.rx-guest #workspace .tabs-bar.rx-brandbar .brand-mark, .rx-guest #workspace .tabs-bar.rx-brandbar img { width: 30px; height: 30px; }
.rx-pair, #rg-ended { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.rx-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2.2rem; letter-spacing: .3em; margin: 14px 0 4px; color: #bfeaf8; }
.rx-footer { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 26px auto 10px; text-align: center; font-size: .86rem; color: #93a8bc; }
.rx-footer p { margin: 0; }
.rx-footer a { color: #5fd4f4; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.rx-footer a:hover { text-decoration: underline; }
.rx-footer .rx-heart { color: #ff7a9a; }

/* /ui/recherche on a phone: the same glass header as the app (app icon + wordmark left, menu right); the research's
   own menu button takes the place of the app's burger, no title row */
@media (max-width: 640px) {
  .rx-guest #workspace { padding-top: calc(56px + env(safe-area-inset-top, 0px)); }
  .rx-guest #workspace > .tabs-bar.rx-brandbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 119; display: flex; align-items: center; justify-content: space-between;
    height: calc(56px + env(safe-area-inset-top, 0px)); margin: 0; padding: env(safe-area-inset-top, 0px) 64px 0 max(16px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid rgba(255, 255, 255, .06); background: linear-gradient(180deg, rgba(6, 13, 22, .92), rgba(6, 13, 22, .78));
    -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  }
  .rx-guest #workspace > .tabs-bar.rx-brandbar .workspace-brand { gap: 11px; height: 44px; color: #eef7fc; }
  .rx-guest #workspace > .tabs-bar.rx-brandbar .brand-mark { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none; animation: none;
    box-shadow: 0 0 0 1px rgba(140, 200, 255, .16), 0 6px 18px -4px rgba(40, 140, 255, .55); }
  .rx-guest #workspace > .tabs-bar.rx-brandbar img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
  .rx-guest #workspace > .tabs-bar.rx-brandbar .brand-wordmark { font-size: 17px; font-weight: 700; letter-spacing: .2em; color: #f2f8fc;
    background: linear-gradient(180deg, #ffffff, #b9d6ea); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .rx-guest .rx-workspace.rx-phone .rx-burger { position: fixed; z-index: 120; top: env(safe-area-inset-top, 0px); right: max(8px, env(safe-area-inset-right, 0px));
    width: 48px; height: 56px; gap: 4.75px; border: 0; border-radius: 0; background: transparent; }
  .rx-guest .rx-workspace.rx-phone .rx-burger span { width: 20px; height: 1.75px; background: #e8f3fa; }
  .rx-guest .rx-workspace.rx-phone .rx-burger span:nth-child(3) { width: 13px; }
  .rx-guest .rx-workspace.rx-phone .rx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .rx-guest .rx-workspace.rx-phone .rx-burger[aria-expanded="true"] span:nth-child(3) { width: 20px; transform: translateY(-6.5px) rotate(-45deg); }
  .rx-guest .rx-workspace.rx-phone .rx-phone-bar-empty { height: 0; min-height: 0; margin: 0; padding: 0; overflow: visible; }
  .rx-guest .rx-workspace.rx-phone .rx-menu:not([hidden]) { top: calc(56px + env(safe-area-inset-top, 0px) + 6px); left: auto; right: max(10px, env(safe-area-inset-right, 0px));
    width: min(286px, calc(100vw - 20px)); max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px)); }
}
html[data-theme="light"] .rx-guest #workspace > .tabs-bar.rx-brandbar { border-bottom-color: rgba(10, 30, 50, .08); }


/* view switch Chat | Board */
.rx-views { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--rx-line); background: rgba(255, 255, 255, .03); }
.rx-view { min-height: 30px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--rx-muted); cursor: pointer; font-size: .86rem; font-weight: 600; }
.rx-view.active { background: var(--rx-accent-soft); color: var(--rx-text); box-shadow: inset 0 0 0 1px rgba(95, 212, 244, .35); }
.rx-phone-bar, .rx-stage, .rx-menu { display: none; }
.rx-live-voice { width: auto !important; max-width: 150px; min-height: 30px !important; padding: 2px 24px 2px 8px !important; border-radius: 999px !important; font-size: .76rem !important; }
.rx-members { display: flex; flex-direction: column; gap: 10px; }
.rx-person ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rx-person li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; font-size: .84rem; color: var(--rx-muted); }

/* what TARVI works on: chips in the Live strip (desktop) */
.rx-live { grid-template-columns: auto minmax(0, 1fr) auto; }
.rx-nodes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.rx-nodes[hidden] { display: none; }
.rx-node-lines { display: none; }
.rx-node { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px 4px 6px; border-radius: 999px; border: 1px solid var(--rx-line); background: rgba(255, 255, 255, .04);
  color: var(--rx-text); cursor: pointer; font-size: .76rem; text-align: left; }
.rx-node.running { border-color: rgba(95, 212, 244, .55); box-shadow: 0 0 0 3px rgba(95, 212, 244, .12); }
.rx-node-icon { font-size: .95rem; }
.rx-node-text { min-width: 0; display: flex; gap: 5px; align-items: baseline; }
.rx-node-text small { color: var(--rx-muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the whiteboard */
.rx-board-panel { position: relative; }
.rx-board-panel[hidden] { display: none; }
.rx-board { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rx-board-area { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rx-board-viewport { position: relative; flex: 1; min-height: 420px; overflow: hidden; touch-action: none; outline: none; cursor: grab;
  background-color: rgba(6, 14, 24, .55); background-image: radial-gradient(circle, rgba(150, 196, 236, .16) 1px, transparent 1.2px); background-size: var(--grid, 24px) var(--grid, 24px); }
.rx-board-viewport:active { cursor: grabbing; }
.rx-board-viewport[data-tool]:not([data-tool="select"]) { cursor: crosshair; }
.rx-board-world { position: absolute; left: 0; top: 0; width: 1px; height: 1px; transform-origin: 0 0; }
.rx-board-links { position: absolute; left: -50000px; top: -50000px; width: 100000px; height: 100000px; overflow: visible; pointer-events: none; color: #9fb6cb; }
.rx-board-links g { transform: translate(50000px, 50000px); }
.rx-board-links path { fill: none; stroke: currentColor; stroke-width: 2.2; }
.rx-board-links .rx-link-hit { stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.rx-board-links .selected path:not(.rx-link-hit) { stroke: #5fd4f4; color: #5fd4f4; }
.rx-board-links text { fill: #cfe0ee; font-size: 14px; text-anchor: middle; paint-order: stroke; stroke: rgba(6, 14, 24, .9); stroke-width: 4px; }
.rx-item { position: absolute; display: flex; align-items: center; justify-content: center; padding: 12px; color: #102030; font-size: 15px; line-height: 1.35; cursor: move; user-select: none; }
.rx-item-text { width: 100%; max-height: 100%; overflow: hidden; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; }
.rx-sticky { background: var(--fill); border-radius: 4px; box-shadow: 0 12px 26px rgba(0, 0, 0, .35), 0 2px 0 rgba(0, 0, 0, .08); }
.rx-shape { background: color-mix(in srgb, var(--fill) 26%, #0d1b2a); border: 2px solid var(--fill); color: #eef6fb; border-radius: 12px; }
.rx-shape.rx-shape-ellipse { border-radius: 50%; }
.rx-shape.rx-shape-pill { border-radius: 999px; }
.rx-shape.rx-shape-diamond { border: 0; background: none; }
.rx-shape.rx-shape-diamond::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--fill) 26%, #0d1b2a); border: 2px solid var(--fill);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rx-shape.rx-shape-diamond .rx-item-text { position: relative; padding: 0 18%; }
.rx-text { color: #eef6fb; font-size: 22px; font-weight: 700; justify-content: flex-start; }
.rx-text .rx-item-text { text-align: left; }
.rx-frame { align-items: flex-start; justify-content: flex-start; border: 1.5px dashed rgba(190, 210, 228, .45); border-radius: 16px; background: rgba(255, 255, 255, .03); color: #cfe0ee; }
.rx-frame .rx-item-text { text-align: left; font-weight: 700; font-size: 16px; }
.rx-item.selected { outline: 2px solid #5fd4f4; outline-offset: 3px; }
.rx-handle { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: #5fd4f4; border: 2px solid #06121d; cursor: nwse-resize; }
.rx-item-editor { width: 100%; height: 100%; resize: none; border: 0 !important; outline: 0; background: rgba(255, 255, 255, .55) !important; color: #102030 !important; font: inherit; text-align: center; border-radius: 6px; }
.rx-shape .rx-item-editor, .rx-text .rx-item-editor, .rx-frame .rx-item-editor { background: rgba(6, 14, 24, .7) !important; color: #eef6fb !important; }
.rx-board-tools { position: absolute; z-index: 5; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px;
  border: 1px solid var(--rx-line-strong); background: rgba(12, 24, 37, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.rx-board-tool { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--rx-text); cursor: pointer; font-size: 1.05rem; }
.rx-board-tool:hover { background: rgba(255, 255, 255, .08); }
.rx-board-tool.active { background: var(--rx-accent); color: #04131d; }
.rx-board-sep { height: 1px; margin: 2px 6px; background: var(--rx-line); }
.rx-board-ai { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--rx-line); }
.rx-board-ai input { flex: 1 1 200px; min-width: 0; }
.rx-board-ai-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rx-accent); font-weight: 700; }
.rx-board-palette { position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 10px;
  border-radius: 999px; border: 1px solid var(--rx-line-strong); background: rgba(12, 24, 37, .92); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.rx-board-palette[hidden] { display: none; }
.rx-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: var(--fill); cursor: pointer; }
.rx-board-corner { position: absolute; z-index: 5; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 12px;
  border: 1px solid var(--rx-line); background: rgba(12, 24, 37, .9); }
.rx-board-zoom { min-width: 48px; text-align: center; font-size: .78rem; color: var(--rx-muted); }
.rx-board-empty { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -30%); max-width: 420px; text-align: center; color: var(--rx-muted); pointer-events: none; }
.rx-board-empty[hidden] { display: none; }
.rx-board-empty h3 { margin: 0 0 6px; color: var(--rx-text); }

/* phone: the TARVI circle in the middle, everything else from the menu (like TARVI itself) */
/* the page itself never scrolls on a phone (like the app): the workspace fills the screen, only the chat history,
   lists and the board move inside */
.rx-workspace.rx-phone { height: calc(100dvh - var(--rx-top, 80px) - env(safe-area-inset-bottom, 0px)); min-height: 0; overflow: hidden; }
html:has(#chat-panel:not([hidden]) .rx-workspace.rx-phone), body:has(#chat-panel:not([hidden]) .rx-workspace.rx-phone) { overflow: hidden; overscroll-behavior: none; }
.rx-guest:has(.rx-workspace.rx-phone) .rx-footer { display: none; }
.rx-guest:has(.rx-workspace.rx-phone) #workspace { padding-bottom: 0; }
.rx-workspace.rx-phone > .rx-head, .rx-workspace.rx-phone > .rx-status { flex: none; }
.rx-workspace.rx-phone .rx-stage .rx-live-voice { display: none; }      /* the voice is in the menu */
.rx-menu-link { justify-content: center; min-height: 38px; color: var(--rx-accent); font-size: .9rem; font-weight: 600; text-decoration: none; }
.rx-workspace.rx-phone .rx-title, .rx-workspace.rx-phone .rx-head-actions { display: none; }
.rx-workspace.rx-phone .rx-phone-bar { display: flex; align-items: center; gap: 10px; width: 100%; }
.rx-workspace.rx-phone .rx-phone-bar .rx-burger { margin-left: auto; }
.rx-menu-value { color: var(--rx-muted); font-size: .9rem; }
.rx-menu-group { display: flex; flex-direction: column; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.rx-menu-sub { min-height: 40px; padding-left: 26px; font-size: .95rem; color: var(--rx-muted); }
.rx-menu-sub.active { color: var(--rx-text); }
.rx-stage-back { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rx-line-strong); background: rgba(255, 255, 255, .05); color: var(--rx-text); font-weight: 600; }
.rx-burger { flex: none; display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--rx-line-strong); background: rgba(255, 255, 255, .05); cursor: pointer; }
.rx-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--rx-text); transition: transform .2s, opacity .2s; }
.rx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.rx-workspace.rx-phone .rx-menu:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 70; left: 12px; right: 12px; top: calc(var(--rx-top, 60px) + 54px);
  max-height: calc(100dvh - var(--rx-top, 60px) - 80px); overflow-y: auto; padding: 8px; border-radius: 20px; border: 1px solid var(--rx-line-strong);
  background: rgba(10, 21, 33, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.rx-menu hr { width: 100%; border: 0; border-top: 1px solid var(--rx-line); margin: 4px 0; }
.rx-menu-item { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: var(--rx-text); font-size: 1rem; text-align: left; cursor: pointer; }
.rx-menu-item:hover { background: rgba(255, 255, 255, .06); }
.rx-workspace.rx-phone .rx-shell { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.rx-workspace.rx-phone[data-view="stage"] .rx-shell { display: none; }
.rx-workspace.rx-phone .rx-shell > * { display: none; }
.rx-workspace.rx-phone[data-view="chat"] .rx-chat, .rx-workspace.rx-phone[data-view="board"] .rx-board-panel, .rx-workspace.rx-phone[data-view="side"] .rx-side { display: flex; flex: 1 1 auto; min-height: 0; }
.rx-workspace.rx-phone[data-view="chat"] .rx-chat .rx-log { flex: 1 1 auto; min-height: 0; max-height: none; height: auto; overflow-y: auto; }
.rx-workspace.rx-phone[data-view="board"] .rx-board-viewport { flex: 1 1 auto; height: auto; min-height: 0; }
.rx-workspace.rx-phone[data-view="side"] .rx-side { overflow-y: auto; overscroll-behavior: contain; }
.rx-workspace.rx-phone[data-view="stage"] .rx-stage { display: flex; flex: 1 1 auto; min-height: 0; }
.rx-stage { min-height: calc(100dvh - var(--rx-top, 80px) - 90px); align-items: center; justify-content: center; }
.rx-workspace.rx-phone .rx-stage { min-height: 0; }
.rx-stage-center { position: relative; width: min(92vw, 420px); aspect-ratio: 1 / 1.15; }
.rx-stage .rx-live { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0; border: 0; background: none; }
.rx-stage .rx-live-stage { width: 46%; height: auto; aspect-ratio: 1; z-index: 2; }
.rx-stage .rx-live-text { text-align: center; z-index: 2; max-width: 70%; }
.rx-stage .rx-live-text strong { display: none; }
.rx-stage .rx-live-status { white-space: normal; font-size: .95rem; }
.rx-stage .rx-live-actions { z-index: 2; flex-wrap: wrap; justify-content: center; }
.rx-stage .rx-nodes { position: absolute; inset: 0; display: block; }
.rx-stage .rx-node-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.rx-stage .rx-node-lines line { stroke: rgba(95, 212, 244, .32); stroke-width: .35; vector-effect: non-scaling-stroke; }
.rx-stage .rx-node-lines line.running { stroke: rgba(95, 212, 244, .8); stroke-dasharray: 3 3; }
.rx-stage .rx-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); flex-direction: column; gap: 2px; max-width: 120px; padding: 8px 10px;
  border-radius: 16px; text-align: center; background: rgba(12, 24, 37, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 3;
  animation: rx-node-in .35s ease-out both; }
.rx-stage .rx-node-text { flex-direction: column; align-items: center; gap: 0; }
.rx-stage .rx-node-text small { max-width: 104px; }
@keyframes rx-node-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } }
@media (prefers-reduced-motion: reduce) { .rx-stage .rx-node { animation: none; } }
.rx-workspace.rx-phone .rx-board-tools { top: 8px; left: 8px; max-height: calc(100% - 80px); overflow-y: auto; }
/* phone: the TARVI row as topic field + three equal buttons, no wrapping under the tools */
.rx-workspace.rx-phone .rx-board-ai { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; }
.rx-workspace.rx-phone .rx-board-ai-label { display: none; }
.rx-workspace.rx-phone .rx-board-ai input { grid-column: 1 / -1; min-height: 40px; }
.rx-workspace.rx-phone .rx-board-ai .rx-button { min-height: 38px; padding: 6px 4px; font-size: .86rem; }
.rx-workspace.rx-phone .rx-board-viewport { min-height: 0; }
.rx-workspace.rx-phone .rx-board-tool { width: 36px; height: 36px; }
.rx-panel[hidden] { display: none !important; }
.page:has(#chat-panel:not([hidden]) .rx-workspace.rx-phone) { padding-bottom: 0; }

/* microphone state, always visible next to TARVI Live */
.rx-mic { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--rx-line-strong); background: rgba(255, 255, 255, .04); color: var(--rx-muted); width: max-content; }
.rx-mic-dot { width: 9px; height: 9px; border-radius: 50%; background: #6f8599; }
.rx-mic[data-mic="on"] { color: #7ff0b4; border-color: rgba(78, 224, 154, .45); background: rgba(78, 224, 154, .1); }
.rx-mic[data-mic="on"] .rx-mic-dot { background: #4ee09a; box-shadow: 0 0 0 0 rgba(78, 224, 154, .6); animation: rx-mic-pulse 1.6s ease-out infinite; }
.rx-mic[data-mic="muted"] { color: #ff9aa8; border-color: rgba(255, 110, 130, .5); background: rgba(255, 110, 130, .1); }
.rx-mic[data-mic="muted"] .rx-mic-dot { background: #ff6e82; }
@keyframes rx-mic-pulse { 70% { box-shadow: 0 0 0 7px rgba(78, 224, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(78, 224, 154, 0); } }
@media (prefers-reduced-motion: reduce) { .rx-mic[data-mic="on"] .rx-mic-dot { animation: none; } }
.rx-stage .rx-mic { z-index: 2; }
html[data-theme="light"] .rx-mic[data-mic="on"] { color: #0f7a46; }
html[data-theme="light"] .rx-mic[data-mic="muted"] { color: #b4233a; }

.rx-mic { cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.rx-mic[data-mic="connecting"] { color: var(--rx-accent); border-color: rgba(95, 212, 244, .4); }
.rx-mic[data-mic="connecting"] .rx-mic-dot { background: var(--rx-accent); }
/* no running hints ("Ich höre zu …"): the circle and the microphone show the state; only errors are written out */
.rx-live:not([data-state="error"]) .rx-live-status { display: none; }
.rx-live[data-state="error"] .rx-live-status { color: #ff9aa8; white-space: normal; }

/* phone: the circle exactly as in the app (100 px core, light ring 190 %), the microphone at the bottom */
.rx-workspace.rx-phone .rx-stage { position: relative; }
.rx-workspace.rx-phone .rx-stage-center { width: 100%; height: 100%; aspect-ratio: auto; }
.rx-workspace.rx-phone .rx-stage .rx-live-stage { width: 100px; height: 100px; }
.rx-workspace.rx-phone .rx-stage .rx-live-canvas { inset: auto; left: 50%; top: 50%; width: 190%; height: 190%; transform: translate(-50%, -50%); }
.rx-workspace.rx-phone .rx-stage .rx-live-caption { display: none; }
.rx-workspace.rx-phone .rx-stage .rx-mic { position: absolute; z-index: 3; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  min-height: 44px; padding: 8px 18px 8px 14px; font-size: .9rem; }
.rx-workspace.rx-phone .rx-stage .rx-live-actions:not(:has(> :not([hidden]):not(.rx-live-voice))) { display: none; }

/* the colour bar of a selection: at the top, right of the tools, wrapping on narrow boards – never over the zoom */
.rx-board-palette { top: 12px; bottom: auto; left: calc(50% + 30px); max-width: calc(100% - 96px); flex-wrap: wrap; justify-content: center; border-radius: 18px; }
.rx-workspace.rx-phone .rx-board-palette { top: 8px; left: calc(50% + 28px); max-width: calc(100% - 76px); gap: 5px; padding: 6px 8px; }
.rx-workspace.rx-phone .rx-swatch { width: 26px; height: 26px; }

/* nodes around the circle: the app's TARVI Live nodes (.live-node from calendar.css), here as buttons */
.rx-live-node { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.rx-nodes .rx-live-node { position: relative; margin: 0 8px 22px; width: 52px; height: 52px; }
.rx-nodes .rx-live-node .live-node-core { width: 42px; height: 42px; font-size: .52rem; }
.rx-nodes .rx-live-node .live-node-label { font-size: .62rem; }
.rx-stage .rx-nodes .rx-live-node { position: absolute; left: var(--x); top: var(--y); margin: -29px 0 0 -29px; width: 58px; height: 58px; z-index: 3; }
.rx-stage .rx-nodes .rx-live-node .live-node-core { width: 46px; height: 46px; font-size: .56rem; }
.rx-stage .rx-nodes .rx-live-node .live-node-label { font-size: .64rem; }
.rx-live-node:focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 4px; border-radius: 50%; }

/* phone stage: microphone at the bottom left, the note beside it (colleague page) */
.rx-workspace.rx-phone .rx-stage .rx-mic { left: max(16px, env(safe-area-inset-left, 0px)); transform: none; }
.rx-stage-foot { display: none; }
.rx-workspace.rx-phone .rx-stage-foot { display: block; position: absolute; z-index: 2; left: calc(max(16px, env(safe-area-inset-left, 0px)) + var(--rx-mic-w, 150px) + 12px);
  right: 16px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); min-height: 44px; display: flex; align-items: center; margin: 0;
  font-size: .76rem; line-height: 1.3; color: #93a8bc; }
.rx-stage-foot .rx-heart { color: #ff7a9a; }
/* the TARVI mark leads back to TARVI Live on the colleague page */
.rx-guest .rx-brandbar .workspace-brand { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* phone stage: the circle and its nodes stay above the bottom row (microphone, note) */
.rx-workspace.rx-phone .rx-stage-center { height: calc(100% - 78px - env(safe-area-inset-bottom, 0px)); align-self: flex-start; }
.rx-workspace.rx-phone .rx-stage .rx-mic { bottom: -56px; }
.rx-workspace.rx-phone .rx-stage-foot { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }

/* microphone like the app's #live-mute: on the desktop the symbol stays hidden; on the phone only a quiet round
   36 px symbol at the very bottom left (12 px from the edge, above the home bar), state by colour and slash */
.rx-mic-icon { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* the mic sits in .rx-live (inside .rx-stage-center, which ends 60 px + home bar above the stage bottom) */
.rx-workspace.rx-phone .rx-stage .rx-mic { left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) - 60px - env(safe-area-inset-bottom, 0px)); transform: none;
  display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 7px; gap: 0; border-radius: 50%;
  border: 1px solid rgba(127, 230, 255, .4); background: #0b2032; color: #cceff8; box-shadow: none; }
.rx-workspace.rx-phone .rx-stage .rx-mic .rx-mic-icon { display: block; }
.rx-workspace.rx-phone .rx-stage .rx-mic .rx-mic-dot { display: none; }
.rx-workspace.rx-phone .rx-stage .rx-mic .rx-mic-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rx-workspace.rx-phone .rx-stage .rx-mic[data-mic="off"] { color: #8fa3b5; border-color: rgba(143, 163, 181, .35); background: rgba(11, 32, 50, .7); }
.rx-workspace.rx-phone .rx-stage .rx-mic[data-mic="off"] .rx-mic-slash { display: block; }
.rx-mic-slash { display: none; }
.rx-workspace.rx-phone .rx-stage .rx-mic[data-mic="on"] { color: #cceff8; border-color: rgba(127, 230, 255, .55); background: #0b2032; }
.rx-workspace.rx-phone .rx-stage .rx-mic[data-mic="connecting"] { color: var(--rx-accent); border-color: rgba(95, 212, 244, .4); }
.rx-workspace.rx-phone .rx-stage .rx-mic:focus-visible { outline: 2px solid #b3f4ff; outline-offset: 3px; }
html[data-theme="light"] .rx-workspace.rx-phone .rx-stage .rx-mic { background: #fff; color: #23506a; border-color: rgba(35, 80, 106, .3); }
.rx-workspace.rx-phone .rx-stage-foot { left: calc(max(12px, env(safe-area-inset-left, 0px)) + 36px + 12px); bottom: max(12px, env(safe-area-inset-bottom, 0px)); min-height: 36px; }
.rx-workspace.rx-phone .rx-stage-center { height: calc(100% - 60px - env(safe-area-inset-bottom, 0px)); }

/* pairing code: eight boxes like a verification code (4 – 4, as shown on the other device) */
.rx-pin-label { display: block; margin: 10px 0 6px; font-size: .82rem; color: var(--rx-muted); }
.rx-pin { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.rx-pin .rx-pin-box { flex: 0 0 auto; width: 40px !important; height: 48px; min-height: 0; padding: 0 !important; margin: 0; text-align: center;
  font: 600 1.25rem/1 ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; color: var(--rx-text, #eaf6fb);
  border: 1px solid var(--rx-line-strong); border-radius: 10px; background: rgba(255, 255, 255, .05); caret-color: var(--rx-accent); }
.rx-pin .rx-pin-box:focus { outline: none; border-color: var(--rx-accent); box-shadow: 0 0 0 3px rgba(95, 212, 244, .2); }
.rx-pin-gap { color: var(--rx-muted); padding: 0 2px; }
.rx-pin.rx-pin-full .rx-pin-box { border-color: rgba(78, 224, 154, .55); }
.rx-add-pin { align-items: center; }
.rx-add-pin .rx-pin { margin: 0; }
@media (max-width: 420px) { .rx-pin { gap: 4px; } .rx-pin .rx-pin-box { width: 32px !important; height: 44px; font-size: 1.1rem; } }
html[data-theme="light"] .rx-pin .rx-pin-box { background: #fff; color: #10324a; }

/* model beside the voice in the TARVI Live strip; guest usage under each person in „Teilen“ */
.rx-live-actions { flex-wrap: wrap; }
.rx-live-model { width: auto !important; max-width: 190px; min-height: 30px !important; padding: 2px 24px 2px 8px !important; border-radius: 999px !important; font-size: .76rem !important; }
.rx-workspace.rx-phone .rx-stage .rx-live-model { display: none; }      /* on the phone the model is in the menu */
.rx-workspace.rx-phone .rx-stage .rx-live-actions:not(:has(> :not([hidden]):not(.rx-live-voice):not(.rx-live-model))) { display: none; }
.rx-person .rx-usage { display: block; margin-top: 2px; font-size: .78rem; color: var(--rx-muted); }
