.chat-answer-sources{border:1px solid var(--line,#dce3dc);background:var(--surface,#fff);width:100%;min-width:0;color:var(--ink,#18291f);border-radius:12px;margin:12px 0 4px;padding:16px 18px 4px}.chat-answer-sources__header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.chat-answer-sources__header h3{align-items:center;gap:8px;margin:0;font-size:14px;font-weight:650;line-height:1.5;display:flex}.chat-answer-sources__header h3 span{color:var(--muted,#5b675e);font-size:12px;font-weight:400}.chat-answer-sources__header p,.chat-answer-sources__empty{color:var(--muted,#5b675e);margin:4px 0 10px;font-size:12px;line-height:1.5}.chat-answer-sources__close{width:32px;height:32px;color:var(--muted,#5b675e);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;padding:0;display:grid}.chat-answer-sources__close:hover{background:var(--green-pale,#edf3ed);color:var(--ink,#18291f)}.chat-answer-sources__close:focus-visible,.chat-answer-sources__title:focus-visible{outline:2px solid var(--green,#326748);outline-offset:3px}.chat-answer-sources__list{margin:0;padding:0;list-style:none}.chat-answer-sources__item{border-top:1px solid var(--line,#dce3dc);grid-template-columns:22px minmax(0,1fr);gap:10px;padding:14px 0;display:grid}.chat-answer-sources__number{color:var(--muted,#5b675e);font-variant-numeric:tabular-nums;font-size:11px;line-height:1.6}.chat-answer-sources__content{min-width:0}.chat-answer-sources__publication{color:var(--muted,#5b675e);flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:4px;font-size:11px;line-height:1.5;display:flex}.chat-answer-sources__publication svg{flex-shrink:0}.chat-answer-sources__publication time:before{content:"·";padding-right:6px}.chat-answer-sources__title{color:var(--ink,#18291f);overflow-wrap:anywhere;font-size:13px;font-weight:600;line-height:1.6;text-decoration:none;display:inline}a.chat-answer-sources__title:hover{color:var(--green,#326748);text-underline-offset:3px;text-decoration:underline}.chat-answer-sources__title svg{vertical-align:-1px;margin-left:5px;display:inline}.chat-answer-sources__note{color:var(--muted,#5b675e);overflow-wrap:anywhere;margin:6px 0 0;font-size:12px;line-height:1.6}.chat-answer-sources__note span{font-weight:500}.chat-answer-sources__host,.chat-answer-sources__unavailable{color:var(--muted,#5b675e);overflow-wrap:anywhere;margin-top:5px;font-size:10px;display:block}@media (min-width:1000px){.chat-answer-sources__list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;display:grid}}@media (max-width:600px){.chat-answer-sources{padding:13px 12px 2px}.chat-answer-sources__item{grid-template-columns:16px minmax(0,1fr);gap:7px}.chat-answer-sources__close{width:36px;height:36px}}
.main-chat{grid-template-columns:clamp(220px, var(--chat-sidebar-width,280px), 420px) 8px minmax(0, 1fr);width:100%;min-width:0;min-height:0;height:max(0px, calc(100svh - var(--chat-chrome-height,104px)));height:max(0px, calc(100dvh - var(--chat-chrome-height,104px)));gap:0;display:grid}.chat-workspace{flex-direction:column;justify-self:center;width:100%;min-width:0;max-width:1000px;min-height:0;padding:24px clamp(24px,4vw,64px);display:flex}.conversation-toolbar{flex-wrap:wrap;flex:none;align-items:center;gap:8px;margin:0 0 16px;display:flex}.conversation-toolbar button,.conversation-history button,.conversation-rename button,.chat-regenerate-confirm button{border:1px solid var(--line);background:var(--surface,#fff);min-height:38px;color:var(--ink,#18291f);font:inherit;cursor:pointer;border-radius:9px;align-items:center;gap:7px;padding:9px 12px;font-size:12px;display:inline-flex}.conversation-toolbar button:hover,.conversation-history button:hover{border-color:var(--green);background:var(--green-pale)}.conversation-toolbar span,.conversation-loading{color:var(--muted);font-size:12px}.main-chat button:disabled{cursor:default;opacity:.55}.main-chat button:focus-visible,.main-chat summary:focus-visible,.main-chat input:focus-visible{outline:2px solid var(--green);outline-offset:3px}.main-chat .conversation-history-trigger,.main-chat .conversation-history-close,.conversation-history-backdrop,.main-chat .conversation-sidebar-expand{display:none}.conversation-history{background:#f0f3ef;flex-direction:column;min-width:0;min-height:0;padding:24px;display:flex}.main-chat .conversation-sidebar-collapse{background:0 0;border-color:#0000;flex:0 0 36px;justify-content:center;align-items:center;width:36px;height:36px;min-height:36px;padding:0;display:inline-flex}.conversation-sidebar-resize{cursor:col-resize;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:0;align-self:stretch;width:8px;min-width:0;padding:0;display:block;position:relative}.conversation-sidebar-resize:before{background:var(--line);content:"";width:1px;position:absolute;inset:0 auto 0 3px}.conversation-sidebar-resize:after{background:var(--muted);content:"";border-radius:2px;width:4px;height:28px;position:absolute;top:50%;left:2px;transform:translateY(-50%)}.conversation-sidebar-resize:hover,.conversation-sidebar-resize:focus-visible{background:var(--green-pale)}.conversation-sidebar-resize:hover:before,.conversation-sidebar-resize:focus-visible:before,.conversation-sidebar-resize:hover:after,.conversation-sidebar-resize:focus-visible:after{background:var(--green)}.conversation-sidebar-resize:focus-visible{outline:2px solid var(--green);outline-offset:-2px}.main-chat[data-sidebar-resizing=true]{cursor:col-resize;-webkit-user-select:none;user-select:none}.main-chat[data-sidebar-resizing=true] .conversation-sidebar-resize{background:var(--green-pale)}.conversation-history header{flex:none;justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.conversation-history h2{letter-spacing:-.025em;margin:0 0 8px;font-size:16px;font-weight:650}.conversation-history p{color:var(--muted);flex:none;margin:0 0 16px;font-size:12px;line-height:1.6}.conversation-archive-toggle{min-height:38px;color:var(--muted);flex:none;align-items:center;gap:8px;font-size:12px;display:flex}.conversation-archive-toggle input{accent-color:var(--green)}.conversation-history ul{scrollbar-width:thin;overscroll-behavior-y:contain;flex:auto;min-height:0;margin:10px 0;padding:3px;list-style:none;overflow-y:auto}.conversation-history ul:empty{flex:none;margin-block:4px}.conversation-history li{align-items:flex-start;gap:3px;padding:2px 0;display:flex}.conversation-history li button{background:0 0;border-color:#0000}.conversation-history li>button:first-child{text-align:left;overflow-wrap:anywhere;flex-direction:column;flex:1;align-items:flex-start;gap:5px;min-width:0;padding:10px 9px}.conversation-history li strong{font-size:12px;font-weight:560;line-height:1.5}.conversation-history li small{color:var(--muted);font-size:10px;font-weight:400;line-height:1.5}.conversation-history li>button:last-child{color:var(--muted);flex-shrink:0;padding-inline:8px}.conversation-history li [aria-current=true]{border-color:var(--line);background:var(--green-pale)}.conversation-history>button{flex:none;justify-content:center}.conversation-rename{flex-wrap:wrap;flex:none;gap:8px;margin-bottom:15px;display:flex}.conversation-rename input{border:1px solid var(--line);border-radius:8px;flex:1;width:180px;min-width:0;padding:10px}.chat-stage{flex-direction:column;flex:auto;justify-content:center;gap:26px;min-width:0;min-height:0;display:flex}.chat-workspace-heading{flex:none}.chat-workspace-heading h1{font-size:var(--type-hero-title);letter-spacing:-.045em;text-align:center;text-wrap:balance;margin:0;font-weight:680;line-height:1.12}.chat-stage:has(.chat-workbench-active){justify-content:flex-start;gap:16px}.chat-stage:has(.chat-workbench-active) .chat-workspace-heading h1{text-align:left;font-size:24px;line-height:1.25}.main-chat .chat-workbench-layout{flex-direction:column;min-width:0;min-height:0;display:flex}.chat-stage:has(.chat-workbench-active) .chat-workbench-layout{flex:auto}.main-chat .chat-workbench{flex-direction:column;flex:auto;min-width:0;min-height:0;display:flex}.conversation-context,.chat-action-notice,.chat-outcome{color:var(--muted);margin:10px 0 14px;font-size:12px;line-height:1.6}.main-chat .conversation-context{flex:none}.main-chat .chat-messages{scrollbar-width:thin;scrollbar-gutter:stable;overscroll-behavior-y:contain;flex:auto;min-height:0;max-height:none;padding:0 8px 8px 0;overflow:hidden auto}.main-chat .chat-messages:focus-visible{outline:2px solid var(--green);outline-offset:3px}.chat-compose-area{min-width:0;padding-block:14px env(safe-area-inset-bottom,0px);flex:none}.chat-feedback{overscroll-behavior-y:contain;flex:0 auto;min-height:0;overflow-y:auto}.chat-workbench-empty .chat-compose-area{padding-top:0}.main-chat .chat-form{flex:none;margin-top:0}.main-chat .chat-form textarea{max-height:min(260px,30dvh);display:block}.chat-workspace>.chat-error{flex:none;margin-block:0 12px}.main-chat .chat-message{min-width:0;max-width:none}.main-chat .chat-copy{overflow-wrap:anywhere;min-width:0}.main-chat .chat-role{font-size:10px}.main-chat .chat-thinking{align-items:center;gap:9px;padding:12px 0;display:flex}.main-chat .answer-actions{border:0;flex-wrap:wrap;align-items:center;gap:2px;margin-top:0;padding:0;display:flex}.main-chat .answer-actions button,.main-chat .answer-export summary{min-height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:6px 8px;transition:background-color .15s,color .15s;display:inline-flex}.main-chat .answer-actions button:hover,.main-chat .answer-export summary:hover,.main-chat .answer-export[open]>summary,.main-chat .answer-sources[aria-expanded=true]{color:var(--ink);background:var(--green-pale)}.main-chat .answer-actions .answer-icon{flex:0 0 36px;width:36px}.main-chat .answer-actions .answer-sources{font-size:12px}.answer-export{position:relative}.answer-export summary{list-style:none}.answer-export summary::-webkit-details-marker{display:none}.answer-export>div{z-index:5;background:var(--surface,#fff);border:1px solid var(--line);border-radius:9px;gap:2px;min-width:150px;padding:6px;display:grid;position:absolute;bottom:calc(100% + 4px);left:0;box-shadow:0 8px 24px #17321f18}.main-chat .answer-export>div>button{justify-content:flex-start;padding-inline:10px}.main-chat .answer-export>div>.answer-save{border-top:1px solid var(--line);border-radius:0 0 5px 5px}.chat-regenerate-confirm{border:1px solid var(--line-strong);background:var(--surface,#fff);border-radius:9px;margin:14px 0;padding:15px}.chat-regenerate-confirm p{margin:0 0 10px;font-size:13px}.chat-regenerate-confirm button+button{margin-left:8px}.record-chat-link{margin:35px 0 20px}@media (min-width:761px){.main-chat[data-sidebar-collapsed=true]{grid-template-columns:minmax(0,1fr)}.main-chat[data-sidebar-collapsed=true] .conversation-history,.main-chat[data-sidebar-collapsed=true] .conversation-sidebar-resize{display:none}.main-chat[data-sidebar-collapsed=true] .conversation-sidebar-expand{display:inline-flex}}@media (max-width:760px){.main-chat{grid-template-columns:minmax(0,1fr)}.chat-workspace{padding:14px}.main-chat .conversation-sidebar-resize,.main-chat .conversation-sidebar-collapse,.main-chat .conversation-sidebar-expand{display:none}.conversation-toolbar{gap:6px;margin-bottom:14px}.main-chat .conversation-history-trigger,.main-chat .conversation-history-close{display:inline-flex}.main-chat .conversation-history-close{flex:0 0 42px;justify-content:center;align-items:center;width:42px;height:42px;padding:0}.conversation-history{z-index:81;width:min(320px,100vw - 44px);height:100dvh;padding:max(24px, env(safe-area-inset-top,0px)) 18px max(18px, env(safe-area-inset-bottom,0px));background:var(--background,#f7f8f6);border:0;display:none;position:fixed;inset:0 auto 0 0;box-shadow:16px 0 48px #18291f26}.main-chat[data-history-open=true] .conversation-history{display:flex}.main-chat[data-history-open=true] .conversation-history-backdrop{z-index:80;cursor:pointer;background:#15291e55;border:0;border-radius:0;width:100%;height:100%;padding:0;display:block;position:fixed;inset:0}.conversation-history h2{padding-top:10px}.conversation-history li button,.conversation-history>button,.conversation-archive-toggle{min-height:44px}.chat-stage{gap:22px}.chat-stage:has(.chat-workbench-active){gap:12px}.chat-stage:has(.chat-workbench-active) .chat-workspace-heading h1{font-size:22px}.main-chat .chat-messages{padding-right:4px}.main-chat .chat-message-user{grid-template-columns:42px minmax(0,1fr);gap:12px}.chat-compose-area{padding-top:10px}.main-chat .chat-form textarea{font-size:16px}.main-chat .chat-submit{width:42px;height:42px}.main-chat .answer-actions{gap:2px}.conversation-toolbar button{min-height:42px}.main-chat .answer-actions .answer-icon{flex-basis:42px;width:42px;min-height:42px}.main-chat .answer-actions .answer-sources{min-height:42px}}@media (max-height:540px){.conversation-toolbar{margin-bottom:8px}:is(.chat-stage,.chat-stage:has(.chat-workbench-active)){gap:10px}.chat-workspace-heading h1{font-size:20px}.chat-stage:has(.chat-workbench-active) .chat-workspace-heading h1{font-size:20px}.main-chat .chat-form textarea{min-height:64px;max-height:24dvh;padding-block:12px}.chat-compose-area{padding-top:8px}}@media print{.conversation-toolbar,.conversation-history,.conversation-history-backdrop,.conversation-sidebar-resize,.conversation-rename,.record-chat-link,.answer-actions,.chat-form{display:none!important}.main-chat,.chat-workspace,.chat-stage,.main-chat .chat-workbench-layout,.main-chat .chat-workbench{height:auto;display:block;overflow:visible}.main-chat .chat-messages{height:auto;max-height:none;overflow:visible}}
