:root{--paper:#faf9f6;--ink:#292b26;--muted:#72746b;--line:#e5e4dc;--accent:#a5482b;--soft:#f1eee7}*{box-sizing:border-box}body{background:var(--paper);color:var(--ink);margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.7}button,textarea{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}a{color:var(--accent);text-underline-offset:3px;overflow-wrap:anywhere}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.app-shell{height:100dvh;min-height:480px;display:flex}.sidebar{border-right:1px solid var(--line);background:#eeeee7;flex-direction:column;flex-shrink:0;width:284px;padding:30px 25px 22px;display:flex}.brand{color:var(--ink);letter-spacing:.04em;align-items:center;gap:12px;font-size:16px;font-weight:650;text-decoration:none;display:flex}.brand small{color:var(--muted);letter-spacing:.2em;margin-top:1px;font-size:9px;font-weight:450;display:block}.mars-symbol{background:var(--accent);color:#fff8ef;text-align:center;letter-spacing:-.08em;border-radius:50%;width:39px;height:39px;padding-right:3px;font:italic 29px/35px Georgia,serif}.new-chat{text-align:left;background:0 0;border:1px solid #d4d6c9;border-radius:7px;width:100%;margin-top:37px;padding:10px 14px}.new-chat:hover{background:#e5e5db}.snapshot-label{color:var(--muted);margin:25px 0;font-size:12px}.snapshot-info{border-top:1px solid #d9dbcf;margin-top:auto;padding-top:25px}.eyebrow{color:var(--accent);letter-spacing:.12em;font-size:11px;font-weight:600}.primary-count{margin:17px 0;font:47px/1.35 Georgia,serif}.primary-count span{color:var(--muted);margin-top:4px;font:12px/1.7 -apple-system,sans-serif;display:block}.counts{margin:20px 0}.counts div{justify-content:space-between;padding:5px 0;display:flex}.counts dt{color:var(--muted);font-size:12px}.counts dd{font-variant-numeric:tabular-nums;margin:0}.snapshot-info>p:last-child,.sidebar-footer{color:var(--muted);font-size:11px;line-height:1.9}.sidebar-footer{margin:26px 0 0}.chat-main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--line);height:73px;color:var(--muted);flex-shrink:0;justify-content:space-between;align-items:center;padding:0 38px;font-size:12px;display:flex}.status-pill{align-items:center;gap:7px;font-size:11px;display:flex}.status-pill i{background:#587454;border-radius:50%;width:6px;height:6px}.unconfigured i{background:#aa8146}.config-notice{color:#7d643f;background:#f6f0e4;border-bottom:1px solid #ece2cf;flex-shrink:0;padding:10px 38px;font-size:11px}.conversation{scroll-behavior:smooth;flex:1;min-height:0;padding:0 38px;overflow-y:auto}.welcome{max-width:710px;margin:clamp(32px,8vh,100px) auto 30px}h1{letter-spacing:-.04em;margin:13px 0 18px;font-size:clamp(30px,3vw,44px);font-weight:550;line-height:1.4}.welcome-copy{color:var(--muted);font-size:15px;line-height:1.9}.suggestions{grid-template-columns:1fr 1fr;gap:10px;margin-top:34px;display:grid}.suggestions button{text-align:left;border:1px solid var(--line);background:0 0;border-radius:7px;align-items:center;gap:11px;padding:16px 13px;font-size:12px;display:flex}.suggestions button:hover{background:#f5f2ec;border-color:#bd9d8c}.suggestion-number{color:#aaa596;font-size:10px}.suggestion-arrow{color:var(--accent);margin-left:auto}.welcome-footnote{color:var(--muted);margin-top:20px;font-size:11px}.messages,.waiting,.error-notice{width:100%;max-width:770px;margin-left:auto;margin-right:auto}.messages{padding:30px 0 12px}.message{margin-bottom:30px}.message-label{color:var(--muted);margin-bottom:9px;font-size:11px}.user{background:var(--soft);border-radius:10px 10px 0;width:fit-content;max-width:90%;margin-left:auto;padding:13px 18px}.user .message-label{color:#8c7762}.answer-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.answer-text+.query-result,.query-result+.answer-text{margin-top:18px}.result-count{color:var(--accent);margin:15px 0 5px;font-size:12px;font-weight:600}.query-note{color:var(--muted);margin:5px 0 14px;font-size:11px}.company-list{gap:12px;display:grid}.company-card{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:0;padding:19px 20px 13px}.card-heading{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}h3{margin:0;font-size:16px;font-weight:600}.english-name{color:var(--muted);margin:1px 0 0;font-size:11px}.entity-tag{color:#69715b;background:#f1f2ec;border-radius:4px;flex-shrink:0;padding:2px 7px;font-size:10px}.role-tag{color:var(--accent);margin:11px 0 0;font-size:11px}.description{overflow-wrap:anywhere;margin:12px 0;font-size:13px}.products{color:var(--muted);margin:10px 0 14px;padding-left:17px;font-size:12px}.products li{overflow-wrap:anywhere;margin:5px 0}.products strong{color:#555b4c;font-weight:550}.card-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:11px;display:flex}.card-actions>span{color:var(--muted)}.card-actions button{color:var(--accent);background:0 0;border:0;padding:5px 0 5px 10px;font-size:11px}details{color:var(--muted);border-top:1px solid #efefe9;margin-top:12px;padding-top:9px;font-size:11px}summary{cursor:pointer;width:fit-content}.record-details{grid-template-columns:88px 1fr;gap:6px;display:grid}.record-details dd{overflow-wrap:anywhere;margin:0}.evidence-links{flex-wrap:wrap;gap:6px 16px;display:flex}.evidence-note{margin:12px 0 3px;line-height:1.85}.overview-result{border-left:2px solid var(--accent);margin:15px 0;padding:9px 17px}.overview-result strong{font-size:19px;font-weight:550}.overview-result p{color:var(--muted);margin:5px 0;font-size:12px}.waiting{color:var(--muted);align-items:center;gap:10px;padding:4px 0 20px;font-size:12px;display:flex}.loading-dot{background:var(--accent);border-radius:50%;width:6px;height:6px;animation:1.2s infinite pulse}@keyframes pulse{50%{opacity:.25}}.error-notice,.tool-error{color:#943e2c;overflow-wrap:anywhere;background:#f9ede7;border-radius:7px;padding:14px;font-size:12px}.error-notice{margin-bottom:20px}.error-notice button{background:0 0;border:0;padding:5px 0 0;text-decoration:underline;display:block}.composer-area{flex-shrink:0;padding:15px 38px 17px}.composer{background:#fff;border:1px solid #d9d7cc;border-radius:10px;max-width:770px;margin:auto;padding:15px 17px 10px;box-shadow:0 3px 12px #302d2205}.composer:focus-within{border-color:#a4826c}textarea{resize:none;width:100%;color:var(--ink);background:0 0;border:0;outline:none;font-size:14px;line-height:1.7;display:block}textarea::placeholder{color:#98998f}.composer-bottom{justify-content:space-between;align-items:center;gap:8px;margin-top:8px;display:flex}.composer-bottom>span{color:#999a90;font-size:10px}.send-button{background:var(--accent);color:#fff;border:0;border-radius:5px;flex-shrink:0;padding:6px 14px;font-size:12px}.send-button:hover:enabled{background:#873c26}.composer-note{text-align:center;max-width:770px;color:var(--muted);margin:11px auto 0;font-size:10px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (max-width:760px){.sidebar{width:220px;padding:24px 18px}.conversation,.topbar,.composer-area{padding-left:22px;padding-right:22px}.suggestions{grid-template-columns:1fr}}@media (max-width:560px){.app-shell{flex-direction:column}.sidebar{border-right:0;border-bottom:1px solid var(--line);flex-direction:row;justify-content:space-between;align-items:center;width:100%;padding:13px 18px}.brand{gap:9px;font-size:14px}.mars-symbol{width:33px;height:33px;font-size:25px;line-height:29px}.brand small{font-size:8px}.new-chat{width:auto;margin:0;padding:6px 10px;font-size:11px}.snapshot-label,.snapshot-info,.sidebar-footer{display:none}.chat-main{min-height:0}.topbar{height:44px;padding:0 18px;font-size:10px}.config-notice{padding:9px 18px;font-size:10px}.conversation{padding:0 18px}.welcome{margin-top:30px}h1{font-size:32px}.welcome-copy{font-size:13px}.suggestions{gap:8px;margin-top:23px}.suggestions button{padding:12px}.welcome-footnote{margin-bottom:16px}.composer-area{padding:10px 12px max(10px, env(safe-area-inset-bottom))}.composer{padding:12px 13px 9px}.composer-bottom>span{font-size:9px}.composer-note{margin-top:7px;font-size:9px}.company-card{padding:15px 14px 11px}textarea{font-size:16px}}@media (prefers-reduced-motion:reduce){.conversation{scroll-behavior:auto}.loading-dot{animation:none}}
