:host { display: block; min-height: 100dvh; color: var(--page-text); } .chat-shell { min-height: 100dvh; } .panel { border: 1px solid var(--surface-border); border-radius: 1.75rem; background: var(--panel-background); backdrop-filter: blur(18px); box-shadow: 0 20px 60px var(--shadow-color); } .chat-page { display: flex; flex-direction: column; width: min(95vw, 95%); height: min(calc(100dvh - 2rem), 1024px); max-height: 1024px; margin-inline: auto; overflow-x: hidden; } .chat-header { flex: 0 0 auto; } .chat-header-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; } .chat-header-title { margin: 0; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; } .call-modal-backdrop { position: fixed; inset: 0; z-index: 1250; display: grid; place-items: center; padding: 1.5rem; background: rgba(3, 8, 14, 0.52); backdrop-filter: blur(8px); } .call-choice-backdrop { position: fixed; inset: 0; z-index: 1240; display: grid; place-items: center; padding: 1rem; background: rgba(3, 8, 14, 0.46); backdrop-filter: blur(6px); } .call-choice-card { width: min(100%, 25rem); } .conversation-modal-backdrop { position: fixed; inset: 0; z-index: 1230; display: grid; place-items: center; padding: 0.75rem; background: rgba(3, 8, 14, 0.56); backdrop-filter: blur(8px); } .conversation-modal { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(100%, 96rem); height: min(100dvh - 1.5rem, 100%); max-height: 100dvh; border: 0; } .conversation-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; } .conversation-modal-eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--page-text-soft); } .conversation-modal-close { width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 999px; color: var(--page-text); background: var(--badge-background); font-size: 1.35rem; line-height: 1; } .conversation-modal-body { min-height: 0; max-height: none; padding-top: 1rem; } .call-choice-eyebrow { margin-bottom: 0.45rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--page-text-soft); } .call-choice-actions { display: grid; gap: 0.85rem; } .call-choice-button { display: flex; align-items: center; gap: 0.85rem; width: 100%; padding: 1rem 1.1rem; border: 1px solid var(--surface-border); border-radius: 1rem; color: var(--page-text); background: var(--surface-background); text-align: left; } .call-choice-button:hover, .call-choice-button:focus-visible { border-color: color-mix(in srgb, var(--accent-color) 35%, transparent); background: var(--surface-hover-background); } .call-choice-icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--badge-background); font-size: 1.2rem; } .back-link { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; color: var(--link-color); text-decoration: none; font-size: 1.4rem; line-height: 1; } .status-indicators { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-left: auto; } .status-indicator { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--page-text-soft); } .status-indicator-action { padding: 0; border: 0; background: transparent; } .status-indicator-action:not(:disabled) { color: var(--page-text); cursor: pointer; } .status-indicator-action:not(:disabled):hover, .status-indicator-action:not(:disabled):focus-visible { color: var(--accent-color); } .status-indicator-action:disabled { cursor: default; opacity: 1; } .expand-action-icon { font-size: 1.9rem; line-height: 1; } .status-led { width: 0.8rem; height: 0.8rem; border-radius: 999px; box-shadow: 0 0 0 1px var(--input-border); } .status-led-ok { background: #59d66f; } .status-led-connecting { background: #f3ad3d; } .status-led-offline { background: #eb5d64; } .chat-layout { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; } .peer-dropdown { position: relative; min-width: min(18rem, 42vw); } .peer-dropdown-trigger { width: 100%; } .peer-dropdown-menu { position: absolute; top: calc(100% + 0.65rem); left: 0; width: 100%; z-index: 4; display: grid; gap: 0.75rem; max-height: calc(3 * 4.55rem + 1.5rem); overflow: auto; padding: 0.75rem; border: 1px solid var(--surface-border); border-radius: 1rem; background: var(--panel-background); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18); } .peer-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; width: 100%; padding: 0.8rem 0.85rem 0.8rem 1rem; border: 1px solid var(--surface-border); border-radius: 1rem; color: inherit; background: var(--surface-background); font-size: 1.05em; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; } .peer-tile-main { display: block; min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; } .peer-tile-indicators { display: inline-flex; align-items: center; gap: 0.38rem; flex: 0 0 auto; } .peer-dropdown-caret { font-size: 4.02rem; line-height: 1; transition: transform 160ms ease; } .peer-dropdown-caret-open { transform: rotate(180deg); } .peer-tile-delete { width: 1.54rem; height: 1.54rem; padding: 0; border: 0; border-radius: 999px; background: transparent; font-size: 0.7rem; line-height: 1; } .peer-tile-delete:hover, .peer-tile-delete:focus-visible { background: var(--badge-background); } .peer-tile:hover, .peer-tile:focus-visible, .peer-tile-active { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent-color) 35%, transparent); background: var(--surface-hover-background); } .peer-tile-unread { border-color: #c62828; box-shadow: inset 0 0 0 2px #c62828; } .peer-tile-row { display: flex; align-items: center; justify-content: space-between; gap: 0.53rem; } .peer-tile-title { display: inline-flex; align-items: center; gap: 0.32rem; min-width: 0; } .peer-typing-dots { display: inline-flex; align-items: center; gap: 0.2rem; min-height: 0.9rem; } .peer-typing-dots span { width: 0.27rem; height: 0.27rem; border-radius: 999px; background: var(--page-text); opacity: 0.28; animation: peer-typing-pulse 900ms infinite ease-in-out; } .peer-typing-dots span:nth-child(2) { animation-delay: 120ms; } .peer-typing-dots span:nth-child(3) { animation-delay: 240ms; } .peer-tile-status { flex: 0 0 auto; } .chat-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; } .conversation { display: grid; gap: 0.85rem; align-content: start; min-height: 0; overflow: auto; padding: 0.5rem 0; } .bubble { position: relative; align-self: start; max-width: min(75%, 34rem); padding: 0.9rem 3.4rem 0.9rem 1rem; border-radius: 1.2rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14); } .bubble-actions { position: absolute; top: 0.45rem; right: 0.55rem; display: flex; align-items: flex-start; gap: 0.35rem; } .bubble-action { width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 999px; color: #fff; background: var(--badge-background); line-height: 1; font-size: 0.9rem; } .bubble-delete { background: var(--danger-background); } .bubble-forward-menu { position: absolute; top: 1.9rem; right: 0; z-index: 2; min-width: 12rem; padding: 0.45rem; border: 1px solid var(--surface-border); border-radius: 0.85rem; background: var(--surface-background); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); } .bubble-forward-select { width: 100%; border: 1px solid var(--input-border); border-radius: 0.65rem; color: var(--page-text); background: var(--input-background); } .bubble-incoming { justify-self: start; color: var(--incoming-bubble-text); background: var(--incoming-bubble-background); } .bubble-outgoing { justify-self: end; color: var(--outgoing-bubble-text); background: var(--outgoing-bubble-background); } .bubble-system { justify-self: center; max-width: 90%; color: var(--page-text-soft); background: var(--badge-background); } .bubble-emoji-only { max-width: none; padding: 0; border-radius: 0; background: transparent; box-shadow: none; } .bubble-meta { display: grid; gap: 0.12rem; margin-bottom: 0.35rem; font-size: 0.78rem; opacity: 0.7; } .bubble-time { display: block; } .emoji-only-text { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; } .bubble-system-status { display: inline-flex; align-items: center; gap: 0.7rem; } .bubble-spinner { width: 1rem; height: 1rem; flex: 0 0 auto; border: 0.15rem solid currentColor; border-right-color: transparent; border-radius: 999px; opacity: 0.8; animation: bubble-spin 700ms linear infinite; } .composer { display: grid; gap: 0.85rem; flex: 0 0 auto; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--surface-border-soft); } .composer-toolbar { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; justify-content: space-between; } .composer-actions { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 0.6rem; align-items: center; } .composer-receive-speed { display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: 0.45rem; margin-left: auto; text-align: right; white-space: nowrap; color: var(--page-text-soft); } .composer-receive-speed-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; } .composer-receive-speed-value { font-size: 0.92rem; font-variant-numeric: tabular-nums; } .composer-emoji-picker-shell { position: relative; } .composer-file-input { display: none; } .composer-camera, .composer-call, .composer-dictation, .composer-hangup, .composer-voice, .composer-image-generate, .composer-emoji-trigger, .composer-plus, .send-emoji { width: 3.25rem; height: 3.25rem; border: 0; border-radius: 999px; font-size: 1.35rem; } .composer-textarea, .composer-textarea:focus { color: var(--page-text); background-color: var(--input-background); border-color: var(--input-border); box-shadow: none; } .composer-textarea::placeholder { color: var(--placeholder-color); } .composer-textarea { min-height: calc(2 * 1.5rem + 1.25rem); max-height: calc(6 * 1.5rem + 1.25rem); overflow-y: auto; resize: none; } .composer-call { color: var(--page-text); background: linear-gradient(135deg, #bfe9ff, #96c3ff); } .composer-camera, .composer-emoji-trigger, .composer-plus { color: var(--page-text); background: var(--badge-background); } .composer-plus { font-size: 1.76rem; font-weight: 700; } .composer-dictation { color: var(--page-text); background: linear-gradient(135deg, #f6d8ff, #ffcadb); } .composer-dictation-active, .composer-hangup, .composer-voice-recording { color: #fff; background: linear-gradient(135deg, #ff7d63, #dc3e5d); } .composer-voice { color: var(--page-text); background: linear-gradient(135deg, #ffd8bf, #ff9b8a); } .composer-voice-recording { box-shadow: 0 0 0 0.2rem rgba(220, 62, 93, 0.18); } .composer-image-generate { color: var(--page-text); background: linear-gradient(135deg, #ffe6b0, #ffc8a8); } .send-emoji { background: linear-gradient(135deg, #def7dd, #9bd5ff); } .composer-emoji-picker { position: absolute; right: 0; bottom: calc(100% + 0.65rem); z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; width: min(14rem, 70vw); max-height: 10.35rem; overflow-y: auto; overflow-x: hidden; padding: 0.65rem; border: 1px solid var(--surface-border); border-radius: 1rem; background: var(--panel-background); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18); } .composer-emoji-option { width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: 0.75rem; background: var(--surface-background); font-size: 1.2rem; line-height: 1; } .composer-emoji-option:hover, .composer-emoji-option:focus-visible { background: var(--surface-hover-background); } .bubble-author, .bubble-download, .voice-bubble-label { font-weight: 600; } .bubble-preview { display: grid; gap: 0.45rem; } .bubble-preview-label { font-size: 0.82rem; font-weight: 600; opacity: 0.78; } .bubble-preview-image { display: block; width: min(240px, 100%); max-width: 100%; height: auto; border: 1px solid var(--surface-border); border-radius: 1rem; background: #fff; } .bubble-image, .bubble-video { width: 200px; max-width: 100%; height: auto; display: block; border-radius: 1rem; } .bubble-video { background: #000; } .bubble-download { color: inherit; } .voice-bubble { display: grid; gap: 0.65rem; } .voice-bubble-label { font-size: 0.88rem; } .voice-player { display: block; width: min(100%, 18rem); } .bubble-json { white-space: pre-wrap; word-break: break-word; margin: 0; } .empty-chat { padding: 1.25rem; border: 1px dashed var(--input-border); border-radius: 1rem; color: var(--page-text-muted); text-align: center; } .empty-peers { min-height: 10rem; } .h3, .small { color: var(--page-text); } @keyframes peer-typing-pulse { 0%, 80%, 100% { opacity: 0.28; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-1px); } } @keyframes bubble-spin { to { transform: rotate(360deg); } } @media (max-width: 767.98px) { .chat-layout { grid-template-columns: 1fr; } .peer-dropdown { min-width: min(100%, 18rem); } .status-indicators { width: 100%; margin-left: 0; } .conversation-modal-backdrop { padding: 0; } .conversation-modal { width: 100vw; height: 100dvh; border-radius: 0; } .bubble { max-width: 88%; } .composer-toolbar { justify-content: flex-start; } }