.chat-route{background:var(--bg);height:100dvh;min-height:100dvh;color:var(--ink)}.chat-route>.auth-scope,.chat-route>.auth-scope>*{height:100%}.chat-route>.auth-status{max-width:var(--content-max);margin:var(--space-6) auto;padding:var(--space-5)}.chat-app{background:var(--bg);height:100dvh;max-height:100dvh;color:var(--ink);font-family:var(--font-chat);font-size:var(--text-base);line-height:1.6;display:flex;overflow:hidden}.chat-skip-link{left:var(--space-4);top:calc(var(--space-6) * -2);z-index:200;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--accent);color:var(--accent-ink);font-size:var(--text-sm);transition:top var(--motion);text-decoration:none;position:fixed}.chat-skip-link:focus-visible{top:var(--space-4)}.chat-sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.chat-button{justify-content:center;align-items:center;gap:var(--space-2);min-height:40px;padding:var(--space-2) var(--space-4);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font-family:inherit;font-size:var(--text-sm);cursor:pointer;transition:background-color var(--motion), border-color var(--motion), color var(--motion), opacity var(--motion), box-shadow var(--motion);font-weight:600;line-height:1.2;display:inline-flex}.chat-button-sm{min-height:32px;padding:calc(var(--space-1) + 2px) var(--space-3)}.chat-button:hover:not(:disabled){background:var(--surface-2);border-color:var(--line)}.chat-button-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.chat-button-primary:hover:not(:disabled){background:color-mix(in srgb, var(--accent) 86%, var(--surface));border-color:var(--accent)}.chat-button-ghost{background:0 0;border-color:#0000}.chat-button-ghost:hover:not(:disabled){background:var(--surface-2)}.chat-button-danger{background:var(--danger);border-color:var(--danger);color:var(--accent-ink)}.chat-button-danger:hover:not(:disabled){background:color-mix(in srgb, var(--danger) 86%, var(--ink));border-color:var(--danger)}.chat-button:disabled{opacity:.45;cursor:not-allowed}.chat-button.is-busy{cursor:progress}.chat-icon-button{border-radius:var(--radius-pill);width:34px;height:34px;color:var(--muted);cursor:pointer;transition:background-color var(--motion), color var(--motion), border-color var(--motion), opacity var(--motion);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;padding:0;display:inline-flex}.chat-icon-button-sm{width:28px;height:28px}.chat-icon-button:hover:not(:disabled){background:var(--surface-2);color:var(--ink)}.chat-icon-button:disabled{opacity:.35;cursor:not-allowed}.chat-input{width:100%;min-width:0;min-height:42px;padding:var(--space-2) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:var(--text-sm);transition:border-color var(--motion), box-shadow var(--motion)}.chat-input::placeholder{color:var(--muted);opacity:.8}.chat-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);outline:none}.chat-input[aria-invalid=true]{border-color:var(--danger)}.chat-app :focus-visible,.chat-dialog-layer :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.chat-viewer :focus-visible{outline-color:var(--accent-soft)}.chat-sidebar{z-index:20;flex-direction:column;flex:0 0 var(--sidebar-width);width:var(--sidebar-width);border-right:1px solid var(--line);background:var(--surface-2);min-height:0;display:flex;position:relative}.chat-sidebar-inner{gap:var(--space-3);height:100%;min-height:0;padding:var(--space-3);flex-direction:column;display:flex}.chat-sidebar-top{justify-content:space-between;align-items:center;gap:var(--space-2);min-height:40px;display:flex}.chat-sidebar-top-actions{align-items:center;gap:var(--space-1);display:flex}.chat-brand{align-items:center;gap:var(--space-2);min-width:0;color:var(--ink);font-size:var(--text-lg);letter-spacing:-.03em;font-weight:700;text-decoration:none;display:inline-flex}.chat-brand-mark{border-radius:var(--radius-pill);background:var(--accent);width:30px;height:30px;color:var(--accent-ink);font-size:var(--text-lg);place-items:center;font-weight:700;line-height:1;display:grid;position:relative}.chat-brand-mark:after{content:"";border-radius:var(--radius-pill);background:var(--accent-soft);width:6px;height:6px;position:absolute;top:5px;right:5px}.chat-user-menu{min-width:0;position:relative}.chat-user-menu>summary{align-items:center;gap:var(--space-2);max-width:150px;padding:var(--space-1);border-radius:var(--radius-pill);cursor:pointer;list-style:none;display:flex}.chat-user-menu>summary::-webkit-details-marker{display:none}.chat-user-menu>summary:hover{background:var(--surface)}.chat-avatar-sm{border-radius:var(--radius-pill);background:var(--accent);width:26px;height:26px;color:var(--accent-ink);font-size:var(--text-xs);flex:0 0 26px;place-items:center;font-weight:700;display:grid}.chat-user-name{color:var(--muted);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-user-popover{right:0;top:calc(100% + var(--space-2));z-index:40;gap:var(--space-1);min-width:160px;padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-2);flex-direction:column;display:flex;position:absolute}.chat-user-popover a,.chat-user-popover button{align-items:center;gap:var(--space-2);width:100%;padding:var(--space-2);border-radius:var(--radius-sm);color:var(--ink);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer;background:0 0;border:0;text-decoration:none;display:flex}.chat-user-popover a:hover,.chat-user-popover button:hover{background:var(--surface-2)}.chat-drawer-close{display:none}.chat-new-button{justify-content:flex-start;width:100%}.chat-search{color:var(--muted);align-items:center;display:flex;position:relative}.chat-search>svg{left:var(--space-3);pointer-events:none;position:absolute}.chat-search .chat-input{padding-left:calc(var(--space-5) + var(--space-1));padding-right:calc(var(--space-5) + var(--space-1));background:var(--surface)}.chat-search .chat-icon-button{right:var(--space-1);position:absolute}.chat-search input::-webkit-search-cancel-button{display:none}.chat-session-nav{overscroll-behavior:contain;min-height:0;padding-right:var(--space-1);scrollbar-width:thin;flex:1;overflow-y:auto}.chat-session-group+.chat-session-group{margin-top:var(--space-4)}.chat-session-group h2{margin:0 0 var(--space-1);padding:0 var(--space-2);color:var(--muted);font-size:var(--text-xs);letter-spacing:.02em;font-weight:600}.chat-session-item{border-radius:var(--radius-sm);transition:background-color var(--motion);align-items:center;display:flex;position:relative}.chat-session-item:hover,.chat-session-item:focus-within{background:var(--surface)}.chat-session-item.is-active{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}.chat-session-link{min-width:0;padding:var(--space-2) var(--space-2);padding-right:calc(var(--space-6) + var(--space-2));border-radius:var(--radius-sm);color:var(--ink);flex-direction:column;flex:1;text-decoration:none;display:flex}.chat-session-title{font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.chat-session-time{color:var(--muted);font-size:var(--text-xs);line-height:1.3}.chat-session-actions{right:var(--space-1);padding-left:var(--space-2);border-radius:var(--radius-sm);background:var(--surface);opacity:0;transition:opacity var(--motion);gap:0;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.chat-session-item:hover .chat-session-actions,.chat-session-item:focus-within .chat-session-actions,.chat-session-item.is-active .chat-session-actions{opacity:1}.chat-load-more{width:100%;margin-top:var(--space-2)}.chat-load-earlier{padding:var(--space-2) 0 var(--space-3);justify-content:center;display:flex}.chat-sidebar-empty,.chat-sidebar-error{gap:var(--space-1);padding:var(--space-4) var(--space-2);color:var(--muted);font-size:var(--text-sm);text-align:center;flex-direction:column;display:flex}.chat-sidebar-empty p,.chat-sidebar-error p{color:var(--ink);margin:0;font-weight:600}.chat-sidebar-empty span{font-size:var(--text-xs)}.chat-sidebar-error{align-items:center}.chat-sidebar-foot{justify-content:space-between;align-items:center;gap:var(--space-2);padding-top:var(--space-2);border-top:1px solid var(--line);color:var(--muted);font-size:var(--text-xs);display:flex}.chat-sidebar-foot a{border-radius:var(--radius-pill);width:24px;height:24px;color:var(--muted);justify-content:center;align-items:center;display:inline-flex}.chat-sidebar-foot a:hover{background:var(--surface);color:var(--ink)}.chat-drawer-overlay{display:none}.chat-main{background:var(--surface);flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.chat-view{flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.chat-header{align-items:flex-start;gap:var(--space-3);min-height:72px;padding:var(--space-4) var(--space-5);border-bottom:1px solid var(--line);background:var(--surface);flex:none;display:flex}.chat-menu-trigger{width:36px;height:36px;margin-top:var(--space-1);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);cursor:pointer;flex:0 0 36px;justify-content:center;align-items:center;display:none}.chat-heading{flex:1;min-width:0}.chat-title-row{align-items:center;gap:var(--space-2);min-width:0;display:flex}.chat-title-row h1,.chat-title-placeholder{min-width:0;font-size:var(--text-lg);letter-spacing:-.02em;margin:0;font-weight:650;line-height:1.35}.chat-title-button{align-items:center;gap:var(--space-2);max-width:100%;color:var(--ink);font:inherit;font-weight:inherit;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;padding:0;display:inline-flex;overflow:hidden}.chat-title-button svg{color:var(--muted);opacity:0;transition:opacity var(--motion);flex:none}.chat-title-button:hover svg,.chat-title-button:focus-visible svg{opacity:1}.chat-title-skeleton{width:180px}.chat-context-chips{gap:var(--space-1) var(--space-2);margin-top:var(--space-1);flex-wrap:wrap;display:flex}.chat-context-chip{align-items:baseline;gap:var(--space-1);padding:calc(var(--space-1) / 2) var(--space-2);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--muted);font-size:var(--text-xs);line-height:1.4;display:inline-flex}.chat-context-chip b{color:var(--ink);font-weight:500}.chat-header-status{min-width:24px;padding-top:var(--space-2);justify-content:flex-end;align-items:center;display:flex}.chat-live-dot{border-radius:var(--radius-pill);background:var(--ok);width:7px;height:7px;box-shadow:0 0 0 3px color-mix(in srgb, var(--ok) 15%, transparent);display:inline-block}.chat-more{position:relative}.chat-more>summary{border-radius:var(--radius-pill);width:32px;height:32px;color:var(--muted);cursor:pointer;justify-content:center;align-items:center;list-style:none;display:inline-flex}.chat-more>summary::-webkit-details-marker{display:none}.chat-more>summary:hover{background:var(--surface-2);color:var(--ink)}.chat-more-popover{right:0;top:calc(100% + var(--space-2));z-index:30;gap:var(--space-1);min-width:168px;padding:var(--space-2);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-2);flex-direction:column;display:flex;position:absolute}.chat-more-popover button{align-items:center;gap:var(--space-2);width:100%;padding:var(--space-2);border-radius:var(--radius-sm);color:var(--ink);font:inherit;font-size:var(--text-sm);text-align:left;cursor:pointer;background:0 0;border:0;display:flex}.chat-more-popover button:hover{background:var(--surface-2)}.chat-more-popover button.is-danger{color:var(--danger)}.chat-connection{align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-5);border-bottom:1px solid var(--line);background:color-mix(in srgb, var(--accent-soft) 55%, var(--surface));color:var(--ink);font-size:var(--text-sm);flex:none;display:flex}.chat-connection .chat-button{margin-left:auto}.chat-inline-error{justify-content:space-between;align-items:center;gap:var(--space-2);margin:0 0 var(--space-2);padding:var(--space-2) var(--space-3);border:1px solid color-mix(in srgb, var(--danger) 35%, var(--line));border-radius:var(--radius-sm);background:color-mix(in srgb, var(--danger) 7%, var(--surface));color:var(--danger);font-size:var(--text-sm);display:flex}.chat-inline-actions{align-items:center;gap:var(--space-1);flex:none;display:flex}.chat-inline-error-page{margin:var(--space-2) var(--space-5) 0;flex:none}.chat-form-error{margin:var(--space-2) 0 0;color:var(--danger);font-size:var(--text-sm)}.chat-scroll{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:var(--space-5);flex:1;position:relative;overflow-y:auto}.chat-empty-scroll{justify-content:center;align-items:center;display:flex}.chat-empty{width:100%;max-width:720px;padding:var(--space-4) 0}.chat-empty-head{text-align:center}.chat-empty-eyebrow{margin-bottom:var(--space-1);color:var(--muted);font-size:var(--text-xs);letter-spacing:.12em;font-weight:600;display:inline-block}.chat-empty h1{margin:0 0 var(--space-2);font-size:var(--text-xl);letter-spacing:-.03em;font-weight:650;line-height:1.3}.chat-empty p{max-width:560px;color:var(--muted);font-size:var(--text-sm);margin:0 auto;line-height:1.7}.chat-starters{gap:var(--space-3);margin:var(--space-6) 0 var(--space-4);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.chat-starter{align-items:flex-start;gap:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:var(--shadow-1);transition:transform var(--motion), box-shadow var(--motion), border-color var(--motion);flex-direction:column;display:flex}.chat-starter:hover{border-color:color-mix(in srgb, var(--accent) 22%, var(--line));box-shadow:var(--shadow-2);transform:translateY(-2px)}.chat-starter-icon{border-radius:var(--radius-sm);background:var(--accent-soft);width:38px;height:38px;color:var(--accent);place-items:center;display:grid}.chat-starter-copy{gap:var(--space-1);flex-direction:column;display:flex}.chat-starter-title{font-size:var(--text-sm);font-weight:650}.chat-starter-note{color:var(--muted);font-size:var(--text-xs);line-height:1.55}.chat-empty-hint{text-align:center;font-size:var(--text-xs)!important}.chat-message-list{width:100%;max-width:var(--content-max);gap:var(--space-5);flex-direction:column;margin:0 auto;display:flex}.chat-message{align-items:flex-start;gap:var(--space-3);min-width:0;display:flex}.chat-message.is-user{flex-direction:row-reverse}.chat-avatar{width:30px;height:30px;margin-top:var(--space-1);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--muted);flex:0 0 30px;place-items:center;display:grid}.chat-message.is-user .chat-avatar{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.chat-message-main{flex-direction:column;flex:1;min-width:0;display:flex}.chat-message.is-user .chat-message-main{flex:0 88%;align-items:flex-end}.chat-message-meta{align-items:center;gap:var(--space-2);margin-bottom:var(--space-1);color:var(--muted);font-size:var(--text-xs);display:flex}.chat-message-meta>span:first-child{color:var(--ink);font-weight:600}.chat-message.is-user .chat-message-meta{justify-content:flex-end}.chat-message-bubble{max-width:100%;color:var(--ink);font-size:var(--text-base);overflow-wrap:anywhere}.chat-message.is-user .chat-message-bubble{padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-lg);background:var(--surface-2)}.chat-user-text{white-space:pre-wrap;margin:0}.chat-message-foot{gap:var(--space-1);margin-top:var(--space-1);opacity:.35;transition:opacity var(--motion);display:flex}.chat-message:hover .chat-message-foot,.chat-message:focus-within .chat-message-foot{opacity:1}.chat-message.is-user .chat-message-foot{justify-content:flex-end}.chat-message-pending .chat-message-meta>span:last-child{color:var(--muted)}.chat-stream-text{white-space:pre-wrap;margin:0}.chat-typing{gap:var(--space-1);padding:var(--space-1) 0;display:inline-flex}.chat-typing span{border-radius:var(--radius-pill);background:var(--muted);width:6px;height:6px;animation:1.2s ease-in-out infinite chat-pulse}.chat-typing span:nth-child(2){animation-delay:.15s}.chat-typing span:nth-child(3){animation-delay:.3s}@keyframes chat-pulse{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.chat-markdown{line-height:1.75}.chat-markdown>:first-child{margin-top:0}.chat-markdown>:last-child{margin-bottom:0}.chat-markdown p{margin:0 0 var(--space-3)}.chat-markdown h1,.chat-markdown h2,.chat-markdown h3{margin:var(--space-4) 0 var(--space-2);font-weight:650;line-height:1.35}.chat-markdown h1{font-size:var(--text-lg)}.chat-markdown h2{font-size:var(--text-base)}.chat-markdown h3{font-size:var(--text-sm)}.chat-markdown ul,.chat-markdown ol{margin:0 0 var(--space-3);padding-left:var(--space-5)}.chat-markdown li+li{margin-top:var(--space-1)}.chat-markdown a{color:var(--ink);text-underline-offset:2px;text-decoration:underline}.chat-markdown code{padding:0 calc(var(--space-1) / 2);border-radius:calc(var(--radius-sm) / 2);background:var(--surface-2);font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.92em}.chat-markdown pre{margin:0 0 var(--space-3);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);overflow-x:auto}.chat-markdown pre code{background:0 0;padding:0}.chat-markdown blockquote{margin:0 0 var(--space-3);padding:var(--space-2) var(--space-3);border-left:3px solid var(--line);color:var(--muted)}.chat-markdown table{width:100%;margin-bottom:var(--space-3);border-collapse:collapse;font-size:var(--text-sm)}.chat-markdown th,.chat-markdown td{padding:var(--space-2);border:1px solid var(--line);text-align:left}.chat-markdown th{background:var(--surface-2);font-weight:600}.chat-markdown hr{margin:var(--space-4) 0;border:0;border-top:1px solid var(--line)}.chat-message-error{justify-content:space-between;align-items:flex-start;gap:var(--space-3);padding:var(--space-3);border:1px solid color-mix(in srgb, var(--danger) 35%, var(--line));border-radius:var(--radius-sm);background:color-mix(in srgb, var(--danger) 6%, var(--surface));color:var(--danger);font-size:var(--text-sm);display:flex}.chat-message-error strong{font-weight:600;display:block}.chat-error-code{margin-top:calc(var(--space-1) / 2);opacity:.7;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:var(--text-xs);display:block}.chat-error-retry{align-items:center;gap:var(--space-1);padding:var(--space-1) var(--space-2);border:1px solid color-mix(in srgb, var(--danger) 35%, var(--line));border-radius:var(--radius-pill);background:var(--surface);color:var(--danger);font:inherit;font-size:var(--text-xs);cursor:pointer;flex:none;display:inline-flex}.chat-error-retry:hover{background:var(--surface-2)}.chat-suggestions{gap:var(--space-2);margin-top:var(--space-3);flex-wrap:wrap;display:flex}.chat-viewer-actions{align-items:center;gap:var(--space-2);display:inline-flex}.chat-suggestion{padding:var(--space-1) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--muted);font:inherit;font-size:var(--text-xs);cursor:pointer;transition:border-color var(--motion) ease, color var(--motion) ease, background var(--motion) ease;line-height:1.5}.chat-suggestion:hover:not(:disabled){border-color:color-mix(in srgb, var(--accent) 30%, var(--line));background:var(--surface-2);color:var(--ink)}.chat-suggestion:disabled{cursor:not-allowed;opacity:.55}.chat-scroll-bottom{align-items:center;gap:var(--space-1);margin:var(--space-3) auto 0;padding:var(--space-1) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font:inherit;font-size:var(--text-xs);box-shadow:var(--shadow-1);cursor:pointer;display:flex;position:sticky;bottom:0}.chat-workflow{padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-1);min-height:54px}.chat-workflow-summary,.chat-workflow-head{align-items:center;gap:var(--space-2);width:100%;min-height:28px;color:var(--ink);font-size:var(--text-sm);font-weight:600;display:flex}.chat-workflow-summary{text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-family:inherit}.chat-workflow-summary>span:nth-child(2){flex:1}.chat-workflow-check{border-radius:var(--radius-pill);background:color-mix(in srgb, var(--ok) 14%, var(--surface));width:22px;height:22px;color:var(--ok);place-items:center;display:grid}.chat-workflow-head{justify-content:space-between}.chat-workflow-title{font-size:var(--text-sm);font-weight:600}.chat-workflow-count{padding:0 var(--space-2);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--muted);font-size:var(--text-xs);font-weight:500}.chat-workflow-stages{gap:var(--space-2);margin:var(--space-3) 0 0;grid-template-columns:repeat(7,minmax(0,1fr));padding:0;list-style:none;display:grid}.chat-workflow-stage{gap:var(--space-1);flex-direction:column;min-width:0;display:flex}.chat-workflow-index{border:1px solid var(--line);border-radius:var(--radius-pill);width:24px;height:24px;color:var(--muted);font-size:var(--text-xs);place-items:center;font-weight:600;display:grid;position:relative}.chat-workflow-index-number{display:block}.chat-workflow-icon{place-items:center;display:none;position:absolute;inset:0}.chat-workflow-stage.is-done .chat-workflow-index-number,.chat-workflow-stage.is-running .chat-workflow-index-number,.chat-workflow-stage.is-failed .chat-workflow-index-number,.chat-workflow-stage.is-skipped .chat-workflow-index-number{display:none}.chat-workflow-stage.is-done .chat-workflow-icon,.chat-workflow-stage.is-running .chat-workflow-icon,.chat-workflow-stage.is-failed .chat-workflow-icon,.chat-workflow-stage.is-skipped .chat-workflow-icon{display:grid}.chat-workflow-stage.is-done .chat-workflow-index{border-color:color-mix(in srgb, var(--ok) 45%, var(--line));background:color-mix(in srgb, var(--ok) 10%, var(--surface));color:var(--ok)}.chat-workflow-stage.is-running .chat-workflow-index{border-color:var(--accent);color:var(--ink)}.chat-workflow-stage.is-failed .chat-workflow-index{border-color:color-mix(in srgb, var(--danger) 45%, var(--line));background:color-mix(in srgb, var(--danger) 8%, var(--surface));color:var(--danger)}.chat-workflow-stage.is-skipped .chat-workflow-index{color:var(--muted)}.chat-workflow-copy{gap:calc(var(--space-1) / 2);flex-direction:column;min-width:0;display:flex}.chat-workflow-label{color:var(--ink);font-size:var(--text-xs);font-weight:600;line-height:1.4}.chat-workflow-status{color:var(--muted);font-size:var(--text-xs);line-height:1.4}.chat-workflow-stage.is-running .chat-workflow-status{color:var(--ink)}.chat-workflow-stage.is-done .chat-workflow-status{color:var(--ok)}.chat-workflow-stage.is-failed .chat-workflow-status{color:var(--danger)}.chat-message-workflow{margin-top:var(--space-3)}.chat-image-grid{gap:var(--space-2);grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid}.chat-image-grid[data-count=one]{grid-template-columns:minmax(0,1fr);max-width:420px}.chat-image-grid[data-count=two]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px}.chat-message-images,.chat-message .chat-image-grid{margin-top:var(--space-3)}.chat-image-tile{aspect-ratio:4/3;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);cursor:zoom-in;width:100%;transition:border-color var(--motion), transform var(--motion);padding:0;display:block;position:relative;overflow:hidden}.chat-image-tile:hover:not(:disabled){border-color:color-mix(in srgb, var(--accent) 35%, var(--line));transform:translateY(-1px)}.chat-image-tile img{object-fit:cover;width:100%;height:100%;display:block}.chat-image-tile:disabled{cursor:progress}.chat-image-loading{background:linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface) 65%, var(--surface-2)) 50%, var(--surface-2) 70%);background-size:220% 100%;animation:1.4s linear infinite chat-shimmer;position:absolute;inset:0}.chat-image-tile.is-error{justify-content:center;align-items:center;gap:var(--space-1);color:var(--muted);font:inherit;font-size:var(--text-xs);cursor:pointer;flex-direction:column;display:flex}.chat-image-retry{align-items:center;gap:var(--space-1);color:var(--ink);display:inline-flex}.chat-dialog.chat-viewer{width:min(1100px,96vw);max-height:92dvh;padding:var(--space-4);border-color:color-mix(in srgb, var(--accent-ink) 16%, transparent);background:var(--ink);color:var(--accent-ink)}.chat-viewer .chat-dialog-head h2,.chat-viewer .chat-icon-button{color:var(--accent-ink)}.chat-viewer .chat-icon-button:hover:not(:disabled){background:color-mix(in srgb, var(--accent-ink) 12%, transparent);color:var(--accent-ink)}.chat-viewer .chat-dialog-body{margin:var(--space-3) 0;min-height:0;padding:0}.chat-viewer-stage{border-radius:var(--radius-sm);background:color-mix(in srgb, var(--accent-ink) 6%, var(--ink));place-items:center;min-height:260px;max-height:68dvh;display:grid;position:relative;overflow:hidden}.chat-viewer-stage>img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:68dvh;display:block}.chat-viewer-prev,.chat-viewer-next{border-color:color-mix(in srgb, var(--accent-ink) 20%, transparent);background:color-mix(in srgb, var(--ink) 55%, transparent);width:40px;height:40px;color:var(--accent-ink);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);position:absolute;top:50%;transform:translateY(-50%)}.chat-viewer-prev{left:var(--space-3)}.chat-viewer-next{right:var(--space-3)}.chat-viewer-loading{align-items:center;gap:var(--space-3);color:var(--accent-ink);flex-direction:column;display:flex}.chat-viewer-skeleton{border-radius:var(--radius-sm);opacity:.2;width:min(520px,70vw);height:40dvh}.chat-viewer-fallback{align-items:center;gap:var(--space-2);color:var(--accent-ink);flex-direction:column;display:flex}.chat-viewer-fallback p{margin:0}.chat-viewer-foot{justify-content:space-between;align-items:center;gap:var(--space-3);width:100%;display:flex}.chat-viewer-hint{color:color-mix(in srgb, var(--accent-ink) 70%, transparent);font-size:var(--text-xs)}.chat-viewer .chat-dialog-foot{border-top-color:color-mix(in srgb, var(--accent-ink) 16%, transparent)}.chat-resource-trigger{align-items:center;gap:var(--space-1);min-height:32px;margin-top:var(--space-1);padding:var(--space-1) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);color:var(--ink);font:inherit;font-size:var(--text-sm);cursor:pointer;transition:background-color var(--motion), border-color var(--motion);flex:none;font-weight:600;display:inline-flex}.chat-resource-trigger:hover{background:var(--surface-2)}.chat-resource-trigger[aria-expanded=true]{border-color:color-mix(in srgb, var(--accent) 24%, var(--line));background:var(--surface-2)}.chat-resource-trigger>svg{color:var(--muted)}.chat-resource-count{min-width:20px;height:20px;padding:0 var(--space-1);border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent);font-size:var(--text-xs);justify-content:center;align-items:center;font-weight:700;line-height:1;display:inline-flex}.chat-resource-backdrop{z-index:40;background:color-mix(in srgb, var(--ink) 24%, transparent);cursor:pointer;width:100%;height:100%;animation:chat-fade var(--motion) ease-out;border:0;padding:0;display:block;position:fixed;inset:0}.chat-resource-panel{z-index:45;border-left:1px solid var(--line);background:var(--surface);width:380px;max-width:100vw;color:var(--ink);box-shadow:var(--shadow-2);animation:chat-resource-slide var(--motion-slow) ease-out;flex-direction:column;display:flex;position:fixed;top:0;bottom:0;right:0}@keyframes chat-resource-slide{0%{opacity:0;transform:translateX(var(--space-4))}to{opacity:1;transform:translate(0)}}.chat-resource-head{justify-content:space-between;align-items:flex-start;gap:var(--space-2);padding:var(--space-4) var(--space-4) var(--space-2);flex:none;display:flex}.chat-resource-eyebrow{color:var(--muted);font-size:var(--text-xs);letter-spacing:.12em;font-weight:600;display:block}.chat-resource-head h2{font-size:var(--text-lg);letter-spacing:-.02em;margin:0;font-weight:650;line-height:1.3}.chat-resource-tabs{align-items:center;gap:var(--space-1);padding:0 var(--space-4);border-bottom:1px solid var(--line);flex:none;display:flex}.chat-resource-tab{align-items:center;gap:var(--space-1);min-height:40px;padding:var(--space-2) var(--space-3);color:var(--muted);font:inherit;font-size:var(--text-sm);cursor:pointer;transition:color var(--motion), border-color var(--motion);background:0 0;border:0;border-bottom:2px solid #0000;font-weight:600;display:inline-flex}.chat-resource-tab:hover{color:var(--ink)}.chat-resource-tab.is-active{border-bottom-color:var(--accent);color:var(--ink)}.chat-resource-body{overscroll-behavior:contain;min-height:0;padding:var(--space-3) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom));scrollbar-width:thin;flex:1;overflow-y:auto}.chat-resource-grid{gap:var(--space-2);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.chat-resource-tile{aspect-ratio:1}.chat-resource-tile.is-transparent{background-color:var(--surface);background-image:linear-gradient(45deg, var(--line) 25%, transparent 25%), linear-gradient(-45deg, var(--line) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--line) 75%), linear-gradient(-45deg, transparent 75%, var(--line) 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.chat-resource-tile.is-transparent img{object-fit:contain}.chat-resource-tile-kind{left:var(--space-1);bottom:var(--space-1);padding:0 var(--space-1);border-radius:var(--radius-pill);background:color-mix(in srgb, var(--ink) 62%, transparent);color:var(--accent-ink);font-size:var(--text-xs);pointer-events:none;line-height:1.5;position:absolute}.chat-resource-skeleton{aspect-ratio:1;width:100%}.chat-resource-sentinel{height:1px}.chat-resource-more{padding-top:var(--space-2);justify-content:center;display:flex}.chat-resource-inline-error{justify-content:space-between;align-items:center;gap:var(--space-2);margin-top:var(--space-3);padding:var(--space-2) var(--space-3);border:1px solid color-mix(in srgb, var(--danger) 35%, var(--line));border-radius:var(--radius-sm);background:color-mix(in srgb, var(--danger) 7%, var(--surface));color:var(--danger);font-size:var(--text-sm);display:flex}.chat-resource-empty,.chat-resource-error{justify-content:center;align-items:center;gap:var(--space-2);min-height:260px;padding:var(--space-6) var(--space-4);text-align:center;flex-direction:column;display:flex}.chat-resource-empty-icon{border-radius:var(--radius-pill);background:var(--surface-2);width:44px;height:44px;color:var(--muted);place-items:center;display:grid}.chat-resource-empty h3{color:var(--ink);font-size:var(--text-sm);margin:0;font-weight:650}.chat-resource-empty p{max-width:260px;color:var(--muted);font-size:var(--text-sm);margin:0;line-height:1.65}.chat-resource-error{color:var(--danger);font-size:var(--text-sm)}.chat-resource-error p{max-width:280px;color:var(--ink);margin:0;line-height:1.6}.chat-composer{z-index:41;padding:var(--space-3) var(--space-5) calc(var(--space-3) + env(safe-area-inset-bottom));background:var(--surface);flex:none;position:relative}.chat-composer-box{padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-1);transition:border-color var(--motion), box-shadow var(--motion)}.chat-composer-box:focus-within{border-color:color-mix(in srgb, var(--accent) 40%, var(--line));box-shadow:var(--shadow-2)}.chat-composer-input{width:100%;min-height:calc(var(--text-base) * 1.6);max-height:calc(var(--text-base) * 1.6 * 8);color:var(--ink);font:inherit;font-size:var(--text-base);resize:none;background:0 0;border:0;outline:none;padding:0;line-height:1.6;display:block;overflow-y:auto}.chat-composer-input::placeholder{color:var(--muted);opacity:.82}.chat-composer-input:disabled{color:var(--muted);cursor:wait}.chat-composer-actions{justify-content:space-between;align-items:center;gap:var(--space-3);margin-top:var(--space-2);display:flex}.chat-composer-tools,.chat-composer-submit{align-items:center;gap:var(--space-2);display:flex}.chat-attachment-count{color:var(--muted);font-size:var(--text-xs)}.chat-composer-hint{align-items:center;gap:var(--space-1);color:var(--muted);font-size:var(--text-xs);white-space:nowrap;display:inline-flex}.chat-send{border-radius:var(--radius-pill);background:var(--accent);width:36px;height:36px;color:var(--accent-ink);cursor:pointer;transition:opacity var(--motion), transform var(--motion), background-color var(--motion);border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.chat-send:hover:not(:disabled){transform:translateY(-1px)}.chat-send:disabled{opacity:.32;cursor:not-allowed}.chat-file-input{display:none}.chat-drop-overlay{inset:var(--space-2) var(--space-5);z-index:5;border:1px dashed var(--accent);border-radius:var(--radius-lg);background:color-mix(in srgb, var(--accent-soft) 82%, var(--surface));color:var(--ink);pointer-events:none;place-items:center;font-weight:600;display:grid;position:absolute}.chat-upload-dup-notice{margin:var(--space-1) 0 0;color:var(--text-muted,#8b8b93);font-size:12px}.chat-upload-tray{gap:var(--space-2);margin:var(--space-2) 0;flex-wrap:wrap;padding:0;list-style:none;display:flex}.chat-upload-item{gap:calc(var(--space-1) / 2);flex-direction:column;width:88px;min-width:0;display:flex}.chat-upload-thumb{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);width:88px;height:72px;position:relative;overflow:hidden}.chat-upload-thumb img{object-fit:cover;width:100%;height:100%}.chat-upload-progress{background:color-mix(in srgb, var(--accent) 18%, transparent);height:3px;position:absolute;bottom:0;left:0;right:0}.chat-upload-progress-bar{background:var(--accent);height:100%;transition:width var(--motion);display:block}.chat-upload-remove{top:calc(var(--space-1) / 2);right:calc(var(--space-1) / 2);background:color-mix(in srgb, var(--surface) 88%, transparent);color:var(--ink);position:absolute}.chat-upload-status{color:var(--muted);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-upload-item.is-failed .chat-upload-status{color:var(--danger)}.chat-upload-item.is-done .chat-upload-status{color:var(--ok)}.chat-upload-retry{align-items:center;gap:var(--space-1);color:var(--danger);font:inherit;font-size:var(--text-xs);cursor:pointer;background:0 0;border:0;align-self:flex-start;padding:0;display:inline-flex}.chat-upload-retry:hover{text-decoration:underline}.chat-dialog-layer{z-index:100;padding:var(--space-4);background:color-mix(in srgb, var(--ink) 44%, transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:chat-fade var(--motion) ease-out;place-items:center;display:grid;position:fixed;inset:0}.chat-dialog{width:min(480px,100%);max-height:min(86dvh,720px);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-2);animation:chat-rise var(--motion-slow) ease-out;flex-direction:column;display:flex}.chat-dialog-head{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.chat-dialog-head h2{font-size:var(--text-lg);letter-spacing:-.02em;margin:0;font-weight:650}.chat-dialog-description{margin:var(--space-2) 0 0;color:var(--muted);font-size:var(--text-sm);line-height:1.65}.chat-dialog-body{min-height:0;margin:var(--space-3) 0;padding:var(--space-1);overflow-y:auto}.chat-dialog-foot{justify-content:flex-end;gap:var(--space-2);padding-top:var(--space-3);border-top:1px solid var(--line);display:flex}.chat-field{gap:var(--space-1);font-size:var(--text-sm);flex-direction:column;font-weight:600;display:flex}.chat-field>span{color:var(--ink)}.chat-confirm-name{padding:var(--space-3);border-radius:var(--radius-sm);background:var(--surface-2);font-size:var(--text-sm);overflow-wrap:anywhere;margin:0;font-weight:600}.chat-skeleton{border-radius:var(--radius-sm);background:linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface) 72%, var(--surface-2)) 50%, var(--surface-2) 70%);background-size:220% 100%;animation:1.4s linear infinite chat-shimmer;display:block}.chat-skeleton-avatar{border-radius:var(--radius-pill);flex:0 0 30px;width:30px;height:30px}.chat-message-skeletons{gap:var(--space-5);max-width:var(--content-max);flex-direction:column;margin:0 auto;display:flex}.chat-message-skeleton{gap:var(--space-3);display:flex}.chat-message-skeleton.from-user{flex-direction:row-reverse}.chat-skeleton-lines{gap:var(--space-2);flex-direction:column;flex:1;display:flex}.chat-sidebar-skeletons{gap:var(--space-2);flex-direction:column;display:flex}.chat-sidebar-skeleton{gap:var(--space-1);padding:var(--space-2);flex-direction:column;display:flex}@keyframes chat-shimmer{0%{background-position:140% 0}to{background-position:-60% 0}}@keyframes chat-fade{0%{opacity:0}to{opacity:1}}@keyframes chat-rise{0%{opacity:0;transform:translateY(var(--space-2))}to{opacity:1;transform:translateY(0)}}.chat-spin{animation:.9s linear infinite chat-spin}@keyframes chat-spin{to{transform:rotate(360deg)}}.chat-view-missing{align-items:stretch}.chat-missing-bar{align-items:center;gap:var(--space-2);padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--line);font-weight:700;display:flex}.chat-missing{justify-content:center;align-items:flex-start;gap:var(--space-2);width:100%;max-width:var(--content-max);padding:var(--space-6) var(--space-5);flex-direction:column;flex:1;margin:0 auto;display:flex}.chat-missing h1{font-size:var(--text-xl);letter-spacing:-.03em;margin:0}.chat-missing p{margin:0 0 var(--space-2);color:var(--muted)}@media (max-width:1023px){.chat-workflow-stages{row-gap:var(--space-3);grid-template-columns:repeat(4,minmax(0,1fr))}.chat-starters{grid-template-columns:1fr}}@media (max-width:767px){.chat-sidebar{z-index:60;visibility:hidden;width:min(320px,86vw);box-shadow:var(--shadow-2);transition:transform var(--motion-slow) ease, visibility var(--motion-slow);flex-basis:auto;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.chat-sidebar.is-open{visibility:visible;transform:translate(0)}.chat-drawer-overlay{z-index:50;background:color-mix(in srgb, var(--ink) 44%, transparent);cursor:pointer;width:100%;height:100%;animation:chat-fade var(--motion) ease-out;border:0;padding:0;display:block;position:fixed;inset:0}.chat-drawer-close,.chat-menu-trigger{display:inline-flex}.chat-main{width:100%}.chat-header{min-height:64px;padding:var(--space-3) var(--space-4)}.chat-title-row h1{font-size:var(--text-base)}.chat-context-chips{gap:var(--space-1)}.chat-context-chip{font-size:var(--text-xs)}.chat-header-status{display:none}.chat-connection{padding:var(--space-2) var(--space-4)}.chat-inline-error-page{margin:var(--space-2) var(--space-4) 0}.chat-scroll{padding:var(--space-4)}.chat-empty-scroll{padding-top:var(--space-5);align-items:flex-start}.chat-empty h1{font-size:var(--text-lg)}.chat-starters{margin-top:var(--space-5);gap:var(--space-2)}.chat-starter{padding:var(--space-3);flex-direction:row;align-items:center}.chat-message.is-user .chat-message-main{flex-basis:92%}.chat-message{gap:var(--space-2)}.chat-avatar{flex-basis:26px;width:26px;height:26px}.chat-workflow{padding:var(--space-3)}.chat-workflow-stages,.chat-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-image-grid[data-count=one]{grid-template-columns:minmax(0,1fr)}.chat-resource-panel{top:var(--space-4);border-radius:var(--radius-lg) var(--radius-lg) 0 0;width:100%;box-shadow:none;border-left:0;left:0}.chat-resource-head{padding-top:var(--space-4)}.chat-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-resource-body{padding-bottom:calc(var(--space-5) + env(safe-area-inset-bottom))}.chat-composer{padding:var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom))}.chat-composer-box{padding:var(--space-2) var(--space-3);border-radius:var(--radius)}.chat-composer-hint{display:none}.chat-drop-overlay{inset:var(--space-2) var(--space-3)}.chat-dialog-layer{padding:var(--space-2);align-items:end}.chat-dialog{border-radius:var(--radius-lg) var(--radius-lg) 0 0;width:100%;max-height:88dvh}.chat-dialog.chat-viewer{border-radius:var(--radius-lg);width:100%;max-height:92dvh}.chat-viewer-stage,.chat-viewer-stage>img{max-height:60dvh}.chat-viewer-prev{left:var(--space-1)}.chat-viewer-next{right:var(--space-1)}.chat-session-actions{opacity:1}.chat-sidebar-inner{padding:var(--space-3)}.chat-user-name{max-width:90px}}@media (prefers-reduced-motion:reduce){.chat-app *,.chat-app :before,.chat-app :after,.chat-dialog-layer *,.chat-dialog-layer :before,.chat-dialog-layer :after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}.chat-plan-card{margin-top:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-1)}.chat-plan-head{justify-content:space-between;align-items:flex-start;gap:var(--space-3);flex-wrap:wrap;display:flex}.chat-plan-eyebrow,.chat-generation-eyebrow,.chat-confirm-plan-eyebrow{color:var(--muted);font-size:var(--text-xs);letter-spacing:.08em;font-weight:600;display:inline-block}.chat-plan-head h2{margin:var(--space-1) 0 0;font-size:var(--text-lg);letter-spacing:-.02em;font-weight:650}.chat-plan-status{padding:var(--space-1) var(--space-2);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--muted);font-size:var(--text-xs);white-space:nowrap;align-items:center;font-weight:600;display:inline-flex}.chat-plan-status.is-confirmed{border-color:color-mix(in srgb, var(--ok) 28%, var(--line));background:color-mix(in srgb, var(--ok) 10%, var(--surface));color:var(--ok)}.chat-plan-status.is-superseded{border-color:color-mix(in srgb, var(--danger) 28%, var(--line));background:color-mix(in srgb, var(--danger) 8%, var(--surface));color:var(--danger)}.chat-plan-coverage,.chat-plan-item-coverage{padding:2px var(--space-2);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--muted);font-size:var(--text-xs);white-space:nowrap;align-items:center;font-weight:600;display:inline-flex}.chat-plan-coverage.is-generic,.chat-plan-item-coverage.is-generic,.chat-plan-coverage.is-partial,.chat-plan-item-coverage.is-partial{border-color:color-mix(in srgb, var(--danger) 24%, var(--line));background:color-mix(in srgb, var(--danger) 6%, var(--surface));color:color-mix(in srgb, var(--danger) 82%, var(--ink))}.chat-plan-coverage.is-verified,.chat-plan-item-coverage.is-verified{border-color:color-mix(in srgb, var(--ok) 28%, var(--line));background:color-mix(in srgb, var(--ok) 8%, var(--surface));color:var(--ok)}.chat-plan-ai{padding:2px var(--space-2);border:1px solid color-mix(in srgb, var(--accent) 18%, var(--line));border-radius:var(--radius-pill);background:color-mix(in srgb, var(--accent-soft) 55%, var(--surface));color:var(--ink);font-size:var(--text-xs);white-space:nowrap;align-items:center;font-weight:600;display:inline-flex}.chat-plan-ai.is-rule{border-color:var(--line);background:var(--surface-2);color:var(--muted)}.chat-plan-skill-warnings{margin:var(--space-2) 0 0;padding:0 0 0 var(--space-4);color:color-mix(in srgb, var(--danger) 78%, var(--ink));font-size:var(--text-xs);line-height:1.6}.chat-plan-facts{gap:var(--space-1) var(--space-2);margin:var(--space-3) 0 0;flex-wrap:wrap;padding:0;list-style:none;display:flex}.chat-plan-fact{align-items:baseline;gap:var(--space-1);padding:var(--space-1) var(--space-2);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface-2);font-size:var(--text-xs);display:inline-flex}.chat-plan-fact span{color:var(--muted)}.chat-plan-fact b{color:var(--ink);font-weight:650}.chat-plan-facts-empty{margin:var(--space-3) 0 0;color:var(--muted);font-size:var(--text-xs)}.chat-plan-strategy{margin:var(--space-4) 0 0;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2)}.chat-plan-strategy>header{justify-content:space-between;align-items:center;gap:var(--space-2);color:var(--muted);font-size:var(--text-xs);letter-spacing:.04em;font-weight:650;display:flex}.chat-plan-strategy-count{letter-spacing:0;font-weight:500}.chat-plan-strategy ul{margin:var(--space-2) 0 0;font-size:var(--text-xs);flex-direction:column;gap:3px;padding:0;line-height:1.5;list-style:none;display:flex}.chat-plan-strategy li{align-items:baseline;gap:2px var(--space-2);flex-wrap:wrap;display:flex}.chat-plan-strategy li>span{color:var(--muted)}.chat-plan-strategy li.is-included>span{color:var(--ink);font-weight:600}.chat-plan-strategy li.is-available>span{color:color-mix(in srgb, var(--accent) 76%, var(--ink));font-weight:600}.chat-plan-strategy li>em{color:var(--muted);flex-basis:100%;padding-left:1.1em;font-style:normal}.chat-plan-strategy-proof,.chat-plan-strategy-note{margin:var(--space-2) 0 0;color:var(--muted);font-size:var(--text-xs);line-height:1.5}.chat-plan-copy{margin:var(--space-4) 0 0;padding:var(--space-3);border:1px solid color-mix(in srgb, var(--accent) 22%, var(--line));border-radius:var(--radius-sm);background:color-mix(in srgb, var(--accent) 5%, var(--surface))}.chat-plan-copy>header{justify-content:space-between;align-items:center;gap:var(--space-2);color:var(--muted);font-size:var(--text-xs);letter-spacing:.04em;font-weight:650;display:flex}.chat-plan-copy-source{padding:1px var(--space-2);border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);letter-spacing:0;font-weight:500}.chat-plan-copy-title{margin:var(--space-2) 0 0;color:var(--ink);font-size:var(--text-sm);font-weight:650;line-height:1.5}.chat-plan-copy-bullets{margin:var(--space-2) 0 0;color:var(--ink);font-size:var(--text-xs);flex-direction:column;gap:2px;padding-left:1.1em;line-height:1.6;display:flex}.chat-plan-copy-items{gap:var(--space-1);margin:var(--space-2) 0 0;font-size:var(--text-xs);flex-direction:column;padding:0;line-height:1.5;list-style:none;display:flex}.chat-plan-copy-items li{align-items:baseline;gap:var(--space-1) var(--space-2);flex-wrap:wrap;display:flex}.chat-plan-copy-items li>span{color:var(--muted);flex:none}.chat-plan-copy-items li>b{color:var(--ink);font-weight:600}.chat-plan-copy-items li>.chat-plan-copy-metric{background:color-mix(in srgb, var(--accent) 10%, transparent);color:var(--ink);font-size:var(--text-xs);border-radius:999px;align-items:baseline;gap:4px;padding:1px 8px;display:inline-flex}.chat-plan-copy-metric b{color:var(--accent);font-weight:700}.chat-plan-copy-items li>em{padding-left:calc(var(--space-2) + .2em);color:var(--muted);flex-basis:100%;font-style:normal}.chat-plan-copy-note{margin:var(--space-2) 0 0;color:var(--muted);font-size:var(--text-xs);line-height:1.5}.chat-plan-items{gap:var(--space-2);margin:var(--space-4) 0 0;flex-direction:column;padding:0;list-style:none;display:flex}.chat-plan-item{gap:var(--space-3);padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);grid-template-columns:26px minmax(0,1fr);display:grid}.chat-plan-item-index{border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--surface);width:26px;height:26px;color:var(--muted);font-size:var(--text-xs);place-items:center;font-weight:650;display:grid}.chat-plan-item-main{min-width:0}.chat-plan-item-head{justify-content:space-between;align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.chat-plan-purpose{font-size:var(--text-sm);font-weight:650}.chat-plan-item-meta{align-items:baseline;gap:var(--space-1);color:var(--muted);font-size:var(--text-xs);display:inline-flex}.chat-plan-purpose-help{margin:var(--space-1) 0 0;color:var(--muted);font-size:var(--text-xs)}.chat-plan-brief{gap:var(--space-1) var(--space-3);margin:var(--space-2) 0 0;color:var(--muted);font-size:var(--text-xs);flex-wrap:wrap;padding:0;line-height:1.6;list-style:none;display:flex}.chat-plan-brief li>span{margin-right:var(--space-1);color:var(--ink);font-weight:600}.chat-plan-brief-empty{margin:var(--space-1) 0 0;color:var(--muted);font-size:var(--text-xs)}.chat-plan-warnings{margin-top:var(--space-3);padding:var(--space-3);border:1px solid color-mix(in srgb, var(--danger) 20%, var(--line));border-radius:var(--radius-sm);background:color-mix(in srgb, var(--danger) 5%, var(--surface));font-size:var(--text-xs)}.chat-plan-warnings strong{margin-bottom:var(--space-1);color:var(--danger);font-size:var(--text-xs);display:block}.chat-plan-warnings ul{padding-left:var(--space-4);margin:0}.chat-plan-warnings li+li{margin-top:var(--space-1)}.chat-plan-foot{justify-content:space-between;align-items:center;gap:var(--space-3);margin-top:var(--space-4);padding-top:var(--space-3);border-top:1px solid var(--line);flex-wrap:wrap;display:flex}.chat-plan-foot-note{color:var(--muted);font-size:var(--text-xs);margin:0}.chat-plan-confirm.is-started{border-color:color-mix(in srgb, var(--ok) 30%, var(--line));background:color-mix(in srgb, var(--ok) 10%, var(--surface));color:var(--ok)}.chat-dialog.chat-confirm-plan-dialog{width:min(620px,100%)}.chat-confirm-plan-summary{gap:var(--space-1);padding:var(--space-3);border-radius:var(--radius-sm);background:var(--surface-2);flex-direction:column;display:flex}.chat-confirm-plan-summary strong{font-size:var(--text-lg);font-weight:650}.chat-confirm-plan-summary>span:last-child{color:var(--muted);font-size:var(--text-xs)}.chat-confirm-plan .chat-plan-facts,.chat-confirm-plan .chat-plan-items{margin-top:var(--space-3)}.chat-confirm-plan-note{margin:var(--space-3) 0 0;color:var(--muted);font-size:var(--text-xs);line-height:1.65}.chat-generation-summary{align-items:baseline;gap:var(--space-2);margin-top:var(--space-2);color:var(--muted);font-size:var(--text-xs);flex-wrap:wrap;display:flex}.chat-generation-summary strong{color:var(--ink);font-size:var(--text-sm);font-weight:650}.chat-generation-live{margin-top:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-1)}.chat-generation-live-head{justify-content:space-between;align-items:flex-start;gap:var(--space-3);display:flex}.chat-generation-live h2{margin:var(--space-1) 0 0;font-size:var(--text-lg);letter-spacing:-.02em;font-weight:650}.chat-generation-live-count{color:var(--muted);font-size:var(--text-xs);white-space:nowrap}.chat-generation-progress{height:4px;margin-top:var(--space-3);border-radius:var(--radius-pill);background:var(--surface-2);overflow:hidden}.chat-generation-progress>span{border-radius:inherit;background:var(--ok);height:100%;transition:width var(--motion);display:block}.chat-generation-waiting{margin:var(--space-3) 0 0;color:var(--muted);font-size:var(--text-sm)}.chat-generation-live-grid{margin-top:var(--space-3)!important}.chat-generation-failures{margin-top:var(--space-3);padding:var(--space-3);border:1px solid color-mix(in srgb, var(--danger) 22%, var(--line));border-radius:var(--radius-sm);background:color-mix(in srgb, var(--danger) 5%, var(--surface))}.chat-generation-failures-head{justify-content:space-between;align-items:baseline;gap:var(--space-2);font-size:var(--text-xs);flex-wrap:wrap;display:flex}.chat-generation-failures-head strong{color:var(--danger)}.chat-generation-failures-head span{color:var(--muted)}.chat-generation-failure-list{gap:var(--space-2);margin:var(--space-2) 0 0;flex-direction:column;padding:0;list-style:none;display:flex}.chat-generation-failure{justify-content:space-between;align-items:flex-start;gap:var(--space-3);padding-top:var(--space-2);border-top:1px solid color-mix(in srgb, var(--danger) 14%, var(--line));display:flex}.chat-generation-failure:first-child{border-top:0;padding-top:0}.chat-generation-failure-copy{min-width:0}.chat-generation-failure-heading{align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.chat-generation-failure-heading strong{font-size:var(--text-sm);font-weight:650}.chat-generation-failure-heading span{color:var(--muted);font-size:var(--text-xs)}.chat-generation-failure-copy p{margin:var(--space-1) 0 0;color:var(--muted);font-size:var(--text-xs)}.chat-generation-failure-state.is-error{color:var(--danger)}@media (max-width:767px){.chat-plan-card,.chat-generation-live{padding:var(--space-3)}.chat-plan-foot{align-items:stretch}.chat-plan-confirm{width:100%}.chat-generation-failure{flex-direction:column}}.chat-revise-field{gap:var(--space-2);font-size:var(--text-sm);font-weight:600;display:grid}.chat-revise-field textarea{resize:vertical;width:100%;min-height:112px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit;font-weight:400;line-height:1.6}.chat-revise-field textarea:focus-visible{outline:2px solid color-mix(in srgb, var(--accent) 45%, transparent);outline-offset:2px}.chat-workflow-slow{color:#8a5a12;margin:10px 18px 0;font-size:12px;line-height:1.6}.chat-generation-live-actions{align-items:center;gap:var(--space-2);flex-wrap:wrap;justify-content:flex-end;display:flex}.chat-generation-cancel{border:1px solid var(--line);color:var(--muted);font:inherit;font-size:var(--text-xs);cursor:pointer;background:0 0;border-radius:999px;padding:4px 10px}.chat-generation-cancel:hover:not(:disabled){color:var(--danger);border-color:color-mix(in srgb, var(--danger) 35%, var(--line))}.chat-generation-cancel:disabled{opacity:.55;cursor:progress}.chat-generation-cancel-error{margin:var(--space-2) 0 0;color:var(--danger);font-size:var(--text-xs)}.chat-credit-trigger{align-items:center;gap:var(--space-1);min-height:32px;margin-top:var(--space-1);padding:var(--space-1) var(--space-3);border:1px solid var(--line);border-radius:var(--radius-pill);color:var(--muted);font:inherit;font-size:var(--text-xs);cursor:pointer;background:0 0;flex:none;display:inline-flex}.chat-credit-trigger:hover{color:var(--ink);background:var(--surface-2)}.chat-credit-trigger b{color:var(--ink);font-variant-numeric:tabular-nums}.chat-confirm-credits{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;gap:3px;padding:11px 13px;font-size:12px;display:grid}.chat-confirm-credits span{color:var(--muted)}.chat-confirm-credits-short{color:var(--danger)!important}.chat-task-board{margin:0 0 var(--space-4);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-1)}.chat-task-board-head{justify-content:space-between;align-items:flex-end;gap:var(--space-3);margin-bottom:var(--space-3);flex-wrap:wrap;display:flex}.chat-task-eyebrow{color:var(--muted);font-size:var(--text-xs);letter-spacing:.1em;text-transform:uppercase}.chat-task-board h2{font-size:var(--text-lg);margin:3px 0 0}.chat-task-board-actions{align-items:center;gap:var(--space-3);flex-wrap:wrap;display:flex}.chat-task-count{color:var(--muted);font-size:12px}.chat-task-export{border:1px solid var(--line);background:var(--ink);color:var(--surface);font:inherit;cursor:pointer;border-radius:999px;align-items:center;gap:5px;padding:7px 12px;font-size:12px;display:inline-flex}.chat-task-export:disabled{opacity:.5;cursor:not-allowed}.chat-task-retry-all{border:1px solid color-mix(in srgb, #b42318 35%, var(--line));background:var(--surface);color:#b42318;font:inherit;cursor:pointer;border-radius:999px;align-items:center;gap:5px;min-height:32px;padding:7px 12px;font-size:12px;display:inline-flex}.chat-task-retry-all:disabled{opacity:.5;cursor:not-allowed}.chat-task-slot.is-failed{border-color:color-mix(in srgb, #b42318 30%, var(--line))}.chat-task-slot.is-failed .chat-task-placeholder{color:#b42318}.chat-task-grid{gap:var(--space-3);grid-template-columns:repeat(auto-fill,minmax(132px,1fr));display:grid}.chat-task-slot{border:1px solid var(--line);background:color-mix(in srgb, var(--ink) 1.5%, var(--surface));border-radius:12px;gap:7px;padding:9px;display:grid}.chat-task-slot.is-complete{border-color:color-mix(in srgb, #1f6b4d 25%, var(--line))}.chat-task-slot.is-blocked{opacity:.7;border-style:dashed}.chat-task-slot-head,.chat-task-slot-foot{font-size:var(--text-xs);justify-content:space-between;align-items:center;gap:6px;display:flex}.chat-task-slot-label{font-weight:650}.chat-task-slot-meta,.chat-task-slot-foot span{color:var(--muted)}.chat-task-slot-media{background:var(--surface-2);border-radius:8px;height:118px;min-height:92px;overflow:hidden}.chat-task-thumb{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:0;display:block}.chat-task-thumb img{object-fit:contain;width:100%;height:100%;display:block}.chat-task-placeholder{height:100%;min-height:100px;color:var(--muted);font-size:var(--text-xs);place-content:center;justify-items:center;gap:5px;display:grid}.chat-task-slot-foot button{color:var(--accent);font:inherit;font-size:var(--text-xs);cursor:pointer;background:0 0;border:0;padding:0}@media (max-width:640px){.chat-task-grid{padding-bottom:4px;display:flex;overflow-x:auto}.chat-task-slot{flex:0 0 144px}}.chat-task-strip{max-height:34vh;padding:var(--space-5) var(--space-5) 0;background:var(--surface);flex:none;overflow-y:auto}.chat-task-strip .chat-task-board{margin:0}.chat-workbench-toolbar{justify-content:space-between;align-items:center;gap:var(--space-3);padding:6px var(--space-5);border-bottom:1px solid var(--line);background:var(--surface);flex:none;display:flex}.chat-pane-tabs{gap:4px;display:none}.chat-pane-tabs button,.chat-assistant-toggle{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;padding:5px 10px;font-size:12px}.chat-pane-tabs button.is-active{background:var(--ink);color:var(--surface)}.chat-assistant-toggle{border-color:var(--line);margin-left:auto}.chat-assistant-toggle:hover{color:var(--ink)}.chat-assistant-stream.is-collapsed{display:none}@media (max-width:767px){.chat-pane-tabs{display:flex}.chat-assistant-toggle{display:none}.chat-task-strip{max-height:none;padding:var(--space-3)}.chat-view[data-pane=task] .chat-task-strip{flex:1;overflow-y:auto}.chat-view[data-has-board=true][data-pane=task] .chat-assistant-stream,.chat-view[data-has-board=true][data-pane=task] .chat-composer,.chat-view[data-pane=chat] .chat-task-strip{display:none}.chat-view[data-pane=chat] .chat-assistant-stream.is-collapsed{display:block}.chat-view[data-pane=chat] .chat-assistant-toggle{display:none}}.chat-task-card{border:1px solid #0000;margin-bottom:4px}.chat-task-card:hover,.chat-task-card:focus-within,.chat-task-card.is-active{border-color:var(--line)}.chat-task-card .chat-session-link{flex-direction:row;align-items:flex-start;gap:9px;padding:9px}.chat-task-card-cover{border:1px solid var(--line);background:var(--surface-2);width:44px;height:44px;color:var(--muted);border-radius:9px;flex:0 0 44px;place-items:center;display:grid;overflow:hidden}.chat-task-card-cover img{object-fit:cover;width:100%;height:100%;display:block}.chat-task-card-copy{flex:1;gap:2px;min-width:0;display:grid}.chat-task-card-meta{color:var(--muted);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;line-height:1.35;overflow:hidden}.chat-task-card-foot{color:var(--muted);font-size:var(--text-xs);align-items:center;gap:4px;line-height:1.5;display:flex}.chat-task-status-dot{background:var(--muted);border-radius:50%;width:6px;height:6px}.chat-task-status-dot.is-in_progress{background:#b7791f;box-shadow:0 0 0 3px #b7791f29}.chat-task-status-dot.is-done{background:#1f6b4d}.chat-task-status-dot.is-failed{background:#b42318}.chat-task-card-time{margin-left:auto}.chat-task-card .chat-session-actions{background:0 0;padding-left:0;top:4px;right:2px;transform:none}.chat-task-card .chat-session-actions .ui-icon-button{background:var(--surface);width:24px;height:24px}.chat-launchpad{max-width:860px}.chat-launch-head{text-align:left}.chat-launch-head h1{max-width:720px;margin-left:0;margin-right:0}.chat-launch-head p{margin-left:0}.chat-launch-grid{gap:var(--space-4);margin-top:var(--space-5);grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);display:grid}.chat-launch-upload-wrap{gap:var(--space-2);min-width:0;display:grid}.chat-launch-upload{place-content:center;justify-items:center;gap:var(--space-2);width:100%;min-height:176px;padding:var(--space-5);border:1.5px dashed var(--line-strong,var(--line));border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit;text-align:center;cursor:pointer;transition:border-color var(--motion), background-color var(--motion), box-shadow var(--motion);display:grid}.chat-launch-upload:hover,.chat-launch-upload:focus-visible{border-color:var(--ink);background:var(--surface-2)}.chat-launch-upload.has-files{border-style:solid;border-color:color-mix(in srgb, var(--ok) 40%, var(--line))}.chat-launch-upload.is-filled{padding:0;position:relative;overflow:hidden}.chat-launch-slot-image{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.chat-launch-slot-overlay{color:#fff;font-size:var(--text-xs);text-align:left;background:linear-gradient(#0000,#000000a3);padding:22px 10px 8px;font-weight:600;position:absolute;inset:auto 0 0}.chat-launch-upload.is-dragging{border-style:solid;border-color:var(--accent);background:color-mix(in srgb, var(--accent-soft) 70%, var(--surface));box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent)}.chat-launch-upload:disabled{cursor:wait;opacity:.7}.chat-launch-upload-icon{border-radius:var(--radius-sm);background:var(--ink);width:48px;height:48px;color:var(--surface);place-items:center;display:grid}.chat-launch-upload.is-dragging .chat-launch-upload-icon{background:var(--accent)}.chat-launch-upload-title{font-size:var(--text-base);font-weight:650}.chat-launch-upload-note{max-width:320px;color:var(--muted);font-size:var(--text-xs);line-height:1.5}.chat-launch-tray .chat-upload-tray{margin:0}.chat-launch-zones{gap:var(--space-3);grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;display:grid}.chat-launch-zone.is-front{grid-column:1/-1}.chat-launch-zone{align-content:start;gap:var(--space-2);min-width:0;display:grid}.chat-launch-zone.is-dragging .chat-launch-upload{border-style:solid;border-color:var(--accent);background:color-mix(in srgb, var(--accent-soft) 70%, var(--surface));box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent)}.chat-launch-zone.is-dragging .chat-launch-upload-icon{background:var(--accent)}.chat-launch-upload{min-height:132px}.chat-launch-upload.is-front-zone{min-height:156px}.chat-upload-front-badge,.chat-image-front-badge{border-radius:var(--radius-xs,6px);background:color-mix(in srgb, var(--ink) 88%, transparent);color:var(--surface);font-size:var(--text-xs);pointer-events:none;padding:2px 8px;font-weight:600;position:absolute;top:6px;left:6px}.chat-upload-thumb,.chat-image-tile{position:relative}.chat-upload-front-toggle{min-height:44px;padding:0 var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font-size:var(--text-xs);cursor:pointer;margin-top:2px}.chat-upload-front-toggle:hover:not(:disabled){border-color:var(--ink)}.chat-upload-front-toggle:disabled{opacity:.6;cursor:wait}.chat-launch-front-hint{color:var(--muted);font-size:var(--text-xs);align-self:center}.chat-upload-heic{background:var(--surface-2);color:var(--muted);font-size:var(--text-xs);letter-spacing:.04em;place-content:center;justify-items:center;gap:4px;font-weight:650;display:grid;position:absolute;inset:0}@media (max-width:767px){.chat-launch-zones{grid-template-columns:1fr}.chat-launch-zone.is-front{grid-column:auto}}.chat-launch-context{gap:var(--space-3);min-width:0;padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);flex-direction:column;display:flex}.chat-launch-context-head{justify-content:space-between;align-items:center;gap:var(--space-2);font-size:var(--text-sm);font-weight:650;display:flex}.chat-launch-estimate{color:var(--muted);font-size:var(--text-xs);font-weight:500}.chat-launch-selects{gap:var(--space-2);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.chat-launch-selects label{gap:var(--space-1);color:var(--muted);font-size:var(--text-xs);display:grid}.chat-launch-selects select{width:100%;min-width:0;min-height:44px;padding:0 var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--ink);font:inherit;font-size:var(--text-sm)}.chat-launch-selects select:focus-visible{outline:2px solid color-mix(in srgb, var(--accent) 40%, transparent);outline-offset:1px}.chat-launch-context-hint{color:var(--muted);font-size:var(--text-xs);margin:0;line-height:1.5}.chat-launch-templates-head{justify-content:space-between;align-items:baseline;gap:var(--space-2);margin:var(--space-5) 0 var(--space-2);font-size:var(--text-sm);display:flex}.chat-launch-templates-head span:first-child{font-weight:650}.chat-launch-templates-head span:last-child{color:var(--muted);font-size:var(--text-xs)}.chat-launch-templates{gap:var(--space-2);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.chat-launch-template{align-items:flex-start;gap:var(--space-2);min-width:0;min-height:64px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color var(--motion), box-shadow var(--motion), background-color var(--motion);padding-right:52px;display:flex;position:relative}.chat-launch-template:hover{border-color:var(--line-strong,var(--line))}.chat-launch-template.is-selected{border-color:var(--ink);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--ink)}.chat-launch-template-icon{border-radius:var(--radius-sm);background:var(--surface-2);width:32px;height:32px;color:var(--ink);flex:0 0 32px;place-items:center;display:grid}.chat-launch-template.is-selected .chat-launch-template-icon{background:var(--ink);color:var(--surface)}.chat-launch-template-copy{gap:calc(var(--space-1) / 2);min-width:0;display:grid}.chat-launch-template-title{font-size:var(--text-sm);font-weight:650}.chat-launch-template-note{color:var(--muted);font-size:var(--text-xs);line-height:1.45}.chat-launch-template-count{top:var(--space-3);right:var(--space-3);padding:0 var(--space-2);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--muted);font-size:var(--text-xs);line-height:1.6;position:absolute}.chat-launch-template.is-selected .chat-launch-template-count{background:var(--surface);color:var(--ink)}.chat-launch-actions{justify-content:space-between;align-items:center;gap:var(--space-3);margin-top:var(--space-5);flex-wrap:wrap;display:flex}.chat-launch-summary,.chat-launch-progress{align-items:center;gap:var(--space-2);min-height:24px;color:var(--muted);font-size:var(--text-xs);line-height:1.5;display:inline-flex}.chat-launch-progress{color:var(--ink);font-weight:600}.chat-launch-start{justify-content:center;align-items:center;gap:var(--space-2);min-height:48px;padding:0 var(--space-5);border-radius:var(--radius-pill);background:var(--accent);color:var(--accent-ink);font:inherit;font-size:var(--text-base);cursor:pointer;transition:opacity var(--motion), background-color var(--motion);border:0;font-weight:650;display:inline-flex}.chat-launch-start:hover:not(:disabled){opacity:.9}.chat-launch-start:disabled{cursor:wait;opacity:.72}@media (max-width:767px){.chat-launch-grid,.chat-launch-templates{grid-template-columns:1fr}.chat-launch-grid{gap:var(--space-3);margin-top:var(--space-4)}.chat-launch-upload{min-height:140px;padding:var(--space-4)}.chat-launch-context{padding:var(--space-3)}.chat-launch-selects{grid-template-columns:1fr}.chat-launch-templates-head{margin-top:var(--space-4)}.chat-launch-actions{align-items:stretch;gap:var(--space-2);margin-top:var(--space-4);flex-direction:column}.chat-launch-summary,.chat-launch-progress{text-align:center;justify-content:center}.chat-launch-start{width:100%;min-height:52px}}.chat-task-confirm{border:1px solid var(--ink);background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:650}@media (max-width:767px){.chat-context-chips{scrollbar-width:none;flex-wrap:nowrap;max-width:calc(100vw - 180px);overflow-x:auto}.chat-context-chips::-webkit-scrollbar{display:none}.chat-context-chip{flex:none}.chat-task-grid{grid-template-columns:repeat(2,minmax(0,1fr));display:grid;overflow:visible}.chat-task-slot{flex:initial}.chat-workbench-toolbar{border-bottom:1px solid var(--line)}}.chat-task-board-foot{justify-content:space-between;align-items:center;gap:var(--space-3);margin-top:var(--space-3);border-top:1px dashed var(--line);color:var(--muted);font-size:var(--text-xs);flex-wrap:wrap;padding-top:8px;display:flex}.chat-context-summary{display:none}@media (max-width:767px){.chat-context-chips .chat-context-chip:not(.chat-context-summary){display:none}.chat-context-summary{text-overflow:ellipsis;white-space:nowrap;max-width:calc(100vw - 190px);display:inline-flex;overflow:hidden}}.chat-task-rules{margin-top:var(--space-3);border:1px solid var(--line);background:color-mix(in srgb, var(--ink) 1.5%, var(--surface));border-radius:10px}.chat-task-rules summary{justify-content:space-between;align-items:center;gap:var(--space-2);color:var(--muted);font-size:var(--text-xs);cursor:pointer;padding:8px 10px;list-style:none;display:flex}.chat-task-rules summary::-webkit-details-marker{display:none}.chat-task-rules summary span:last-child{color:var(--accent)}.chat-task-rules ul{gap:6px;margin:0;padding:0 10px 10px;list-style:none;display:grid}.chat-task-rules li{border-top:1px dashed var(--line);color:var(--muted);font-size:var(--text-xs);flex-wrap:wrap;align-items:baseline;gap:7px;padding-top:6px;display:flex}.chat-task-rules li b{color:var(--ink);font-weight:650}.chat-task-rules li em{color:#8a5a00;flex:1 0 100%;font-style:normal;line-height:1.45}.chat-task-slot-actions{align-items:center;gap:7px;display:inline-flex}.chat-task-slot-head{flex-wrap:wrap}.chat-task-slot-meta{font-size:var(--text-xs);flex:1 0 100%}.chat-workbench{background:var(--surface);flex:1;grid-template-columns:minmax(0,1fr) minmax(340px,390px);min-height:0;display:grid;overflow:hidden}.chat-workbench.is-assistant-collapsed{grid-template-columns:minmax(0,1fr)}.chat-workbench.is-assistant-collapsed .chat-assistant-pane,.chat-view .chat-workbench-toolbar{display:none}.chat-task-pane{min-width:0;min-height:0;padding:var(--space-5);border-right:1px solid var(--line);background:var(--surface);position:relative;overflow-y:auto}.chat-task-pane .chat-task-board{max-width:none;margin:0}.chat-task-pane .chat-task-grid{grid-template-columns:repeat(auto-fit,minmax(132px,1fr))}.chat-task-waiting{min-height:280px;padding:var(--space-5);border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:14px;place-content:center;justify-items:center;gap:8px;display:grid}.chat-task-waiting h2{font-size:var(--text-base);color:var(--ink);margin:0}.chat-task-waiting p{max-width:320px;margin:0;font-size:12px;line-height:1.6}.chat-assistant-open{z-index:2;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;cursor:pointer;box-shadow:var(--shadow-1);border-radius:999px;align-items:center;gap:5px;padding:7px 11px;font-size:12px;display:inline-flex;position:absolute;top:16px;right:16px}.chat-assistant-pane{background:var(--surface);flex-direction:column;min-width:0;min-height:0;display:flex}.chat-assistant-head{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:flex-start;gap:8px;padding:10px 14px;display:flex}.chat-assistant-head>div{gap:1px;display:grid}.chat-assistant-eyebrow{color:var(--muted);font-size:var(--text-xs);letter-spacing:.08em;text-transform:uppercase}.chat-assistant-head strong{font-size:12px;font-weight:600}.chat-assistant-collapse{border:1px solid var(--line);color:var(--muted);font:inherit;font-size:var(--text-xs);cursor:pointer;background:0 0;border-radius:999px;padding:4px 9px}.chat-assistant-pane .chat-assistant-stream{flex:1;min-height:0;padding:14px}.chat-assistant-pane .chat-composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.chat-assistant-pane .chat-composer-box{border-radius:12px;padding:9px}@media (max-width:767px){.chat-workbench{flex-direction:column;display:flex;overflow:hidden}.chat-view .chat-workbench-toolbar{flex:none;order:0;display:flex}.chat-task-pane{border-right:0;flex:1;min-height:0;padding:12px;display:none;overflow-y:auto}.chat-assistant-pane{flex:1;min-height:0;display:none}.chat-workbench[data-pane=task] .chat-task-pane{display:block}.chat-workbench[data-pane=chat] .chat-assistant-pane,.chat-workbench[data-pane=chat].is-assistant-collapsed .chat-assistant-pane{display:flex!important}.chat-workbench.is-assistant-collapsed .chat-assistant-pane,.chat-assistant-head,.chat-assistant-open{display:none}.chat-task-pane .chat-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-assistant-pane .chat-assistant-stream{padding:12px}}.chat-task-info{margin-top:var(--space-4);padding:var(--space-4);border:1px solid var(--line);background:color-mix(in srgb, var(--ink) 1.5%, var(--surface));border-radius:14px}.chat-task-info header{font-size:var(--text-xs);justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;font-weight:650;display:flex}.chat-task-info header span:last-child{color:var(--muted);font-weight:500}.chat-task-info-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.chat-task-info-grid div{background:var(--surface);border-radius:9px;gap:2px;padding:8px;display:grid}.chat-task-info-grid span{color:var(--muted);font-size:var(--text-xs)}.chat-task-info-grid b{text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;overflow:hidden}.chat-task-info p{color:var(--muted);font-size:var(--text-xs);margin:10px 0 0;line-height:1.5}@media (max-width:767px){.chat-task-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.chat-launch-instruction{gap:var(--space-1);margin-top:var(--space-4);display:grid}.chat-launch-instruction>span{color:var(--ink);font-size:var(--text-sm);font-weight:650}.chat-launch-instruction textarea{resize:vertical;width:100%;min-height:64px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:var(--text-sm);line-height:1.5}.chat-launch-instruction textarea:focus{outline:2px solid color-mix(in srgb, var(--accent) 35%, transparent);outline-offset:1px}.chat-launch-error{margin-top:var(--space-3)}.chat-launch-error button{min-height:32px;padding:0 var(--space-2);color:var(--accent);font:inherit;font-size:var(--text-sm);cursor:pointer;background:0 0;border:0;font-weight:600}.chat-launch-error-actions{gap:var(--space-2);display:inline-flex}.chat-launch-preview{justify-content:space-between;align-items:baseline;gap:var(--space-3);margin-top:var(--space-4);padding:var(--space-3) var(--space-4);border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface-2);flex-wrap:wrap;animation:.16s ease-out chat-launch-preview-in;display:flex}.chat-launch-preview div{align-items:baseline;gap:var(--space-2);font-size:var(--text-xs);display:flex}.chat-launch-preview div span{color:var(--muted)}.chat-launch-preview div b{font-size:var(--text-sm)}.chat-launch-preview p{color:var(--ink);font-size:var(--text-xs);margin:0}@keyframes chat-launch-preview-in{0%{opacity:.35;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.chat-plan-style{border:1px solid color-mix(in srgb, var(--ink) 16%, var(--line));max-width:100%;color:var(--muted);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:3px 8px;line-height:1.3;overflow:hidden}.chat-task-style{font-weight:550;color:var(--ink)!important}.chat-image-tile,.chat-task-slot-media,.chat-upload-thumb,.chat-task-card-cover{border-radius:var(--radius-sm)}.chat-message-list{padding-bottom:var(--space-4)}.chat-assistant-pane .chat-composer-hint.is-busy{color:var(--ink)}.chat-drop-overlay{inset:var(--space-2) var(--space-3);font-size:var(--text-sm)}.chat-task-waiting{gap:var(--space-2)}.chat-task-waiting p,.chat-assistant-head strong{font-size:var(--text-sm)}.chat-assistant-collapse,.chat-assistant-open,.chat-task-export,.chat-task-confirm,.chat-pane-tabs button{min-height:32px}@media (max-width:767px){.chat-menu-trigger{flex-basis:44px;width:44px;height:44px;margin-top:0}.chat-title-button,.chat-credit-trigger,.chat-resource-trigger,.chat-more-trigger,.chat-more-popover button,.chat-task-export,.chat-task-retry-all,.chat-task-confirm,.chat-generation-cancel,.chat-scroll-bottom,.chat-launch-error button,.chat-inline-error button{min-height:44px}.chat-pane-tabs{gap:var(--space-2)}.chat-pane-tabs button{min-height:44px;padding:0 var(--space-4);font-size:var(--text-sm)}.chat-workbench-toolbar{padding:var(--space-1) var(--space-3)}.chat-send,.chat-composer-tools .chat-icon-button{width:44px;height:44px}.chat-composer-hint{display:none}.chat-composer-hint.is-busy{white-space:normal;text-align:right;display:inline-flex}.chat-upload-remove,.chat-upload-retry{min-width:32px;min-height:32px}.chat-workflow-stages{row-gap:var(--space-2);grid-template-columns:minmax(0,1fr)}.chat-workflow-stage{align-items:center;gap:var(--space-3);flex-direction:row;min-height:28px}.chat-workflow-copy{justify-content:space-between;align-items:baseline;gap:var(--space-2);flex-direction:row;flex:1}.chat-workflow-label{white-space:nowrap}.chat-workflow-status{white-space:nowrap;flex:none}.chat-assistant-pane .chat-assistant-stream{padding-bottom:var(--space-5)}.chat-task-pane{padding:var(--space-3)}}
