:root{--ink: #14201c;--ink-soft: #55645d;--muted: #8a9690;--line: #e4e3da;--canvas: #f6f4ee;--panel: #fffdf8;--teal: #0f766e;--teal-dark: #0b5a54;--teal-soft: #e6f2ef;--amber: #d99a2b;--danger: #b23b2e;--shadow: 0 18px 50px rgba(20, 32, 28, .08)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:Avenir Next,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit;color:inherit}.app{min-height:100%;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:20px clamp(20px,5vw,64px)}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-size:16px;letter-spacing:.02em}.brand-sub{font-size:11px;color:var(--muted);letter-spacing:.16em;text-transform:uppercase}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--teal);color:#f7fbf9;font-weight:700;font-size:13px;letter-spacing:.04em}.brand-mark.large{width:56px;height:56px;font-size:18px;border-radius:16px}.userbox{display:flex;align-items:center;gap:10px}.user-name{font-size:13px;color:var(--ink-soft)}.avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--teal-soft);color:var(--teal-dark);font-size:13px;font-weight:600}.ghost{border:1px solid var(--line);background:transparent;border-radius:999px;padding:7px 14px;cursor:pointer;color:var(--ink-soft)}.ghost:hover{border-color:var(--teal);color:var(--teal)}.home{width:min(1080px,100%);margin:0 auto;padding:24px clamp(20px,5vw,64px) 48px}.hero{margin:24px 0 32px}.eyebrow{color:var(--teal);font-size:13px;letter-spacing:.08em;margin:0 0 10px}.hero h1{margin:0 0 12px;font-size:clamp(30px,4vw,44px);letter-spacing:-.02em}.hero-sub{margin:0;max-width:620px;color:var(--ink-soft);line-height:1.7}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.card{text-align:left;border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:22px;box-shadow:0 1px #fff9}.agent-card{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.agent-card:hover{transform:translateY(-3px);border-color:#0f766e59;box-shadow:var(--shadow)}.agent-card:focus-visible{outline:3px solid rgba(15,118,110,.3);outline-offset:2px}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.agent-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;font-weight:600;font-size:17px;color:#fff}.agent-avatar.small{width:34px;height:34px;border-radius:11px;font-size:14px}.agent-avatar.large{width:64px;height:64px;border-radius:20px;font-size:24px}.tone-0{background:#0f766e}.tone-1{background:#b7791f}.tone-2{background:#2b6cb0}.tone-3{background:#7c5cbf}.tone-4{background:#b25b4a}.status{font-size:11px;padding:4px 9px;border-radius:999px;background:var(--teal-soft);color:var(--teal-dark)}.status.grayscale{background:#fdf1dc;color:#9a6a12}.agent-card h2{margin:0 0 8px;font-size:19px}.agent-card p{margin:0 0 16px;color:var(--ink-soft);line-height:1.65;font-size:14px;min-height:46px}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}.chip{font-size:11px;color:var(--ink-soft);background:#f1efe7;border-radius:999px;padding:4px 9px}.card-cta{display:inline-flex;align-items:center;gap:6px;color:var(--teal);font-size:13px;font-weight:600}.icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.footnote{margin:36px 0 0;text-align:center;color:var(--muted);font-size:12px}.skeleton{height:210px;background:linear-gradient(100deg,#efede5,#f7f5ef,#efede5);background-size:200% 100%;animation:shimmer 1.4s infinite}@keyframes shimmer{to{background-position:-200% 0}}.empty{padding:56px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:20px}.banner{border-radius:12px;padding:12px 16px;font-size:13px;margin-bottom:16px}.banner.error{background:#fbe9e6;color:var(--danger)}.login-page{min-height:100%;display:grid;grid-template-columns:1.05fr .95fr}.login-brand{background:linear-gradient(160deg,#0d3f3a,#0f766e 58%,#149b8f);color:#edf7f4;padding:clamp(36px,6vw,80px);display:flex;flex-direction:column;justify-content:center;gap:18px}.login-brand h1{font-size:clamp(32px,4vw,46px);margin:8px 0 0;letter-spacing:-.02em}.login-brand p{max-width:440px;line-height:1.75;color:#edf7f4c7;margin:0}.login-brand ul{margin:12px 0 0;padding:0;list-style:none;display:grid;gap:10px}.login-brand li{position:relative;padding-left:22px;color:#edf7f4d9;font-size:14px}.login-brand li:before{content:"";position:absolute;left:0;top:7px;width:8px;height:8px;border-radius:50%;background:#f2c66d}.login-panel{display:grid;place-items:center;padding:40px 24px}.login-panel form{width:min(400px,100%);display:grid;gap:16px}.login-panel h2{margin:0;font-size:26px}.muted{color:var(--muted);margin:-8px 0 4px;font-size:13px}.login-panel label{display:grid;gap:6px;font-size:13px;color:var(--ink-soft)}.login-panel input{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:12px 14px;outline:none}.login-panel input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0f766e1f}.primary{border:0;border-radius:12px;padding:13px 16px;background:var(--teal);color:#fff;font-weight:600;cursor:pointer;margin-top:4px}.primary:hover{background:var(--teal-dark)}.primary:disabled{opacity:.6;cursor:default}.hint{text-align:center;color:var(--muted);font-size:12px;margin:6px 0 0}.chat-page{height:100%;display:flex;flex-direction:column;background:var(--canvas)}.chat-header{display:flex;align-items:center;gap:12px;padding:14px clamp(16px,4vw,40px);border-bottom:1px solid var(--line);background:#fffdf8db;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:sticky;top:0;z-index:2}.chat-title{display:flex;flex-direction:column;line-height:1.35}.chat-title strong{font-size:15px}.chat-title span{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-header .ghost{margin-left:auto;white-space:nowrap}.icon-button{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--ink-soft)}.icon-button:hover{border-color:var(--teal);color:var(--teal)}.messages{flex:1;overflow-y:auto;padding:28px clamp(16px,4vw,40px) 12px;scroll-behavior:smooth}.messages>*{max-width:780px;margin-left:auto;margin-right:auto}.welcome{text-align:center;padding:24px 0 12px}.welcome .agent-avatar{margin:0 auto 14px}.welcome h2{margin:0 0 8px;font-size:24px}.welcome p{color:var(--ink-soft);line-height:1.7;margin:0 auto 22px;max-width:520px}.suggestions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.suggestion{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:9px 15px;font-size:13px;color:var(--ink-soft);cursor:pointer}.suggestion:hover{border-color:var(--teal);color:var(--teal)}.bubble-row{display:flex;gap:10px;margin:14px auto;align-items:flex-start}.bubble-row.user{justify-content:flex-end}.mini-avatar{flex:none;width:28px;height:28px;border-radius:9px;background:var(--teal);color:#fff;font-size:12px;display:grid;place-items:center;margin-top:2px}.bubble{max-width:min(620px,82%);border-radius:18px;padding:12px 16px;line-height:1.72;font-size:14.5px;white-space:pre-wrap;word-break:break-word}.bubble.assistant{background:var(--panel);border:1px solid var(--line);border-top-left-radius:6px}.bubble.user{background:var(--teal);color:#f4fbf9;border-top-right-radius:6px}.bubble p{margin:0}.tool-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.tool{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:4px 9px;border-radius:999px;background:#f1efe7;color:var(--ink-soft)}.tool .dot{width:6px;height:6px;border-radius:50%;background:var(--amber)}.tool.done .dot{background:var(--teal)}.tool.error{background:#fbe9e6;color:var(--danger)}.tool.error .dot{background:var(--danger)}.citations{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:12px;padding-top:10px;border-top:1px dashed var(--line)}.citations-title{width:100%;font-size:11px;color:var(--muted)}.citation-link{border:0;background:none;padding:0;color:var(--teal);font-size:12px;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.citation-link:hover{color:var(--teal-deep, var(--teal))}.typing{display:inline-flex;gap:4px;padding:4px 2px}.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes blink{0%,60%,to{opacity:.25}30%{opacity:1}}.chat-banner{max-width:780px;margin:0 auto 8px;width:calc(100% - 32px)}.composer{padding:12px clamp(16px,4vw,40px) 20px;background:linear-gradient(180deg,rgba(246,244,238,0) 0%,var(--canvas) 30%);position:sticky;bottom:0}.composer-box{max-width:780px;margin:0 auto;display:flex;align-items:flex-end;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:10px 10px 10px 16px;box-shadow:0 10px 30px #14201c0f}.composer-box textarea{flex:1;border:0;resize:none;outline:none;background:transparent;line-height:1.6;max-height:140px;min-height:26px;padding:4px 0}.send,.stop{flex:none;border:0;border-radius:12px;padding:10px 16px;cursor:pointer;font-weight:600}.send{background:var(--teal);color:#fff;display:grid;place-items:center;width:42px;height:42px}.send:disabled{opacity:.45;cursor:default}.stop{background:#fbe9e6;color:var(--danger)}.composer-hint{max-width:780px;margin:8px auto 0;text-align:center;color:var(--muted);font-size:11px}@media(max-width:860px){.login-page{grid-template-columns:1fr}.login-brand{padding:40px 28px}.login-brand ul{display:none}.hero h1{font-size:32px}.bubble{max-width:88%}}
