*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif}body{--page:#eeeeec;--ink:#171716;--muted:#6f6f6b;--line:#dfdfdc;--control:#e4e4e1;background:var(--page);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible{outline:2px solid #268aee;outline-offset:2px}button{cursor:pointer}.preview-bar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);gap:16px}.preview-brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.preview-brand strong{font-size:15px;letter-spacing:-.2px}.brand-mark{width:24px;height:24px;border-radius:8px;background:#171716;display:flex;align-items:center;justify-content:center;gap:3px;transform:rotate(-7deg)}.brand-mark i{display:block;width:3px;height:9px;border-radius:3px;background:#fff;transform:rotate(13deg)}.preview-label{font-size:12px;color:var(--muted);padding-left:10px;border-left:1px solid var(--line)}.preview-controls{display:flex;align-items:center;gap:10px}.segmented{display:flex;background:var(--control);padding:3px;border-radius:9px;gap:2px}.segment{border:0;background:transparent;border-radius:6px;padding:6px 13px;font-size:12px;color:var(--muted);transition:background .2s ease,color .2s ease,box-shadow .2s ease}.segment.active{background:#fff;color:#171716;box-shadow:0 1px 3px #00000012}.theme-toggle{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:transparent;display:grid;place-items:center}.theme-toggle svg{width:16px;height:16px}.preview-stage{min-height:calc(100vh - 110px);display:grid;place-items:center;padding:22px 28px}.device-preview{width:100%;justify-items:center}.preview-footer{height:42px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:11px}.footer-dot{width:3px;height:3px;background:var(--muted);border-radius:50%;opacity:.5}.toast{position:fixed;left:50%;bottom:54px;transform:translate(-50%,12px);background:#171716;color:#fff;border-radius:9px;padding:10px 16px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;z-index:50}.toast.show{opacity:1;transform:translate(-50%,0)}
/* Application theme */
.app-theme{--app-bg:#fafaf9;--sidebar:#f4f4f2;--panel:#f6f6f4;--bubble:#e9e9e6;--bubble-hover:#e2e2df;--selected:#e3e3e0;--app-ink:#1c1c1b;--app-muted:#6f6f6b;--app-faint:#73736f;--app-line:#e2e2df;--white:#fff;--black:#171716;--green:#16a879;--blue:#1787e0;--shadow:0 16px 50px #30302b1a,0 2px 8px #30302b0d;background:var(--app-bg);color:var(--app-ink)}.app-theme.dark{--app-bg:#141413;--sidebar:#191918;--panel:#191918;--bubble:#282826;--bubble-hover:#30302e;--selected:#30302e;--app-ink:#f2f2ef;--app-muted:#999994;--app-faint:#73736f;--app-line:#30302e;--white:#f7f7f4;--black:#f0f0ed;--shadow:0 18px 60px #0007}.desktop-app{width:min(1280px,calc(100vw - 56px));height:min(780px,calc(100vh - 132px));min-height:620px;border:1px solid var(--app-line);border-radius:13px;overflow:hidden;box-shadow:var(--shadow);display:grid;grid-template-columns:300px minmax(360px,1fr) 310px;transition:background .25s ease,color .25s ease}.desktop-app.inspector-hidden{grid-template-columns:300px minmax(360px,1fr)}.desktop-app.inspector-hidden .inspector{display:none}.sidebar{background:var(--sidebar);border-right:1px solid var(--app-line);display:flex;flex-direction:column;min-width:0;overflow:hidden}.window-top{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;flex:none}.traffic{display:flex;gap:8px}.traffic i{width:11px;height:11px;border-radius:50%;display:block}.traffic i:nth-child(1){background:#fa5f57}.traffic i:nth-child(2){background:#febc2e}.traffic i:nth-child(3){background:#28c840}.icon-button{border:0;background:transparent;width:30px;height:30px;border-radius:7px;display:grid;place-items:center;color:var(--app-muted);transition:background .2s ease,color .2s ease}.icon-button:hover{background:var(--bubble);color:var(--app-ink)}.icon-button svg{width:18px;height:18px;stroke-width:1.7}.sidebar-search{margin:0 14px 12px;position:relative}.sidebar-search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:var(--app-muted);pointer-events:none}.sidebar-search input{width:100%;height:34px;border:1px solid var(--app-line);border-radius:9px;background:var(--bubble);color:var(--app-ink);padding:0 12px 0 34px;font-size:12px;outline:none}.sidebar-search input::placeholder{color:var(--app-muted)}.sidebar-section{padding:2px 20px 7px;color:var(--app-muted);font-size:11px}.bot-list{padding:0 10px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:var(--app-line) transparent}.bot-row{width:100%;border:0;background:transparent;border-radius:10px;padding:9px 10px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;column-gap:9px;text-align:left;position:relative;transition:background .18s ease}.bot-row:hover{background:var(--bubble)}.bot-row.selected{background:var(--selected)}.bot-avatar{width:38px;height:38px;display:block;flex:none}.bot-avatar svg{display:block;width:100%;height:100%;overflow:visible}.bot-row-copy{min-width:0;align-self:center}.bot-row-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.bot-name{font-size:12px;font-weight:650;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bot-time{font-size:9px;font-weight:400;color:var(--app-muted);white-space:nowrap}.bot-preview{display:block;font-size:10.5px;color:var(--app-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:17px;max-width:165px}.unread-dot{position:absolute;right:10px;bottom:14px;width:5px;height:5px;border-radius:50%;background:var(--blue)}.sidebar-bottom{margin-top:auto;padding:10px 13px 13px;flex:none}.sidebar-action{border:0;background:transparent;width:100%;height:38px;display:flex;align-items:center;gap:11px;padding:0 9px;font-size:12px;border-radius:8px;text-align:left}.sidebar-action:hover{background:var(--bubble)}.sidebar-action svg{width:17px;height:17px;color:var(--app-muted)}.user-row{border-top:1px solid var(--app-line);margin-top:5px;padding-top:11px}.user-avatar{width:25px;height:25px;border-radius:50%;background:linear-gradient(145deg,#d7c5a5,#9a7455);color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700;border:2px solid var(--white)}
/* Conversation */
.conversation{min-width:0;display:flex;flex-direction:column;background:var(--app-bg);position:relative}.conversation-header,.create-header{height:54px;flex:none;border-bottom:1px solid var(--app-line);display:flex;align-items:center;justify-content:space-between;padding:0 15px}.conversation-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;min-width:0}.conversation-title .bot-avatar{width:23px;height:23px}.conversation-title span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-actions{display:flex;align-items:center;gap:3px}.message-scroll{flex:1;min-height:0;overflow:auto;padding:20px 22px 14px;scrollbar-width:thin;scrollbar-color:var(--app-line) transparent}.day-label{text-align:center;color:var(--app-muted);font-size:10px;margin:0 0 18px}.message{display:flex;margin:0 0 9px;animation:message-in .25s ease both}.message.user{justify-content:flex-end}.message-bubble{max-width:76%;padding:10px 13px;border-radius:16px;font-size:12px;line-height:1.6;letter-spacing:.01em;white-space:pre-line}.message.bot .message-bubble{background:var(--bubble);border-bottom-left-radius:6px}.message.user .message-bubble{background:var(--black);color:var(--white);border-bottom-right-radius:6px}.dark .message.user .message-bubble{color:#171716}.message-bubble a{color:#4a90b8;text-decoration:none}.attachment{margin:2px 0 13px;border:1px solid var(--app-line);border-radius:11px;padding:10px 12px;display:flex;align-items:center;gap:10px;width:max-content;max-width:78%;background:var(--app-bg)}.pdf-icon{width:32px;height:35px;border-radius:6px;background:#f8e5e8;color:#d74863;display:grid;place-items:center;font-size:8px;font-weight:800}.attachment-copy strong{display:block;font-size:11px;font-weight:600}.attachment-copy small{display:block;color:var(--app-muted);font-size:9px;margin-top:3px}.attachment .icon-button{margin-left:12px}.typing{display:inline-flex;gap:4px;align-items:center;height:18px}.typing i{width:4px;height:4px;background:var(--app-muted);border-radius:50%;animation:typing 1s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}.composer-wrap{padding:10px 14px 14px;flex:none}.composer{height:46px;border:1px solid var(--app-line);background:var(--app-bg);border-radius:23px;display:flex;align-items:center;padding:4px 5px 4px 6px;box-shadow:0 2px 5px #00000005}.composer .icon-button{border-radius:50%;background:var(--bubble);width:32px;height:32px;flex:none}.composer input{min-width:0;flex:1;border:0;background:transparent;color:var(--app-ink);padding:0 11px;outline:0;font-size:11px}.composer input::placeholder{color:var(--app-faint)}.voice-button{border:0;background:var(--black);color:var(--white);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none}.dark .voice-button{color:#171716}.voice-button svg{width:15px;height:15px}.send-button{border:0;background:var(--black);color:var(--white);width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none}.dark .send-button{color:#171716}.send-button svg{width:15px;height:15px}.composer-hint{font-size:9px;color:var(--app-faint);text-align:center;margin-top:7px}
/* Inspector */
.inspector{background:var(--panel);border-left:1px solid var(--app-line);min-width:0;display:flex;flex-direction:column;overflow:auto}.inspector-top{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;border-bottom:1px solid var(--app-line);flex:none}.inspector-top .left,.inspector-top .right{display:flex;gap:3px}.screen-preview{margin:17px 14px 0;background:var(--bubble);border-radius:10px;padding:13px 13px 10px}.mini-screen{height:142px;background:#e8e9e8;border:3px solid #c7c8c7;border-radius:5px;box-shadow:0 4px 7px #0002;overflow:hidden;color:#46505a}.mini-toolbar{height:15px;background:#f6f7f7;display:flex;align-items:center;gap:3px;padding:0 5px;font-size:4px}.mini-toolbar i{width:3px;height:3px;border-radius:50%;background:#9ca1a4}.mini-body{display:grid;grid-template-columns:30px 1fr;height:calc(100% - 15px)}.mini-side{background:#f4f5f5;padding:7px 4px}.mini-side i{display:block;height:4px;background:#c5cbcf;border-radius:2px;margin-bottom:5px}.calendar{padding:6px;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);gap:3px}.calendar i{background:#fff;border:1px solid #d3d8da;border-radius:1px}.calendar i.busy{background:#2aa6d6;border-color:#2aa6d6}.calendar i.green{background:#37b36c;border-color:#37b36c}.calendar i.red{background:#ee796f;border-color:#ee796f}.screen-caption{text-align:center;color:var(--app-muted);font-size:10px;margin:11px 0 18px}.routines{padding:0 19px}.section-label{font-size:11px;color:var(--app-muted);margin-bottom:10px}.routine{display:grid;grid-template-columns:18px 1fr;gap:7px;margin:0 0 18px}.routine svg{width:15px;height:15px;color:var(--green);margin-top:1px}.routine.paused svg{color:var(--app-muted)}.routine strong{display:block;font-size:11px;font-weight:550}.routine small{display:block;font-size:9px;color:var(--app-muted);margin-top:3px}
/* Create bot */
.create-layout{grid-column:2/4;background:var(--app-bg);display:flex;flex-direction:column;min-width:0}.create-header{font-size:12px;font-weight:650;justify-content:flex-start;gap:8px}.create-header .bot-avatar{width:23px;height:23px}.create-body{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;overflow:auto;padding:44px 28px 24px}.create-avatar{width:62px;height:62px;margin-bottom:20px}.color-picker{display:flex;gap:11px;margin-bottom:17px}.color-swatch{width:16px;height:16px;border:0;border-radius:50%;background:var(--swatch);padding:0;position:relative}.color-swatch.selected:after{content:"";position:absolute;inset:-4px;border:1.5px solid var(--app-muted);border-radius:50%}.shape-picker{display:flex;gap:10px;margin-bottom:28px}.shape-choice{width:28px;height:32px;border:0;background:transparent;padding:3px;border-radius:7px;color:var(--create-color,#268aee)}.shape-choice.selected{outline:1px solid var(--app-muted);outline-offset:1px}.shape-choice .bot-avatar{width:22px;height:25px}.create-form{width:min(310px,100%);text-align:left}.create-form label{display:block;color:var(--app-muted);font-size:10px;margin-bottom:7px}.create-form input{width:100%;height:37px;border:1px solid var(--app-line);border-radius:7px;background:transparent;color:var(--app-ink);padding:0 11px;font-size:11px;outline:none}.primary-button{display:block;border:0;background:var(--black);color:var(--white);border-radius:8px;padding:10px 22px;font-size:11px;margin:18px auto 0;min-width:92px}.dark .primary-button{color:#171716}.suggestions{width:100%;margin-top:auto;padding-top:34px}.suggestions-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.suggestion{border:1px solid var(--app-line);border-radius:11px;padding:14px;display:grid;grid-template-columns:34px 1fr;gap:10px;text-align:left;background:transparent;transition:background .2s ease}.suggestion:hover{background:var(--bubble)}.suggestion .bot-avatar{width:32px;height:32px}.suggestion strong{font-size:11px;display:block;margin:1px 0 4px}.suggestion small{font-size:9px;line-height:1.45;color:var(--app-muted);display:block}
/* Phone */
.mobile-preview{padding:4px 0}.mobile-chat{height:100%}.phone-device{width:390px;height:844px;max-height:calc(100vh - 120px);border-radius:55px;background:#0d0d0d;padding:7px;box-shadow:0 25px 65px #25251f33,0 3px 10px #0003;position:relative}.phone-device:before{content:"";position:absolute;inset:2px;border:1px solid #454545;border-radius:52px;pointer-events:none;z-index:4}.phone-screen{width:100%;height:100%;border-radius:48px;overflow:hidden;position:relative;min-height:620px}.phone-status{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 23px 0 25px;font-size:12px;font-weight:650;position:relative;flex:none}.dynamic-island{position:absolute;left:50%;top:10px;transform:translateX(-50%);width:106px;height:29px;background:#050505;border-radius:20px;z-index:2}.status-icons{display:flex;align-items:center;gap:5px}.status-icons svg{height:12px;width:auto}.mobile-page{height:100%;display:flex;flex-direction:column;background:var(--app-bg);color:var(--app-ink)}.mobile-header{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 19px;flex:none}.mobile-profile{width:29px;height:29px;border-radius:50%;border:0;background:#ded7ca;color:#59493a;font-size:11px;font-weight:700}.mobile-actions{display:flex;gap:6px}.mobile-actions .icon-button{width:32px;height:32px}.mobile-actions svg{width:20px;height:20px}.featured-bots{display:grid;grid-template-columns:repeat(3,1fr);padding:14px 15px 19px;gap:7px;flex:none}.featured-bot{border:0;background:transparent;padding:0;min-width:0}.featured-bot .bot-avatar{width:68px;height:68px;margin:0 auto 8px}.featured-bot span{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--app-muted)}.mobile-list{padding:0 11px;overflow:auto;min-height:0;scrollbar-width:none}.mobile-list::-webkit-scrollbar{display:none}.mobile-bot{width:100%;border:0;background:transparent;display:grid;grid-template-columns:45px 1fr auto;gap:10px;align-items:center;text-align:left;padding:8px 7px;border-radius:11px}.mobile-bot:active{background:var(--selected)}.mobile-bot .bot-avatar{width:43px;height:43px}.mobile-bot .bot-name{font-size:12px}.mobile-bot .bot-preview{font-size:10px;max-width:205px;line-height:16px}.mobile-bot .bot-time{font-size:8px;align-self:start;margin-top:4px}.mobile-bot-copy{min-width:0}.mobile-bot-title{display:flex;align-items:center;gap:6px}.online-dot{width:5px;height:5px;border-radius:50%;background:var(--blue);display:inline-block}.home-indicator{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:124px;height:5px;background:var(--app-ink);opacity:.85;border-radius:5px;z-index:10;pointer-events:none}.mobile-chat-header{height:52px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:0 8px;border-bottom:1px solid var(--app-line);flex:none}.mobile-chat-title{display:flex;justify-content:center;align-items:center;gap:6px;font-size:11px;font-weight:650;min-width:0}.mobile-chat-title .bot-avatar{width:22px;height:22px}.mobile-chat-title span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-chat .message-scroll{padding:18px 15px 12px}.mobile-chat .day-label{font-size:8px;margin-bottom:16px}.mobile-chat .message-bubble{font-size:11px;line-height:1.55;max-width:82%;padding:9px 11px;border-radius:14px}.mobile-chat .attachment{padding:8px 9px;max-width:88%}.mobile-chat .attachment-copy strong{font-size:10px}.mobile-chat .composer-wrap{padding:8px 12px 28px}.mobile-chat .composer{height:42px}.mobile-chat .composer input{font-size:10px}.mobile-chat .composer-hint{display:none}.mobile-create .create-body{padding:32px 24px}.mobile-create .create-avatar{width:70px;height:70px}.mobile-create .shape-picker{gap:5px}.mobile-create .color-picker{gap:10px}.mobile-create .suggestions{display:none}.mobile-create .primary-button{width:100%;border-radius:22px;padding:12px;margin-top:24px}.mobile-empty{text-align:center;color:var(--app-muted);font-size:11px;padding:36px 0}.no-results{text-align:center;color:var(--app-muted);font-size:11px;padding:26px 10px}
@keyframes message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes typing{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
body.dark-preview{--page:#111110;--ink:#f1f1ed;--muted:#92928c;--line:#32322f;--control:#262624}.dark-preview .segment.active{background:#3a3a37;color:#fff}.dark-preview .brand-mark{background:#eee}.dark-preview .brand-mark i{background:#171716}
@media(max-width:1120px){.desktop-app{grid-template-columns:270px minmax(340px,1fr)}.desktop-app .inspector{display:none}.desktop-app .create-layout{grid-column:2}.preview-label{display:none}}@media(max-width:760px){.preview-bar{height:auto;min-height:64px;padding:12px 15px;align-items:flex-start;flex-direction:column}.preview-controls{width:100%;justify-content:space-between;gap:6px}.segment{padding:6px 10px}.preview-stage{padding:16px 8px;min-height:calc(100vh - 152px);overflow:hidden}.desktop-preview{overflow:auto;justify-items:start}.desktop-app{width:1000px;height:700px;transform-origin:top left}.phone-device{transform:scale(.92);transform-origin:top center;margin-bottom:-55px}.preview-footer{height:34px;font-size:9px}.preview-footer span:last-child,.preview-footer .footer-dot:last-of-type{display:none}}@media(max-width:420px){.phone-device{transform:scale(.88);margin-bottom:-90px}.preview-brand strong{font-size:13px}.scene-switch .segment{padding-left:8px;padding-right:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}


/* Platform standards, global themes, locale controls, and portrait assets */
body{min-height:100dvh}.language-toggle{min-width:44px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:transparent;font-size:12px;font-weight:650;transition:background .2s ease,color .2s ease}.language-toggle:hover{background:var(--control)}.app-theme{color-scheme:light}.app-theme.dark{color-scheme:dark;--app-bg:#0b0b0b;--sidebar:#111111;--panel:#101010;--bubble:#202020;--bubble-hover:#292929;--selected:#2b2b2b;--app-ink:#f4f4f2;--app-muted:#a3a3a0;--app-faint:#858582;--app-line:#2b2b2b;--white:#f5f5f3;--black:#ededeb;--green:#32c695;--blue:#45a3ef}.dark-preview .language-toggle:hover{background:#292927}.image-avatar{overflow:hidden;background:#20242a;border:1px solid var(--app-line);border-radius:50%}.image-avatar img{display:block;width:100%;height:100%;object-fit:cover}.create-avatar.image-avatar{border-radius:24px;box-shadow:0 8px 20px #00000018}.inline-link{border:0;background:transparent;padding:0;color:#3f83a7;font:inherit;text-align:inherit;cursor:pointer}.dark .inline-link{color:#73b7d8}.inline-link:hover{text-decoration:underline}.avatar-mode-switch{display:flex;background:var(--bubble);padding:3px;border-radius:10px;margin-bottom:16px;gap:3px}.avatar-mode-switch button{border:0;background:transparent;color:var(--app-muted);border-radius:7px;min-height:34px;padding:0 14px;font-size:12px;transition:background .2s ease,color .2s ease}.avatar-mode-switch button.active{background:var(--app-bg);color:var(--app-ink);box-shadow:0 1px 3px #00000012}.group-avatar-picker{display:grid;grid-template-columns:repeat(10,44px);gap:6px;margin-bottom:22px}.group-avatar-choice{width:44px;height:44px;padding:3px;border:1px solid transparent;border-radius:50%;background:transparent;opacity:.68;transition:opacity .2s ease,transform .2s ease,border-color .2s ease}.group-avatar-choice:hover{opacity:1;transform:translateY(-2px)}.group-avatar-choice.selected{opacity:1;border-color:var(--app-ink)}.group-avatar-choice img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.create-body{padding-top:28px}.create-avatar{width:76px;height:76px}.create-form label{font-size:12px}.create-form input{height:40px;font-size:14px}.primary-button{font-size:13px;min-height:40px}.bot-name{font-size:13px}.bot-preview{font-size:12px}.bot-time{font-size:11px}.message-bubble{font-size:16px;line-height:1.55}.day-label,.screen-caption,.section-label{font-size:12px}.routine strong{font-size:13px}.routine small{font-size:12px}.composer input{font-size:14px}.composer-hint{font-size:11px}.attachment-copy strong{font-size:13px}.attachment-copy small{font-size:12px}.suggestion strong{font-size:13px}.suggestion small{font-size:12px}
/* The phone canvas uses full iOS point sizes and 44px minimum touch targets. */
.phone-screen .mobile-header{height:58px;padding:0 15px}.phone-screen .mobile-actions{gap:0}.phone-screen .icon-button{width:44px;height:44px}.phone-screen .mobile-profile{width:44px;height:44px;border:7px solid var(--app-bg);background:#ded7ca;background-clip:content-box;font-size:12px}.phone-screen .featured-bot{min-height:100px}.phone-screen .featured-bot span{font-size:12px;line-height:18px}.phone-screen .mobile-bot{min-height:68px}.phone-screen .mobile-bot .bot-name{font-size:14px;line-height:20px}.phone-screen .mobile-bot .bot-preview{font-size:12px;line-height:18px}.phone-screen .mobile-bot .bot-time{font-size:12px;align-self:center;margin-top:0}.phone-screen .mobile-chat-header{height:56px;grid-template-columns:48px minmax(0,1fr) 48px}.phone-screen .mobile-chat-title{font-size:14px}.phone-screen .day-label{font-size:12px}.phone-screen .message-bubble{font-size:14px;line-height:1.55;padding:10px 12px}.phone-screen .attachment-copy strong{font-size:12px}.phone-screen .attachment-copy small{font-size:12px}.phone-screen .attachment .icon-button{width:44px;height:44px;margin-left:0}.phone-screen .composer{height:52px}.phone-screen .composer .icon-button,.phone-screen .send-button{width:44px;height:44px}.phone-screen .composer input{font-size:16px;height:44px}.phone-screen .composer-wrap{padding-bottom:calc(28px + env(safe-area-inset-bottom))}.phone-screen .avatar-mode-switch button{min-height:44px;font-size:12px}.phone-screen .group-avatar-picker{grid-template-columns:repeat(5,44px);gap:8px}.phone-screen .group-avatar-choice{width:44px;height:44px}.phone-screen .create-form label{font-size:12px}.phone-screen .create-form input{height:44px;font-size:16px}.phone-screen .primary-button{min-height:48px;font-size:14px}.phone-screen .color-picker{display:grid;grid-template-columns:repeat(5,44px);gap:8px}.phone-screen .color-swatch{width:44px;height:44px;background:transparent}.phone-screen .color-swatch:before{content:"";position:absolute;inset:14px;border-radius:50%;background:var(--swatch)}.phone-screen .color-swatch.selected:after{inset:9px}.phone-screen .shape-picker{display:grid;grid-template-columns:repeat(4,48px);gap:8px}.phone-screen .shape-choice{width:48px;height:48px}.phone-screen .shape-choice .bot-avatar{width:30px;height:32px;margin:auto}.phone-screen .create-header{font-size:14px}.phone-screen .sidebar-search input{height:44px;font-size:16px}.phone-screen .mobile-empty,.phone-screen .no-results{font-size:14px}
@media(max-width:760px){.preview-controls{flex-wrap:wrap}.preview-stage{padding:16px 0}.phone-device{width:min(390px,100%);max-height:none;transform:none;margin-bottom:0}.mobile-preview{overflow:hidden}.preview-footer{padding-bottom:env(safe-area-inset-bottom);height:calc(34px + env(safe-area-inset-bottom))}}
@media(max-width:420px){.phone-device{transform:none;margin-bottom:0}.preview-controls{gap:6px}.segment{padding-left:9px;padding-right:9px}}

.phone-screen .inline-link{min-height:44px;display:inline-flex;align-items:center;vertical-align:middle}
@media(max-width:760px){.preview-controls .segment{min-height:44px}.theme-toggle,.language-toggle{height:44px}.theme-toggle{width:44px}}

@media(max-width:760px){.preview-footer{font-size:12px;min-height:40px;height:auto;padding:8px 12px calc(8px + env(safe-area-inset-bottom));flex-wrap:wrap}}


/* Transparent portrait assets: no plate, crop, or circular backdrop. */
.image-avatar{overflow:visible;background:transparent;border:0;border-radius:0}
.image-avatar img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 5px #00000014)}
.create-avatar.image-avatar{width:74px;height:74px;border-radius:0;box-shadow:none}
.group-avatar-choice{position:relative;width:44px;height:44px;padding:1px;border:0;border-radius:10px;background:transparent;opacity:.76}
.group-avatar-choice img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #00000012)}
.group-avatar-choice:hover{background:transparent;opacity:1;transform:translateY(-2px)}
.group-avatar-choice.selected{border:0;background:transparent;opacity:1;transform:translateY(-2px)}
.group-avatar-choice.selected:after{content:"";position:absolute;inset:-3px;border:1.5px solid var(--app-ink);border-radius:12px;pointer-events:none}

/* Premium, quiet authentication — shared desktop and iPhone components. */
.desktop-app.login-active{grid-template-columns:1fr}
.login-screen{background:var(--app-bg);color:var(--app-ink)}
.desktop-login{grid-column:1/-1;min-height:0;display:grid;grid-template-columns:minmax(340px,.88fr) minmax(440px,1.12fr)}
.login-brand-panel{min-width:0;overflow:hidden;background:var(--sidebar);padding:34px 38px 28px;display:flex;flex-direction:column}
.login-brand,.mobile-login-brand{display:flex;align-items:center;gap:10px}
.login-brand strong,.mobile-login-brand strong{font-size:15px;letter-spacing:-.25px}
.login-brand-content{margin:auto 0;max-width:430px}
.login-art{height:170px;display:flex;align-items:center;margin:0 0 32px -8px}
.login-art img{display:block;width:138px;height:138px;object-fit:contain;filter:drop-shadow(0 12px 12px #00000012)}
.login-art img+img{margin-left:-30px}
.login-art img:nth-child(1){transform:translateY(13px) rotate(-5deg)}
.login-art img:nth-child(2){transform:translateY(-13px) rotate(4deg);z-index:1}
.login-art img:nth-child(3){transform:translateY(17px) rotate(3deg)}
.login-brand-content h2{max-width:390px;margin:0;font-size:34px;line-height:1.28;letter-spacing:-1.15px;font-weight:650}
.login-brand-content>p{max-width:350px;margin:16px 0 0;color:var(--app-muted);font-size:14px;line-height:1.8}
.login-privacy{margin:0;color:var(--app-faint);font-size:12px;line-height:1.6}
.login-form-panel{min-width:0;display:grid;place-items:center;padding:38px 44px;overflow:auto}
.login-form{width:min(360px,100%);margin:auto}
.login-heading h1{margin:0;font-size:30px;line-height:1.25;letter-spacing:-.8px;font-weight:650}
.login-heading p{margin:11px 0 0;color:var(--app-muted);font-size:13px;line-height:1.7}
.login-tabs{display:flex;gap:28px;border-bottom:1px solid var(--app-line);margin:30px 0 25px}
.login-tabs button{position:relative;height:44px;padding:0;border:0;background:transparent;color:var(--app-muted);font-size:13px;font-weight:550;white-space:nowrap}
.login-tabs button:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:transparent;transform:scaleX(.4);transition:transform .2s ease,background .2s ease}
.login-tabs button.active{color:var(--app-ink)}
.login-tabs button.active:after{background:var(--app-ink);transform:scaleX(1)}
.login-field{margin-top:18px}
.login-field label{display:block;margin-bottom:8px;color:var(--app-muted);font-size:12px;line-height:16px}
.login-control{height:50px;display:flex;align-items:center;border:1px solid var(--app-line);border-radius:10px;background:transparent;transition:border-color .2s ease,box-shadow .2s ease}
.login-control:focus-within{border-color:var(--app-muted);box-shadow:0 0 0 3px var(--bubble)}
.login-control input{min-width:0;flex:1;height:100%;border:0;outline:0;background:transparent;color:var(--app-ink);padding:0 14px;font-size:14px;line-height:1.4}
.login-control input::placeholder{color:var(--app-faint)}
.phone-control .country-code{flex:none;padding:0 14px;color:var(--app-ink);font-size:14px;border-right:1px solid var(--app-line)}
.code-button{flex:none;min-width:108px;height:44px;padding:0 13px;border:0;background:transparent;color:var(--app-ink);font-size:12px;white-space:nowrap}
.code-button:disabled{cursor:default;color:var(--app-faint)}
.password-toggle{flex:none;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--app-muted);display:grid;place-items:center}
.password-toggle svg{stroke-width:1.6}
.login-message{min-height:18px;margin:10px 0 0;color:var(--app-muted);font-size:12px;line-height:1.5}
.login-message.error{color:#c73f50}
.dark .login-message.error{color:#ff939e}
.login-submit{width:100%;height:48px;margin-top:12px;border:0;border-radius:10px;background:var(--black);color:var(--white);font-size:14px;font-weight:600;transition:opacity .2s ease,transform .2s ease}
.dark .login-submit{color:#171716}
.login-submit:hover{opacity:.88}
.login-submit:active{transform:scale(.99)}
.auto-create{margin:13px 0 0;text-align:center;color:var(--app-muted);font-size:12px;line-height:1.6}
.login-agreement{margin:24px 0 0;text-align:center;color:var(--app-faint);font-size:12px;line-height:1.7}

.mobile-login{height:100%;min-height:0}
.mobile-login-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:25px 24px calc(30px + env(safe-area-inset-bottom));scrollbar-width:none}
.mobile-login-scroll::-webkit-scrollbar{display:none}
.mobile-login-brand{margin-bottom:42px}
.mobile-login-brand .brand-mark{width:28px;height:28px;border-radius:9px}
.mobile-login-brand strong{font-size:16px}
.mobile-login .login-heading h1{font-size:28px;letter-spacing:-.7px}
.mobile-login .login-heading p{font-size:14px;line-height:1.65}
.mobile-login .login-tabs{gap:0;margin:27px 0 23px}
.mobile-login .login-tabs button{flex:1;font-size:14px;text-align:left}
.mobile-login .login-tabs button+button{text-align:right}
.mobile-login .login-field{margin-top:19px}
.mobile-login .login-field label{font-size:12px}
.mobile-login .login-control{height:52px;border-radius:11px}
.mobile-login .login-control input{font-size:16px;padding:0 13px}
.mobile-login .phone-control .country-code{font-size:16px;padding:0 13px}
.mobile-login .code-button{min-width:112px;height:44px;font-size:12px;padding:0 11px}
.mobile-login .password-toggle{width:44px;height:44px}
.mobile-login .login-message{font-size:12px;margin-top:10px}
.mobile-login .login-submit{height:50px;font-size:16px;margin-top:12px}
.mobile-login .auto-create,.mobile-login .login-agreement{font-size:12px}
.mobile-login .login-agreement{margin-top:23px}
.mobile-login .login-privacy{text-align:center;margin-top:28px}

@media(max-width:1120px){.desktop-login{grid-template-columns:minmax(320px,.82fr) minmax(410px,1.18fr)}.login-brand-panel{padding-left:30px;padding-right:30px}.login-art img{width:120px;height:120px}.login-brand-content h2{font-size:30px}}
@media(max-width:420px){.preview-controls{min-width:0}.scene-switch{order:5;width:100%}.scene-switch .segment{flex:1}.segmented{max-width:100%}.mobile-login-scroll{padding-left:22px;padding-right:22px}}


/* Reference-led login composition and full-group transparent artwork. */
.login-art{height:auto;min-height:190px;width:100%;display:block;margin:0 0 32px}
.login-art .login-group-art{display:block;width:100%;height:auto;max-height:250px;object-fit:contain;margin:0;transform:none;filter:drop-shadow(0 12px 14px #00000012)}
.mobile-login{--entry-secondary:#ececea;--entry-secondary-ink:#1c1c1b;--entry-help:#6f6f6b;--entry-hero-a:#FAF8F2;--entry-hero-b:#E5EBDF;--entry-hero-c:#CFD8C8;--entry-primary:#CFD8C8;--entry-primary-ink:#183D2B;--entry-hero-ink:#183D2B;background:var(--app-bg)}
.app-theme.dark .mobile-login{--entry-secondary:#2b2b2b;--entry-secondary-ink:#f5f5f3;--entry-help:#a6a6a1;--entry-hero-a:#183D2B;--entry-hero-b:#122E20;--entry-hero-c:#0E2118;--entry-hero-ink:#FAF8F2}
.mobile-login .dynamic-island{display:none}
.mobile-login .phone-status{color:var(--entry-hero-ink);text-shadow:none}
.mobile-entry-hero,.mobile-form-hero{position:relative;flex:none;overflow:hidden;background:radial-gradient(circle at 12% 0%,var(--entry-hero-a) 0%,transparent 55%),linear-gradient(145deg,var(--entry-hero-a) 0%,var(--entry-hero-b) 52%,var(--entry-hero-c) 100%)}
.mobile-entry-hero{height:47%;min-height:250px;border-radius:0 0 50px 50px}
.reference-glyph{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);display:flex;gap:38px;align-items:center;justify-content:center}
.reference-glyph i{display:block;width:48px;height:112px;border-radius:30px;background:var(--entry-hero-ink);transform:rotate(-12deg)}
.mobile-entry-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:36px 26px calc(25px + env(safe-area-inset-bottom));display:flex;flex-direction:column;background:var(--app-bg)}
.mobile-entry-copy h1{margin:0;font-size:30px;line-height:1.25;letter-spacing:-.9px;font-weight:700;white-space:nowrap}
.mobile-entry-copy p{margin:13px 0 0;color:var(--app-muted);font-size:14px;line-height:1.6}
.mobile-entry-actions{margin-top:auto;padding-top:32px}
.mobile-entry-primary,.mobile-entry-secondary{width:100%;height:56px;border:0;border-radius:17px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:650;line-height:1.35}
.mobile-entry-primary{gap:10px;background:var(--entry-primary);color:var(--entry-primary-ink)}
.mobile-entry-primary svg{flex:none;stroke-width:1.7}
.mobile-entry-secondary{margin-top:12px;background:var(--entry-secondary);color:var(--entry-secondary-ink)}
.mobile-entry-primary:active,.mobile-entry-secondary:active{transform:scale(.99)}
.mobile-entry-help{min-height:44px;margin:15px auto 0;padding:0 12px;border:0;background:transparent;color:var(--entry-help);font-size:12px;display:flex;align-items:center;justify-content:center;gap:5px}
.mobile-entry-help svg{stroke-width:1.7}
html[lang="en"] .mobile-entry-copy h1{white-space:normal;max-width:320px;font-size:32px;line-height:1.15}
html[lang="en"] .mobile-entry-primary,html[lang="en"] .mobile-entry-secondary{font-size:14px}

.mobile-login-form-view{background:var(--app-bg)}
.mobile-form-hero{height:148px;border-radius:0 0 36px 36px}
.mobile-form-hero-bottom{height:76px;position:relative;display:flex;align-items:center;justify-content:center;padding:0 16px 12px}
.reference-glyph.small{gap:9px}
.reference-glyph.small i{width:13px;height:32px;border-radius:9px}
.mobile-form-hero-bottom .reference-glyph.small{top:auto;bottom:17px;transform:translateX(-50%)}
.mobile-login-form-view .mobile-login-scroll{padding:24px 24px calc(30px + env(safe-area-inset-bottom))}
.mobile-login-form-view .login-form{width:100%}
.mobile-login-form-view .login-heading h1{font-size:28px}
.mobile-login-form-view .login-heading p{font-size:14px}
.mobile-login-form-view .login-privacy{text-align:center;margin-top:28px}

@media(max-width:1120px){.login-art .login-group-art{width:100%;height:auto;max-height:220px}.login-art{min-height:170px}}
@media(max-height:760px){.mobile-entry-content{padding-top:26px}.mobile-entry-copy h1{font-size:28px}.mobile-entry-actions{padding-top:24px}.mobile-entry-hero{min-height:235px}}

/* Brand light gray-green carries the action in both theme modes. */
.mobile-login-form-view .login-submit,.app-theme.dark .mobile-login-form-view .login-submit{background:var(--entry-primary);color:var(--entry-primary-ink)}
