:root {
  color-scheme: light;
  --ink: #15182b;
  --muted: #71768c;
  --line: #e8e9f1;
  --paper: #ffffff;
  --wash: #f6f7fb;
  --navy: #10152b;
  --navy-2: #171d3c;
  --violet: #6256e8;
  --violet-dark: #4b43c7;
  --violet-soft: #eeecff;
  --coral: #ff6b68;
  --green: #35c48d;
  --shadow: 0 24px 70px rgba(24, 26, 56, .14);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--wash); color: var(--ink); }
body { min-height: 100vh; overflow-x: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(98, 86, 232, .28); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.entry-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 46%) 1fr; background: var(--paper); }
.entry-card { padding: clamp(34px, 6vw, 86px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(44px, 9vh, 96px); width: fit-content; text-decoration: none; color: inherit; }
.brand-lockup.compact { margin: 0; }
.brand-name { font-size: 1.35rem; font-weight: 780; letter-spacing: -.045em; }
.brand-mark { width: 36px; height: 32px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; width: 22px; height: 22px; border: 3px solid var(--violet); border-radius: 50%; top: 3px; }
.brand-mark i:first-child { left: 0; border-right-color: transparent; transform: rotate(-18deg); }
.brand-mark i:last-child { right: 0; border-left-color: transparent; transform: rotate(18deg); }
.brand-mark.large { transform: scale(1.8); }
.eyebrow { display: block; color: var(--violet); text-transform: uppercase; font-weight: 800; font-size: .72rem; letter-spacing: .15em; margin-bottom: 10px; }
.entry-copy h1, .auth-heading h1 { font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.065em; margin: 0 0 24px; max-width: 720px; }
.auth-heading h1 { font-size: clamp(2.5rem, 4vw, 4.4rem); }
.entry-copy p, .auth-heading p { color: var(--muted); line-height: 1.7; font-size: 1.03rem; max-width: 540px; margin: 0; }
.stack-form { width: min(100%, 440px); margin-top: 38px; display: flex; flex-direction: column; gap: 10px; }
.stack-form label, .profile-form label, .unlock-modal label { font-weight: 720; font-size: .88rem; margin-top: 8px; }
input, textarea { width: 100%; border: 1px solid #dfe1eb; border-radius: 14px; background: #fff; color: var(--ink); padding: 14px 16px; min-height: 50px; transition: border-color .2s, box-shadow .2s; }
input:hover, textarea:hover { border-color: #c8cad8; }
input:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(98,86,232,.1); outline: none; }
textarea { resize: none; }
.field-with-action { position: relative; }
.field-with-action input { padding-right: 64px; }
.reveal-button { position: absolute; right: 8px; top: 7px; bottom: 7px; border: 0; background: transparent; color: var(--violet); font-size: .78rem; font-weight: 750; }
.primary-button { border: 0; color: white; background: var(--violet); border-radius: 14px; min-height: 52px; padding: 0 20px; margin-top: 10px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; font-weight: 760; box-shadow: 0 12px 28px rgba(98,86,232,.22); transition: background .2s, transform .2s, box-shadow .2s; }
.primary-button:hover { background: var(--violet-dark); transform: translateY(-1px); box-shadow: 0 15px 34px rgba(98,86,232,.3); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.compact-button { min-height: 44px; width: fit-content; margin-top: 6px; padding: 0 18px; }
.form-error { min-height: 18px; color: #c7404b; font-size: .84rem; margin: 1px 0; }
.field-hint { color: var(--muted); font-size: .78rem; margin: 0; }
.privacy-note, .crypto-line { color: var(--muted); margin-top: 24px; display: flex; align-items: center; gap: 9px; font-size: .78rem; }
.mini-shield, .crypto-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--green); background: #e7faf3; font-weight: 900; }
.crypto-dot { width: 8px; height: 8px; background: var(--green); }

.entry-art { background: var(--navy); position: relative; overflow: hidden; min-height: 100vh; }
.entry-art::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 30px 30px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 420px; height: 420px; background: radial-gradient(circle at 35% 30%, #8077ff, #3c357d 55%, transparent 72%); left: 15%; top: 17%; opacity: .82; }
.orb-two { width: 300px; height: 300px; background: radial-gradient(circle at 30% 30%, #ff8c88, #7b3554 55%, transparent 72%); right: -3%; bottom: 5%; opacity: .66; }
.signal-card { position: absolute; color: white; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); border-radius: 18px; padding: 16px 20px; box-shadow: 0 22px 60px rgba(0,0,0,.26); display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.signal-card span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px rgba(255,107,104,.15); }
.signal-a { left: 12%; top: 29%; transform: rotate(-4deg); }
.signal-b { right: 10%; bottom: 29%; transform: rotate(3deg); }
.constellation { position: absolute; width: 460px; height: 460px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.constellation::before, .constellation::after { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.constellation::after { inset: 38%; background: rgba(255,255,255,.08); }
.constellation i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 0 32px rgba(255,255,255,.75); }
.constellation i:nth-child(1) { left: 3%; top: 45%; }.constellation i:nth-child(2) { right: 13%; top: 12%; }.constellation i:nth-child(3) { right: 2%; bottom: 29%; }.constellation i:nth-child(4) { left: 20%; bottom: 9%; }.constellation i:nth-child(5) { left: 49%; top: 48%; background: var(--coral); }
.auth-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: 34px; max-width: 440px; }
.auth-tabs button { border: 0; background: transparent; padding: 13px 2px; color: var(--muted); font-weight: 730; border-bottom: 2px solid transparent; }
.auth-tabs button.active { color: var(--ink); border-color: var(--violet); }
.phone-preview { position: absolute; width: min(410px, 68%); aspect-ratio: .72; left: 50%; top: 52%; transform: translate(-50%,-50%) rotate(-3deg); border: 1px solid rgba(255,255,255,.16); border-radius: 42px; background: rgba(255,255,255,.09); backdrop-filter: blur(24px); box-shadow: 0 35px 90px rgba(0,0,0,.4); padding: 34px 24px; color: white; }
.phone-top { display: flex; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 18px; }
.phone-top i { margin-left: auto; width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.bubble { width: fit-content; max-width: 82%; margin-top: 28px; padding: 14px 16px; border-radius: 18px; line-height: 1.45; }
.bubble.their { background: rgba(255,255,255,.13); border-bottom-left-radius: 5px; }
.bubble.mine { background: var(--violet); margin-left: auto; border-bottom-right-radius: 5px; }
.typing { display: flex; gap: 4px; background: rgba(255,255,255,.13); width: fit-content; padding: 15px 18px; border-radius: 18px; margin-top: 20px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b7b9ca; }
.orb-three { width: 600px; height: 600px; background: radial-gradient(circle, rgba(98,86,232,.65), transparent 67%); left: 50%; top: 50%; transform: translate(-50%,-50%); }

.app-shell { min-height: 100vh; background: var(--wash); }
.topbar { height: 76px; display: grid; grid-template-columns: 240px minmax(220px, 560px) 1fr; align-items: center; gap: 28px; padding: 0 28px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.search-trigger { height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--wash); color: #85899b; display: flex; align-items: center; gap: 11px; padding: 0 13px; text-align: left; }
.search-trigger span:nth-child(2) { flex: 1; }
.search-trigger kbd { border: 1px solid #dfe1e9; border-radius: 6px; background: white; padding: 2px 7px; font-size: .68rem; }
.search-icon { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 6px; height: 2px; background: currentColor; position: absolute; right: -5px; bottom: -2px; transform: rotate(45deg); border-radius: 2px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-button, .avatar-button, .round-action { display: inline-grid; place-items: center; border: 1px solid var(--line); background: white; color: var(--ink); width: 42px; height: 42px; border-radius: 13px; }
.icon-button:hover { border-color: #cacbe0; background: #fafafe; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.accent { color: var(--violet); background: var(--violet-soft); border-color: transparent; }
.avatar-button { border: 0; padding: 0; background: transparent; }
.avatar { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: linear-gradient(145deg, #7369f0, #ff7771); color: white; font-weight: 780; overflow: hidden; background-size: cover; background-position: center; }
.avatar-lg { width: 48px; height: 48px; }.avatar-xl { width: 92px; height: 92px; font-size: 1.6rem; }
.badge-host { position: relative; }
.badge { position: absolute; right: -5px; top: -5px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--coral); color: white; font-weight: 800; font-size: .65rem; border: 2px solid white; }
.badge.subtle { position: static; margin-left: auto; border: 0; }
.workspace { height: calc(100vh - 76px); display: grid; grid-template-columns: 248px 340px minmax(0, 1fr); max-width: 1680px; margin: 0 auto; background: white; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.sidebar { background: var(--navy); color: #d7d9e7; padding: 26px 16px 20px; display: flex; flex-direction: column; }
.profile-card { border: 0; background: rgba(255,255,255,.06); color: white; border-radius: 17px; padding: 12px; display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; }
.profile-card > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.profile-card b { overflow: hidden; text-overflow: ellipsis; }
.profile-card small { color: #9ca1b9; display: flex; align-items: center; gap: 6px; }
.online-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.chevron { margin-left: auto; color: #9398b0; font-size: 1.5rem; }
.main-nav { margin-top: 30px; display: grid; gap: 7px; }
.nav-item { border: 0; background: transparent; color: #9fa4bc; min-height: 48px; border-radius: 13px; display: flex; align-items: center; gap: 13px; padding: 0 14px; font-weight: 680; }
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: white; background: rgba(98,86,232,.32); }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot { margin-top: auto; display: grid; gap: 14px; }
.secure-pill { display: flex; gap: 10px; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.055); }
.secure-pill > span { color: var(--green); }.secure-pill div { display: grid; gap: 3px; }.secure-pill b { color: white; font-size: .76rem; }.secure-pill small { color: #8f94ac; font-size: .62rem; }
.quiet-button { border: 0; background: transparent; color: #8f94ac; padding: 8px; font-size: .8rem; }
.quiet-button:hover { color: white; }

.rail { border-right: 1px solid var(--line); min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.rail-head { padding: 26px 24px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.rail-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.04em; }.rail-head .eyebrow { margin-bottom: 4px; }
.round-action { width: 38px; height: 38px; border: 0; background: var(--violet); color: white; font-size: 1.4rem; }
.conversation-list { overflow-y: auto; padding: 10px; }
.conversation-item { width: 100%; min-height: 76px; padding: 10px 12px; border: 0; border-radius: 15px; background: transparent; display: flex; gap: 12px; align-items: center; text-align: left; color: inherit; }
.conversation-item:hover { background: var(--wash); }.conversation-item.active { background: var(--violet-soft); }
.conversation-item .avatar-wrap { position: relative; flex: none; }
.presence-dot { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; background: #b9bdca; border: 2px solid white; border-radius: 50%; }.presence-dot.online { background: var(--green); }
.conversation-body { min-width: 0; flex: 1; display: grid; gap: 5px; }
.conversation-row { display: flex; align-items: center; gap: 8px; }.conversation-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.conversation-row time { margin-left: auto; color: #9a9dab; font-size: .67rem; }
.conversation-body p { margin: 0; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-empty { text-align: center; color: var(--muted); padding: 46px 24px; font-size: .88rem; line-height: 1.6; }

.main-content { min-width: 0; background: #fbfbfd; position: relative; overflow: hidden; }
.empty-chat { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 36px; position: relative; }
.empty-chat h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); letter-spacing: -.055em; line-height: 1.03; margin: 14px 0 16px; }
.empty-chat p { color: var(--muted); max-width: 500px; line-height: 1.65; margin: 0 0 16px; }
.empty-orbit { position: relative; width: 150px; height: 150px; border: 1px solid #e4e2fb; border-radius: 50%; display: grid; place-items: center; margin-bottom: 30px; }
.empty-orbit::before { content: ""; position: absolute; inset: 20%; border: 1px solid #eeecfa; border-radius: 50%; }
.empty-orbit > i { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--coral); box-shadow: 0 5px 16px rgba(255,107,104,.28); }.empty-orbit > i:nth-of-type(3) { left: 3%; top: 45%; }.empty-orbit > i:nth-of-type(4) { right: 12%; top: 10%; background: var(--green); }.empty-orbit > i:nth-of-type(5) { right: 2%; bottom: 25%; background: var(--violet); }
.encryption-caption { margin-top: 24px; font-size: .73rem; color: #999daf; }.encryption-caption::first-letter { color: var(--green); }

.chat-view { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; background: white; }
.chat-head { min-height: 79px; padding: 13px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.chat-person { display: grid; gap: 3px; }.chat-person b { font-size: 1rem; }.chat-person small { color: var(--muted); font-size: .73rem; }
.chat-actions { margin-left: auto; display: flex; gap: 8px; }
.chat-security { justify-self: center; color: #6e7384; background: #f7f8fb; border: 1px solid #ececf2; padding: 6px 11px; margin-top: 10px; border-radius: 20px; font-size: .66rem; }.chat-security span { color: var(--green); }
.message-list { min-height: 0; overflow-y: auto; padding: 24px clamp(16px, 4vw, 50px); display: flex; flex-direction: column; gap: 10px; }
.message-date { align-self: center; color: #a0a3b1; font-size: .68rem; margin: 8px 0; }
.message { max-width: min(72%, 620px); display: grid; gap: 4px; }
.message.mine { align-self: flex-end; }.message.theirs { align-self: flex-start; }
.message-bubble { padding: 11px 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; background: #f0f1f5; border-radius: 17px 17px 17px 5px; font-size: .93rem; }
.message.mine .message-bubble { background: var(--violet); color: white; border-radius: 17px 17px 5px 17px; }
.message time { color: #a0a3b1; font-size: .62rem; padding: 0 4px; }.message.mine time { text-align: right; }
.message.failed .message-bubble { opacity: .55; }
.composer { margin: 0 clamp(14px, 3vw, 34px) 20px; min-height: 58px; display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--wash); }
.composer textarea { min-height: 40px; max-height: 132px; border: 0; box-shadow: none; background: transparent; padding: 10px 2px; line-height: 1.35; }
.composer textarea:focus { box-shadow: none; }
.composer button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 13px; background: var(--violet); color: white; display: grid; place-items: center; }
.composer button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.content-view { height: 100%; overflow-y: auto; padding: clamp(28px, 5vw, 70px); }
.content-head { margin-bottom: 30px; }.content-head h2, .profile-hero h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; }.content-head p, .profile-hero p { color: var(--muted); margin: 0; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.person-card { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 10px 30px rgba(30,31,61,.04); }
.person-top { display: flex; align-items: center; gap: 12px; }.person-meta { min-width: 0; display: grid; gap: 3px; }.person-meta b { overflow: hidden; text-overflow: ellipsis; }.person-meta small { color: var(--muted); font-size: .72rem; }
.person-card p { color: var(--muted); margin: 0; min-height: 40px; font-size: .82rem; line-height: 1.5; }
.person-actions { display: flex; gap: 8px; }.secondary-button { flex: 1; border: 1px solid var(--line); background: white; color: var(--ink); min-height: 38px; border-radius: 11px; font-weight: 720; font-size: .78rem; }.secondary-button.accent { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.request-cards { display: grid; gap: 12px; max-width: 680px; }
.request-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 14px; }.request-card .person-meta { flex: 1; }.request-card .person-meta p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }.request-card .person-actions { flex: none; }
.profile-hero { position: relative; overflow: hidden; background: var(--navy); color: white; border-radius: 26px; padding: clamp(24px, 5vw, 48px); display: flex; align-items: center; gap: 26px; }
.profile-hero p { color: #aeb2c8; max-width: 540px; line-height: 1.55; }.profile-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(98,86,232,.55), transparent 67%); right: -80px; top: -150px; }
.profile-avatar-wrap { position: relative; z-index: 1; cursor: pointer; flex: none; }.profile-avatar-wrap .avatar { border: 4px solid rgba(255,255,255,.18); }.camera-badge { position: absolute; right: -2px; bottom: 3px; width: 28px; height: 28px; border-radius: 50%; background: white; color: var(--violet); display: grid; place-items: center; box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.profile-form { max-width: 680px; margin-top: 24px; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 12px; }.profile-form textarea { margin-top: 2px; }.form-row { display: flex; justify-content: space-between; align-items: center; }.form-row small { color: var(--muted); }
.key-card { max-width: 680px; display: flex; gap: 14px; margin-top: 18px; padding: 19px; border: 1px solid #dbf2e9; background: #f3fcf8; border-radius: 18px; }.key-icon { color: var(--green); }.key-card b { display: block; margin-bottom: 4px; }.key-card p { color: #65746e; font-size: .8rem; margin: 0; line-height: 1.5; }

.modal { padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow); width: min(92vw, 570px); color: var(--ink); }.modal::backdrop { background: rgba(10,13,31,.62); backdrop-filter: blur(6px); }.modal-shell { padding: 26px; margin: 0; }.modal-head { display: flex; align-items: flex-start; justify-content: space-between; }.modal-head h2, .unlock-modal h2, .incoming-modal h2 { margin: 0; letter-spacing: -.04em; }.close-button { border: 0; background: var(--wash); width: 36px; height: 36px; border-radius: 11px; font-size: 1.4rem; color: var(--muted); }
.search-box { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 0 15px; background: var(--wash); border-radius: 14px; }.search-box input { border: 0; background: transparent; box-shadow: none; padding-left: 2px; }.search-results { min-height: 180px; max-height: 55vh; overflow-y: auto; margin-top: 14px; }.search-empty { padding: 50px 10px; text-align: center; color: var(--muted); font-size: .86rem; }.search-person { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }.search-person .person-meta { flex: 1; }.search-person button { flex: none; }
.unlock-modal { width: min(92vw, 430px); text-align: center; }.unlock-modal .modal-shell { padding: 34px; display: flex; flex-direction: column; gap: 10px; }.unlock-modal p { color: var(--muted); line-height: 1.55; font-size: .88rem; }.unlock-modal label { text-align: left; }.unlock-modal .key-seal { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #e8faf3; color: var(--green); margin: 0 auto 8px; font-size: 1.2rem; }.unlock-modal .quiet-button:hover { color: var(--ink); }
.incoming-modal { width: min(92vw, 390px); text-align: center; }.incoming-modal .modal-shell { padding: 36px; }.incoming-modal .avatar { margin-bottom: 18px; }.incoming-modal p { color: var(--muted); }
.call-choice { display: flex; justify-content: center; gap: 36px; margin-top: 28px; }

.call-overlay { position: fixed; inset: 0; z-index: 100; background: #090c1b; color: white; overflow: hidden; }.call-overlay > video#remoteVideo { width: 100%; height: 100%; object-fit: cover; }.call-overlay > video#localVideo { position: absolute; right: 22px; top: 22px; width: min(24vw, 260px); aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; border: 2px solid rgba(255,255,255,.2); box-shadow: 0 16px 50px rgba(0,0,0,.4); z-index: 2; }.call-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34), transparent 40%, rgba(0,0,0,.6)); pointer-events: none; }.call-info { position: absolute; top: 7vh; left: 50%; transform: translateX(-50%); text-align: center; }.call-info h2 { font-size: 2rem; margin: 14px 0 5px; }.call-info p { color: #c7cada; margin: 0; }.call-controls { position: absolute; bottom: max(34px, calc(env(safe-area-inset-bottom) + 18px)); left: 50%; transform: translateX(-50%); display: flex; gap: 15px; }.call-control { border: 0; width: 58px; height: 58px; border-radius: 50%; color: white; background: rgba(255,255,255,.17); backdrop-filter: blur(10px); font-size: 1.35rem; }.call-control.danger { background: #ed4b57; }.call-control.accept { background: var(--green); }
.audio-only #remoteVideo { opacity: 0; }.audio-only #localVideo { display: none; }

.toast-region { position: fixed; right: 18px; top: 92px; z-index: 200; display: grid; gap: 9px; pointer-events: none; }.toast { background: var(--navy); color: white; border-radius: 13px; padding: 12px 15px; box-shadow: var(--shadow); font-size: .82rem; animation: toast-in .25s ease; max-width: 340px; }.toast.error { background: #9d3540; }.toast.success { background: #16795c; }@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } }
.mobile-nav, .mobile-only { display: none; }

@media (max-width: 1020px) {
  .entry-screen { grid-template-columns: 1fr; }.entry-card { min-height: 100vh; max-width: 680px; }.entry-art { display: none; }
  .workspace { grid-template-columns: 82px 310px minmax(0,1fr); }.sidebar { padding-inline: 12px; }.profile-card > span:nth-child(2), .profile-card .chevron, .nav-item span, .sidebar-foot { display: none; }.profile-card { justify-content: center; padding: 10px; }.nav-item { justify-content: center; padding: 0; }.nav-item svg { width: 22px; height: 22px; }
}

@media (max-width: 760px) {
  body { background: white; }.topbar { height: 64px; grid-template-columns: 1fr auto; padding: 0 16px; }.topbar .brand-mark { transform: scale(.9); transform-origin: left center; }.search-trigger { grid-column: 1 / -1; display: none; }.workspace { height: calc(100vh - 64px - 67px); grid-template-columns: 1fr; border: 0; }.sidebar { display: none; }.rail { border: 0; }.rail-head { padding: 22px 18px 16px; }.conversation-list { padding: 8px; }.main-content { position: fixed; inset: 64px 0 67px; z-index: 10; transform: translateX(100%); transition: transform .25s ease; }.main-content.mobile-open { transform: translateX(0); }.empty-chat { display: none; }.chat-head { min-height: 70px; padding: 10px 12px; }.mobile-only { display: inline-grid; width: 34px; border: 0; font-size: 1.8rem; }.chat-security { margin-top: 6px; }.message-list { padding: 16px 13px; }.message { max-width: 84%; }.composer { margin: 0 10px 10px; }.content-view { padding: 24px 16px; }.people-grid { grid-template-columns: 1fr; }.profile-hero { align-items: flex-start; flex-direction: column; border-radius: 19px; }.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(67px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr); z-index: 30; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }.mobile-nav button { border: 0; background: transparent; color: #898d9f; display: grid; place-items: center; align-content: center; gap: 3px; font-size: .63rem; font-weight: 700; }.mobile-nav button span { font-size: 1.15rem; }.mobile-nav button.active { color: var(--violet); }.call-overlay > video#localVideo { width: 110px; right: 12px; top: 12px; border-radius: 14px; }.call-info { top: 10vh; }.toast-region { top: 74px; right: 10px; left: 10px; }.toast { max-width: none; }
}

@media (max-width: 470px) {
  .entry-card { padding: 27px 22px; justify-content: flex-start; }.brand-lockup { margin: 14px 0 64px; }.entry-copy h1, .auth-heading h1 { font-size: 2.7rem; }.stack-form { margin-top: 30px; }.auth-tabs { margin-top: 25px; }.auth-card .brand-lockup { margin-bottom: 44px; }
  .request-card { align-items: flex-start; flex-wrap: wrap; }.request-card .person-actions { width: 100%; }.modal-shell { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
