:root{--accent: #c1272d;--m-a: #a7a8aa;--m-b: #414042;--m-ink: #0a0a0a;--bg: #f5f5f5;--surface: #ffffff;--surface-2: #fafafa;--text: #0a0a0a;--text-muted: #6b6b6b;--border: #e5e5e5;--link: #0a0a0a;--assistant-bubble: #ffffff;--assistant-text: #0a0a0a;--user-bubble: #0a0a0a;--user-text: #ffffff;--send-bg: #0a0a0a;--send-fg: #ffffff;--focus: #0a0a0a;--shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .06);--sb-bg: #0b0b0c;--sb-surface: #161617;--sb-surface-2: #1d1d1f;--sb-text: #ededed;--sb-muted: #8c8c90;--sb-border: #26262a;--radius: 16px;--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #000000;--surface: #141415;--surface-2: #1b1b1d;--text: #ededed;--text-muted: #8f8f8f;--border: #2b2b2e;--link: #ededed;--assistant-bubble: #1b1b1d;--assistant-text: #ededed;--user-bubble: #ededed;--user-text: #0a0a0a;--send-bg: #ededed;--send-fg: #0a0a0a;--focus: #ededed;--shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 40px rgba(0, 0, 0, .6);--m-a: #8a8b8d;--m-b: #d4d4d5;color-scheme:dark}}:root[data-theme=dark]{--bg: #000000;--surface: #141415;--surface-2: #1b1b1d;--text: #ededed;--text-muted: #8f8f8f;--border: #2b2b2e;--link: #ededed;--assistant-bubble: #1b1b1d;--assistant-text: #ededed;--user-bubble: #ededed;--user-text: #0a0a0a;--send-bg: #ededed;--send-fg: #0a0a0a;--focus: #ededed;--shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 40px rgba(0, 0, 0, .6);--m-a: #8a8b8d;--m-b: #d4d4d5;color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}button,textarea{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#root{display:flex;justify-content:center;align-items:center}.shell{position:relative;display:flex;width:100%;height:100dvh;background:var(--surface);overflow:hidden}.app{display:flex;flex:1;min-width:0;flex-direction:column;height:100%;background:var(--surface);overflow:hidden}.header,.messages-inner,.composer{--col: 860px}.header{display:flex;align-items:center;gap:12px;padding:14px 24px;padding-top:max(12px,env(safe-area-inset-top));border-bottom:1px solid var(--border);background:var(--surface)}.header-mascot{display:grid;place-items:center;flex:none;width:44px;height:44px}.btn.menu-btn{display:none}@media(max-width:799px){.btn.menu-btn{display:inline-flex}.header{gap:10px;padding:10px 14px}.header-sub{display:none}}.header-brand{min-width:0;flex:1}.header-title{margin:0;font-size:1.05rem;font-weight:600;letter-spacing:-.01em;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-title-soft{font-weight:500;color:var(--text-muted)}.header-sub{margin:1px 0 0;font-size:.8rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-status{display:flex;align-items:center;gap:6px;margin:0 6px 0 0;font-size:.8rem;font-weight:500;color:var(--text-muted)}.status-text{white-space:nowrap}@media(max-width:480px){.header-actions .status-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}.header-actions{display:flex;gap:8px;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 14px;border-radius:10px;border:1px solid transparent;background:transparent;cursor:pointer;font-size:.9rem;font-weight:600;transition:background-color .15s,border-color .15s,opacity .15s}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-ghost,.btn-icon{border-color:var(--border);color:var(--text)}.btn-ghost:hover:not(:disabled),.btn-icon:hover:not(:disabled){background:var(--surface-2)}.btn-icon{width:40px;padding:0}.btn-outline{height:36px;border-color:var(--border);background:var(--surface);color:var(--text)}.btn-outline:hover:not(:disabled){background:var(--surface-2)}@media(max-width:560px){.btn-ghost{width:40px;padding:0}}.messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:var(--surface);scroll-behavior:auto}.messages-inner{width:100%;max-width:var(--col);margin:0 auto;display:flex;flex-direction:column;gap:16px;padding:20px 16px 8px}@media(min-width:768px){.messages-inner{padding:32px 28px 16px}}.row{display:flex;align-items:flex-end;gap:10px;animation:rise .25s ease-out both}.row-user{justify-content:flex-end}.bubble-wrap{display:flex;flex-direction:column;max-width:min(88%,680px);min-width:0}.row-user .bubble-wrap{align-items:flex-end}.bubble{padding:10px 14px;border-radius:var(--radius);font-size:.97rem;line-height:1.55;overflow-wrap:anywhere}.bubble>:first-child{margin-top:0}.bubble>:last-child{margin-bottom:0}.bubble p{margin:0 0 .6em}.bubble ul,.bubble ol{margin:0 0 .6em;padding-left:1.3em}.bubble li+li{margin-top:.25em}.bubble-assistant{background:var(--assistant-bubble);color:var(--assistant-text);border:1px solid var(--border);border-bottom-left-radius:4px}.bubble-user{background:var(--user-bubble);color:var(--user-text);border-bottom-right-radius:4px;white-space:pre-wrap}.bubble-user p{margin:0}.bubble code{padding:1px 5px;border-radius:6px;background:color-mix(in srgb,currentColor 12%,transparent);font-size:.9em}.md-heading{font-weight:600}.md-link{color:var(--link);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.md-link:hover{text-decoration-thickness:2px}.time{margin:4px 6px 0;font-size:.72rem;color:var(--text-muted)}.welcome{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:460px;margin:4vh auto 0;text-align:center}.welcome .apex{margin-bottom:6px}.welcome-title{margin:0;font-size:1.6rem;font-weight:650;letter-spacing:-.02em}.welcome-text{margin:0;color:var(--text-muted);font-size:.97rem}.welcome-question{margin:14px 0 2px;font-weight:600}.suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.chip{min-width:120px;padding:10px 22px;font-weight:600;text-align:center;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font-size:.88rem;cursor:pointer;transition:border-color .15s,background-color .15s,transform .15s}.chip:hover{border-color:var(--text-muted);background:var(--surface-2)}.chip:active{transform:scale(.98)}.typing{display:inline-flex;align-items:center;gap:5px;padding:14px 16px}.dot{width:7px;height:7px;border-radius:50%;background:var(--text-muted);animation:bounce 1.2s infinite ease-in-out}.dot:nth-child(2){animation-delay:.15s}.dot:nth-child(3){animation-delay:.3s}.error-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-left:42px;padding:12px 14px;max-width:min(85%,560px);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);font-size:.92rem;animation:rise .25s ease-out both}.error-card p{margin:0}@media(max-width:480px){.error-card{margin-left:0;max-width:100%}}.composer{padding:12px 16px 10px;padding-bottom:max(10px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border)}.composer-box{width:100%;max-width:var(--col);margin:0 auto;display:flex;align-items:flex-end;gap:8px;padding:6px 6px 6px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);box-shadow:0 1px 2px #0000000d;transition:border-color .15s,box-shadow .15s}.composer-box:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 12%,transparent)}.composer textarea{flex:1;min-width:0;max-height:160px;padding:8px 0;border:0;outline:0;resize:none;background:transparent;font-size:1rem;line-height:1.4}.composer textarea::placeholder{color:var(--text-muted)}.send{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;height:40px;padding:0 14px;font-weight:600;font-size:.9rem;flex-direction:row-reverse;border:0;border-radius:10px;background:var(--send-bg);color:var(--send-fg);cursor:pointer;transition:background-color .15s,opacity .15s,transform .15s}.send:hover:not(:disabled){opacity:.85}.send:active:not(:disabled){transform:scale(.95)}.send:disabled{opacity:.35;cursor:not-allowed}.composer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:var(--col);margin:8px auto 0;font-size:.72rem;color:var(--text-muted)}.composer-hint{min-width:0}@media(max-width:560px){.composer-hint{display:none}.composer-foot{justify-content:center}}.powered{display:flex;align-items:center;justify-content:center;gap:6px;margin:0;text-align:center;font-size:.72rem;letter-spacing:.02em;color:var(--text-muted)}.powered img{border-radius:3px;background:#fff;opacity:.9;flex:none}.sidebar{display:flex;flex:none;flex-direction:column;width:288px;--text: var(--sb-text);--text-muted: var(--sb-muted);--border: var(--sb-border);--surface: var(--sb-surface);--surface-2: var(--sb-surface-2);--focus: #ededed;background:var(--sb-bg);color:var(--sb-text);border-right:1px solid var(--sb-border)}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:16px 14px 12px}.sidebar-brand img{flex:none;border-radius:8px;background:#fff;padding:2px;object-fit:contain}.sidebar-brand-text{display:flex;flex:1;min-width:0;flex-direction:column;line-height:1.2}.sidebar-brand-name{font-size:.95rem;font-weight:700;letter-spacing:.14em}.sidebar-brand-sub{font-size:.75rem;color:var(--text-muted)}.workspace{display:flex;align-items:center;gap:10px;margin:0 12px 4px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.workspace-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;background:var(--surface-2);color:var(--text)}.workspace-text,.user-text{display:flex;min-width:0;flex-direction:column;line-height:1.25}.workspace-name,.user-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;font-weight:600}.workspace-sub,.user-status{display:flex;align-items:center;gap:6px;font-size:.74rem;color:var(--text-muted)}.sidebar-footer{display:flex;align-items:center;gap:10px;padding:12px 14px;padding-bottom:max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--border)}.user-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:#ededed;color:#0a0a0a;font-size:.85rem;font-weight:700}.sidebar-top{display:flex;gap:8px;padding:10px 12px 6px}.new-chat{flex:1;height:40px;background:#ededed;border-color:#ededed;color:#0a0a0a}.new-chat:hover:not(:disabled){background:#fff;border-color:#fff;color:#0a0a0a}.draft-list{margin:0 0 6px;padding:0;list-style:none}.sidebar-list{flex:1;min-height:0;overflow-y:auto;padding:4px 8px 16px}.sidebar-list ul{margin:0;padding:0;list-style:none}.sidebar-group{margin:14px 8px 6px;font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.sidebar-empty{margin:14px 8px;font-size:.85rem;color:var(--text-muted)}.conv{position:relative;display:flex;align-items:center;border-radius:10px}.conv:hover,.conv:focus-within{background:color-mix(in srgb,var(--text) 6%,transparent)}.conv.is-active{background:color-mix(in srgb,var(--text) 13%,transparent);box-shadow:inset 2px 0 0 var(--accent)}.conv-main{flex:1;min-width:0;padding:9px 10px;border:0;border-radius:10px;background:transparent;text-align:left;cursor:pointer;font-size:.9rem}.conv.is-active .conv-main{font-weight:600}.conv-title{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.conv-del{display:grid;place-items:center;flex:none;width:32px;height:32px;margin-right:4px;border:0;border-radius:8px;background:transparent;color:var(--text-muted);cursor:pointer;opacity:0}.conv:hover .conv-del,.conv:focus-within .conv-del{opacity:1}@media(hover:none){.conv-del{opacity:1}}.conv-del:hover{color:var(--text)}.conv-confirm{display:flex;align-items:center;gap:6px;width:100%;padding:5px 8px;font-size:.85rem}.conv-confirm span{flex:1;color:var(--text-muted)}.conv-confirm button{padding:5px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);cursor:pointer;font-size:.8rem}.conv-yes{font-weight:600;color:var(--accent)}.overlay{position:fixed;inset:0;z-index:40;background:#00000073;animation:fade .2s ease-out both}@media(max-width:799px){.sidebar.is-drawer{position:fixed;inset:0 auto 0 0;z-index:50;width:min(320px,86vw);padding-top:env(safe-area-inset-top);background:var(--sb-bg);box-shadow:var(--shadow);transform:translate(-100%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}.sidebar.is-drawer.is-open{transform:none;visibility:visible;transition:transform .25s ease}}.fact-card{margin:.2em 0 .7em;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);overflow:hidden}.fact-row{display:grid;grid-template-columns:minmax(90px,34%) 1fr;gap:12px;padding:8px 12px;font-size:.9rem}.fact-row+.fact-row{border-top:1px solid var(--border)}.fact-row dt{color:var(--text-muted);font-weight:500}.fact-row dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}.next-step{margin-left:42px;padding:12px 14px;max-width:min(88%,520px);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-2);animation:rise .25s ease-out both}.next-step-title{margin:0 0 8px;font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}.next-step-actions{display:flex;flex-wrap:wrap;gap:8px}.step-chip{padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font-size:.85rem;font-weight:600;cursor:pointer;transition:border-color .15s,background-color .15s}.step-chip:hover{border-color:var(--text)}@media(max-width:480px){.next-step{margin-left:0;max-width:100%}}.apex{position:relative;display:block;flex:none;overflow:hidden;background:#fbf7f4}.apex-img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-select:none;user-select:none}.apex-round{border-radius:50%}.apex-round .apex-img{transform:scale(1.6);transform-origin:50% 56%}.apex-card{border-radius:28px;border:1px solid var(--border);box-shadow:var(--shadow)}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes bounce{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.dot{animation:none;opacity:.7}.sidebar.is-drawer,.sidebar.is-drawer.is-open{transition:none!important}}
