.durian-chat-layout{flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.durian-chat{--chat-ink:#27312c;--chat-muted:#637068;--chat-green:#356b50;min-width:0;min-height:0;color:var(--chat-ink);background:#fff;flex-direction:column;flex:1;font-family:system-ui,-apple-system,Segoe UI,Microsoft YaHei UI,sans-serif;font-size:16px;line-height:1.7;display:flex;position:relative;overflow:hidden}.durian-chat *,.durian-chat-settings *{box-sizing:border-box}.durian-chat button,.durian-chat-settings button{font:inherit;cursor:pointer}.durian-chat button:disabled,.durian-chat-settings button:disabled{cursor:default;opacity:.4}.durian-chat button:focus-visible,.durian-chat summary:focus-visible,.durian-chat-settings button:focus-visible,.durian-chat-settings summary:focus-visible{outline:2px solid var(--chat-green,#356b50);outline-offset:3px}.durian-chat-header{flex-shrink:0;justify-content:space-between;align-items:center;gap:16px;padding:12px 28px;display:flex}.durian-chat-title{letter-spacing:-.4px;margin:0;font-size:19px;font-weight:600}.durian-chat-heading{align-items:center;gap:7px;min-width:0;display:flex}.durian-chat-heading-text{min-width:0}.durian-chat-current-title{color:var(--chat-muted);text-overflow:ellipsis;white-space:nowrap;max-width:min(52vw,420px);margin:0;font-size:12px;overflow:hidden}.durian-chat-mobile-history{display:none!important}.durian-chat-sidebar{background:#f8faf8;border-right:1px solid #e7ebe8;flex:0 0 224px;min-width:0;min-height:0;display:flex}.durian-chat-history{flex-direction:column;flex:1;gap:14px;min-width:0;min-height:0;padding:16px 10px;font-family:system-ui,-apple-system,Segoe UI,Microsoft YaHei UI,sans-serif;display:flex}.durian-chat-history button{font:inherit;cursor:pointer}.durian-chat-history button:disabled{cursor:default;opacity:.4}.durian-chat-history button:focus-visible{outline-offset:2px;outline:2px solid #356b50}.durian-chat-new{color:#356b50;background:#fff;border:1px solid #dce4de;border-radius:14px;flex-shrink:0;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:8px 12px;display:flex;font-size:14px!important}.durian-chat-history-scroll{overscroll-behavior:contain;flex:1;min-height:0;overflow-y:auto}.durian-chat-history-scroll p{color:#637068;overflow-wrap:anywhere;padding:0 8px;font-size:12px}.durian-chat-history-item{text-align:left;color:#27312c;background:0 0;border:0;border-radius:10px;align-items:center;gap:6px;width:100%;min-height:44px;padding:10px 12px;display:flex;font-size:13px!important}.durian-chat-history-item>span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.durian-chat-history-item:hover{background:#edf2ed}.durian-chat-history-item[aria-current=true]{background:#e4ece5;font-weight:600}.durian-chat-history-pending{color:#356b50;flex-shrink:0;margin-left:auto;font-size:10px}.durian-chat-earlier{color:#356b50;background:#fff;border:1px solid #dce4de;border-radius:18px;min-height:44px;margin:0 auto 24px;padding:8px 15px;display:block;font-size:12px!important}.durian-chat-history-dialog{height:min(720px,85dvh)}.durian-chat-history-dialog .durian-chat-history{height:calc(100% - 73px)}.durian-chat-icon-button{width:44px;height:44px;color:var(--chat-muted);background:0 0;border:0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.durian-chat-icon-button:hover{background:#f1f4f2}.durian-chat-scroll{overscroll-behavior:contain;scrollbar-gutter:stable;flex:1;min-height:0;overflow-y:auto}.durian-chat-transcript{width:100%;max-width:792px;margin:0 auto;padding:20px 24px 32px}.durian-chat-exchange{margin-bottom:34px}.durian-chat-question{background:#f1f4f2;border-radius:22px 22px 5px;width:fit-content;max-width:84%;margin:0 0 28px auto;padding:12px 18px}.durian-chat-prose{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:16px;line-height:1.85}.durian-chat-answer{align-items:flex-start;gap:14px;display:flex}.durian-chat-avatar{width:30px;height:30px;color:var(--chat-green);background:#edf4ee;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-top:3px;display:flex}.durian-chat-answer-body{flex:1;min-width:0}.durian-chat-answer-name{color:var(--chat-muted);margin-bottom:6px;font-size:12px;font-weight:600}.durian-chat-meta{color:var(--chat-muted);margin-top:8px;font-size:12px}.durian-chat-meta summary{cursor:pointer;color:#65736a;align-items:center;width:fit-content;min-height:32px;list-style:none;display:flex}.durian-chat-meta summary::-webkit-details-marker{display:none}.durian-chat-meta summary:after{content:"+";padding-left:7px}.durian-chat-meta[open] summary:after{content:"−"}.durian-chat-meta p{margin:2px 0}.durian-chat-meta a{color:var(--chat-green);overflow-wrap:anywhere;display:block}.durian-chat-pending{color:var(--chat-muted);padding:2px 0;font-size:14px}.durian-chat-empty{justify-content:center;align-items:center;padding:32px 24px;display:flex}.durian-chat-welcome{text-align:center;max-width:620px;margin:auto}.durian-chat-welcome h2{letter-spacing:-.8px;margin:18px 0 10px;font-size:clamp(24px,3vw,32px);font-weight:600;line-height:1.35}.durian-chat-welcome p{color:var(--chat-muted);margin:0 0 24px;font-size:14px}.durian-chat-welcome .durian-chat-avatar{width:46px;height:46px;margin:0 auto}.durian-chat-prompts{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.durian-chat-prompts button{color:var(--chat-green);background:#fff;border:1px solid #e2e8e3;border-radius:18px;min-height:40px;padding:7px 14px;font-size:13px}.durian-chat-prompts button:hover{background:#f6f8f6}.durian-chat-footer{background:#fff;flex-shrink:0;width:100%;max-width:792px;margin:0 auto;padding:0 24px 12px;position:relative}.durian-chat-composer{background:#fafcfb;border:1px solid #dce4de;border-radius:26px;padding:12px 12px 10px 18px;box-shadow:0 3px 16px #27312c07}.durian-chat-composer:focus-within{border-color:#8cab96;box-shadow:0 0 0 2px #356b500a}.durian-chat-composer textarea{resize:none;width:100%;min-height:50px;max-height:142px;color:var(--chat-ink);font:inherit;background:0 0;border:0;outline:0;padding:0;font-size:16px;line-height:1.6;display:block;overflow-y:auto}.durian-chat-composer textarea::placeholder{color:#748078}.durian-chat-composer-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:4px;display:flex}.durian-chat-composer-caption{color:var(--chat-muted);font-size:11px}.durian-chat-send{color:#fff;background:var(--chat-green);border:0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex}.durian-chat-send:hover{background:#28523d}.durian-chat-footer-note{text-align:center;color:var(--chat-muted);margin:7px 0 0;font-size:11px;line-height:1.4}.durian-chat-alert{color:#80571e;background:#faf3e7;border-radius:12px;margin:0 0 10px;padding:10px 14px;font-size:13px}.durian-chat-alert p{margin:0}.durian-chat-inline-button{min-height:36px;color:var(--chat-green,#356b50);background:0 0;border:0;margin-right:16px;padding:4px 0;font-size:13px!important;font-weight:600!important}.durian-chat-latest{color:var(--chat-green);white-space:nowrap;background:#fff;border:1px solid #dce4de;border-radius:22px;min-height:40px;padding:8px 16px;position:absolute;bottom:calc(100% + 10px);left:50%;transform:translate(-50%);box-shadow:0 2px 8px #27312c0c;font-size:12px!important}.durian-chat-settings{color:#27312c;background:#fff;border:1px solid #dce4de;border-radius:20px;width:min(560px,100% - 32px);max-height:min(760px,85dvh);padding:0;font-family:system-ui,-apple-system,Segoe UI,Microsoft YaHei UI,sans-serif;font-size:14px;line-height:1.7;overflow-y:auto}.durian-chat-settings::backdrop{background:#182c2360}.durian-chat-settings-header{z-index:1;background:#fff;border-bottom:1px solid #e7ebe8;justify-content:space-between;align-items:center;padding:14px 20px;display:flex;position:sticky;top:0}.durian-chat-settings h2{margin:0;font-size:17px}.durian-chat-settings-content{padding:12px 22px 24px}.durian-chat-settings-content p{color:#637068;margin:10px 0;font-size:13px}.durian-chat-settings summary{cursor:pointer;color:#356b50;align-items:center;min-height:44px;font-weight:600;display:flex}.durian-chat-settings-status{font-weight:600;color:#27312c!important}.durian-chat-input-row{align-items:flex-start;min-width:0;display:flex}.durian-chat-input-row textarea{flex:1;min-width:0}.durian-chat-photo-button{margin:-9px 0 0 -12px}.durian-chat-photo-button:not(:disabled):hover{color:var(--chat-green)}.durian-chat-attachments{flex-wrap:wrap;gap:10px;margin:0 0 10px;padding:6px 6px 0 0;list-style:none;display:flex}.durian-chat-attachment{flex-shrink:0;width:56px;height:56px;position:relative}.durian-chat-attachment img,.durian-chat-attachment-busy{object-fit:cover;background:#edf2ee;border:1px solid #e2e8e3;border-radius:12px;width:56px;height:56px;display:block}.durian-chat-attachment-busy{justify-content:center;align-items:center;display:flex}.durian-chat-spinner{border:2px solid #c9d8cd;border-top-color:var(--chat-green);border-radius:50%;width:18px;height:18px;animation:.8s linear infinite durian-chat-spin}.durian-chat-attachment-remove{color:#fff;background:#27312c;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;padding:0;display:flex;position:absolute;top:-7px;right:-7px}.durian-chat-attachment-remove svg{width:13px;height:13px}.durian-chat-photo-error{color:#80571e;margin:0 0 8px;font-size:12px;line-height:1.5}.durian-chat-question-photos{flex-wrap:wrap;justify-content:flex-end;gap:6px;margin:2px 0 8px;display:flex}.durian-chat-photo-thumb{background:#e4ece5;border:0;border-radius:12px;flex-shrink:0;width:64px;height:64px;padding:0;overflow:hidden}.durian-chat-photo-thumb img{object-fit:cover;width:100%;height:100%;display:block}.durian-chat-photo-viewer{cursor:zoom-out;background:0 0;border:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:visible}.durian-chat-photo-viewer::backdrop{background:#101a15d9}.durian-chat-photo-viewer img{object-fit:contain;background:#fff;border-radius:12px;width:auto;min-width:min(320px,100vw - 32px);max-width:min(100vw - 32px,1280px);height:auto;max-height:calc(100dvh - 96px);display:block}.durian-chat-photo-viewer-close{position:fixed;top:12px;right:12px;color:#fff!important;background:#00000059!important}.durian-chat-photo-viewer-close:focus-visible{outline-color:#fff!important}.durian-chat-usage-wrap{border-bottom:1px solid #eef2ef;flex-shrink:0}.durian-chat-usage{flex-shrink:0;align-items:center;gap:10px;min-width:0;padding:0 22px 8px 28px;font-size:12px;line-height:1.45;display:flex}.durian-chat-usage-meters{flex:1;gap:24px;min-width:0;display:flex}.durian-chat-meter{flex:1 1 0;min-width:0}.durian-chat-meter-text{color:var(--chat-muted)}.durian-chat-meter-part{white-space:nowrap;text-overflow:ellipsis;vertical-align:top;max-width:100%;display:inline-block;overflow:hidden}.durian-chat-meter-label{color:var(--chat-ink);font-weight:600}.durian-chat-meter-track{background:#e4ebe6;border-radius:3px;height:5px;margin-top:4px;overflow:hidden}.durian-chat-meter-fill{background:var(--chat-green);border-radius:3px;height:100%;transition:width .3s ease-out}.durian-chat-meter-warn .durian-chat-meter-fill{background:#90601b}.durian-chat-meter-over .durian-chat-meter-fill{background:#ad4541}.durian-chat-usage-info{width:32px;height:32px;color:var(--chat-muted);background:0 0;border:0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.durian-chat-usage-info:hover,.durian-chat-usage-info[aria-expanded=true]{color:var(--chat-green);background:#f1f4f2}.durian-chat-usage-note{color:var(--chat-muted);overflow-wrap:anywhere;margin:0;padding:0 28px 8px;font-size:12px;line-height:1.5}.durian-chat-usage-muted{color:var(--chat-muted);margin:0;font-size:12px}.durian-chat>.durian-chat-usage{border-bottom:1px solid #eef2ef}.durian-chat-orders{background:#fafcfb;border:1px solid #dce4de;border-radius:14px;max-width:560px;margin-top:14px;padding:10px 14px 4px;font-size:13px;line-height:1.5}.durian-chat-orders-head{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;display:flex}.durian-chat-orders-title{color:var(--chat-ink);font-weight:600}.durian-chat-orders-summary{color:var(--chat-muted);font-size:12px}.durian-chat-orders-list{margin:6px 0 0;padding:0;list-style:none}.durian-chat-order{border-top:1px solid #e7ebe8;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 12px;padding:7px 0;display:flex}.durian-chat-order-main{flex:180px;min-width:0}.durian-chat-order-title{color:var(--chat-ink);overflow-wrap:anywhere;font-weight:500;display:block}.durian-chat-order-detail{color:var(--chat-muted);overflow-wrap:anywhere;font-size:12px;display:block}.durian-chat-order-state{min-width:0;color:var(--chat-muted);overflow-wrap:anywhere;flex:0 auto;font-size:12px}.durian-chat-order-added{color:var(--chat-green);font-weight:600}.durian-chat-order-blocked{color:#80571e}.durian-chat-orders-note{color:#80571e;overflow-wrap:anywhere;margin:4px 0 0;font-size:12px}.durian-chat-orders-error{color:#ad4541;overflow-wrap:anywhere;margin:4px 0 0;font-size:12px}.durian-chat-orders-actions{border-top:1px solid #e7ebe8;flex-wrap:wrap;align-items:center;margin-top:6px;display:flex}.durian-chat-orders-actions .durian-chat-inline-button{min-height:40px}.durian-chat-thinking{max-width:100%;color:var(--chat-muted);background:#f3f7f4;border-radius:5px 18px 18px;align-items:center;gap:10px;padding:8px 14px;font-size:14px;line-height:1.5;display:inline-flex}.durian-chat-dots{flex-shrink:0;gap:4px;display:inline-flex}.durian-chat-dots span{background:var(--chat-green);opacity:.45;border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite durian-chat-bounce}.durian-chat-dots span:nth-child(2){animation-delay:.15s}.durian-chat-dots span:nth-child(3){animation-delay:.3s}.durian-chat-crossfade{min-width:0;display:inline-grid}.durian-chat-crossfade>span{overflow-wrap:anywhere;grid-area:1/1}.durian-chat-fade-in,.durian-chat-answer-in{animation:.15s ease-out both durian-chat-fade-in}.durian-chat-fade-out,.durian-chat-thinking-out{animation:.15s ease-out both durian-chat-fade-out}.durian-chat-exchange-enter .durian-chat-question{animation:durian-chat-rise .18s var(--orchard-ease-out,cubic-bezier(.23, 1, .32, 1)) both}.durian-chat-exchange-enter .durian-chat-answer{animation:.2s ease-out 90ms both durian-chat-fade-in}.durian-chat-reveal{position:relative}.durian-chat-caret{vertical-align:-.15em;background:var(--chat-green);border-radius:1px;width:2px;height:1.05em;margin-left:2px;animation:.9s ease-in-out infinite durian-chat-caret;display:inline-block}.durian-chat-sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.durian-chat-skeleton{animation:.24s ease-out both durian-chat-fade-in}.durian-chat-bone{background:linear-gradient(90deg,#e6ece8 0%,#f4f7f5 50%,#e6ece8 100%) 0 0/200% 100%;border-radius:7px;height:13px;margin:0 0 12px;animation:1.05s linear infinite durian-chat-shimmer}.durian-chat-bone-question{border-radius:22px 22px 5px;width:42%;height:44px;margin:0 0 28px auto}.durian-chat-bone-short{width:58%}.durian-chat-bone-item{border-radius:10px;height:34px;margin:0 8px 8px}@keyframes durian-chat-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@keyframes durian-chat-rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes durian-chat-fade-in{0%{opacity:0}to{opacity:1}}@keyframes durian-chat-fade-out{0%{opacity:1}to{opacity:0}}@keyframes durian-chat-bounce{0%,60%,to{opacity:.45;transform:translateY(0)}30%{opacity:.9;transform:translateY(-4px)}}@keyframes durian-chat-caret{0%,to{opacity:.9}50%{opacity:.15}}@keyframes durian-chat-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.durian-chat-dots span,.durian-chat-caret,.durian-chat-spinner,.durian-chat-bone{animation:none}.durian-chat-meter-fill{transition:none}.durian-chat-dots span{opacity:.6}.durian-chat-exchange-enter .durian-chat-question,.durian-chat-exchange-enter .durian-chat-answer{animation:.12s ease-out both durian-chat-fade-in}}@media (width<=999px){.durian-chat-sidebar{display:none}.durian-chat-mobile-history{display:inline-flex!important}}@media (width<=600px){.durian-chat-header{padding:5px 12px 5px 18px}.durian-chat-title{font-size:17px}.durian-chat-transcript{padding:14px 16px 20px}.durian-chat-question{max-width:90%;margin-bottom:22px;padding:10px 14px}.durian-chat-answer{gap:9px}.durian-chat-avatar{width:25px;height:25px}.durian-chat-prose{font-size:15px;line-height:1.8}.durian-chat-footer{padding:0 12px 8px}.durian-chat-composer{border-radius:22px;padding:10px 10px 8px 14px}.durian-chat-composer textarea{min-height:42px;max-height:108px}.durian-chat-footer-note{margin-top:5px;font-size:10px}.durian-chat-empty{padding:24px 18px}.durian-chat-exchange{margin-bottom:26px}.durian-chat-desktop-hint{display:none}.durian-chat-photo-button{margin-left:-10px}.durian-chat-photo-thumb{width:56px;height:56px}.durian-chat-usage{padding:0 8px 6px 18px}.durian-chat-usage-note{padding:0 12px 8px 18px}.durian-chat-orders{padding:8px 12px 2px}}@media (width<=479px){.durian-chat-usage{padding-bottom:5px;line-height:1.35}.durian-chat-usage-meters{flex-direction:column;gap:4px}.durian-chat-meter{flex:none}.durian-chat-meter-track{height:4px;margin-top:3px}}