:root{--line-soft: #e1e6ea;--side: #f7f8f8;--pane: #f0f3f5;--bubble: #eaf0f4;--hover: #f2f5f7;--faint: #7f8e9a;--accent-line: #8eaec6;--ring: rgba(36, 84, 119, .14);--copper-soft: #f6e9e2;--danger: #a33930;--danger-soft: #fbecea;--ins-bg: #dff0e5;--ins-ink: #1d5a38;--del-bg: #f8e2de;--del-ink: #8c3528;--shadow-soft: 0 1px 2px rgba(32, 53, 68, .06), 0 6px 20px rgba(32, 53, 68, .06);--shadow-pop: 0 12px 32px rgba(32, 53, 68, .16), 0 1px 2px rgba(32, 53, 68, .06)}.workspace-icon-button,.workspace-button,.workspace-primary,.workspace-ghost,.workspace-danger-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;flex-shrink:0}.workspace-icon-button{width:36px;border:0;background:transparent;color:var(--muted)}.workspace-icon-button svg,.workspace-button svg,.workspace-primary svg,.workspace-ghost svg{width:18px;height:18px;flex-shrink:0}.workspace-icon-button:hover{background:var(--hover);color:var(--ink)}.workspace-button{padding:0 12px;border:1px solid var(--line);background:#fff;color:var(--ink)}.workspace-button:hover{border-color:var(--accent-line);background:var(--hover)}.workspace-ghost{padding:0 10px;border:0;background:transparent;color:#344858}.workspace-ghost:hover{background:var(--hover);color:var(--ink)}.workspace-primary{padding:0 16px;border:1px solid var(--accent);background:var(--accent);color:#fff;font-weight:600}.workspace-primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.workspace-danger{color:var(--danger)}.workspace-danger:hover{background:var(--danger-soft);border-color:#e7b8b2}.workspace-danger-primary{padding:0 16px;border:1px solid var(--danger);background:var(--danger);color:#fff;font-weight:600}.workspace-danger-primary:hover{background:#8a2f27}:is(.workspace-icon-button,.workspace-button,.workspace-primary,.workspace-ghost,.workspace-danger-primary):disabled{opacity:.45;cursor:default}:is(.chat-workspace,.workspace-dialog,.artifact-viewer,.palette,.tr-menu-items,.library-page) :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--accent);outline-offset:2px}.tr-menu{position:relative;display:inline-flex;min-width:0}.tr-menu-items{position:absolute;z-index:40;min-width:220px;max-width:min(340px,calc(100vw - 32px));max-height:min(480px,calc(100dvh - 140px));overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--line-soft);border-radius:12px;background:#fff;box-shadow:var(--shadow-pop);font-size:13.5px;color:var(--ink);outline:none}.tr-menu-items--down-left{top:calc(100% + 6px);left:0}.tr-menu-items--down-right{top:calc(100% + 6px);right:0}.tr-menu-items--up-left{bottom:calc(100% + 8px);left:0}.tr-menu-items--up-right{bottom:calc(100% + 8px);right:0}.tr-menu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:6px 10px;border:0;border-radius:8px;background:transparent;text-align:left;color:var(--ink);font-size:13.5px;cursor:pointer}.tr-menu-item.is-active{background:var(--hover)}.tr-menu-item:disabled{opacity:.45;cursor:default}.tr-menu-item.is-danger,.tr-menu-item.is-danger .tr-menu-icon{color:var(--danger)}.tr-menu-icon{width:17px;height:17px;color:var(--muted);flex-shrink:0}.tr-menu-text{display:grid;min-width:0;flex:1}.tr-menu-text>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tr-menu-text small{color:var(--faint);font-size:12px;line-height:1.4;white-space:normal}.tr-menu-check{width:16px;height:16px;color:var(--accent);flex-shrink:0}.tr-menu-label{padding:8px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}.tr-menu-note{padding:6px 10px 4px;font-size:12px;color:var(--faint);overflow-wrap:anywhere}.tr-menu-sep{border:0;border-top:1px solid var(--line-soft);margin:6px 4px}.tr-switch{position:relative;width:30px;height:18px;margin-left:auto;border-radius:999px;background:var(--line);flex-shrink:0;transition:background .15s}.tr-switch:after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}.tr-switch.is-on{background:var(--accent)}.tr-switch.is-on:after{transform:translate(12px)}.app-shell--chat .chat-shell{min-height:0}.app-shell--chat .chat-main{min-width:0}.app-shell--chat .chat-workspace{position:relative;height:var(--chat-height, calc(100dvh - 76px) );min-height:0;overflow:hidden;background:#fff}.chat-grid{position:relative;display:grid;grid-template-columns:248px minmax(0,1fr);flex:1;min-height:0;height:100%}.chat-grid.history-collapsed{grid-template-columns:minmax(0,1fr)}.chat-grid.has-artifact,.chat-grid.has-artifact.history-collapsed{grid-template-columns:minmax(0,1fr) minmax(420px,52%)}.chat-grid.has-artifact>.chat-history-panel{display:none}.chat-sidebar{display:flex;flex-direction:column;min-height:0;height:100%;padding:8px 8px 12px;background:var(--side)}.chat-history-panel{border-right:1px solid var(--line-soft)}.chat-sidebar-nav{display:grid;gap:2px;padding-bottom:12px;border-bottom:1px solid var(--line-soft)}.chat-nav-row{display:flex;align-items:center;gap:10px;width:100%;height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#344858;font-size:14px;text-align:left;cursor:pointer}.chat-nav-row:hover{background:var(--hover);color:var(--ink)}.chat-nav-row:disabled{opacity:.45;cursor:default}.chat-nav-row svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}.chat-nav-row.is-strong{font-weight:600;color:var(--ink)}.chat-nav-row.is-strong svg{color:var(--ink)}.chat-nav-row kbd{margin-left:auto;font-size:12px;font-weight:500;font-family:inherit;color:var(--faint)}@media (hover:none){.chat-nav-row kbd{display:none}}.artifact-document ::-moz-selection,.chat-markdown ::-moz-selection{background:#2454772e}.artifact-document ::selection,.chat-markdown ::selection{background:#2454772e}.chat-sidebar-list{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding-top:4px;scrollbar-width:thin}.chat-sidebar-empty{padding:16px 10px;font-size:13px;color:var(--faint)}.chat-sidebar-group h3{display:flex;align-items:flex-end;height:34px;padding:0 10px 6px;font-size:12px;font-weight:500;color:var(--faint)}.chat-sidebar-group ul{display:grid;grid-template-columns:minmax(0,1fr);gap:1px}.chat-history-item{position:relative;display:flex;align-items:center;border-radius:8px}.chat-history-item:hover,.chat-history-item:focus-within{background:var(--hover)}.chat-history-item.is-current{background:var(--mint)}.chat-history-row{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:34px;padding:0 4px 0 10px;border:0;background:transparent;text-align:left;font-size:14px;color:#344858;cursor:pointer}.chat-history-item.is-current .chat-history-row{color:var(--accent);font-weight:500}.chat-history-title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.chat-history-running{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0;animation:chat-pulse 1.2s ease-in-out infinite}.chat-history-more{display:grid;place-items:center;width:26px;height:26px;margin-right:4px;border:0;border-radius:6px;background:transparent;color:var(--muted);opacity:0;cursor:pointer}.chat-history-more svg{width:16px;height:16px}.chat-history-item:hover .chat-history-more,.chat-history-item:focus-within .chat-history-more,.chat-history-item.is-current .chat-history-more,.chat-history-more[aria-expanded=true]{opacity:1}.chat-history-more:hover{background:#2035440f;color:var(--ink)}.chat-sidebar-more{width:100%;margin-top:8px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--accent);font-size:13px;text-align:left;cursor:pointer}.chat-sidebar-more:hover{background:var(--hover)}.chat-usage{border-top:1px solid var(--line-soft);padding-top:8px}.chat-usage>summary{display:grid;gap:8px;padding:6px 10px 4px;border-radius:8px;list-style:none;cursor:pointer}.chat-usage>summary::-webkit-details-marker{display:none}.chat-usage>summary:hover{background:var(--hover)}.chat-usage-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.chat-usage-row strong{font-size:13px;font-weight:600;color:var(--ink)}.chat-usage-meter{display:block;height:4px;border-radius:4px;background:var(--line-soft);overflow:hidden}.chat-usage-meter>span{display:block;height:100%;border-radius:4px;background:var(--accent)}.chat-usage-details{display:grid;gap:8px;padding:8px 10px 4px;font-size:12px;line-height:1.5;color:var(--muted)}.chat-usage-topup{justify-self:start;min-height:32px}.chat-conversation{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:8px;height:52px;flex-shrink:0;padding:0 12px 0 10px}.chat-header-main{display:flex;align-items:center;gap:4px;min-width:0;flex:1}.chat-header-actions{display:flex;align-items:center;gap:2px}.chat-toggle-menu{display:none}.chat-toggle-sidebar,.chat-document-toggle svg{width:18px;height:18px}.is-flipped{transform:scaleX(-1)}.chat-document-toggle[aria-pressed=true]{background:var(--mint);color:var(--accent)}.chat-title{display:flex;align-items:center;gap:4px;min-width:0}.chat-title-button{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:420px;height:34px;padding:0 8px;border:0;border-radius:8px;background:transparent;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer}.chat-title-button:hover,.chat-title-button[aria-expanded=true]{background:var(--hover)}.chat-title-button svg{width:15px;height:15px;color:var(--faint);flex-shrink:0}.chat-title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-assistant-label{padding-left:2px;font-size:13px;color:var(--faint);white-space:nowrap}.chat-temporary-badge{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 9px;border:1px dashed var(--line);border-radius:999px;font-size:12px;font-weight:500;color:var(--muted);white-space:nowrap}.chat-temporary-badge svg{width:14px;height:14px}.chat-temporary-toggle.is-on{background:var(--ink);color:#fff}.chat-temporary-toggle.is-on:hover{background:#2b3b47;color:#fff}.chat-title-editor{display:flex;align-items:center;gap:4px;min-width:0}.chat-title-editor input{width:min(420px,50vw);min-width:0;height:34px;border:1px solid var(--accent-line);border-radius:8px;padding:0 10px;font-size:14px;color:var(--ink)}.chat-title-editor input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring);outline:none}.assistant-selector{min-width:0}.chat-assistant-button{display:inline-flex;align-items:center;gap:6px;min-width:0;height:36px;padding:0 10px;border:0;border-radius:9px;background:transparent;font-size:16px;font-weight:600;color:var(--ink);cursor:pointer}.chat-assistant-button:hover,.chat-assistant-button[aria-expanded=true]{background:var(--hover)}.chat-assistant-button:disabled{opacity:.5;cursor:default}.chat-assistant-button svg{width:15px;height:15px;color:var(--faint);flex-shrink:0}.assistant-menu{width:340px}.composer-menu{width:300px}.assistant-option{align-items:flex-start}.assistant-snapshot{display:inline-flex;align-items:center;gap:6px;max-width:100%;color:var(--muted);font-size:13px}.assistant-snapshot svg{width:13px;height:13px;flex-shrink:0}.assistant-error{padding:4px 10px;font-size:12px;color:var(--danger)}.chat-alert{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 16px 8px;padding:8px 8px 8px 12px;border:1px solid #efc9c3;border-radius:10px;background:var(--danger-soft);color:#7f2b23;font-size:13px;line-height:1.5}.chat-alert>p{padding-top:4px}.chat-alert-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.chat-alert-button{min-height:30px;padding:0 10px;border:1px solid #e3b4ad;border-radius:7px;background:#fff;font-size:12.5px;font-weight:500;color:#7f2b23;cursor:pointer;display:inline-flex;align-items:center}.chat-alert-button.is-primary{background:var(--accent);border-color:var(--accent);color:#fff}.chat-alert-close{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#7f2b23;cursor:pointer}.chat-alert-close:hover{background:#7f2b2314}.chat-alert-close svg{width:16px;height:16px}.chat-thread{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 24px),transparent)}.chat-thread:focus{outline:none}.chat-thread-inner{width:100%;max-width:776px;margin:0 auto;padding:24px 28px 32px}.chat-transcript{display:flex;flex-direction:column}.chat-message{min-width:0;color:var(--ink)}.chat-message+.chat-message{margin-top:12px}.chat-message--user+.chat-message,.chat-message+.chat-message--user{margin-top:28px}.chat-message--activity_group+.chat-message--assistant{margin-top:4px}.chat-user-row{display:flex;align-items:flex-end;justify-content:flex-end;gap:4px}.chat-user-actions{display:flex;opacity:0;transition:opacity .15s}.chat-message--user:hover .chat-user-actions,.chat-message--user:focus-within .chat-user-actions{opacity:1}.chat-bubble{max-width:78%;padding:10px 16px;border-radius:18px;background:var(--bubble);font-size:15px;line-height:1.55;overflow-wrap:anywhere}.chat-bubble-text{white-space:pre-wrap}.chat-bubble-quote{margin-top:8px;padding-left:10px;border-left:2px solid var(--accent-line);color:var(--muted);font-size:14px;white-space:pre-wrap}.chat-bubble.is-collapsed .chat-bubble-text{max-height:calc(1.55em * 9);overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 60%,transparent);mask-image:linear-gradient(to bottom,#000 60%,transparent)}.chat-bubble.is-collapsed .chat-bubble-quote{display:none}.chat-bubble-more{display:block;margin-top:4px;padding:0;border:0;background:none;font-size:13px;font-weight:500;color:var(--accent);cursor:pointer}.chat-bubble-more:hover{text-decoration:underline;text-underline-offset:2px}.chat-edit{display:grid;gap:10px;margin-left:auto;width:min(100%,640px);padding:12px;border:1px solid var(--accent-line);border-radius:18px;background:#fff;box-shadow:0 0 0 3px var(--ring)}.chat-edit textarea{width:100%;min-height:48px;padding:2px 4px;border:0;resize:none;background:transparent;font-size:15px;line-height:1.55;color:var(--ink)}.chat-edit textarea:focus{outline:none;box-shadow:none}.chat-edit-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.chat-edit-note{margin-right:auto;font-size:12.5px;color:var(--faint)}.chat-attachments{display:flex;justify-content:flex-end;gap:8px;margin-bottom:6px}.chat-attachment{width:200px;overflow:hidden;border:1px solid var(--line-soft);border-radius:12px;background:#fff}.chat-attachment img{display:block;width:100%;max-height:180px;-o-object-fit:contain;object-fit:contain;background:#fff}.chat-attachment-missing{display:grid;place-items:center;height:96px;padding:0 12px;font-size:12px;color:var(--faint)}.chat-attachment figcaption{display:flex;justify-content:space-between;gap:8px;padding:6px 10px;border-top:1px solid var(--line-soft);font-size:11.5px;color:var(--muted);text-transform:uppercase}.chat-attachment figcaption span:first-child{text-transform:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-activity>summary{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:30px;margin-left:-6px;padding:4px 8px 4px 6px;border-radius:8px;list-style:none;cursor:pointer;font-size:13px;color:var(--muted)}.chat-activity>summary::-webkit-details-marker{display:none}.chat-activity>summary:hover{background:var(--hover);color:var(--ink)}.chat-activity-dot{width:8px;height:8px;border-radius:50%;background:#2f7a52;flex-shrink:0}.chat-activity.is-running .chat-activity-dot{background:var(--accent);animation:chat-pulse 1.2s ease-in-out infinite}.chat-activity.is-failed .chat-activity-dot{background:#b5651d}.chat-activity-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-activity-chevron{width:14px;height:14px;flex-shrink:0;transition:transform .15s}.chat-activity[open] .chat-activity-chevron{transform:rotate(180deg)}.chat-activity-steps{display:grid;gap:8px;margin:6px 0 4px 4px;padding:2px 0 2px 16px;border-left:2px solid var(--line-soft);list-style:none;font-size:12.5px;line-height:1.5}.chat-step-title{font-weight:500;color:var(--ink)}.chat-step-title span{font-weight:400;color:var(--faint)}.chat-step-detail{color:var(--muted);overflow-wrap:anywhere}.chat-step-links{display:flex;flex-wrap:wrap;gap:12px}.chat-step-links a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}.chat-artifact-card{display:flex;align-items:center;gap:12px;width:min(100%,420px);margin:12px 0 4px;padding:10px 8px 10px 10px;border:1px solid var(--line-soft);border-radius:12px;background:#fff;text-align:left;box-shadow:0 1px 3px #2035440d;cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s}.chat-artifact-card:hover{border-color:var(--accent-line);box-shadow:var(--shadow-soft)}.chat-artifact-card.is-open{border-color:var(--accent-line);background:#f2f7fa}.chat-artifact-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;background:var(--mint);color:var(--accent);flex-shrink:0}.chat-artifact-icon svg{width:20px;height:20px}.chat-artifact-text{display:grid;flex:1;min-width:0}.chat-artifact-text strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-artifact-text small{font-size:12.5px;color:var(--muted)}.chat-artifact-open{padding:6px 10px;font-size:13px;font-weight:600;color:var(--accent);white-space:nowrap}.sources-disclosure{margin-top:8px}.sources-disclosure>summary{display:inline-flex;align-items:center;gap:8px;min-height:30px;margin-left:-6px;padding:4px 8px 4px 6px;border-radius:8px;list-style:none;cursor:pointer;font-size:13px;color:var(--muted)}.sources-disclosure>summary::-webkit-details-marker{display:none}.sources-disclosure>summary:hover{background:var(--hover)}.sources-disclosure>summary>svg{width:15px;height:15px;flex-shrink:0}.source-count{display:inline-block;padding:0 6px;margin-left:2px;border-radius:999px;background:var(--pane);color:var(--muted);font-size:11.5px;font-weight:500}.source-domains{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--faint);font-size:12px}.source-list{display:grid;gap:2px;padding:6px 0 4px}.source-list a,.chat-source-list a{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:6px 10px;border-radius:8px;color:var(--ink);font-size:13px;line-height:1.45;text-decoration:none}.source-list a:hover,.chat-source-list a:hover{background:var(--hover)}.source-link-text{min-width:0}.source-link-text>span{display:block;overflow-wrap:anywhere}.source-link-text>small{display:block;font-size:12px;color:var(--faint)}.source-list svg{flex-shrink:0;width:15px;height:15px;color:var(--faint)}.chat-message--assistant .chat-markdown{font-size:15.5px;line-height:1.7}.chat-answer-note{margin-bottom:6px;font-size:12.5px;color:#8a5410}.chat-answer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin:10px 0 0 -7px}.chat-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:30px;height:30px;padding:0 7px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:12.5px;cursor:pointer}.chat-action:hover,.chat-action[aria-expanded=true]{background:var(--hover);color:var(--ink)}.chat-action:disabled{opacity:.45;cursor:default}.chat-action svg{width:16px;height:16px}.chat-action .chat-action-chevron{width:13px;height:13px}.chat-rate[aria-pressed=true]{color:var(--accent)}.chat-rate[aria-pressed=true] svg{fill:var(--mint)}.chat-sources-pill{display:inline-flex;align-items:center;gap:6px;height:30px;margin-left:4px;padding:0 10px 0 4px;border:1px solid var(--line-soft);border-radius:999px;background:#fff;font-size:12.5px;color:var(--muted);cursor:pointer}.chat-sources-pill:hover,.chat-sources-pill[aria-expanded=true]{border-color:var(--line);color:var(--ink)}.chat-source-marks{display:inline-flex}.chat-source-marks span{display:grid;place-items:center;width:20px;height:20px;margin-left:-6px;border:2px solid white;border-radius:50%;background:var(--mint);color:var(--accent);font-size:9px;font-weight:700}.chat-source-marks span:first-child{margin-left:0}.chat-source-marks span:nth-child(2){background:var(--copper-soft);color:var(--copper)}.chat-source-marks span:nth-child(3){background:var(--pane);color:var(--muted)}.chat-answer-cost{margin-left:auto;padding-left:8px;font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums;white-space:nowrap}.chat-source-list{display:grid;gap:2px;margin-top:6px;padding:6px;border:1px solid var(--line-soft);border-radius:12px}.chat-source-list small{flex-shrink:0;color:var(--faint);font-size:12px}.chat-system-note{margin-top:16px;text-align:center;font-size:12.5px;color:var(--faint)}.chat-working{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:14px}.chat-working-label{font-weight:500;color:var(--muted);background:linear-gradient(90deg,var(--muted) 0%,var(--muted) 38%,var(--ink) 50%,var(--muted) 62%,var(--muted) 100%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:chat-shimmer 1.6s linear infinite}.chat-failed{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:16px;padding:10px 12px;border:1px solid #ecd9bf;border-radius:12px;background:#fdf7ee;font-size:13px;color:#73460f}.chat-failed p{flex:1;min-width:200px}.chat-followups{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.chat-followup{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px 0 10px;border:0;border-radius:999px;background:var(--pane);color:#344858;font-size:13px;cursor:pointer;white-space:nowrap}.chat-followup svg{width:14px;height:14px;color:var(--faint)}.chat-followup:hover{background:var(--mint);color:var(--accent)}.chat-followup:hover svg{color:var(--accent)}.chat-followup:disabled{opacity:.5;cursor:default}.chat-new-messages{position:sticky;bottom:12px;left:50%;display:flex;align-items:center;gap:6px;margin:0 auto;transform:translate(0);height:34px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:13px;box-shadow:var(--shadow-soft);cursor:pointer}.chat-new-messages svg{width:15px;height:15px}.chat-notice-line{margin-bottom:12px;font-size:13px;color:#8a5410}.chat-notice-card{display:grid;gap:8px;margin-bottom:16px;padding:12px;border:1px solid var(--line-soft);border-radius:12px;font-size:13.5px}.chat-notice-actions{display:flex;flex-wrap:wrap;gap:8px}.chat-inline-link{border:0;background:none;padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:2px;cursor:pointer;font:inherit}.chat-conversation--empty .chat-thread{flex:0 0 auto;margin-top:auto;overflow:visible;-webkit-mask-image:none;mask-image:none}.chat-conversation--empty .chat-thread-inner{padding-bottom:28px}.chat-conversation--empty{padding-bottom:max(56px,8dvh)}.chat-welcome{text-align:center}.chat-welcome-mark{display:inline-grid;place-items:center;width:44px;height:44px;margin-bottom:12px;border:1px dashed var(--line);border-radius:50%;color:var(--muted)}.chat-welcome-mark svg{width:22px;height:22px}.chat-welcome.is-temporary .chat-welcome-help{max-width:440px;margin-inline:auto;font-size:14.5px;line-height:1.55}.chat-welcome-title{font-size:32px;line-height:1.15;letter-spacing:-.9px;font-weight:600;color:var(--ink);text-wrap:balance}.chat-welcome-help{margin-top:8px;font-size:16px;color:var(--muted)}.chat-suggestions{width:calc(100% - 56px);max-width:720px;margin:20px auto auto}.chat-suggestion-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.chat-suggestion{display:inline-flex;flex-shrink:0;align-items:center;gap:8px;height:36px;padding:0 14px;white-space:nowrap;border:1px solid var(--line-soft);border-radius:999px;background:#fff;font-size:13.5px;color:#344858;cursor:pointer}.chat-suggestion strong{font-weight:500}.chat-suggestion svg{width:16px;height:16px;color:var(--accent)}.chat-suggestion:hover{border-color:var(--line);color:var(--ink)}.chat-suggestion-list{overflow:hidden;border:1px solid var(--line-soft);border-radius:14px;background:#fff}.chat-suggestion-heading{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 2px 14px;font-size:12.5px;font-weight:600;color:var(--muted)}.chat-suggestion-heading span{display:inline-flex;align-items:center;gap:8px}.chat-suggestion-heading span svg{width:15px;height:15px;color:var(--accent)}.chat-suggestion-prompt{display:block;width:100%;padding:10px 14px;border:0;border-top:1px solid var(--line-soft);background:transparent;text-align:left;font-size:14px;color:#344858;cursor:pointer}.chat-suggestion-list>.chat-suggestion-prompt:first-child{border-top:0}.chat-suggestion-prompt:hover{background:var(--hover);color:var(--ink)}.chat-composer{flex-shrink:0;width:calc(100% - 56px);max-width:720px;margin:0 auto 16px}.chat-conversation--empty .chat-composer{margin-bottom:0}.chat-compose-alert{margin-bottom:8px;font-size:13px;color:var(--muted);text-align:center}.chat-compose-surface{display:flex;flex-direction:column;gap:4px;padding:12px 12px 10px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-soft);transition:border-color .15s,box-shadow .15s}.chat-compose-surface:focus-within{border-color:var(--accent-line);box-shadow:0 0 0 3px var(--ring),var(--shadow-soft)}.chat-compose-notice{padding:0 4px;font-size:12.5px;color:#8a5410}.chat-context-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 2px 4px}.chat-context-chips:empty{display:none}.chat-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:28px;padding:0 4px 0 8px;border:1px solid var(--line-soft);border-radius:8px;background:var(--pane);color:#344858;font-size:12.5px}.chat-chip>svg{width:15px;height:15px;color:var(--accent);flex-shrink:0}.chat-chip small{color:var(--faint);font-size:11.5px}.chat-chip-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-chip-link{border:0;background:none;padding:0;color:inherit;font:inherit;cursor:pointer}.chat-chip-link:hover{color:var(--accent);text-decoration:underline}.chat-chip-remove{display:grid;place-items:center;width:22px;height:22px;border:0;border-radius:6px;background:transparent;color:var(--faint);cursor:pointer;flex-shrink:0}.chat-chip-remove:hover{background:var(--line-soft);color:var(--ink)}.chat-chip-remove svg{width:13px;height:13px}.chat-chip--pinned{padding-right:10px}.chat-chip--quote{max-width:min(100%,420px)}.chat-chip--image{padding-left:4px}.chat-chip--image img{width:32px;height:32px;border-radius:6px;-o-object-fit:cover;object-fit:cover}.chat-chip--image .chat-chip-text{display:grid;line-height:1.3}.chat-chip.is-busy{padding-right:10px;color:var(--muted)}.chat-chip-spinner{width:12px;height:12px;border:2px solid var(--accent-line);border-top-color:var(--accent);border-radius:50%;animation:chat-spin .8s linear infinite}.chat-input-label{display:block}.chat-input{display:block;width:100%;min-height:44px;max-height:200px;resize:none;border:0;padding:2px 6px 6px;font-size:15px;line-height:1.55;color:var(--ink);background:transparent;box-shadow:none}.chat-input:focus{outline:none;box-shadow:none}.chat-input::-moz-placeholder{color:var(--faint);opacity:1}.chat-input::placeholder{color:var(--faint);opacity:1}.chat-conversation--empty .chat-input{min-height:56px}.chat-compose-toolbar{display:flex;align-items:center;gap:8px}.chat-plus{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#344858;cursor:pointer}.chat-plus:hover,.chat-plus[aria-expanded=true]{background:var(--mint);border-color:var(--accent-line);color:var(--accent)}.chat-plus:disabled{opacity:.45;cursor:default}.chat-plus svg{width:18px;height:18px}.chat-mic{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}.chat-mic:hover{background:var(--hover);color:var(--ink)}.chat-mic:disabled{opacity:.45;cursor:default}.chat-mic svg{width:18px;height:18px}.chat-mic.is-listening{background:var(--danger-soft);color:var(--danger);animation:chat-listening 1.6s ease-in-out infinite}@keyframes chat-listening{50%{box-shadow:0 0 0 5px var(--danger-soft)}}@media (prefers-reduced-motion:reduce){.chat-mic.is-listening{animation:none}}.chat-pill{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#344858;font-size:13px;cursor:pointer}.chat-pill svg{width:16px;height:16px}.chat-pill:hover{background:var(--hover)}.chat-pill[aria-pressed=true]{background:var(--mint);border-color:var(--accent-line);color:var(--accent);font-weight:600}.chat-pill:disabled{opacity:.45;cursor:default}.chat-style-pill.is-set{background:var(--mint);border-color:var(--accent-line);color:var(--accent);font-weight:600}.chat-style-pill[aria-expanded=true]{background:var(--hover)}.chat-compose-spacer{flex:1}.chat-estimate{font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums;white-space:nowrap}.chat-send{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border:0;border-radius:50%;background:var(--accent);color:#fff;cursor:pointer}.chat-send svg{width:18px;height:18px;stroke-width:2}.chat-send:hover{background:var(--accent-hover)}.chat-send:disabled{background:#c7d1d8;cursor:default}.chat-stop{background:var(--ink)}.chat-stop:hover{background:#13222d}.chat-compose-notes{display:grid;gap:4px;margin-top:6px;padding:0 8px;font-size:12.5px;line-height:1.5;color:#8a5410}.chat-compose-notes:empty{display:none}.chat-drop-overlay{position:absolute;top:8px;right:8px;bottom:8px;left:8px;z-index:35;display:grid;place-items:center;border:2px dashed var(--accent-line);border-radius:12px;background:#ffffffeb;pointer-events:none}.chat-drop-overlay>div{display:grid;justify-items:center;gap:6px;color:var(--ink)}.chat-drop-overlay svg{width:28px;height:28px;color:var(--accent)}.chat-drop-overlay span{font-size:13px;color:var(--muted)}.chat-guest-sidebar{gap:16px}.chat-guest-save{display:grid;gap:10px;margin-top:auto;padding:16px;border:1px solid var(--line-soft);border-radius:12px;background:#fff;font-size:13px;line-height:1.5;color:var(--muted)}.chat-guest-save-title{font-size:14px;font-weight:600;color:var(--ink)}.chat-guest-save .workspace-button{justify-content:center;width:100%}.chat-guest-allowance{font-size:12px;line-height:1.5;color:var(--faint)}.chat-guest-tools{display:inline-flex;align-items:center;gap:6px;padding:0 6px;font-size:13px;color:#344858;text-decoration:none}.chat-guest-tools:hover{color:var(--accent)}.chat-guest-tools svg{width:14px;height:14px}.chat-guest-brand{padding-left:6px;font-size:15px;font-weight:600;color:var(--ink)}.chat-guest-auth{display:flex;align-items:center;gap:8px}.chat-guest-auth>a,.chat-guest-auth>button{min-height:34px;font-size:13.5px}.chat-guest-hint{margin-top:8px;text-align:center;font-size:12px;color:var(--faint)}.chat-sidebar .chat-guest-save{margin:8px 2px 10px}.chat-challenge{display:grid;gap:8px;justify-items:start;padding:6px 0 2px;color:var(--ink)}.chat-workspace--guest .chat-history-toggle{display:none}.palette-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;justify-content:center;align-items:flex-start;padding:12dvh 16px 16px;background:#20354447}.palette{width:100%;max-width:600px;max-height:70dvh;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line-soft);border-radius:14px;background:#fff;box-shadow:0 24px 60px #20354438;color:var(--ink)}.palette-search{display:flex;align-items:center;gap:10px;height:52px;flex-shrink:0;padding:0 16px;border-bottom:1px solid var(--line-soft);color:var(--faint)}.palette-search>svg{width:18px;height:18px;flex-shrink:0}.palette-search input{flex:1;min-width:0;border:0;padding:0;font-size:16px;color:var(--ink);background:transparent}.palette-search input:focus{outline:none;box-shadow:none}.palette-search input::-webkit-search-cancel-button{display:none}.palette-search kbd{padding:2px 6px;border:1px solid var(--line-soft);border-radius:5px;font-size:11px;font-weight:600;font-family:inherit;color:var(--faint)}.palette-results{flex:1;min-height:0;overflow-y:auto;padding:6px}.palette-group{padding:10px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}.palette-row{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:0 10px;border:0;border-radius:8px;background:transparent;text-align:left;font-size:14px;color:var(--ink);cursor:pointer}.palette-row>svg{width:17px;height:17px;color:var(--muted);flex-shrink:0}.palette-row>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.palette-row small{flex-shrink:0;color:var(--faint);font-size:12px}.palette-row.is-active{background:var(--mint)}.palette-load{color:var(--accent)}.palette-empty{padding:12px 10px;font-size:13px;color:var(--muted)}.palette-foot{flex-shrink:0;padding:8px 16px;border-top:1px solid var(--line-soft);font-size:11.5px;color:var(--faint)}.workspace-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:#20354452}.workspace-dialog{width:100%;max-width:520px;max-height:90dvh;overflow-y:auto;padding:24px;border:1px solid var(--line-soft);border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 24px 70px #2035443d;font-size:14px;line-height:1.6}.workspace-dialog.is-wide{max-width:600px}.workspace-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px -8px 16px 0}.workspace-dialog-header h2{font-size:18px;font-weight:600;letter-spacing:-.3px}.workspace-dialog-header.is-compact{position:absolute;top:8px;right:8px;margin:0;z-index:1}.workspace-dialog-backdrop.is-drawer{justify-content:flex-start;align-items:stretch;padding:0}.workspace-dialog.is-drawer{position:relative;width:min(320px,88vw);max-width:none;max-height:none;height:100dvh;padding:0;border:0;border-radius:0 16px 16px 0;overflow:hidden;display:flex;flex-direction:column}.workspace-dialog.is-drawer .chat-sidebar{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));overflow-y:auto}.workspace-dialog.is-drawer .chat-sidebar-list{flex:0 0 auto;overflow:visible}.workspace-dialog.is-drawer .chat-sidebar-nav{padding-right:40px}.dialog-copy{color:#344858}.instructions-form{display:grid;gap:10px}.instructions-field textarea{width:100%;min-height:160px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font-size:14.5px;line-height:1.55;color:var(--ink);resize:vertical}.instructions-field textarea:focus{border-color:var(--accent-line);box-shadow:0 0 0 3px var(--ring);outline:none}.instructions-count{margin-top:-4px;text-align:right;font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}.dialog-count{color:var(--faint)}.dialog-error{margin-bottom:12px;padding:8px 12px;border-radius:8px;background:var(--danger-soft);font-size:13px;color:#7f2b23}.dialog-status{margin-bottom:8px;font-size:13px;color:var(--muted)}.dialog-hint{margin-top:12px;font-size:12px;color:var(--faint)}.dialog-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:24px}.dialog-actions-spacer{flex:1}.workspace-dialog :is(input:not([type=checkbox]),textarea,select){width:100%;border:1px solid var(--line);border-radius:9px;padding:8px 12px;color:var(--ink);font-size:14px}.workspace-dialog input[type=checkbox]{color:var(--accent);border-color:#9aadb9;border-radius:4px}.workspace-dialog :is(input,textarea,select):focus{--tw-ring-color:var(--accent);border-color:var(--accent)}.assistant-editor{display:grid;gap:16px}.field{display:grid;gap:6px;margin:0;padding:0;border:0;font-size:13px;font-weight:500;color:var(--muted)}.field legend{margin-bottom:6px}.field-row{display:block;margin-top:6px}.field-button{justify-self:start}.field-check{display:flex;align-items:center;gap:10px;font-size:14px;color:#344858}.knowledge-unlisted{display:grid;gap:8px;margin:12px 0}.knowledge-unlisted-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px 8px 12px;border:1px solid var(--line-soft);border-radius:10px;font-size:13px}.knowledge-list{max-height:44dvh;overflow-y:auto;margin-top:12px;border:1px solid var(--line-soft);border-radius:12px}.knowledge-document{display:flex;align-items:center;gap:12px;padding:12px;border-top:1px solid var(--line-soft);cursor:pointer}.knowledge-document:first-child{border-top:0}.knowledge-document:hover{background:var(--hover)}.knowledge-document:has(input:checked){background:#f2f7fa}.knowledge-document input{width:17px;height:17px;flex-shrink:0}.knowledge-document>svg{width:20px;height:20px;color:var(--faint);flex-shrink:0}.knowledge-document-text{display:grid;min-width:0}.knowledge-document strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.knowledge-document small{font-size:12px;color:var(--faint)}.knowledge-empty{padding:16px;font-size:13px;color:var(--muted)}.knowledge-more{margin-top:8px}.saved-images{display:grid;gap:4px}.saved-image{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--line-soft);border-radius:10px;background:#fff;text-align:left;font-size:13.5px;cursor:pointer}.saved-image:hover{background:var(--hover)}.saved-image svg{width:18px;height:18px;color:var(--accent)}.chat-drawer-links{display:grid;gap:2px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line-soft)}.chat-drawer-heading{padding:8px 10px 4px;font-size:12px;font-weight:500;color:var(--faint)}.chat-drawer-link{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;font-size:14px;color:#344858;text-align:left;cursor:pointer}.chat-drawer-link:hover{background:var(--hover)}.chat-drawer-link svg{width:18px;height:18px;color:var(--muted)}.chat-drawer-language{padding:4px 2px}.artifact-viewer{position:relative;display:flex;flex-direction:column;min-height:0;min-width:0;height:100%;background:#fff;color:var(--ink);border-left:1px solid var(--line-soft);outline:none}.artifact-header{display:flex;align-items:center;gap:8px;height:52px;flex-shrink:0;padding:0 10px 0 20px}.artifact-heading{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.artifact-heading h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600}.artifact-version{display:inline-flex;align-items:center;gap:3px;height:26px;padding:0 6px 0 8px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:12px;font-weight:600;color:#344858;cursor:pointer;white-space:nowrap}.artifact-version:hover,.artifact-version[aria-expanded=true]{background:var(--hover)}.artifact-version svg{width:13px;height:13px}.artifact-version-menu{width:300px}.artifact-version-row[aria-current=true]{font-weight:600}.artifact-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}.artifact-divider{width:1px;height:20px;margin:0 4px;background:var(--line-soft)}.artifact-view-switch{display:flex;gap:2px;margin-right:4px;padding:2px;border-radius:8px;background:var(--pane)}.artifact-view-switch button{height:28px;padding:0 10px;border:0;border-radius:6px;background:transparent;font-size:12.5px;color:var(--muted);cursor:pointer}.artifact-view-switch button[aria-pressed=true]{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 2px #20354414}.artifact-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:8px 12px 8px 20px;border-block:1px solid #e6dcc4;background:#fbf6ea;font-size:13px;color:#6b4a12}.artifact-banner-actions{display:flex;gap:6px}.artifact-banner-button{height:28px;padding:0 10px;border:1px solid #e1d3b2;border-radius:7px;background:#fff;font-size:12.5px;font-weight:500;color:#6b4a12;cursor:pointer}.artifact-banner-button.is-primary{border-color:var(--accent);background:var(--accent);color:#fff}.artifact-banner-button:disabled{opacity:.5;cursor:default}.artifact-scroll{flex:1;min-height:0;overflow-y:auto;padding:20px 48px 40px}.artifact-notice{max-width:600px;margin:0 auto 12px;font-size:12.5px;line-height:1.6;color:var(--muted)}.artifact-error{max-width:600px;margin:0 auto 12px;padding:8px 12px;border-radius:8px;background:var(--danger-soft);font-size:13px;color:#7f2b23}.artifact-document{position:relative;max-width:600px;margin:0 auto}.artifact-document .chat-markdown{font-size:15.5px;line-height:1.72}.artifact-document .chat-markdown h1{font-size:1.75em;line-height:1.22;letter-spacing:-.5px;margin-bottom:.6em}.artifact-document.is-html{max-width:none}.artifact-document iframe{width:100%;min-height:60dvh;border:1px solid var(--line-soft);border-radius:8px;background:#fff}.artifact-source{white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.7;color:#344858}.artifact-diff{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.72}.artifact-diff ins{background:var(--ins-bg);color:var(--ins-ink);text-decoration:none;border-radius:3px}.artifact-diff del{background:var(--del-bg);color:var(--del-ink);border-radius:3px}.artifact-editor{display:grid;gap:16px}.artifact-editor label{display:grid;gap:6px;font-size:13px;font-weight:500;color:var(--muted)}.artifact-editor :is(input,textarea){width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 12px;font-size:14px;color:var(--ink)}.artifact-editor textarea{min-height:50dvh;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.7}.artifact-editor :is(input,textarea):focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring);outline:none}.artifact-conflict{display:flex;flex-wrap:wrap;gap:8px}.artifact-edit-actions{display:flex;justify-content:flex-end;gap:8px}.artifact-selection-bar{position:absolute;z-index:5;display:flex;align-items:center;gap:2px;padding:4px;border-radius:10px;background:var(--ink);box-shadow:0 8px 24px #2035443d;white-space:nowrap}.artifact-selection-bar button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:#fff;font-size:12.5px;font-weight:500;cursor:pointer}.artifact-selection-bar button:hover{background:#ffffff24}.artifact-selection-bar svg{width:15px;height:15px}.artifact-selection-sep{width:1px;height:16px;margin:0 2px;background:#ffffff38}.artifact-viewer .sources-disclosure{max-width:600px;margin:24px auto 0}.artifact-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;height:36px;flex-shrink:0;padding:0 20px;border-top:1px solid var(--line-soft);font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}.artifact-footer-status{display:inline-flex;align-items:center;gap:6px}.artifact-footer-status svg{width:13px;height:13px}.artifact-ask-bar{flex-shrink:0;padding:8px 12px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line-soft)}.artifact-ask{display:flex;align-items:center;gap:10px;width:100%;height:44px;padding:0 16px;border:1px solid var(--line);border-radius:22px;background:#fff;color:var(--faint);font-size:14.5px;text-align:left;cursor:pointer}.artifact-ask:hover{border-color:var(--accent-line);color:var(--muted)}.artifact-ask svg{width:18px;height:18px;color:var(--accent)}.artifact-drawer{position:static}.chat-markdown{color:var(--ink);font-size:16px;line-height:1.7;--tw-prose-body:var(--ink);--tw-prose-headings:var(--ink);--tw-prose-links:var(--accent);--tw-prose-bold:var(--ink);--tw-prose-code:var(--ink);--tw-prose-bullets:var(--faint);--tw-prose-counters:var(--muted)}.chat-markdown>:first-child{margin-top:0}.chat-markdown>:last-child{margin-bottom:0}.chat-markdown :is(h1,h2,h3){font-weight:600;letter-spacing:-.3px}.chat-markdown h1{font-size:1.5em;margin:1.2em 0 .5em}.chat-markdown h2{font-size:1.22em;margin:1.3em 0 .4em}.chat-markdown h3{font-size:1.06em;margin:1.2em 0 .3em}.chat-markdown p{margin:.75em 0}.chat-markdown :is(ul,ol){margin:.6em 0}.chat-markdown li{margin:.25em 0}.chat-markdown li:has(>.task-box),.chat-markdown li:has(>p>.task-box){list-style:none}.chat-markdown .task-box{display:inline-block;width:14px;height:14px;margin:0 8px -2px -22px;border:1.5px solid var(--line);border-radius:4px;background:#fff}.chat-markdown .task-box.is-checked{border-color:var(--accent);background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}.chat-markdown pre{color:var(--ink);background:transparent;font-size:13px;line-height:1.7}.chat-markdown code{font-size:.88em;padding:.1em .35em;border-radius:4px;background:var(--pane);font-weight:500}.chat-markdown pre code{padding:0;background:transparent;font-weight:400}.chat-markdown code:before,.chat-markdown code:after{content:none}.chat-markdown blockquote{color:var(--muted);border-left-color:var(--accent-line);font-style:normal}.chat-markdown table{font-size:14px}.chat-markdown a{color:var(--accent);text-underline-offset:2px}.chat-markdown .chat-code{position:relative;margin:1.2em 0;border:1px solid var(--line-soft);border-radius:10px;background:#f6f8f9;overflow:hidden}.chat-markdown .chat-code-toolbar{display:flex;justify-content:flex-end;height:34px;align-items:center;padding:0 6px;border-bottom:1px solid var(--line-soft);background:#eef2f4}.chat-markdown .chat-code button{height:26px;padding:0 8px;border:0;border-radius:6px;background:transparent;font-size:12px;color:var(--muted);cursor:pointer}.chat-markdown .chat-code button:hover{background:#fff;color:var(--ink)}.chat-markdown .chat-code pre{margin:0;border:0;border-radius:0;padding:14px 16px}@keyframes chat-pulse{50%{opacity:.4}}@keyframes chat-shimmer{0%{background-position:110% 0}to{background-position:-110% 0}}@keyframes chat-spin{to{transform:rotate(360deg)}}@media (max-width:1279px){.chat-grid.has-artifact,.chat-grid.has-artifact.history-collapsed{grid-template-columns:minmax(0,1fr)}.artifact-drawer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:30;border-left:0}}@media (max-width:1023px){.chat-grid,.chat-grid.history-collapsed{grid-template-columns:minmax(0,1fr)}.chat-history-panel,.chat-toggle-sidebar{display:none}.chat-toggle-menu{display:block;width:20px;height:20px}}@media (min-width:768px){.chat-drawer-links{display:none}}@media (max-width:767px){.app-shell--chat .app-topbar,.app-shell--chat .workspace-rail{display:none}.app-shell--chat .writing-main.chat-main{padding:0}.app-shell--chat .chat-workspace{height:var(--chat-height,100dvh);border:0;border-radius:0;box-shadow:none}.chat-header{height:50px;padding:0 6px;border-bottom:1px solid var(--line-soft)}.chat-title-button{max-width:58vw;font-size:14.5px}.chat-assistant-label{display:none}.chat-visitor-auth>a{display:none}.chat-thread-inner{padding:16px 16px 24px}.chat-bubble{max-width:88%}.chat-message--assistant .chat-markdown{font-size:15px}.chat-welcome-title{font-size:26px;letter-spacing:-.6px}.chat-welcome-help{font-size:15px}.chat-composer{width:auto;margin:0 10px max(10px,env(safe-area-inset-bottom))}.chat-suggestions{width:auto;margin:0 10px 12px}.chat-conversation--empty .chat-suggestions{order:1}.chat-conversation--empty .chat-composer{order:2;margin-bottom:max(10px,env(safe-area-inset-bottom))}.chat-suggestion-row{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-10px;padding-right:10px}.chat-suggestion-row::-webkit-scrollbar{display:none}.chat-followups{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-16px;padding-right:16px}.chat-followups::-webkit-scrollbar{display:none}.chat-input{font-size:16px}.chat-estimate{display:none}.chat-style-pill:not(.is-set){width:34px;padding:0;justify-content:center}.chat-style-pill:not(.is-set) .chat-style-name{display:none}.chat-conversation--empty{padding-bottom:0}.chat-user-actions{display:none}.chat-message--user.is-last .chat-user-actions{display:flex;opacity:1}.workspace-dialog{padding:20px}.artifact-drawer{border-radius:16px 16px 0 0;top:12px;box-shadow:0 -10px 30px #2035442e}.artifact-header{padding:0 6px 0 16px}.artifact-label{display:none}.artifact-scroll{padding:12px 20px 24px}.palette-backdrop{padding-top:8px}}@media (prefers-reduced-motion:reduce){:is(.chat-workspace,.artifact-viewer,.workspace-dialog,.palette) *{scroll-behavior:auto!important;transition:none!important;animation:none!important}.chat-working-label{-webkit-text-fill-color:currentColor;background:none}}
