:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #292d3d; background: #e9edf2; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8174ed; outline-offset: 4px; }
button { touch-action: manipulation; }
.signin-screen { min-height: 100svh; display: grid; place-items: center; padding: 28px 20px; background: radial-gradient(ellipse at top, #e5e0ff, #f8f8fb 65%); }
.signin-card { width: min(100%, 380px); }
.brand-icon { width: 64px; height: 64px; display: grid; place-items: center; background: #7261ce; color: white; border-radius: 22px; margin-bottom: 25px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1 { font-size: 36px; letter-spacing: -1.7px; margin: 0 0 10px; }
.intro { color: #73778b; line-height: 1.6; margin: 0 0 32px; }
.signin-card label { display: block; font-size: 13px; font-weight: 650; margin: 20px 0 8px; }
.signin-card input { width: 100%; padding: 15px; border: 1px solid #dcdce7; border-radius: 13px; background: white; }
.primary { border: 0; border-radius: 13px; padding: 16px; width: 100%; margin-top: 26px; background: #7261ce; color: white; font-weight: 650; }
.fine-print { font-size: 12px; color: #858898; line-height: 1.6; margin-top: 20px; }
.signin-error { color: #b13548; font-size: 14px; min-height: 20px; }
.conversation { position: relative; max-width: 760px; height: 100svh; height: 100dvh; margin: auto; display: flex; flex-direction: column; background: #fff; overflow: hidden; box-shadow: 0 0 70px #25304d12; }
.header { display: flex; align-items: center; gap: 8px; padding: calc(7px + env(safe-area-inset-top)) 10px 7px; flex-shrink: 0; border-bottom: 1px solid #eeedf3; }
.group-avatar { width: 36px; height: 36px; border-radius: 12px; background: #ece8fb; display: grid; place-items: center; color: #7864cc; }
.group-avatar { border: 0; flex-shrink: 0; }
.group-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-tabs { display: flex; gap: 1px; padding: 3px; border-radius: 10px; background: #f5f3f8; flex-shrink: 0; }
.view-tabs button { border: 0; border-radius: 7px; background: transparent; color: #9290a1; padding: 8px; font-size: 10px; font-weight: 650; min-height: 34px; }
.view-tabs button[aria-pressed="true"] { background: #eee9fc; color: #7359be; }
.view-tabs span { font-size: 10px; }
.group-title { flex: 1; min-width: 0; }
.group-title h1 { font-size: 16px; letter-spacing: -.4px; margin: 0 0 2px; }
.group-title p { margin: 0; color: #9494a2; font-size: 10px; }
.me { display: flex; align-items: center; gap: 7px; max-width: 115px; }
.me span:last-child { font-size: 12px; max-width: 75px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.avatar { height: 29px; width: 29px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: white; font-weight: 650; font-size: 10px; }
.icon-button { display: grid; place-items: center; background: transparent; color: #7c7c8e; border: 0; width: 36px; height: 40px; border-radius: 10px; }
.stage-wrap { min-height: 0; flex: 1 1 0; display: flex; padding: 0; }
.stage { width: 100%; position: relative; overflow: hidden; background: #232934; isolation: isolate; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: #15191f; }
.stage #preview { object-fit: cover; }
.mirrored { transform: scaleX(-1); }
.text-stage { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 83px 62px 22px 25px; background: linear-gradient(145deg, #f5efff, #e9e4f2); color: #483c62; }
.text-stage-body { min-height: 0; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: clamp(18px, 4.5vw, 24px); line-height: 1.65; }
.text-mode .stage-person { background: #ffffffb3; color: #57446f; }
.text-mode .stage-person span { color: #9585a8; }
.text-mode .stage-badge { background: #dcd1ed; color: #78618e; }
.text-mode:has(.live-banner:not([hidden])) .text-stage { padding-bottom: 88px; }
.text-thumbnail { padding: 21px 7px 18px; }
.tile-text-icon { position: absolute; left: 7px; top: 5px; font-size: 12px; font-weight: 750; color: #9a84b8; }
.tile-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; text-align: left; color: #77608e; font-size: 9px; line-height: 1.4; width: 100%; }
.text-thumbnail .tile-badge { color: #88719f; background: #dfd3ee; font-size: 7px; }
.idle { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 25px; text-align: center; color: white; background: radial-gradient(ellipse at 30% 20%, #535474, #2c3045 55%, #252a35); }
.idle-art { width: 86px; height: 86px; background: #ffffff0d; border: 1px solid #ffffff15; border-radius: 30px; display: grid; place-items: center; margin-bottom: 20px; transform: rotate(-8deg); }
.idle-art svg { width: 40px; height: 40px; color: #c4b7fa; transform: rotate(8deg); }
.idle h2 { font-size: 23px; letter-spacing: -.7px; margin: 0 0 9px; }
.idle p { max-width: 230px; font-size: 13px; line-height: 1.65; color: #b7b8c9; margin: 0; }
.stage-info { position: absolute; left: 15px; right: 15px; top: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 1; }
.stage:has(.idle:not([hidden])) .stage-info { display: none; }
.stage-person { min-width: 0; padding: 7px 10px; background: #11182299; border-radius: 10px; color: white; backdrop-filter: blur(8px); }
.stage-person strong { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.stage-person span { display: block; margin-top: 3px; font-size: 10px; color: #d2d3dc; }
.stage-badge { padding: 8px 9px; border-radius: 8px; background: #11182299; color: white; font-size: 9px; font-weight: 750; letter-spacing: .5px; white-space: nowrap; }
.recording .stage-badge { background: #dc4a59; }
.live-banner { position: absolute; bottom: 18px; left: 15px; right: 15px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; background: #fff; box-shadow: 0 4px 20px #0002; z-index: 2; font-size: 12px; }
.live-banner .dot { width: 7px; height: 7px; background: #ed5865; border-radius: 50%; }
.live-banner span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-banner button { border: 0; background: #efeafb; color: #7157c0; border-radius: 7px; padding: 8px 10px; font-size: 11px; font-weight: 700; }
.notice { position: absolute; z-index: 5; top: calc(72px + env(safe-area-inset-top)); left: 12px; right: 62px; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; pointer-events: none; margin: 0; font-size: 11px; line-height: 1.5; }
.notice.visible { width: auto; height: auto; max-height: 90px; clip-path: none; padding: 9px 12px; border-radius: 10px; background: #202330e8; color: white; box-shadow: 0 4px 15px #0002; }
.notice.error { background: #8e3047f0; color: white; }
.history { flex-shrink: 0; }
.history-heading { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.history-heading h2 { font-size: 12px; margin: 0; font-weight: 650; }
.history-heading span { font-size: 10px; color: #9797a5; }
.filmstrip { display: flex; gap: 7px; padding: 7px 10px 3px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #e6e3ee transparent; }
.message { padding: 3px; width: 65px; flex: 0 0 65px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: #555568; }
.thumbnail { position: relative; height: 48px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 2px transparent; }
.message.selected .thumbnail { outline: 2px solid #8c74dc; outline-offset: 2px; }
.thumbnail img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.tile-avatar { color: #fff9; font-size: 23px; font-weight: 550; }
.tile-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: #0001; font-size: 15px; text-shadow: 0 1px 6px #0007; }
.tile-badge { position: absolute; right: 4px; bottom: 4px; background: #0008; color: white; border-radius: 4px; font-size: 8px; padding: 3px 4px; font-weight: 650; }
.tile-badge.live { background: #e55764; }
.tile-name { display: block; font-size: 9px; font-weight: 650; margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-time { display: none; }
.empty-history { min-height: 40px; display: flex; align-items: center; justify-content: center; margin: 6px 10px; color: #a0a0af; font-size: 11px; }
.composer { flex-shrink: 0; border-top: 1px solid #f0edf5; padding: 0 16px calc(6px + env(safe-area-inset-bottom)); background: #fcfbfe; }
.send-modes { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 3px 0; }
.send-modes button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 4px 12px; border: 0; border-radius: 9px; background: transparent; color: #a09aa9; font-size: 11px; }
.send-modes button[aria-pressed="true"] { color: #7557b9; background: #eee8f8; font-weight: 650; }
.send-modes svg { width: 15px; height: 15px; }
.send-modes button span { font-weight: 750; }
.text-composer { display: flex; align-items: flex-end; gap: 8px; margin: 4px 0 0; }
.text-composer textarea { min-width: 0; flex: 1; border: 1px solid #e5e0ef; background: white; border-radius: 18px; padding: 10px 13px; resize: vertical; min-height: 40px; max-height: 100px; font: inherit; font-size: 16px; }
.text-composer button { border: 0; border-radius: 50%; width: 38px; height: 38px; background: #7861c8; color: white; font-size: 23px; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chat-panel { flex: 1; min-height: 140px; padding: 15px 18px; overflow-y: auto; background: #f8f7fb; }
.empty-chat { color: #9893a7; font-size: 13px; text-align: center; padding: 35px 20px; line-height: 1.7; }
.chat-message { max-width: 92%; width: fit-content; margin: 0 auto 14px 0; padding: 11px 13px 9px; border: 1px solid #ebe6f1; border-radius: 15px 15px 15px 4px; background: white; }
.chat-message.mine { margin-left: auto; margin-right: 0; background: #f0eafa; border-color: #e8dff5; border-radius: 15px 15px 4px 15px; }
.chat-meta { font-size: 10px; color: #8b829e; margin: 0 0 7px; }
.chat-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; margin: 0; }
.chat-video { border: 0; background: #e8e1f6; color: #6f51b6; border-radius: 10px; padding: 12px 16px; font-size: 12px; text-align: left; }
.reaction-row, .video-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.reaction-row { margin-top: 8px; }
.stage-reaction-tools { position: absolute; z-index: 3; bottom: 67px; right: 9px; max-height: calc(100% - 85px); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.reaction-toggle { position: relative; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #ffffff40; border-radius: 50%; background: #232333b3; color: white; font-size: 26px; backdrop-filter: blur(8px); }
.reaction-toggle span { position: absolute; right: -3px; top: -3px; border-radius: 10px; background: #ad91ec; color: white; font-size: 9px; min-width: 16px; padding: 3px; }
.video-reactions { min-height: 0; flex-shrink: 1; padding: 5px; border-radius: 22px; background: #242330c9; backdrop-filter: blur(10px); overflow-y: auto; }
.video-reactions .reaction-row { flex-direction: column; flex-wrap: nowrap; margin: 0; gap: 2px; }
.video-reactions .reaction { min-width: 35px; min-height: 35px; border-color: transparent; background: transparent; color: white; padding: 5px; }
.video-reactions .reaction[aria-pressed="true"] { background: #8d72b699; border-color: #baa2d6; }
.reaction { border: 1px solid #e5e0ed; border-radius: 14px; background: #fff; padding: 5px 8px; font-size: 13px; min-height: 32px; color: #716981; }
.reaction[aria-pressed="true"] { border-color: #a388d9; background: #ede4fb; }
.reaction .reaction-count { font-size: 10px; margin-left: 3px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin: 0; }
#groupsDialog { width: 460px; }
.group-disclaimer { color: #97909f; }
.group-list { display: flex; flex-direction: column; gap: 7px; margin: 20px 0; }
.group-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e9e3f2; background: white; border-radius: 11px; padding: 13px; text-align: left; width: 100%; }
.group-choice.current { background: #f1ebfb; border-color: #d3c4ee; }
.group-choice strong, .group-choice small { display: block; }
.group-choice strong { font-size: 13px; overflow-wrap: anywhere; }
.group-choice small { font-size: 10px; margin-top: 4px; color: #978ba6; }
.group-choice .group-action { color: #7e63bf; font-size: 11px; white-space: nowrap; }
.create-group-form label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.create-group-form div { display: flex; gap: 7px; }
.create-group-form input { flex: 1; min-width: 0; border: 1px solid #e4ddec; border-radius: 9px; padding: 12px; }
.create-group-form button { border: 0; background: #7861c8; color: white; border-radius: 9px; padding: 10px 14px; font-size: 12px; }
.composer-buttons { display: flex; align-items: center; justify-content: space-evenly; }
.side-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 68px; min-height: 48px; border: 0; background: transparent; color: #8d8b9e; font-size: 9px; }
.side-action svg { width: 22px; height: 22px; }
.side-action.chosen { color: #7b62c8; }
.record { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #ee7a87; background: #fff; padding: 4px; display: grid; place-items: center; box-shadow: 0 3px 14px #ed607424; }
.record span { display: block; height: 100%; width: 100%; background: #ed6577; border-radius: 50%; transition: border-radius .15s, width .15s, height .15s; }
.record.is-recording span { border-radius: 6px; width: 26px; height: 26px; }
.record-label { margin: 3px 0 0; text-align: center; font-size: 10px; font-weight: 550; }
.record-hint { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); overflow: hidden; }
dialog { max-width: min(90vw, 490px); max-height: 85dvh; border: 1px solid #e6e2ee; padding: 24px; border-radius: 20px; color: #333346; }
dialog::backdrop { background: #17152788; backdrop-filter: blur(3px); }
dialog h2 { margin-top: 0; font-size: 19px; } dialog p, dialog label { font-size: 12px; line-height: 1.6; } dialog select { display: block; width: 100%; padding: 10px; margin: 8px 0 15px; }
pre { font: 10px/1.6 monospace; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: #f4f2f8; border-radius: 10px; max-height: 230px; overflow: auto; }
@media (max-width: 480px) { .me { display: none; } }
@media (max-height: 650px) { .thumbnail { height: 40px; } .record { width: 48px; height: 48px; } .idle-art { width: 52px; height: 52px; margin-bottom: 9px; border-radius: 18px; } .idle-art svg { width: 25px; height: 25px; } .idle h2 { font-size: 19px; } .text-stage { padding-top: 70px; } }
@media (max-height: 480px) and (orientation: landscape) { .conversation { display: grid; grid-template-columns: minmax(0, 1fr) 180px; grid-template-rows: auto minmax(0, 1fr) auto; } .header { grid-column: 1 / -1; } .stage-wrap, .chat-panel { grid-column: 1; grid-row: 2 / 4; } .history { grid-column: 2; grid-row: 2; overflow-y: auto; } .composer { grid-column: 2; grid-row: 3; } .filmstrip { flex-wrap: wrap; overflow: visible; } }
