:root{color-scheme:dark;font:14px/1.5 system-ui;color:#efeef4;background:#101115}*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit;border:1px solid #494052;border-radius:8px;background:#25252e;padding:10px 12px;min-height:44px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible{outline:2px solid #c6b2f7;outline-offset:2px}.primary{background:#c6adf5;color:#21192d;font-weight:600}.auth{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth>form,.auth>section{width:min(420px,100%);padding:28px;border:1px solid #34313d;border-radius:16px;background:#191a20;display:grid;gap:16px}.brand{font-size:28px;font-weight:700;letter-spacing:-1px}.brand span{color:#c6adf5;margin-left:4px}h1{font-size:25px;margin:0}p{color:#bab6c9;margin:0}label{display:grid;gap:6px;font-size:13px}input{width:100%;font-size:16px}.connected{height:100dvh;display:flex;flex-direction:column}.connection-bar{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:6px 16px;background:#191a20;border-bottom:1px solid #34313d;flex-wrap:wrap;font-size:12px}.connection-bar span:first-child{margin-right:auto}.connection-bar button{min-height:34px;padding:5px 9px}iframe{flex:1;width:100%;border:0;min-height:0}.blocker{position:fixed;inset:55px 0 0;background:#10111580;display:grid;place-items:center;z-index:10}.blocker>div{background:#24202e;padding:24px;border:1px solid #59496c;border-radius:12px;max-width:520px;margin:16px}.blocker.error{background:#101115ed}.blocker button{margin-top:16px;margin-right:8px}.import-label{font-size:12px;display:flex;gap:8px;align-items:center}.import-label input{font-size:11px;width:170px;min-height:32px;padding:4px}.blocker{inset:0}.blocker>div{max-height:85dvh;overflow:auto}.chat-dialog{width:min(740px,calc(100vw - 32px));height:min(780px,calc(100dvh - 48px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #47454f;border-radius:15px;background:#191a20;color:#efeef4;box-shadow:0 24px 90px #0008;overflow:hidden}.chat-dialog[open]{display:flex;flex-direction:column}.chat-dialog::backdrop{background:#080810bc}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #303039;gap:12px}.chat-header h2{font-size:21px;line-height:1.3;margin:4px 0 0}.chat-header button{background:transparent;width:40px;min-height:40px;padding:0}.chat-eyebrow{font-size:10px;letter-spacing:.1em;color:#b9a7d5}.chat-context{display:flex;align-items:center;gap:8px;padding:10px 24px;font-size:12px;color:#aba9ba;border-bottom:1px solid #303039}.chat-context>span:last-child{margin-left:auto;white-space:nowrap}.chat-dot{width:6px;height:6px;border-radius:50%;background:#dab367}.chat-dot.is-connected{background:#7cddb0}.chat-log{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px;display:flex;flex-direction:column;gap:18px}.chat-welcome{margin:auto 0;max-width:540px}.chat-spark{color:#c6adf5;font-size:32px}.chat-welcome h3{font-size:24px;letter-spacing:-.03em;margin:8px 0}.chat-welcome p{line-height:1.65}.chat-examples{display:grid;gap:8px;margin-top:24px}.chat-examples button{display:flex;justify-content:space-between;gap:12px;text-align:left;background:#222129;border-color:#393340}.chat-examples span{color:#c6b2f7}.chat-setup{margin-top:20px!important;padding:14px;border:1px solid #4b4030;border-radius:10px;background:#27231f;font-size:13px}.chat-message{max-width:90%;padding:14px 16px;border:1px solid #33333d;border-radius:12px;background:#202128;overflow-wrap:anywhere}.chat-message.user{align-self:flex-end;background:#30263e;border-color:#4c3e5c}.chat-message.assistant{align-self:flex-start}.chat-message small{display:block;font-size:11px;color:#b9a7d5;margin-bottom:5px}.chat-message p{color:#efeef4;white-space:pre-wrap}.chat-proposal{padding:18px;border:1px solid #66527d;border-radius:12px;background:#24202e}.chat-proposal-heading{display:flex;gap:12px;justify-content:space-between;align-items:center}.chat-proposal h3{margin:0;font-size:17px}.chat-proposal-heading span{font-size:11px;background:#3b304b;border-radius:20px;padding:4px 9px;color:#d7c6f4}.chat-proposal dl{margin:16px 0}.chat-proposal dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #39313f}.chat-proposal dt{color:#aba9ba;font-size:13px}.chat-proposal dd{margin:0;overflow-wrap:anywhere}.chat-proposal>p{font-size:12px}.chat-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}.chat-composer{padding:16px 24px 20px;border-top:1px solid #303039;background:#191a20}.chat-composer label{font-size:12px;color:#aba9ba;margin-bottom:8px}.chat-composer>div{display:flex;gap:10px;align-items:flex-end}.chat-composer textarea{flex:1;min-width:0;resize:vertical;min-height:64px;max-height:130px;background:#22232a;color:inherit;border:1px solid #494052;border-radius:9px;font:inherit;padding:12px}.chat-composer small{display:block;font-size:11px;color:#aba9ba;margin-top:8px}.chat-thinking{font-size:13px;color:#c6b2f7}.chat-error{padding:14px;background:#302329;border:1px solid #6a424e;border-radius:10px}.chat-error button{margin-top:10px}.chat-dialog button{font-size:13px;font-weight:500;transition:background-color .14s,border-color .14s}.chat-dialog button:disabled{cursor:not-allowed}.chat-dialog textarea:focus-visible{outline:2px solid #c6b2f7;outline-offset:2px}.chat-dialog button:hover:not(:disabled){border-color:#c6b2f7}@media(max-width:740px){.chat-dialog{width:calc(100vw - 20px);height:calc(100dvh - 28px)}.chat-header,.chat-log,.chat-composer{padding:16px}.chat-context{padding:10px 16px}.chat-header h2{font-size:19px}.chat-welcome h3{font-size:22px}.chat-proposal dl>div{grid-template-columns:90px minmax(0,1fr)}.chat-composer textarea{font-size:16px}.chat-message{max-width:96%}}@media(prefers-reduced-motion:no-preference){.chat-dialog[open]{animation:chat-open .2s cubic-bezier(.2,.8,.2,1)}.chat-message,.chat-proposal{animation:chat-open .16s ease-out}@keyframes chat-open{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}@media(prefers-reduced-motion:reduce){.chat-dialog,.chat-dialog *{animation:none!important;transition:none!important}}.chat-header,.chat-context,.chat-composer{flex-shrink:0}
