@keyframes sd-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes sd-blurIn{0%{opacity:0;filter:blur(4px)}to{opacity:1;filter:blur(0)}}@keyframes sd-slideUp{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}[data-sd-animate]{animation:var(--sd-animation,sd-fadeIn) var(--sd-duration,.15s) var(--sd-easing,ease) var(--sd-delay,0s) both}@keyframes sd-markerIn{0%{color:transparent}}[data-sd-animate-marker]::marker{animation:sd-markerIn var(--sd-marker-duration,.15s) var(--sd-marker-easing,ease) var(--sd-marker-delay,0s) both}.agent-edge-button[hidden],.agent-panel[hidden]{display:none}.agent-accessible-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.agent-panel .agent-error,.agent-panel .agent-proposal-outcome.is-error{color:var(--color-critical);font-weight:400;line-height:1.5}.agent-panel :is(.agent-panel-title small,.agent-empty-state p,.agent-tool-notice,.agent-thinking,.agent-usage,.agent-panel-footer){font-weight:400}.agent-panel :is(.agent-panel-actions button,.agent-proposal-actions button,.agent-client-chip){font-weight:525}.agent-panel :is(.agent-proposal-summary,.agent-proposal-outcome){font-weight:550}.agent-panel .agent-proposal-table th{font-weight:500}@media print{.agent-accessible-status{display:none}}.agent-inline{margin:4px 0 30px}.agent-inline-composer{display:grid;grid-template-columns:28px minmax(0,1fr);gap:4px 12px;padding:16px 16px 12px;border:1px solid var(--color-divider);border-radius:14px;background:var(--color-surface-elevated);box-shadow:0 12px 32px -20px var(--color-modal-backdrop)}.agent-inline-spark{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:14px;background:var(--color-accent);color:var(--color-text-on-accent)}.agent-inline-composer textarea{min-height:56px;border:0;padding:4px 0;resize:none;background:transparent;color:var(--color-text-primary);font:inherit;font-size:16px;line-height:1.45;outline:none}.app-shell .agent-inline-composer textarea:focus-visible{outline:none}.agent-inline-bar{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:12px}.agent-inline-bar small{color:var(--color-text-muted);font-size:12px}.agent-inline-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.agent-inline-suggestions button{border:1px solid var(--color-divider);border-radius:999px;padding:6px 12px;background:var(--color-surface-primary);color:var(--color-text-secondary);font:inherit;font-size:13px;text-align:left;cursor:pointer}.agent-inline-suggestions button:hover:not(:disabled){color:var(--color-text-primary);border-color:var(--color-border-strong)}.agent-inline-thread{margin-top:16px;border:1px solid var(--color-divider);border-radius:14px;background:var(--color-surface-elevated)}.agent-inline-head{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--color-divider)}.agent-inline-head strong{margin-right:auto}.agent-inline .agent-messages{max-height:60vh}@media (max-width:640px){.agent-inline-bar small{display:none}}.chae-spark{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--color-accent);color:var(--color-text-on-accent);font-size:11px;line-height:1}.chae-composer{display:flex;flex-direction:column;gap:8px;padding:12px 12px 10px 14px;border:1px solid var(--color-divider);border-radius:12px;background:var(--color-surface-secondary)}.chae-composer:focus-within{border-color:var(--color-border-strong)}.chae-composer textarea{width:100%;resize:none;border:0;padding:0;background:transparent;color:var(--color-text-primary);font:inherit;font-size:14px;line-height:1.5}.chae-composer textarea::placeholder{color:var(--color-text-muted)}.app-shell .chae-composer textarea:focus-visible{outline:none}.chae-composer-bar{display:flex;align-items:center;justify-content:flex-end;gap:12px}.chae-composer-bar small{margin-right:auto;color:var(--color-text-muted);font-size:12px}.chae-attachments{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}.agent-message.is-user .chae-attachments{justify-content:flex-end}.agent-message .chae-attachments:not(:last-child){margin-bottom:8px}.chae-attachment{position:relative;flex:none;width:64px;height:64px;border-radius:8px;background:var(--color-surface-elevated)}.chae-attachment:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--color-divider);pointer-events:none}.chae-attachment img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}.chae-attachment-type{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:100%;color:var(--color-text-muted)}.chae-attachment-type span{color:var(--color-text-secondary);font-size:12px;font-weight:600;letter-spacing:.02em;line-height:1;white-space:nowrap}.chae-attachment-remove{position:absolute;top:4px;right:4px;z-index:1;display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:999px;background:var(--color-text-primary);color:var(--color-surface-primary);cursor:pointer}.chae-attachment-remove:before{content:"";position:absolute;inset:-6px}@media (pointer:coarse){.chae-attachment-remove:before{inset:-12px}}.chae-attachment-remove:focus-visible{outline:2px solid var(--color-focus-border);outline-offset:2px}.chae-send{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:999px;background:var(--color-accent);color:var(--color-text-on-accent);font-size:15px;font-weight:700;cursor:pointer}.chae-send:disabled{background:var(--color-surface-elevated);color:var(--color-text-disabled);cursor:default}.chae-ghost{padding:5px 10px;border:1px solid var(--color-divider);border-radius:8px;background:transparent;color:var(--color-text-secondary);font:inherit;font-size:13px;cursor:pointer}.chae-ghost:hover{color:var(--color-text-primary);background:var(--color-surface-secondary)}.app-shell main:has(>.chae-page){padding:0}.chae-page{display:flex;flex-direction:column;height:100vh;min-height:0}.chae-page-head{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 20px;border-bottom:1px solid var(--color-divider)}.chae-page-head h1{margin:0 auto 0 0;overflow:hidden;color:var(--color-text-primary);font-size:14px;font-weight:550;letter-spacing:0;white-space:nowrap;text-overflow:ellipsis}.chae-page-start{width:min(720px,100% - 32px);margin:18vh auto 0}.chae-start-label{margin:20px 0 8px;color:var(--color-text-muted);font-size:12px}.chae-start-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.chae-start-card{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--color-divider);border-radius:10px;background:transparent;color:var(--color-text-primary);font:inherit;text-align:left;cursor:pointer}.chae-start-card:hover:not(:disabled){background:var(--color-surface-secondary);border-color:var(--color-border-strong)}.chae-start-card strong{font-size:13.5px;font-weight:550}.chae-start-card span{color:var(--color-text-muted);font-size:12.5px;line-height:1.4}.chae-page-thread.agent-messages{flex:1 1 auto;width:100%;margin:0;padding:24px max(16px,calc((100% - 720px) / 2));gap:18px}.chae-page-dock{width:min(720px,100% - 32px);margin:0 auto 56px}.chae-dock{position:fixed;right:16px;bottom:14px;z-index:60;display:flex;align-items:center;gap:8px}.chae-dock.is-dev{right:64px}.chae-dock-button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 6px;border:1px solid var(--color-divider);border-radius:999px;background:var(--color-surface-primary);color:var(--color-text-secondary);font:inherit;font-size:12.5px;font-weight:550;box-shadow:var(--shadow-foundation-soft);cursor:pointer}.chae-dock-button:hover{color:var(--color-text-primary);background:var(--color-surface-secondary)}.chae-float{position:fixed;right:16px;bottom:54px;z-index:60;display:flex;flex-direction:column;width:min(400px,100vw - 32px);height:min(560px,100vh - 80px);border:1px solid var(--color-divider);border-radius:12px;background:var(--color-surface-primary);box-shadow:var(--shadow-foundation);overflow:hidden}.chae-float[hidden]{display:none}.chae-float-head{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 14px;border-bottom:1px solid var(--color-divider)}.chae-float-head strong{flex:1 1;min-width:0;overflow:hidden;font-size:13px;font-weight:550;white-space:nowrap;text-overflow:ellipsis}.chae-float-actions{display:flex;gap:2px}.chae-float-actions button{display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:var(--color-text-muted);font-size:13px;cursor:pointer}.chae-float-actions button:hover{background:var(--color-surface-elevated);color:var(--color-text-primary)}.chae-float .agent-messages{flex:1 1 auto;padding:14px}.chae-float-empty{display:flex;flex-direction:column;align-items:center;gap:6px;margin:auto 0;text-align:center;color:var(--color-text-muted);font-size:13px}.chae-float-empty strong{color:var(--color-text-primary);font-size:14px}.chae-float-empty p{margin:0 12px}.chae-float .chae-composer{margin:0 10px 10px}@media (max-width:720px){.chae-start-cards{grid-template-columns:1fr}}.chae-page-head h1{min-width:0;overflow:visible}.chae-switcher{position:relative;min-width:0;flex:1 1 auto}.chae-page-head .chae-switcher-button{max-width:min(560px,60vw)}.chae-switcher-button{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 6px;margin-left:-6px;border:0;border-radius:6px;background:transparent;color:var(--color-text-primary);font:inherit;font-size:13.5px;font-weight:550;cursor:pointer}.chae-switcher-button span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chae-switcher-button svg{flex:none;color:var(--color-text-muted)}.chae-switcher-button:hover,.chae-switcher-button[aria-expanded=true]{background:var(--color-surface-secondary)}.chae-switcher-menu{position:absolute;top:calc(100% + 4px);left:-6px;z-index:70;display:flex;flex-direction:column;width:300px;max-height:360px;overflow-y:auto;padding:4px;border:1px solid var(--color-divider);border-radius:10px;background:var(--color-surface-elevated);box-shadow:var(--shadow-foundation)}.chae-recent button,.chae-switcher-menu button{display:flex;align-items:baseline;gap:12px;width:100%;padding:7px 8px;border:0;border-radius:6px;background:transparent;color:var(--color-text-secondary);font:inherit;font-size:13px;font-weight:400;text-align:left;cursor:pointer}.chae-recent button span,.chae-switcher-menu button span{flex:1 1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chae-recent button small,.chae-switcher-menu button small{flex:none;color:var(--color-text-muted);font-size:12px}.chae-recent button:hover,.chae-switcher-menu button:hover{background:var(--color-surface-secondary);color:var(--color-text-primary)}.chae-switcher-menu button[aria-current=true]{color:var(--color-text-primary);font-weight:550}.chae-switcher-label{margin:6px 8px 2px;color:var(--color-text-muted);font-size:11.5px}.chae-recent{display:flex;flex-direction:column;margin:0 -8px;padding:0;list-style:none}.chae-icon-button{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:6px;background:transparent;color:var(--color-text-muted);cursor:pointer}.chae-icon-button:hover:not(:disabled){background:var(--color-surface-secondary);color:var(--color-text-primary)}.chae-float-actions button:disabled,.chae-icon-button:disabled{opacity:.4;cursor:default}.agent-message-text .agent-client-chip.is-icon{justify-content:center;width:20px;height:20px;margin:0 1px;padding:0;border-color:var(--color-divider);background:transparent;color:var(--color-accent);font-size:12px;vertical-align:text-bottom;cursor:pointer}.agent-message-text .agent-client-chip.is-icon:hover{border-color:var(--color-accent);background:var(--color-accent-subtle)}.app-shell{--chae-prose-font:var(--workspace-sans);--chae-prose-size:15px;--chae-prose-leading:1.6;--chae-block-gap:0.8em;--chae-turn-gap:28px}.app-shell .agent-messages{gap:var(--chae-turn-gap)}.app-shell .chae-page-thread.agent-messages{padding-top:32px;padding-bottom:32px}.app-shell .agent-message{font-size:var(--chae-prose-size);line-height:var(--chae-prose-leading)}.app-shell .agent-message.is-assistant{padding:0;border:0;background:transparent}.app-shell .agent-message.is-user{max-width:80%;padding:10px 16px;border-radius:18px;font-size:15px;line-height:1.5}.app-shell .agent-message.is-assistant :is(.agent-markdown,.agent-message-text){font-family:var(--chae-prose-font);font-size:var(--chae-prose-size);line-height:var(--chae-prose-leading)}.app-shell .agent-markdown>*+*{margin-top:var(--chae-block-gap)}.app-shell .agent-markdown [data-streamdown=ordered-list],.app-shell .agent-markdown [data-streamdown=unordered-list]{padding-left:1.4em;list-style-position:outside}.app-shell .agent-markdown [data-streamdown=list-item]{padding:.15em 0 .15em .2em}.app-shell .agent-markdown :is(h1,h2,h3,h4,h5,h6){margin-top:1.2em;font-weight:600;line-height:1.3}.app-shell .agent-markdown>:first-child{margin-top:0}.app-shell .agent-markdown h1{font-size:1.25em}.app-shell .agent-markdown h2{font-size:1.12em}.app-shell .agent-markdown :is(h3,h4,h5,h6){font-size:1em}.app-shell .agent-message.is-assistant :is(table,.agent-client-chip,.agent-proposal-card,.chae-attachments){font-family:var(--workspace-sans);font-size:14px;line-height:1.45}.app-shell .agent-tool-notice{display:flex;align-items:baseline;gap:8px;width:fit-content;max-width:100%;margin:16px 0 20px;padding:8px 12px;border-radius:10px;background:var(--color-accent-subtle);color:var(--color-text-secondary,var(--color-text-muted));font-family:var(--workspace-sans);font-size:13px;font-style:normal;line-height:1.45}.app-shell .agent-tool-notice:before{content:"✓";flex:none;color:var(--color-accent);font-weight:600}.app-shell .agent-tool-notice:has(+.agent-tool-notice){margin-bottom:0}.app-shell .agent-tool-notice+.agent-tool-notice{margin-top:6px}.app-shell :is(.agent-tool-notice,.agent-proposal-card):last-child{margin-bottom:0}.app-shell .agent-proposal-card{margin:20px 0 24px;padding:16px 18px;border:1px solid var(--color-divider);border-radius:12px;background:var(--color-surface-elevated)}.app-shell .agent-proposal-summary{margin:0 0 12px;font-weight:600}.app-shell .agent-proposal-table{margin-top:12px;font-size:13px}.app-shell .agent-proposal-table :is(td,th){padding:8px 10px;border:0;border-bottom:1px solid var(--color-divider)}.app-shell .agent-proposal-table tr:last-child td{border-bottom:0}.app-shell .agent-proposal-actions{gap:10px;margin-top:16px}.app-shell .agent-proposal-outcome{margin:14px 0 0}.agent-thinking{display:flex;align-items:center;gap:8px;min-width:0;margin:0;color:var(--color-text-muted);font-size:14px;line-height:1.5;animation:chae-working-in .2s ease-out}.agent-message>*+.agent-thinking{margin-top:8px}.chae-working-mark{flex:none;width:6px;height:6px;border-radius:50%;background:var(--color-accent);animation:chae-working-pulse 1.6s ease-in-out infinite alternate}.chae-working-text{display:flex;min-width:0}.chae-working-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:linear-gradient(90deg,var(--color-text-muted) 35%,var(--color-text-primary) 50%,var(--color-text-muted) 65%) 0 0 /300% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:chae-working-shimmer 2.2s linear infinite}.chae-working-elapsed{flex:none;white-space:pre;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}@keyframes chae-working-in{0%{opacity:0}}@keyframes chae-working-pulse{0%{opacity:.35;transform:scale(.7)}}@keyframes chae-working-shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media (prefers-reduced-motion:reduce){.agent-thinking,.chae-working-label,.chae-working-mark{animation:none}.chae-working-label{background:none;color:inherit}}