:root{color-scheme:dark;--bg: #08111d;--panel: #101b2b;--panel-2: #142336;--line: rgba(255, 255, 255, .08);--text: #e9eff8;--muted: #8ea2bf;--accent: #19c37d;--accent-2: #1f6feb;font-family:Segoe UI,Inter,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at top left,rgba(31,111,235,.24),transparent 32%),radial-gradient(circle at bottom right,rgba(25,195,125,.12),transparent 28%),var(--bg);color:var(--text)}button,textarea{font:inherit}.app-loading,.pairing-screen,.pairing-loading{min-height:100vh;display:grid;place-items:center}.spinner{width:48px;height:48px;border:3px solid rgba(255,255,255,.16);border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.pairing-card{width:min(1040px,calc(100vw - 48px));padding:32px;border-radius:28px;border:1px solid var(--line);background:linear-gradient(135deg,#ffffff08,#ffffff03);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:grid;grid-template-columns:1.2fr .8fr;gap:28px}.pairing-card__copy h1{margin:8px 0 12px;font-size:38px;line-height:1.05}.pairing-card__copy p,.pairing-card__hint,.eyebrow,.panel__header span,.list-row__body span,.message__meta,.story-card__header span,.settings-card p,.sidebar__caption,.sidebar__profile-sub{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:700}.pairing-card__code{margin:22px 0 10px;display:inline-flex;padding:12px 16px;border-radius:14px;background:#ffffff0f;border:1px solid var(--line);letter-spacing:.25em;font-weight:800}.pairing-card__qr{display:grid;place-items:center;background:#f6f8fc;border-radius:24px;padding:24px}.ghost-button,.sidebar__logout,.composer button{border:0;border-radius:14px;padding:12px 16px;cursor:pointer}.ghost-button,.sidebar__logout{background:#ffffff0f;color:var(--text)}.ghost-button--small{padding:10px 14px;border-radius:12px;font-size:14px}.shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr}.sidebar{padding:22px;border-right:1px solid var(--line);background:#00000024;display:flex;flex-direction:column}.sidebar__brand,.sidebar__profile{display:flex;gap:12px;align-items:center}.sidebar__logo,.avatar-pill,.sidebar__avatar{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;font-weight:800;background:linear-gradient(135deg,var(--accent),var(--accent-2))}.sidebar__avatar{overflow:hidden;border-radius:50%}.sidebar__avatar img{width:100%;height:100%;object-fit:cover}.sidebar__title{font-weight:800;font-size:18px}.sidebar__nav{margin-top:26px;display:grid;gap:6px}.sidebar__item{border:0;background:transparent;color:var(--text);display:flex;gap:12px;padding:13px 14px;border-radius:14px;cursor:pointer;text-align:left}.sidebar__item.is-active{background:#19c37d24}.sidebar__footer{margin-top:auto;display:grid;gap:14px}.shell__main{padding:22px}.section-pane{display:none}.section-pane.is-active{display:block}.panel-grid{display:grid;grid-template-columns:340px 1fr;gap:18px;min-height:calc(100vh - 44px)}.panel-grid--triple{grid-template-columns:300px 1fr 320px}.panel,.pairing-loading,.error-banner,.story-card,.settings-card,.call-card{background:var(--panel);border:1px solid var(--line);border-radius:22px}.panel{display:flex;flex-direction:column;min-height:0}.panel--single{padding:18px}.panel__header{display:flex;justify-content:space-between;gap:20px;align-items:baseline;padding:18px 18px 12px}.panel__header h2{margin:0;font-size:24px}.panel__header-actions{display:grid;gap:10px;justify-items:end}.panel__call-actions{display:flex;gap:8px;flex-wrap:wrap}.icon-button{width:44px;height:44px;border:0;border-radius:14px;background:#ffffff0f;color:var(--text);display:grid;place-items:center;font-size:18px;cursor:not-allowed;opacity:.72}.list,.messages,.story-grid,.call-grid,.settings-grid{padding:10px 14px 18px}.list{display:grid;gap:8px;overflow:auto}.list-row{border:1px solid var(--line);background:var(--panel-2);border-radius:18px;padding:12px;display:flex;gap:12px;cursor:pointer;color:var(--text)}.list-row.is-active{border-color:#19c37d99}.list-row__body{display:grid;gap:4px;text-align:left}.list-row__aside{margin-left:auto;display:grid;gap:8px;justify-items:end;color:var(--muted);font-size:12px}.count-pill{min-width:22px;height:22px;padding:0 8px;display:grid;place-items:center;border-radius:999px;background:#19c37d2e;color:var(--text);font-weight:800}.messages{display:flex;flex-direction:column;gap:10px;overflow:auto;min-height:0;flex:1}.message{display:flex}.message.is-mine{justify-content:flex-end}.message__bubble{max-width:min(70ch,72%);padding:12px 14px;border-radius:16px;background:#ffffff14}.message.is-mine .message__bubble{background:#19c37d2e}.composer{border-top:1px solid var(--line);padding:14px;display:grid;grid-template-columns:1fr auto;gap:12px}.composer textarea{min-height:56px;resize:vertical;border-radius:14px;border:1px solid var(--line);background:#ffffff0a;color:var(--text);padding:12px 14px}.composer button{background:var(--accent);color:#08111d;font-weight:800}.story-grid,.call-grid,.settings-grid{display:grid;gap:16px}.panel__toolbar{padding:0 18px 8px}.panel-loading,.empty-state{padding:24px 18px;color:var(--muted)}.empty-state{display:grid;gap:8px}.story-grid{grid-template-columns:repeat(auto-fit,minmax(280px,360px));justify-content:start}.story-card{overflow:hidden}.story-card--moment{border-radius:26px;background:linear-gradient(180deg,#ffffff0a,#ffffff05)}.story-card img,.story-card video{width:100%;aspect-ratio:9 / 16;max-height:560px;object-fit:cover;display:block;border-radius:22px}.story-card__header{display:flex;justify-content:space-between;gap:16px;padding:14px 16px 10px}.story-card p,.story-card__text{padding:0 16px 16px}.story-card__text{min-height:160px;display:grid;place-items:center}.error-banner{margin-top:16px;padding:14px 18px;color:#ffd6d6}.call-card{padding:18px 22px;display:grid;gap:10px}.call-card__header{display:flex;justify-content:space-between;gap:16px;align-items:center}.call-card__actions{display:flex;gap:8px;flex-wrap:wrap}.call-status{padding:8px 12px;border-radius:999px;font-size:13px;font-weight:700}.call-status--ended{background:#19c37d2e;color:#b9ffd9}.call-status--missed,.call-status--failed,.call-status--declined{background:#ff7a7a2e;color:#ffd3d3}.moments-shell{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;min-height:calc(100vh - 140px)}.moments-rail{border:1px solid var(--line);border-radius:24px;background:#ffffff05;overflow:hidden;display:flex;flex-direction:column;min-height:0}.moments-rail__header{padding:18px 20px;border-bottom:1px solid var(--line);font-weight:700;color:var(--muted)}.moments-rail__list{display:grid;gap:8px;padding:14px;overflow:auto}.moment-row{border:1px solid transparent;background:#ffffff08;color:var(--text);border-radius:22px;padding:14px;display:grid;grid-template-columns:auto 1fr;gap:12px;text-align:left;cursor:pointer}.moment-row.is-active{border-color:#19c37d99;background:#19c37d14}.moment-row__ring{width:64px;height:64px;padding:3px;border-radius:50%;background:linear-gradient(135deg,#25d366,#1f6feb,#ff9f0a);display:grid;place-items:center}.moment-row__ring--small{width:54px;height:54px}.moment-row__avatar{width:100%;height:100%;border-radius:50%;background:var(--panel);display:grid;place-items:center;overflow:hidden;font-weight:800}.moment-row__avatar--small{width:100%;height:100%}.moment-row__avatar img{width:100%;height:100%;object-fit:cover}.moment-row__body{display:grid;gap:4px;min-width:0}.moment-row__body strong,.moment-viewer__profile strong{font-size:18px}.moment-row__body span,.moment-row__body p,.moment-viewer__profile span{color:var(--muted)}.moment-row__body p{margin:2px 0 0;font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.moment-viewer{min-width:0;display:grid}.moment-viewer__frame{position:relative;min-height:720px;border:1px solid var(--line);border-radius:28px;overflow:hidden;background:linear-gradient(180deg,#00000014,#0009),#050b14;display:grid;grid-template-rows:auto auto 1fr auto}.moment-viewer__progress{position:absolute;top:16px;left:16px;right:16px;display:grid;grid-auto-flow:column;gap:8px;z-index:3}.moment-viewer__progress-bar{height:4px;border-radius:999px;background:#ffffff3d}.moment-viewer__progress-bar.is-active{background:#ffffffeb}.moment-viewer__header{position:absolute;top:32px;left:18px;right:18px;z-index:3;display:flex;justify-content:space-between;gap:16px;align-items:center}.moment-viewer__profile{display:flex;align-items:center;gap:12px}.moment-viewer__actions{display:flex;gap:10px}.moment-viewer__icon{width:40px;height:40px;border:0;border-radius:999px;background:#00000057;color:var(--text);font-size:26px;cursor:pointer}.moment-viewer__media{min-height:0;display:grid;place-items:center;background:#050b14}.moment-viewer__media img,.moment-viewer__media video{width:100%;height:100%;max-height:720px;object-fit:contain;display:block}.moment-viewer__text-only{width:100%;height:100%;min-height:720px;display:grid;place-items:center;padding:48px;text-align:center;font-size:34px;line-height:1.25;font-weight:700;background:radial-gradient(circle at top,rgba(31,111,235,.26),transparent 38%),radial-gradient(circle at bottom,rgba(25,195,125,.2),transparent 35%),#0a1524}.moment-viewer__footer{position:absolute;left:0;right:0;bottom:0;padding:18px;display:grid;gap:12px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.72))}.moment-viewer__caption{font-size:18px;line-height:1.45;text-align:center}.moment-viewer__reply{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.moment-viewer__reply-input{min-height:54px;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:0 20px;display:flex;align-items:center;color:#ffffffb8;background:#0000003d}.moment-viewer__send{width:54px;height:54px;border:0;border-radius:999px;background:#ffffff29;color:var(--text);font-size:22px;cursor:pointer}@media(max-width:1100px){.shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.panel-grid,.pairing-card,.moments-shell{grid-template-columns:1fr}.moment-viewer__frame,.moment-viewer__text-only{min-height:560px}}
