body{background:#eef2f8}.chat-shell{max-width:660px;margin:auto;background:#f9fbff;height:100dvh;min-height:400px;display:flex;flex-direction:column;position:relative}.chat-shell>.loading{padding:40px 24px}#chat-app{flex:1;min-height:0;display:flex;flex-direction:column}#inbox-screen,#thread-screen{display:flex;flex:1;min-height:0;flex-direction:column}#chat-guest{padding:28px 24px;overflow:auto}#chat-guest h1{margin-top:50px}#chat-guest p{color:#718096}.chat-top{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 4px}.mini-brand{font-size:13px;letter-spacing:.18em;color:#b72238;font-weight:800}.inbox-title{display:flex;align-items:center;justify-content:space-between;padding:15px 22px 20px}.inbox-title h1{margin:0;font-size:36px}.round.blue{color:white;background:#285295;border-color:#285295}.inbox-scroll{overflow:auto;flex:1;padding:0 20px 20px}.my-code{background:#edf2fb;border:1px solid #dae3f0;border-radius:20px;padding:15px 16px;margin-bottom:22px}summary{cursor:pointer;font-size:14px;font-weight:650;list-style:none}summary::-webkit-details-marker{display:none}.my-code summary{display:flex;align-items:center;justify-content:space-between;gap:8px}.my-code summary span{font-size:11px;color:#285295}.my-code p{font-size:12px;color:#697a94;margin:14px 0 10px}#my-code{font-family:monospace;letter-spacing:.1em;font-size:18px;min-height:48px}.code-actions{display:flex;gap:8px;margin-top:10px}.code-actions button,.inline-form button{background:white;border:1px solid #cbd6e8;border-radius:12px;padding:10px 12px;color:#285295;font-size:12px;min-height:42px}.code-actions button{flex:1}.inline-form{display:flex;gap:8px}.inline-form input{min-width:0;min-height:44px}.connect-panel{background:white;border:1px solid #ccd8ea;border-radius:22px;padding:18px;margin-bottom:22px}.panel-title{display:flex;align-items:center;justify-content:space-between}.panel-title h2{margin:0;font-size:19px}.panel-title button,#remove-file{border:0;background:transparent;font-size:27px;color:#65738a;min-width:36px;min-height:36px}.connect-panel label{margin-top:16px}.small{font-size:11px;color:#728098;margin:14px 0 0}.thread-list{border-radius:20px;overflow:hidden;background:white}.thread-row{width:100%;border:0;border-bottom:1px solid #edf0f7;background:white;display:flex;gap:12px;padding:17px 12px;text-align:left;align-items:center;color:#18233d}.thread-row:last-child{border-bottom:0}.thread-row:active{background:#edf2fb}.peer-avatar{width:46px;height:46px;background:#e6edf9;border:1px solid #d8e3f6;display:grid;place-items:center;color:#285295;border-radius:50%;font-weight:700;font-size:20px;flex-shrink:0}.thread-info{min-width:0;flex:1}.thread-info b,.thread-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-info b{font-size:16px}.thread-info small{font-size:13px;color:#7a879a;margin-top:3px}.thread-meta{font-size:10px;color:#8b96a9;text-align:right;align-self:flex-start;padding-top:3px}.badge{display:block;width:23px;height:23px;background:#be253b;border-radius:50%;color:white;margin:7px 0 0 auto;text-align:center;line-height:23px;font-size:11px}.empty{padding:30px 8px;text-align:center;color:#718199;font-size:13px}.empty h2{color:#233d68;font-size:19px}.empty p{max-width:310px;margin:10px auto 20px}.empty-symbol{width:66px;height:66px;background:#e7effb;border-radius:23px;display:grid;place-items:center;margin:auto;color:#285295}.empty-symbol svg{width:32px;height:32px}.empty .button{max-width:260px;margin:18px auto}.test-guide{font-size:12px;color:#748098;margin:25px 8px 10px}.test-guide summary{font-size:12px}.test-guide li{padding:4px 0}.test-guide p{margin-top:15px}.chat-dock{display:flex;flex-shrink:0;gap:4px;background:#fff;border-top:1px solid #e1e7f1;padding:8px 12px calc(10px + env(safe-area-inset-bottom))}.chat-dock a{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;font-weight:650;color:#6c7f9d;gap:4px;min-height:55px;border-radius:23px}.chat-dock a[aria-current]{background:#e9eff9;color:#285295}.thread-header{display:flex;align-items:center;gap:10px;padding:14px 14px 12px;background:#fff;border-bottom:1px solid #e4eaf3}.thread-header .round{border:0;background:transparent;flex-shrink:0}.thread-header .peer-avatar{width:40px;height:40px;font-size:17px}.peer-title{min-width:0;flex:1}.peer-title h1{font-size:18px;letter-spacing:-.2px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.peer-title small{font-size:10px;color:#8491a7}#thread-options{background:white;border-bottom:1px solid #e3e8f1;padding:12px 20px}#thread-options button{border:0;color:#ae2239;background:#fceef1;border-radius:10px;padding:10px 18px}#thread-options p{font-size:11px;color:#7a879b;margin:10px 0 0}#blocked-note{font-size:12px;padding:10px 20px;background:#fff0e6;color:#8c4b2d}#message-scroll{flex:1;min-height:0;overflow:auto;padding:20px 16px;overscroll-behavior:contain;scrollbar-width:thin}#message-list{display:flex;flex-direction:column;gap:12px}.message{max-width:86%;align-self:flex-start;background:white;border:1px solid #e2e8f1;border-radius:18px 18px 18px 5px;padding:10px 12px;overflow-wrap:anywhere;box-shadow:0 2px 4px #18233d03}.message.mine{align-self:flex-end;background:#285295;color:white;border:0;border-radius:18px 18px 5px 18px}.message .body{font-size:15px;white-space:pre-wrap;line-height:1.45}.message .stamp{font-size:9px;opacity:.65;text-align:right;margin-top:6px}.message img,.message video{max-width:100%;max-height:290px;display:block;border-radius:10px;min-width:130px}.message .body:not(:first-child){margin-top:9px}.media-missing{font-size:12px;opacity:.7}.older{display:block;margin:0 auto 18px;padding:8px 16px;border:1px solid #dce4f0;border-radius:14px;color:#285295;background:white;font-size:12px}#message-form{background:#fff;padding:10px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e2e8f1;flex-shrink:0}.composer{display:flex;align-items:flex-end;gap:8px}.composer textarea{min-width:0;flex:1;border:1px solid #dce3ee;border-radius:22px;font:inherit;font-size:16px;padding:11px 14px;resize:none;max-height:110px;line-height:1.4;color:#18233d;background:#f8faff}.composer .round{flex-shrink:0;width:42px;height:44px;border:0}.composer .send{background:#c4263a;color:#fff}.composer .round svg{width:23px;height:23px}.media-hint{display:block;margin:6px 0 0 50px;font-size:9px;color:#8a97ac}#file-preview{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#edf2fb;border-radius:12px;padding:4px 10px;margin-bottom:8px}#file-label{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#chat-status{flex-shrink:0;margin:0;font-size:12px;padding:0 18px;color:#285295;background:#f9fbff;overflow-wrap:anywhere}#chat-status:not(:empty){padding-top:8px;padding-bottom:10px}#chat-status.error{color:#a3253a}#chat-retry{margin:0 20px 20px;width:calc(100% - 40px)}@media(max-width:350px){.thread-header{gap:4px;padding:10px 6px}.peer-title h1{font-size:16px}.inbox-scroll{padding:0 14px 16px}.chat-top{padding-left:16px;padding-right:16px}.inbox-title{padding-left:16px;padding-right:16px}#message-form{padding-left:7px;padding-right:7px}.composer{gap:4px}.composer .round{width:37px}.message{max-width:90%}}