:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#252525;background:#f4f4f2;font-synthesis:none;--bg: #f4f4f2;--surface: #fff;--text: #252525;--muted: #7a7a7a;--line: #dededb;--incoming: #e9e9e7;--outgoing: #35363a;--accent: #40a778}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}button,input{font:inherit}button{color:inherit}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.boot-screen,.auth-shell{min-height:100%;display:grid;place-items:center;padding:24px;background:var(--bg)}.brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:var(--outgoing);color:#fff;font-size:22px;font-weight:700}.auth-card{width:min(100%,420px);display:grid;gap:18px;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:26px}.auth-card h1{margin:2px 0 -8px;font-size:28px}.auth-card p{margin:0 0 8px;color:var(--muted);line-height:1.5}.auth-card label{display:grid;gap:8px;font-size:14px;font-weight:600}.auth-card input,.search-box input{width:100%;border:1px solid var(--line);background:#fafaf9;border-radius:13px;padding:14px 15px;outline:none;color:var(--text)}.auth-card input:focus,.search-box input:focus,.composer input:focus{border-color:#aaa}.auth-card small,.optional{color:var(--muted);font-weight:400}.primary-button{border:0;border-radius:14px;padding:14px 18px;background:var(--outgoing);color:#fff;font-weight:700;cursor:pointer}.primary-button:disabled{opacity:.55}.form-error{padding:12px 14px;background:#fff1f0;border-radius:12px;color:#8f2d28;font-size:14px}.invite-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);background:#252525;color:#fff;padding:12px 16px;border-radius:12px;font-size:14px}.chat-view{height:100dvh;min-height:0;display:grid;grid-template-rows:auto 1fr auto;background:var(--bg)}.chat-header{min-height:68px;display:grid;grid-template-columns:52px 1fr 52px;align-items:center;border-bottom:1px solid var(--line);background:#f4f4f2f0;padding:env(safe-area-inset-top) 8px 0}.chat-title{text-align:center;display:grid;gap:2px;min-width:0}.chat-title strong{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-title span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon-button{width:44px;height:44px;display:grid;place-items:center;margin:auto;border:0;border-radius:13px;background:transparent;cursor:pointer}.icon-button:hover{background:#0000000b}.icon-button.outlined{border:1px solid var(--line);background:var(--surface)}.ghost-hidden{visibility:hidden}.messages{overflow-y:auto;padding:18px max(18px,calc((100% - 760px)/2))}.day-label{text-align:center;color:var(--muted);font-size:12px;letter-spacing:.08em;margin:10px 0 24px}.message-row{display:flex;margin:8px 0 14px}.message-row.own{justify-content:flex-end}.bubble-wrap{max-width:min(78%,560px)}.bubble{padding:12px 15px;border-radius:19px;line-height:1.42;white-space:pre-wrap;word-break:break-word}.incoming .bubble{background:var(--incoming);border-bottom-left-radius:7px}.own .bubble{background:var(--outgoing);color:#fff;border-bottom-right-radius:7px}.bubble-wrap time{display:block;font-size:11px;color:var(--muted);margin-top:5px}.own .bubble-wrap time{text-align:right}.empty-chat,.no-selection{color:var(--muted);display:grid;place-items:center;height:100%}.composer{display:grid;grid-template-columns:1fr 48px;gap:10px;align-items:center;padding:14px max(14px,calc((100% - 760px)/2));padding-bottom:max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#f4f4f2f5}.composer input{height:52px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:0 16px;outline:none;color:var(--text)}.send-button{width:48px;height:48px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer}.send-button:disabled{opacity:.3}.admin-layout{height:100dvh;display:grid;grid-template-columns:340px 1fr;background:var(--bg)}.conversation-panel{min-width:0;border-right:1px solid var(--line);background:#f8f8f6;display:grid;grid-template-rows:auto auto 1fr}.admin-topbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}.admin-topbar>div{display:grid;gap:3px}.admin-topbar strong{font-size:19px}.admin-topbar span{color:var(--muted);font-size:12px}.search-box{padding:12px 14px}.conversation-list{overflow-y:auto;padding:0 8px 12px}.conversation-item{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center;border:0;padding:11px;border-radius:14px;background:transparent;text-align:left;cursor:pointer}.conversation-item:hover,.conversation-item.active{background:var(--surface)}.avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--incoming);font-weight:700}.conversation-copy{display:grid;gap:4px;min-width:0}.conversation-copy strong,.conversation-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-copy strong{font-size:14px}.conversation-copy span{font-size:12px;color:var(--muted)}.unread-badge{min-width:22px;height:22px;display:grid;place-items:center;padding:0 6px;border-radius:99px;background:var(--accent);color:#fff;font-size:11px}.admin-chat{min-width:0;min-height:0}@media(max-width:720px){.admin-layout{display:block}.conversation-panel,.admin-chat{height:100dvh}.admin-chat,.admin-layout.show-mobile-chat .conversation-panel{display:none}.admin-layout.show-mobile-chat .admin-chat{display:block}.auth-card{border-radius:22px;padding:24px 20px}.messages{padding-left:18px;padding-right:18px}.bubble-wrap{max-width:84%}}.composer-error{grid-column:1 / -1;padding:9px 12px;border-radius:10px;background:#fff1f0;color:#8f2d28;font-size:13px}.message-row{margin:2px 0}.message-row.single,.message-row.group-last{margin-bottom:14px}.message-row.group-first .bubble,.message-row.group-middle .bubble{margin-bottom:0}.incoming.group-middle .bubble,.incoming.group-last .bubble{border-top-left-radius:7px}.incoming.group-last .bubble{border-bottom-left-radius:19px}.own.group-middle .bubble,.own.group-last .bubble{border-top-right-radius:7px}.own.group-last .bubble{border-bottom-right-radius:19px}.voice-bubble{padding:9px 12px;min-width:238px}.voice-message{display:flex;align-items:center;gap:8px}.voice-message audio{width:215px;max-width:100%;height:36px}.voice-message span{font-size:11px;opacity:.72;white-space:nowrap}.composer{grid-template-columns:minmax(0,1fr) auto}.composer-actions,.voice-actions{display:flex;align-items:center;gap:4px}.mini-icon-button{width:44px;height:44px;border:0;border-radius:13px;background:transparent;display:grid;place-items:center;cursor:pointer}.mini-icon-button:hover{background:#0000000b}.mini-icon-button svg,.send-button svg,.icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.record-stop{color:#b53630}.recording-bar,.voice-preview{min-height:52px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:0 14px;display:flex;align-items:center;gap:10px;min-width:0}.record-dot{width:9px;height:9px;border-radius:50%;background:#c8322c;animation:recordPulse 1.1s infinite}.record-limit{color:var(--muted);font-size:12px}.voice-preview audio{min-width:0;width:min(360px,100%);height:38px}.voice-preview span{color:var(--muted);font-size:12px;white-space:nowrap}@keyframes recordPulse{50%{opacity:.35}}.push-overlay{position:fixed;inset:0;z-index:1000;background:#14141452;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px}.push-card{width:min(420px,100%);background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 24px 70px #00000024;display:grid;gap:14px;text-align:center}.push-card h2{margin:0;font-size:22px}.push-card p{margin:0 0 4px;color:var(--muted);line-height:1.55}.push-icon{width:56px;height:56px;margin:0 auto 2px;display:grid;place-items:center;border-radius:18px;background:var(--incoming);font-size:26px}.text-button{border:0;background:transparent;color:var(--muted);padding:10px;cursor:pointer;font-weight:600}@media(max-width:520px){.voice-bubble{min-width:210px;max-width:78vw}.voice-message audio{width:185px}.composer{gap:5px}.mini-icon-button{width:40px}.push-card{padding:24px 20px}}.install-onboarding{position:fixed;inset:0;z-index:1100;background:var(--bg);overflow-y:auto;overscroll-behavior:contain}.install-shell{width:min(100%,520px);min-height:100dvh;margin:0 auto;padding:max(20px,env(safe-area-inset-top)) 22px max(22px,env(safe-area-inset-bottom));display:grid;grid-template-rows:auto auto minmax(300px,1fr) auto;gap:18px}.install-topline{display:flex;align-items:center;justify-content:space-between}.install-brand{width:42px;height:42px;border-radius:14px;font-size:19px}.install-later{padding-inline:4px}.install-copy{text-align:center;display:grid;gap:8px}.install-kicker{color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.09em}.install-copy h2{margin:0;font-size:clamp(26px,7vw,34px);line-height:1.08;letter-spacing:-.025em}.install-copy p{margin:0 auto;max-width:420px;color:var(--muted);line-height:1.5;font-size:15px}.install-stage{min-height:0;display:grid;place-items:center;padding:2px 0}.install-visual{width:100%;display:grid;place-items:center;gap:12px}.phone-shell,.home-screen-mock{width:min(270px,72vw);aspect-ratio:9 / 18.6;border:7px solid #222326;border-radius:38px;background:#fff;box-shadow:0 18px 45px #0000001f;overflow:hidden;position:relative}.phone-status,.home-status{height:33px;padding:9px 15px 0;display:flex;justify-content:space-between;font-size:10px;font-weight:700}.browser-address{margin:3px 10px 0;padding:8px 10px;border-radius:10px;background:#f0f0ee;font-size:10px;text-align:center;color:#4b4b4b}.browser-page{height:calc(100% - 122px);display:grid;place-content:center;justify-items:center;gap:8px;background:#f7f7f5}.browser-page strong{font-size:19px}.browser-page span{color:var(--muted);font-size:11px}.mini-brand{width:46px;height:46px;border-radius:15px;background:var(--outgoing);color:#fff;display:grid;place-items:center;font-weight:800;font-size:20px}.browser-toolbar{position:absolute;inset:auto 0 0;height:58px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-around;color:#5d5f63;font-size:24px;background:#fffffff5}.browser-toolbar svg{width:22px;height:22px}.install-highlight{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--outgoing);background:#fff;animation:installPulse 1.7s ease-in-out infinite}.visual-callout{padding:8px 12px;border-radius:999px;background:var(--incoming);font-weight:700;font-size:12px}@keyframes installPulse{50%{transform:scale(1.08);box-shadow:0 0 0 8px #35363a14}}.share-sheet-mock{width:min(360px,92vw);border:1px solid var(--line);border-radius:26px;padding:10px 12px 14px;background:#fcfcfbfa;box-shadow:0 20px 55px #0000001f}.share-handle{width:40px;height:5px;margin:0 auto 16px;background:#c8c8c6;border-radius:999px}.share-app-row{display:flex;gap:18px;padding:0 8px 16px;overflow:hidden;border-bottom:1px solid var(--line)}.share-app{min-width:56px;display:grid;justify-items:center;gap:6px}.share-app>span{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);font-size:20px}.share-app small{font-size:10px;color:#555}.share-menu-row{min-height:50px;padding:0 12px;border-bottom:1px solid #ececea;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.share-menu-row svg{width:21px;height:21px;flex:0 0 auto}.share-menu-row.install-target{margin:8px 0;border:2px solid var(--outgoing);border-radius:13px;background:#fff;font-weight:700;box-shadow:0 0 0 5px #35363a12}.home-screen-mock{background:linear-gradient(155deg,#cddfdc,#aab9c7 42%,#d9c6a8)}.home-icons{padding:30px 18px;display:grid;grid-template-columns:repeat(2,1fr);gap:22px 16px}.home-app{display:grid;justify-items:center;gap:5px}.home-app small{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.45);font-size:10px}.dali-app-icon,.fake-app{width:58px;height:58px;border-radius:15px;display:grid;place-items:center;font-size:22px;font-weight:800}.dali-app-icon{background:var(--outgoing);color:#fff}.fake-app{background:#ffffffe0;color:#555}.highlighted-app{position:relative}.highlighted-app:before{content:"";position:absolute;width:76px;height:92px;top:-9px;border:2px solid #fff;border-radius:20px;box-shadow:0 0 0 6px #ffffff29}.home-dock{position:absolute;left:14px;right:14px;bottom:18px;min-height:66px;display:flex;align-items:center;justify-content:space-around;border-radius:23px;background:#ffffff59;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);font-size:25px}.install-footer{display:grid;gap:14px}.install-progress{display:flex;justify-content:center;gap:7px}.install-progress span{width:7px;height:7px;border-radius:50%;background:#d1d1cf;transition:width .2s ease,background .2s ease}.install-progress span.active{width:22px;border-radius:999px;background:var(--outgoing)}.install-actions{display:flex;gap:10px}.install-actions>button{flex:1}.secondary-button{border:1px solid var(--line);border-radius:14px;padding:14px 18px;background:var(--surface);font-weight:700;cursor:pointer}.install-footer>small{text-align:center;color:var(--muted);line-height:1.4;font-size:11px}.android-phone-shell{background:#fff}.android-browser-bar{min-height:48px;margin:2px 8px 0;padding:0 8px;border-radius:24px;display:grid;grid-template-columns:24px 1fr 40px;align-items:center;gap:7px;background:#f0f1f2;color:#4b4d50;font-size:17px}.android-address{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;text-align:left}.android-browser-bar>strong{font-size:23px;line-height:1;text-align:center}.android-kebab{width:36px;height:36px;font-size:22px!important}.android-page{height:calc(100% - 88px)}.android-install-card{position:absolute;left:10px;right:10px;bottom:18px;min-height:74px;border:1px solid var(--line);border-radius:18px;background:#fffffff7;box-shadow:0 12px 28px #00000024;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:9px;padding:9px}.dali-app-icon.small{width:42px;height:42px;border-radius:11px;font-size:16px}.android-install-card>div:nth-child(2){display:grid;gap:2px;min-width:0}.android-install-card strong{font-size:12px}.android-install-card small{color:var(--muted);font-size:8px;line-height:1.25}.android-install-pill{padding:7px 9px;border-radius:999px;background:var(--outgoing);color:#fff;font-size:9px;font-weight:800}.android-menu-mock{width:min(350px,90vw);padding:8px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 20px 55px #0000001f}.android-menu-row{min-height:49px;padding:0 13px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-radius:12px;font-size:14px}.android-menu-row.install-target{border:2px solid var(--outgoing);background:#fff;font-weight:800;box-shadow:0 0 0 5px #35363a12}.android-menu-row.install-alt{min-height:34px;color:var(--muted);font-size:11px;justify-content:flex-start}.android-home-screen{background:linear-gradient(160deg,#97b5bd,#d7c9ad,#8aa69c)}.android-search{margin:15px 17px 0;height:34px;display:flex;align-items:center;padding:0 12px;border-radius:18px;background:#ffffffc2;color:#5d6064;font-size:10px}.android-home-icons{padding-top:28px}.android-nav{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:36px;color:#ffffffeb;font-size:17px}@media(max-height:690px){.install-shell{grid-template-rows:auto auto auto auto;gap:12px}.phone-shell,.home-screen-mock{width:min(205px,55vw)}.share-sheet-mock{transform:scale(.9);margin:-14px 0}.install-copy h2{font-size:25px}.install-copy p{font-size:13px}}
