:root{--blue-950: #002f72;--blue-900: #053f91;--blue-800: #0a4aa3;--blue-100: #e8f2ff;--blue-050: #f6f9fe;--lime: #bfe23a;--text: #122033;--muted: #7f8aa1;--line: #dfe6f1;--panel: #ffffff;--shadow: 0 18px 42px rgba(4, 42, 92, .12);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;background:#edf3fb;letter-spacing:0;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html{min-width:320px;min-height:100%}body{margin:0;min-width:320px;min-height:100vh;min-height:100dvh;-webkit-font-smoothing:antialiased;background:radial-gradient(circle at 50% 12%,rgba(255,255,255,.96),rgba(244,248,253,.78) 34%,transparent 58%),linear-gradient(180deg,#edf3fb,#f8fbff)}button,input{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;min-height:100dvh;display:flex;justify-content:center;background:#eef4fb}.phone-canvas{position:relative;width:min(100vw,430px);height:100vh;height:100dvh;min-height:720px;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(circle at 50% 33%,rgba(228,241,255,.72),transparent 34%),linear-gradient(180deg,#fff,#f8fbff 55%,#fff);box-shadow:0 0 0 1px #053f9114}.app-header{position:relative;flex:0 0 auto;min-height:112px;padding:20px 14px 18px;color:#fff;background:radial-gradient(circle at 12% -10%,rgba(34,106,200,.75),transparent 36%),linear-gradient(118deg,#003579,#00479c 52%,#06367f)}.header-main{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.app-header:after{position:absolute;left:0;right:0;bottom:0;height:4px;content:"";background:var(--lime)}.brand-block{display:flex;align-items:center;gap:10px;min-width:0}.brand-logo{width:42px;height:58px;object-fit:contain;flex:0 0 auto}.brand-text{min-width:0}.brand-block h1{margin:0;font-size:clamp(19px,4.8vw,23px);line-height:1.06;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-block p{margin:8px 0 0;display:flex;align-items:center;gap:8px;color:#fffffff0;font-size:12px;white-space:nowrap}.brand-block p span{width:11px;height:11px;border-radius:999px;background:var(--lime);box-shadow:0 0 12px #bfe23a94}.header-actions{display:flex;align-items:center;gap:6px}.header-actions button{width:44px;padding:0;color:#fff;border:0;background:transparent;display:grid;gap:5px;justify-items:center;font-size:10px;white-space:nowrap}.header-actions svg{width:23px;height:23px}.messages{flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 14px 14px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none}.messages::-webkit-scrollbar{display:none}.message-row{display:flex;gap:11px;margin-bottom:16px}.message-row.user{justify-content:flex-end;margin-top:22px}.message-row.user>div{max-width:min(70%,300px)}.message-row time{display:block;margin-top:7px;color:var(--muted);font-size:13px}.message-row.user time{text-align:right}.message-row.user time span{margin-left:8px;color:#2296ff;font-weight:700}.logo-bubble{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:999px;background:var(--blue-900);box-shadow:0 8px 20px #053f9133}.logo-bubble img{width:27px;height:32px;object-fit:contain}.assistant-card{width:min(100%,calc(100vw - 76px),326px);padding:16px;border:1px solid rgba(223,230,241,.92);border-radius:16px;background:#ffffffed;box-shadow:var(--shadow)}.welcome-card p{margin:0;color:#162238;font-size:14px;line-height:1.58}.welcome-card hr{margin:13px 0;border:0;border-top:1px solid var(--line)}.welcome-card ul{margin:10px 0 0;padding:0 0 0 18px}.welcome-card li{margin:7px 0;padding-left:6px;color:#152239;font-size:13px;line-height:1.48}.welcome-card li::marker{color:var(--blue-900)}.user-bubble{margin:0;padding:14px 16px;border-radius:15px;color:#102039;font-size:14px;line-height:1.55;background:linear-gradient(135deg,#eef7ff,#dcecff);box-shadow:0 10px 24px #2b77d624}.typing-row{align-items:center}.typing-card{width:min(100%,246px);min-width:0;padding:14px 15px;display:flex;align-items:center;gap:8px;border:1px solid rgba(223,230,241,.9);border-radius:13px;background:#fffffff5;box-shadow:0 13px 30px #042a5c1a}.typing-card strong{margin-left:8px;color:#24314a;font-size:14px;font-weight:500;white-space:nowrap}.typing-card time{margin:0 0 0 auto;font-size:12px}.dot{width:8px;height:8px;border-radius:999px;background:#c5d2e4;flex:0 0 auto}.dot.active{background:var(--blue-900);animation:pulse 1.2s infinite ease-in-out}.dot.delay{animation-delay:.18s}@keyframes pulse{0%,to{transform:translateY(0);opacity:.72}50%{transform:translateY(-3px);opacity:1}}.result-card h2{margin:0 0 10px;color:var(--blue-900);font-size:16px}.answer-meta{margin-bottom:8px;display:flex;align-items:center}.answer-meta span{padding:4px 8px;border:1px solid rgba(191,226,58,.48);border-radius:999px;color:var(--blue-900);background:#bfe23a29;font-size:11px;font-weight:700}.result-card p{margin:0;font-size:14px;line-height:1.66}.result-grid{margin:16px 0;display:grid;grid-template-columns:72px 1fr;gap:8px 12px;font-size:13px}.result-grid span{color:var(--muted)}.result-grid strong{color:#1d2a40;font-weight:650}.citation-button{width:100%;min-height:38px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border:1px solid rgba(10,74,163,.18);border-radius:11px;color:var(--blue-900);background:#f7fbff;font-size:13px;font-weight:700}.risk-note{margin-top:12px!important;color:#6e5c10;font-size:12px!important}.quick-panel{flex:0 0 auto;padding:12px 16px;border-radius:20px 20px 0 0;border-top:1px solid rgba(223,230,241,.9);background:#fffffff5;box-shadow:0 -12px 38px #12203314;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.quick-toggle{width:100%;min-height:30px;display:flex;align-items:center;justify-content:space-between;border:0;color:var(--blue-900);background:transparent;font-size:16px;font-weight:800}.quick-toggle svg{transition:transform .18s ease}.quick-panel.expanded .quick-toggle svg{transform:rotate(180deg)}.quick-refresh{position:absolute;right:18px;top:17px;display:inline-flex;align-items:center;gap:5px;border:0;color:var(--blue-900);background:transparent;font-size:13px;font-weight:700}.quick-row{margin-top:13px;display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding-bottom:2px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.quick-row::-webkit-scrollbar{display:none}.quick-row button{flex:0 0 auto;min-height:38px;max-width:178px;padding:0 10px 0 12px;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #bed0ee;border-radius:12px;color:var(--blue-900);background:#fff;font-size:12px;font-weight:650;text-align:left}.quick-row span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.quick-row svg{flex:0 0 auto}.composer-wrap{flex:0 0 auto;padding:0 12px max(10px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#fff0,#fff 20%)}.composer{min-height:56px;padding:8px 9px;display:grid;grid-template-columns:40px minmax(0,1fr) 40px 46px;gap:7px;align-items:center;border:1px solid rgba(223,230,241,.9);border-radius:24px;background:#fffffff5;box-shadow:0 8px 28px #042a5c1a}.composer input{width:100%;min-width:0;height:42px;padding:0 12px;color:var(--text);border:1px solid rgba(223,230,241,.95);border-radius:18px;outline:none;font-size:14px;background:#fff}.composer input:focus{border-color:#053f9170;box-shadow:0 0 0 3px #053f9114}.icon-button{width:40px;height:40px;display:grid;place-items:center;border-radius:999px;border:0;color:var(--blue-900);background:#fff}.icon-button svg{width:23px;height:23px}.icon-button.ghost,.icon-button.mic{border:1px solid #d7e1f1}.icon-button.mic.active{color:#fff;background:#d34949}.icon-button.send{width:46px;height:46px;color:#fff;background:var(--blue-900);box-shadow:0 8px 18px #053f913d;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.icon-button.send:hover{background:#074aa7;box-shadow:0 10px 22px #053f914d}.icon-button.send:active{transform:scale(.94) translateY(1px);box-shadow:0 5px 12px #053f9138}.icon-button.send.sending{animation:send-pulse .9s infinite ease-in-out}@keyframes send-pulse{0%,to{transform:scale(1)}50%{transform:scale(.92)}}.disclaimer{margin:8px 0 0;display:flex;align-items:center;justify-content:center;gap:7px;color:#7f8899;font-size:11px;line-height:1.35;text-align:center}.disclaimer svg{flex:0 0 auto}.attachment-pill,.recording-pill{width:fit-content;max-width:calc(100% - 24px);margin:0 auto 8px;padding:8px 12px;display:flex;align-items:center;gap:8px;line-height:1.35;text-align:center;box-shadow:0 8px 20px #042a5c14}.attachment-pill{color:var(--blue-900);border:1px solid #c8d7ef;border-radius:999px;background:#f7fbff;font-size:12px}.recording-pill{color:#8f2d2d;border:1px solid #f1c2c2;border-radius:999px;background:#fff6f6;font-size:12px}.recording-pill span{width:8px;height:8px;border-radius:999px;background:#d34949;animation:pulse 1.1s infinite;flex:0 0 auto}.drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;justify-content:center;align-items:flex-end;background:#08162957}.drawer{width:min(100vw,430px);padding:10px 18px 24px;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -22px 46px #042a5c33}.drawer-handle{width:42px;height:4px;margin:0 auto 16px;border-radius:999px;background:#d8e1ee}.drawer header{display:flex;align-items:center;justify-content:space-between}.drawer h2{margin:0;color:var(--blue-900);font-size:18px}.drawer header button{width:36px;height:36px;border:0;border-radius:999px;color:#617089;background:#f4f7fb}.drawer-list{margin:18px 0 0;padding:0;list-style:none}.drawer-list li{min-height:50px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);color:#1d2a40;font-size:14px}.drawer-copy{margin:18px 0;color:#526071;font-size:14px;line-height:1.7}.drawer-primary{width:100%;height:46px;border:0;border-radius:14px;color:#fff;background:var(--blue-900);font-weight:700}@media(max-width:380px){.app-header{padding-left:12px;padding-right:12px}.brand-logo{width:42px;height:58px}.brand-block{gap:9px}.brand-block h1{font-size:19px}.brand-block p{font-size:13px}.header-actions{gap:6px}.header-actions button{width:40px;font-size:11px}.header-actions svg{width:24px;height:24px}.quick-refresh{right:16px}}@media(min-width:431px){.phone-canvas{height:min(932px,calc(100vh - 40px));height:min(932px,calc(100dvh - 40px));min-height:844px;margin:20px 0;border-radius:30px}}
