:root{--page-bg:#e5e8ec;--app-bg:#fff;--app-shadow:rgba(0,0,0,.08);--header-bg:#0068ff;--header-fg:#fff;--messages-bg:#ebecf0;--search-bar-bg:#f4f5f7;--search-bar-fg:#6b7280;--search-bar-border:#e2e5e9;--bubble-user-bg:#dbebff;--bubble-user-fg:#05132b;--bubble-bot-bg:#fff;--bubble-bot-fg:#1a1a1a;--bubble-bot-shadow:rgba(0,0,0,.06);--msg-time-fg:#8a8f98;--composer-bg:#fff;--composer-border:#e2e5e9;--input-bg:#f0f2f5;--input-fg:#1a1a1a;--icon-btn-fg:#0068ff;--icon-btn-hover-bg:#f0f4ff;--icon-btn-disabled-fg:#b7c4d6;--send-btn-disabled-bg:#c6d4ef;--preview-remove-bg:#444;--typing-dot-bg:#9aa4b1;--verdict-fraud-bg:#fdecea;--verdict-fraud-fg:#d1342b;--verdict-safe-bg:#e7f6ec;--verdict-safe-fg:#17843f;--verdict-unsure-bg:#fef3e0;--verdict-unsure-fg:#b3720a;--tip-btn-bg:#fff8e6;--tip-btn-fg:#92650a;--tip-btn-border:#f0dfa8}@media (prefers-color-scheme:dark){:root{--page-bg:#0b0e12;--app-bg:#15191f;--app-shadow:rgba(0,0,0,.4);--header-bg:#0a4fc4;--header-fg:#fff;--messages-bg:#101318;--search-bar-bg:#1b2028;--search-bar-fg:#9aa4b1;--search-bar-border:#262c36;--bubble-user-bg:#17395e;--bubble-user-fg:#eaf2ff;--bubble-bot-bg:#1e232b;--bubble-bot-fg:#e7e9ec;--bubble-bot-shadow:rgba(0,0,0,.3);--msg-time-fg:#6b7280;--composer-bg:#15191f;--composer-border:#262c36;--input-bg:#1e232b;--input-fg:#e7e9ec;--icon-btn-fg:#5b9bff;--icon-btn-hover-bg:#1b2740;--icon-btn-disabled-fg:#3a4250;--send-btn-disabled-bg:#23324d;--preview-remove-bg:#3a3f47;--typing-dot-bg:#5b6472;--verdict-fraud-bg:#3a1a18;--verdict-fraud-fg:#ff6b60;--verdict-safe-bg:#163625;--verdict-safe-fg:#4ade80;--verdict-unsure-bg:#3a2c10;--verdict-unsure-fg:#fbbf24;--tip-btn-bg:#2b2412;--tip-btn-fg:#f2c94c;--tip-btn-border:#4a3d1a}}*{box-sizing:border-box}body,html{margin:0;padding:0;height:100%;background:var(--page-bg);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.app{max-width:480px;margin:0 auto;height:100dvh;display:flex;flex-direction:column;background:var(--app-bg);box-shadow:0 0 24px var(--app-shadow)}.header{background:var(--header-bg);color:var(--header-fg);padding:8px 10px;gap:8px}.header,.header-icon{display:flex;align-items:center;flex-shrink:0}.header-icon{width:30px;height:30px;justify-content:center;font-size:18px;cursor:pointer;border-radius:50%}.header-icon:hover{background:hsla(0,0%,100%,.14)}.header-actions{margin-left:auto;gap:2px}.avatar,.header-actions{display:flex;align-items:center}.avatar{width:36px;height:36px;border-radius:50%;background:#fff;color:#0068ff;justify-content:center;flex-shrink:0}.header-info{display:flex;flex-direction:column;line-height:1.3;min-width:0}.header-name{font-weight:600;font-size:15px;display:flex;align-items:center;gap:4px}.verified{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background:#ffd21f;color:#0068ff;font-size:9px;font-weight:900}.header-sub{font-size:12px;opacity:.85}.header-search-input{flex:1 1;border:none;outline:none;background:hsla(0,0%,100%,.18);color:#fff;border-radius:8px;padding:7px 12px;font-size:14.5px}.header-search-input::placeholder{color:hsla(0,0%,100%,.75)}.search-result-count{flex-shrink:0;padding:6px 12px;font-size:12px;color:var(--search-bar-fg);background:var(--search-bar-bg);border-bottom:1px solid var(--search-bar-border)}.messages{flex:1 1;overflow-y:auto;padding:14px 10px;display:flex;flex-direction:column;gap:10px;background:var(--messages-bg)}.row{display:flex;gap:8px;max-width:88%}.row.user{align-self:flex-end;flex-direction:row-reverse}.row.bot{align-self:flex-start}.bubble-avatar{width:28px;height:28px;border-radius:50%;background:#0068ff;color:#fff;flex-shrink:0;display:flex;align-items:center;justify-content:center}.bubble-avatar svg{width:15px;height:15px}.bubble-col{display:flex;flex-direction:column;min-width:0}.row.user .bubble-col{align-items:flex-end}.bubble{padding:8px 12px;border-radius:18px;font-size:14.5px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.row.user .bubble{background:var(--bubble-user-bg);color:var(--bubble-user-fg);border-bottom-right-radius:4px}.row.bot .bubble{background:var(--bubble-bot-bg);color:var(--bubble-bot-fg);border-bottom-left-radius:4px;box-shadow:0 1px 1px var(--bubble-bot-shadow)}.msg-time{font-size:11px;color:var(--msg-time-fg);margin:2px 4px 0}.source-tag{gap:4px;font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--search-bar-fg);margin-bottom:5px}.source-tag,.verdict-badge{display:inline-flex;align-items:center}.verdict-badge{gap:5px;font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:999px;margin-bottom:7px}.verdict-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}.verdict-badge-fraud{background:var(--verdict-fraud-bg);color:var(--verdict-fraud-fg)}.verdict-badge-safe{background:var(--verdict-safe-bg);color:var(--verdict-safe-fg)}.verdict-badge-unsure{background:var(--verdict-unsure-bg);color:var(--verdict-unsure-fg)}.bubble img{max-width:220px;border-radius:10px;display:block}.typing{display:flex;gap:4px;padding:4px 2px}.typing span{width:6px;height:6px;border-radius:50%;background:var(--typing-dot-bg);animation:blink 1.2s infinite}.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.3}40%{opacity:1}}.composer{flex-shrink:0;border-top:1px solid var(--composer-border);padding:8px 10px;background:var(--composer-bg)}.tip-btn{width:36px;height:36px;flex-shrink:0;border:1px solid var(--tip-btn-border);background:var(--tip-btn-bg);color:var(--tip-btn-fg);cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center}.tip-btn:hover{filter:brightness(.97)}.tip-btn:disabled{opacity:.6;cursor:default}.preview-row{display:flex;gap:8px;padding:6px 4px;overflow-x:auto}.preview-thumb{position:relative;width:56px;height:56px;flex-shrink:0}.preview-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}.preview-thumb button{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;border:none;background:var(--preview-remove-bg);color:#fff;font-size:11px;line-height:1;cursor:pointer}.input-row{display:flex;align-items:flex-end;gap:6px}.icon-btn{width:36px;height:36px;flex-shrink:0;border:none;background:transparent;color:var(--icon-btn-fg);font-size:20px;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center}.icon-btn:hover{background:var(--icon-btn-hover-bg)}.icon-btn:disabled{color:var(--icon-btn-disabled-fg);cursor:default;background:transparent}textarea.msg-input{flex:1 1;min-width:0;resize:none;border:none;outline:none;background:var(--input-bg);color:var(--input-fg);border-radius:18px;padding:9px 14px;font-size:13.5px;max-height:100px;font-family:inherit}.send-btn{width:36px;height:36px;flex-shrink:0;border:none;border-radius:50%;background:#0068ff;color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center}.send-btn:disabled{background:var(--send-btn-disabled-bg);cursor:default}