/* Based on 13-电脑端v4设计/02-图稿/02-内置对话-长内容-定稿.png.
   The list contains only this page's actual turns. Automatic整理 is not enabled. */
.cloud-chat-heading{padding-bottom:18px;border-bottom:1px solid #a8977a66;align-items:center}
.cloud-chat-heading h1{font:clamp(27px,2.6vw,42px)/1.5 var(--heading-font);margin:0}
.cloud-chat-heading [data-chat-back]{white-space:nowrap;font:18px var(--reading-font)}
.cloud-chat-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:26px;min-height:420px}
.cloud-chat-index{border-right:1px solid #a8977a55;padding-right:18px}
.cloud-chat-index h2{font:24px var(--heading-font);margin:10px 0 18px}
.cloud-chat-index nav{display:grid;gap:12px}
.cloud-chat-index>[data-chat-session-new]{margin-bottom:14px;background:transparent}
.cloud-chat-index button[aria-pressed=true]{border-color:#a45b3a99;background:#dcb49366}
.cloud-chat-memory-note{display:block;font:12px/1.6 var(--reading-font);color:#756b59;margin-top:16px}
.cloud-chat-index button{font:17px/1.6 var(--reading-font);text-align:left;overflow-wrap:anywhere;border:1px solid #b79b8159;border-radius:9px;padding:10px 12px;background:#e2c0a62b;min-height:44px}
.cloud-chat-paper{min-width:0;display:flex;flex-direction:column;height:clamp(460px,calc(100dvh - 310px),760px)}
.cloud-chat-messages{flex:1;min-height:130px;overflow:auto;overscroll-behavior:contain;padding:8px 6px 18px;scrollbar-width:thin;scrollbar-color:#9f8e714d transparent}
.cloud-chat-empty{height:190px;display:grid;place-items:center}.cloud-chat-empty img{width:150px;height:100px;object-fit:contain;opacity:.16}
.cloud-chat-turn{margin:0 0 20px}
.cloud-chat-question,.cloud-chat-answer{display:flex;align-items:flex-start;gap:14px;background:none!important;border:0!important;padding:0!important;margin:0 0 22px}
.cloud-chat-question{flex-direction:row-reverse}
.cloud-chat-question p,.cloud-chat-answer p{white-space:pre-wrap;overflow-wrap:anywhere;font:20px/1.85 var(--reading-font);border-radius:18px;margin:0;max-width:calc(100% - 65px);padding:11px 19px}
.cloud-chat-question p{background:#ddba9b4d;border:1px solid transparent}
.cloud-chat-answer p{background:#fffaf130;border:1px solid #af998271}
.chat-user-avatar,.chat-ai-avatar{width:43px!important;height:43px;flex:0 0 43px;border:1px solid #9c8c7055;border-radius:50%;background:#e7ddca;object-fit:contain;margin-top:4px}
.cloud-chat-question .chat-user-avatar{display:grid;place-items:center;color:#51483b;font:20px var(--heading-font)}
.cloud-chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding-top:12px;border-top:1px solid #a8977a55}
.cloud-chat-form [data-chat-notice]{grid-area:1/1/2/3}.cloud-chat-form [data-chat-error]{grid-area:2/1/3/3}
.cloud-chat-form textarea{grid-area:3/1/4/2}.cloud-chat-form .cloud-ai-actions{grid-area:3/2/4/3}
.cloud-chat-form{flex:0 0 auto;margin-top:auto}.cloud-chat-form:has(details[open]){max-height:65%;overflow:auto}
.cloud-chat-form textarea{min-height:70px;max-height:240px;resize:vertical;border:1px solid #9b8a7399;border-radius:12px;background:#fffaf039;padding:12px 17px;font:20px/1.6 var(--reading-font)}
.cloud-chat-form .cloud-note{font-size:13px;line-height:1.6;margin:8px 0}
.cloud-chat-form details{margin:8px 0;padding:8px 0}.cloud-chat-form .cloud-check{font-size:15px;margin:12px 0}
.cloud-chat-page [data-chat-error]:empty{display:none}.cloud-chat-page [data-chat-status]{font-size:13px;margin:12px 0 18px}
.cloud-chat-form .cloud-ai-actions{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:8px;margin:0}
.cloud-chat-form .primary{background:#984a2c;color:#fff9ee;border:1px solid #8c442b;border-radius:9px;box-shadow:none;min-width:110px;padding:9px 22px;font:24px var(--heading-font)}
.cloud-chat-form .primary:before{display:none}.cloud-chat-form .primary:disabled{opacity:.45}
.cloud-chat-index button:focus-visible{outline:2px solid #6c654b;outline-offset:3px}
@media(max-width:1100px){.cloud-chat-layout{grid-template-columns:145px minmax(0,1fr);gap:18px}.cloud-chat-index{padding-right:12px}.cloud-chat-question p,.cloud-chat-answer p{font-size:18px;padding:10px 13px}}
@media(max-width:650px){.cloud-chat-layout{display:flex;flex-direction:column;gap:16px}.cloud-chat-index{border-right:0;border-bottom:1px solid #a8977a55;padding:0 0 12px}.cloud-chat-index h2{font-size:18px;margin:0 0 8px}.cloud-chat-index nav{display:flex;gap:8px;overflow-x:auto;padding:2px}.cloud-chat-index button{flex:0 0 145px;font-size:14px}.cloud-chat-messages{max-height:45dvh;min-height:150px}.cloud-chat-question,.cloud-chat-answer{gap:8px}.chat-user-avatar,.chat-ai-avatar{width:32px!important;height:32px;flex-basis:32px}.cloud-chat-question p,.cloud-chat-answer p{max-width:calc(100% - 40px);font-size:17px}.cloud-chat-heading [data-chat-back]{font-size:15px}.cloud-chat-form textarea{font-size:17px}.cloud-chat-form .primary{font-size:21px;min-width:85px}.cloud-chat-heading h1{font-size:26px}.cloud-chat-empty{height:135px}}
@media(prefers-reduced-motion:reduce){.cloud-chat-page *{scroll-behavior:auto;animation:none;transition:none}}

/* Text refinement: restrained ink and paper, labelled quota visualization. */
.cloud-chat-meta{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:12px 0 16px}
.cloud-chat-meta [data-chat-status]{margin:0}.ai-quota{display:grid;gap:5px;min-width:145px;max-width:250px;font:13px/1.5 var(--reading-font);color:#554c3e}
.ai-quota[hidden]{display:none}.ai-quota strong{font-weight:500}.ai-quota meter{display:block;width:100%;height:7px;accent-color:#68654c}
.ai-quota meter::-webkit-meter-bar{border:0;background:#aaa18c3b;border-radius:3px}.ai-quota meter::-webkit-meter-optimum-value{background:#68654c;border-radius:3px}
.cloud-dialog-body>.ai-quota{margin:16px 0}.cloud-chat-memory-note summary{cursor:pointer}.cloud-chat-memory-note p{font:12px/1.5 var(--reading-font)}
.cloud-chat-form [data-chat-notice]{font:13px/1.5 var(--reading-font)}.cloud-chat-form [data-chat-notice] details{padding:2px 0;margin:6px 0}
.cloud-chat-form .cloud-note{margin:4px 0}.cloud-chat-form .cloud-check{margin:8px 0;font-size:14px}
.cloud-chat-form [data-chat-warning]{font-size:12px;color:#756650}.cloud-chat-form [data-chat-instructions]{overflow-wrap:anywhere}
.cloud-chat-meta>.ai-quota{margin-left:auto}dialog details summary{cursor:pointer}
.cloud-chat-heading{padding-right:50px;gap:10px;flex-wrap:wrap}.cloud-chat-heading [data-chat-back]{margin-left:auto}
@media(max-width:650px){.cloud-chat-heading h1{overflow-wrap:anywhere}.cloud-chat-heading [data-chat-back]{margin-left:0}.cloud-chat-paper{height:auto;min-height:460px}.cloud-chat-messages{flex:none;max-height:40dvh}.cloud-chat-form:has(details[open]){max-height:none;overflow:visible}.cloud-chat-meta{gap:8px;margin:10px 0}.cloud-chat-form .cloud-check{align-items:flex-start;line-height:1.6}.cloud-chat-form .cloud-check input{flex-shrink:0}.cloud-chat-form [data-chat-notice]{font-size:12px}.cloud-chat-form .cloud-note{font-size:12px}.ai-quota{min-width:135px}.cloud-chat-memory-note{margin-top:8px}}

/* One conversation owns the full paper width. */
.cloud-chat-single .cloud-chat-layout{display:block}.cloud-chat-single .cloud-chat-paper{width:100%;height:clamp(480px,calc(100dvh - 340px),780px)}
.cloud-chat-single .cloud-chat-memory{font:12px/1.5 var(--reading-font);color:#756b59}.cloud-chat-single .cloud-chat-form [data-chat-notice]{padding:6px 0}
.cloud-chat-single [data-chat-privacy]{white-space:nowrap;text-underline-offset:3px}.cloud-chat-single .cloud-ai-actions{align-self:end}
.cloud-chat-single .cloud-ai-actions .primary{font-size:22px;min-width:130px}
@media(max-width:650px){.cloud-chat-single .cloud-chat-paper{height:auto;min-height:440px}.cloud-chat-single .cloud-chat-messages{min-height:180px}.cloud-chat-single .cloud-ai-actions .primary{font-size:18px;min-width:90px;padding:10px 12px}.cloud-chat-single .cloud-chat-meta{align-items:flex-start}.cloud-chat-single .cloud-chat-memory{max-width:160px}.cloud-chat-single .cloud-chat-form textarea{min-height:90px}.cloud-chat-single .cloud-chat-heading{padding-right:50px}.cloud-chat-single .cloud-chat-heading [data-chat-back]{margin-right:24px}}
.cloud-chat-single .cloud-chat-meta{flex-wrap:wrap;gap:8px 16px}.cloud-chat-single .ai-quota{font:12px/1.6 var(--reading-font);margin:0;max-width:100%}.cloud-chat-single .cloud-ai-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.summary-dialog{width:min(760px,calc(100vw - 32px));max-height:86dvh;overflow:auto;border:1px solid #a89b80;background:#f2ead7;color:#322c23;padding:24px;box-sizing:border-box}.summary-dialog::backdrop{background:#1f1a15a8}.summary-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.summary-dialog h2{margin:0;font-size:26px}.summary-dialog p{line-height:1.65}.summary-dialog fieldset{border:0;padding:0;margin:12px 0}.summary-turn,.summary-card{display:block;border-top:1px solid #b8ab9060;padding:14px 0}.summary-turn span{display:block;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.summary-turn span:last-child{color:#756d5b;font-size:14px}.summary-turn input,.summary-card input{width:auto;display:inline;margin-right:10px;accent-color:#784c36}.summary-card strong{font-size:18px}.summary-card blockquote{margin:8px 0;padding-left:12px;border-left:2px solid #b2a17e;color:#756d5b}.summary-card p{white-space:pre-wrap;overflow-wrap:anywhere}.summary-card small{display:block;color:#756d5b}.summary-actions{position:sticky;bottom:-24px;display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;background:#f2ead7;padding:16px 0 20px}.summary-scope{padding:8px 0;color:#625a4b}.summary-error{color:#963c30;white-space:pre-wrap}
@media(max-width:650px){.summary-dialog{padding:16px;width:calc(100vw - 20px)}.summary-actions{bottom:-16px}.cloud-chat-single .cloud-ai-actions{gap:6px}.cloud-chat-single .cloud-ai-actions .secondary{min-width:82px;padding:8px;font-size:16px}.cloud-chat-single .cloud-chat-form{grid-template-columns:1fr}.cloud-chat-single .cloud-ai-actions{grid-column:1 / -1}.summary-dialog h2{font-size:22px}}
@media(max-width:650px){.cloud-chat-single .cloud-chat-form textarea{grid-area:3/1/4/-1}.cloud-chat-single .cloud-chat-form .cloud-ai-actions{grid-area:4/1/5/-1;flex-direction:row;align-items:center;justify-content:flex-end;align-self:auto}.cloud-chat-single .cloud-chat-form [data-chat-notice]{grid-area:1/1/2/-1}.cloud-chat-single .cloud-chat-form [data-chat-error]{grid-area:2/1/3/-1}}
