/* Detailed production events and original documents. */
#artifact-body,#dialog-body { padding:0; display:flex; flex-direction:column; overflow:hidden; }
#dialog-body { height:78vh; max-height:none; }
#preview-dialog { width:min(1120px,94vw); max-height:94vh; background:#e7e7e7; }
.pdf-toolbar { display:flex; align-items:center; gap:9px; padding:10px 12px; background:#383838; color:white; flex:none; font-size:12px; min-height:46px; }
.pdf-toolbar button { padding:3px 5px; border-radius:3px; white-space:nowrap; }
.pdf-toolbar button:hover { background:#555; color:#fff; }
.pdf-toolbar button:disabled { opacity:.35; cursor:default; }
.pdf-toolbar input { width:37px; border:1px solid #777; background:#444; color:#fff; padding:3px; text-align:center; font:inherit; appearance:textfield; }
.pdf-toolbar input::-webkit-inner-spin-button { appearance:none; }
.pdf-toolbar a { margin-left:auto; white-space:nowrap; }
.pdf-surface { flex:1; min-height:0; overflow:auto; background:#525659; padding:20px; text-align:center; scrollbar-width:thin; }
.pdf-surface canvas { display:block; margin:0 auto; background:#fff; box-shadow:0 2px 10px #0004; }
.pdf-loading { display:block; padding:35px; color:white; }
.document-note { padding:9px 14px; background:#f5f5f4; color:#78716c; font-size:12px; line-height:20px; }
.document-note a { text-decoration:underline; margin-left:12px; }
.revision-surface { overflow:auto; padding:24px; background:#e7e7e7; }
.revision-document { background:white; padding:35px; font:15px/1.9 'SimSun',serif; color:#222; }
.revision-document p { margin:0 0 16px; }
.revision-document del { color:#ab3838; background:#fff0ef; text-decoration:line-through; }
.revision-document ins { color:#206a48; background:#eaf6ef; text-decoration:underline; }
.revision-document table { width:100%; border-collapse:collapse; }
.revision-document td { border:1px solid #ccc; padding:8px; }
.output-file { margin-bottom:9px; }
.output-file-name { text-align:left; padding:0; }
.output-file .file-icon { font:bold 10px Arial; }
.file-actions a { padding:4px; }
.file-heading .file-icon { font-size:12px; }
#answer h1,#answer h2,#answer h3 { font-family:inherit; font-weight:600; line-height:1.6; letter-spacing:0; margin:24px 0 12px; color:#171717; }
#answer h1,#answer h2 { font-size:18px; }
#answer h3 { font-size:16px; }
#answer p,#answer ul,#answer ol { margin:12px 0; }
#answer ul,#answer ol { padding-left:24px; }
#answer blockquote { border-left:3px solid #d6d3d1; padding-left:15px; margin:18px 0; color:#78716c; }
#answer table { width:100%; border-collapse:collapse; font-size:13px; line-height:1.7; display:block; overflow:auto; }
#answer th,#answer td { padding:9px; border:1px solid #e7e5e4; min-width:95px; }
#answer a { color:#28634d; text-decoration:underline; }
#answer code { font-size:12px; overflow-wrap:anywhere; }
.tool-group { margin:0 0 17px; padding-bottom:2px; }
.tool-group>summary { cursor:pointer; display:flex; align-items:center; gap:8px; list-style:none; color:#57534e; font-size:14px; line-height:22px; position:relative; }
.tool-group>summary strong { font-weight:500; }
.tool-group>summary>span:not(.group-icon) { font-size:12px; color:#a8a29e; margin-left:auto; white-space:nowrap; }
.tool-group>summary em { font-size:11px; color:#b91c1c; font-style:normal; white-space:nowrap; }
.group-icon { position:absolute; left:-35px; top:2px; background:white; width:20px; display:grid; place-items:center; }
.tool-group>summary>svg { flex:none; transform:rotate(-90deg); }
.tool-group[open]>summary>svg { transform:none; }
.group-calls { margin:17px 0 5px; }
.group-calls .timeline-row:last-child { padding-bottom:0; }
.search-card { border:1px solid #e7e5e4; border-radius:6px; margin-top:12px; color:#57534e; background:#fff; overflow:hidden; }
.search-card-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid #e7e5e4; color:#78716c; font-size:12px; line-height:20px; }
.search-card-header span:last-child { text-align:right; }
.search-temporal { padding:9px 12px; display:flex; gap:8px; align-items:center; color:#047857; border-bottom:1px solid #a7f3d0; background:#ecfdf5; font-size:12px; line-height:20px; }
.search-temporal svg { flex:none; width:15px; }
.search-criteria { display:flex; flex-wrap:wrap; gap:6px; padding:9px 12px; border-bottom:1px solid #e7e5e4; }
.search-criteria span { background:#f5f5f4; padding:4px 8px; border-radius:4px; font-size:12px; line-height:20px; overflow:hidden; text-overflow:ellipsis; max-width:100%; white-space:nowrap; }
.search-results { max-height:300px; overflow:auto; scrollbar-gutter:stable; overscroll-behavior:contain; }
.search-result { padding:12px; }
.search-result-title { display:flex; align-items:center; gap:12px; font-size:14px; line-height:24px; }
.search-result-title>span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.search-result-title>a { flex:none; color:#a8a29e; display:flex; }
.search-result-title svg { width:14px; height:14px; }
.search-meta { display:flex; flex-wrap:wrap; gap:4px 10px; font-size:12px; line-height:20px; color:#78716c; margin-top:4px; }
.search-card .search-excerpt { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; border:0; padding:0; margin:4px 0 0; font-size:12px; line-height:20px; color:#78716c; }
.search-body-details>summary { display:flex; justify-content:flex-start; gap:4px; font-size:11px; line-height:20px; padding:4px 0 0; color:#a8a29e; list-style:none; }
.search-body-details>summary svg { width:12px; height:12px; margin-top:4px; }
.search-body { margin-top:8px; padding:10px; background:#fafaf9; border-radius:4px; }
.search-card .search-body p { margin:6px 0 14px; padding:0; border:0; font-size:13px; line-height:24px; white-space:pre-wrap; overflow-wrap:anywhere; }
.search-body strong { font-weight:500; font-size:13px; }
.search-warning { padding:10px 12px; color:#b45309; border-top:1px solid #e7e5e4; font-size:12px; line-height:20px; }
.search-empty,.search-error { padding:14px!important; font-size:12px; }
.project-group { margin:4px 0; }
.workspace .project-group>summary { display:flex; align-items:center; gap:8px; padding:10px 8px; color:#44403c; font-size:13px; }
.project-group>summary>span { flex:1; }
.project-group>summary svg { width:15px; height:15px; flex:none; }
.project-group:not([open])>summary svg:last-child { transform:rotate(-90deg); }
.project-tasks { margin-left:15px; padding-left:8px; border-left:1px solid #e7e5e4; }
.project-tasks .workspace-item { font-size:12px; padding:7px 8px; line-height:20px; }
.timeline-row.running .timeline-icon { color:#44403c; }
.timeline-row.running .tool-badge { animation:status-pulse 1.5s ease-in-out infinite; }
#chat-scroll { overflow-anchor:none; }
@keyframes status-pulse { 50% { opacity:.45; } }
.workbench.is-fullscreen { position:fixed; inset:0; z-index:100; background:#fff; width:100vw; height:100dvh; }
body.workbench-open { overflow:hidden; }
.workbench.is-fullscreen .sidebar { width:230px; }
.workbench.is-fullscreen .conversation { min-width:440px; }
.workbench.is-fullscreen .artifact { min-width:400px; }
@media(max-width:1180px) { .workbench.is-fullscreen { overflow:auto; } .workbench.is-fullscreen .conversation,.workbench.is-fullscreen .artifact { min-width:0; } }
@media(max-width:760px) { .pdf-toolbar { gap:5px; } .revision-surface { padding:12px; } .revision-document { padding:22px; } .workbench.is-fullscreen .sidebar { width:100%; } .group-icon { left:-31px; } }
