:root{color-scheme:light dark;--background: #ffffff;--surface: #ffffff;--surface-muted: #f4f5f7;--text: #202124;--muted: #62666d;--error: #a02929;--online: #26714b;--warning: #885311;--primary: #202124;--on-primary: #ffffff;--border: #e5e7eb;--link: #225cac;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,HarmonyOS Sans,PingFang SC,Microsoft YaHei,sans-serif;font-size:16px;line-height:1.55;background:var(--background);color:var(--text)}@media(prefers-color-scheme:dark){:root{--background: #18191b;--surface: #232528;--surface-muted: #2d3035;--text: #f0f1f3;--muted: #b4b9c2;--error: #ffb4ab;--online: #8adbb0;--warning: #f3c477;--primary: #f0f1f3;--on-primary: #202124;--border: #43474e;--link: #a6c8ff}}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{background:var(--background);color:var(--text);-webkit-text-size-adjust:100%}button,input,select,textarea{font:inherit}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default}button,a,input,select,textarea,summary{outline-offset:3px}:focus-visible{outline:2px solid var(--link)}h1,h2,h3,p{margin-top:0}h1{font-size:1.5rem}h2{font-size:1.05rem}h3{font-size:1rem}a{color:var(--link);text-underline-offset:3px}.tap-target{min-width:48px;min-height:48px;padding:10px 16px;border:1px solid var(--border);border-radius:12px}.primary-action,.send-button{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.secondary-action{background:var(--surface-muted);color:var(--text)}.danger-action{background:var(--error);color:var(--background);border-color:var(--error)}.icon-button{width:48px;min-width:48px;height:48px;padding:0;display:inline-grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--text);font-size:min(1.5rem,28px);line-height:1}.icon-button:hover:not(:disabled){background:var(--surface-muted)}.conversation-refresh.is-refreshing svg{animation:conversation-refresh-turn 1s linear infinite}.conversation-refresh-feedback{margin:0 0 8px;color:var(--muted);font-size:.75rem}@keyframes conversation-refresh-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.conversation-refresh.is-refreshing svg{animation:none}}.mobile-shell{width:min(100%,760px);height:var(--app-height, 100dvh);min-height:0;margin:0 auto;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;background:var(--background)}.top-bar{position:relative;z-index:20;min-height:64px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:8px;align-items:center;padding:calc(4px + env(safe-area-inset-top)) 12px 4px;background:var(--background)}.top-bar-title{min-width:0;text-align:center}.top-bar-title h1{margin:0;overflow:hidden;font-size:1rem;font-weight:650;line-height:1.3;overflow-wrap:anywhere}.top-bar-title h1:not(:has(>.top-bar-title-button)),.top-bar-title-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;white-space:normal}.top-bar-title p{margin:2px 0 0;color:var(--muted);font-size:.75rem;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-bar-actions{display:flex;align-items:center;justify-content:flex-end;min-width:48px}.top-bar-context{grid-column:1 / -1;min-width:0}.web-update-notice{grid-column:1 / -1;margin:0;padding:7px 10px;border-radius:10px;background:var(--surface-muted);color:var(--muted);font-size:.75rem;text-align:center}.app-content{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 20px calc(24px + env(safe-area-inset-bottom))}.phone-shell{width:min(100%,760px);min-height:100dvh;margin:auto;padding:calc(20px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom))}.page-header,.header-actions,.section-heading,.approval-actions{display:flex;align-items:center;gap:8px}.page-header,.section-heading{justify-content:space-between}.section-heading h1,.section-heading h2,.section-heading h3{margin:0}.header-actions{flex-wrap:wrap}.eyebrow,.help-text,.connection-state{color:var(--muted);font-size:.875rem}.help-text,.form-error{margin-bottom:0}.form-error{color:var(--error)}.inline-state,.confirmation{margin:12px 0;padding:16px;border-radius:14px;background:var(--surface-muted);overflow-wrap:anywhere}.inline-state p:last-child{margin-bottom:0}.error-state{color:var(--error)}.error-state button{margin-top:8px}.confirmation{border:1px solid var(--warning)}.skeleton-stack{display:grid;gap:12px;padding-block:16px}.skeleton-stack span{display:block;height:72px;border-radius:14px;background:var(--surface-muted)}.form-field{display:grid;gap:8px;margin:0 0 20px;min-width:0;font-size:.875rem;font-weight:550}fieldset.form-field{border:0;padding:0}fieldset.form-field legend{margin-bottom:10px;padding:0}.form-field input:not([type=radio]):not([type=checkbox]),.form-field textarea,.form-field select{width:100%;min-height:48px;border:1px solid var(--border);border-radius:12px;padding:11px 12px;background:var(--surface);color:var(--text);font-size:max(16px,1rem)}.form-field textarea{min-height:100px;resize:vertical}.form-field input[type=radio],.form-field input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0 8px 0 0;padding:0;accent-color:var(--primary)}.form-field>label{display:flex;align-items:center;min-height:48px;font-weight:400;overflow-wrap:anywhere}.segmented-control{display:flex;gap:8px}.segmented-control label{flex:1;min-height:48px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted)}.segmented-control label:has(input:checked){border-color:var(--primary);color:var(--text)}.attachment-list{display:grid;gap:6px}.attachment-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:48px;padding:0 4px;border-bottom:1px solid var(--border);font-size:.8125rem}.attachment-row>span{min-width:0;overflow-wrap:anywhere}.attachment-row button{flex-shrink:0;min-width:48px;min-height:48px;border:0;background:transparent;color:var(--muted)}.drawer-layer{position:fixed;z-index:60;inset:0}.drawer-backdrop{position:absolute;inset:0;width:100%;border:0;background:#00000057}.navigation-drawer{position:absolute;inset-block:0;inset-inline-start:0;width:min(90vw,344px);display:flex;flex-direction:column;gap:8px;padding:calc(8px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));background:var(--surface);box-shadow:16px 0 48px #0000001f}.drawer-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;padding-left:10px}.drawer-header strong{font-size:1.0625rem;letter-spacing:-.02em}.drawer-engine-switch{display:grid;flex:0 0 auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--border);border-radius:14px;background:var(--surface-muted)}.drawer-engine-button{display:flex;flex-wrap:wrap;min-width:0;min-height:48px;align-items:center;justify-content:center;gap:6px;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:.875rem;font-weight:550;white-space:nowrap}.drawer-engine-button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000014}.drawer-readonly-badge{flex:0 0 auto;padding:2px 5px;border-radius:5px;background:var(--border);color:var(--muted);font-size:.6875rem;font-weight:400;line-height:1.35;white-space:nowrap}.drawer-primary,.drawer-navigation button,.drawer-scroll button,.drawer-settings{width:100%;min-height:48px;padding:12px;border:0;border-radius:12px;background:transparent;text-align:left}.drawer-primary{flex:0 0 auto;background:var(--surface-muted);font-size:.875rem;font-weight:600}.drawer-navigation{display:flex;flex:0 0 auto;gap:4px}.drawer-navigation button{flex:1;min-width:0;padding:8px 10px;text-align:center;font-size:.8125rem}.drawer-navigation button[aria-current=page],.drawer-settings[aria-current=page]{background:var(--surface-muted)}.drawer-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.drawer-scroll section+section{margin-top:14px}.drawer-scroll h2{margin:8px 10px 4px;color:var(--muted);font-size:.6875rem;font-weight:500}.drawer-scroll button{display:block;padding:8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem}.drawer-claude-heading{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px;padding-left:10px;color:var(--muted);font-size:.75rem}.drawer-claude-heading h2{margin-block:0}.drawer-claude-heading button{width:auto;min-height:48px;color:var(--muted);font-size:.75rem}.drawer-see-all{padding:8px 10px;border:0;border-radius:8px;background:transparent}.drawer-see-all:hover{background:var(--surface-muted)}.drawer-empty{margin:12px 10px;color:var(--muted);font-size:.8125rem;line-height:1.5}.drawer-scroll .drawer-session-button{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-height:64px;white-space:normal;text-align:left}.drawer-session-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-session-meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.6875rem}.drawer-session-state{flex:0 0 auto}.drawer-session-project{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drawer-scroll button:hover,.drawer-settings:hover{background:var(--surface-muted)}.drawer-scroll button[aria-current=page]{background:var(--surface-muted);font-weight:550}.drawer-error{padding:12px;color:var(--muted);font-size:.8125rem}.drawer-settings{flex:0 0 auto;border-top:1px solid var(--border);border-radius:0;font-size:.875rem}.dashboard-shell h2{margin:24px 0 8px;font-size:.8125rem;color:var(--muted);font-weight:500}.project-list{display:grid}.project-card{display:flex;align-items:center;gap:8px;min-width:0;border-bottom:1px solid var(--border);padding:8px 0}.project-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:0;border-radius:12px;background:transparent;padding:12px 4px;text-align:left;min-height:64px}.project-open:hover{background:var(--surface-muted)}.project-copy{min-width:0;display:grid;gap:4px}.project-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9375rem;font-weight:600}.project-copy .task-status,.project-queue{font-size:.75rem;color:var(--muted);font-weight:400}.project-new{min-width:48px;min-height:48px;padding:8px 12px;border:0;border-radius:12px;background:var(--surface-muted);color:var(--text);font-size:.8125rem}.service-details{margin-bottom:18px;color:var(--muted);font-size:.8125rem}.service-summary{min-height:48px;cursor:pointer;padding:12px 0}.health-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:12px;border-radius:12px;background:var(--surface-muted);font-size:.8125rem}.health-summary strong{font-weight:500}.status-online{color:var(--online)}.status-degraded,.stale-label{color:var(--warning)}.task-status{margin:0;font-size:.8125rem}.search-field{position:relative;display:block;margin:4px 0 12px}.search-field>label{display:block}.search-field input{width:100%;min-height:48px;padding:12px 16px;border:0;border-radius:14px;background:var(--surface-muted);color:var(--text)}.search-field:has(.search-clear) input{padding-right:52px}.search-clear{position:absolute;top:0;right:0;width:48px;height:48px;padding:0;border:0;border-radius:14px;background:transparent;color:var(--muted);font-size:1.25rem}.project-search{margin-top:0}.conversation-list{display:grid}.source-filters{display:flex;gap:4px;margin:4px 0 12px}.source-filter{flex:1;min-width:0;min-height:48px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:var(--muted)}.source-filter[aria-pressed=true],.source-filter[aria-selected=true]{background:var(--surface-muted);color:var(--text);font-weight:600}.source-filter:hover{background:var(--surface-muted)}.history-search-note{margin:4px 4px 12px;color:var(--muted);font-size:.8125rem}.computer-thread-shell .app-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}.computer-thread-shell .top-bar{min-height:0;gap:0 4px;padding-bottom:8px;border-bottom:1px solid var(--border)}.computer-thread-shell .top-bar-title{text-align:left}.computer-thread-shell .top-bar-context{padding:0 4px}.computer-thread-shell .computer-thread-context{display:flex;align-items:center;gap:12px;min-width:0;min-height:26px;color:var(--muted);font-size:.75rem}.computer-thread-shell .computer-thread-project{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.computer-thread-shell .computer-thread-status{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;background:var(--surface-muted);line-height:1.45;white-space:nowrap}.computer-thread-shell .computer-thread-status:before{content:"";flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:currentColor}.computer-thread-shell .computer-thread-status.computer-runtime-status--normal{color:var(--online)}.computer-thread-shell .chat-scroll{padding:16px 16px 20px}.computer-thread-shell .computer-history-controls{padding-block:0}.computer-thread-shell .computer-history-controls:empty{display:none}.computer-thread-shell .user-message{padding:10px 14px;border-radius:18px 18px 6px}.computer-thread-shell .message-composer{margin:6px 12px calc(8px + env(safe-area-inset-bottom));padding:6px;border-radius:24px;box-shadow:none}.computer-question-list{flex:0 1 auto;min-height:0;max-height:min(45svh,max(96px,calc(var(--app-height, 100dvh) - 300px)));overflow-y:auto}.computer-question-list .interaction-card,.computer-question-record-list .interaction-card{margin:8px 4px}.computer-question-record-list .interaction-card:first-child{margin-top:0}.computer-question-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;background:var(--surface);border-bottom:1px solid var(--border)}.computer-question-heading h3{margin:0}.computer-question-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.computer-question-heading .primary-action{flex-shrink:0}.computer-question-list .form-field>.tap-target{display:flex;align-items:center;gap:8px}.computer-thread-shell .chat-scroll[aria-busy=true]{visibility:visible}.computer-thread-meta{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin:0;padding:8px 4px;color:var(--muted);font-size:.875rem;overflow-wrap:anywhere}.computer-relay-summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}.computer-relay-summary .conversation-send-hint{flex:1 1 180px}.computer-relay-summary .secondary-action{flex-shrink:0;font-size:.8125rem}.computer-runtime-status--waiting,.conversation-send-hint.computer-runtime-status--waiting{color:var(--warning)}.computer-runtime-status--error,.conversation-send-hint.computer-runtime-status--error{color:var(--error)}.computer-history-notice{flex-shrink:0;margin:0;padding:10px 4px;color:var(--muted);font-size:.8125rem;overflow-wrap:anywhere}.computer-history-controls{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 4px}.conversation-row{width:100%;min-height:90px;display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--border);padding:16px 0;background:transparent;text-align:left}.conversation-main{min-width:0;display:grid;gap:5px}.conversation-main strong,.conversation-excerpt,.conversation-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-main strong{font-size:.9375rem;font-weight:600}.conversation-excerpt{color:var(--muted);font-size:.8125rem}.conversation-meta{color:var(--muted);font-size:.75rem}.row-chevron{color:var(--muted)}.empty-state,.continuation-state{padding:64px 16px;text-align:center;color:var(--muted)}.empty-state strong{display:block;margin-bottom:8px;color:var(--text)}.new-chat-shell .app-content,.thread-shell .app-content{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0}.new-task-form{display:flex;flex:1;min-height:0;flex-direction:column;margin:0;padding:0;border:0;background:var(--background)}.empty-conversation{display:flex;flex:1;min-height:40px;flex-direction:column;align-items:center;justify-content:center;padding:20px 28px;color:var(--muted);text-align:center}.empty-conversation strong{color:var(--text);font-size:1.55rem;font-weight:600;letter-spacing:-.04em}.empty-conversation p{margin:10px 0 0;max-width:26ch;font-size:.875rem}.new-task-form>.help-text,.new-task-form>.form-error,.new-task-form>.send-uncertain{margin:8px 20px}.message-composer{flex-shrink:0;margin:8px 12px calc(12px + env(safe-area-inset-bottom));padding:8px;border:1px solid var(--border);border-radius:26px;background:var(--surface-muted);box-shadow:0 2px 8px #00000008}.composer-row{display:flex;align-items:flex-end;gap:4px;min-width:0}.composer-row textarea{flex:1;width:100%;min-width:0;min-height:max(48px,calc(1.5em + 24px));max-height:min(12rem,max(calc(1.5em + 24px),calc(var(--app-height, 100dvh) - 300px)));padding:12px 8px;resize:none;border:0;outline-offset:-2px;border-radius:12px;background:transparent;color:var(--text);font-size:max(16px,1rem);line-height:1.5}.composer-row textarea::placeholder{color:var(--muted)}.composer-row .icon-button{flex:0 0 48px}.composer-expand-button{color:var(--muted)}.composer-expanded-input{display:block;width:100%;min-height:calc(1.5em + 26px);height:max(120px,calc(var(--app-height, 100dvh) - 290px));padding:12px;resize:none;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-size:max(16px,1rem);line-height:1.5}.composer-expanded-input+.help-text{margin-top:8px}.send-button{flex:0 0 48px;width:48px;height:48px;min-height:48px;display:inline-grid;place-items:center;padding:0;border:0;border-radius:50%;font-size:.875rem;font-weight:600}.send-button:disabled{opacity:.35}.send-button svg{width:22px;height:22px}.composer-summary{padding:2px 8px 4px;min-width:0}.composer-summary-button{min-width:48px;min-height:48px;max-width:100%;padding:8px 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:12px;background:var(--surface);color:var(--text);font-size:.8125rem}.composer-status{margin:0 8px 6px;color:var(--muted);font-size:.75rem}.composer-attachments{max-height:min(144px,max(56px,calc(var(--app-height, 100dvh) - 280px)));overflow-y:auto;padding:2px 8px}.options-sheet-overlay{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center;height:var(--app-height, 100dvh);background:#0000005c}.options-sheet{display:flex;flex-direction:column;width:min(100%,640px);max-height:calc(var(--app-height, 100dvh) - 24px - env(safe-area-inset-top));overflow:hidden;border-radius:24px 24px 0 0;background:var(--surface);box-shadow:0 -16px 50px #0000001a}.options-sheet-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:12px 12px 8px 24px;border-bottom:1px solid var(--border)}.options-sheet-header h2{margin:0;font-size:1rem;font-weight:600}.options-sheet-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 16px}.options-sheet-footer{flex-shrink:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface)}.options-sheet-footer button{width:100%;min-height:48px}.options-sheet-content .help-text{font-size:.8125rem;font-weight:400}.composer-skills{border-top:1px solid var(--border);margin-top:20px}.composer-skills>summary{min-height:48px;padding:12px 0;cursor:pointer;font-size:.875rem}.file-picker{position:relative;display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;padding:12px;border:1px dashed var(--border);border-radius:12px;background:var(--surface-muted);color:var(--text);cursor:pointer}.file-picker .file-picker-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-picker:focus-within{outline:2px solid var(--link);outline-offset:3px}.chat-scroll{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;gap:20px;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 24px}.chat-scroll[aria-busy=true]{visibility:hidden}.chat-message{min-width:0;max-width:100%;overflow-wrap:anywhere}.message-author{display:block;margin-bottom:4px;color:var(--muted);font-size:.75rem;line-height:1.4}.user-message{align-self:flex-end;max-width:88%;padding:10px 14px;border-radius:18px 18px 6px;background:var(--surface-muted)}.user-message p{margin:0;white-space:pre-wrap}.user-message .message-author{display:none}.assistant-message{align-self:stretch;min-width:0;max-width:100%;background:transparent;box-shadow:none}.chat-message>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px;font-size:.75rem;line-height:1.4;color:var(--muted)}.assistant-markdown{font-size:1rem;line-height:1.7;overflow-wrap:anywhere}.assistant-markdown>:first-child{margin-top:0}.assistant-markdown>:last-child{margin-bottom:0}.assistant-markdown p{margin:0 0 12px;white-space:normal}.assistant-markdown h1,.assistant-markdown h2,.assistant-markdown h3,.assistant-markdown h4{margin:20px 0 8px;line-height:1.45;font-weight:650}.assistant-markdown h1{font-size:1.3rem}.assistant-markdown h2{font-size:1.15rem}.assistant-markdown h3{font-size:1.05rem}.assistant-markdown ul,.assistant-markdown ol{margin:8px 0 12px;padding-left:24px}.assistant-markdown li{padding-left:2px;margin:4px 0}.assistant-markdown li>p{margin-bottom:4px}.assistant-markdown blockquote{margin:12px 0;border-left:3px solid var(--border);padding:4px 14px;color:var(--muted)}.assistant-markdown code{padding:2px 5px;border-radius:5px;background:var(--surface-muted);font-family:ui-monospace,Cascadia Code,Consolas,monospace;font-size:.875em}.markdown-code-block{max-width:100%;min-width:0;margin:12px 0;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted)}.code-block-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;min-height:44px;padding:0 4px 0 12px;border-bottom:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:.75rem;line-height:1.4}.code-block-label{flex:1 1 auto;min-width:0;padding-block:4px;overflow-wrap:anywhere}.code-block-hint{flex:0 0 auto}.code-block-actions{display:flex;flex:0 0 auto;margin-inline-start:auto}.code-block-toolbar button{min-height:44px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:.75rem}.code-block-toolbar button[aria-pressed=true]{color:var(--link)}.markdown-code-block pre{margin:0;padding:12px 14px;overflow-x:auto;white-space:pre;line-height:1.6;font-size:.875rem}.markdown-code-block .code-block-content{display:block;width:max-content;min-width:100%}.markdown-code-block pre.is-wrapped{white-space:pre-wrap;overflow-wrap:anywhere}.markdown-code-block pre.is-wrapped .code-block-content{width:auto}.markdown-code-block pre code{padding:0;background:transparent;font-size:inherit}.markdown-table{margin:12px 0}.markdown-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:12px}.markdown-table-scroll table{width:100%;border-collapse:collapse;font-size:.875rem;line-height:1.5}.markdown-table-scroll th,.markdown-table-scroll td{min-width:min(6em,35vw);padding:8px 10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}.markdown-table-scroll th+th,.markdown-table-scroll td+td{border-left:1px solid var(--border)}.markdown-table-scroll tr:last-child td{border-bottom:0}.markdown-table-scroll th{background:var(--surface-muted);color:var(--text);font-weight:600}.assistant-markdown .markdown-scroll-hint{margin:4px 2px 0;color:var(--muted);font-size:.75rem;line-height:1.4}.markdown-image-placeholder,.message-length-notice{color:var(--muted);font-size:.8125rem}.message-expand{min-height:44px;margin-top:4px;padding:10px 0;border:0;background:transparent;color:var(--link);font-size:.875rem}.message-copy{display:block;min-height:44px;margin-top:4px;padding:8px 10px 8px 0;border:0;background:transparent;color:var(--muted);font-size:.8125rem}.assistant-markdown .message-copy-error{margin:0;font-size:.8125rem}.message-footer{display:grid;gap:0;margin-top:4px}.assistant-markdown .message-footer p{margin:0;color:var(--muted);font-size:.75rem;line-height:1.5}.message-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px}.message-actions .message-expand,.message-actions .message-copy{display:inline-block;min-height:44px;margin:0;padding:8px 0}.message-actions .message-copy-error,.local-doc-panel .message-copy-error{flex-basis:100%}.local-doc-trigger{display:inline;padding:0;border:0;background:transparent;color:var(--link);font:inherit;text-align:inherit;text-decoration:underline dotted;text-underline-offset:3px;overflow-wrap:anywhere}.local-doc-panel{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:6px 0;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted);font-size:.8125rem;line-height:1.5}.local-doc-note{flex-basis:100%;color:var(--muted)}.assistant-markdown .local-doc-path{flex-basis:100%;padding:0;background:transparent;overflow-wrap:anywhere;word-break:break-all}.local-doc-copy{min-height:40px;padding:6px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:.8125rem}.composer-receipt-status{flex:1 1 100%;min-width:0}.composer-receipt{color:var(--muted);font-size:.75rem}.composer-receipt summary{display:flex;align-items:center;gap:8px;min-height:40px;cursor:pointer;list-style:none}.composer-receipt summary::-webkit-details-marker{display:none}.composer-receipt-more{color:var(--link)}.composer-receipt[open] .composer-receipt-more{display:none}.composer-receipt p{margin:0 0 6px}.top-bar-title-button{display:inline-flex;align-items:center;max-width:100%;min-height:44px;padding:2px 4px;vertical-align:top;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;text-align:inherit}.top-bar-title-text{min-width:0}.top-bar-title-button:hover{background:var(--surface-muted)}.conversation-info{display:grid;gap:12px;margin:0 0 12px}.conversation-info>div{display:grid;gap:2px;min-width:0}.conversation-info dt{color:var(--muted);font-size:.75rem}.conversation-info dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.conversation-info-title{max-height:30vh;overflow-y:auto}.conversation-info-search{width:100%;margin-top:12px}.conversation-search{flex-shrink:0;min-width:0;margin:4px 12px 0;padding:2px 2px 0 8px;border:1px solid var(--border);border-radius:16px;background:var(--surface-muted)}.conversation-search-row{display:flex;flex-wrap:wrap;align-items:center;min-width:0}.conversation-search-field{display:flex;flex:1 1 7em;align-items:center;min-width:0;font-size:max(16px,1rem)}.conversation-search-field input{flex:1;min-width:0;min-height:44px;padding:8px 4px;border:0;outline-offset:-2px;border-radius:8px;background:transparent;color:var(--text);font-size:inherit;line-height:1.4}.conversation-search-field input::-webkit-search-cancel-button{display:none;-webkit-appearance:none;appearance:none}.conversation-search-controls{display:flex;flex:0 0 auto;align-items:center;margin-inline-start:auto}.conversation-search-row .icon-button{width:44px;min-width:44px;height:44px;color:var(--muted)}.conversation-search-row .icon-button:not(:disabled):hover{color:var(--text)}.conversation-search-row .icon-button:disabled{opacity:.35}.conversation-search-close{margin-inline-start:2px}.conversation-search-count{flex-shrink:0;min-width:4.5em;padding-inline:4px;color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.conversation-search-note{margin:0 0 6px 4px;color:var(--muted);font-size:.75rem;overflow-wrap:anywhere}[data-search-current]{outline:2px solid var(--link);outline-offset:4px;border-radius:12px}.jump-latest-layer{position:relative;z-index:10;flex:0 0 0;height:0}.jump-latest{position:absolute;bottom:10px;left:50%;max-width:calc(100% - 32px);min-height:44px;padding:8px 16px;overflow:hidden;transform:translate(-50%);border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font-size:.8125rem;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 4px 14px #00000024}.execution-status{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 12px;padding:10px 12px;border-radius:12px;background:var(--surface-muted)}.execution-status-copy{min-width:0}.execution-status-label{font-size:.8125rem;font-weight:550}.execution-status-hint{margin:2px 0 0;font-size:.75rem;color:var(--muted);overflow-wrap:anywhere}.execution-status[data-status=failed]{color:var(--error)}.execution-status[data-status=waiting_approval]{color:var(--warning)}.execution-status[data-status=completed],.execution-status[data-status=canceled],.execution-status[data-status=interrupted]{padding-block:2px;background:transparent;color:var(--muted)}.sync-button{flex-shrink:0;min-width:48px;min-height:48px;padding:8px 12px;border:0;border-radius:10px;background:var(--surface);color:var(--text);font-size:.8125rem}.conversation-context{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:10px;padding:0 20px;color:var(--muted);font-size:.75rem}.conversation-context{min-height:24px}.conversation-context>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-context button,.conversation-stop{min-width:48px;min-height:48px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);font-size:.8125rem}.conversation-stop{flex-shrink:0}.conversation-send-hint{margin:0;color:var(--muted);font-size:.75rem}.conversation-handoff-feedback{flex-shrink:0;margin:0;padding:0 20px;color:var(--muted);font-size:.8125rem;line-height:1.5}.load-older{align-self:center;min-height:48px;border:0;background:transparent;color:var(--link);font-size:.8125rem}.approval-card,.interaction-card,.activity-card{padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.approval-card h3,.interaction-card h3{margin:0 0 10px;font-size:.9375rem}.approval-actions{flex-wrap:wrap;margin-top:12px}.approval-actions button{flex:1}.safe-output,.diff-output{max-width:100%;max-height:420px;margin:8px 0;padding:12px;overflow:auto;border-radius:10px;background:var(--surface-muted);white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8125rem}.diff-output{white-space:pre;overflow-x:auto}.diff-output code{display:block;min-width:max-content}.diff-add{color:var(--online)}.diff-remove{color:var(--error)}.diff-file{color:var(--text);font-weight:600}.diff-context{color:var(--text)}.conversation-details{flex-shrink:0;padding:0 20px;background:var(--background)}.conversation-details>summary{display:flex;align-items:center;min-height:44px;color:var(--muted);font-size:.8125rem;cursor:pointer}.conversation-details .diff-panel{max-height:40dvh;overflow-y:auto}.conversation-details:not([open]) .diff-panel{display:none}.task-menu{position:static}.task-menu summary{display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:50%;list-style:none;background:transparent;color:var(--muted);cursor:pointer}.task-menu summary svg{display:block;width:20px;height:20px}.task-menu summary:hover,.task-menu[open]>summary{background:var(--surface-muted);color:var(--text)}.task-menu summary::-webkit-details-marker{display:none}.task-menu[open] .task-menu-actions{position:absolute;z-index:30;inset-inline-end:8px;top:calc(100% - 4px);min-width:min(164px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(var(--app-height, 100dvh) - 100% - 4px);overflow-y:auto;overscroll-behavior:contain;display:grid;align-content:start;padding:6px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 12px 36px #0000001f}.task-menu-actions button{width:100%;min-height:48px;border:0;border-radius:8px;padding:10px 14px;background:transparent;text-align:left;overflow-wrap:anywhere}.task-menu-actions .danger-action{color:var(--error)}.task-details-panel{position:fixed;z-index:70;inset:0;width:min(100%,760px);height:var(--app-height, 100dvh);margin-inline:auto;overflow-y:auto;overscroll-behavior:contain;padding:calc(12px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));background:var(--background);color:var(--text)}.task-details-panel>.section-heading{position:sticky;top:0;z-index:1;padding-bottom:12px;background:var(--background)}.task-details-panel p,.connection-diagnostics p{overflow-wrap:anywhere}.process-entries{display:grid;gap:12px}.process-entry{min-width:0;padding:14px;border:1px solid var(--border);border-radius:14px}.process-entry>header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.process-entry time{color:var(--muted);font-size:.75rem}.process-entry summary{min-height:48px;display:flex;align-items:center;cursor:pointer}.connection-diagnostics{padding:4px 0 24px;margin-bottom:20px;border-bottom:1px solid var(--border)}.connection-diagnostics>h2{margin-bottom:8px}.diagnostic-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.diagnostic-actions>.primary-action{flex:1}.diagnostic-layers{display:grid;gap:10px;margin:12px 0}.diagnostic-layer{min-width:0;margin-bottom:10px;padding:12px;border:1px solid var(--border);border-radius:12px}.diagnostic-layer header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;font-size:.875rem}.diagnostic-layer strong{font-weight:550;overflow-wrap:anywhere}.diagnostic-layer p{margin:6px 0 0;font-size:.75rem}.diagnostic-tone--neutral{color:var(--muted)}.diagnostic-tone--good{color:var(--online)}.diagnostic-tone--warning{color:var(--warning)}.diagnostic-tone--error{color:var(--error)}.diagnostic-version-details{margin-top:14px;color:var(--muted);font-size:.8125rem}.diagnostic-version-details>summary{min-height:48px;cursor:pointer}.diagnostic-version-details p{overflow-wrap:anywhere}.device-card{margin:0;border-bottom:1px solid var(--border);padding:20px 0;overflow-wrap:anywhere}.device-card h2{margin-bottom:8px;font-size:1rem}.device-card p{margin-bottom:8px;color:var(--muted);font-size:.875rem}.device-card button{margin-top:8px}.queue-offer,.floating-confirmation{position:fixed;z-index:50;inset-inline:12px;bottom:calc(120px + env(safe-area-inset-bottom));max-width:700px;margin-inline:auto;padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:0 12px 36px #0000002e}.queue-offer p{margin-bottom:12px}.send-uncertain{flex-shrink:0;max-height:28dvh;overflow-y:auto;margin:4px 12px;padding:12px;border-radius:12px;background:var(--surface-muted)}.send-uncertain p{margin:0 0 6px;font-size:.875rem}.external-warning{padding:12px;border-left:3px solid var(--warning);color:var(--warning);background:var(--surface-muted);font-size:.875rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.image-drafts{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;max-width:100%;overscroll-behavior-x:contain}.image-draft{position:relative;flex:0 0 132px;min-width:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface-muted)}.image-draft-preview{display:block;width:100%;height:76px;object-fit:cover}.image-draft-copy{display:grid;gap:2px;padding:6px 8px}.image-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem}.image-draft-copy .help-text{margin:0;font-size:.6875rem}.image-remove{position:absolute;top:0;right:0;min-width:44px;min-height:44px;border-radius:0 10px;background:var(--surface);color:var(--text)}.image-upload-error{display:grid;gap:4px;padding:0 8px 8px}.image-upload-error .form-error{font-size:.75rem;overflow-wrap:anywhere;margin:0}.image-upload-error .tap-target{padding:4px;font-size:.75rem}.image-placeholder{display:grid;place-items:center;color:var(--muted)}.image-total{margin:2px 0 0;font-size:.6875rem}.image-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:8px;min-width:0;max-width:420px;margin-top:8px}.authenticated-image{min-width:0}.image-tile,.image-tile-placeholder{width:100%;min-height:148px;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted);overflow:hidden;color:var(--text)}.image-tile{display:grid;grid-template-rows:120px auto;padding:0;text-align:left}.image-tile img{display:block;width:100%;height:120px;object-fit:contain}.image-tile .image-name{padding:6px 8px}.image-tile-placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px;text-align:center}.image-tile-placeholder .help-text{margin:0}.image-preview-backdrop{position:fixed;z-index:100;inset:0;height:var(--app-height, 100dvh);display:grid;place-items:center;padding:calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));background:#000000d9}.image-preview-dialog{display:flex;flex-direction:column;width:min(100%,900px);max-height:100%;min-height:0;color:var(--text);border-radius:12px;overflow:hidden;background:var(--surface)}.image-preview-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding-left:12px}.image-preview-dialog>header .image-name{font-size:.875rem}.image-preview-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}.image-preview-scroll img{display:block;max-width:100%;max-height:calc(var(--app-height, 100dvh) - 100px);object-fit:contain;margin:auto}@media(min-width:761px){.mobile-shell{border-inline:1px solid var(--border)}.chat-scroll{padding-inline:32px}.message-composer{margin-inline:24px}}@media(max-width:360px){.top-bar{padding-inline:6px;gap:4px}}:root[data-short-viewport] .top-bar-title h1:not(:has(>.top-bar-title-button)),:root[data-short-viewport] .top-bar-title-text{-webkit-line-clamp:1;line-clamp:1}@media(max-height:500px){.top-bar-title h1:not(:has(>.top-bar-title-button)),.top-bar-title-text{-webkit-line-clamp:1;line-clamp:1}}:root[data-short-viewport] .conversation-search-row{flex-wrap:nowrap}:root[data-short-viewport] .conversation-search-field{flex-basis:0}:root[data-short-viewport] .conversation-search-count{min-width:2ch}:root[data-short-viewport] .conversation-search-count-unit{display:none}@media(max-height:500px){.empty-conversation{padding:10px 20px}.empty-conversation strong{font-size:1.125rem}.empty-conversation p{display:none}.top-bar{min-height:56px}.message-composer{margin-bottom:calc(6px + env(safe-area-inset-bottom))}.chat-scroll{padding-block:8px;gap:12px}.execution-status{padding:2px 10px}.execution-status-hint{max-height:40px;overflow-y:auto}.conversation-search-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-search-note.is-quiet{position:absolute;width:1px;height:1px;margin:-1px;padding:0;clip:rect(0,0,0,0);border:0}.conversation-search~.jump-latest-layer{display:none}}:root[data-short-viewport] .empty-conversation{padding:10px 20px}:root[data-short-viewport] .empty-conversation strong{font-size:1.125rem}:root[data-short-viewport] .empty-conversation p{display:none}:root[data-short-viewport] .top-bar{min-height:56px}:root[data-short-viewport] .message-composer{margin-bottom:calc(6px + env(safe-area-inset-bottom))}:root[data-short-viewport] .chat-scroll{padding-block:8px;gap:12px}:root[data-short-viewport] .execution-status{padding:2px 10px}:root[data-short-viewport] .execution-status-hint{max-height:40px;overflow-y:auto}:root[data-short-viewport] .conversation-search-note{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:root[data-short-viewport] .conversation-search-note.is-quiet{position:absolute;width:1px;height:1px;margin:-1px;padding:0;clip:rect(0,0,0,0);border:0}:root[data-short-viewport] .conversation-search~.jump-latest-layer{display:none}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
