/* 成品展示层：保留 Codex 外框、全页背景与窗口外场景标签。 */
.task-panel.result-open .task-layout { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
.task-panel.result-open .conversation-column { padding: 0 21px; }
.task-panel.result-open .conversation { padding-top: 20px; }
.task-panel .user-message { font-size: 12px; line-height: 1.8; margin-bottom: 19px; }
.task-panel .assistant-intro { font-size: 12px; line-height: 1.8; margin: 0 0 12px; }
.task-activity { display: flex; flex-direction: column; flex-shrink: 0; gap: 3px; list-style: none; padding: 0; margin: 0 0 6px; }
.task-activity li { display: flex; align-items: center; gap: 8px; min-height: 29px; color: #383d42; font-size: 11px; line-height: 1.7; }
.task-activity li > img { width: 14px; height: 14px; flex-shrink: 0; opacity: .75; }
.task-activity li > span { min-width: 0; }
.task-activity small { margin-left: auto; font-size: 9px; color: #648170; flex-shrink: 0; }
.task-activity .is-pending { color: #a6a9ae; }
.task-activity .is-pending img { opacity: .3; }
.task-activity .is-active small { color: #565279; }
.task-activity .is-active > img { animation: clientShimmer 1.2s ease-in-out infinite; }
.task-panel .execution-history { margin: 0 0 12px; }
.task-panel .execution-history > summary { color: #72757d; font-size: 10px; }
.task-panel .task-conclusion { margin: 0 0 12px; }
.task-panel .task-conclusion > p { color: #34383d; font-size: 12px; line-height: 1.8; }
.task-panel .task-deliverables { gap: 7px 12px; padding: 10px 0 3px; margin-bottom: 9px; }
.task-panel .task-deliverables button { color: #6a6e76; font-size: 10px; }
.review-artifacts { padding: 12px; gap: 13px; min-height: 88px; flex-shrink: 0; border-color: #dfe2e5; background: #fff; transition: border-color .2s,box-shadow .2s; }
.review-artifacts:hover { border-color: #939eae; background: #fcfcfd; box-shadow: 0 3px 12px #18263a08; }
.artifact-type { width: 56px; height: 62px; flex-shrink: 0; border-radius: 7px; background: #e8edfa; color: #3e5786; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.artifact-type img { width: 24px; height: 24px; opacity: .8; }
.artifact-type small { font-size: 8px; font-weight: 600; letter-spacing: .5px; }
.artifact-copy { min-width: 0; }
.artifact-copy strong { display: block; color: #292d34; font-size: 12px; font-weight: 500; line-height: 1.6; }
.artifact-copy > small { display: block; color: #767c86; font-size: 9px; margin: 4px 0 7px; line-height: 1.5; }
.artifact-copy > span { display: flex; align-items: center; gap: 5px; color: #52647a; font-size: 10px; }
.artifact-copy > span img { width: 12px; height: 12px; }
.review-artifacts[data-kind="website"] .artifact-type { background: #e8eddf; color: #3a4c31; }
.review-artifacts[data-kind="slides"] .artifact-type { background: #e5e4fb; color: #534d8d; }
.review-artifacts[data-kind="document"] .artifact-type { background: #f3ecdc; color: #71603a; }
.review-artifacts[data-kind="data"] .artifact-type { background: #e1f0ec; color: #356856; }
.review-artifacts[data-kind="automation"] .artifact-type { background: #e4eefa; color: #416385; }
.task-panel .client-composer { padding-top: 10px; border-radius: 15px; }
.task-panel .composer-placeholder { padding-bottom: 10px; }
.task-panel .result-toolbar > span,.task-panel .result-toolbar button { font-size: 11px; }
.task-panel .result-caption { color: #6a717c; background: #f8f9fb; font-size: 10px; min-height: 42px; }
.task-panel .task-status { color: #66746b; font-size: 10px; }
.task-panel .task-status i { background: #649376; }
.task-panel .task-status.is-working i { background: #8277b5; }
.task-panel .task-inputs span { color: #6e737c; }
.task-panel .result-body { background: #fff; }
.rd-modes button,.rd-device-bar button { color: #6b7482; font-size: 11px; }
.rd-modes,.rd-device-bar { position: sticky; top: 0; z-index: 2; background: #fcfcfe; }
.rd-modes button.is-active,.rd-device-bar button.is-active { color: #354b71; background: #e9edf6; }
.rd-sheet,.rd-document { color: #4d5b6d; }
.rd-sheet h4,.rd-document h4 { color: #273649; font-weight: 500; }
.rd-eyebrow { color: #687993; }
.rd-note { color: #6c7a8e; }
.rd-code-label { color: #465c79; }
.rd-file-content { color: #43556e; }
.rd-table-wrap table { color: #4d607a; font-size: 11px; }
.rd-table-wrap th { color: #536783; }
.rd-file-tabs button { color: #65758d; }

/* 网页：让品牌、作品、联系区依次进入同一画布。 */
.rd-web-canvas { padding: 12px; background: #e9ece9; }
.rd-website { border-color: #d6dbd0; box-shadow: 0 4px 15px #29382c0a; }
.rd-web-address { color: #657064; font-size: 8px; }
.rd-website header { padding: 16px 22px; }
.rd-website header strong { font-size: 23px; }
.rd-website header span { color: #687260; font-size: 8px; }
.rd-web-hero { padding: 15px 22px 24px; }
.rd-web-hero > p { color: #667358; font-size: 8px; }
.rd-web-hero h4 { font-size: clamp(32px,3.2vw,47px); letter-spacing: -1.8px; color: #293423; }
.rd-web-hero > span { color: #647058; font-size: 10px; }
.rd-web-projects { gap: 9px; padding: 0 22px; }
.rd-web-projects article { min-height: 119px; padding: 14px; background: #d4dec1; }
.rd-web-projects article+article { background: #e6d0be; }
.rd-web-projects small { color: #616c51; font-size: 7px; }
.rd-web-projects strong { font-size: 29px; color: #36422b; }
.rd-web-contact { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; font-size: 9px; color: #526148; }
.rd-web-contact a { margin: 0; font-size: 9px; }
.rd-website.is-mobile .rd-web-contact { display: block; }
.rd-website.is-mobile .rd-web-contact a { margin-top: 10px; }

/* 幻灯片：主画布与可点击的六页缩略导航。 */
.rd-slide-head { color: #536782; font-size: 11px; }
.rd-slide-head b { color: #697b95; }
.rd-slide { min-height: 350px; color: #2e4263; padding: 23px; }
.rd-slide h4 { color: #293e61; }
.rd-slide.page-0 { background: #252d58; }
.rd-slide-cover > span { color: #b9c3ed; font-size: 9px; }
.rd-slide-cover h4 { font-size: 39px; color: #fff; margin: 27px 0 16px; }
.rd-slide-cover p { color: #d0d7f2; }
.rd-slide-cover > div { color: #b9c4e7; border-top-color: #6875a5; margin-top: 27px; }
.rd-slide-kicker { color: #657e9f; }
.rd-slide-callout { color: #557093; }
.rd-slide-nav { padding: 12px 8px; gap: 5px; align-items: stretch; }
.rd-slide-nav > button { width: 21px; min-width: 21px; height: auto; }
.rd-slide-nav > div { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); flex: 1; gap: 5px; }
.rd-slide-nav > div > button { min-width: 0; height: auto; padding: 3px; border: 1px solid transparent; border-radius: 5px; }
.rd-slide-nav > div > button.is-active { background: #fff; border-color: #6b75ac; }
.rd-slide-thumb { display: block; height: 48px; overflow: hidden; position: relative; background: #e8edf8; color: #445d81; border-radius: 2px; text-align: left; }
.rd-slide-mini { display: block; width: 400px; height: 285px; padding: 20px; transform: scale(.16); transform-origin: top left; font-size: 12px; }
.rd-slide-mini h4 { font-size: 28px; line-height: 1.5; margin: 15px 0 20px; }
.rd-slide-mini .rd-slide-cover h4 { font-size: 37px; margin-top: 30px; }
.rd-slide-mini .rd-metric-grid { display: flex; gap: 15px; }
.rd-slide-mini .rd-metric strong { font-size: 22px; }
.rd-slide-mini .rd-slide-callout { margin-top: 16px; }
.rd-thumb-caption { display: block; margin-top: 6px; font-size: 7px; white-space: nowrap; line-height: 1.5; color: #5f7089; }
.rd-slide-thumb.thumb-0 { background: #252d58; color: #e6ebff; }
.rd-slide-thumb.thumb-2 { background: #deebe7; color: #34685b; }
.rd-slide-thumb.thumb-5 { background: #eee5d4; color: #746246; }
.rd-metric strong { color: #345984; }
.rd-metric span { color: #647c9c; }
.rd-project-list span,.rd-project-list small,.rd-slide-list span { color: #607894; }

/* 代码：先让用户看到修复带来的可验证差别。 */
.rd-code-impact { padding: 19px 22px 17px; background: #f2f6f4; border-bottom: 1px solid #e0e9e3; }
.rd-code-impact > span { color: #384d43; font-size: 12px; }
.rd-code-impact > div { display: flex; align-items: center; gap: 30px; margin: 14px 0; }
.rd-code-impact > div > img { width: 22px; height: 22px; opacity: .5; }
.rd-code-impact p small { display: block; font-size: 10px; color: #717e77; }
.rd-code-impact strong { display: block; font-size: 36px; font-weight: 500; color: #9b6865; margin-top: 5px; }
.rd-code-impact p:last-child strong { color: #397255; }
.rd-code-impact em { font-style: normal; font-size: 10px; font-weight: 400; }
.rd-code-impact > small { color: #6a7a70; font-size: 10px; }
.rd-form-demo p { color: #647185; }
.rd-form-actions { justify-content: flex-start; gap: 20px; }
.rd-form-actions > span { color: #617089; }
.rd-code { color: #315747; font-size: 10px; }

/* 文档与数据：把输入到输出的变化放在结果上方。 */
.rd-doc-transform,.rd-data-transform { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; background: #f2eee5; color: #877350; padding: 11px 12px; border-radius: 5px; margin: 0 0 18px; font-size: 10px; }
.rd-doc-transform img,.rd-data-transform img { width: 13px; height: 13px; opacity: .6; }
.rd-doc-transform strong { color: #675939; font-weight: 500; }
.rd-document h5 { color: #375574; margin: 18px 0 8px; }
.rd-document-meta { color: #718098; margin-bottom: 17px; }
.rd-highlight { color: #7f693e; }
.rd-data-transform { background: #eaf3ef; color: #617e70; margin-bottom: 14px; }
.rd-data-transform strong { color: #38604d; font-weight: 500; }
.rd-data-transform small { font-size: 9px; margin-left: auto; }
.rd-sales-total { margin: 17px 0 24px; }
.rd-sales-total > span,.rd-sales-total small { color: #697f78; }
.rd-sales-total strong { font-size: 43px; color: #285b4b; font-weight: 500; }
.rd-bars { gap: 18px; margin-top: 20px; }
.rd-bars > div { color: #536b7a; font-size: 10px; grid-template-columns: 55px minmax(20px,1fr) 63px; }
.rd-bars > div > div { height: 19px; background: #e6eeeb; border-radius: 3px; }
.rd-bars i { background: #548e79; }
.rd-bars > div:nth-child(even) i { background: #81aa98; }
.rd-bars b { color: #345e53; font-size: 10px; }

/* 文件归档：三类目录保持可见，每个目录都能核对来源。 */
.rd-folder-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 0 0 18px; }
.rd-folder-overview > div { background: #edf3f9; border: 1px solid #dfe8f1; padding: 13px 11px; border-radius: 7px; }
.rd-folder-overview img { display: block; width: 24px; height: 24px; margin-bottom: 9px; opacity: .65; }
.rd-folder-overview strong { display: block; color: #3c5c7e; font-size: 12px; font-weight: 500; }
.rd-folder-overview span { display: block; margin-top: 3px; color: #758ca6; font-size: 9px; }
.organized-tree { margin-top: 0; }
.organized-tree .rd-folder-label { color: #4a6580; font-size: 10px; padding: 6px 9px; }
.organized-tree p { padding-block: 7px; font-size: 10px; color: #4e637d; }
.organized-tree small { color: #78879b; font-size: 9px; }

@media (min-width:761px) and (max-width:1100px) {
  .task-workspace { grid-template-columns: minmax(0,1fr); }
  .task-workspace .client-sidebar { display: none; }
  .window-bar { background: #fafafa; }
}
@media (max-width:900px) {
  .task-panel.result-open .task-layout { display: flex; }
  .task-panel.result-open .conversation-column { display: none; }
  .task-panel.result-open .result-panel { display: flex; }
}
@media (max-width:760px) {
  .task-panel .user-message { font-size: 12px; margin-bottom: 17px; }
  .task-panel .assistant-intro { font-size: 12px; }
  .task-activity li { min-height: 31px; font-size: 11px; }
  .task-panel .task-conclusion > p { font-size: 12px; }
  .task-panel .result-toolbar button { min-height: 34px; }
  .review-artifacts { min-height: 86px; }
  .rd-slide { min-height: 279px; }
  .rd-slide-cover h4 { font-size: 32px; }
  .rd-slide-nav { padding: 9px 5px; gap: 1px; }
  .rd-slide-nav > button { width: 19px; min-width: 19px; }
  .rd-slide-nav > div { gap: 2px; }
  .rd-slide-thumb { height: 29px; }
  .rd-slide-mini { transform: scale(.09); }
  .rd-thumb-caption { font-size: 6px; }
  .rd-website header,.rd-web-hero { padding-inline: 16px; }
  .rd-web-hero h4 { font-size: 35px; }
  .rd-web-projects { padding-inline: 16px; gap: 7px; }
  .rd-web-projects article { min-height: 108px; padding: 12px; }
  .rd-web-projects strong { font-size: 25px; }
  .rd-web-contact { padding: 16px; font-size: 8px; gap: 7px; }
  .rd-web-contact a { font-size: 8px; padding: 8px; }
  .rd-web-canvas { padding: 8px; }
  .rd-code-impact { padding: 16px; }
  .rd-code-impact > div { gap: 24px; }
  .rd-form-actions { gap: 12px; }
  .rd-table-wrap table { font-size: 10px; }
  .rd-sales-total strong { font-size: 39px; }
  .rd-folder-overview { gap: 7px; }
}
@media (prefers-reduced-motion:no-preference) {
  .is-replaying .user-message { animation: showcaseEnter .35s ease-out; }
  .result-open .result-panel { animation: showcaseEnter .35s ease-out; }
  .rd-web-projects,.rd-web-contact,.rd-folder-overview,.rd-doc-transform,.rd-data-transform { animation: showcaseEnter .4s ease-out; }
  .rd-bars i { transform-origin: left; animation: showcaseBar .55s ease-out both; }
  .rd-bars > div:nth-child(2) i { animation-delay: .06s; }
  .rd-bars > div:nth-child(3) i { animation-delay: .12s; }
  .rd-bars > div:nth-child(4) i { animation-delay: .18s; }
}
@keyframes showcaseEnter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes showcaseBar { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion:reduce) { .task-activity .is-active > img { animation: none; } }
