@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap";:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f3f6fa;--bg-accent:#edf2f7;--surface:#ffffffeb;--surface-strong:#fff;--surface-muted:#f7f9fc;--ink:#16202b;--ink-soft:#4d5b69;--ink-faint:#758395;--line:#16202b1a;--line-strong:#16202b2e;--accent:#1f5eff;--accent-soft:#1f5eff14;--danger:#c23b32;--shadow:0 1px 2px #1927340a, 0 8px 24px #19273408;--shadow-soft:0 1px 2px #19273408;background:linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);color:var(--ink);font-family:IBM Plex Sans,Noto Sans SC,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;min-height:100%}body{background:inherit;min-height:100%;margin:0}a{color:inherit}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}input,textarea,select{border:1px solid var(--line);background:var(--surface-strong);width:100%;color:var(--ink);border-radius:14px;padding:13px 14px;transition:border-color .16s,box-shadow .16s,background-color .16s}input:focus,textarea:focus,select:focus{border-color:#1f5eff73;outline:none;box-shadow:0 0 0 4px #1f5eff1a}textarea{resize:vertical;min-height:120px}.loading-screen,.empty-state{place-items:center;min-height:100vh;padding:24px;display:grid}.loading-card,.panel,.conversation-sidebar,.settings-drawer,.auth-panel,.app-header{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}.loading-card{border-radius:20px;width:min(360px,100%);padding:28px}.loading-card strong{margin-top:6px;font-size:1.1rem;display:block}.eyebrow,.bulletin-label,.message-role,.conversation-item-index{letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-family:IBM Plex Mono,monospace;font-size:.72rem;font-weight:500}.eyebrow{margin:0}.muted{color:var(--ink-faint)}.app-layout{min-height:100vh;padding:12px}.app-shell-decoration{display:none}.app-shell-grid{grid-template-rows:auto minmax(0,1fr);gap:12px;height:calc(100vh - 24px);display:grid}.app-header{box-shadow:var(--shadow-soft);border-radius:16px;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:14px 18px;display:grid}.app-logo-link{text-decoration:none}.app-header-brand{align-content:start;gap:4px;display:grid}.app-header-brand h1,.auth-copy h1,.auth-form-header h2,.page-intro h1,.panel-header h2,.panel-header h4,.settings-drawer h3,.conversation-sidebar-hero h3,.chat-header h2,.account-card h3{font-size:inherit;margin:0;line-height:1.15}.app-header-brand h1{font-size:clamp(1.4rem,2.4vw,1.8rem);font-weight:700}.app-header-note{color:var(--ink-faint);margin:0;font-size:.78rem;line-height:1.3}.app-header-actions,.page-header-actions,.trigger-actions,.composer-actions,.account-card-header,.panel-header,.settings-drawer-header,.chat-title-row{align-items:center;gap:10px;display:flex}.app-header-actions{justify-items:end;gap:10px;display:grid}.app-user-menu{position:relative}.user-menu-trigger,.primary-button,.secondary-button,.ghost-button,.nav-pill,.settings-tab,.view-switch-link,.status-badge{border-radius:12px;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s}.user-menu-trigger,.secondary-button,.ghost-button,.settings-tab,.view-switch-link{border:1px solid var(--line)}.primary-button,.secondary-button,.ghost-button,.settings-tab{min-height:42px;padding:10px 14px}.primary-button{background:var(--ink);color:#fff}.secondary-button{background:var(--surface-muted);color:var(--ink)}.ghost-button{color:var(--ink-soft);background:0 0}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.settings-tab:hover,.user-menu-trigger:hover{transform:translateY(-1px)}.primary-button:disabled,.secondary-button:disabled,.ghost-button:disabled{cursor:not-allowed;opacity:.58;box-shadow:none;transform:none}.user-menu-trigger{background:var(--surface-muted);align-items:center;gap:8px;min-height:44px;padding:8px 14px;display:inline-flex}.user-menu-email{font-size:.95rem;font-weight:600}.user-menu-caret{color:var(--ink-faint)}.user-menu-panel{z-index:12;border:1px solid var(--line-strong);background:var(--surface-strong);min-width:180px;box-shadow:var(--shadow);border-radius:14px;padding:6px;display:grid;position:absolute;top:calc(100% + 8px);right:0}.user-menu-item{width:100%;color:var(--ink);text-align:left;background:0 0;border-radius:10px;padding:10px 12px;text-decoration:none}.user-menu-item:hover{background:var(--surface-muted)}.app-header-link.active{background:var(--ink);color:#fff}.app-content{min-height:0;overflow:hidden}.auth-shell{min-height:100vh;padding:24px}.auth-stage{justify-content:center;min-height:calc(100vh - 48px);display:grid}.auth-stage-compact{align-items:center}.auth-panel{border-radius:18px;padding:24px}.auth-editorial-panel,.auth-form-panel{gap:20px;display:grid}.auth-editorial-panel{align-content:space-between}.auth-copy{gap:14px;max-width:40rem;display:grid}.auth-copy h1{font-size:clamp(2.3rem,5vw,3.6rem);font-weight:700}.auth-entry-panel{align-content:start;width:min(520px,100%)}.auth-lead{max-width:30rem;color:var(--ink-soft);margin:0;line-height:1.6}.auth-bulletin{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.auth-bulletin>div,.memory-panel,.settings-note,.automation-rail,.automation-summary-card,.automation-event-card,.trigger-rail-item,.trigger-item,.empty-card,.account-card,.conversation-item,.composer,.chat-stage,.chat-content{border:1px solid var(--line);background:var(--surface-strong)}.auth-bulletin>div,.memory-panel,.settings-note,.automation-rail,.automation-summary-card,.automation-event-card,.trigger-rail-item,.trigger-item,.empty-card,.account-card,.conversation-item,.composer,.chat-stage{border-radius:16px}.auth-bulletin>div{gap:8px;padding:18px;display:grid}.auth-form-header{gap:8px;display:grid}.auth-form-header h1,.auth-form-header h2{margin:0;font-size:clamp(1.8rem,4vw,2.3rem);font-weight:700}.auth-form,.account-form-page,.trigger-form,.stack-field{gap:16px;display:grid}.auth-form label,.account-form-page label,.stack-field{gap:8px;display:grid}.link-button{width:fit-content;color:var(--accent);background:0 0;padding:0}.subtle-action{min-height:30px;color:var(--ink-faint);background:0 0;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:4px 8px;display:inline-flex}.subtle-action:hover{color:var(--ink-soft);background:#16202b0d;transform:none}.subtle-action:disabled{cursor:not-allowed;opacity:.42}.error-banner{color:#a63029;background:#c23b3214;border:1px solid #c23b3233;border-radius:12px;padding:12px 14px}.input-error{border-color:#c23b3280;box-shadow:0 0 0 1px #c23b3214}.input-error:focus{border-color:#c23b328c;box-shadow:0 0 0 4px #c23b321f}.field-error,.auth-hint{font-size:.92rem;line-height:1.5}.field-error{color:#a63029}.auth-hint{color:var(--ink-soft);justify-content:space-between;align-items:center;gap:12px;display:flex}.page-shell{height:100%;min-height:0;padding:4px;overflow:auto}.page-intro{gap:12px;margin-bottom:16px;display:grid}.page-intro-copy{gap:8px;max-width:36rem;display:grid}.page-intro h1{font-size:clamp(2rem,4vw,2.7rem);font-weight:700}.accounts-layout{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:16px;display:grid}.panel{border-radius:18px;padding:20px}.panel-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.panel-header>div{gap:8px;display:grid}.panel-header h2,.panel-header h4{font-size:clamp(1.5rem,3vw,1.9rem);font-weight:700}.account-card-list,.trigger-list,.settings-section{gap:12px;display:grid}.account-card{gap:14px;padding:16px;display:grid}.account-card-header{justify-content:space-between;align-items:flex-start}.account-card-header>div{gap:6px;display:grid}.account-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}.account-facts dt{text-transform:uppercase;letter-spacing:.08em;color:var(--ink-faint);font-size:.78rem}.account-facts dd{margin:6px 0 0}.status-badge{justify-content:center;align-items:center;padding:6px 10px;font-size:.75rem;font-weight:600;display:inline-flex}.status-badge.active{color:var(--ink-soft);background:#16202b0d}.status-badge.disabled{color:var(--ink-faint);background:#16202b14}.secret-field{grid-template-columns:minmax(0,1fr) auto;gap:10px;display:grid}.chat-shell{grid-template-columns:252px minmax(0,1fr);gap:12px;height:100%;min-height:0;display:grid;position:relative;overflow:hidden}.conversation-sidebar{z-index:3;min-height:0;box-shadow:var(--shadow-soft);border-radius:16px;grid-template-rows:auto minmax(0,1fr);gap:10px;padding:12px;display:grid}.conversation-sidebar-hero{border-bottom:1px solid var(--line);gap:10px;padding-bottom:10px;display:grid}.conversation-sidebar-hero h3{font-size:1.05rem;font-weight:600}.conversation-sidebar-toolbar{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.conversation-list-scroll,.message-list,.automation-rail-scroll,.settings-drawer-body,.page-shell{scrollbar-width:thin;scrollbar-color:#16202b47 transparent}.conversation-list-scroll{min-height:0;padding-right:4px;overflow:auto}.conversation-list{gap:6px;display:grid}.conversation-item{text-align:left;width:100%;box-shadow:none;border-radius:12px;gap:6px;padding:12px 12px 11px;display:grid}.conversation-item-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.94rem;line-height:1.38;display:-webkit-box;overflow:hidden}.conversation-item.active{background:#1f5eff0a;border-color:#1f5eff3d}.conversation-item-time{color:var(--ink-faint);font-size:.75rem}.sidebar-close-button{display:none}.chat-main{min-width:0;height:100%;min-height:0;box-shadow:none;background:0 0;border:0;grid-template-rows:auto minmax(0,1fr);gap:8px;padding:0;display:grid}.chat-actions-bar{justify-content:flex-end;align-items:center;gap:12px;min-height:28px;display:flex}.chat-actions-start,.chat-actions-end{align-items:center;gap:8px;display:flex}.chat-actions-start{display:none}.chat-settings-trigger{letter-spacing:.01em;font-size:.84rem}.chat-main-body{grid-template-rows:minmax(0,1fr);gap:10px;height:100%;min-height:0;display:grid;overflow:hidden}.chat-workspace{grid-template-columns:minmax(0,1fr) minmax(268px,320px);align-items:stretch;gap:16px;height:100%;min-height:0;display:grid}.chat-primary-column{grid-template-rows:minmax(0,1fr) auto;gap:12px;height:100%;min-height:0;display:grid}.chat-content{background:0 0;border:0;border-radius:0;flex-direction:column;min-height:0;padding:0;display:flex}.chat-stage{background:0 0;border:0;border-radius:0;flex-direction:column;flex:auto;gap:12px;min-height:0;padding:2px 0;display:flex}.chat-empty-state{text-align:center;place-content:center;gap:10px;height:100%;display:grid}.composer{box-shadow:none;border-radius:14px;gap:10px;padding:12px 14px;display:grid}.composer-note{margin:0}.composer textarea{resize:none;min-height:0;max-height:28vh;line-height:1.55;overflow-y:hidden}.composer-actions{flex-wrap:wrap;justify-content:space-between}.composer-actions p{margin:0}.automation-rail{border:1px solid var(--line);background:#ffffffc7;border-radius:16px;grid-template-rows:auto minmax(0,1fr);align-self:start;gap:8px;min-height:0;max-height:min(70vh,760px);padding:12px 14px;display:grid}.automation-rail-header,.trigger-actions{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.automation-rail-header h3{letter-spacing:.01em;margin:0;font-size:.98rem;font-weight:600}.automation-rail-header>div{gap:4px;display:grid}.automation-status{color:var(--ink-faint);margin:0;font-size:.76rem;line-height:1.2}.automation-status.active{color:var(--accent);font-weight:600}.automation-status-meta{color:inherit;font-weight:400}.automation-manage-trigger{margin-top:1px}.automation-rail-scroll{align-content:start;gap:4px;min-height:0;padding:0 4px 0 0;display:grid;overflow:auto}.automation-section{display:contents}.automation-history-list,.trigger-rail-list{gap:4px;display:grid}.automation-event-row,.automation-fold-row,.trigger-rail-item{text-align:left;width:100%;box-shadow:none;background:0 0;border:0;border-radius:0;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;padding:10px 0;display:grid}.automation-event-row+.automation-event-row,.automation-history-list.quiet .automation-event-row+.automation-event-row{border-top:1px solid #16202b14}.automation-fold-row{border-top:1px solid #16202b14;margin-top:4px;padding-top:12px}.automation-quiet-group{border-left:1px solid #16202b1a;margin:-2px 0 0 4px;padding:4px 0 0 18px}.automation-quiet-group-label{color:var(--ink-faint);letter-spacing:.01em;justify-content:space-between;align-items:center;gap:10px;padding:0 0 6px;font-size:.73rem;display:flex}.automation-event-marker{background:#7b8a99;border-radius:999px;width:8px;height:8px;margin-top:7px;box-shadow:0 0 0 4px #7b8a9914}.automation-event-marker.trade{background:var(--accent);box-shadow:0 0 0 4px #1f5eff14}.automation-event-marker.notify{background:#4f6f8f;box-shadow:0 0 0 4px #4f6f8f14}.automation-event-marker.failed{background:var(--danger);box-shadow:0 0 0 4px #c23b3214}.automation-event-marker.idle{box-shadow:none;background:#16202b38}.automation-event-body{gap:6px;display:grid}.automation-event-line{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.automation-event-row p,.automation-fold-row p,.trigger-rail-item p{margin:0}.automation-event-row.nested{padding:8px 0}.automation-event-time,.automation-event-meta{color:var(--ink-faint);font-size:.74rem}.automation-event-time{letter-spacing:.01em;flex-shrink:0}.automation-fold-range{color:var(--ink-faint);flex-shrink:0;font-size:.74rem}.automation-event-title{letter-spacing:0;font-size:.92rem;line-height:1.35}.automation-event-title.compact{font-size:.88rem}.automation-event-summary{color:var(--ink-soft);font-size:.84rem;line-height:1.45}.automation-empty-card{box-shadow:none;background:0 0;border-style:dashed}.trigger-rail-item.selected{background:#1f5eff0a;border-color:#1f5eff3d}.message-list-shell{flex:auto;width:100%;min-height:0;display:flex;position:relative;overflow:hidden}.status-history{gap:6px;padding:0 12px 10px 14px;display:grid}.status-history-item{color:var(--ink-soft);border-top:1px solid #16202b14;justify-content:space-between;align-items:center;gap:12px;padding-top:8px;font-size:.84rem;display:flex}.status-history-item small{color:var(--ink-faint);flex-shrink:0}.status-inline{max-width:min(520px,100%);box-shadow:none;text-align:left;background:0 0;border:0;border-radius:10px;align-self:flex-start;padding:0}.status-inline.completed{background:0 0}.status-inline.expanded{background:#ffffffc2;border:1px solid #16202b14;border-radius:14px;padding:8px 10px 0}.status-inline-row{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:28px;padding:0 2px 0 0;display:grid}.status-inline-spark{width:6px;height:6px;box-shadow:none;background:#1f5eff94;border-radius:999px}.status-inline.completed .status-inline-spark{box-shadow:none;background:#16202b52}.status-inline-main{min-width:0;overflow:hidden}.status-inline-text{color:var(--ink-soft);white-space:nowrap;text-overflow:ellipsis;font-size:.84rem;line-height:1.35;display:block;overflow:hidden}.status-inline-caret{color:var(--ink-faint);font-size:.72rem;transition:transform .16s}.status-inline.expanded .status-inline-caret{transform:rotate(180deg)}.message-list{flex:auto;width:100%;min-height:0;padding-right:6px;overflow:auto}.message-list-inner{flex-direction:column;justify-content:flex-end;gap:14px;min-height:100%;display:flex}.scroll-to-bottom-button{z-index:1;border:1px solid var(--line);background:var(--surface-strong);width:40px;height:40px;color:var(--ink);box-shadow:var(--shadow-soft);border-radius:999px;padding:0;position:absolute;bottom:14px;left:50%;transform:translate(-50%)}.message{border:1px solid var(--line);background:var(--surface-strong);border-radius:14px;align-self:flex-start;max-width:min(720px,78%);padding:12px 14px}.message.user{max-width:min(560px,70%);color:var(--ink);background:linear-gradient(#f9fbfe 0%,#eef3f9 100%);border-color:#16202b1f;align-self:flex-end}.message-meta{color:var(--ink-faint);justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;font-size:.76rem;display:flex}.message.user .message-meta{color:var(--ink-faint)}.message.user .message-role{color:var(--ink-soft)}.message-copy{margin:0}.markdown-copy{overflow-wrap:anywhere}.message-copy p:first-child{margin-top:0}.message-copy p:last-child{margin-bottom:0}.markdown-copy h2,.markdown-copy h3{margin-top:.8em;margin-bottom:.45em;font-size:1.1rem}.markdown-copy p,.markdown-copy li,.markdown-copy blockquote{line-height:1.6}.markdown-copy :is(ul,ol){margin:.45em 0;padding-left:1.4em}.markdown-copy li+li{margin-top:.25em}.markdown-copy li>p{margin:0}.settings-drawer{z-index:4;opacity:0;pointer-events:none;border-radius:18px;grid-template-rows:auto auto minmax(0,1fr);gap:14px;width:min(460px,100vw - 32px);min-height:0;padding:18px;transition:transform .22s,opacity .18s;display:grid;position:absolute;inset:16px 16px 16px auto;transform:translate(calc(100% + 24px))}.settings-drawer.open{opacity:1;pointer-events:auto;transform:translate(0)}.settings-drawer-header{justify-content:space-between;align-items:start}.settings-drawer-header>div{gap:8px;display:grid}.settings-drawer h3{font-size:clamp(1.7rem,3vw,2.1rem);font-weight:700}.settings-tabs{border:1px solid var(--line);background:var(--surface-muted);border-radius:14px;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr) minmax(0,1fr);gap:6px;padding:4px;display:grid}.settings-tab{color:var(--ink-soft);background:0 0}.settings-tab.active{background:var(--surface-strong);border-color:var(--line);color:var(--ink);box-shadow:var(--shadow-soft)}.settings-drawer-body{min-height:0;padding-right:4px;overflow:auto}.settings-note,.memory-panel,.trigger-item,.empty-card{padding:14px}.settings-note p,.empty-card p{margin:0}.memory-block{background:var(--surface-muted);color:var(--ink-soft);white-space:pre-wrap;border-radius:12px;margin:0;padding:14px;font-family:IBM Plex Mono,monospace;font-size:.86rem;line-height:1.55}.toggle-field{align-items:center;gap:10px;display:inline-flex}.toggle-field input,.trigger-item input{width:auto}.toggle-field.compact{gap:6px}.trigger-item{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.trigger-item.selected{border-color:#1f5eff3d}.trigger-item p{margin:6px 0 0}.trigger-actions{flex-wrap:wrap;justify-content:flex-end}.ghost-button.danger{color:var(--danger)}.trigger-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.empty-card{border-style:dashed;gap:8px;display:grid}.empty-card.compact{padding:14px}.shell-overlay{z-index:2;opacity:0;pointer-events:none;background:#16202b33;border:0;transition:opacity .18s;position:absolute;inset:0}.shell-overlay.visible{opacity:1;pointer-events:auto}.mobile-only{display:none}@media (width<=1180px){.auth-stage,.accounts-layout,.app-header,.page-intro{grid-template-columns:1fr}.app-header-actions{justify-items:start}.auth-entry-panel{width:min(560px,100%)}.auth-bulletin{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=1024px){.app-layout{padding:12px}.app-shell-grid{height:calc(100dvh - 24px)}.chat-shell{grid-template-columns:1fr;height:auto}.chat-main,.chat-main-body,.chat-workspace{height:auto}.chat-workspace{flex-direction:column;align-items:stretch;display:flex}.chat-primary-column{grid-template-rows:minmax(0,auto) auto}.chat-actions-bar{justify-content:space-between}.chat-actions-start{display:flex}.chat-content{min-height:0}.chat-main-body{padding-right:2px;overflow:visible}.automation-rail{min-height:auto;max-height:none}.conversation-sidebar{width:min(320px,100vw - 48px);transition:transform .22s;position:absolute;inset:12px auto 12px 12px;transform:translate(calc(-100% - 24px))}.conversation-sidebar.mobile-open{transform:translate(0)}.sidebar-close-button,.mobile-only{display:inline-flex}.settings-drawer{width:auto;inset:12px;transform:translateY(100%)}.settings-drawer.open{transform:translateY(0)}.composer-actions,.chat-actions-end,.settings-drawer-header{flex-wrap:wrap}.settings-tabs,.trigger-grid,.account-facts{grid-template-columns:1fr}}@media (width<=720px){.auth-shell{padding:12px}.auth-stage,.auth-bulletin{grid-template-columns:1fr}.auth-panel,.panel,.chat-main,.conversation-sidebar,.settings-drawer,.loading-card,.app-header{border-radius:16px}.app-header{padding:16px}.composer,.automation-rail{padding:12px}.chat-content{min-height:0}.chat-stage,.message-list-shell,.message-list{height:auto;min-height:auto}.message-list-shell{flex:none;display:block}.message-list,.message-list-shell{overflow:hidden}.message-list-inner{min-height:auto}.scroll-to-bottom-button{display:none}.message{max-width:100%}.message.user{max-width:88%}}
