/* Chat Crypt's room workspace. Structure first; color stays personal. */
:root { --rail: #e0e3e9; --member-surface: #eef0f4; --bg: #f7f8fa; --sidebar: #eceef2; --surface: #fff; --raised: #e9ebf1; --text: #2b2d36; --muted: #666b7a; --border: #dce0e7; --soft: #e3e7ef; }
:root.dark { --rail: #141518; --member-surface: #202125; --bg: #28292e; --sidebar: #202125; --surface: #303137; --raised: #36373f; --text: #f0f0f3; --muted: #adaeb9; --border: #3a3b43; --soft: #383a43; --shadow: 0 24px 90px #0007; }
body { font-size: 14px; }
button, input, textarea, select { font-family: inherit; }
.room-rail { width: 72px; flex: 0 0 72px; background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px; overflow-y: auto; scrollbar-width: none; }
.rail-button { width: 48px; height: 48px; flex-shrink: 0; border: 0; border-radius: 17px; background: var(--surface); color: var(--text); font-weight: 650; font-size: 15px; position: relative; }
.rail-button:hover, .rail-button.current, .rail-home { border-radius: 14px; background: var(--accent); color: var(--accent-ink); }
.rail-button.current::before { content: ''; position: absolute; width: 4px; height: 24px; border-radius: 3px; background: var(--text); left: -12px; }
.rail-home svg { width: 25px; height: 25px; }
.rail-add { color: var(--accent-strong); }
.rail-divider { width: 28px; height: 1px; flex-shrink: 0; background: var(--border); }
.rail-rooms { display: flex; flex-direction: column; gap: 10px; }
.rail-settings { margin-top: auto; }
.sidebar { width: 240px; flex: 0 0 240px; padding: 0; border-right: 0; }
.brand { height: 60px; padding: 0 18px; margin: 0; border-bottom: 1px solid var(--border); font-size: 23px; flex-shrink: 0; letter-spacing: -.8px; }
.brand-mark { display: none; }
.brand-dot { margin-left: 1px; }
.sidebar-scroll { padding: 12px 10px; gap: 2px; }
.room-card { padding: 9px 5px 14px; align-items: center; }
.room-card strong { font-size: 14px; line-height: 1.4; }
.room-card p { font-size: 11px; margin-top: 4px; }
.room-symbol { width: 34px; height: 34px; border: 0; background: var(--raised); }
.sidebar-section { margin: 18px 8px 6px; font-size: 10px; font-weight: 750; letter-spacing: .9px; }
.tiny-tag { font-size: 8px; font-weight: 500; }
.nav-item { margin: 1px 0; padding: 8px 10px; min-height: 38px; font-size: 14px; gap: 10px; border-radius: 5px; }
.nav-item.selected { color: var(--text); box-shadow: none; background: var(--soft); }
.nav-item.selected .channel-hash, .nav-item.selected svg { color: var(--accent-strong); }
.nav-item svg { width: 19px; height: 19px; }
.channel-hash { font-size: 24px; font-weight: 400; line-height: 1; color: var(--muted); width: 20px; text-align: center; }
.channel-note { padding: 4px 11px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.saved-rooms { margin-top: 0; }
.saved-room { border: 0; border-radius: 5px; padding: 2px 3px; }
.saved-room.current { box-shadow: none; background: var(--raised); }
.saved-room-open { padding: 8px 6px; font-size: 12px; }
.saved-flower { font-size: 16px; }
.saved-room .icon-button { width: 25px; height: 28px; }
.saved-hint { padding-inline: 8px; font-size: 10px; }
.sidebar-create { background: transparent; color: var(--accent-strong); border: 1px dashed var(--border); margin: 14px 4px 0; padding: 9px; font-size: 12px; }
.sidebar-create:hover { background: var(--soft); }
.sidebar-join { padding: 9px; font-size: 11px; }
.privacy-note { margin: auto 8px 0; padding-top: 24px; border: 0; }
.privacy-note strong { font-size: 11px; }
.privacy-note p { font-size: 10px; line-height: 1.7; }
.privacy-icon { display: none; }
.profile { padding: 10px 8px; margin: 0; background: var(--rail); border: 0; gap: 4px; }
.profile-identity { flex: 1; min-width: 0; border: 0; color: var(--text); background: none; padding: 4px; justify-content: flex-start; text-align: left; gap: 9px; border-radius: 6px; }
.profile-identity:hover { background: var(--raised); }
.profile-identity>span:last-child { display: flex; flex-direction: column; min-width: 0; }
.profile-identity strong { font-size: 12px; }
.profile-identity #profileHint { font-size: 10px; color: var(--muted); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 140px; }
.profile .avatar { width: 34px; height: 34px; font-size: 17px; flex-shrink: 0; }
.sidebar-settings { margin: 0; padding: 9px 12px; font-size: 10px; background: var(--rail); border: 0; }
.settings-shortcut { display: none; }
.avatar, .dark .avatar, .profile .avatar { border-radius: 50%; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.workspace { min-width: 0; }
.topbar { height: 60px; min-height: 60px; padding: 0 22px; background: var(--bg); border-bottom: 1px solid var(--border); }
.breadcrumb { gap: 12px; font-size: 14px; }
.breadcrumb strong { max-width: 230px; }
.topbar-actions { gap: 10px; }
.connection-badge { background: transparent; border: 0; font-size: 10px; padding-inline: 0; }
#retryConnection { padding: 7px 9px; font-size: 10px; background: transparent; border: 1px solid var(--border); }
.main { padding: 0 22px; }
.conversation-header { padding: 13px 0; gap: 10px; }
.conversation-header>.heading-icon { display: none; }
.conversation-header h1 { font-size: 15px; font-weight: 650; }
.conversation-header p { margin-top: 3px; font-size: 11px; }
.conversation-actions { gap: 4px; }
.button { font-size: 12px; padding: 9px 13px; border-radius: 7px; }
.icon-button { border-radius: 6px; }
.chat-scroll { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.messages { padding-top: 22px; }
.message, .message.me { padding: 5px 8px; border-radius: 4px; gap: 14px; }
.message>.avatar { width: 38px; height: 38px; font-size: 21px; flex-shrink: 0; }
.message-meta { gap: 8px; margin-bottom: 3px; }
.message-meta strong { font-size: 14px; }
.message-meta time { font-size: 10px; }
.bubble { font-size: var(--chat-size); line-height: 1.6; }
.message-actions { opacity: 0; transition: opacity .12s; }
.message:hover .message-actions, .message:focus-within .message-actions { opacity: 1; }
.message-action { padding: 3px 7px; font-size: 10px; border-radius: 5px; }
.system-message { text-align: left; padding-left: 60px; font-size: 11px; }
.composer { margin-top: 0; border: 0; border-radius: 9px; background: transparent; }
.composer-input { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 0; }
.composer-input { position: relative; }
.emoji-picker { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 10; width: 270px; padding: 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.emoji-picker button { padding: 5px; width: 36px; height: 36px; font-size: 23px; background: none; border: 0; border-radius: 6px; }
.emoji-picker button:hover { background: var(--raised); }
#emojiToggle { font-size: 23px; color: var(--muted); }
.composer textarea { padding: 15px 16px 8px; font-size: 14px; min-height: 44px; }
.composer-toolbar { padding: 0 10px 8px; }
.composer-tools { gap: 8px; }
.composer-tools .icon-button { width: 30px; height: 30px; }
#composerHint { font-size: 10px; }
.send-button { border-radius: 6px; padding: 6px 12px; font-size: 12px; }
.composer-footer { padding: 8px 0 12px; font-size: 9px; }
.typing { min-height: 22px; font-size: 11px; padding-left: 8px; }
.members-panel { width: 224px; flex: 0 0 224px; background: var(--member-surface); border-left: 1px solid var(--border); padding: 0 12px 18px; display: flex; flex-direction: column; min-height: 0; }
.members-heading { min-height: 60px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: 1px; font-weight: 750; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.members-heading #peerCount { margin-left: 8px; }
#closeMembers { display: none; }
.members-panel .peer-list { overflow-y: auto; min-height: 0; }
.peer { width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; border-radius: 6px; padding: 9px 6px; margin: 0 0 3px; gap: 9px; justify-content: flex-start; }
.peer:hover { background: var(--raised); }
.peer .avatar { width: 34px; height: 34px; flex: 0 0 34px; }
.peer-info { min-width: 0; flex: 1; }
.peer-info strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peer-info small { font-size: 10px; }
.peer-dot { flex-shrink: 0; width: 7px; height: 7px; }
.peer[data-presence="away"] .peer-dot.connected { background: #e2b877; }
.peer[data-presence="busy"] .peer-dot.connected { background: #e28d96; }
.members-bottom { margin-top: auto; padding: 25px 8px 0; color: var(--muted); }
.members-bottom svg { width: 16px; height: 16px; margin-bottom: 12px; }
.members-bottom strong { display: block; font-size: 11px; color: var(--text); margin-bottom: 6px; }
.members-bottom p { font-size: 11px; line-height: 1.7; }
.members-hidden .members-panel { display: none; }
.welcome { max-width: 740px; padding: 36px 16px 22px; }
.eyebrow { font-size: 9px; letter-spacing: 2px; }
.welcome-art { height: 130px; transform: scale(.72); margin: -8px auto 0; }
.welcome h2 { font-family: inherit; font-size: clamp(34px, 3.2vw, 51px); font-weight: 750; line-height: 1.13; letter-spacing: -1.8px; }
.welcome h2 span { font-family: Georgia, serif; font-weight: 400; letter-spacing: -1.4px; }
.welcome-description { font-size: 13px; line-height: 1.8; margin-top: 18px; }
.welcome-actions { margin-top: 23px; }
.welcome-actions .button { padding: 12px 18px; }
.welcome-caption { margin-top: 13px; font-size: 10px; }
.feature-grid { border: 0; padding: 0; margin-top: 28px; gap: 10px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 17px 10px; }
.feature-icon { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 10px; }
.feature h3 { font-size: 11px; }
.feature p { font-size: 10px; }
.room-empty { padding: 60px 12px; text-align: left; align-items: flex-start; }
.room-empty h2 { font-family: inherit; font-size: 29px; letter-spacing: -.8px; }
.room-empty p { font-size: 13px; }
.room-empty .heading-icon { width: 56px; height: 56px; border-radius: 50%; }
.voice-panel { padding: 12px; margin-top: 12px; border-radius: 8px; gap: 10px; background: var(--sidebar); }
.voice-badge { width: 34px; height: 34px; border-radius: 50%; }
.voice-heading strong { font-size: 12px; }
.voice-copy p { font-size: 10px; }
.voice-actions { gap: 5px; }
.voice-actions .button { padding: 8px 10px; font-size: 11px; }
.voice-participants { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); max-height: 200px; }
.voice-person { border-radius: 8px; background: var(--surface); }
.voice-dock { padding: 12px 8px; background: var(--sidebar); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 1px; }
.voice-dock>div { flex: 1; min-width: 0; }
.voice-dock strong { display: block; font-size: 11px; color: var(--accent-strong); }
.voice-dock span { font-size: 10px; color: var(--muted); }
.voice-dock .icon-button { width: 29px; height: 30px; font-size: 17px; }
.voice-dock [aria-pressed="true"] { color: var(--danger); background: var(--raised); }
.lounge-scene { display: none; }
body[data-view="voice"] .chat-scroll, body[data-view="voice"] .composer, body[data-view="voice"] .typing, body[data-view="voice"] #newMessages { display: none; }
body[data-view="voice"] .voice-panel { flex: 1; min-height: 0; overflow: auto; align-content: start; display: flex; flex-wrap: wrap; margin: 16px 0; padding: 24px; }
body[data-view="voice"] .lounge-scene { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 15px 0 24px; }
.lounge-orbit { width: 88px; height: 88px; display: grid; place-items: center; color: var(--accent); font-family: Georgia, serif; font-size: 66px; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; transform: rotate(-7deg); margin-bottom: 26px; }
.lounge-scene h2 { font-size: 32px; letter-spacing: -1px; margin: 8px 0; }
.lounge-scene p { font-size: 13px; line-height: 1.8; color: var(--muted); }
body[data-view="voice"] .voice-participants { width: 100%; max-height: none; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 20px; }
body[data-view="voice"] .voice-person { min-height: 195px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
body[data-view="voice"] .voice-person .avatar { width: 68px; height: 68px; font-size: 34px; }
body[data-view="voice"] .voice-person-info { text-align: center; }
body[data-view="voice"] .person-volume { width: 100%; }
body[data-view="voice"] .voice-person.speaking { box-shadow: inset 0 0 0 2px var(--accent-strong); }
dialog { border-radius: 14px; }
.settings-dialog { width: min(960px, calc(100vw - 48px)); max-width: none; padding: 0; }
#settingsForm { padding: 26px 30px 0; }
.settings-dialog .dialog-top h2 { font-family: inherit; font-size: 25px; letter-spacing: -.6px; }
.settings-eyebrow { font-size: 9px; letter-spacing: 1.8px; }
.settings-tabs { margin-top: 22px; gap: 25px; }
.settings-tabs button { font-size: 13px; }
#profileSettings { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; align-items: start; }
.profile-fields { grid-column: 1; grid-row: 1; min-width: 0; }
.profile-fields h3 { font-size: 15px; }
.settings-dialog label, .settings-dialog legend { font-size: 12px; }
.settings-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .settings-dialog select, #profileBio { background: var(--sidebar); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 11px 12px; width: 100%; font: inherit; font-size: 13px; }
#profileBio { resize: vertical; min-height: 86px; }
.settings-dialog .settings-grid { gap: 14px; }
.settings-note { font-size: 11px; line-height: 1.7; margin-top: 8px; }
.profile-preview { grid-column: 2; grid-row: 1; display: block; padding: 0; border-radius: 12px; overflow: hidden; position: sticky; top: 0; background: var(--sidebar); }
.profile-banner { height: 98px; background: #a594c1; position: relative; }
.profile-banner[data-color="mint"] { background: #85af99; }
.profile-banner[data-color="lavender"] { background: #a594c1; }
.profile-banner[data-color="peach"] { background: #c8a083; }
.profile-banner[data-color="sky"] { background: #86a9bf; }
.profile-banner[data-color="rose"] { background: #bd91a3; }
.profile-banner::before, .profile-banner::after { content: ''; position: absolute; border: 1px solid #fff4; border-radius: 50%; width: 100px; height: 100px; right: 20px; top: -25px; }
.profile-banner::after { width: 65px; height: 65px; right: -20px; top: 45px; }
.preview-tag { position: absolute; top: 12px; left: 14px; color: #19191f; font-weight: 750; font-size: 9px; }
.preview-content { padding: 0 18px 18px; position: relative; }
.profile-preview .avatar, .member-card-content>.avatar { width: 76px; height: 76px; font-size: 35px; border-radius: 50%; border: 5px solid var(--sidebar); position: relative; margin-top: -30px; margin-bottom: 9px; }
.profile-preview strong { font-size: 21px; letter-spacing: -.5px; margin: 13px 0 2px; }
.profile-preview p { font-size: 12px; }
#profilePreviewStatus, .member-status { margin-top: 14px; padding: 11px; background: var(--surface); border-radius: 7px; }
#profilePreviewStatus:empty, #memberStatus:empty { display: none; }
.presence-label { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.presence-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #87ba9b; }
.presence-label[data-presence="away"]::before { background: #e2b877; }
.presence-label[data-presence="busy"]::before { background: #e28d96; }
.member-about { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.member-about h3 { font-size: 9px; letter-spacing: 1px; margin-bottom: 8px; }
.member-about p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.photo-actions { display: flex; gap: 8px; align-items: center; }
.photo-actions label { margin: 0; cursor: pointer; }
.photo-actions:focus-within label { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.avatar-choices { grid-template-columns: repeat(6, 1fr); }
.avatar-choice { border-radius: 8px; min-height: 40px; }
.settings-footer { position: sticky; bottom: 0; background: var(--surface); padding: 16px 0; margin-top: 22px; border-top: 1px solid var(--border); z-index: 2; }
.theme-sample.night { background: #25262a; }
.member-dialog { width: 340px; padding: 0; overflow: hidden; background: var(--sidebar); }
.member-dialog .profile-banner { height: 105px; }
.member-dialog .profile-banner button { position: absolute; top: 10px; right: 10px; color: #202127; background: #fff5; z-index: 1; }
.member-card-content { padding: 0 22px 22px; }
.member-card-content h2 { font-family: inherit; font-size: 25px; margin-top: 12px; overflow-wrap: anywhere; }
.member-pronouns { color: var(--muted); font-size: 12px; }
.member-card-content .settings-note { margin-top: 20px; }
#editMemberProfile { width: 100%; margin-top: 12px; }
@media (max-width: 1300px) { .members-panel { width: 200px; flex-basis: 200px; } .sidebar { width: 220px; flex-basis: 220px; } .topbar, .main { padding-inline: 16px; } .connection-badge { font-size: 9px; } .topbar-actions { gap: 6px; } }
@media (max-width: 1100px) {
  .members-panel { display: none; position: fixed; right: 0; top: 0; bottom: 0; width: 260px; z-index: 45; box-shadow: var(--shadow); }
  .members-open .members-panel { display: flex; }
  #closeMembers { display: inline-flex; }
  .members-backdrop { position: fixed; inset: 0; background: #0007; border: 0; z-index: 44; }
  .breadcrumb strong { max-width: 180px; }
}
@media (max-width: 760px) {
  .room-rail { display: none; }
  .sidebar { width: 270px; padding: 0; }
  .topbar { height: 54px; min-height: 54px; padding-inline: 12px; }
  .breadcrumb { display: none; }
  .topbar-actions { margin-left: auto; gap: 5px; }
  #toggleMembers { width: 30px; }
  #accessPending { max-width: 92px; font-size: 9px; line-height: 1.3; padding: 5px; }
  #retryConnection { padding: 6px; font-size: 9px; }
  .main { padding-inline: 12px; }
  .conversation-header { padding: 12px 0; }
  .conversation-header p { font-size: 10px; }
  .conversation-header h1 { font-size: 14px; }
  .conversation-actions .icon-button { width: 28px; }
  .conversation-actions .button { padding: 7px; }
  .welcome { padding: 24px 0; }
  .welcome h2 { font-size: 37px; }
  .welcome-art { height: 115px; }
  .welcome-description { font-size: 12px; }
  .feature-grid { gap: 7px; }
  .feature { padding: 13px 6px; }
  .feature p { font-size: 9px; }
  .feature h3 { font-size: 10px; }
  .message, .message.me { gap: 10px; padding-inline: 0; }
  .message>.avatar { width: 32px; height: 32px; }
  .message-actions { opacity: 1; }
  .composer textarea { font-size: 16px; }
  .voice-panel { gap: 8px; }
  .voice-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .voice-participants { grid-template-columns: 1fr; }
  body[data-view="voice"] .voice-panel { padding: 16px; }
  .lounge-scene p { font-size: 12px; }
  .settings-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); }
  #settingsForm { padding: 20px 17px 0; }
  .settings-dialog .dialog-top h2 { font-size: 21px; }
  #profileSettings { display: flex; flex-direction: column; gap: 22px; }
  .profile-preview { position: static; width: 100%; }
  .profile-fields { width: 100%; }
  .profile-banner { height: 78px; }
  .profile-preview .avatar { width: 60px; height: 60px; font-size: 28px; }
  .profile-preview strong { font-size: 19px; }
  .profile-preview .member-about, .profile-preview .settings-note { display: none; }
  .settings-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .settings-dialog select, #profileBio { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .message-actions { transition: none; } }

/* A welcoming front door, with the room navigation still within reach. */
body:not(.has-room):not(.members-open) .members-panel { display: none; }
body:not(.has-room) .conversation-header, body:not(.has-room) .composer, body:not(.has-room) .typing { display: none; }
body:not(.has-room) .main { padding: 0; }
.welcome.landing { max-width: 1180px; width: 100%; padding: 54px 42px 24px; margin: 0 auto; text-align: left; }
.landing-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 35px; align-items: center; }
.landing-copy .eyebrow { justify-content: flex-start; font-size: 9px; letter-spacing: 1.8px; margin-bottom: 24px; }
.landing-copy h2 { font-family: inherit; font-size: clamp(40px, 4.4vw, 65px); font-weight: 750; line-height: 1.06; letter-spacing: -2.5px; }
.landing-copy h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--accent-strong); white-space: nowrap; }
.landing-copy .welcome-description { font-size: 14px; line-height: 1.9; max-width: 390px; margin: 23px 0 0; }
.landing-copy .welcome-actions { justify-content: flex-start; margin-top: 26px; gap: 9px; flex-wrap: wrap; }
.landing-copy .welcome-actions .button { padding: 13px 15px; font-size: 12px; }
.landing-copy .welcome-caption { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; line-height: 1.7; text-align: left; max-width: 335px; margin: 16px 0 0; }
.landing-copy .welcome-caption svg { width: 13px; height: 13px; margin-top: 2px; }
.landing-how-link { display: inline-flex; gap: 10px; margin-top: 30px; color: var(--muted); text-decoration: none; font-size: 11px; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.landing-how-link:hover { color: var(--text); }
.room-preview { margin: 0; min-width: 0; transform: rotate(1.5deg); }
.preview-window { background: var(--sidebar); border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 20px 60px #0002; overflow: hidden; }
.preview-window-bar { display: flex; gap: 10px; align-items: center; padding: 14px; background: var(--rail); font-size: 10px; border-bottom: 1px solid var(--border); }
.preview-window-dots { color: var(--muted); font-size: 8px; letter-spacing: 1px; }
.preview-window-bar small { font-size: 7px; letter-spacing: 1px; color: var(--muted); margin-left: auto; }
.preview-channel { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 12px; padding: 14px 17px; }
.preview-channel>span:first-child { font-size: 22px; color: var(--muted); font-weight: 400; }
.preview-private { display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--muted); margin-left: auto; font-weight: 400; }
.preview-private svg { width: 12px; height: 12px; }
.preview-message { display: flex; gap: 10px; padding: 12px 18px; }
.preview-face { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; font-size: 24px; }
.face-lilac { background: #c3b4db; color: #473451; }
.face-peach { background: #e7c3a7; color: #6c4e3b; }
.preview-message strong { font-size: 11px; }
.preview-message strong small { color: var(--muted); font-size: 8px; margin-left: 6px; font-weight: 400; }
.preview-message p { margin-top: 4px; font-size: 11px; color: var(--text); line-height: 1.6; }
.preview-reaction { display: inline-flex; margin-top: 8px; padding: 3px 7px; background: var(--raised); border: 1px solid var(--border); border-radius: 5px; font-size: 10px; }
.preview-screen { margin: 3px 18px 16px 60px; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.preview-screen-art { height: 142px; background: #c4b7d4; position: relative; overflow: hidden; }
.preview-moon { position: absolute; right: 40px; top: 22px; width: 40px; height: 40px; background: #fae6bd; border-radius: 50%; }
.preview-hill { position: absolute; width: 100%; height: 135px; left: -15%; bottom: -70px; background: #5e746c; border-radius: 50% 55% 0 0; transform: rotate(10deg); }
.preview-hill.hill-back { left: 40%; background: #929689; bottom: -65px; transform: rotate(-20deg); }
.preview-art-caption { position: absolute; top: 14px; left: 14px; font-family: Georgia, serif; font-style: italic; color: #4a3e57; font-size: 15px; max-width: 110px; line-height: 1.2; }
.preview-screen>div:last-child { display: flex; align-items: center; padding: 8px 9px; gap: 6px; font-size: 9px; }
.preview-screen svg { width: 13px; height: 13px; }
.preview-screen>div:last-child span { margin-left: auto; font-size: 7px; font-weight: 700; color: var(--accent-strong); letter-spacing: 1px; }
.preview-voice { display: flex; align-items: center; gap: 7px; background: var(--raised); padding: 14px 16px; font-size: 10px; }
.preview-voice>span:last-child { color: var(--muted); margin-left: auto; font-size: 8px; }
.preview-voice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); }
.room-preview figcaption { text-align: center; margin-top: 17px; font-family: Georgia, serif; font-style: italic; color: var(--muted); font-size: 12px; }
.room-preview figcaption span { color: var(--accent-strong); margin-right: 5px; }
.landing-values { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin: 42px 0; padding: 21px 0; border-block: 1px solid var(--border); }
.landing-values>span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.landing-values svg { width: 16px; height: 16px; color: var(--accent-strong); }
.landing-section-title h3 { font-size: 25px; letter-spacing: -.8px; margin-top: 8px; }
.landing-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 23px; }
.landing-step-grid article { padding: 20px; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; }
.step-number { font-size: 11px; color: var(--accent-strong); letter-spacing: 1px; }
.landing-step-grid h4 { font-size: 14px; margin: 16px 0 9px; }
.landing-step-grid p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.landing-footer { margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 7px 15px; align-items: center; }
.landing-footer strong { font-size: 11px; }
.landing-footer p { font-size: 10px; color: var(--muted); }
.landing-footer button { background: none; border: 0; padding: 0; color: var(--accent-strong); font-size: 10px; margin-left: auto; }

.screen-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 0; flex-shrink: 0; }
.screen-toolbar .button { font-size: 11px; padding: 7px 10px; }
#screenLive { font-size: 11px; color: var(--accent-strong); display: flex; align-items: center; gap: 7px; }
#screenLive::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#stopScreen { margin-left: auto; }
.screen-toolbar .danger, .screen-card .danger { background: #ad535d; border-color: #ad535d; color: #fff; }
.screen-panel { flex: 0 1 auto; min-height: 140px; max-height: 42%; overflow: auto; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--sidebar); }
.screen-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.screen-panel h2 { font-size: 15px; margin-top: 3px; }
.screen-note { font-size: 9px; color: var(--muted); }
.screen-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.screen-card { min-width: 0; background: #111216; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.screen-card-header { display: flex; align-items: center; gap: 7px; padding: 8px; background: var(--surface); }
.screen-card-header strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 11px; }
.screen-card-header button { padding: 5px 8px; font-size: 9px; }
.screen-card video { display: block; width: 100%; max-height: 250px; aspect-ratio: 16 / 9; object-fit: contain; background: #111216; }
.screen-card:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.screen-card:fullscreen video { flex: 1; min-height: 0; max-height: none; width: 100%; }
.screen-card.screen-expanded { grid-column: 1 / -1; }
.screen-card.screen-expanded video { max-height: 70dvh; }
body[data-view="voice"] .screen-panel { max-height: 46%; }
@media (max-width: 1200px) { .welcome.landing { padding: 35px 26px 22px; } .landing-hero { gap: 24px; } .landing-copy h2 { font-size: 48px; } .preview-window-bar { gap: 7px; padding-inline: 10px; } .preview-window-bar small { display: none; } .preview-voice>span:last-child { display: none; } }
@media (max-width: 980px) { .landing-hero { grid-template-columns: 1fr; } .landing-copy { max-width: 550px; } .landing-copy h2 { font-size: 56px; } .landing-copy .welcome-description { max-width: 460px; } .room-preview { max-width: 440px; width: 100%; justify-self: center; margin-top: 15px; } .landing-step-grid { gap: 10px; } .landing-step-grid article { padding: 15px; } }
@media (max-width: 760px) {
  .welcome.landing { padding: 30px 20px 22px; }
  .landing-copy h2 { font-size: 48px; letter-spacing: -2px; }
  .landing-copy .eyebrow { font-size: 8px; margin-bottom: 20px; }
  .landing-copy .welcome-description { font-size: 13px; margin-top: 20px; }
  .landing-copy .welcome-actions .button { font-size: 12px; padding: 12px; }
  .landing-copy .welcome-caption { max-width: 310px; }
  .room-preview { transform: none; }
  .landing-values { gap: 16px; margin: 30px 0; }
  .landing-step-grid { grid-template-columns: 1fr; }
  .landing-step-grid article { padding: 18px; }
  .landing-step-grid h4 { margin-top: 10px; }
  .landing-section-title h3 { font-size: 24px; }
  .landing-footer { flex-direction: column; align-items: flex-start; gap: 9px; }
  .landing-footer button { margin-left: 0; }
  .screen-toolbar { gap: 6px; flex-wrap: wrap; }
  #screenLive { font-size: 10px; }
  .screen-cards { grid-template-columns: 1fr; }
  .screen-panel { max-height: 34%; padding: 9px; }
  .screen-note { display: none; }
  #screenHint[data-unsupported="true"] { display: inline; font-size: 10px; max-width: 170px; }
  .screen-card video { max-height: 190px; }
}
