Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。
@import "./ui/palette.css";
@import "./components/living/pawn.css";
@import "./components/living/brand-mark.css";
@import "./components/living/button.css";
@import "./components/living/media-controls.css";
@import "./components/living/segmented-control.css";
@import "./ui/glyph.css";
/* Piik living-room UI — the production design system.
The stage is a TV on the wall, viewers are pawns on the couch, connection
state is what the TV shows and what the LEDs say. Control copy lives in tooltips
and aria in visual mode; text modes add visible captions.
Status and control motion stays distinct from quiet participant gestures;
all respect prefers-reduced-motion. */
:root {
color-scheme: light;
/* Fixed warm upholstery; shade changes define the cushions and arms. */
--couch: #e9ad63;
--couch-dark: #cd8845;
--you: #2fa66a;
--pawn-1: #3b7dd8;
--pawn-2: #559bb7;
--pawn-3: #8e6fd8;
--pawn-4: #2fa8a0;
--pawn-5: #e2698f;
--pawn-6: #4e9c74;
--pawn-7: #a978bd;
--route-p2p: #1f7a4a;
--route-sfu: #53676a;
--route-pending: var(--busy);
--lcd: #1d2b22;
--lcd-digits: #9de8bf;
--stage: #17191c;
--frame: #283445;
--frame-highlight: #3e4b5b;
--radius: 16px;
--control-radius: 18px;
--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
"Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
--mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Consolas, monospace;
}
html[data-theme="dark"] {
color-scheme: dark;
--frame: #1d2633;
--stage: #141517;
--route-p2p: #3fb97a;
--route-sfu: #9bb0c5;
--lcd: #0d1611;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #root { margin: 0; min-height: 100%; }
body {
background: var(--wall);
color: var(--ink);
font-family: var(--font);
font-size: 15px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
transition: background-color 300ms ease, color 300ms ease;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: 0.4; }
input[type="checkbox"]:not(:disabled) { cursor: pointer; }
h1, h2, h3, p, dl, dd, dt { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
outline: 3px solid var(--action);
outline-offset: 2px;
border-radius: 8px;
}
.visually-hidden {
position: absolute;
width: 1px; height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}
/* ---------- header ---------- */
.lr-top {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
gap: 8px 12px;
padding: 14px clamp(16px, 4vw, 44px) 6px;
}
.lr-brand {
display: inline-flex;
flex: none;
min-width: 44px; height: 44px;
align-items: center; justify-content: center; gap: 6px;
padding: 0 6px;
border: 0;
border-radius: 12px;
background: transparent;
color: var(--ink);
text-decoration: none;
transition: background 160ms ease, color 160ms ease, transform 160ms var(--spring);
}
.lr-brand:hover { background: var(--wall-2); }
.lr-brand:active { transform: scale(.92); }
.lr-home-arrow { transform: rotate(90deg); color: var(--muted); }
.lr-top-right { display: inline-flex; gap: 10px; align-items: center; }
.lr-top > .lr-top-right { margin-left: auto; min-width: 0; flex: none; justify-content: flex-end; }
.lr-header-controls { flex: none; }
.lr-header-options:not([popover]), .lr-header-options:not([popover]) > .lr-header-settings { display: contents; }
.lr-header-more { display: inline-flex; }
.lr-header-options:is(:popover-open, .\:popover-open) { display: grid; gap: 16px; }
.lr-header-settings { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lr-header-options .lr-help-content { padding-top: 14px; border-top: 1px solid var(--control-edge); }
.lr-top:has(.lr-header-controls.is-overflow) .lr-leds { width: 44px; height: 44px; padding: 0; justify-content: center; }
.lr-top:has(.lr-header-controls.is-overflow) .lr-leds-label { display: none; }
/* Discrete signaling state, independent of picture quality. */
.lr-leds {
display: inline-flex;
gap: 7px;
align-items: center;
padding: 8px 12px;
border: 0;
border-radius: 999px;
background: var(--wall-2);
}
.lr-connection-dots { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 15px; }
.lr-connection-dots > i {
width: 6px; height: 6px;
border-radius: 50%;
background: color-mix(in srgb, var(--ink) 58%, var(--wall-2));
transition: background 300ms ease;
}
.lr-leds[data-state="live"] i { background: var(--live); }
.lr-leds[data-state="busy"] i:nth-child(-n+2) { animation: lr-led-chase 1s ease-in-out infinite; background: var(--warn); }
.lr-leds[data-state="busy"] i:nth-child(2) { animation-delay: .15s; }
.lr-leds[data-state="warn"] i:nth-child(-n+2) { background: var(--warn); animation: lr-led-beat 1.1s ease-in-out infinite; }
.lr-leds[data-state="bad"] i:first-child { background: var(--danger); }
.lr-leds-label { margin-left: 4px; font-size: 11.5px; font-weight: 700; opacity: .8; white-space: nowrap; }
/* Signaling dots retain contrast throughout their small status gesture. */
@keyframes lr-led-beat { 50% { transform: scale(.8); } }
@keyframes lr-led-chase { 50% { transform: translateY(-2px); } }
@keyframes lr-blink { 50% { opacity: .3; } }
/* Extra locales share one menu after the familiar shortcuts. */
.lr-lang-more > span { display: inline-flex; align-items: center; gap: 2px; pointer-events: none; }
.lr-lang-more .lr-glyph:last-child { transition: transform 180ms var(--spring); }
.lr-header-controls:has(.lr-language-menu:is(:popover-open, .\:popover-open)) .lr-lang-more .lr-glyph:last-child { transform: rotate(180deg); }
.lr-language-menu {
position: fixed;
inset: auto;
margin: 0;
width: min(252px, calc(100vw - 16px));
padding: 8px;
border: 2.5px solid var(--ink);
border-radius: var(--control-radius);
color: var(--ink);
background: var(--paper);
box-shadow: var(--control-shadow), 0 8px 24px rgb(16 26 44 / .16);
overflow: auto;
overscroll-behavior: contain;
font: 600 14px/1.4 var(--font);
transform-origin: top right;
}
.lr-language-menu:is(:popover-open, .\:popover-open) { animation: lr-language-open 180ms var(--spring); }
.lr-language-menu.is-above { transform-origin: bottom right; --language-offset: 5px; }
@keyframes lr-language-open { from { opacity: 0; transform: translateY(var(--language-offset, -5px)) scale(.97); } }
.lr-language-menu button {
display: grid;
grid-template-columns: 34px minmax(0, 1fr) 16px;
align-items: center;
gap: 10px;
width: 100%;
min-height: 48px;
padding: 6px 10px;
border: 0;
border-radius: 12px;
background: transparent;
color: inherit;
text-align: start;
overflow-wrap: anywhere;
transition: background-color 140ms ease, color 140ms ease, transform 180ms var(--spring);
}
.lr-language-menu button + button { margin-top: 4px; }
.lr-language-menu button:is(:hover, :focus-visible) { background: var(--control-hover); transform: translateY(-1px); }
.lr-language-menu button:focus-visible { outline-offset: -3px; }
.lr-language-menu button:active { transform: var(--control-press-transform); transition-duration: 80ms; }
.lr-language-menu button[aria-checked="true"] { background: var(--control-selected); color: var(--control-selected-ink); box-shadow: inset 0 0 0 2px var(--action); }
.lr-language-mark {
display: grid;
place-items: center;
height: 32px;
border-radius: 9px;
background: color-mix(in srgb, currentColor 8%, transparent);
font-size: 12px;
font-weight: 800;
}
.lr-language-menu .is-unselected { visibility: hidden; }
/* ---------- room layout ---------- */
/* Clip horizontal decoration without creating a scrolling container. */
.lr-app { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.lr-room {
flex: 1;
width: min(1180px, 100%);
min-width: 0;
margin: 0 auto;
padding: 8px clamp(14px, 3.5vw, 40px) 64px;
}
.lr-scene { position: relative; min-width: 0; }
body.lr-theater-open { overflow: hidden; }
body.lr-theater-open .lr-top { visibility: hidden; }
.lr-room.is-theater {
position: fixed;
z-index: 1000;
inset: 0;
width: 100vw;
height: 100dvh;
padding: 0;
background: var(--stage);
}
.lr-room.is-theater .lr-scene { width: 100%; height: 100%; }
.lr-room.is-theater .lr-tv {
width: 100%;
height: 100%;
padding: 0;
border: 0;
border-radius: 0;
}
.lr-room.is-theater .lr-tv-screen,
.lr-room.is-theater .lr-tv-screen.has-entry {
width: 100%;
height: 100%;
min-height: 0;
overflow: hidden;
aspect-ratio: auto;
border-radius: 0;
}
.lr-room.is-theater .lr-tv-chin,
.lr-room.is-theater .lr-couch,
.lr-room.is-theater .lr-deck { display: none; }
/* ---------- the TV ---------- */
.lr-tv {
position: relative;
width: min(960px, 100%);
margin: 0 auto;
padding: 12px 12px 0;
border: 3px solid var(--frame);
border-radius: 26px 26px 20px 20px;
background: linear-gradient(155deg, var(--frame-highlight), var(--frame) 75%);
box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 2px 0 var(--surface-shade), 0 18px 35px color-mix(in srgb, var(--surface-shade) 58%, transparent);
transition: width 240ms ease-out;
}
.lr-tv-screen {
position: relative;
container: media-stage / inline-size;
overflow: hidden;
aspect-ratio: 16 / 9;
border-radius: 14px 14px 8px 8px;
background: var(--stage);
}
.lr-tv-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--stage); }
.lr-tv-screen.has-entry { display: grid; aspect-ratio: 16 / 9; }
.lr-tv-screen.is-on { animation: lr-crt .5s cubic-bezier(.2, .8, .3, 1) both; }
.lr-tv-chin {
display: flex;
align-items: center;
justify-content: center;
height: 26px;
}
/* Keep playback controls reachable on a short landscape viewport. Entry and
source-picker panels retain their content-driven size; theater is explicit. */
@media (orientation: landscape) and (max-height: 500px) {
.lr-room { --tv-viewport-reserve: 128px; }
.lr-room:has(.lr-host-controls) { --tv-viewport-reserve: 200px; }
.lr-room:not(.is-theater) .lr-tv:has(.lr-playback):not(:has(.has-entry)) {
width: min(960px, 100%, calc(max(168px, 100svh - var(--tv-viewport-reserve)) * 16 / 9 + 30px));
}
}
@keyframes lr-crt {
0% { filter: brightness(3); transform: scaleY(.012); }
55% { filter: brightness(1.6); transform: scaleY(1.02); }
100% { filter: brightness(1); transform: scaleY(1); }
}
/* TV overlays */
.lr-tv-screen:has(> .lr-tv-overlay.is-dim)::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
background: color-mix(in srgb, var(--stage) 62%, transparent);
}
.lr-tv-overlay {
position: absolute;
inset: 0;
z-index: 2;
display: grid;
place-content: center;
justify-items: center;
gap: 14px;
padding: 18px;
border: 0;
background: transparent;
color: #dfe8f2;
text-align: center;
}
.lr-tv-overlay.is-passive { pointer-events: none; }
.lr-tv-status-content { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lr-tv-progress { display: inline-flex; align-items: center; gap: 6px; }
.lr-tooltip-preview { max-width: 1440px; }
.lr-tooltip-preview-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 20px; }
.lr-tooltip-preview-head h1 { margin: 0; font-size: 1.1rem; }
.lr-tooltip-preview-head p { margin: 0; opacity: .7; }
.lr-tooltip-preview-head label { display: flex; align-items: center; gap: 6px; }
.lr-tooltip-preview h2 { margin: 24px 0 12px; font-size: 1rem; }
.lr-tooltip-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.lr-tooltip-preview-card { min-width: 0; padding: 10px; border: 1px solid var(--wall-2); border-radius: 8px; background: var(--paper); }
.lr-tooltip-preview-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lr-tooltip-preview-card code, .lr-tooltip-preview-card small { font-size: .75rem; overflow-wrap: anywhere; opacity: .7; }
.lr-tooltip-preview-actions { display: flex; gap: 4px; }
.lr-tooltip-preview-trigger { width: 36px; height: 36px; padding: 0; border: 1px solid var(--wall-2); border-radius: 999px; background: transparent; color: var(--ink); }
.lr-tooltip-preview-art { min-height: 106px; display: grid; place-items: center; overflow: hidden; }
.lr-tooltip-preview-art svg { max-width: 100%; height: auto; }
.lr-tv-overlay.has-comic {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px;
}
.lr-tv-overlay.has-comic > svg { min-height: 0; flex-shrink: 1; }
.lr-tv-overlay.has-comic .lr-tv-status-content {
flex: none;
flex-direction: row;
gap: 8px;
max-width: 100%;
}
.lr-tv-overlay.has-comic .lr-tv-msg { line-height: 1.35; }
.lr-tv-overlay.has-comic .lr-tv-big { width: 40px; height: 40px; flex-shrink: 0; }
@container media-stage (max-width: 260px) {
.lr-tv-overlay.has-comic { gap: 4px; padding: 4px; }
.lr-tv-overlay > .lr-waiting-caption { display: none; }
}
.lr-tv-big {
position: relative;
display: grid;
width: 84px; height: 84px;
place-items: center;
border: 3px solid #dfe8f2;
border-radius: 50%;
color: #fff;
background: rgba(255, 255, 255, .07);
transition: var(--control-motion), background 160ms ease;
}
.lr-tv-big:is(button, .is-action):is(:hover, :focus-visible):not(:disabled) { transform: var(--control-hover-transform); }
.lr-tv-big:is(button, .is-action):active:not(:disabled) { transform: var(--control-press-transform); transition-duration: 80ms; }
.lr-tv-big.is-action { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); cursor: pointer; }
.lr-tv-big.is-action:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--primary) 88%, #000); background: color-mix(in srgb, var(--primary) 88%, #000); }
.lr-tv-big.is-ripple::after {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
box-shadow: 0 0 0 22px color-mix(in srgb, var(--primary) 45%, transparent);
opacity: 0;
pointer-events: none;
transform: scale(.66);
will-change: transform, opacity;
animation: lr-ripple 2s ease-out infinite;
}
@keyframes lr-ripple {
0% { opacity: .45; transform: scale(.66); }
70%, 100% { opacity: 0; transform: scale(1); }
}
.lr-tv-msg {
font-size: 14.5px;
font-weight: 600;
color: #dfe8f2;
text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.lr-entry-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.lr-entry-action { display: grid; justify-items: center; gap: 8px; align-content: start; }
/* App capture source picker */
.lr-source-picker {
z-index: 5;
place-content: stretch;
justify-items: stretch;
overflow: hidden;
background: var(--wall);
color: var(--ink);
text-align: left;
}
.lr-tv-screen:has(> .lr-playback) > .lr-tv-overlay.lr-source-picker { grid-area: 1 / 1 / -1 / 2; }
.lr-source-picker-panel {
display: grid;
grid-template-rows: auto auto minmax(0, 1fr);
width: min(720px, 100%);
min-width: 0;
min-height: 0;
height: 100%;
max-height: 100%;
margin-inline: auto;
gap: 12px;
}
.lr-source-picker-head {
display: flex;
min-width: 0;
align-items: center;
gap: 10px;
}
.lr-source-picker-mark,
.lr-source-option-icon,
.lr-source-option-preview {
display: grid;
flex: 0 0 auto;
place-items: center;
color: var(--ink);
}
.lr-source-picker-mark {
width: 42px;
height: 42px;
border: 2px solid var(--action);
border-radius: 50%;
background: var(--control-selected);
color: var(--control-selected-ink);
box-shadow: 0 2px 0 var(--surface-shade);
}
.lr-source-picker-copy,
.lr-source-option-copy {
display: grid;
min-width: 0;
gap: 2px;
}
.lr-source-picker-copy { flex: 1; }
.lr-source-picker-copy strong { font-size: 15px; }
.lr-source-picker-copy small,
.lr-source-option-copy small,
.lr-source-picker-status {
color: var(--muted);
font-size: 11.5px;
}
.lr-source-picker-refresh, .lr-source-picker-close { flex: none; }
.lr-source-picker-refresh { margin-left: auto; }
.lr-source-picker-head > .lr-comic-tip-wrap:has(> .lr-source-picker-refresh) { margin-left: auto; }
.lr-source-picker-tabs.lr-toggle {
display: grid;
}
.lr-source-picker-tabs > span { min-width: 0; }
.lr-source-picker-tabs.lr-toggle button {
width: 100%;
height: auto;
min-height: 44px;
gap: 7px;
padding: 8px 4px;
font-size: 12px;
font-weight: 700;
}
.lr-source-picker-tabs button svg { flex: 0 0 auto; }
.lr-source-picker-tabs button > span { word-break: keep-all; }
@media (max-width: 520px) {
.lr-source-picker-tabs.lr-toggle button { flex-direction: column; gap: 3px; padding-inline: 0; font-size: 11px; }
}
.lr-source-picker-tabs button:is(:hover, :focus-visible):not(:disabled):not([aria-selected="true"]) { background: var(--control-hover); }
.lr-source-picker-body {
display: flex;
min-height: 0;
flex-direction: column;
gap: 10px;
overflow-y: auto;
overscroll-behavior-y: contain;
scrollbar-gutter: stable;
padding: 8px;
margin: -8px;
}
.lr-source-picker-body > [role="status"] { text-align: center; }
.lr-source-picker-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
grid-auto-rows: max-content;
min-width: 0;
min-height: 0;
flex-shrink: 0;
align-content: start;
gap: 8px;
padding: 2px;
}
.lr-source-option {
display: flex;
min-width: 0;
min-height: 58px;
align-items: center;
gap: 10px;
padding: 9px 12px;
border: var(--control-border-width) solid var(--control-edge);
border-radius: var(--control-radius);
background: var(--surface-glaze) var(--paper);
box-shadow: var(--control-shadow);
color: var(--ink);
text-align: left;
transition: var(--control-motion), border-color 120ms ease, background 120ms ease;
}
.lr-source-option:is(:hover, :focus-visible):not(:disabled) {
border-color: var(--action);
background: var(--control-hover);
transform: var(--control-hover-transform);
box-shadow: inset 0 0 0 1px var(--action), var(--control-shadow);
}
.lr-source-option:active:not(:disabled) { transform: var(--control-press-transform); box-shadow: none; transition-duration: 80ms; }
.lr-source-option[aria-current="true"] { border-color: var(--action); background: var(--control-selected); color: var(--control-selected-ink); }
.lr-source-option:not(.is-action) {
display: grid;
align-items: stretch;
gap: 6px;
padding: 8px;
}
.lr-source-option:not(.is-action) .lr-source-option-copy {
display: flex;
min-height: 36px;
align-items: flex-start;
gap: 8px;
}
.lr-source-option:not(.is-action) .lr-source-option-copy strong {
display: -webkit-box;
flex: 1;
min-width: 0;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
white-space: normal;
overflow-wrap: anywhere;
line-height: 1.35;
}
.lr-source-option-icon {
width: 38px;
height: 38px;
border-radius: 8px;
background: var(--wall-2);
}
.lr-source-option-preview {
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
width: 100%;
height: 144px;
overflow: hidden;
border-radius: 8px;
background: var(--wall-2);
}
.lr-source-option-preview img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
background: var(--wall-2);
}
.lr-source-option-copy { flex: 1; }
.lr-source-option-copy strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
}
.lr-source-option.is-action .lr-source-option-copy strong { white-space: normal; }
.lr-source-picker.is-visual .lr-source-option.is-action {
min-height: 90px;
justify-content: center;
padding: 8px;
}
.lr-source-picker-status {
display: flex;
flex-direction: column;
min-height: 22px;
align-items: center;
justify-content: center;
gap: 8px;
text-align: center;
}
.lr-source-picker-options {
display: flex;
flex: 0 0 auto;
flex-wrap: wrap;
justify-content: flex-end;
gap: 6px 24px;
}
.lr-source-picker-option {
display: flex;
min-height: 38px;
flex: 0 0 auto;
align-items: center;
justify-content: flex-end;
gap: 9px;
color: var(--ink);
font-size: 12px;
font-weight: 650;
}
.lr-source-exclusion { min-width: 0; max-width: 100%; }
.lr-source-exclusion[open] { flex-basis: 100%; }
.lr-source-exclusion summary {
display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 8px;
color: var(--ink); font-size: 12px; font-weight: 650; cursor: pointer; border-radius: 12px;
transition: background-color 140ms ease;
}
.lr-source-exclusion summary::-webkit-details-marker { display: none; }
.lr-source-exclusion summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-source-exclusion summary svg { flex-shrink: 0; }
.lr-source-exclusion[open] summary > svg:last-child { transform: rotate(180deg); }
.lr-source-exclusion summary:is(:hover, :focus-visible) { background: var(--control-hover); }
.lr-source-picker-option .lr-switch {
width: 50px;
height: 30px;
}
.lr-source-picker-option .lr-switch::after {
width: 20px;
height: 20px;
}
.lr-source-picker-option .lr-switch[aria-checked="true"]::after {
transform: translateX(20px);
}
/* static noise while connecting */
.lr-tv-static {
position: absolute;
inset: 0;
opacity: .55;
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect width='90' height='90' fill='%230d1526'/%3E%3Crect x='4' y='9' width='5' height='5' fill='%232c3a52'/%3E%3Crect x='26' y='30' width='4' height='4' fill='%231e2a40'/%3E%3Crect x='52' y='12' width='6' height='6' fill='%23364a68'/%3E%3Crect x='70' y='48' width='5' height='5' fill='%23232f47'/%3E%3Crect x='12' y='60' width='6' height='6' fill='%23304058'/%3E%3Crect x='40' y='70' width='4' height='4' fill='%231e2a40'/%3E%3Crect x='64' y='74' width='5' height='5' fill='%232c3a52'/%3E%3Crect x='80' y='20' width='4' height='4' fill='%23304058'/%3E%3Crect x='34' y='50' width='5' height='5' fill='%23232f47'/%3E%3Crect x='8' y='36' width='4' height='4' fill='%23364a68'/%3E%3Crect x='48' y='40' width='4' height='4' fill='%232c3a52'/%3E%3Crect x='76' y='64' width='4' height='4' fill='%231e2a40'/%3E%3C/svg%3E");
animation: lr-static .36s steps(3) infinite;
}
@keyframes lr-static {
0% { background-position: 0 0; }
33% { background-position: 28px 14px; }
66% { background-position: -18px 26px; }
100% { background-position: 12px -20px; }
}
/* ---------- couch + pawns ---------- */
.lr-couch {
position: relative;
width: min(720px, 96%);
margin: 20px auto 0;
}
.lr-couch-seating { position: relative; max-width: 100%; margin: auto; }
.lr-couch-benches {
position: absolute;
inset: 0;
pointer-events: none;
}
.lr-couch-benches > svg { display: block; width: 100%; height: 108px; }
.lr-pawns {
position: relative;
display: grid;
grid-auto-rows: 108px;
margin: 0 32px;
align-items: start;
}
.lr-seat { display: grid; min-width: 0; justify-items: center; padding-top: 24px; }
.lr-pawn {
position: relative;
display: grid;
width: max-content;
min-width: 44px;
place-items: center;
padding: 0;
border: 0;
background: transparent;
transition: transform 150ms var(--spring);
}
.lr-pawn:is(:hover, :focus-visible):not(.is-static) { transform: translateY(-3px); }
.lr-pawn > .lr-person { width: 48px; height: 56px; display: block; }
.lr-pawn-led {
position: absolute;
top: 2px;
left: calc(50% + 10px);
width: 10px; height: 10px;
border: 2px solid var(--wall);
border-radius: 50%;
background: var(--live);
}
.lr-pawn-led[data-tone="busy"] { background: var(--busy); }
.lr-pawn-led[data-tone="warn"] { background: var(--warn); }
.lr-pawn-led[data-tone="bad"] { background: var(--danger); }
.lr-pawn-led[data-tone="off"] { background: var(--idle); }
.lr-pawn-led[data-pulse] { animation: lr-blink 1.6s ease-in-out infinite; }
.lr-pawn.is-waiting > svg { opacity: .65; animation: lr-pawn-breathe 1.6s ease-in-out infinite; }
@keyframes lr-pawn-breathe { 50% { opacity: .35; } }
.lr-pawn.is-you::after {
content: "";
position: absolute;
top: -13px; left: 50%;
width: 13px; height: 10px;
background: var(--you);
clip-path: polygon(50% 100%, 0 0, 100% 0);
transform: translateX(-50%);
}
.lr-pawn.is-you { z-index: 1; }
.lr-pawn.is-host .lr-pawn-name { font-weight: 850; }
.lr-pawn.is-static { cursor: default; }
.lr-pawn.is-selected { transform: translateY(-5px); }
.lr-pawn.is-selected::before {
content: "";
position: absolute;
inset: -3px -6px;
border: 2.5px solid var(--ink);
border-radius: 13px;
}
.lr-pawn-name {
max-width: 70px;
margin-top: -4px;
padding: 1px 6px;
border-radius: 7px;
background: var(--paper);
color: var(--ink);
font-size: 11px;
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.lr-couch-footer { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 32px; color: var(--muted); }
.lr-couch-count {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 8px;
border: 1px solid var(--wall-2);
border-radius: 999px;
background: var(--paper);
color: var(--ink);
font-family: var(--mono);
font-size: 11px;
line-height: 1;
}
.lr-couch-count b { font-size: inherit; }
.lr-couch-empty {
position: absolute;
inset: 45px 0 auto;
display: grid;
place-items: center;
color: var(--muted);
opacity: .85;
}
/* ---------- deck: control rows ---------- */
.lr-deck { width: 100%; min-width: 0; margin-top: 34px; display: grid; gap: 14px; }
.lr-row {
display: flex;
min-width: 0;
max-width: 100%;
flex-wrap: wrap;
align-items: center;
gap: 12px;
padding: 15px 18px;
border: 1px solid var(--control-edge);
border-radius: 24px;
background: var(--paper);
}
.lr-row.is-sub { background: var(--wall-2); border-color: transparent; }
.lr-row-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.lr-group-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.lr-host-summary-row { justify-content: flex-end; column-gap: 8px; }
.lr-host-room-slot { margin-inline-end: auto; }
.lr-host-personal-controls,
.lr-viewer-personal-controls { display: contents; }
.lr-host-identity-slot,
.lr-host-diagnostics-slot { flex: 0 0 auto; }
.lr-host-diagnostics-slot {
padding-inline-start: 10px;
border-inline-start: 2.5px solid var(--wall-2);
}
.lr-viewer-summary-row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
column-gap: 12px;
row-gap: 10px;
}
:is(.lr-host-summary-row, .lr-viewer-summary-row):has(.lr-group-name > [role="alert"]) { align-items: flex-start; }
.lr-viewer-room-slot { flex: 0 0 auto; }
.lr-viewer-host-slot {
flex: 1 1 96px;
min-width: 0;
max-width: 180px;
min-height: 52px;
margin-inline-end: auto;
flex-wrap: nowrap;
font-size: 13px;
}
.lr-viewer-host-slot svg { flex: 0 0 auto; color: var(--muted); }
.lr-viewer-host-slot b {
min-width: 0;
overflow: hidden;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.lr-viewer-self-slot {
display: flex;
flex: 0 1 auto;
align-items: center;
gap: 8px;
margin-left: 0;
}
.lr-viewer-actions-slot {
flex: 0 0 auto;
margin-left: 0;
}
.lr-viewer-action-cluster {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 8px;
}
.lr-viewer-action-separator {
width: 2.5px;
height: 32px;
flex: 0 0 auto;
align-self: center;
border-radius: 2px;
background: var(--wall-2);
}
.lr-viewer-self-slot .lr-name-tag { flex: 0 1 auto; width: auto; }
.lr-name-hint { min-width: 0; max-width: 100%; }
.lr-comic-tip-wrap.lr-overview-row-hint { display: flex; width: 100%; }
.lr-source-option-hint { min-width: 0; }
.lr-source-option-hint > .lr-source-option { width: 100%; height: 100%; }
.lr-invite-hint { width: 100%; min-width: 0; max-width: 340px; flex: 1 1 240px; }
.lr-invite-hint > .lr-invite-url { width: 100%; }
.lr-invite-field { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: 1 1 360px; min-width: 0; }
.lr-invite-field > .lr-invite-hint { flex: 1 1 180px; max-width: none; }
.lr-invite-field .lr-invite-url { max-width: none; }
.lr-invite-field > .lr-row-group { flex: none; width: auto; }
.lr-spacer { flex: 1; }
.lr-divider { width: 2.5px; align-self: stretch; border-radius: 2px; background: var(--wall-2); }
.lr-row.is-sub .lr-divider { background: var(--line); }
.lr-field-cap { opacity: .68; font-size: 12px; font-weight: 600; }
.lr-invite-url {
width: 100%;
min-width: 0;
max-width: 340px;
flex: 1 1 240px;
overflow: hidden;
text-overflow: ellipsis;
padding: 7px 10px;
border: 1.5px dashed var(--wall-2);
border-radius: 8px;
background: var(--wall-2);
color: var(--ink);
cursor: text;
font-family: var(--mono);
font-size: 11px;
text-align: left;
user-select: text;
}
/* Touch only: the compact mono URL would auto-zoom iOS on focus under 16px,
and the zoom never returns. Pointer devices keep the dense line. */
/* LCD room code */
.lr-room-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.lr-lcd {
display: inline-flex;
flex: none;
align-items: center;
gap: 10px;
padding: 8px 12px;
border: 3px solid var(--ink);
border-radius: 12px;
background: var(--lcd);
color: var(--lcd-digits);
font-family: var(--mono);
font-size: 24px;
font-weight: 700;
letter-spacing: .3em;
text-indent: .15em;
}
.lr-lcd.is-empty { border-style: dashed; border-color: var(--control-edge); background: var(--wall-2); color: var(--muted); }
.lr-lcd.is-create { transition: var(--control-motion), background-color 140ms ease, border-color 140ms ease; }
.lr-lcd.is-create:is(:hover, :focus-visible):not(:disabled) { background: var(--control-hover); border-color: var(--ink); color: var(--ink); transform: var(--control-hover-transform); }
.lr-lcd.is-create:active:not(:disabled) { transform: var(--control-press-transform); transition-duration: 80ms; }
.lr-lcd button, .lr-lcd-action {
display: grid;
width: 34px; height: 34px;
place-items: center;
}
.lr-lcd.is-empty:not(.is-create) .lr-lcd-action { opacity: .45; }
.lr-lcd button {
border: 0;
border-radius: 8px;
background: transparent;
color: var(--lcd-digits);
transition: background 120ms ease;
}
.lr-lcd button:hover { background: #ffffff22; }
.lr-lcd-roll { display: inline-flex; overflow: hidden; }
.lr-lcd-roll span { display: inline-block; animation: lr-roll .34s var(--spring) both; }
.lr-lcd.is-empty .lr-lcd-roll span { animation: none; }
@keyframes lr-roll { from { transform: translateY(110%); } }
/* ---------- buttons & chips ---------- */
.lr-app-connect.is-ready > svg { color: var(--live); }
.lr-app-connect.is-ready[data-update] > svg { color: var(--primary); }
.lr-anchored-card {
position: fixed; inset: auto; margin: 0; padding: 16px;
width: min(300px, calc(100vw - 16px)); box-sizing: border-box;
color: var(--ink); background: var(--paper);
border: 1px solid var(--control-edge); border-radius: 20px;
box-shadow: var(--control-shadow), 0 12px 36px #101a2c33;
overflow: auto; overscroll-behavior: contain;
}
.lr-app-connect-help p { margin: 12px 0; font-size: 13px; line-height: 1.6; text-align: center; }
.lr-app-connect-help .lr-app-connect-version { color: var(--muted); font-size: 12px; }
.lr-app-connect-help .lr-client-release { margin-block: 12px; }
.lr-anchored-card:is(:popover-open, .\:popover-open) { animation: lr-language-open 180ms var(--spring); }
.lr-anchored-card.is-above { --language-offset: 5px; }
.lr-app-connect-head { display: grid; grid-template-columns: var(--control-dense-size) minmax(0, 1fr) var(--control-dense-size); align-items: start; }
.lr-app-connect-head > :first-child { grid-area: 1 / 2; }
.lr-app-connect-close { grid-area: 1 / 3; justify-self: end; }
.lr-app-connect-scene { width: min(220px, 100%); aspect-ratio: 10 / 3; margin-inline: auto; }
.lr-app-connect-scene > svg { width: 100% !important; }
.lr-app-connect-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lr-app-connect-help .lr-app-connect-optional { color: var(--muted); font-size: 12px; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .lr-anchored-card:is(:popover-open, .\:popover-open) { animation: none; } }
.lr-help-menu { width: min(260px, calc(100vw - 16px)); }
.lr-help-content header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 2px 14px; }
.lr-help-content header strong { font-size: 14px; }
.lr-help-content header :is(a, span) { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lr-help-content header a { text-underline-offset: 3px; }
.lr-help-content nav { display: grid; gap: 4px; }
.lr-help-content nav .lr-btn { width: 100%; justify-content: flex-start; }
.lr-help-content.is-visual nav { display: flex; justify-content: center; gap: 12px; }
.lr-help-content.is-visual nav .lr-btn { width: var(--control-compact-size); justify-content: center; }
.lr-cap { font-size: var(--control-label-size); font-weight: 600; color: inherit; white-space: nowrap; }
.lr-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 9px 14px;
border: var(--control-border-width) solid var(--control-edge);
border-radius: 999px;
background: var(--paper);
font-family: var(--font);
font-size: 13px;
font-weight: 600;
box-shadow: var(--control-shadow);
}
/* Selection keeps the same press/release transition. A separate transform
animation would jump away from the held pose when the selection changes. */
.lr-chip, .lr-tile {
transition: var(--control-motion), background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
:is(.lr-chip, .lr-tile):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) { transform: var(--control-hover-transform); }
:is(.lr-chip, .lr-tile):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):where(:not(.is-selected)) { background: var(--control-hover); }
:is(.lr-chip, .lr-tile):active:not(:disabled):not([aria-disabled="true"]) { transform: var(--control-press-transform); box-shadow: none; transition-duration: 80ms; }
:is(.lr-chip, .lr-tile).is-selected { background: var(--control-selected); color: var(--control-selected-ink); border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action), var(--control-shadow); }
:is(.lr-chip, .lr-tile).is-selected:active:not(:disabled) { box-shadow: inset 0 0 0 1px var(--action); }
.lr-chip .lr-cap { font-family: var(--font); letter-spacing: 0; }
.lr-chip small { margin-left: 5px; font-size: 10.5px; opacity: .6; }
.lr-chip .lr-audio-rate {
opacity: .85;
min-width: 3ch;
margin-left: 0;
text-align: center;
letter-spacing: 0;
}
.lr-chip-dot {
display: inline-block;
width: 7px; height: 7px;
margin-left: 7px;
border-radius: 50%;
background: var(--live);
vertical-align: 1px;
}
@keyframes lr-pop { 50% { transform: scale(1.06); } }
/* Sliding switch; its thumb stays inside the track at either end. */
.lr-switch {
position: relative;
display: inline-flex;
width: 58px; height: 34px;
border: var(--control-border-width) solid var(--control-edge);
border-radius: 999px;
background: var(--paper);
flex: 0 0 auto;
transition: background 200ms ease, border-color 200ms ease;
}
.lr-switch::after {
content: "";
position: absolute;
top: 3px; left: 3px;
width: 24px; height: 24px;
border-radius: 50%;
background: var(--ink);
transition: transform 280ms var(--spring), background 200ms ease;
}
.lr-switch:active::after { transform: scaleX(1.18); }
.lr-switch[aria-checked="true"] { background: var(--action-deep); border-color: var(--action-deep); }
.lr-switch[aria-checked="true"]::after { transform: translateX(24px); background: var(--action-ink); }
.lr-switch[aria-checked="true"]:active::after { transform: translateX(24px) scaleX(1.18); }
/* sliders */
.lr-slider { display: flex; align-items: center; gap: 12px; }
.lr-slider input { flex: 1; accent-color: var(--action); height: 32px; }
.lr-slider output { min-width: 64px; font-family: var(--mono); font-size: 12.5px; text-align: right; }
/* Choice tiles share interaction feedback; each surface owns its layout. */
.lr-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.lr-tile {
display: grid;
justify-items: center;
gap: 6px;
min-width: 76px;
padding: 12px 10px 9px;
border: var(--control-border-width) solid var(--control-edge);
border-radius: var(--control-radius);
background: var(--paper);
color: var(--ink);
box-shadow: var(--control-shadow);
}
.lr-tiles .lr-tile small { max-width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--muted); text-wrap: balance; overflow-wrap: normal; }
.lr-tiles .lr-tile.is-selected small { color: var(--control-selected-ink); }
/* text inputs */
.lr-input {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
height: 48px;
padding: 0 12px;
border: var(--control-border-width) solid var(--control-edge);
border-radius: var(--control-radius);
background: var(--paper);
transition: border-color 140ms ease;
}
.lr-input:focus-within { border-color: var(--action); outline: 3px solid var(--action); outline-offset: 2px; }
.lr-input input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; }
.lr-input input[type="password"]:not(:placeholder-shown) { letter-spacing: .25em; }
.lr-quality-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-width: 0; }
.lr-quality-heading > .lr-comic-tip-wrap { margin-inline-start: auto; max-width: 100%; }
.lr-quality-heading:has(.lr-quality-number) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.lr-quality-heading:has(.lr-quality-number) .lr-cap { white-space: normal; }
.lr-quality-heading .lr-door-glyph > svg { flex: none; }
.lr-input.lr-quality-number, .lr-input.lr-video-size {
height: 38px; padding: 0 10px; border-width: 1px; border-radius: 12px;
background: var(--wall); max-width: 100%; font-family: var(--mono);
transition: border-color 140ms ease, background-color 140ms ease;
}
.lr-input:is(.lr-quality-number, .lr-video-size):hover:not(:has(:disabled)) { border-color: var(--ink); background: var(--control-hover); }
.lr-input:is(.lr-quality-number, .lr-video-size):has(:disabled) { opacity: .55; }
.lr-input:is(.lr-quality-number, .lr-video-size):has([aria-invalid="true"]) { border-color: var(--danger); }
.lr-quality-validation { color: color-mix(in srgb, var(--danger) 70%, var(--ink)); font-size: 12px; line-height: 1.5; }
.lr-input.lr-quality-number { width: 110px; gap: 6px; }
.lr-quality-number input, .lr-video-size input { font-size: 13px; font-weight: 650; appearance: textfield; }
.lr-quality-number input { text-align: right; }
.lr-quality-number span, .lr-video-size span { color: var(--muted); font-size: 11px; }
.lr-quality-number input::-webkit-inner-spin-button, .lr-quality-number input::-webkit-outer-spin-button,
.lr-video-size input::-webkit-inner-spin-button, .lr-video-size input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.lr-quality-rate { display: grid; align-content: start; gap: 4px; width: 100%; min-width: 0; }
.lr-quality-rate > input { min-width: 0; width: 100%; height: 28px; margin: 0; accent-color: var(--action); }
.lr-quality-range-labels { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.lr-quality-custom { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 47px; }
.lr-quality-custom-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lr-input.lr-video-size { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 5px; width: 176px; }
.lr-resolution-controls { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lr-resolution-controls > .lr-row-group { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); max-width: 520px; }
.lr-resolution-controls .lr-chip { width: 100%; justify-content: center; }
.lr-video-size input { width: 100%; padding: 0; text-align: center; appearance: textfield; }
@media (pointer: coarse) {
.lr-invite-url, .lr-quality-number input, .lr-video-size input { font-size: 16px; }
}
.lr-welcome { width: 100%; min-width: 0; max-width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; color: inherit; font-size: 15px; font-weight: 600; line-height: 1.7; text-align: center; white-space: nowrap; container-type: inline-size; }
.lr-welcome-text { display: block; width: max-content; min-width: 100%; }
.lr-welcome-text::before { content: "✦"; color: #d7982b; margin-right: 8px; }
@media (prefers-reduced-motion: no-preference) {
.lr-welcome:not(.is-still, .is-cipher) { overflow: clip; }
.lr-welcome:not(.is-still) .lr-welcome-text { animation: lr-welcome-read 8s linear both; }
.lr-welcome[data-text-active="false"] .lr-welcome-text { animation-name: none; }
}
[data-comic-reduced-motion="true"] .lr-welcome { overflow-x: auto; }
[data-comic-reduced-motion="true"] .lr-welcome-text { animation: none; }
/* Fitting lines stay still. Longer lines pan once to reveal their end;
changing language restarts this CSS motion, not a copy-rotation timer. */
@keyframes lr-welcome-read {
0%, 20% { transform: translateX(0); }
75%, 100% { transform: translateX(min(0px, calc(100cqw - 100%))); }
}
.lr-welcome-cipher { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; opacity: .72; white-space: nowrap; }
.lr-welcome-cipher i { width: 3px; height: 3px; background: #d7982b; transform: rotate(45deg); }
.lr-tv-overlay > .lr-welcome { position: absolute; top: clamp(20px, 3vw, 32px); left: 18px; right: 18px; width: auto; font-size: clamp(13px, 1.5vw, 16px); }
.lr-tv-overlay:has(> .lr-join-panel) > .lr-welcome { display: none; }
.lr-tv-overlay:has(> .lr-join-panel) { position: relative; grid-template-columns: minmax(0, 1fr); }
.lr-welcome-catalog { margin-block: 0 24px; }
.lr-welcome-catalog summary { cursor: pointer; width: fit-content; padding-block: 12px; font-weight: 650; }
.lr-welcome-catalog ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px 32px; padding-inline-start: 28px; }
.lr-welcome-catalog li > span:first-child { display: block; }
.lr-welcome-catalog .lr-welcome-cipher { margin-top: 6px; }
.lr-input.lr-name-editor {
flex: 1;
min-width: 0;
width: 0;
height: 40px;
border-radius: 999px;
}
.lr-group-name { width: 224px; max-width: 100%; }
.lr-group-name > [role="alert"] { flex-basis: 100%; }
.lr-group-name > .lr-name-hint { flex: 1; width: 0; }
.lr-group-name .lr-name-tag { width: 100%; }
.lr-name-tag {
display: inline-flex;
min-width: 0;
align-items: center;
gap: 7px;
height: 40px;
padding: 0 13px;
box-sizing: border-box;
border: 2.5px solid var(--ink);
border-radius: 999px;
background: var(--paper);
font-size: 13.5px;
font-weight: 700;
max-width: 100%;
}
.lr-name-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--you); flex: 0 0 auto; }
.lr-name-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* notices */
.lr-notice {
--pill-tone: var(--warn);
display: inline-flex;
align-items: center;
min-width: 0;
max-width: 100%;
border-radius: 999px;
background: color-mix(in srgb, var(--paper) 94%, var(--pill-tone));
border: 2px solid var(--pill-tone);
color: var(--ink);
animation: lr-slide-in 240ms var(--spring);
}
.lr-notice > .lr-comic-tip-wrap { min-width: 0; flex: 1; border-radius: inherit; }
.lr-notice-dismiss { display: flex; flex: none; margin-block: 4px; margin-inline: 0 4px; }
.lr-notice-dismiss .lr-btn { border-radius: 50%; }
.lr-notice.is-dismissible .lr-pill { padding-inline-end: 6px; }
.lr-pill {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
width: 100%;
padding: 9px 14px;
border: 0;
border-radius: inherit;
background: transparent;
color: inherit;
font-size: 13px;
font-weight: 600;
text-align: start;
}
.lr-pill > .lr-glyph { flex-shrink: 0; }
.lr-notice.is-bad { --pill-tone: var(--danger); }
.lr-notice.is-good { --pill-tone: var(--live); }
.lr-notice.is-off { --pill-tone: var(--ink); background: var(--paper); }
.lr-notice.is-busy { --pill-tone: var(--busy); }
@keyframes lr-slide-in { from { opacity: 0; transform: translateY(-6px); } }
/* metric cells */
.lr-meter { display: flex; flex-wrap: wrap; gap: 10px; }
.lr-metric-groups { display: grid; flex: 1 1 100%; width: 100%; gap: 12px; min-width: 0; }
.lr-metric-group { display: grid; gap: 6px; min-width: 0; }
.lr-metric-group-label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.lr-meter-cell {
display: inline-flex;
min-width: 0;
max-width: 100%;
align-items: center;
gap: 8px;
padding: 9px 12px;
border-radius: 12px;
background: var(--wall-2);
}
.lr-meter-cell b {
min-width: 0;
max-width: 100%;
overflow-wrap: anywhere;
font-family: var(--mono);
font-size: 13px;
font-weight: 700;
letter-spacing: .02em;
}
.lr-meter-cell[data-metric] { align-items: flex-start; }
.lr-meter-cell[data-metric] b { white-space: nowrap; overflow-wrap: normal; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.lr-meter-cell[data-wrap-value] b { white-space: normal; overflow-wrap: anywhere; }
.lr-meter-cell svg { flex: none; color: var(--muted); }
.lr-meter-text { display: grid; min-width: 0; line-height: 1.18; }
.lr-meter-text small { font-size: 10px; line-height: 1.4; font-weight: 600; color: var(--muted); text-wrap: pretty; word-break: keep-all; overflow-wrap: normal; }
.lr-meter-tag { display: inline-flex; align-items: center; padding: 9px 2px 9px 0; color: var(--muted); }
.lr-meter-tag .lr-cap { margin-left: 6px; font-size: 12px; }
.lr-metrics-more { --button-icon-size: 16px; min-width: 40px; height: 40px; padding: 0 10px; }
.lr-metrics-more svg { transition: transform 160ms ease; }
.lr-metrics-more.is-open svg { transform: rotate(180deg); }
/* per-viewer detail row */
.lr-pawn-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lr-pawn-mini { display: grid; place-items: center; }
.lr-pawn-mini svg { width: 28px; height: 34px; display: block; }
.lr-pawn-detail-name {
min-width: 0;
max-width: 100%;
flex: 1 1 160px;
overflow-wrap: anywhere;
font-size: 14px;
font-weight: 800;
}
.lr-connection-details { container: connection-details / inline-size; display: grid; flex: none; width: 100%; gap: 12px; min-width: 0; }
.lr-connection-details-body { display: grid; min-width: 0; }
.lr-connection-notice { padding-block: 4px; }
.lr-connection-notice .lr-media-detail-head { flex-wrap: nowrap; }
.lr-connection-notice .lr-meter-tag { flex: none; }
.lr-connection-details > .lr-comic-tip-wrap { justify-self: end; }
.lr-media-detail { display: grid; grid-template-columns: minmax(148px, .9fr) minmax(0, 3fr); align-items: start; gap: 10px 16px; min-width: 0; }
.lr-media-detail + .lr-media-detail { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.lr-media-detail-head { display: flex; flex-wrap: wrap; align-items: center; align-content: start; gap: 4px 8px; min-width: 0; }
.lr-media-detail-head .lr-meter-tag { flex: 1 1 100%; align-items: flex-start; min-width: 0; padding-block: 2px; }
.lr-media-detail-head .lr-meter-tag svg { flex: none; }
.lr-media-direction { display: inline-flex; flex: none; margin-block-start: 2.5px; margin-inline-start: 4px; }
.lr-media-detail-head .lr-cap { min-width: 0; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.lr-connection-summary > .lr-media-detail-head .lr-cap { white-space: nowrap; }
.lr-media-detail-head .lr-meter-cell { padding: 4px 6px; background: none; }
.lr-media-detail-head .lr-meter-cell b { font-size: 10px; }
.lr-media-detail-via { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.lr-media-detail > :not(.lr-media-detail-head) { grid-column: 2; }
.lr-media-detail > .lr-connection-paths { display: grid; grid-column: 1 / -1; min-width: 0; margin-top: 6px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); }
.lr-connection-details .lr-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.lr-connection-details .lr-meter-cell[data-metric] { padding: 8px; }
.lr-connection-details .lr-meter > .lr-comic-tip-wrap:has([data-metric="stats.resolutionRange"], [data-metric="stats.fpsRange"], [data-metric="stats.capture"], [data-metric="stats.encoder"]) { grid-column: span 2; }
/* A selected participant's panel can be narrower than the page. */
@container connection-details (max-width: 768px) {
.lr-media-detail { grid-template-columns: minmax(0, 1fr); }
.lr-media-detail > :not(.lr-media-detail-head) { grid-column: 1; }
.lr-media-detail-head .lr-meter-tag { flex: 1 1 auto; }
}
@container connection-details (max-width: 576px) {
.lr-connection-details .lr-meter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- topology tree ---------- */
.lr-route {
width: 100%;
min-width: 0;
max-width: 100%;
flex: 1 1 100%;
overflow-x: hidden;
padding: 6px 2px;
box-sizing: border-box;
}
.lr-route > svg { display: block; width: 100%; max-width: 880px; height: auto; margin: 0 auto; }
.lr-route-idle { margin: 2px 0 8px; color: var(--muted); font-size: 12px; text-align: center; }
.lr-route:focus-visible { border-radius: 10px; outline-color: var(--ink); }
.lr-route-edge {
fill: none;
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
vector-effect: non-scaling-stroke;
}
.lr-route-edge.is-p2p { stroke: var(--route-p2p); }
.lr-route-edge.is-sfu { stroke: var(--route-sfu); }
.lr-route-edge.is-pending {
stroke: var(--route-pending);
stroke-dasharray: 6 7;
animation: lr-flow 1.1s linear infinite;
}
.lr-route-node {
transition: opacity 180ms ease;
}
.lr-route-node.is-pending { opacity: .58; }
.lr-route-hover,
.lr-route-selection,
.lr-route-you { fill: none; vector-effect: non-scaling-stroke; }
.lr-route-hover { stroke: var(--ink); stroke-width: 2; }
.lr-route-selection { stroke: var(--ink); stroke-width: 3; }
.lr-route-you { stroke: var(--you); stroke-width: 2.5; stroke-dasharray: 4 3; }
.lr-route-sfu { fill: none; stroke: var(--route-sfu); stroke-width: 2.5; }
.lr-route-sfu path { stroke-linecap: round; }
.lr-route-label {
fill: var(--ink);
color: var(--ink);
font-size: 11px;
font-weight: 650;
opacity: .78;
paint-order: stroke;
stroke: var(--wall-2);
stroke-width: 3px;
stroke-linejoin: round;
}
.lr-route-label.is-host { font-weight: 800; opacity: 1; }
.lr-route-label.is-sfu { fill: var(--route-sfu); font-weight: 800; opacity: 1; }
.lr-route-label.is-pending { fill: var(--route-pending); color: var(--route-pending); opacity: 1; }
.lr-route-label.is-hovered { opacity: 1; }
.lr-route-label.is-selected { font-weight: 800; opacity: 1; }
.lr-route-hit {
padding: 0;
border: 0;
background: none;
font: inherit;
cursor: pointer;
}
.lr-route-name-target { overflow: visible; }
.lr-route-name-hint,
.lr-route-hit,
.lr-route-name-static { position: relative; display: block; width: 100%; height: 100%; }
.lr-route-name { position: absolute; display: block; line-height: 14px; text-align: center; transform: translateX(-50%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-route.is-outline .lr-route-name { text-align: left; transform: none; }
.lr-route-name-hint:focus-visible { outline: 2px solid var(--ink); border-radius: 8px; }
.lr-route-hit:hover,
.lr-route-hit:focus,
.lr-route-hit:focus-visible {
outline: none;
}
@keyframes lr-flow { to { stroke-dashoffset: -24; } }
/* Dense Host overview: one aligned row per Viewer, not a card wall. */
.lr-viewer-overview {
width: 100%;
min-width: 0;
}
.lr-viewer-overview-scroll {
overflow-x: auto;
border: 2.5px solid var(--ink);
border-radius: var(--radius);
background: var(--paper);
scrollbar-color: var(--route-sfu) transparent;
scrollbar-width: thin;
}
.lr-viewer-overview-head,
.lr-viewer-overview-row {
display: grid;
min-width: 0;
grid-template-columns: minmax(0, 1fr);
align-items: center;
gap: 10px;
padding: 8px 12px;
}
.lr-viewer-overview.has-picture :is(.lr-viewer-overview-head, .lr-viewer-overview-row) { min-width: 820px; grid-template-columns: minmax(170px, 1.5fr) 76px 116px 78px 98px 88px 76px; }
.lr-viewer-overview.has-voice:not(.has-picture) :is(.lr-viewer-overview-head, .lr-viewer-overview-row) { min-width: 720px; grid-template-columns: minmax(170px, 1.5fr) 132px 90px 78px 90px 76px; }
.lr-viewer-overview.has-picture.has-voice :is(.lr-viewer-overview-head, .lr-viewer-overview-row) { min-width: 970px; grid-template-columns: minmax(170px, 1.5fr) 76px 116px 78px 98px 88px 76px 140px; }
.lr-viewer-overview-voice { display: flex; align-items: center; justify-content: center; gap: 6px; }
.lr-viewer-overview-voice > span { display: grid; gap: 3px; text-align: start; }
.lr-viewer-overview-voice small { font-size: 10px; }
.lr-viewer-overview-voice[data-tone="busy"] { color: var(--route-pending); }
.lr-viewer-overview-voice[data-tone="warn"] { color: var(--warn); }
.lr-viewer-overview-voice[data-tone="bad"] { color: var(--danger); }
.lr-viewer-overview-head {
color: var(--muted);
background: var(--wall-2);
font-size: 10px;
font-weight: 750;
text-transform: uppercase;
}
.lr-viewer-overview-head > span:not(:first-child),
.lr-viewer-overview-row > span:not(:first-child) { text-align: center; }
.lr-viewer-overview-row {
width: 100%;
border: 0;
border-top: 1.5px solid var(--wall-2);
background: transparent;
color: var(--ink);
font-family: var(--mono);
font-size: 11px;
transition: background 140ms ease, color 140ms ease;
}
.lr-viewer-overview-row:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lr-viewer-overview-row.is-selected { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.lr-viewer-overview-row:focus-visible { outline: 3px solid var(--action); outline-offset: -3px; }
.lr-viewer-overview-person {
display: flex;
min-width: 0;
align-items: center;
gap: 8px;
text-align: left;
}
.lr-viewer-overview-person-copy {
display: grid;
min-width: 0;
line-height: 1.15;
text-align: left;
}
.lr-viewer-overview-person-copy > b {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.lr-viewer-overview-person-copy > small { font-size: 9px; font-weight: 600; opacity: .58; }
.lr-viewer-overview-pawn { position: relative; flex: 0 0 auto; }
.lr-viewer-overview-pawn svg { display: block; width: 24px; height: 29px; }
.lr-viewer-overview-pawn i {
top: 0;
left: auto;
right: -2px;
width: 7px;
height: 7px;
border: 1.5px solid var(--paper);
}
.lr-viewer-overview-route {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
}
.lr-viewer-overview-route.is-p2p { color: var(--route-p2p); }
.lr-viewer-overview-route.is-sfu { color: var(--route-sfu); }
.lr-viewer-overview-route.is-pending { color: var(--route-pending); }
/* ---------- advanced door ---------- */
.lr-door-body {
display: grid;
gap: 16px;
padding: 16px;
border: 2.5px dashed var(--control-edge);
border-radius: var(--radius);
}
.lr-door { display: grid; }
.lr-door-reveal {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 260ms ease;
}
.lr-door-reveal.is-open { grid-template-rows: 1fr; }
.lr-door-reveal > div { overflow: hidden; }
/* Once open, tooltips inside the door must escape the reveal clip; the
discrete flip is delayed past the 260ms row transition so the opening
animation still renders clipped. */
.lr-door-reveal.is-open > div { overflow: visible; transition: overflow 0s 260ms; }
.lr-door-group { display: grid; gap: 10px; }
.lr-door-glyph { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.lr-door-glyph .lr-cap { font-size: 13px; }
.lr-switch-item { display: inline-flex; align-items: center; gap: 9px; }
.lr-switch-item > label { cursor: pointer; user-select: none; }
.lr-switch-item:has(.lr-switch:is(:disabled, [aria-disabled="true"])) > label { cursor: default; }
/* ---------- join / access ---------- */
.lr-client-launch {
flex: 1;
display: grid;
grid-template-columns: minmax(0, 1fr);
place-items: center;
padding: 24px 16px 40px;
}
.lr-client-launch-panel {
display: grid;
grid-template-columns: minmax(0, 1fr);
min-width: 0;
width: min(620px, 100%);
justify-items: center;
gap: 20px;
}
.lr-client-launch-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 8px; width: min(380px, 100%); text-align: center; }
.lr-client-launch-brand { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
/* The mascot's feet sit at y=29 in its 32-unit canvas; align them to the wordmark baseline. */
.lr-client-launch-brand > svg { translate: 0 9.375%; }
.lr-client-launch-title { font-size: 36px; line-height: 1.1; letter-spacing: -.04em; }
.lr-client-launch-title small { margin-left: 6px; color: var(--muted); font-size: 15px; letter-spacing: 0; font-weight: 650; }
.lr-client-brand-dot { color: #e77d38; }
.lr-client-standby { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; padding: 12px 20px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-glaze) var(--paper); box-shadow: var(--control-shadow); }
.lr-client-standby-state { display: inline-flex; align-items: center; gap: 9px; }
.lr-client-standby-heading { display: flex; align-items: start; gap: 12px; min-width: 0; }
.lr-client-standby-heading > details { flex: 1; min-width: 0; }
.lr-client-site-add { display: inline-flex; padding-top: 4px; }
.lr-client-site-entry { width: min(360px, calc(100vw - 16px)); }
.lr-client-site-entry:is(:popover-open, .\:popover-open) { display: grid; gap: 12px; }
.lr-client-site-entry > strong { font-size: 14px; }
.lr-client-site-address { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lr-client-site-address > .lr-input { flex: 1; }
.lr-client-site-address > .lr-btn { flex: none; }
.lr-client-site-entry p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lr-client-site-entry [role="alert"] { color: var(--danger); }
.lr-client-standby strong { font-size: 14px; }
.lr-client-standby p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lr-client-connect-guide > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-radius: 8px; cursor: pointer; list-style: none; }
.lr-client-connect-guide > summary::-webkit-details-marker { display: none; }
.lr-client-connect-toggle { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.lr-client-connect-guide > summary:is(:hover, :focus-visible) .lr-client-connect-toggle { color: var(--ink); }
.lr-client-connect-toggle > svg:last-child { transition: transform 180ms var(--spring); }
.lr-client-connect-guide[open] .lr-client-connect-toggle > svg:last-child { transform: rotate(180deg); }
.lr-client-connect-steps { padding: 4px 0 8px; }
.lr-client-approved-site { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.lr-client-approved-site a { min-width: 0; word-break: break-all; text-wrap: balance; color: var(--ink); font: 12px/1.6 var(--mono); text-underline-offset: 3px; }
.lr-client-approved-sites { display: grid; grid-column: 1 / -1; gap: 8px; min-width: 0; max-height: 240px; overflow-y: auto; scrollbar-width: thin; padding: 4px; margin: -4px; }
.lr-client-approved-site + .lr-client-approved-site { border-top: 1px solid var(--line); padding-top: 8px; }
.lr-client-site-actions { display: flex; flex: none; align-items: center; gap: 8px; margin-inline-start: auto; }
.lr-client-launch-section { justify-self: start; margin: 5px 0 -8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lr-client-approval {
display: grid; width: min(480px, 100%); min-width: 0; gap: 20px;
padding: clamp(18px, 5vw, 32px); border: 1px solid var(--line);
border-radius: 28px; background: var(--paper); box-shadow: var(--control-shadow);
}
.lr-client-approval-heading { display: grid; justify-items: center; gap: 14px; text-align: center; }
.lr-client-approval-heading > svg { max-width: 100%; }
.lr-client-approval h1 { font-size: 21px; line-height: 1.45; text-wrap: balance; }
.lr-client-approval p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; text-wrap: pretty; }
.lr-client-approval-site { display: grid; min-width: 0; gap: 12px; }
.lr-client-approval-origin {
display: flex; align-items: center; gap: 12px; min-width: 0;
padding: 14px; border-radius: 16px; background: var(--control-hover);
font: 14px/1.6 var(--mono); overflow-wrap: anywhere;
}
.lr-client-approval-origin > svg { flex: none; }
.lr-client-approval-origin > strong { flex: 1; min-width: 0; font-weight: 650; }
.lr-client-approval-origin > .lr-client-approval-check { color: var(--live); }
.lr-client-approval-startup { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.lr-client-approval-startup input { width: 18px; height: 18px; margin: 0 2px 0 0; flex: none; accent-color: var(--action); }
.lr-client-approval-startup > svg { flex: none; }
.lr-client-approval-startup:has(:disabled) { opacity: .5; cursor: default; }
.lr-client-approval-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lr-client-approval-actions > :only-child { grid-column: 1 / -1; }
.lr-client-approval-actions > .lr-comic-tip-wrap { min-width: 0; }
.lr-client-approval-actions .lr-btn { width: 100%; min-width: 0; padding: 0 12px; justify-content: center; }
.lr-client-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px clamp(16px, 4vw, 44px) 16px; color: var(--muted); font-size: 11.5px; }
.lr-client-version { overflow-wrap: anywhere; text-align: right; }
.lr-client-launch-status { color: var(--ink); font-size: 14px; font-weight: 650; }
.lr-client-launch-technical { width: 100%; min-width: 0; color: var(--muted); font-size: 13px; text-align: start; }
.lr-client-launch-technical > summary { width: fit-content; cursor: pointer; }
.lr-client-launch-technical > summary:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: 3px; }
.lr-client-launch-detail { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; font: 13px/1.6 var(--mono); }
.lr-client-release { display: grid; justify-items: center; gap: 6px; max-width: 100%; }
.lr-client-release-mirror { display: inline-block; min-height: 28px; color: var(--muted); font-size: 12px; line-height: 28px; text-underline-offset: 3px; }
.lr-client-release-mirror > .lr-glyph { vertical-align: middle; }
.lr-client-release-mirror:is(:hover, :focus-visible) { color: var(--ink); }
.lr-client-release-warning { max-width: 42ch; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; text-underline-offset: 3px; }
.lr-client-update {
gap: 7px;
min-width: 0;
max-width: 100%;
height: auto;
min-height: 34px;
padding: 6px 11px;
font-size: 12.5px;
font-weight: 700;
white-space: normal;
text-decoration: none;
}
.lr-client-modes {
display: grid;
width: 100%;
grid-template-columns: repeat(var(--launcher-columns, 2), minmax(0, 1fr));
gap: 10px;
}
.lr-client-modes > .lr-comic-tip-wrap {
width: 100%;
min-width: 0;
}
.lr-client-modes > .lr-comic-tip-wrap > .lr-client-mode { width: 100%; }
.lr-client-mode {
min-width: 0;
min-height: 128px;
place-items: center;
align-content: center;
gap: 10px;
padding: 18px;
text-align: center;
}
.lr-client-mode > span {
display: grid;
min-width: 0;
gap: 3px;
}
.lr-client-mode strong { font-size: 14px; }
.lr-client-mode small { font-size: 11px; opacity: .7; }
.lr-client-access {
width: min(460px, 100%);
}
.lr-client-access input {
min-width: 0;
}
.lr-client-room-settings { display: grid; width: min(460px, 100%); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); align-items: start; gap: 12px; }
.lr-client-room-settings .lr-client-lan { padding: 8px 0 0; }
.lr-client-room-settings .lr-client-lan select { min-height: 48px; }
.lr-client-access-options { width: 100%; min-width: 0; }
.lr-client-access-options > summary {
display: flex; align-items: center; justify-content: center; gap: 8px;
width: fit-content; max-width: 100%; height: auto; min-height: 40px; margin: 0 auto; padding: 8px 12px;
font-size: 12.5px; font-weight: 600; cursor: pointer; list-style: none;
}
.lr-client-access-options > summary::-webkit-details-marker { display: none; }
.lr-client-access-options > summary > svg:last-child { transition: transform 180ms var(--spring); }
.lr-client-access-options[open] > summary > svg:last-child { transform: rotate(180deg); }
.lr-client-access-set { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.lr-client-access-options .lr-client-access { width: 100%; margin-top: 8px; }
.lr-client-access-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.lr-join {
flex: 1;
display: grid;
place-items: center;
padding: 24px 16px 72px;
}
.lr-join-panel {
display: grid;
grid-template-columns: minmax(0, 1fr);
width: 100%;
min-width: 0;
max-width: 100%;
justify-items: center;
gap: 20px;
}
.lr-join-site { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.lr-join-door { color: var(--ink); }
.lr-dials-wrap.is-shake { animation: lr-shake .4s ease; }
@keyframes lr-shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-7px); }
50% { transform: translateX(6px); }
75% { transform: translateX(-4px); }
}
.lr-dials-wrap { position: relative; max-width: 100%; }
.lr-dials-wrap:focus-within { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 14px; }
.lr-dials { display: flex; gap: 12px; }
.lr-dial {
display: grid;
width: 64px; height: 78px;
place-items: center;
border: 3px solid var(--ink);
border-radius: 14px;
background: var(--paper);
font-family: var(--mono);
font-size: 34px;
font-weight: 700;
transition: border-color 120ms ease, transform 160ms var(--spring), box-shadow 160ms ease;
}
.lr-dial.is-active { border-color: var(--action); transform: translateY(-4px); box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--action) 20%, transparent); }
.lr-dial.is-filled { background: var(--ink); color: var(--paper); animation: lr-pop .18s ease; }
.lr-dials-wrap input {
position: absolute;
inset: 0;
opacity: 0;
cursor: text;
font-size: 40px;
}
.lr-join-go {
display: grid;
width: 68px; height: 68px;
place-items: center;
border: 3px solid var(--primary);
border-radius: 50%;
background: var(--primary);
color: var(--primary-ink);
transition: var(--control-motion), background 160ms ease;
}
.lr-join-go:is(:hover, :focus-visible):not(:disabled) { border-color: color-mix(in srgb, var(--primary) 88%, #000); background: color-mix(in srgb, var(--primary) 88%, #000); transform: var(--control-hover-transform); }
.lr-join-go:active:not(:disabled) { transform: var(--control-press-transform); transition-duration: 80ms; }
.lr-join-go:disabled { background: var(--wall-2); border-color: transparent; color: var(--muted); opacity: 1; }
.lr-access-text {
display: grid;
width: min(100%, 330px);
min-width: 0;
max-width: 100%;
gap: 7px;
justify-items: center;
text-align: center;
}
.lr-access-text h1 {
min-width: 0;
max-width: 100%;
overflow-wrap: anywhere;
font-size: 20px;
font-weight: 800;
letter-spacing: -0.01em;
}
.lr-access-text p {
min-width: 0;
max-width: 100%;
overflow-wrap: anywhere;
font-size: 13px;
line-height: 1.6;
opacity: .72;
}
.lr-loading {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 12px;
color: var(--ink);
font-size: 14.5px;
font-weight: 600;
}
.lr-waiting-caption {
display: block;
width: min(40ch, 100%);
min-height: 2.8em;
flex-shrink: 0;
font-size: 12px;
font-weight: 400;
line-height: 1.4;
text-align: center;
text-wrap: balance;
opacity: .74;
}
.lr-waiting-caption > span { display: block; animation: lr-waiting-line-in 280ms ease-out both; }
@keyframes lr-waiting-line-in {
from { opacity: 0; transform: translateY(3px); }
to { opacity: 1; transform: translateY(0); }
}
[data-comic-reduced-motion="true"] .lr-waiting-caption > span { animation: none; }
.lr-viewer-entry-brand { display: grid; place-items: center; color: var(--ink); }
.lr-spin { animation: lr-rotate .9s linear infinite; }
@keyframes lr-rotate { to { transform: rotate(360deg); } }
/* ---------- responsive ---------- */
@media (max-width: 640px) {
.lr-client-launch { padding: 16px 14px 48px; }
.lr-client-launch-panel { gap: 16px; }
.lr-client-modes { gap: 8px; }
.lr-client-mode {
min-height: 58px;
grid-template-columns: 34px 1fr;
justify-items: start;
padding: 8px 12px;
text-align: left;
}
.lr-client-mode > span { justify-self: stretch; }
.lr-client-mode:not(:has(> span)) { grid-template-columns: 1fr; justify-items: center; }
.lr-route { padding-inline: 0; }
.lr-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
.lr-row > .lr-spacer,
.lr-row > .lr-divider { display: none; }
.lr-row-group { width: 100%; gap: 9px; }
.lr-viewer-summary-row { flex-direction: row; align-items: center; justify-content: flex-start; }
.lr-viewer-summary-row .lr-row-group { width: auto; }
.lr-viewer-host-slot {
flex: 0 1 auto;
min-width: 0;
max-width: 180px;
}
.lr-viewer-self-slot { flex: 1 1 auto; gap: 8px; margin-left: 0; }
.lr-host-identity-slot,
.lr-host-diagnostics-slot { width: 100%; }
.lr-viewer-actions-slot { flex: 1 1 100%; margin-left: 0; }
.lr-viewer-action-cluster { flex: 1 1 220px; }
.lr-viewer-action-cluster > .lr-btn,
.lr-viewer-action-cluster > .lr-comic-tip-wrap {
flex: 1 1 0;
min-width: 0;
}
.lr-viewer-action-cluster > .lr-comic-tip-wrap .lr-btn { width: 100%; }
.lr-viewer-action-separator { display: none; }
.lr-group-actions { display: flex; width: 100%; gap: 8px; min-width: 0; }
.lr-host-diagnostics-slot,
.lr-viewer-actions-slot {
padding-inline-start: 0;
border-inline-start: 0;
}
.lr-group-actions .lr-btn { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 4px 5px; gap: 6px; }
.lr-group-actions .lr-btn .lr-cap { white-space: normal; text-align: center; line-height: 1.25; font-size: 11px; }
.lr-lcd { gap: 6px; padding-inline: 8px; font-size: 22px; letter-spacing: .2em; }
.lr-room-chip .lr-btn { min-width: 44px; width: 44px; height: 44px; padding: 0; }
.lr-room-chip .lr-cap { display: none; }
.lr-tiles { display: flex; width: 100%; gap: 8px; }
.lr-tiles .lr-tile { flex: 1 1 0; min-width: 0; padding: 10px 6px 8px; }
.lr-meter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.lr-meter-cell { justify-content: flex-start; }
.lr-group-name .lr-name-tag { flex: 1; }
.lr-viewer-self-slot .lr-name-tag { flex: 0 1 auto; }
.lr-row-group > .lr-toggle { flex: none; }
.lr-invite-hint, .lr-invite-url { flex: 0 1 auto; max-width: none; min-height: 44px; }
.lr-invite-field { flex: none; width: 100%; }
.lr-door-body { padding: 12px; }
.lr-dial { width: 54px; height: 66px; font-size: 28px; }
.lr-tv-screen.has-entry { aspect-ratio: auto; min-height: 292px; }
.lr-tv-screen:has(.lr-source-picker) { aspect-ratio: auto; height: min(520px, 76svh); min-height: 300px; }
.lr-tv-big { width: 72px; height: 72px; }
.lr-source-picker { padding: 12px; }
.lr-source-picker-panel { gap: 8px; }
.lr-source-picker-mark { width: 36px; height: 36px; }
.lr-source-picker-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.lr-source-option { min-height: 58px; padding: 6px 8px; }
.lr-source-option-preview { height: 90px; }
.lr-source-option-icon { width: 34px; height: 34px; }
.lr-top-right { gap: 8px; }
.lr-leds { gap: 4px; padding: 6px; }
.lr-top .lr-btn.is-compact { width: var(--control-compact-size); padding: 0; }
.lr-top .lr-btn.is-compact .lr-cap { display: none; }
.lr-top .lr-header-options[popover] .lr-btn.is-compact { width: auto; padding-inline: 12px; }
.lr-top .lr-header-options[popover] .lr-cap { display: inline; }
.lr-top .lr-header-options[popover] .lr-help-content nav .lr-btn { width: 100%; }
.lr-top .lr-header-options[popover] .lr-help-content.is-visual nav .lr-btn { width: var(--control-compact-size); padding: 0; }
}
@media (orientation: landscape) and (max-height: 500px) {
.lr-room:not(.is-theater) .lr-tv:has(.lr-source-picker) { width: min(960px, 100%); }
.lr-tv-screen:has(.lr-source-picker) { aspect-ratio: auto; height: max(244px, 84svh); }
.lr-source-picker { padding: 10px 12px; }
.lr-source-picker-panel { gap: 8px; }
.lr-source-option-preview { height: 90px; }
}
.lr-stage-notices {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 8px;
width: min(960px, 100%);
margin: 10px auto 0;
}
.lr-stage-notices:empty { display: none; }
.lr-sharing-settings { width: min(820px, 100%); margin: 0 auto; container: sharing-settings / inline-size; }
.lr-sharing-panel {
margin-top: 14px; padding: 24px; background: var(--surface-glaze) var(--paper);
border: 1px solid var(--control-edge); border-radius: 24px; box-shadow: var(--panel-shadow);
animation: lr-sharing-enter 180ms ease-out;
}
.lr-sharing-section { display: grid; align-content: start; gap: 20px; min-width: 0; }
.lr-sharing-section[hidden] { display: none; }
.lr-sharing-tabs { display: grid; width: fit-content; margin: 0 auto 22px; }
.lr-sharing-tabs > button { min-width: 112px; gap: 8px; }
.lr-sharing-section:focus-visible { outline: 2px solid var(--action); outline-offset: 5px; border-radius: 12px; }
.lr-sharing-section .lr-door-group { gap: 8px; }
.lr-sharing-section .lr-door-glyph .lr-cap { white-space: normal; }
.lr-sharing-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lr-sharing-panel .lr-slider { width: 100%; }
.lr-sharing-panel .lr-slider output { min-width: 9ch; }
.lr-sharing-section .lr-tiles { gap: 12px; }
.lr-sharing-section .lr-tiles > .lr-comic-tip-wrap { flex: 1; min-width: 0; }
.lr-sharing-section .lr-tile { width: 100%; min-width: 0; padding: 12px 8px; gap: 5px; border-radius: 16px; }
.lr-sharing-section .lr-tile > svg { height: 30px; }
.lr-sharing-section .lr-tile strong { font-size: 14px; font-weight: 650; }
.lr-sharing-section .lr-slider input { width: 100%; min-width: 0; }
.lr-sharing-section .lr-row-group { gap: 8px; }
.lr-sharing-section .lr-chip { min-height: 40px; padding: 7px 12px; }
.lr-sharing-audio-controls { display: grid; gap: 20px; min-width: 0; }
.lr-sharing-audio-controls > .lr-audio-quality { grid-column: 1 / -1; }
.lr-sharing-audio-controls > .lr-audio-quality:not(:first-child) { padding-top: 18px; border-top: 1px solid var(--wall-2); }
.lr-sharing-panel input[type="range"] { appearance: none; background: transparent; }
.lr-sharing-panel input[type="range"]:disabled { opacity: .55; cursor: default; }
.lr-sharing-panel input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--action) var(--range-fill), var(--wall-2) var(--range-fill)); }
.lr-sharing-panel input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--action) var(--range-fill), var(--wall-2) var(--range-fill)); }
.lr-sharing-panel input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 3px solid var(--paper); border-radius: 50%; background: var(--action); box-shadow: 0 0 0 1px var(--action); transition: transform 180ms var(--spring); }
.lr-sharing-panel input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--paper); border-radius: 50%; background: var(--action); box-shadow: 0 0 0 1px var(--action); transition: transform 180ms var(--spring); }
.lr-sharing-panel input[type="range"]:is(:hover, :focus-visible):not(:disabled)::-webkit-slider-thumb { transform: scale(1.1); }
.lr-sharing-panel input[type="range"]:is(:hover, :focus-visible):not(:disabled)::-moz-range-thumb { transform: scale(1.1); }
.lr-sharing-connection { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--wall-2); }
:is(.lr-sharing-picture-details, .lr-sharing-connection) > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: var(--muted); cursor: pointer; list-style: none; font-size: 12px; transition: color 140ms ease, background-color 140ms ease; }
:is(.lr-sharing-picture-details, .lr-sharing-connection) > summary::-webkit-details-marker { display: none; }
:is(.lr-sharing-picture-details, .lr-sharing-connection) > summary:is(:hover, :focus-visible) { color: var(--ink); background: var(--control-hover); }
:is(.lr-sharing-picture-details, .lr-sharing-connection) > summary > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.lr-sharing-chevron { grid-column: -2; transition: transform 180ms ease; }
details[open] > summary > .lr-sharing-chevron { transform: rotate(180deg); }
.lr-sharing-picture-summary { display: flex; justify-content: end; flex-wrap: wrap; gap: 4px 12px; font: 11px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.lr-sharing-picture-summary > span { white-space: nowrap; }
:is(.lr-sharing-picture-details, .lr-sharing-connection) > div { display: grid; gap: 20px; padding-top: 16px; }
.lr-sharing-connection .lr-row-group:has(.lr-switch-item) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lr-sharing-connection .lr-switch-item .lr-cap { white-space: normal; }
@keyframes lr-sharing-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .lr-sharing-panel { animation: none; } .lr-sharing-chevron { transition: none; } }
@container sharing-settings (max-width: 600px) {
.lr-sharing-panel { padding: 16px; border-radius: 20px; }
.lr-sharing-limits,
.lr-sharing-connection .lr-row-group:has(.lr-switch-item) { grid-template-columns: 1fr; gap: 20px; }
.lr-sharing-section .lr-tiles { gap: 8px; }
.lr-sharing-section .lr-tile { padding: 10px 4px; }
.lr-sharing-section .lr-tile strong { font-size: 12px; }
.lr-sharing-picture-details > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
.lr-sharing-picture-details .lr-sharing-chevron { grid-column: 2; grid-row: 1; }
.lr-sharing-picture-summary { grid-column: 1 / -1; grid-row: 2; justify-content: start; }
.lr-resolution-controls > .lr-row-group { gap: 5px; }
.lr-resolution-controls .lr-chip { padding-inline: 3px; font-size: 12px; letter-spacing: 0; }
}
@container sharing-settings (max-width: 400px) {
.lr-picture-preference .lr-row-group, .lr-audio-quality .lr-row-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-picture-preference .lr-chip, .lr-audio-quality .lr-chip { width: 100%; justify-content: center; padding-inline: 6px; }
.lr-picture-preference .lr-chip:has(.lr-cap) > svg, .lr-audio-quality .lr-chip:has(.lr-cap) > .lr-audio-rate { display: none; }
}
@container sharing-settings (max-width: 340px) {
.lr-sharing-section .lr-tile small { max-width: 8ch; min-height: 2.8em; line-height: 1.4; }
}
.lr-host-controls { width: 100%; margin-top: 12px; container: host-controls / inline-size; }
.lr-host-action-dock, .lr-host-tool-dock { display: flex; align-items: center; gap: 4px; }
.lr-host-action-dock + .lr-host-tool-dock { padding-inline-start: 8px; border-inline-start: 1px solid var(--control-edge); }
.lr-host-control-group { display: flex; align-items: center; gap: 4px; }
.lr-host-control-group + .lr-host-control-group { padding-inline-start: 4px; }
.lr-audio-settings { min-width: 0; max-width: 440px; gap: 6px; }
.lr-audio-volume-menu { display: inline-flex; flex: none; }
.lr-audio-volume-popover { position: fixed; inset: auto; margin: 0; width: 224px; padding: 12px; border-radius: 16px; }
.lr-audio-volume-popover:is(:popover-open, .\:popover-open) { display: grid; }
.lr-audio-volume-popover > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.lr-audio-settings .lr-capture-device { padding: 0; }
.lr-source-audio-settings .lr-capture-device { padding: 0; }
.lr-audio-exclusion-select label { display: flex; align-items: center; gap: 6px; cursor: default; }
.lr-audio-settings > label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.lr-audio-settings > .lr-comic-tip-wrap { display: flex; width: 100%; }
.lr-audio-settings input { width: 100%; min-width: 32px; height: 36px; padding: 0; accent-color: var(--action); cursor: pointer; }
.lr-audio-settings input:disabled { cursor: default; }
.lr-audio-settings output { min-width: 4ch; font-variant-numeric: tabular-nums; text-align: right; }
.lr-audio-settings .lr-switch-item .lr-cap { white-space: normal; }
.lr-capture-device { display: grid; gap: 6px; min-width: 0; padding: 4px 10px 10px; }
.lr-capture-device label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 0; color: var(--muted); }
.lr-capture-device-controls { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lr-capture-device select {
flex: 1; min-width: 0; width: 100%; min-height: 40px; padding: 8px 12px;
border: 1px solid var(--control-edge); border-radius: 12px;
background: var(--wall); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer;
transition: background-color 140ms ease, border-color 140ms ease;
}
.lr-capture-device select:is(:hover, :focus-visible):not(:disabled) { background: var(--control-hover); border-color: var(--ink); }
.lr-capture-device .lr-device-refresh { min-width: 40px; width: 40px; height: 40px; padding: 0; border-width: 1px; }
.lr-capture-device select:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.lr-capture-device select:disabled { opacity: .55; cursor: default; }
.lr-capture-device small, .lr-audio-settings > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.lr-source-picker-body > .lr-capture-device { margin-bottom: 10px; }
@container host-controls (max-width: 920px) {
.lr-host-share-controls { gap: 4px; }
.lr-host-action-dock, .lr-host-tool-dock { gap: 2px; }
.lr-host-action-dock + .lr-host-tool-dock { padding-inline-start: 4px; }
.lr-host-control-group { gap: 2px; }
.lr-host-control-group + .lr-host-control-group { padding-inline-start: 4px; }
.lr-host-share-controls .lr-btn { width: 44px; padding: 0; }
.lr-host-share-controls .lr-cap { display: none; }
}
@container host-controls (max-width: 340px) {
.lr-host-share-controls { gap: 4px; padding: 4px; }
.lr-host-action-dock, .lr-host-tool-dock { gap: 0; }
.lr-host-control-group { gap: 0; }
.lr-host-control-group + .lr-host-control-group { padding-inline-start: 2px; }
}
/* Theatre keeps ordinary feedback with the surrounding room controls.
Missing pictures and required playback actions retain their stage overlay. */
.lr-room.is-theater .lr-stage-notices { display: none; }
@media (max-width: 360px) {
.lr-client-modes { grid-template-columns: 1fr; }
.lr-lcd { gap: 4px; padding-inline: 6px; font-size: 18px; }
.lr-top { column-gap: 4px; padding-inline: 10px; }
.lr-top-right { gap: 4px; }
.lr-brand { gap: 0; padding-inline: 0; }
.lr-home-arrow { width: 10px; }
.lr-tiles .lr-tile { padding-inline: 4px; }
.lr-tiles .lr-tile small { font-size: 10px; letter-spacing: 0; }
}
/* ---------- shared text / comic tooltip ---------- */
/* Stateful hover/focus panel carrying a paper Comic above its trigger. The
trigger stays focusable; when it is natively disabled, the wrapper owns the
explanation focus instead. Tooltip delays hover until intent; exit gets a short
crossing grace without placing invisible targets over nearby controls. Under
prefers-reduced-motion the global block collapses the transition to instant
and the comic's own RM block pins its final frame. */
/* Tooltip owns hover, keyboard focus and press. Help buttons toggle on tap;
action controls retain long-press guidance. */
.lr-comic-content { animation: lrComicArrive .48s ease-out both; }
/* A settled result stays readable. Its brief eye gesture expresses personality,
never a retry or a second successful operation. */
svg[data-comic-motion="still"] .lr-person-eyes > ellipse {
transform-box: fill-box;
transform-origin: center;
animation: lrComicBlink 3.2s ease-in-out var(--comic-blink-delay, 0s) var(--comic-repeat, 1) both;
}
@keyframes lrComicArrive {
from { opacity: .45; transform: translateY(-2px); }
to { opacity: 1; transform: none; }
}
@keyframes lrComicBlink {
0%, 52%, 60%, 100% { transform: scaleY(1); }
56% { transform: scaleY(.18); }
}
[data-comic-reduced-motion] .lr-comic-content,
[data-comic-reduced-motion] .lr-person-eyes > ellipse {
animation: none !important;
transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
.lr-comic-content, svg[data-comic-motion="still"] .lr-person-eyes > ellipse {
animation: none !important;
transform: none !important;
}
}
.lr-comic-tip-wrap { position: relative; display: inline-flex; }
.lr-comic-tip-wrap.is-help-only > button:not(:disabled) { cursor: default; }
.lr-slider-hint { flex: 1; min-width: 0; }
.lr-comic-tip-wrap.is-disabled-trigger > :disabled { pointer-events: none; }
.lr-comic-tip {
position: fixed;
inset: auto;
margin: 0;
overflow: visible;
transform: translate(var(--tooltip-offset-x, 0px), var(--tooltip-offset, 4px));
width: max-content;
max-width: min(320px, var(--tooltip-max-width, calc(100vw - 16px)));
z-index: 30;
background: var(--paper);
border: 2.5px solid var(--comic-tone, var(--ink));
border-radius: 14px;
padding: 10px;
box-shadow: 0 6px 18px rgb(16 26 44 / .18);
opacity: 0;
pointer-events: none;
transition: opacity .16s ease, transform .16s ease;
}
.lr-comic-tip * { animation-play-state: paused !important; }
.lr-comic-tip.is-text {
padding: 10px 14px;
max-width: min(320px, var(--tooltip-max-width, calc(100vw - 16px)));
color: var(--ink);
font: 600 14px/1.6 var(--font);
text-align: start;
white-space: normal;
overflow-wrap: anywhere;
text-wrap: pretty;
}
.lr-comic-tip.has-comic.is-text { width: 252px; }
.lr-comic-tip-content {
display: block;
max-height: max(0px, calc(var(--tooltip-max-height, 100dvh - 16px) - 25px));
overflow: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
}
.lr-comic-tip-content > svg {
display: block;
max-width: 100%;
height: auto;
margin-inline: auto;
}
/* Keep the panel reachable across the small gap while reading it. */
.lr-comic-tip::after {
content: "";
position: absolute;
inset: 100% 0 auto;
height: 10px;
}
.lr-comic-tip.is-below::after { inset: auto 0 100%; }
.lr-comic-tip.is-left::after { inset: 0 auto 0 100%; width: 10px; height: auto; }
.lr-comic-tip.is-right::after { inset: 0 100% 0 auto; width: 10px; height: auto; }
.lr-comic-tip-wrap:is(.is-hover-open, .is-focus-open, .is-tip-open) > .lr-comic-tip {
pointer-events: auto;
}
/* The caret follows the trigger, including in a scrolled/clipped list. */
.lr-comic-tip::before {
content: "";
position: absolute;
bottom: -7px;
left: var(--tooltip-caret);
width: 10px;
height: 10px;
background: var(--paper);
border: solid var(--comic-tone, var(--ink));
border-width: 0 2.5px 2.5px 0;
transform: translateX(-50%) rotate(45deg);
pointer-events: none;
}
.lr-comic-tip.is-below::before {
bottom: auto;
top: -7px;
border-width: 2.5px 0 0 2.5px;
}
.lr-comic-tip:is(.is-left, .is-right)::before {
top: var(--tooltip-caret);
bottom: auto;
transform: translateY(-50%) rotate(45deg);
}
.lr-comic-tip.is-left::before { left: auto; right: -7px; border-width: 2.5px 2.5px 0 0; }
.lr-comic-tip.is-right::before { left: -7px; border-width: 0 0 2.5px 2.5px; }
/* channel 1: fine-pointer hover */
@media (hover: hover) and (pointer: fine) {
.lr-comic-tip-wrap.is-hover-open .lr-comic-tip { opacity: 1; transform: translate(var(--tooltip-offset-x, 0px), 0); }
.lr-comic-tip-wrap.is-hover-open .lr-comic-tip * { animation-play-state: running !important; }
/* Panel mutex: keyboard focus (channel 2) can hold one wrap's panel open
while the pointer hovers a neighboring trigger, and two 320px panels at
the same z-index would overlap (stacking decided by DOM order alone).
While a wrap in the same container carries focus-visible, suppress
hover-open on the others; the suppressed wrap re-arms the moment focus
moves, so keyboard and pointer handoff stays a clean one-panel relay.
Scoped to the containers that hold adjacent wrapped triggers; the guard
keys on the component-owned focus state, so plain mouse clicks (no panel
held open) never suppress anything. */
:is(.lr-row-group, .lr-pawn-detail, .lr-entry-actions, .lr-pawns, .lr-route, .lr-header-controls, .lr-playback):has(.lr-comic-tip-wrap.is-focus-open)
.lr-comic-tip-wrap:not(.is-focus-open).is-hover-open .lr-comic-tip {
opacity: 0;
pointer-events: none;
transition-delay: 0s;
}
:is(.lr-row-group, .lr-pawn-detail, .lr-entry-actions, .lr-pawns, .lr-route, .lr-header-controls, .lr-playback):has(.lr-comic-tip-wrap.is-focus-open)
.lr-comic-tip-wrap:not(.is-focus-open).is-hover-open .lr-comic-tip * {
animation-play-state: paused !important;
}
}
/* Keyboard focus and click/long-press guidance. */
.lr-comic-tip-wrap.is-focus-open .lr-comic-tip,
.lr-comic-tip-wrap.is-tip-open .lr-comic-tip {
opacity: 1;
transform: translate(var(--tooltip-offset-x, 0px), 0);
}
.lr-comic-tip-wrap.is-focus-open .lr-comic-tip *,
.lr-comic-tip-wrap.is-tip-open .lr-comic-tip * {
animation-play-state: running !important;
}
/* Below-placement: header controls sit at the viewport top. */
.lr-comic-tip.is-below { --tooltip-offset: -4px; }
.lr-comic-tip.is-left { --tooltip-offset: 0px; --tooltip-offset-x: 4px; }
.lr-comic-tip.is-right { --tooltip-offset: 0px; --tooltip-offset-x: -4px; }
/* Native popovers start at display:none, so their first visible style needs
an explicit entrance baseline as well as the ordinary exit transition. */
@starting-style {
.lr-comic-tip-wrap:is(.is-hover-open, .is-focus-open, .is-tip-open) > .lr-comic-tip {
opacity: 0;
transform: translate(var(--tooltip-offset-x, 0px), var(--tooltip-offset, 4px));
}
}
/* On mobile the wrapper (not the button) is the flex item, so equal-width
action buttons keep their stretch when hint-wrapped. */
@media (max-width: 640px) {
.lr-group-actions .lr-comic-tip-wrap { flex: 1 1 0; min-width: 0; }
.lr-group-actions .lr-comic-tip-wrap .lr-btn { width: 100%; }
.lr-comic-tip { max-width: min(320px, 78vw, var(--tooltip-max-width, calc(100vw - 16px))); }
}
.lr-comic-tip-caption {
display: block;
white-space: pre-line;
}
.lr-comic-tip-content > svg + .lr-comic-tip-caption { margin-top: 8px; }
/* ---------- reduced motion: everything collapses to instant ---------- */
/* Development catalogues use the same explicit scene poses as the system
preference; this is not another persisted product preference. */
[data-comic-reduced-motion] *, [data-comic-reduced-motion] *::before, [data-comic-reduced-motion] *::after {
animation-duration: .01ms !important;
animation-delay: 0s !important;
animation-iteration-count: 1 !important;
transition-duration: .01ms !important;
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.lr-tv-static { animation: none; opacity: .35; }
.lr-chip, .lr-tile, .lr-language-menu button, .lr-source-option { transform: none !important; }
.lr-sharing-panel input[type="range"]::-webkit-slider-thumb { transform: none !important; }
.lr-sharing-panel input[type="range"]::-moz-range-thumb { transform: none !important; }
.lr-route-edge.is-pending { animation: none; }
}
/* ---------- interaction and legibility constraints ---------- */
/* Revealing a room password must not change its field geometry. */
.lr-input.is-password { min-width: min(260px, 100%); }
@media (max-width: 640px) {
/* Pawn drill-down: the shared .lr-row column stack breaks this card —
column + wrap fans the children into off-screen side-by-side columns and
the meter's 100% flex-basis inflates the block axis. Keep it row-wrapped
so the meter takes its own full-width line at natural height and the
more/close buttons stay in flow inside the card. */
.lr-pawn-detail { flex-direction: row; align-items: center; }
.lr-pawn-detail .lr-meter { flex: 1 1 100%; align-content: start; }
/* Action row: let the buttons wrap to two rows once three-across can no
longer hold each label on a single line (stops orphan-character wraps). */
.lr-group-actions .lr-comic-tip-wrap,
.lr-group-actions > .lr-btn { flex-basis: 112px; }
}
@media (max-width: 640px) {
.lr-tv-screen .lr-comic-tip { max-width: min(62vw, var(--tooltip-max-width, calc(100vw - 16px))); }
}
/* append-sink: workflow agents append new rules ABOVE this line. */